@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/qix.js ADDED
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunk4ES65KO3js = require('./chunk-4ES65KO3.js');
5
+ require('./chunk-ZT4C7KCQ.js');
6
+
7
+
8
+
9
+ exports.default = _chunk4ES65KO3js.qix_default; exports.openAppSession = _chunk4ES65KO3js.openAppSession;
package/qix.mjs ADDED
@@ -0,0 +1,9 @@
1
+ import {
2
+ openAppSession,
3
+ qix_default
4
+ } from "./chunk-CKPJE4IA.mjs";
5
+ import "./chunk-WM7FQU2U.mjs";
6
+ export {
7
+ qix_default as default,
8
+ openAppSession
9
+ };
package/quotas.d.mts ADDED
@@ -0,0 +1,105 @@
1
+ import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
2
+ import './auth-types-nnUcWhuU.mjs';
3
+
4
+ type Error = {
5
+ /** The error code. */
6
+ code: string;
7
+ /** Summary of the problem. */
8
+ title: string;
9
+ };
10
+ type ErrorResponse = {
11
+ errors?: Error[];
12
+ };
13
+ type GetQuotaByIdResult = {
14
+ /** Quota item. */
15
+ data: Quota[];
16
+ };
17
+ type GetQuotasResult = {
18
+ /** Array of quota items. */
19
+ data: Quota[];
20
+ };
21
+ type Quota = {
22
+ /** The attributes of the quota. */
23
+ attributes: {
24
+ /** The quota limit. If there is no quota limit, -1 is returned. */
25
+ quota: number;
26
+ /** The unit of the quota limit. For memory quotas, the unit is always "bytes". For other discrete units, the item counted is used as unit, for example "spaces". */
27
+ unit: string;
28
+ /** The current quota usage, if applicable. This attribute is only present if it is requested using the reportUsage query parameter. */
29
+ usage?: number;
30
+ /** The warning thresholds at which "close to quota" warnings can be issued when exceeded. If omitted, no warning threshold shall be used. Currently, the array will contain only one threshold value. In the future, this may be extended. The threshold is a number between 0 and 1, relating to the quota limit. For example, a value of 0.9 means that a warning should be issued when exceeding 90% of the quota limit. */
31
+ warningThresholds?: number[];
32
+ };
33
+ /** The unique identifier of the quota item. For example, "app_mem_size", "app_upload_disk_size", or "shared_spaces". */
34
+ id: string;
35
+ /** The resource type of the quota item. Always equal to "quotas". */
36
+ type: string;
37
+ };
38
+ /**
39
+ * Returns all quota items for the tenant (provided in JWT).
40
+ * @param query an object with query parameters
41
+ * @throws GetQuotasHttpError
42
+ */
43
+ declare const getQuotas: (query: {
44
+ /** The Boolean flag indicating whether quota usage shall be part of the response. The default value is false (only limits returned). */
45
+ reportUsage?: boolean;
46
+ }, options?: ApiCallOptions) => Promise<GetQuotasHttpResponse>;
47
+ type GetQuotasHttpResponse = {
48
+ data: GetQuotasResult;
49
+ headers: Headers;
50
+ status: number;
51
+ };
52
+ type GetQuotasHttpError = {
53
+ data: ErrorResponse;
54
+ headers: Headers;
55
+ status: number;
56
+ };
57
+ /**
58
+ * Returns a specific quota item for the tenant (provided in JWT).
59
+ * @param id The unique identifier of the quota item. For example, "app_mem_size", "app_upload_disk_size", or "shared_spaces".
60
+ * @param query an object with query parameters
61
+ * @throws GetQuotaHttpError
62
+ */
63
+ declare const getQuota: (id: string, query: {
64
+ /** The Boolean flag indicating whether quota usage shall be part of the response. The default value is false (usage not included). */
65
+ reportUsage?: boolean;
66
+ }, options?: ApiCallOptions) => Promise<GetQuotaHttpResponse>;
67
+ type GetQuotaHttpResponse = {
68
+ data: GetQuotaByIdResult;
69
+ headers: Headers;
70
+ status: number;
71
+ };
72
+ type GetQuotaHttpError = {
73
+ data: ErrorResponse;
74
+ headers: Headers;
75
+ status: number;
76
+ };
77
+ /**
78
+ * Clears the cache for quotas api requests.
79
+ */
80
+ declare function clearCache(): void;
81
+ interface QuotasAPI {
82
+ /**
83
+ * Returns all quota items for the tenant (provided in JWT).
84
+ * @param query an object with query parameters
85
+ * @throws GetQuotasHttpError
86
+ */
87
+ getQuotas: typeof getQuotas;
88
+ /**
89
+ * Returns a specific quota item for the tenant (provided in JWT).
90
+ * @param id The unique identifier of the quota item. For example, "app_mem_size", "app_upload_disk_size", or "shared_spaces".
91
+ * @param query an object with query parameters
92
+ * @throws GetQuotaHttpError
93
+ */
94
+ getQuota: typeof getQuota;
95
+ /**
96
+ * Clears the cache for quotas api requests.
97
+ */
98
+ clearCache: typeof clearCache;
99
+ }
100
+ /**
101
+ * Functions for the quotas api
102
+ */
103
+ declare const quotasExport: QuotasAPI;
104
+
105
+ export { type Error, type ErrorResponse, type GetQuotaByIdResult, type GetQuotaHttpError, type GetQuotaHttpResponse, type GetQuotasHttpError, type GetQuotasHttpResponse, type GetQuotasResult, type Quota, type QuotasAPI, clearCache, quotasExport as default, getQuota, getQuotas };
package/quotas.d.ts ADDED
@@ -0,0 +1,105 @@
1
+ import { A as ApiCallOptions } from './global.types-hIvp-WdX.js';
2
+ import './auth-types-nnUcWhuU.js';
3
+
4
+ type Error = {
5
+ /** The error code. */
6
+ code: string;
7
+ /** Summary of the problem. */
8
+ title: string;
9
+ };
10
+ type ErrorResponse = {
11
+ errors?: Error[];
12
+ };
13
+ type GetQuotaByIdResult = {
14
+ /** Quota item. */
15
+ data: Quota[];
16
+ };
17
+ type GetQuotasResult = {
18
+ /** Array of quota items. */
19
+ data: Quota[];
20
+ };
21
+ type Quota = {
22
+ /** The attributes of the quota. */
23
+ attributes: {
24
+ /** The quota limit. If there is no quota limit, -1 is returned. */
25
+ quota: number;
26
+ /** The unit of the quota limit. For memory quotas, the unit is always "bytes". For other discrete units, the item counted is used as unit, for example "spaces". */
27
+ unit: string;
28
+ /** The current quota usage, if applicable. This attribute is only present if it is requested using the reportUsage query parameter. */
29
+ usage?: number;
30
+ /** The warning thresholds at which "close to quota" warnings can be issued when exceeded. If omitted, no warning threshold shall be used. Currently, the array will contain only one threshold value. In the future, this may be extended. The threshold is a number between 0 and 1, relating to the quota limit. For example, a value of 0.9 means that a warning should be issued when exceeding 90% of the quota limit. */
31
+ warningThresholds?: number[];
32
+ };
33
+ /** The unique identifier of the quota item. For example, "app_mem_size", "app_upload_disk_size", or "shared_spaces". */
34
+ id: string;
35
+ /** The resource type of the quota item. Always equal to "quotas". */
36
+ type: string;
37
+ };
38
+ /**
39
+ * Returns all quota items for the tenant (provided in JWT).
40
+ * @param query an object with query parameters
41
+ * @throws GetQuotasHttpError
42
+ */
43
+ declare const getQuotas: (query: {
44
+ /** The Boolean flag indicating whether quota usage shall be part of the response. The default value is false (only limits returned). */
45
+ reportUsage?: boolean;
46
+ }, options?: ApiCallOptions) => Promise<GetQuotasHttpResponse>;
47
+ type GetQuotasHttpResponse = {
48
+ data: GetQuotasResult;
49
+ headers: Headers;
50
+ status: number;
51
+ };
52
+ type GetQuotasHttpError = {
53
+ data: ErrorResponse;
54
+ headers: Headers;
55
+ status: number;
56
+ };
57
+ /**
58
+ * Returns a specific quota item for the tenant (provided in JWT).
59
+ * @param id The unique identifier of the quota item. For example, "app_mem_size", "app_upload_disk_size", or "shared_spaces".
60
+ * @param query an object with query parameters
61
+ * @throws GetQuotaHttpError
62
+ */
63
+ declare const getQuota: (id: string, query: {
64
+ /** The Boolean flag indicating whether quota usage shall be part of the response. The default value is false (usage not included). */
65
+ reportUsage?: boolean;
66
+ }, options?: ApiCallOptions) => Promise<GetQuotaHttpResponse>;
67
+ type GetQuotaHttpResponse = {
68
+ data: GetQuotaByIdResult;
69
+ headers: Headers;
70
+ status: number;
71
+ };
72
+ type GetQuotaHttpError = {
73
+ data: ErrorResponse;
74
+ headers: Headers;
75
+ status: number;
76
+ };
77
+ /**
78
+ * Clears the cache for quotas api requests.
79
+ */
80
+ declare function clearCache(): void;
81
+ interface QuotasAPI {
82
+ /**
83
+ * Returns all quota items for the tenant (provided in JWT).
84
+ * @param query an object with query parameters
85
+ * @throws GetQuotasHttpError
86
+ */
87
+ getQuotas: typeof getQuotas;
88
+ /**
89
+ * Returns a specific quota item for the tenant (provided in JWT).
90
+ * @param id The unique identifier of the quota item. For example, "app_mem_size", "app_upload_disk_size", or "shared_spaces".
91
+ * @param query an object with query parameters
92
+ * @throws GetQuotaHttpError
93
+ */
94
+ getQuota: typeof getQuota;
95
+ /**
96
+ * Clears the cache for quotas api requests.
97
+ */
98
+ clearCache: typeof clearCache;
99
+ }
100
+ /**
101
+ * Functions for the quotas api
102
+ */
103
+ declare const quotasExport: QuotasAPI;
104
+
105
+ export { type Error, type ErrorResponse, type GetQuotaByIdResult, type GetQuotaHttpError, type GetQuotaHttpResponse, type GetQuotasHttpError, type GetQuotasHttpResponse, type GetQuotasResult, type Quota, type QuotasAPI, clearCache, quotasExport as default, getQuota, getQuotas };
package/quotas.js ADDED
@@ -0,0 +1,31 @@
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/quotas.ts
8
+ var getQuotas = async (query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "quotas", {
9
+ method: "get",
10
+ pathTemplate: "/api/v1/quotas",
11
+ query,
12
+ options
13
+ });
14
+ var getQuota = async (id, query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "quotas", {
15
+ method: "get",
16
+ pathTemplate: "/api/v1/quotas/{id}",
17
+ pathVariables: { id },
18
+ query,
19
+ options
20
+ });
21
+ function clearCache() {
22
+ return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "quotas");
23
+ }
24
+ var quotasExport = { getQuotas, getQuota, clearCache };
25
+ var quotas_default = quotasExport;
26
+
27
+
28
+
29
+
30
+
31
+ exports.clearCache = clearCache; exports.default = quotas_default; exports.getQuota = getQuota; exports.getQuotas = getQuotas;
package/quotas.mjs ADDED
@@ -0,0 +1,31 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunk-3YE7EI7I.mjs";
5
+ import "./chunk-WM7FQU2U.mjs";
6
+
7
+ // src/public/rest/quotas.ts
8
+ var getQuotas = async (query, options) => invokeFetch("quotas", {
9
+ method: "get",
10
+ pathTemplate: "/api/v1/quotas",
11
+ query,
12
+ options
13
+ });
14
+ var getQuota = async (id, query, options) => invokeFetch("quotas", {
15
+ method: "get",
16
+ pathTemplate: "/api/v1/quotas/{id}",
17
+ pathVariables: { id },
18
+ query,
19
+ options
20
+ });
21
+ function clearCache() {
22
+ return clearApiCache("quotas");
23
+ }
24
+ var quotasExport = { getQuotas, getQuota, clearCache };
25
+ var quotas_default = quotasExport;
26
+ export {
27
+ clearCache,
28
+ quotas_default as default,
29
+ getQuota,
30
+ getQuotas
31
+ };
@@ -0,0 +1,222 @@
1
+ import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
2
+ import './auth-types-nnUcWhuU.mjs';
3
+
4
+ type Error = {
5
+ code: string;
6
+ detail?: string;
7
+ title: string;
8
+ };
9
+ type Errors = {
10
+ errors?: Error[];
11
+ traceId?: string;
12
+ };
13
+ type Href = {
14
+ href: string;
15
+ };
16
+ type PaginationLinks = SelfLink & {
17
+ next?: Href;
18
+ prev?: Href;
19
+ };
20
+ type PostTaskBody = TaskBase & {
21
+ /** Type of task being created - only contains the "scheduled_reload" value. Type value is not used for creating a schedule reload. It has been deprecated since 2022-04-05. */
22
+ type?: "scheduled_reload";
23
+ };
24
+ type PutTaskBody = TaskBase & {
25
+ /** Toggle for enabling and disabling the reload task */
26
+ state?: "Enabled" | "Disabled" | "Completed";
27
+ };
28
+ type SelfLink = {
29
+ self: Href;
30
+ };
31
+ type Task = TaskBase & {
32
+ /** The fortress ID of the application */
33
+ fortressId?: string;
34
+ /** The ID of the task. */
35
+ id: string;
36
+ /** The last time the task executed. */
37
+ lastExecutionTime?: string;
38
+ links: SelfLink;
39
+ /** The reason why the task was disabled. */
40
+ log?: string;
41
+ /** The next time the task will execute. */
42
+ nextExecutionTime?: string;
43
+ /** The space ID of the application */
44
+ spaceId?: string;
45
+ /** Toggle for enabling and disabling the reload task */
46
+ state: "Enabled" | "Disabled" | "Completed";
47
+ /** The ID of the tenant who owns the task. */
48
+ tenantId: string;
49
+ /** The ID of the user who owns the task. */
50
+ userId: string;
51
+ };
52
+ type TaskBase = {
53
+ /** The ID of the app. */
54
+ appId?: string;
55
+ /** A flag that indicates whether a reload is triggered when data of the app is changed */
56
+ autoReload?: boolean;
57
+ /** A flag that indicates whether it is a partial reload or not for the auto reload */
58
+ autoReloadPartial?: boolean;
59
+ /** The time that the task will stop recurring. If the time zone is missing, this is a combined date-time value expressing a time with a fixed UTC offset (formatted according to RFC3339). If a time zone is given, the zone offset must be omitted. */
60
+ endDateTime?: string;
61
+ /** The task is partial reload or not */
62
+ partial?: boolean;
63
+ /** List of RECUR lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events */
64
+ recurrence?: string[];
65
+ /** The time that the task execution start recurring. If the time zone is missing, this is a combined date-time value expressing a time with a fixed UTC offset (formatted according to RFC3339). If a time zone is given, the zone offset must be omitted. Field startDateTime should not be before the Unix epoch 00:00:00 UTC on 1 January 1970. Note that the empty string value with the empty recurrence array indicates the scheduled job is not set. */
66
+ startDateTime?: string;
67
+ /** The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. Europe/Zurich.) This field specifies the time zone in which the event start/end are expanded. If missing the start/end fields must specify a UTC offset in RFC3339 format. */
68
+ timeZone?: string;
69
+ };
70
+ type Tasks = {
71
+ data: Task[];
72
+ links: PaginationLinks;
73
+ };
74
+ /**
75
+ * Find and return the tasks that the user can access.
76
+ *
77
+ * @param query an object with query parameters
78
+ * @throws GetReloadTasksHttpError
79
+ */
80
+ declare const getReloadTasks: (query: {
81
+ /** The case sensitive string used to search for a task by app ID. */
82
+ appId?: string;
83
+ /** The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive). */
84
+ limit?: number;
85
+ /** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
86
+ next?: string;
87
+ /** The boolean value used to search for a task is partial or not */
88
+ partial?: boolean;
89
+ /** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
90
+ prev?: string;
91
+ }, options?: ApiCallOptions) => Promise<GetReloadTasksHttpResponse>;
92
+ type GetReloadTasksHttpResponse = {
93
+ data: Tasks;
94
+ headers: Headers;
95
+ status: number;
96
+ };
97
+ type GetReloadTasksHttpError = {
98
+ data: Errors;
99
+ headers: Headers;
100
+ status: number;
101
+ };
102
+ /**
103
+ * Create a task for a specified app.
104
+ *
105
+ * @param body an object with the body content
106
+ * @throws CreateReloadTaskHttpError
107
+ */
108
+ declare const createReloadTask: (body: PostTaskBody, options?: ApiCallOptions) => Promise<CreateReloadTaskHttpResponse>;
109
+ type CreateReloadTaskHttpResponse = {
110
+ data: Task;
111
+ headers: Headers;
112
+ status: number;
113
+ };
114
+ type CreateReloadTaskHttpError = {
115
+ data: Errors;
116
+ headers: Headers;
117
+ status: number;
118
+ };
119
+ /**
120
+ * Delete a task.
121
+ *
122
+ * @param taskId The unique identifier of the task.
123
+ * @throws DeleteReloadTaskHttpError
124
+ */
125
+ declare const deleteReloadTask: (taskId: string, options?: ApiCallOptions) => Promise<DeleteReloadTaskHttpResponse>;
126
+ type DeleteReloadTaskHttpResponse = {
127
+ data: void;
128
+ headers: Headers;
129
+ status: number;
130
+ };
131
+ type DeleteReloadTaskHttpError = {
132
+ data: Errors;
133
+ headers: Headers;
134
+ status: number;
135
+ };
136
+ /**
137
+ * Find and return a task.
138
+ *
139
+ * @param taskId The unique identifier of the task.
140
+ * @throws GetReloadTaskHttpError
141
+ */
142
+ declare const getReloadTask: (taskId: string, options?: ApiCallOptions) => Promise<GetReloadTaskHttpResponse>;
143
+ type GetReloadTaskHttpResponse = {
144
+ data: Task;
145
+ headers: Headers;
146
+ status: number;
147
+ };
148
+ type GetReloadTaskHttpError = {
149
+ data: Errors;
150
+ headers: Headers;
151
+ status: number;
152
+ };
153
+ /**
154
+ * Update an existing task.
155
+ *
156
+ * @param taskId The unique identifier of the task.
157
+ * @param body an object with the body content
158
+ * @throws UpdateReloadTaskHttpError
159
+ */
160
+ declare const updateReloadTask: (taskId: string, body: PutTaskBody, options?: ApiCallOptions) => Promise<UpdateReloadTaskHttpResponse>;
161
+ type UpdateReloadTaskHttpResponse = {
162
+ data: Task;
163
+ headers: Headers;
164
+ status: number;
165
+ };
166
+ type UpdateReloadTaskHttpError = {
167
+ data: Errors;
168
+ headers: Headers;
169
+ status: number;
170
+ };
171
+ /**
172
+ * Clears the cache for reload-tasks api requests.
173
+ */
174
+ declare function clearCache(): void;
175
+ interface ReloadTasksAPI {
176
+ /**
177
+ * Find and return the tasks that the user can access.
178
+ *
179
+ * @param query an object with query parameters
180
+ * @throws GetReloadTasksHttpError
181
+ */
182
+ getReloadTasks: typeof getReloadTasks;
183
+ /**
184
+ * Create a task for a specified app.
185
+ *
186
+ * @param body an object with the body content
187
+ * @throws CreateReloadTaskHttpError
188
+ */
189
+ createReloadTask: typeof createReloadTask;
190
+ /**
191
+ * Delete a task.
192
+ *
193
+ * @param taskId The unique identifier of the task.
194
+ * @throws DeleteReloadTaskHttpError
195
+ */
196
+ deleteReloadTask: typeof deleteReloadTask;
197
+ /**
198
+ * Find and return a task.
199
+ *
200
+ * @param taskId The unique identifier of the task.
201
+ * @throws GetReloadTaskHttpError
202
+ */
203
+ getReloadTask: typeof getReloadTask;
204
+ /**
205
+ * Update an existing task.
206
+ *
207
+ * @param taskId The unique identifier of the task.
208
+ * @param body an object with the body content
209
+ * @throws UpdateReloadTaskHttpError
210
+ */
211
+ updateReloadTask: typeof updateReloadTask;
212
+ /**
213
+ * Clears the cache for reload-tasks api requests.
214
+ */
215
+ clearCache: typeof clearCache;
216
+ }
217
+ /**
218
+ * Functions for the reload-tasks api
219
+ */
220
+ declare const reloadTasksExport: ReloadTasksAPI;
221
+
222
+ export { type CreateReloadTaskHttpError, type CreateReloadTaskHttpResponse, type DeleteReloadTaskHttpError, type DeleteReloadTaskHttpResponse, type Error, type Errors, type GetReloadTaskHttpError, type GetReloadTaskHttpResponse, type GetReloadTasksHttpError, type GetReloadTasksHttpResponse, type Href, type PaginationLinks, type PostTaskBody, type PutTaskBody, type ReloadTasksAPI, type SelfLink, type Task, type TaskBase, type Tasks, type UpdateReloadTaskHttpError, type UpdateReloadTaskHttpResponse, clearCache, createReloadTask, reloadTasksExport as default, deleteReloadTask, getReloadTask, getReloadTasks, updateReloadTask };