@qlik/api 1.31.0 → 1.32.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.
- package/api-keys.js +2 -2
- package/apps.js +2 -2
- package/assistants.d.ts +1301 -0
- package/assistants.js +273 -0
- package/audits.js +2 -2
- package/auth.js +2 -2
- package/automation-connections.d.ts +366 -0
- package/automation-connections.js +91 -0
- package/automations.js +2 -2
- package/automl-deployments.d.ts +97 -0
- package/automl-deployments.js +27 -0
- package/automl-predictions.d.ts +214 -0
- package/automl-predictions.js +72 -0
- package/brands.js +2 -2
- package/chunks/{GUU3KZGK.js → RCLKKVYB.js} +1 -1
- package/chunks/{YKZ2QYHN.js → VVD2DPKQ.js} +2 -2
- package/chunks/{KBSD75QL.js → YTT2FEVE.js} +1 -1
- package/collections.js +2 -2
- package/conditions.d.ts +662 -0
- package/conditions.js +113 -0
- package/consumption.d.ts +182 -0
- package/consumption.js +24 -0
- package/csp-origins.js +2 -2
- package/csrf-token.d.ts +62 -0
- package/csrf-token.js +23 -0
- package/data-alerts.d.ts +1004 -0
- package/data-alerts.js +155 -0
- package/data-assets.js +2 -2
- package/data-connections.js +2 -2
- package/data-credentials.js +2 -2
- package/data-files.js +2 -2
- package/data-qualities.d.ts +175 -0
- package/data-qualities.js +44 -0
- package/data-sets.d.ts +424 -0
- package/data-sets.js +75 -0
- package/data-sources.d.ts +268 -0
- package/data-sources.js +39 -0
- package/data-stores.d.ts +537 -0
- package/data-stores.js +108 -0
- package/dcaas.d.ts +192 -0
- package/dcaas.js +39 -0
- package/di-projects.d.ts +673 -0
- package/di-projects.js +164 -0
- package/encryption.d.ts +370 -0
- package/encryption.js +98 -0
- package/extensions.js +2 -2
- package/glossaries.js +2 -2
- package/groups.js +2 -2
- package/identity-providers.js +2 -2
- package/index.d.ts +105 -1
- package/index.js +556 -4
- package/items.js +2 -2
- package/knowledgebases.d.ts +890 -0
- package/knowledgebases.js +169 -0
- package/licenses.d.ts +1 -1
- package/licenses.js +2 -2
- package/lineage-graphs.d.ts +712 -0
- package/lineage-graphs.js +92 -0
- package/ml.d.ts +2628 -0
- package/ml.js +384 -0
- package/notes.d.ts +110 -0
- package/notes.js +31 -0
- package/notifications.d.ts +98 -0
- package/notifications.js +24 -0
- package/oauth-clients.js +2 -2
- package/oauth-tokens.d.ts +126 -0
- package/oauth-tokens.js +31 -0
- package/package.json +28 -2
- package/qix.d.ts +1 -1
- package/qix.js +2 -2
- package/questions.d.ts +364 -0
- package/questions.js +34 -0
- package/quotas.js +2 -2
- package/reload-tasks.js +2 -2
- package/reloads.js +2 -2
- package/report-templates.d.ts +287 -0
- package/report-templates.js +80 -0
- package/reports.js +2 -2
- package/roles.js +2 -2
- package/sharing-tasks.d.ts +952 -0
- package/sharing-tasks.js +105 -0
- package/spaces.js +2 -2
- package/tasks.d.ts +564 -0
- package/tasks.js +106 -0
- package/temp-contents.js +2 -2
- package/tenants.js +2 -2
- package/themes.js +2 -2
- package/transports.js +2 -2
- package/ui-config.d.ts +274 -0
- package/ui-config.js +77 -0
- package/users.js +2 -2
- package/web-integrations.js +2 -2
- package/web-notifications.js +2 -2
- package/webhooks.js +2 -2
- /package/chunks/{DLKLPD7T.js → LTNGXTXG.js} +0 -0
package/conditions.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clearApiCache,
|
|
3
|
+
invokeFetch
|
|
4
|
+
} from "./chunks/VVD2DPKQ.js";
|
|
5
|
+
import "./chunks/LTNGXTXG.js";
|
|
6
|
+
import "./chunks/2ZQ3ZX7F.js";
|
|
7
|
+
|
|
8
|
+
// src/public/rest/conditions.ts
|
|
9
|
+
var createCondition = async (body, options) => invokeFetch("conditions", {
|
|
10
|
+
method: "post",
|
|
11
|
+
pathTemplate: "/api/v1/conditions",
|
|
12
|
+
body,
|
|
13
|
+
contentType: "application/json",
|
|
14
|
+
options
|
|
15
|
+
});
|
|
16
|
+
var createConditionPreview = async (body, options) => invokeFetch("conditions", {
|
|
17
|
+
method: "post",
|
|
18
|
+
pathTemplate: "/api/v1/conditions/previews",
|
|
19
|
+
body,
|
|
20
|
+
contentType: "application/json",
|
|
21
|
+
options
|
|
22
|
+
});
|
|
23
|
+
var getConditionPreview = async (id, options) => invokeFetch("conditions", {
|
|
24
|
+
method: "get",
|
|
25
|
+
pathTemplate: "/api/v1/conditions/previews/{id}",
|
|
26
|
+
pathVariables: { id },
|
|
27
|
+
options
|
|
28
|
+
});
|
|
29
|
+
var getConditionsSettings = async (options) => invokeFetch("conditions", {
|
|
30
|
+
method: "get",
|
|
31
|
+
pathTemplate: "/api/v1/conditions/settings",
|
|
32
|
+
options
|
|
33
|
+
});
|
|
34
|
+
var setConditionsSettings = async (body, options) => invokeFetch("conditions", {
|
|
35
|
+
method: "put",
|
|
36
|
+
pathTemplate: "/api/v1/conditions/settings",
|
|
37
|
+
body,
|
|
38
|
+
contentType: "application/json",
|
|
39
|
+
options
|
|
40
|
+
});
|
|
41
|
+
var deleteCondition = async (id, options) => invokeFetch("conditions", {
|
|
42
|
+
method: "delete",
|
|
43
|
+
pathTemplate: "/api/v1/conditions/{id}",
|
|
44
|
+
pathVariables: { id },
|
|
45
|
+
options
|
|
46
|
+
});
|
|
47
|
+
var getCondition = async (id, options) => invokeFetch("conditions", {
|
|
48
|
+
method: "get",
|
|
49
|
+
pathTemplate: "/api/v1/conditions/{id}",
|
|
50
|
+
pathVariables: { id },
|
|
51
|
+
options
|
|
52
|
+
});
|
|
53
|
+
var patchCondition = async (id, body, options) => invokeFetch("conditions", {
|
|
54
|
+
method: "patch",
|
|
55
|
+
pathTemplate: "/api/v1/conditions/{id}",
|
|
56
|
+
pathVariables: { id },
|
|
57
|
+
body,
|
|
58
|
+
contentType: "application/json",
|
|
59
|
+
options
|
|
60
|
+
});
|
|
61
|
+
var createConditionEvaluation = async (id, body, options) => invokeFetch("conditions", {
|
|
62
|
+
method: "post",
|
|
63
|
+
pathTemplate: "/api/v1/conditions/{id}/evaluations",
|
|
64
|
+
pathVariables: { id },
|
|
65
|
+
body,
|
|
66
|
+
contentType: "application/json",
|
|
67
|
+
options
|
|
68
|
+
});
|
|
69
|
+
var deleteConditionEvaluation = async (id, evaluationId, options) => invokeFetch("conditions", {
|
|
70
|
+
method: "delete",
|
|
71
|
+
pathTemplate: "/api/v1/conditions/{id}/evaluations/{evaluationId}",
|
|
72
|
+
pathVariables: { id, evaluationId },
|
|
73
|
+
options
|
|
74
|
+
});
|
|
75
|
+
var getConditionEvaluation = async (id, evaluationId, options) => invokeFetch("conditions", {
|
|
76
|
+
method: "get",
|
|
77
|
+
pathTemplate: "/api/v1/conditions/{id}/evaluations/{evaluationId}",
|
|
78
|
+
pathVariables: { id, evaluationId },
|
|
79
|
+
options
|
|
80
|
+
});
|
|
81
|
+
function clearCache() {
|
|
82
|
+
return clearApiCache("conditions");
|
|
83
|
+
}
|
|
84
|
+
var conditionsExport = {
|
|
85
|
+
createCondition,
|
|
86
|
+
createConditionPreview,
|
|
87
|
+
getConditionPreview,
|
|
88
|
+
getConditionsSettings,
|
|
89
|
+
setConditionsSettings,
|
|
90
|
+
deleteCondition,
|
|
91
|
+
getCondition,
|
|
92
|
+
patchCondition,
|
|
93
|
+
createConditionEvaluation,
|
|
94
|
+
deleteConditionEvaluation,
|
|
95
|
+
getConditionEvaluation,
|
|
96
|
+
clearCache
|
|
97
|
+
};
|
|
98
|
+
var conditions_default = conditionsExport;
|
|
99
|
+
export {
|
|
100
|
+
clearCache,
|
|
101
|
+
createCondition,
|
|
102
|
+
createConditionEvaluation,
|
|
103
|
+
createConditionPreview,
|
|
104
|
+
conditions_default as default,
|
|
105
|
+
deleteCondition,
|
|
106
|
+
deleteConditionEvaluation,
|
|
107
|
+
getCondition,
|
|
108
|
+
getConditionEvaluation,
|
|
109
|
+
getConditionPreview,
|
|
110
|
+
getConditionsSettings,
|
|
111
|
+
patchCondition,
|
|
112
|
+
setConditionsSettings
|
|
113
|
+
};
|
package/consumption.d.ts
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
|
|
2
|
+
import './auth-types-DqfMuSRX.js';
|
|
3
|
+
|
|
4
|
+
type Enforcement = {
|
|
5
|
+
/** Resource action type to be blocked */
|
|
6
|
+
actionToBlock?: string;
|
|
7
|
+
/** Resource type to be blocked */
|
|
8
|
+
resourceType?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @example
|
|
12
|
+
* {
|
|
13
|
+
* errors: [
|
|
14
|
+
* {
|
|
15
|
+
* code: "HTTP-123",
|
|
16
|
+
* title: "short error message"
|
|
17
|
+
* }
|
|
18
|
+
* ],
|
|
19
|
+
* traceId: "7975401f3954aa47"
|
|
20
|
+
* }
|
|
21
|
+
*/
|
|
22
|
+
type ErrorResponse = {
|
|
23
|
+
errors?: SingleErrorResponse[];
|
|
24
|
+
traceId?: string;
|
|
25
|
+
};
|
|
26
|
+
type ExecutionResponse = {
|
|
27
|
+
blocked?: boolean;
|
|
28
|
+
/** RFC3339 timestamp when a block event was last emitted for this execution. */
|
|
29
|
+
blockedEventTime?: string;
|
|
30
|
+
/** The capacity limit. */
|
|
31
|
+
capacityLimit?: number;
|
|
32
|
+
closeToOverage?: boolean;
|
|
33
|
+
/** The id of the consumption report */
|
|
34
|
+
consumptionReportId?: string;
|
|
35
|
+
/** The field to determine if a resource should be visible on the client. */
|
|
36
|
+
customerFacing?: boolean;
|
|
37
|
+
/** Contains a list of resources that are blocked when quota for this is reached. */
|
|
38
|
+
enforcement?: Enforcement[];
|
|
39
|
+
/** The global usage. */
|
|
40
|
+
globalUsage?: number;
|
|
41
|
+
/** The guardrail limit. */
|
|
42
|
+
guardrailLimit?: number;
|
|
43
|
+
/** The local usage. */
|
|
44
|
+
localUsage?: number;
|
|
45
|
+
overage?: boolean;
|
|
46
|
+
/** RFC3339 timestamp when a overage event was last emitted for this execution. */
|
|
47
|
+
overageEventTime?: string;
|
|
48
|
+
/** The end of the associated period. */
|
|
49
|
+
periodEnd?: string;
|
|
50
|
+
/** The start of the associated period. */
|
|
51
|
+
periodStart?: string;
|
|
52
|
+
periodType?: "day" | "month" | "year" | "" | "fixed" | "minute";
|
|
53
|
+
/** The resource action. */
|
|
54
|
+
resourceAction?: "report.generated" | "reload" | "scheduledReload" | "executed" | "aggregation" | "import" | "updated" | "deployed" | "3rd_party_executed" | "standard_executed";
|
|
55
|
+
/** The resource id. */
|
|
56
|
+
resourceId?: string;
|
|
57
|
+
/** The resource type. */
|
|
58
|
+
resourceType?: "app" | "automations" | "space" | "data.volume.consumption";
|
|
59
|
+
scope?: ("user" | "tenant" | "resourceId" | "resourceType" | "resourceAction")[];
|
|
60
|
+
/** The map to the resource scope. */
|
|
61
|
+
scopeMapping?: string;
|
|
62
|
+
segments?: Record<string, unknown>[];
|
|
63
|
+
/** The resource task description. */
|
|
64
|
+
taskDescription?: string;
|
|
65
|
+
/** The resource task name. */
|
|
66
|
+
taskName?: string;
|
|
67
|
+
/** The tenant id. */
|
|
68
|
+
tenantId?: string;
|
|
69
|
+
/** Unit of measurement for the resource consumption */
|
|
70
|
+
unit?: string;
|
|
71
|
+
/** The RFC3339 timestamp when the resource was updated. */
|
|
72
|
+
updateTime?: string;
|
|
73
|
+
/** The user id. */
|
|
74
|
+
userId?: string;
|
|
75
|
+
};
|
|
76
|
+
type ExecutionsByTenantList = StandardListResponseProps & {
|
|
77
|
+
closeToOverage?: boolean;
|
|
78
|
+
data?: ExecutionResponse[];
|
|
79
|
+
globalUsageAvailable?: boolean;
|
|
80
|
+
links?: ListLinks;
|
|
81
|
+
overage?: boolean;
|
|
82
|
+
};
|
|
83
|
+
type ListLinks = {
|
|
84
|
+
next?: Page;
|
|
85
|
+
prev?: Page;
|
|
86
|
+
/** Object with Href to a particular element or set of elements */
|
|
87
|
+
self?: Self;
|
|
88
|
+
};
|
|
89
|
+
type Page = {
|
|
90
|
+
/** URL to particular set of elements */
|
|
91
|
+
href?: string;
|
|
92
|
+
/** Page unique token */
|
|
93
|
+
token?: string;
|
|
94
|
+
/** Page type, can be next or prev */
|
|
95
|
+
type?: "prev" | "next";
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Object with Href to a particular element or set of elements
|
|
99
|
+
*/
|
|
100
|
+
type Self = {
|
|
101
|
+
href?: string;
|
|
102
|
+
};
|
|
103
|
+
type SingleErrorResponse = {
|
|
104
|
+
/** Error code specific to usage-tracker. */
|
|
105
|
+
readonly code?: string;
|
|
106
|
+
/** Error cause. */
|
|
107
|
+
readonly detail?: string;
|
|
108
|
+
/** meta properties for an error. */
|
|
109
|
+
meta?: unknown;
|
|
110
|
+
/** Error title. */
|
|
111
|
+
readonly title?: string;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* properties that should be added to every list response
|
|
115
|
+
*/
|
|
116
|
+
type StandardListResponseProps = {
|
|
117
|
+
/** count of entries on the currently shown page */
|
|
118
|
+
currentPageCount: number;
|
|
119
|
+
/** total count of entries in the collection as a whole */
|
|
120
|
+
totalCount: number;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Retrieves the list of executions on an specific tenant
|
|
124
|
+
*
|
|
125
|
+
* @param query an object with query parameters
|
|
126
|
+
* @throws GetConsumptionExecutionsHttpError
|
|
127
|
+
*/
|
|
128
|
+
declare const getConsumptionExecutions: (query: {
|
|
129
|
+
actionToBlock?: string;
|
|
130
|
+
/** The advanced filtering to use for the query. Refer to [RFC 7644](https://datatracker.ietf.org/doc/rfc7644/) for the syntax.
|
|
131
|
+
*
|
|
132
|
+
* example `taskName eq "automation_run_ended" or taskName eq "report_triggered" or or taskName eq "dataVolumeAggregated"`
|
|
133
|
+
*
|
|
134
|
+
* The following fields are supported: `scope`, `resourcetype`, `resourceaction`, `resourceid`, `capacitylimit`,
|
|
135
|
+
* `localusage`, `globalusage`, `overage`, `blocked`, `periodstart`, `periodend`, `consumptionreportid`, `blockedeventtime`,
|
|
136
|
+
* `overageeventtime`, `taskname`, `taskdescription`, `userid`, `tenantid`, `customerfacing`, `actiontoblock` */
|
|
137
|
+
filter?: string;
|
|
138
|
+
/** Limit the returned result set */
|
|
139
|
+
limit?: number;
|
|
140
|
+
/** Offset for pagination - how many elements to skip */
|
|
141
|
+
offset?: number;
|
|
142
|
+
/** The cursor to the page of data. */
|
|
143
|
+
page?: string;
|
|
144
|
+
/** Specifies which periods to include regardless of the period type, start and end specified */
|
|
145
|
+
periodsToInclude?: ("current" | "previous")[];
|
|
146
|
+
sort?: ("periodstart" | "-periodstart" | "+periodstart" | "periodend" | "-periodend" | "+periodend")[];
|
|
147
|
+
}, options?: ApiCallOptions) => Promise<GetConsumptionExecutionsHttpResponse>;
|
|
148
|
+
type GetConsumptionExecutionsHttpResponse = {
|
|
149
|
+
data: ExecutionsByTenantList;
|
|
150
|
+
headers: Headers;
|
|
151
|
+
status: 200;
|
|
152
|
+
prev?: (options?: ApiCallOptions) => Promise<GetConsumptionExecutionsHttpResponse>;
|
|
153
|
+
next?: (options?: ApiCallOptions) => Promise<GetConsumptionExecutionsHttpResponse>;
|
|
154
|
+
};
|
|
155
|
+
type GetConsumptionExecutionsHttpError = {
|
|
156
|
+
data: ErrorResponse;
|
|
157
|
+
headers: Headers;
|
|
158
|
+
status: number;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Clears the cache for consumption api requests.
|
|
162
|
+
*/
|
|
163
|
+
declare function clearCache(): void;
|
|
164
|
+
interface ConsumptionAPI {
|
|
165
|
+
/**
|
|
166
|
+
* Retrieves the list of executions on an specific tenant
|
|
167
|
+
*
|
|
168
|
+
* @param query an object with query parameters
|
|
169
|
+
* @throws GetConsumptionExecutionsHttpError
|
|
170
|
+
*/
|
|
171
|
+
getConsumptionExecutions: typeof getConsumptionExecutions;
|
|
172
|
+
/**
|
|
173
|
+
* Clears the cache for consumption api requests.
|
|
174
|
+
*/
|
|
175
|
+
clearCache: typeof clearCache;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Functions for the consumption api
|
|
179
|
+
*/
|
|
180
|
+
declare const consumptionExport: ConsumptionAPI;
|
|
181
|
+
|
|
182
|
+
export { type ConsumptionAPI, type Enforcement, type ErrorResponse, type ExecutionResponse, type ExecutionsByTenantList, type GetConsumptionExecutionsHttpError, type GetConsumptionExecutionsHttpResponse, type ListLinks, type Page, type Self, type SingleErrorResponse, type StandardListResponseProps, clearCache, consumptionExport as default, getConsumptionExecutions };
|
package/consumption.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clearApiCache,
|
|
3
|
+
invokeFetch
|
|
4
|
+
} from "./chunks/VVD2DPKQ.js";
|
|
5
|
+
import "./chunks/LTNGXTXG.js";
|
|
6
|
+
import "./chunks/2ZQ3ZX7F.js";
|
|
7
|
+
|
|
8
|
+
// src/public/rest/consumption.ts
|
|
9
|
+
var getConsumptionExecutions = async (query, options) => invokeFetch("consumption", {
|
|
10
|
+
method: "get",
|
|
11
|
+
pathTemplate: "/api/v1/consumption/executions",
|
|
12
|
+
query,
|
|
13
|
+
options
|
|
14
|
+
});
|
|
15
|
+
function clearCache() {
|
|
16
|
+
return clearApiCache("consumption");
|
|
17
|
+
}
|
|
18
|
+
var consumptionExport = { getConsumptionExecutions, clearCache };
|
|
19
|
+
var consumption_default = consumptionExport;
|
|
20
|
+
export {
|
|
21
|
+
clearCache,
|
|
22
|
+
consumption_default as default,
|
|
23
|
+
getConsumptionExecutions
|
|
24
|
+
};
|
package/csp-origins.js
CHANGED
package/csrf-token.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
|
|
2
|
+
import './auth-types-DqfMuSRX.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* An error object.
|
|
6
|
+
*/
|
|
7
|
+
type Error = {
|
|
8
|
+
/** The error code. */
|
|
9
|
+
code: string;
|
|
10
|
+
/** The detailed error message */
|
|
11
|
+
detail?: string;
|
|
12
|
+
/** Non-standard information about the error */
|
|
13
|
+
meta?: unknown;
|
|
14
|
+
/** The http status code. */
|
|
15
|
+
status?: string;
|
|
16
|
+
/** The error title. */
|
|
17
|
+
title: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* A representation of the errors encountered from the HTTP request.
|
|
21
|
+
*/
|
|
22
|
+
type Errors = {
|
|
23
|
+
errors?: Error[];
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Returns CSRF token via the qlik-csrf-token header.
|
|
27
|
+
*
|
|
28
|
+
* @throws GetCsrfTokenHttpError
|
|
29
|
+
*/
|
|
30
|
+
declare const getCsrfToken: (options?: ApiCallOptions) => Promise<GetCsrfTokenHttpResponse>;
|
|
31
|
+
type GetCsrfTokenHttpResponse = {
|
|
32
|
+
data: void;
|
|
33
|
+
headers: Headers;
|
|
34
|
+
status: 204;
|
|
35
|
+
};
|
|
36
|
+
type GetCsrfTokenHttpError = {
|
|
37
|
+
data: Errors & unknown;
|
|
38
|
+
headers: Headers;
|
|
39
|
+
status: 400 | 404;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Clears the cache for csrf-token api requests.
|
|
43
|
+
*/
|
|
44
|
+
declare function clearCache(): void;
|
|
45
|
+
interface CsrfTokenAPI {
|
|
46
|
+
/**
|
|
47
|
+
* Returns CSRF token via the qlik-csrf-token header.
|
|
48
|
+
*
|
|
49
|
+
* @throws GetCsrfTokenHttpError
|
|
50
|
+
*/
|
|
51
|
+
getCsrfToken: typeof getCsrfToken;
|
|
52
|
+
/**
|
|
53
|
+
* Clears the cache for csrf-token api requests.
|
|
54
|
+
*/
|
|
55
|
+
clearCache: typeof clearCache;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Functions for the csrf-token api
|
|
59
|
+
*/
|
|
60
|
+
declare const csrfTokenExport: CsrfTokenAPI;
|
|
61
|
+
|
|
62
|
+
export { type CsrfTokenAPI, type Error, type Errors, type GetCsrfTokenHttpError, type GetCsrfTokenHttpResponse, clearCache, csrfTokenExport as default, getCsrfToken };
|
package/csrf-token.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clearApiCache,
|
|
3
|
+
invokeFetch
|
|
4
|
+
} from "./chunks/VVD2DPKQ.js";
|
|
5
|
+
import "./chunks/LTNGXTXG.js";
|
|
6
|
+
import "./chunks/2ZQ3ZX7F.js";
|
|
7
|
+
|
|
8
|
+
// src/public/rest/csrf-token.ts
|
|
9
|
+
var getCsrfToken = async (options) => invokeFetch("csrf-token", {
|
|
10
|
+
method: "get",
|
|
11
|
+
pathTemplate: "/api/v1/csrf-token",
|
|
12
|
+
options
|
|
13
|
+
});
|
|
14
|
+
function clearCache() {
|
|
15
|
+
return clearApiCache("csrf-token");
|
|
16
|
+
}
|
|
17
|
+
var csrfTokenExport = { getCsrfToken, clearCache };
|
|
18
|
+
var csrf_token_default = csrfTokenExport;
|
|
19
|
+
export {
|
|
20
|
+
clearCache,
|
|
21
|
+
csrf_token_default as default,
|
|
22
|
+
getCsrfToken
|
|
23
|
+
};
|