@qlik/api 0.0.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 (160) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +8 -0
  3. package/api-keys.d.mts +313 -0
  4. package/api-keys.d.ts +313 -0
  5. package/api-keys.js +76 -0
  6. package/api-keys.mjs +76 -0
  7. package/apps.d.mts +1921 -0
  8. package/apps.d.ts +1921 -0
  9. package/apps.js +331 -0
  10. package/apps.mjs +331 -0
  11. package/audits.d.mts +262 -0
  12. package/audits.d.ts +262 -0
  13. package/audits.js +63 -0
  14. package/audits.mjs +63 -0
  15. package/auth-CSVTXOZX.js +36 -0
  16. package/auth-TE272Q34.mjs +36 -0
  17. package/auth-types-nnUcWhuU.d.mts +98 -0
  18. package/auth-types-nnUcWhuU.d.ts +98 -0
  19. package/auth.d.mts +26 -0
  20. package/auth.d.ts +26 -0
  21. package/auth.js +13 -0
  22. package/auth.mjs +13 -0
  23. package/automations.d.mts +638 -0
  24. package/automations.d.ts +638 -0
  25. package/automations.js +166 -0
  26. package/automations.mjs +166 -0
  27. package/brands.d.mts +614 -0
  28. package/brands.d.ts +614 -0
  29. package/brands.js +118 -0
  30. package/brands.mjs +118 -0
  31. package/chunk-3YE7EI7I.mjs +17 -0
  32. package/chunk-4ES65KO3.js +57 -0
  33. package/chunk-4FLMND6T.js +25 -0
  34. package/chunk-4OMEH5SW.mjs +1337 -0
  35. package/chunk-CKPJE4IA.mjs +57 -0
  36. package/chunk-GUQBHY3H.mjs +25 -0
  37. package/chunk-OULT3V2U.js +17 -0
  38. package/chunk-WM7FQU2U.mjs +21 -0
  39. package/chunk-XASXL2NC.js +1337 -0
  40. package/chunk-ZT4C7KCQ.js +21 -0
  41. package/collections.d.mts +535 -0
  42. package/collections.d.ts +535 -0
  43. package/collections.js +100 -0
  44. package/collections.mjs +100 -0
  45. package/csp-origins.d.mts +258 -0
  46. package/csp-origins.d.ts +258 -0
  47. package/csp-origins.js +66 -0
  48. package/csp-origins.mjs +66 -0
  49. package/data-assets.d.mts +195 -0
  50. package/data-assets.d.ts +195 -0
  51. package/data-assets.js +61 -0
  52. package/data-assets.mjs +61 -0
  53. package/data-connections.d.mts +527 -0
  54. package/data-connections.d.ts +527 -0
  55. package/data-connections.js +96 -0
  56. package/data-connections.mjs +96 -0
  57. package/data-credentials.d.mts +188 -0
  58. package/data-credentials.d.ts +188 -0
  59. package/data-credentials.js +56 -0
  60. package/data-credentials.mjs +56 -0
  61. package/data-files.d.mts +471 -0
  62. package/data-files.d.ts +471 -0
  63. package/data-files.js +116 -0
  64. package/data-files.mjs +116 -0
  65. package/docs/examples.md +4 -0
  66. package/enigma-session-4L373ALV.mjs +10196 -0
  67. package/enigma-session-TEB53FAF.js +10196 -0
  68. package/esm-4X3DKK5D.js +63 -0
  69. package/esm-SOWVJKOQ.mjs +63 -0
  70. package/extensions.d.mts +257 -0
  71. package/extensions.d.ts +257 -0
  72. package/extensions.js +74 -0
  73. package/extensions.mjs +74 -0
  74. package/global.types-Eto4uYwy.d.mts +102 -0
  75. package/global.types-hIvp-WdX.d.ts +102 -0
  76. package/glossaries.d.mts +1041 -0
  77. package/glossaries.d.ts +1041 -0
  78. package/glossaries.js +225 -0
  79. package/glossaries.mjs +225 -0
  80. package/groups.d.mts +379 -0
  81. package/groups.d.ts +379 -0
  82. package/groups.js +83 -0
  83. package/groups.mjs +83 -0
  84. package/identity-providers.d.mts +492 -0
  85. package/identity-providers.d.ts +492 -0
  86. package/identity-providers.js +80 -0
  87. package/identity-providers.mjs +80 -0
  88. package/index.d.mts +142 -0
  89. package/index.d.ts +142 -0
  90. package/index.js +678 -0
  91. package/index.mjs +678 -0
  92. package/invoke-fetch-MSSJAZ7K.mjs +14 -0
  93. package/invoke-fetch-PEI54KZO.js +14 -0
  94. package/items.d.mts +501 -0
  95. package/items.d.ts +501 -0
  96. package/items.js +84 -0
  97. package/items.mjs +84 -0
  98. package/licenses.d.mts +436 -0
  99. package/licenses.d.ts +436 -0
  100. package/licenses.js +87 -0
  101. package/licenses.mjs +87 -0
  102. package/package.json +264 -0
  103. package/qix-EU7PXRZ6.mjs +573 -0
  104. package/qix-RLTISYTB.js +573 -0
  105. package/qix.d.mts +11543 -0
  106. package/qix.d.ts +11543 -0
  107. package/qix.js +9 -0
  108. package/qix.mjs +9 -0
  109. package/quotas.d.mts +105 -0
  110. package/quotas.d.ts +105 -0
  111. package/quotas.js +31 -0
  112. package/quotas.mjs +31 -0
  113. package/reload-tasks.d.mts +222 -0
  114. package/reload-tasks.d.ts +222 -0
  115. package/reload-tasks.js +59 -0
  116. package/reload-tasks.mjs +59 -0
  117. package/reloads.d.mts +189 -0
  118. package/reloads.d.ts +189 -0
  119. package/reloads.js +44 -0
  120. package/reloads.mjs +44 -0
  121. package/roles.d.mts +150 -0
  122. package/roles.d.ts +150 -0
  123. package/roles.js +30 -0
  124. package/roles.mjs +30 -0
  125. package/spaces.d.mts +524 -0
  126. package/spaces.d.ts +524 -0
  127. package/spaces.js +118 -0
  128. package/spaces.mjs +118 -0
  129. package/temp-contents.d.mts +222 -0
  130. package/temp-contents.d.ts +222 -0
  131. package/temp-contents.js +60 -0
  132. package/temp-contents.mjs +60 -0
  133. package/tenants.d.mts +276 -0
  134. package/tenants.d.ts +276 -0
  135. package/tenants.js +68 -0
  136. package/tenants.mjs +68 -0
  137. package/themes.d.mts +235 -0
  138. package/themes.d.ts +235 -0
  139. package/themes.js +74 -0
  140. package/themes.mjs +74 -0
  141. package/transports.d.mts +298 -0
  142. package/transports.d.ts +298 -0
  143. package/transports.js +62 -0
  144. package/transports.mjs +62 -0
  145. package/users.d.mts +544 -0
  146. package/users.d.ts +544 -0
  147. package/users.js +99 -0
  148. package/users.mjs +99 -0
  149. package/web-integrations.d.mts +246 -0
  150. package/web-integrations.d.ts +246 -0
  151. package/web-integrations.js +59 -0
  152. package/web-integrations.mjs +59 -0
  153. package/web-notifications.d.mts +220 -0
  154. package/web-notifications.d.ts +220 -0
  155. package/web-notifications.js +66 -0
  156. package/web-notifications.mjs +66 -0
  157. package/webhooks.d.mts +422 -0
  158. package/webhooks.d.ts +422 -0
  159. package/webhooks.js +100 -0
  160. package/webhooks.mjs +100 -0
package/themes.d.mts ADDED
@@ -0,0 +1,235 @@
1
+ import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
2
+ import './auth-types-nnUcWhuU.mjs';
3
+
4
+ type Error = {
5
+ /** Object containing meta data regarding an error. It does not necessarily contain all the properties. */
6
+ meta?: Meta;
7
+ /** Optional JSON patch object pointing to an invalid property. */
8
+ source?: unknown;
9
+ /** The HTTP status code. */
10
+ status?: number;
11
+ /** Title of the HTTP status code. */
12
+ title: string;
13
+ };
14
+ type Meta = {
15
+ /** A more detailed message explaining the error. */
16
+ message?: string;
17
+ /** Name of the resource related to the error. If there is a conflict, it is the name of the model attempting to be created. */
18
+ resourceName?: string;
19
+ /** Full stack trace of the error that was raised. */
20
+ stack?: string;
21
+ };
22
+ type Theme = {
23
+ /** Author of the theme. */
24
+ author?: string;
25
+ readonly createdAt?: string;
26
+ /** Map of dependencies describing version of the component it requires. */
27
+ dependencies?: unknown;
28
+ /** Description of the theme. */
29
+ description?: string;
30
+ /** The file that was uploaded with the theme. */
31
+ file?: unknown;
32
+ /** Home page of the theme. */
33
+ homepage?: string;
34
+ /** Icon to show in the client. */
35
+ icon?: string;
36
+ readonly id?: string;
37
+ /** Keywords for the theme. */
38
+ keywords?: string;
39
+ /** Under which license this theme is published. */
40
+ license?: string;
41
+ /** The display name of this theme. */
42
+ name?: string;
43
+ /** The name of the qext file that was uploaded with this theme. */
44
+ qextFilename?: string;
45
+ /** The version from the qext file that was uploaded with this extension. */
46
+ qextVersion?: string;
47
+ /** Link to the theme source code. */
48
+ repository?: string;
49
+ /** Supplier of the theme. */
50
+ supplier?: string;
51
+ /** List of tags. */
52
+ tags?: string[];
53
+ readonly tenantId?: string;
54
+ /** The type of this theme (visualization, etc.). */
55
+ type?: string;
56
+ readonly updateAt?: string;
57
+ readonly userId?: string;
58
+ /** Version of the theme. */
59
+ version?: string;
60
+ };
61
+ type Themes = {
62
+ data: Theme[];
63
+ };
64
+ /**
65
+ * Lists all themes.
66
+ * @throws GetThemesHttpError
67
+ */
68
+ declare const getThemes: (options?: ApiCallOptions) => Promise<GetThemesHttpResponse>;
69
+ type GetThemesHttpResponse = {
70
+ data: Themes;
71
+ headers: Headers;
72
+ status: number;
73
+ };
74
+ type GetThemesHttpError = {
75
+ data: unknown;
76
+ headers: Headers;
77
+ status: number;
78
+ };
79
+ /**
80
+ * Creates a new theme. If a file is provided, the data field is not required.
81
+ * @param body an object with the body content
82
+ * @throws UploadThemeHttpError
83
+ */
84
+ declare const uploadTheme: (body: unknown, options?: ApiCallOptions) => Promise<UploadThemeHttpResponse>;
85
+ type UploadThemeHttpResponse = {
86
+ data: Theme;
87
+ headers: Headers;
88
+ status: number;
89
+ };
90
+ type UploadThemeHttpError = {
91
+ data: Error;
92
+ headers: Headers;
93
+ status: number;
94
+ };
95
+ /**
96
+ * Deletes a specific theme.
97
+ * @param id Theme identifier or its qextFilename.
98
+ * @throws DeleteThemeHttpError
99
+ */
100
+ declare const deleteTheme: (id: string, options?: ApiCallOptions) => Promise<DeleteThemeHttpResponse>;
101
+ type DeleteThemeHttpResponse = {
102
+ data: void;
103
+ headers: Headers;
104
+ status: number;
105
+ };
106
+ type DeleteThemeHttpError = {
107
+ data: Error;
108
+ headers: Headers;
109
+ status: number;
110
+ };
111
+ /**
112
+ * Returns a specific theme.
113
+ * @param id Theme identifier or its qextFilename
114
+ * @throws GetThemeHttpError
115
+ */
116
+ declare const getTheme: (id: string, options?: ApiCallOptions) => Promise<GetThemeHttpResponse>;
117
+ type GetThemeHttpResponse = {
118
+ data: Theme;
119
+ headers: Headers;
120
+ status: number;
121
+ };
122
+ type GetThemeHttpError = {
123
+ data: Error;
124
+ headers: Headers;
125
+ status: number;
126
+ };
127
+ /**
128
+ * Updates a specific theme with provided data. If a file is provided, the data field is not required.
129
+ * @param id Theme identifier or its qextFilename.
130
+ * @param body an object with the body content
131
+ * @throws PatchThemeHttpError
132
+ */
133
+ declare const patchTheme: (id: string, body: unknown, options?: ApiCallOptions) => Promise<PatchThemeHttpResponse>;
134
+ type PatchThemeHttpResponse = {
135
+ data: Themes;
136
+ headers: Headers;
137
+ status: number;
138
+ };
139
+ type PatchThemeHttpError = {
140
+ data: Error;
141
+ headers: Headers;
142
+ status: number;
143
+ };
144
+ /**
145
+ * Downloads the theme as an archive.
146
+ * @param id Theme identifier or its qextFilename
147
+ * @throws DownloadThemeHttpError
148
+ */
149
+ declare const downloadTheme: (id: string, options?: ApiCallOptions) => Promise<DownloadThemeHttpResponse>;
150
+ type DownloadThemeHttpResponse = {
151
+ data: void;
152
+ headers: Headers;
153
+ status: number;
154
+ };
155
+ type DownloadThemeHttpError = {
156
+ data: Error;
157
+ headers: Headers;
158
+ status: number;
159
+ };
160
+ /**
161
+ * Downloads a file from the theme archive.
162
+ * @param id Theme identifier or its qextFilename.
163
+ * @param filepath Path to the file archive for the specified theme archive. Folders separated with forward slashes.
164
+ * @throws DownloadFileFromThemeHttpError
165
+ */
166
+ declare const downloadFileFromTheme: (id: string, filepath: string, options?: ApiCallOptions) => Promise<DownloadFileFromThemeHttpResponse>;
167
+ type DownloadFileFromThemeHttpResponse = {
168
+ data: void;
169
+ headers: Headers;
170
+ status: number;
171
+ };
172
+ type DownloadFileFromThemeHttpError = {
173
+ data: Error;
174
+ headers: Headers;
175
+ status: number;
176
+ };
177
+ /**
178
+ * Clears the cache for themes api requests.
179
+ */
180
+ declare function clearCache(): void;
181
+ interface ThemesAPI {
182
+ /**
183
+ * Lists all themes.
184
+ * @throws GetThemesHttpError
185
+ */
186
+ getThemes: typeof getThemes;
187
+ /**
188
+ * Creates a new theme. If a file is provided, the data field is not required.
189
+ * @param body an object with the body content
190
+ * @throws UploadThemeHttpError
191
+ */
192
+ uploadTheme: typeof uploadTheme;
193
+ /**
194
+ * Deletes a specific theme.
195
+ * @param id Theme identifier or its qextFilename.
196
+ * @throws DeleteThemeHttpError
197
+ */
198
+ deleteTheme: typeof deleteTheme;
199
+ /**
200
+ * Returns a specific theme.
201
+ * @param id Theme identifier or its qextFilename
202
+ * @throws GetThemeHttpError
203
+ */
204
+ getTheme: typeof getTheme;
205
+ /**
206
+ * Updates a specific theme with provided data. If a file is provided, the data field is not required.
207
+ * @param id Theme identifier or its qextFilename.
208
+ * @param body an object with the body content
209
+ * @throws PatchThemeHttpError
210
+ */
211
+ patchTheme: typeof patchTheme;
212
+ /**
213
+ * Downloads the theme as an archive.
214
+ * @param id Theme identifier or its qextFilename
215
+ * @throws DownloadThemeHttpError
216
+ */
217
+ downloadTheme: typeof downloadTheme;
218
+ /**
219
+ * Downloads a file from the theme archive.
220
+ * @param id Theme identifier or its qextFilename.
221
+ * @param filepath Path to the file archive for the specified theme archive. Folders separated with forward slashes.
222
+ * @throws DownloadFileFromThemeHttpError
223
+ */
224
+ downloadFileFromTheme: typeof downloadFileFromTheme;
225
+ /**
226
+ * Clears the cache for themes api requests.
227
+ */
228
+ clearCache: typeof clearCache;
229
+ }
230
+ /**
231
+ * Functions for the themes api
232
+ */
233
+ declare const themesExport: ThemesAPI;
234
+
235
+ export { type DeleteThemeHttpError, type DeleteThemeHttpResponse, type DownloadFileFromThemeHttpError, type DownloadFileFromThemeHttpResponse, type DownloadThemeHttpError, type DownloadThemeHttpResponse, type Error, type GetThemeHttpError, type GetThemeHttpResponse, type GetThemesHttpError, type GetThemesHttpResponse, type Meta, type PatchThemeHttpError, type PatchThemeHttpResponse, type Theme, type Themes, type ThemesAPI, type UploadThemeHttpError, type UploadThemeHttpResponse, clearCache, themesExport as default, deleteTheme, downloadFileFromTheme, downloadTheme, getTheme, getThemes, patchTheme, uploadTheme };
package/themes.d.ts ADDED
@@ -0,0 +1,235 @@
1
+ import { A as ApiCallOptions } from './global.types-hIvp-WdX.js';
2
+ import './auth-types-nnUcWhuU.js';
3
+
4
+ type Error = {
5
+ /** Object containing meta data regarding an error. It does not necessarily contain all the properties. */
6
+ meta?: Meta;
7
+ /** Optional JSON patch object pointing to an invalid property. */
8
+ source?: unknown;
9
+ /** The HTTP status code. */
10
+ status?: number;
11
+ /** Title of the HTTP status code. */
12
+ title: string;
13
+ };
14
+ type Meta = {
15
+ /** A more detailed message explaining the error. */
16
+ message?: string;
17
+ /** Name of the resource related to the error. If there is a conflict, it is the name of the model attempting to be created. */
18
+ resourceName?: string;
19
+ /** Full stack trace of the error that was raised. */
20
+ stack?: string;
21
+ };
22
+ type Theme = {
23
+ /** Author of the theme. */
24
+ author?: string;
25
+ readonly createdAt?: string;
26
+ /** Map of dependencies describing version of the component it requires. */
27
+ dependencies?: unknown;
28
+ /** Description of the theme. */
29
+ description?: string;
30
+ /** The file that was uploaded with the theme. */
31
+ file?: unknown;
32
+ /** Home page of the theme. */
33
+ homepage?: string;
34
+ /** Icon to show in the client. */
35
+ icon?: string;
36
+ readonly id?: string;
37
+ /** Keywords for the theme. */
38
+ keywords?: string;
39
+ /** Under which license this theme is published. */
40
+ license?: string;
41
+ /** The display name of this theme. */
42
+ name?: string;
43
+ /** The name of the qext file that was uploaded with this theme. */
44
+ qextFilename?: string;
45
+ /** The version from the qext file that was uploaded with this extension. */
46
+ qextVersion?: string;
47
+ /** Link to the theme source code. */
48
+ repository?: string;
49
+ /** Supplier of the theme. */
50
+ supplier?: string;
51
+ /** List of tags. */
52
+ tags?: string[];
53
+ readonly tenantId?: string;
54
+ /** The type of this theme (visualization, etc.). */
55
+ type?: string;
56
+ readonly updateAt?: string;
57
+ readonly userId?: string;
58
+ /** Version of the theme. */
59
+ version?: string;
60
+ };
61
+ type Themes = {
62
+ data: Theme[];
63
+ };
64
+ /**
65
+ * Lists all themes.
66
+ * @throws GetThemesHttpError
67
+ */
68
+ declare const getThemes: (options?: ApiCallOptions) => Promise<GetThemesHttpResponse>;
69
+ type GetThemesHttpResponse = {
70
+ data: Themes;
71
+ headers: Headers;
72
+ status: number;
73
+ };
74
+ type GetThemesHttpError = {
75
+ data: unknown;
76
+ headers: Headers;
77
+ status: number;
78
+ };
79
+ /**
80
+ * Creates a new theme. If a file is provided, the data field is not required.
81
+ * @param body an object with the body content
82
+ * @throws UploadThemeHttpError
83
+ */
84
+ declare const uploadTheme: (body: unknown, options?: ApiCallOptions) => Promise<UploadThemeHttpResponse>;
85
+ type UploadThemeHttpResponse = {
86
+ data: Theme;
87
+ headers: Headers;
88
+ status: number;
89
+ };
90
+ type UploadThemeHttpError = {
91
+ data: Error;
92
+ headers: Headers;
93
+ status: number;
94
+ };
95
+ /**
96
+ * Deletes a specific theme.
97
+ * @param id Theme identifier or its qextFilename.
98
+ * @throws DeleteThemeHttpError
99
+ */
100
+ declare const deleteTheme: (id: string, options?: ApiCallOptions) => Promise<DeleteThemeHttpResponse>;
101
+ type DeleteThemeHttpResponse = {
102
+ data: void;
103
+ headers: Headers;
104
+ status: number;
105
+ };
106
+ type DeleteThemeHttpError = {
107
+ data: Error;
108
+ headers: Headers;
109
+ status: number;
110
+ };
111
+ /**
112
+ * Returns a specific theme.
113
+ * @param id Theme identifier or its qextFilename
114
+ * @throws GetThemeHttpError
115
+ */
116
+ declare const getTheme: (id: string, options?: ApiCallOptions) => Promise<GetThemeHttpResponse>;
117
+ type GetThemeHttpResponse = {
118
+ data: Theme;
119
+ headers: Headers;
120
+ status: number;
121
+ };
122
+ type GetThemeHttpError = {
123
+ data: Error;
124
+ headers: Headers;
125
+ status: number;
126
+ };
127
+ /**
128
+ * Updates a specific theme with provided data. If a file is provided, the data field is not required.
129
+ * @param id Theme identifier or its qextFilename.
130
+ * @param body an object with the body content
131
+ * @throws PatchThemeHttpError
132
+ */
133
+ declare const patchTheme: (id: string, body: unknown, options?: ApiCallOptions) => Promise<PatchThemeHttpResponse>;
134
+ type PatchThemeHttpResponse = {
135
+ data: Themes;
136
+ headers: Headers;
137
+ status: number;
138
+ };
139
+ type PatchThemeHttpError = {
140
+ data: Error;
141
+ headers: Headers;
142
+ status: number;
143
+ };
144
+ /**
145
+ * Downloads the theme as an archive.
146
+ * @param id Theme identifier or its qextFilename
147
+ * @throws DownloadThemeHttpError
148
+ */
149
+ declare const downloadTheme: (id: string, options?: ApiCallOptions) => Promise<DownloadThemeHttpResponse>;
150
+ type DownloadThemeHttpResponse = {
151
+ data: void;
152
+ headers: Headers;
153
+ status: number;
154
+ };
155
+ type DownloadThemeHttpError = {
156
+ data: Error;
157
+ headers: Headers;
158
+ status: number;
159
+ };
160
+ /**
161
+ * Downloads a file from the theme archive.
162
+ * @param id Theme identifier or its qextFilename.
163
+ * @param filepath Path to the file archive for the specified theme archive. Folders separated with forward slashes.
164
+ * @throws DownloadFileFromThemeHttpError
165
+ */
166
+ declare const downloadFileFromTheme: (id: string, filepath: string, options?: ApiCallOptions) => Promise<DownloadFileFromThemeHttpResponse>;
167
+ type DownloadFileFromThemeHttpResponse = {
168
+ data: void;
169
+ headers: Headers;
170
+ status: number;
171
+ };
172
+ type DownloadFileFromThemeHttpError = {
173
+ data: Error;
174
+ headers: Headers;
175
+ status: number;
176
+ };
177
+ /**
178
+ * Clears the cache for themes api requests.
179
+ */
180
+ declare function clearCache(): void;
181
+ interface ThemesAPI {
182
+ /**
183
+ * Lists all themes.
184
+ * @throws GetThemesHttpError
185
+ */
186
+ getThemes: typeof getThemes;
187
+ /**
188
+ * Creates a new theme. If a file is provided, the data field is not required.
189
+ * @param body an object with the body content
190
+ * @throws UploadThemeHttpError
191
+ */
192
+ uploadTheme: typeof uploadTheme;
193
+ /**
194
+ * Deletes a specific theme.
195
+ * @param id Theme identifier or its qextFilename.
196
+ * @throws DeleteThemeHttpError
197
+ */
198
+ deleteTheme: typeof deleteTheme;
199
+ /**
200
+ * Returns a specific theme.
201
+ * @param id Theme identifier or its qextFilename
202
+ * @throws GetThemeHttpError
203
+ */
204
+ getTheme: typeof getTheme;
205
+ /**
206
+ * Updates a specific theme with provided data. If a file is provided, the data field is not required.
207
+ * @param id Theme identifier or its qextFilename.
208
+ * @param body an object with the body content
209
+ * @throws PatchThemeHttpError
210
+ */
211
+ patchTheme: typeof patchTheme;
212
+ /**
213
+ * Downloads the theme as an archive.
214
+ * @param id Theme identifier or its qextFilename
215
+ * @throws DownloadThemeHttpError
216
+ */
217
+ downloadTheme: typeof downloadTheme;
218
+ /**
219
+ * Downloads a file from the theme archive.
220
+ * @param id Theme identifier or its qextFilename.
221
+ * @param filepath Path to the file archive for the specified theme archive. Folders separated with forward slashes.
222
+ * @throws DownloadFileFromThemeHttpError
223
+ */
224
+ downloadFileFromTheme: typeof downloadFileFromTheme;
225
+ /**
226
+ * Clears the cache for themes api requests.
227
+ */
228
+ clearCache: typeof clearCache;
229
+ }
230
+ /**
231
+ * Functions for the themes api
232
+ */
233
+ declare const themesExport: ThemesAPI;
234
+
235
+ export { type DeleteThemeHttpError, type DeleteThemeHttpResponse, type DownloadFileFromThemeHttpError, type DownloadFileFromThemeHttpResponse, type DownloadThemeHttpError, type DownloadThemeHttpResponse, type Error, type GetThemeHttpError, type GetThemeHttpResponse, type GetThemesHttpError, type GetThemesHttpResponse, type Meta, type PatchThemeHttpError, type PatchThemeHttpResponse, type Theme, type Themes, type ThemesAPI, type UploadThemeHttpError, type UploadThemeHttpResponse, clearCache, themesExport as default, deleteTheme, downloadFileFromTheme, downloadTheme, getTheme, getThemes, patchTheme, uploadTheme };
package/themes.js ADDED
@@ -0,0 +1,74 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
+ require('./chunk-ZT4C7KCQ.js');
6
+
7
+ // src/public/rest/themes.ts
8
+ var getThemes = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "themes", {
9
+ method: "get",
10
+ pathTemplate: "/api/v1/themes",
11
+ options
12
+ });
13
+ var uploadTheme = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "themes", {
14
+ method: "post",
15
+ pathTemplate: "/api/v1/themes",
16
+ body,
17
+ options
18
+ });
19
+ var deleteTheme = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "themes", {
20
+ method: "delete",
21
+ pathTemplate: "/api/v1/themes/{id}",
22
+ pathVariables: { id },
23
+ options
24
+ });
25
+ var getTheme = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "themes", {
26
+ method: "get",
27
+ pathTemplate: "/api/v1/themes/{id}",
28
+ pathVariables: { id },
29
+ options
30
+ });
31
+ var patchTheme = async (id, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "themes", {
32
+ method: "patch",
33
+ pathTemplate: "/api/v1/themes/{id}",
34
+ pathVariables: { id },
35
+ body,
36
+ options
37
+ });
38
+ var downloadTheme = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "themes", {
39
+ method: "get",
40
+ pathTemplate: "/api/v1/themes/{id}/file",
41
+ pathVariables: { id },
42
+ options
43
+ });
44
+ var downloadFileFromTheme = async (id, filepath, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "themes", {
45
+ method: "get",
46
+ pathTemplate: "/api/v1/themes/{id}/file/{filepath}",
47
+ pathVariables: { id, filepath },
48
+ options
49
+ });
50
+ function clearCache() {
51
+ return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "themes");
52
+ }
53
+ var themesExport = {
54
+ getThemes,
55
+ uploadTheme,
56
+ deleteTheme,
57
+ getTheme,
58
+ patchTheme,
59
+ downloadTheme,
60
+ downloadFileFromTheme,
61
+ clearCache
62
+ };
63
+ var themes_default = themesExport;
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+ exports.clearCache = clearCache; exports.default = themes_default; exports.deleteTheme = deleteTheme; exports.downloadFileFromTheme = downloadFileFromTheme; exports.downloadTheme = downloadTheme; exports.getTheme = getTheme; exports.getThemes = getThemes; exports.patchTheme = patchTheme; exports.uploadTheme = uploadTheme;
package/themes.mjs ADDED
@@ -0,0 +1,74 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunk-3YE7EI7I.mjs";
5
+ import "./chunk-WM7FQU2U.mjs";
6
+
7
+ // src/public/rest/themes.ts
8
+ var getThemes = async (options) => invokeFetch("themes", {
9
+ method: "get",
10
+ pathTemplate: "/api/v1/themes",
11
+ options
12
+ });
13
+ var uploadTheme = async (body, options) => invokeFetch("themes", {
14
+ method: "post",
15
+ pathTemplate: "/api/v1/themes",
16
+ body,
17
+ options
18
+ });
19
+ var deleteTheme = async (id, options) => invokeFetch("themes", {
20
+ method: "delete",
21
+ pathTemplate: "/api/v1/themes/{id}",
22
+ pathVariables: { id },
23
+ options
24
+ });
25
+ var getTheme = async (id, options) => invokeFetch("themes", {
26
+ method: "get",
27
+ pathTemplate: "/api/v1/themes/{id}",
28
+ pathVariables: { id },
29
+ options
30
+ });
31
+ var patchTheme = async (id, body, options) => invokeFetch("themes", {
32
+ method: "patch",
33
+ pathTemplate: "/api/v1/themes/{id}",
34
+ pathVariables: { id },
35
+ body,
36
+ options
37
+ });
38
+ var downloadTheme = async (id, options) => invokeFetch("themes", {
39
+ method: "get",
40
+ pathTemplate: "/api/v1/themes/{id}/file",
41
+ pathVariables: { id },
42
+ options
43
+ });
44
+ var downloadFileFromTheme = async (id, filepath, options) => invokeFetch("themes", {
45
+ method: "get",
46
+ pathTemplate: "/api/v1/themes/{id}/file/{filepath}",
47
+ pathVariables: { id, filepath },
48
+ options
49
+ });
50
+ function clearCache() {
51
+ return clearApiCache("themes");
52
+ }
53
+ var themesExport = {
54
+ getThemes,
55
+ uploadTheme,
56
+ deleteTheme,
57
+ getTheme,
58
+ patchTheme,
59
+ downloadTheme,
60
+ downloadFileFromTheme,
61
+ clearCache
62
+ };
63
+ var themes_default = themesExport;
64
+ export {
65
+ clearCache,
66
+ themes_default as default,
67
+ deleteTheme,
68
+ downloadFileFromTheme,
69
+ downloadTheme,
70
+ getTheme,
71
+ getThemes,
72
+ patchTheme,
73
+ uploadTheme
74
+ };