mtmsdk 0.0.47 → 0.0.49
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/dist/gomtmapi/@tanstack/react-query.gen.d.ts +2 -80
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/gomtmapi/@tanstack/react-query.gen.js +2 -176
- package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
- package/dist/gomtmapi/index.d.ts +2 -2
- package/dist/gomtmapi/index.d.ts.map +1 -1
- package/dist/gomtmapi/index.js +1 -1
- package/dist/gomtmapi/index.js.map +1 -1
- package/dist/gomtmapi/schemas.gen.d.ts +14 -328
- package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
- package/dist/gomtmapi/schemas.gen.js +14 -341
- package/dist/gomtmapi/schemas.gen.js.map +1 -1
- package/dist/gomtmapi/sdk.gen.d.ts +2 -80
- package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
- package/dist/gomtmapi/sdk.gen.js +1 -135
- package/dist/gomtmapi/sdk.gen.js.map +1 -1
- package/dist/gomtmapi/types.gen.d.ts +10 -437
- package/dist/gomtmapi/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.d.ts +8 -308
- package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.js +4 -232
- package/dist/gomtmapi/zod.gen.js.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +1 -29
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.js +1 -17
- package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
- package/dist/mtgate_api/index.d.ts +2 -2
- package/dist/mtgate_api/index.d.ts.map +1 -1
- package/dist/mtgate_api/index.js +1 -1
- package/dist/mtgate_api/index.js.map +1 -1
- package/dist/mtgate_api/sdk.gen.d.ts +1 -5
- package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtgate_api/sdk.gen.js +0 -4
- package/dist/mtgate_api/sdk.gen.js.map +1 -1
- package/dist/mtgate_api/types.gen.d.ts +0 -6
- package/dist/mtgate_api/types.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.d.ts +0 -5
- package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.js +0 -5
- package/dist/mtgate_api/zod.gen.js.map +1 -1
- package/dist/mtmai_api/index.d.ts +2 -2
- package/dist/mtmai_api/index.d.ts.map +1 -1
- package/dist/mtmai_api/index.js +1 -1
- package/dist/mtmai_api/index.js.map +1 -1
- package/dist/mtmai_api/zod.gen.d.ts +96 -96
- package/dist/openclaw/client-info.d.ts +0 -18
- package/dist/openclaw/client-info.d.ts.map +1 -1
- package/dist/openclaw/client-info.js +0 -6
- package/dist/openclaw/client-info.js.map +1 -1
- package/dist/openclaw/device-auth-utils.d.ts +3 -4
- package/dist/openclaw/device-auth-utils.d.ts.map +1 -1
- package/dist/openclaw/device-auth-utils.js +4 -8
- package/dist/openclaw/device-auth-utils.js.map +1 -1
- package/dist/openclaw/device-auth.d.ts.map +1 -1
- package/dist/openclaw/device-auth.js +5 -2
- package/dist/openclaw/device-auth.js.map +1 -1
- package/dist/openclaw/device-identity.js +2 -2
- package/dist/openclaw/device-identity.js.map +1 -1
- package/dist/openclaw/gateway.d.ts +19 -5
- package/dist/openclaw/gateway.d.ts.map +1 -1
- package/dist/openclaw/gateway.js +75 -37
- package/dist/openclaw/gateway.js.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.d.ts +36 -8
- package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.js +22 -6
- package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
- package/dist/sbmng/index.d.ts +2 -2
- package/dist/sbmng/index.d.ts.map +1 -1
- package/dist/sbmng/index.js +1 -1
- package/dist/sbmng/index.js.map +1 -1
- package/dist/sbmng/schemas.gen.d.ts +97 -34
- package/dist/sbmng/schemas.gen.d.ts.map +1 -1
- package/dist/sbmng/schemas.gen.js +120 -49
- package/dist/sbmng/schemas.gen.js.map +1 -1
- package/dist/sbmng/sdk.gen.d.ts +7 -3
- package/dist/sbmng/sdk.gen.d.ts.map +1 -1
- package/dist/sbmng/sdk.gen.js +11 -3
- package/dist/sbmng/sdk.gen.js.map +1 -1
- package/dist/sbmng/types.gen.d.ts +82 -30
- package/dist/sbmng/types.gen.d.ts.map +1 -1
- package/dist/supabase/schema/index.d.ts +0 -8
- package/dist/supabase/schema/index.d.ts.map +1 -1
- package/dist/supabase/schema/index.js +0 -5
- package/dist/supabase/schema/index.js.map +1 -1
- package/dist/supabase/supabase-client.d.ts +900 -719
- package/dist/supabase/supabase-client.d.ts.map +1 -1
- package/dist/supabase/supabase.d.ts +1836 -1474
- package/dist/supabase/supabase.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-query.js +2 -1
- package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -1
- package/dist/types/database.schemas.d.ts +999 -920
- package/dist/types/database.schemas.d.ts.map +1 -1
- package/dist/types/database.schemas.js +739 -435
- package/dist/types/database.schemas.js.map +1 -1
- package/dist/types/database.types.d.ts +919 -736
- package/dist/types/database.types.d.ts.map +1 -1
- package/dist/types/database.types.js +18 -2
- package/dist/types/database.types.js.map +1 -1
- package/dist/types/index.d.ts +35 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +4 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +4 -3
- package/src/gomtmapi/@tanstack/react-query.gen.ts +3 -185
- package/src/gomtmapi/index.ts +2 -2
- package/src/gomtmapi/schemas.gen.ts +14 -356
- package/src/gomtmapi/sdk.gen.ts +2 -144
- package/src/gomtmapi/types.gen.ts +10 -492
- package/src/gomtmapi/zod.gen.ts +4 -263
- package/src/mtgate_api/@tanstack/react-query.gen.ts +2 -20
- package/src/mtgate_api/index.ts +2 -2
- package/src/mtgate_api/sdk.gen.ts +1 -6
- package/src/mtgate_api/types.gen.ts +0 -7
- package/src/mtgate_api/zod.gen.ts +0 -6
- package/src/mtmai_api/index.ts +2 -2
- package/src/openclaw/client-info.ts +0 -9
- package/src/openclaw/device-auth-utils.ts +7 -12
- package/src/openclaw/device-auth.ts +5 -2
- package/src/openclaw/device-identity.ts +2 -2
- package/src/openclaw/gateway.ts +96 -50
- package/src/sbmng/@tanstack/react-query.gen.ts +25 -7
- package/src/sbmng/index.ts +2 -2
- package/src/sbmng/schemas.gen.ts +121 -49
- package/src/sbmng/sdk.gen.ts +13 -4
- package/src/sbmng/types.gen.ts +87 -30
- package/src/supabase/schema/index.ts +0 -5
- package/src/supabase/use-sb-query/use-rpc-query.ts +2 -1
- package/src/types/database.schemas.ts +948 -598
- package/src/types/database.types.ts +864 -674
- package/src/types/index.ts +20 -4
- package/dist/api_hatchet/@tanstack/react-query.gen.d.ts +0 -3017
- package/dist/api_hatchet/@tanstack/react-query.gen.d.ts.map +0 -1
- package/dist/api_hatchet/@tanstack/react-query.gen.js +0 -2776
- package/dist/api_hatchet/@tanstack/react-query.gen.js.map +0 -1
- package/dist/api_hatchet/client/client.gen.d.ts +0 -3
- package/dist/api_hatchet/client/client.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/client.gen.js +0 -236
- package/dist/api_hatchet/client/client.gen.js.map +0 -1
- package/dist/api_hatchet/client/index.d.ts +0 -9
- package/dist/api_hatchet/client/index.d.ts.map +0 -1
- package/dist/api_hatchet/client/index.js +0 -7
- package/dist/api_hatchet/client/index.js.map +0 -1
- package/dist/api_hatchet/client/types.gen.d.ts +0 -118
- package/dist/api_hatchet/client/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/types.gen.js +0 -3
- package/dist/api_hatchet/client/types.gen.js.map +0 -1
- package/dist/api_hatchet/client/utils.gen.d.ts +0 -34
- package/dist/api_hatchet/client/utils.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/utils.gen.js +0 -232
- package/dist/api_hatchet/client/utils.gen.js.map +0 -1
- package/dist/api_hatchet/client.gen.d.ts +0 -13
- package/dist/api_hatchet/client.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client.gen.js +0 -4
- package/dist/api_hatchet/client.gen.js.map +0 -1
- package/dist/api_hatchet/core/auth.gen.d.ts +0 -19
- package/dist/api_hatchet/core/auth.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/auth.gen.js +0 -15
- package/dist/api_hatchet/core/auth.gen.js.map +0 -1
- package/dist/api_hatchet/core/bodySerializer.gen.d.ts +0 -26
- package/dist/api_hatchet/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/bodySerializer.gen.js +0 -58
- package/dist/api_hatchet/core/bodySerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/params.gen.d.ts +0 -44
- package/dist/api_hatchet/core/params.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/params.gen.js +0 -101
- package/dist/api_hatchet/core/params.gen.js.map +0 -1
- package/dist/api_hatchet/core/pathSerializer.gen.d.ts +0 -34
- package/dist/api_hatchet/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/pathSerializer.gen.js +0 -115
- package/dist/api_hatchet/core/pathSerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts +0 -19
- package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/queryKeySerializer.gen.js +0 -100
- package/dist/api_hatchet/core/queryKeySerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/serverSentEvents.gen.d.ts +0 -72
- package/dist/api_hatchet/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/serverSentEvents.gen.js +0 -138
- package/dist/api_hatchet/core/serverSentEvents.gen.js.map +0 -1
- package/dist/api_hatchet/core/types.gen.d.ts +0 -79
- package/dist/api_hatchet/core/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/types.gen.js +0 -3
- package/dist/api_hatchet/core/types.gen.js.map +0 -1
- package/dist/api_hatchet/core/utils.gen.d.ts +0 -20
- package/dist/api_hatchet/core/utils.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/utils.gen.js +0 -88
- package/dist/api_hatchet/core/utils.gen.js.map +0 -1
- package/dist/api_hatchet/index.d.ts +0 -3
- package/dist/api_hatchet/index.d.ts.map +0 -1
- package/dist/api_hatchet/index.js +0 -4
- package/dist/api_hatchet/index.js.map +0 -1
- package/dist/api_hatchet/schemas.gen.d.ts +0 -4068
- package/dist/api_hatchet/schemas.gen.d.ts.map +0 -1
- package/dist/api_hatchet/schemas.gen.js +0 -4743
- package/dist/api_hatchet/schemas.gen.js.map +0 -1
- package/dist/api_hatchet/sdk.gen.d.ts +0 -784
- package/dist/api_hatchet/sdk.gen.d.ts.map +0 -1
- package/dist/api_hatchet/sdk.gen.js +0 -1849
- package/dist/api_hatchet/sdk.gen.js.map +0 -1
- package/dist/api_hatchet/types.gen.d.ts +0 -6861
- package/dist/api_hatchet/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/types.gen.js +0 -209
- package/dist/api_hatchet/types.gen.js.map +0 -1
- package/dist/api_hatchet/zod.gen.d.ts +0 -10429
- package/dist/api_hatchet/zod.gen.d.ts.map +0 -1
- package/dist/api_hatchet/zod.gen.js +0 -2766
- package/dist/api_hatchet/zod.gen.js.map +0 -1
- package/dist/openclaw/uuid.d.ts +0 -6
- package/dist/openclaw/uuid.d.ts.map +0 -1
- package/dist/openclaw/uuid.js +0 -39
- package/dist/openclaw/uuid.js.map +0 -1
- package/dist/types/rpc.schemas.d.ts +0 -52
- package/dist/types/rpc.schemas.d.ts.map +0 -1
- package/dist/types/rpc.schemas.js +0 -108
- package/dist/types/rpc.schemas.js.map +0 -1
- package/src/api_hatchet/@tanstack/react-query.gen.ts +0 -3025
- package/src/api_hatchet/client/client.gen.ts +0 -311
- package/src/api_hatchet/client/index.ts +0 -25
- package/src/api_hatchet/client/types.gen.ts +0 -241
- package/src/api_hatchet/client/utils.gen.ts +0 -332
- package/src/api_hatchet/client.gen.ts +0 -16
- package/src/api_hatchet/core/auth.gen.ts +0 -42
- package/src/api_hatchet/core/bodySerializer.gen.ts +0 -100
- package/src/api_hatchet/core/params.gen.ts +0 -176
- package/src/api_hatchet/core/pathSerializer.gen.ts +0 -181
- package/src/api_hatchet/core/queryKeySerializer.gen.ts +0 -136
- package/src/api_hatchet/core/serverSentEvents.gen.ts +0 -266
- package/src/api_hatchet/core/types.gen.ts +0 -118
- package/src/api_hatchet/core/utils.gen.ts +0 -143
- package/src/api_hatchet/index.ts +0 -4
- package/src/api_hatchet/schemas.gen.ts +0 -4961
- package/src/api_hatchet/sdk.gen.ts +0 -1994
- package/src/api_hatchet/types.gen.ts +0 -7688
- package/src/api_hatchet/zod.gen.ts +0 -3230
- package/src/openclaw/uuid.ts +0 -48
- package/src/types/rpc.schemas.ts +0 -142
|
@@ -1,2776 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import { infiniteQueryOptions, queryOptions } from '@tanstack/react-query';
|
|
3
|
-
import { client } from '../client.gen';
|
|
4
|
-
import { alertEmailGroupCreate, alertEmailGroupDelete, alertEmailGroupList, alertEmailGroupUpdate, apiTokenCreate, apiTokenList, apiTokenUpdateRevoke, cloudMetadataGet, cronWorkflowList, cronWorkflowTriggerCreate, eventCreate, eventCreateBulk, eventDataGet, eventGet, eventKeyList, eventList, eventUpdateCancel, eventUpdateReplay, infoGetVersion, livenessGet, logLineList, metadataGet, metadataListIntegrations, monitoringPostRunProbe, rateLimitList, readinessGet, scheduledWorkflowRunCreate, slackWebhookDelete, slackWebhookList, snsCreate, snsDelete, snsList, snsUpdate, stepRunGet, stepRunGetSchema, stepRunListArchives, stepRunListEvents, stepRunUpdateCancel, stepRunUpdateRerun, tenantAlertingSettingsGet, tenantCreate, tenantGet, tenantGetPrometheusMetrics, tenantGetQueueMetrics, tenantGetStepRunQueueMetrics, tenantGetTaskStats, tenantInviteAccept, tenantInviteCreate, tenantInviteDelete, tenantInviteList, tenantInviteReject, tenantInviteUpdate, tenantMemberDelete, tenantMemberList, tenantMembershipsList, tenantMemberUpdate, tenantResourcePolicyGet, tenantUpdate, userCreate, userGetCurrent, userListTenantInvites, userUpdateGithubOauthCallback, userUpdateGithubOauthStart, userUpdateGoogleOauthCallback, userUpdateGoogleOauthStart, userUpdateLogin, userUpdateLogout, userUpdatePassword, userUpdateSlackOauthCallback, userUpdateSlackOauthStart, v1CelDebug, v1DagListTasks, v1EventKeyList, v1EventList, v1FilterCreate, v1FilterDelete, v1FilterGet, v1FilterList, v1FilterUpdate, v1LogLineList, v1TaskCancel, v1TaskEventList, v1TaskGet, v1TaskGetPointMetrics, v1TaskListStatusMetrics, v1TaskReplay, v1WebhookCreate, v1WebhookDelete, v1WebhookGet, v1WebhookList, v1WebhookReceive, v1WebhookUpdate, v1WorkflowRunCreate, v1WorkflowRunDisplayNamesList, v1WorkflowRunExternalIdsList, v1WorkflowRunGet, v1WorkflowRunGetStatus, v1WorkflowRunGetTimings, v1WorkflowRunList, v1WorkflowRunTaskEventsList, webhookCreate, webhookDelete, webhookList, webhookRequestsList, workerGet, workerList, workerUpdate, workflowCronDelete, workflowCronGet, workflowCronUpdate, workflowDelete, workflowGet, workflowGetMetrics, workflowGetWorkersCount, workflowList, workflowRunCancel, workflowRunCreate, workflowRunGet, workflowRunGetInput, workflowRunGetMetrics, workflowRunGetShape, workflowRunList, workflowRunListStepRunEvents, workflowRunUpdateReplay, workflowScheduledDelete, workflowScheduledGet, workflowScheduledList, workflowUpdate, workflowVersionGet } from '../sdk.gen';
|
|
5
|
-
const createQueryKey = (id, options, infinite, tags) => {
|
|
6
|
-
const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
|
|
7
|
-
if (infinite) {
|
|
8
|
-
params._infinite = infinite;
|
|
9
|
-
}
|
|
10
|
-
if (tags) {
|
|
11
|
-
params.tags = tags;
|
|
12
|
-
}
|
|
13
|
-
if (options?.body) {
|
|
14
|
-
params.body = options.body;
|
|
15
|
-
}
|
|
16
|
-
if (options?.headers) {
|
|
17
|
-
params.headers = options.headers;
|
|
18
|
-
}
|
|
19
|
-
if (options?.path) {
|
|
20
|
-
params.path = options.path;
|
|
21
|
-
}
|
|
22
|
-
if (options?.query) {
|
|
23
|
-
params.query = options.query;
|
|
24
|
-
}
|
|
25
|
-
return [params];
|
|
26
|
-
};
|
|
27
|
-
export const v1TaskGetQueryKey = (options) => createQueryKey('v1TaskGet', options);
|
|
28
|
-
/**
|
|
29
|
-
* Get a task
|
|
30
|
-
*
|
|
31
|
-
* Get a task by id
|
|
32
|
-
*/
|
|
33
|
-
export const v1TaskGetOptions = (options) => queryOptions({
|
|
34
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
35
|
-
const { data } = await v1TaskGet({
|
|
36
|
-
...options,
|
|
37
|
-
...queryKey[0],
|
|
38
|
-
signal,
|
|
39
|
-
throwOnError: true
|
|
40
|
-
});
|
|
41
|
-
return data;
|
|
42
|
-
},
|
|
43
|
-
queryKey: v1TaskGetQueryKey(options)
|
|
44
|
-
});
|
|
45
|
-
export const v1TaskEventListQueryKey = (options) => createQueryKey('v1TaskEventList', options);
|
|
46
|
-
/**
|
|
47
|
-
* List events for a task
|
|
48
|
-
*
|
|
49
|
-
* List events for a task
|
|
50
|
-
*/
|
|
51
|
-
export const v1TaskEventListOptions = (options) => queryOptions({
|
|
52
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
53
|
-
const { data } = await v1TaskEventList({
|
|
54
|
-
...options,
|
|
55
|
-
...queryKey[0],
|
|
56
|
-
signal,
|
|
57
|
-
throwOnError: true
|
|
58
|
-
});
|
|
59
|
-
return data;
|
|
60
|
-
},
|
|
61
|
-
queryKey: v1TaskEventListQueryKey(options)
|
|
62
|
-
});
|
|
63
|
-
const createInfiniteParams = (queryKey, page) => {
|
|
64
|
-
const params = { ...queryKey[0] };
|
|
65
|
-
if (page.body) {
|
|
66
|
-
params.body = {
|
|
67
|
-
...queryKey[0].body,
|
|
68
|
-
...page.body
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
if (page.headers) {
|
|
72
|
-
params.headers = {
|
|
73
|
-
...queryKey[0].headers,
|
|
74
|
-
...page.headers
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
if (page.path) {
|
|
78
|
-
params.path = {
|
|
79
|
-
...queryKey[0].path,
|
|
80
|
-
...page.path
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
if (page.query) {
|
|
84
|
-
params.query = {
|
|
85
|
-
...queryKey[0].query,
|
|
86
|
-
...page.query
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
return params;
|
|
90
|
-
};
|
|
91
|
-
export const v1TaskEventListInfiniteQueryKey = (options) => createQueryKey('v1TaskEventList', options, true);
|
|
92
|
-
/**
|
|
93
|
-
* List events for a task
|
|
94
|
-
*
|
|
95
|
-
* List events for a task
|
|
96
|
-
*/
|
|
97
|
-
export const v1TaskEventListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
98
|
-
// @ts-ignore
|
|
99
|
-
{
|
|
100
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
101
|
-
// @ts-ignore
|
|
102
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
103
|
-
query: {
|
|
104
|
-
offset: pageParam
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
const params = createInfiniteParams(queryKey, page);
|
|
108
|
-
const { data } = await v1TaskEventList({
|
|
109
|
-
...options,
|
|
110
|
-
...params,
|
|
111
|
-
signal,
|
|
112
|
-
throwOnError: true
|
|
113
|
-
});
|
|
114
|
-
return data;
|
|
115
|
-
},
|
|
116
|
-
queryKey: v1TaskEventListInfiniteQueryKey(options)
|
|
117
|
-
});
|
|
118
|
-
export const v1LogLineListQueryKey = (options) => createQueryKey('v1LogLineList', options);
|
|
119
|
-
/**
|
|
120
|
-
* List log lines
|
|
121
|
-
*
|
|
122
|
-
* Lists log lines for a task
|
|
123
|
-
*/
|
|
124
|
-
export const v1LogLineListOptions = (options) => queryOptions({
|
|
125
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
126
|
-
const { data } = await v1LogLineList({
|
|
127
|
-
...options,
|
|
128
|
-
...queryKey[0],
|
|
129
|
-
signal,
|
|
130
|
-
throwOnError: true
|
|
131
|
-
});
|
|
132
|
-
return data;
|
|
133
|
-
},
|
|
134
|
-
queryKey: v1LogLineListQueryKey(options)
|
|
135
|
-
});
|
|
136
|
-
/**
|
|
137
|
-
* Cancel tasks
|
|
138
|
-
*
|
|
139
|
-
* Cancel tasks
|
|
140
|
-
*/
|
|
141
|
-
export const v1TaskCancelMutation = (options) => {
|
|
142
|
-
const mutationOptions = {
|
|
143
|
-
mutationFn: async (fnOptions) => {
|
|
144
|
-
const { data } = await v1TaskCancel({
|
|
145
|
-
...options,
|
|
146
|
-
...fnOptions,
|
|
147
|
-
throwOnError: true
|
|
148
|
-
});
|
|
149
|
-
return data;
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
return mutationOptions;
|
|
153
|
-
};
|
|
154
|
-
/**
|
|
155
|
-
* Replay tasks
|
|
156
|
-
*
|
|
157
|
-
* Replay tasks
|
|
158
|
-
*/
|
|
159
|
-
export const v1TaskReplayMutation = (options) => {
|
|
160
|
-
const mutationOptions = {
|
|
161
|
-
mutationFn: async (fnOptions) => {
|
|
162
|
-
const { data } = await v1TaskReplay({
|
|
163
|
-
...options,
|
|
164
|
-
...fnOptions,
|
|
165
|
-
throwOnError: true
|
|
166
|
-
});
|
|
167
|
-
return data;
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
return mutationOptions;
|
|
171
|
-
};
|
|
172
|
-
export const v1DagListTasksQueryKey = (options) => createQueryKey('v1DagListTasks', options);
|
|
173
|
-
/**
|
|
174
|
-
* List tasks
|
|
175
|
-
*
|
|
176
|
-
* Lists all tasks that belong a specific list of dags
|
|
177
|
-
*/
|
|
178
|
-
export const v1DagListTasksOptions = (options) => queryOptions({
|
|
179
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
180
|
-
const { data } = await v1DagListTasks({
|
|
181
|
-
...options,
|
|
182
|
-
...queryKey[0],
|
|
183
|
-
signal,
|
|
184
|
-
throwOnError: true
|
|
185
|
-
});
|
|
186
|
-
return data;
|
|
187
|
-
},
|
|
188
|
-
queryKey: v1DagListTasksQueryKey(options)
|
|
189
|
-
});
|
|
190
|
-
export const v1WorkflowRunListQueryKey = (options) => createQueryKey('v1WorkflowRunList', options);
|
|
191
|
-
/**
|
|
192
|
-
* List workflow runs
|
|
193
|
-
*
|
|
194
|
-
* Lists workflow runs for a tenant.
|
|
195
|
-
*/
|
|
196
|
-
export const v1WorkflowRunListOptions = (options) => queryOptions({
|
|
197
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
198
|
-
const { data } = await v1WorkflowRunList({
|
|
199
|
-
...options,
|
|
200
|
-
...queryKey[0],
|
|
201
|
-
signal,
|
|
202
|
-
throwOnError: true
|
|
203
|
-
});
|
|
204
|
-
return data;
|
|
205
|
-
},
|
|
206
|
-
queryKey: v1WorkflowRunListQueryKey(options)
|
|
207
|
-
});
|
|
208
|
-
export const v1WorkflowRunListInfiniteQueryKey = (options) => createQueryKey('v1WorkflowRunList', options, true);
|
|
209
|
-
/**
|
|
210
|
-
* List workflow runs
|
|
211
|
-
*
|
|
212
|
-
* Lists workflow runs for a tenant.
|
|
213
|
-
*/
|
|
214
|
-
export const v1WorkflowRunListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
215
|
-
// @ts-ignore
|
|
216
|
-
{
|
|
217
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
218
|
-
// @ts-ignore
|
|
219
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
220
|
-
query: {
|
|
221
|
-
offset: pageParam
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
const params = createInfiniteParams(queryKey, page);
|
|
225
|
-
const { data } = await v1WorkflowRunList({
|
|
226
|
-
...options,
|
|
227
|
-
...params,
|
|
228
|
-
signal,
|
|
229
|
-
throwOnError: true
|
|
230
|
-
});
|
|
231
|
-
return data;
|
|
232
|
-
},
|
|
233
|
-
queryKey: v1WorkflowRunListInfiniteQueryKey(options)
|
|
234
|
-
});
|
|
235
|
-
export const v1WorkflowRunDisplayNamesListQueryKey = (options) => createQueryKey('v1WorkflowRunDisplayNamesList', options);
|
|
236
|
-
/**
|
|
237
|
-
* List workflow runs
|
|
238
|
-
*
|
|
239
|
-
* Lists displayable names of workflow runs for a tenant
|
|
240
|
-
*/
|
|
241
|
-
export const v1WorkflowRunDisplayNamesListOptions = (options) => queryOptions({
|
|
242
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
243
|
-
const { data } = await v1WorkflowRunDisplayNamesList({
|
|
244
|
-
...options,
|
|
245
|
-
...queryKey[0],
|
|
246
|
-
signal,
|
|
247
|
-
throwOnError: true
|
|
248
|
-
});
|
|
249
|
-
return data;
|
|
250
|
-
},
|
|
251
|
-
queryKey: v1WorkflowRunDisplayNamesListQueryKey(options)
|
|
252
|
-
});
|
|
253
|
-
export const v1WorkflowRunExternalIdsListQueryKey = (options) => createQueryKey('v1WorkflowRunExternalIdsList', options);
|
|
254
|
-
/**
|
|
255
|
-
* List workflow run external ids
|
|
256
|
-
*
|
|
257
|
-
* Lists external ids for workflow runs matching filters
|
|
258
|
-
*/
|
|
259
|
-
export const v1WorkflowRunExternalIdsListOptions = (options) => queryOptions({
|
|
260
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
261
|
-
const { data } = await v1WorkflowRunExternalIdsList({
|
|
262
|
-
...options,
|
|
263
|
-
...queryKey[0],
|
|
264
|
-
signal,
|
|
265
|
-
throwOnError: true
|
|
266
|
-
});
|
|
267
|
-
return data;
|
|
268
|
-
},
|
|
269
|
-
queryKey: v1WorkflowRunExternalIdsListQueryKey(options)
|
|
270
|
-
});
|
|
271
|
-
/**
|
|
272
|
-
* Create workflow run
|
|
273
|
-
*
|
|
274
|
-
* Trigger a new workflow run
|
|
275
|
-
*/
|
|
276
|
-
export const v1WorkflowRunCreateMutation = (options) => {
|
|
277
|
-
const mutationOptions = {
|
|
278
|
-
mutationFn: async (fnOptions) => {
|
|
279
|
-
const { data } = await v1WorkflowRunCreate({
|
|
280
|
-
...options,
|
|
281
|
-
...fnOptions,
|
|
282
|
-
throwOnError: true
|
|
283
|
-
});
|
|
284
|
-
return data;
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
|
-
return mutationOptions;
|
|
288
|
-
};
|
|
289
|
-
export const v1WorkflowRunGetQueryKey = (options) => createQueryKey('v1WorkflowRunGet', options);
|
|
290
|
-
/**
|
|
291
|
-
* List tasks
|
|
292
|
-
*
|
|
293
|
-
* Get a workflow run and its metadata to display on the "detail" page
|
|
294
|
-
*/
|
|
295
|
-
export const v1WorkflowRunGetOptions = (options) => queryOptions({
|
|
296
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
297
|
-
const { data } = await v1WorkflowRunGet({
|
|
298
|
-
...options,
|
|
299
|
-
...queryKey[0],
|
|
300
|
-
signal,
|
|
301
|
-
throwOnError: true
|
|
302
|
-
});
|
|
303
|
-
return data;
|
|
304
|
-
},
|
|
305
|
-
queryKey: v1WorkflowRunGetQueryKey(options)
|
|
306
|
-
});
|
|
307
|
-
export const v1WorkflowRunGetStatusQueryKey = (options) => createQueryKey('v1WorkflowRunGetStatus', options);
|
|
308
|
-
/**
|
|
309
|
-
* Get workflow run status
|
|
310
|
-
*
|
|
311
|
-
* Get the status of a workflow run.
|
|
312
|
-
*/
|
|
313
|
-
export const v1WorkflowRunGetStatusOptions = (options) => queryOptions({
|
|
314
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
315
|
-
const { data } = await v1WorkflowRunGetStatus({
|
|
316
|
-
...options,
|
|
317
|
-
...queryKey[0],
|
|
318
|
-
signal,
|
|
319
|
-
throwOnError: true
|
|
320
|
-
});
|
|
321
|
-
return data;
|
|
322
|
-
},
|
|
323
|
-
queryKey: v1WorkflowRunGetStatusQueryKey(options)
|
|
324
|
-
});
|
|
325
|
-
export const v1WorkflowRunTaskEventsListQueryKey = (options) => createQueryKey('v1WorkflowRunTaskEventsList', options);
|
|
326
|
-
/**
|
|
327
|
-
* List tasks
|
|
328
|
-
*
|
|
329
|
-
* List all tasks for a workflow run
|
|
330
|
-
*/
|
|
331
|
-
export const v1WorkflowRunTaskEventsListOptions = (options) => queryOptions({
|
|
332
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
333
|
-
const { data } = await v1WorkflowRunTaskEventsList({
|
|
334
|
-
...options,
|
|
335
|
-
...queryKey[0],
|
|
336
|
-
signal,
|
|
337
|
-
throwOnError: true
|
|
338
|
-
});
|
|
339
|
-
return data;
|
|
340
|
-
},
|
|
341
|
-
queryKey: v1WorkflowRunTaskEventsListQueryKey(options)
|
|
342
|
-
});
|
|
343
|
-
export const v1WorkflowRunTaskEventsListInfiniteQueryKey = (options) => createQueryKey('v1WorkflowRunTaskEventsList', options, true);
|
|
344
|
-
/**
|
|
345
|
-
* List tasks
|
|
346
|
-
*
|
|
347
|
-
* List all tasks for a workflow run
|
|
348
|
-
*/
|
|
349
|
-
export const v1WorkflowRunTaskEventsListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
350
|
-
// @ts-ignore
|
|
351
|
-
{
|
|
352
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
353
|
-
// @ts-ignore
|
|
354
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
355
|
-
query: {
|
|
356
|
-
offset: pageParam
|
|
357
|
-
}
|
|
358
|
-
};
|
|
359
|
-
const params = createInfiniteParams(queryKey, page);
|
|
360
|
-
const { data } = await v1WorkflowRunTaskEventsList({
|
|
361
|
-
...options,
|
|
362
|
-
...params,
|
|
363
|
-
signal,
|
|
364
|
-
throwOnError: true
|
|
365
|
-
});
|
|
366
|
-
return data;
|
|
367
|
-
},
|
|
368
|
-
queryKey: v1WorkflowRunTaskEventsListInfiniteQueryKey(options)
|
|
369
|
-
});
|
|
370
|
-
export const v1WorkflowRunGetTimingsQueryKey = (options) => createQueryKey('v1WorkflowRunGetTimings', options);
|
|
371
|
-
/**
|
|
372
|
-
* List timings for a workflow run
|
|
373
|
-
*
|
|
374
|
-
* Get the timings for a workflow run
|
|
375
|
-
*/
|
|
376
|
-
export const v1WorkflowRunGetTimingsOptions = (options) => queryOptions({
|
|
377
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
378
|
-
const { data } = await v1WorkflowRunGetTimings({
|
|
379
|
-
...options,
|
|
380
|
-
...queryKey[0],
|
|
381
|
-
signal,
|
|
382
|
-
throwOnError: true
|
|
383
|
-
});
|
|
384
|
-
return data;
|
|
385
|
-
},
|
|
386
|
-
queryKey: v1WorkflowRunGetTimingsQueryKey(options)
|
|
387
|
-
});
|
|
388
|
-
export const v1TaskListStatusMetricsQueryKey = (options) => createQueryKey('v1TaskListStatusMetrics', options);
|
|
389
|
-
/**
|
|
390
|
-
* Get task metrics
|
|
391
|
-
*
|
|
392
|
-
* Get a summary of task run metrics for a tenant
|
|
393
|
-
*/
|
|
394
|
-
export const v1TaskListStatusMetricsOptions = (options) => queryOptions({
|
|
395
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
396
|
-
const { data } = await v1TaskListStatusMetrics({
|
|
397
|
-
...options,
|
|
398
|
-
...queryKey[0],
|
|
399
|
-
signal,
|
|
400
|
-
throwOnError: true
|
|
401
|
-
});
|
|
402
|
-
return data;
|
|
403
|
-
},
|
|
404
|
-
queryKey: v1TaskListStatusMetricsQueryKey(options)
|
|
405
|
-
});
|
|
406
|
-
export const v1TaskGetPointMetricsQueryKey = (options) => createQueryKey('v1TaskGetPointMetrics', options);
|
|
407
|
-
/**
|
|
408
|
-
* Get task point metrics
|
|
409
|
-
*
|
|
410
|
-
* Get a minute by minute breakdown of task metrics for a tenant
|
|
411
|
-
*/
|
|
412
|
-
export const v1TaskGetPointMetricsOptions = (options) => queryOptions({
|
|
413
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
414
|
-
const { data } = await v1TaskGetPointMetrics({
|
|
415
|
-
...options,
|
|
416
|
-
...queryKey[0],
|
|
417
|
-
signal,
|
|
418
|
-
throwOnError: true
|
|
419
|
-
});
|
|
420
|
-
return data;
|
|
421
|
-
},
|
|
422
|
-
queryKey: v1TaskGetPointMetricsQueryKey(options)
|
|
423
|
-
});
|
|
424
|
-
export const v1EventListQueryKey = (options) => createQueryKey('v1EventList', options);
|
|
425
|
-
/**
|
|
426
|
-
* List events
|
|
427
|
-
*
|
|
428
|
-
* Lists all events for a tenant.
|
|
429
|
-
*/
|
|
430
|
-
export const v1EventListOptions = (options) => queryOptions({
|
|
431
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
432
|
-
const { data } = await v1EventList({
|
|
433
|
-
...options,
|
|
434
|
-
...queryKey[0],
|
|
435
|
-
signal,
|
|
436
|
-
throwOnError: true
|
|
437
|
-
});
|
|
438
|
-
return data;
|
|
439
|
-
},
|
|
440
|
-
queryKey: v1EventListQueryKey(options)
|
|
441
|
-
});
|
|
442
|
-
export const v1EventListInfiniteQueryKey = (options) => createQueryKey('v1EventList', options, true);
|
|
443
|
-
/**
|
|
444
|
-
* List events
|
|
445
|
-
*
|
|
446
|
-
* Lists all events for a tenant.
|
|
447
|
-
*/
|
|
448
|
-
export const v1EventListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
449
|
-
// @ts-ignore
|
|
450
|
-
{
|
|
451
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
452
|
-
// @ts-ignore
|
|
453
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
454
|
-
query: {
|
|
455
|
-
offset: pageParam
|
|
456
|
-
}
|
|
457
|
-
};
|
|
458
|
-
const params = createInfiniteParams(queryKey, page);
|
|
459
|
-
const { data } = await v1EventList({
|
|
460
|
-
...options,
|
|
461
|
-
...params,
|
|
462
|
-
signal,
|
|
463
|
-
throwOnError: true
|
|
464
|
-
});
|
|
465
|
-
return data;
|
|
466
|
-
},
|
|
467
|
-
queryKey: v1EventListInfiniteQueryKey(options)
|
|
468
|
-
});
|
|
469
|
-
export const v1EventKeyListQueryKey = (options) => createQueryKey('v1EventKeyList', options);
|
|
470
|
-
/**
|
|
471
|
-
* List event keys
|
|
472
|
-
*
|
|
473
|
-
* Lists all event keys for a tenant.
|
|
474
|
-
*/
|
|
475
|
-
export const v1EventKeyListOptions = (options) => queryOptions({
|
|
476
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
477
|
-
const { data } = await v1EventKeyList({
|
|
478
|
-
...options,
|
|
479
|
-
...queryKey[0],
|
|
480
|
-
signal,
|
|
481
|
-
throwOnError: true
|
|
482
|
-
});
|
|
483
|
-
return data;
|
|
484
|
-
},
|
|
485
|
-
queryKey: v1EventKeyListQueryKey(options)
|
|
486
|
-
});
|
|
487
|
-
export const v1FilterListQueryKey = (options) => createQueryKey('v1FilterList', options);
|
|
488
|
-
/**
|
|
489
|
-
* List filters
|
|
490
|
-
*
|
|
491
|
-
* Lists all filters for a tenant.
|
|
492
|
-
*/
|
|
493
|
-
export const v1FilterListOptions = (options) => queryOptions({
|
|
494
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
495
|
-
const { data } = await v1FilterList({
|
|
496
|
-
...options,
|
|
497
|
-
...queryKey[0],
|
|
498
|
-
signal,
|
|
499
|
-
throwOnError: true
|
|
500
|
-
});
|
|
501
|
-
return data;
|
|
502
|
-
},
|
|
503
|
-
queryKey: v1FilterListQueryKey(options)
|
|
504
|
-
});
|
|
505
|
-
export const v1FilterListInfiniteQueryKey = (options) => createQueryKey('v1FilterList', options, true);
|
|
506
|
-
/**
|
|
507
|
-
* List filters
|
|
508
|
-
*
|
|
509
|
-
* Lists all filters for a tenant.
|
|
510
|
-
*/
|
|
511
|
-
export const v1FilterListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
512
|
-
// @ts-ignore
|
|
513
|
-
{
|
|
514
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
515
|
-
// @ts-ignore
|
|
516
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
517
|
-
query: {
|
|
518
|
-
offset: pageParam
|
|
519
|
-
}
|
|
520
|
-
};
|
|
521
|
-
const params = createInfiniteParams(queryKey, page);
|
|
522
|
-
const { data } = await v1FilterList({
|
|
523
|
-
...options,
|
|
524
|
-
...params,
|
|
525
|
-
signal,
|
|
526
|
-
throwOnError: true
|
|
527
|
-
});
|
|
528
|
-
return data;
|
|
529
|
-
},
|
|
530
|
-
queryKey: v1FilterListInfiniteQueryKey(options)
|
|
531
|
-
});
|
|
532
|
-
/**
|
|
533
|
-
* Create a filter
|
|
534
|
-
*
|
|
535
|
-
* Create a new filter
|
|
536
|
-
*/
|
|
537
|
-
export const v1FilterCreateMutation = (options) => {
|
|
538
|
-
const mutationOptions = {
|
|
539
|
-
mutationFn: async (fnOptions) => {
|
|
540
|
-
const { data } = await v1FilterCreate({
|
|
541
|
-
...options,
|
|
542
|
-
...fnOptions,
|
|
543
|
-
throwOnError: true
|
|
544
|
-
});
|
|
545
|
-
return data;
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
|
-
return mutationOptions;
|
|
549
|
-
};
|
|
550
|
-
/**
|
|
551
|
-
* Delete a filter
|
|
552
|
-
*/
|
|
553
|
-
export const v1FilterDeleteMutation = (options) => {
|
|
554
|
-
const mutationOptions = {
|
|
555
|
-
mutationFn: async (fnOptions) => {
|
|
556
|
-
const { data } = await v1FilterDelete({
|
|
557
|
-
...options,
|
|
558
|
-
...fnOptions,
|
|
559
|
-
throwOnError: true
|
|
560
|
-
});
|
|
561
|
-
return data;
|
|
562
|
-
}
|
|
563
|
-
};
|
|
564
|
-
return mutationOptions;
|
|
565
|
-
};
|
|
566
|
-
export const v1FilterGetQueryKey = (options) => createQueryKey('v1FilterGet', options);
|
|
567
|
-
/**
|
|
568
|
-
* Get a filter
|
|
569
|
-
*
|
|
570
|
-
* Get a filter by its id
|
|
571
|
-
*/
|
|
572
|
-
export const v1FilterGetOptions = (options) => queryOptions({
|
|
573
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
574
|
-
const { data } = await v1FilterGet({
|
|
575
|
-
...options,
|
|
576
|
-
...queryKey[0],
|
|
577
|
-
signal,
|
|
578
|
-
throwOnError: true
|
|
579
|
-
});
|
|
580
|
-
return data;
|
|
581
|
-
},
|
|
582
|
-
queryKey: v1FilterGetQueryKey(options)
|
|
583
|
-
});
|
|
584
|
-
/**
|
|
585
|
-
* Update a filter
|
|
586
|
-
*/
|
|
587
|
-
export const v1FilterUpdateMutation = (options) => {
|
|
588
|
-
const mutationOptions = {
|
|
589
|
-
mutationFn: async (fnOptions) => {
|
|
590
|
-
const { data } = await v1FilterUpdate({
|
|
591
|
-
...options,
|
|
592
|
-
...fnOptions,
|
|
593
|
-
throwOnError: true
|
|
594
|
-
});
|
|
595
|
-
return data;
|
|
596
|
-
}
|
|
597
|
-
};
|
|
598
|
-
return mutationOptions;
|
|
599
|
-
};
|
|
600
|
-
export const v1WebhookListQueryKey = (options) => createQueryKey('v1WebhookList', options);
|
|
601
|
-
/**
|
|
602
|
-
* List webhooks
|
|
603
|
-
*
|
|
604
|
-
* Lists all webhook for a tenant.
|
|
605
|
-
*/
|
|
606
|
-
export const v1WebhookListOptions = (options) => queryOptions({
|
|
607
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
608
|
-
const { data } = await v1WebhookList({
|
|
609
|
-
...options,
|
|
610
|
-
...queryKey[0],
|
|
611
|
-
signal,
|
|
612
|
-
throwOnError: true
|
|
613
|
-
});
|
|
614
|
-
return data;
|
|
615
|
-
},
|
|
616
|
-
queryKey: v1WebhookListQueryKey(options)
|
|
617
|
-
});
|
|
618
|
-
export const v1WebhookListInfiniteQueryKey = (options) => createQueryKey('v1WebhookList', options, true);
|
|
619
|
-
/**
|
|
620
|
-
* List webhooks
|
|
621
|
-
*
|
|
622
|
-
* Lists all webhook for a tenant.
|
|
623
|
-
*/
|
|
624
|
-
export const v1WebhookListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
625
|
-
// @ts-ignore
|
|
626
|
-
{
|
|
627
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
628
|
-
// @ts-ignore
|
|
629
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
630
|
-
query: {
|
|
631
|
-
offset: pageParam
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
const params = createInfiniteParams(queryKey, page);
|
|
635
|
-
const { data } = await v1WebhookList({
|
|
636
|
-
...options,
|
|
637
|
-
...params,
|
|
638
|
-
signal,
|
|
639
|
-
throwOnError: true
|
|
640
|
-
});
|
|
641
|
-
return data;
|
|
642
|
-
},
|
|
643
|
-
queryKey: v1WebhookListInfiniteQueryKey(options)
|
|
644
|
-
});
|
|
645
|
-
/**
|
|
646
|
-
* Create a webhook
|
|
647
|
-
*
|
|
648
|
-
* Create a new webhook
|
|
649
|
-
*/
|
|
650
|
-
export const v1WebhookCreateMutation = (options) => {
|
|
651
|
-
const mutationOptions = {
|
|
652
|
-
mutationFn: async (fnOptions) => {
|
|
653
|
-
const { data } = await v1WebhookCreate({
|
|
654
|
-
...options,
|
|
655
|
-
...fnOptions,
|
|
656
|
-
throwOnError: true
|
|
657
|
-
});
|
|
658
|
-
return data;
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
|
-
return mutationOptions;
|
|
662
|
-
};
|
|
663
|
-
/**
|
|
664
|
-
* Delete a webhook
|
|
665
|
-
*/
|
|
666
|
-
export const v1WebhookDeleteMutation = (options) => {
|
|
667
|
-
const mutationOptions = {
|
|
668
|
-
mutationFn: async (fnOptions) => {
|
|
669
|
-
const { data } = await v1WebhookDelete({
|
|
670
|
-
...options,
|
|
671
|
-
...fnOptions,
|
|
672
|
-
throwOnError: true
|
|
673
|
-
});
|
|
674
|
-
return data;
|
|
675
|
-
}
|
|
676
|
-
};
|
|
677
|
-
return mutationOptions;
|
|
678
|
-
};
|
|
679
|
-
export const v1WebhookGetQueryKey = (options) => createQueryKey('v1WebhookGet', options);
|
|
680
|
-
/**
|
|
681
|
-
* Get a webhook
|
|
682
|
-
*
|
|
683
|
-
* Get a webhook by its name
|
|
684
|
-
*/
|
|
685
|
-
export const v1WebhookGetOptions = (options) => queryOptions({
|
|
686
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
687
|
-
const { data } = await v1WebhookGet({
|
|
688
|
-
...options,
|
|
689
|
-
...queryKey[0],
|
|
690
|
-
signal,
|
|
691
|
-
throwOnError: true
|
|
692
|
-
});
|
|
693
|
-
return data;
|
|
694
|
-
},
|
|
695
|
-
queryKey: v1WebhookGetQueryKey(options)
|
|
696
|
-
});
|
|
697
|
-
/**
|
|
698
|
-
* Update a webhook
|
|
699
|
-
*
|
|
700
|
-
* Update a webhook
|
|
701
|
-
*/
|
|
702
|
-
export const v1WebhookUpdateMutation = (options) => {
|
|
703
|
-
const mutationOptions = {
|
|
704
|
-
mutationFn: async (fnOptions) => {
|
|
705
|
-
const { data } = await v1WebhookUpdate({
|
|
706
|
-
...options,
|
|
707
|
-
...fnOptions,
|
|
708
|
-
throwOnError: true
|
|
709
|
-
});
|
|
710
|
-
return data;
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
|
-
return mutationOptions;
|
|
714
|
-
};
|
|
715
|
-
/**
|
|
716
|
-
* Post a webhook message
|
|
717
|
-
*
|
|
718
|
-
* Post an incoming webhook message
|
|
719
|
-
*/
|
|
720
|
-
export const v1WebhookReceiveMutation = (options) => {
|
|
721
|
-
const mutationOptions = {
|
|
722
|
-
mutationFn: async (fnOptions) => {
|
|
723
|
-
const { data } = await v1WebhookReceive({
|
|
724
|
-
...options,
|
|
725
|
-
...fnOptions,
|
|
726
|
-
throwOnError: true
|
|
727
|
-
});
|
|
728
|
-
return data;
|
|
729
|
-
}
|
|
730
|
-
};
|
|
731
|
-
return mutationOptions;
|
|
732
|
-
};
|
|
733
|
-
/**
|
|
734
|
-
* Debug a CEL expression
|
|
735
|
-
*
|
|
736
|
-
* Evaluate a CEL expression against provided input data.
|
|
737
|
-
*/
|
|
738
|
-
export const v1CelDebugMutation = (options) => {
|
|
739
|
-
const mutationOptions = {
|
|
740
|
-
mutationFn: async (fnOptions) => {
|
|
741
|
-
const { data } = await v1CelDebug({
|
|
742
|
-
...options,
|
|
743
|
-
...fnOptions,
|
|
744
|
-
throwOnError: true
|
|
745
|
-
});
|
|
746
|
-
return data;
|
|
747
|
-
}
|
|
748
|
-
};
|
|
749
|
-
return mutationOptions;
|
|
750
|
-
};
|
|
751
|
-
export const readinessGetQueryKey = (options) => createQueryKey('readinessGet', options);
|
|
752
|
-
/**
|
|
753
|
-
* Get readiness
|
|
754
|
-
*
|
|
755
|
-
* Gets the readiness status
|
|
756
|
-
*/
|
|
757
|
-
export const readinessGetOptions = (options) => queryOptions({
|
|
758
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
759
|
-
const { data } = await readinessGet({
|
|
760
|
-
...options,
|
|
761
|
-
...queryKey[0],
|
|
762
|
-
signal,
|
|
763
|
-
throwOnError: true
|
|
764
|
-
});
|
|
765
|
-
return data;
|
|
766
|
-
},
|
|
767
|
-
queryKey: readinessGetQueryKey(options)
|
|
768
|
-
});
|
|
769
|
-
export const livenessGetQueryKey = (options) => createQueryKey('livenessGet', options);
|
|
770
|
-
/**
|
|
771
|
-
* Get liveness
|
|
772
|
-
*
|
|
773
|
-
* Gets the liveness status
|
|
774
|
-
*/
|
|
775
|
-
export const livenessGetOptions = (options) => queryOptions({
|
|
776
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
777
|
-
const { data } = await livenessGet({
|
|
778
|
-
...options,
|
|
779
|
-
...queryKey[0],
|
|
780
|
-
signal,
|
|
781
|
-
throwOnError: true
|
|
782
|
-
});
|
|
783
|
-
return data;
|
|
784
|
-
},
|
|
785
|
-
queryKey: livenessGetQueryKey(options)
|
|
786
|
-
});
|
|
787
|
-
export const metadataGetQueryKey = (options) => createQueryKey('metadataGet', options);
|
|
788
|
-
/**
|
|
789
|
-
* Get metadata
|
|
790
|
-
*
|
|
791
|
-
* Gets metadata for the Hatchet instance
|
|
792
|
-
*/
|
|
793
|
-
export const metadataGetOptions = (options) => queryOptions({
|
|
794
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
795
|
-
const { data } = await metadataGet({
|
|
796
|
-
...options,
|
|
797
|
-
...queryKey[0],
|
|
798
|
-
signal,
|
|
799
|
-
throwOnError: true
|
|
800
|
-
});
|
|
801
|
-
return data;
|
|
802
|
-
},
|
|
803
|
-
queryKey: metadataGetQueryKey(options)
|
|
804
|
-
});
|
|
805
|
-
export const cloudMetadataGetQueryKey = (options) => createQueryKey('cloudMetadataGet', options);
|
|
806
|
-
/**
|
|
807
|
-
* Get cloud metadata
|
|
808
|
-
*
|
|
809
|
-
* Gets metadata for the Hatchet cloud instance
|
|
810
|
-
*/
|
|
811
|
-
export const cloudMetadataGetOptions = (options) => queryOptions({
|
|
812
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
813
|
-
const { data } = await cloudMetadataGet({
|
|
814
|
-
...options,
|
|
815
|
-
...queryKey[0],
|
|
816
|
-
signal,
|
|
817
|
-
throwOnError: true
|
|
818
|
-
});
|
|
819
|
-
return data;
|
|
820
|
-
},
|
|
821
|
-
queryKey: cloudMetadataGetQueryKey(options)
|
|
822
|
-
});
|
|
823
|
-
export const metadataListIntegrationsQueryKey = (options) => createQueryKey('metadataListIntegrations', options);
|
|
824
|
-
/**
|
|
825
|
-
* List integrations
|
|
826
|
-
*
|
|
827
|
-
* List all integrations
|
|
828
|
-
*/
|
|
829
|
-
export const metadataListIntegrationsOptions = (options) => queryOptions({
|
|
830
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
831
|
-
const { data } = await metadataListIntegrations({
|
|
832
|
-
...options,
|
|
833
|
-
...queryKey[0],
|
|
834
|
-
signal,
|
|
835
|
-
throwOnError: true
|
|
836
|
-
});
|
|
837
|
-
return data;
|
|
838
|
-
},
|
|
839
|
-
queryKey: metadataListIntegrationsQueryKey(options)
|
|
840
|
-
});
|
|
841
|
-
/**
|
|
842
|
-
* Login user
|
|
843
|
-
*
|
|
844
|
-
* Logs in a user.
|
|
845
|
-
*/
|
|
846
|
-
export const userUpdateLoginMutation = (options) => {
|
|
847
|
-
const mutationOptions = {
|
|
848
|
-
mutationFn: async (fnOptions) => {
|
|
849
|
-
const { data } = await userUpdateLogin({
|
|
850
|
-
...options,
|
|
851
|
-
...fnOptions,
|
|
852
|
-
throwOnError: true
|
|
853
|
-
});
|
|
854
|
-
return data;
|
|
855
|
-
}
|
|
856
|
-
};
|
|
857
|
-
return mutationOptions;
|
|
858
|
-
};
|
|
859
|
-
export const userUpdateGoogleOauthStartQueryKey = (options) => createQueryKey('userUpdateGoogleOauthStart', options);
|
|
860
|
-
/**
|
|
861
|
-
* Start OAuth flow
|
|
862
|
-
*
|
|
863
|
-
* Starts the OAuth flow
|
|
864
|
-
*/
|
|
865
|
-
export const userUpdateGoogleOauthStartOptions = (options) => queryOptions({
|
|
866
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
867
|
-
const { data } = await userUpdateGoogleOauthStart({
|
|
868
|
-
...options,
|
|
869
|
-
...queryKey[0],
|
|
870
|
-
signal,
|
|
871
|
-
throwOnError: true
|
|
872
|
-
});
|
|
873
|
-
return data;
|
|
874
|
-
},
|
|
875
|
-
queryKey: userUpdateGoogleOauthStartQueryKey(options)
|
|
876
|
-
});
|
|
877
|
-
export const userUpdateGoogleOauthCallbackQueryKey = (options) => createQueryKey('userUpdateGoogleOauthCallback', options);
|
|
878
|
-
/**
|
|
879
|
-
* Complete OAuth flow
|
|
880
|
-
*
|
|
881
|
-
* Completes the OAuth flow
|
|
882
|
-
*/
|
|
883
|
-
export const userUpdateGoogleOauthCallbackOptions = (options) => queryOptions({
|
|
884
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
885
|
-
const { data } = await userUpdateGoogleOauthCallback({
|
|
886
|
-
...options,
|
|
887
|
-
...queryKey[0],
|
|
888
|
-
signal,
|
|
889
|
-
throwOnError: true
|
|
890
|
-
});
|
|
891
|
-
return data;
|
|
892
|
-
},
|
|
893
|
-
queryKey: userUpdateGoogleOauthCallbackQueryKey(options)
|
|
894
|
-
});
|
|
895
|
-
export const userUpdateGithubOauthStartQueryKey = (options) => createQueryKey('userUpdateGithubOauthStart', options);
|
|
896
|
-
/**
|
|
897
|
-
* Start OAuth flow
|
|
898
|
-
*
|
|
899
|
-
* Starts the OAuth flow
|
|
900
|
-
*/
|
|
901
|
-
export const userUpdateGithubOauthStartOptions = (options) => queryOptions({
|
|
902
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
903
|
-
const { data } = await userUpdateGithubOauthStart({
|
|
904
|
-
...options,
|
|
905
|
-
...queryKey[0],
|
|
906
|
-
signal,
|
|
907
|
-
throwOnError: true
|
|
908
|
-
});
|
|
909
|
-
return data;
|
|
910
|
-
},
|
|
911
|
-
queryKey: userUpdateGithubOauthStartQueryKey(options)
|
|
912
|
-
});
|
|
913
|
-
export const userUpdateGithubOauthCallbackQueryKey = (options) => createQueryKey('userUpdateGithubOauthCallback', options);
|
|
914
|
-
/**
|
|
915
|
-
* Complete OAuth flow
|
|
916
|
-
*
|
|
917
|
-
* Completes the OAuth flow
|
|
918
|
-
*/
|
|
919
|
-
export const userUpdateGithubOauthCallbackOptions = (options) => queryOptions({
|
|
920
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
921
|
-
const { data } = await userUpdateGithubOauthCallback({
|
|
922
|
-
...options,
|
|
923
|
-
...queryKey[0],
|
|
924
|
-
signal,
|
|
925
|
-
throwOnError: true
|
|
926
|
-
});
|
|
927
|
-
return data;
|
|
928
|
-
},
|
|
929
|
-
queryKey: userUpdateGithubOauthCallbackQueryKey(options)
|
|
930
|
-
});
|
|
931
|
-
export const userUpdateSlackOauthStartQueryKey = (options) => createQueryKey('userUpdateSlackOauthStart', options);
|
|
932
|
-
/**
|
|
933
|
-
* Start OAuth flow
|
|
934
|
-
*
|
|
935
|
-
* Starts the OAuth flow
|
|
936
|
-
*/
|
|
937
|
-
export const userUpdateSlackOauthStartOptions = (options) => queryOptions({
|
|
938
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
939
|
-
const { data } = await userUpdateSlackOauthStart({
|
|
940
|
-
...options,
|
|
941
|
-
...queryKey[0],
|
|
942
|
-
signal,
|
|
943
|
-
throwOnError: true
|
|
944
|
-
});
|
|
945
|
-
return data;
|
|
946
|
-
},
|
|
947
|
-
queryKey: userUpdateSlackOauthStartQueryKey(options)
|
|
948
|
-
});
|
|
949
|
-
export const userUpdateSlackOauthCallbackQueryKey = (options) => createQueryKey('userUpdateSlackOauthCallback', options);
|
|
950
|
-
/**
|
|
951
|
-
* Complete OAuth flow
|
|
952
|
-
*
|
|
953
|
-
* Completes the OAuth flow
|
|
954
|
-
*/
|
|
955
|
-
export const userUpdateSlackOauthCallbackOptions = (options) => queryOptions({
|
|
956
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
957
|
-
const { data } = await userUpdateSlackOauthCallback({
|
|
958
|
-
...options,
|
|
959
|
-
...queryKey[0],
|
|
960
|
-
signal,
|
|
961
|
-
throwOnError: true
|
|
962
|
-
});
|
|
963
|
-
return data;
|
|
964
|
-
},
|
|
965
|
-
queryKey: userUpdateSlackOauthCallbackQueryKey(options)
|
|
966
|
-
});
|
|
967
|
-
/**
|
|
968
|
-
* Github app tenant webhook
|
|
969
|
-
*
|
|
970
|
-
* SNS event
|
|
971
|
-
*/
|
|
972
|
-
export const snsUpdateMutation = (options) => {
|
|
973
|
-
const mutationOptions = {
|
|
974
|
-
mutationFn: async (fnOptions) => {
|
|
975
|
-
const { data } = await snsUpdate({
|
|
976
|
-
...options,
|
|
977
|
-
...fnOptions,
|
|
978
|
-
throwOnError: true
|
|
979
|
-
});
|
|
980
|
-
return data;
|
|
981
|
-
}
|
|
982
|
-
};
|
|
983
|
-
return mutationOptions;
|
|
984
|
-
};
|
|
985
|
-
export const snsListQueryKey = (options) => createQueryKey('snsList', options);
|
|
986
|
-
/**
|
|
987
|
-
* List SNS integrations
|
|
988
|
-
*
|
|
989
|
-
* List SNS integrations
|
|
990
|
-
*/
|
|
991
|
-
export const snsListOptions = (options) => queryOptions({
|
|
992
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
993
|
-
const { data } = await snsList({
|
|
994
|
-
...options,
|
|
995
|
-
...queryKey[0],
|
|
996
|
-
signal,
|
|
997
|
-
throwOnError: true
|
|
998
|
-
});
|
|
999
|
-
return data;
|
|
1000
|
-
},
|
|
1001
|
-
queryKey: snsListQueryKey(options)
|
|
1002
|
-
});
|
|
1003
|
-
/**
|
|
1004
|
-
* Create SNS integration
|
|
1005
|
-
*
|
|
1006
|
-
* Create SNS integration
|
|
1007
|
-
*/
|
|
1008
|
-
export const snsCreateMutation = (options) => {
|
|
1009
|
-
const mutationOptions = {
|
|
1010
|
-
mutationFn: async (fnOptions) => {
|
|
1011
|
-
const { data } = await snsCreate({
|
|
1012
|
-
...options,
|
|
1013
|
-
...fnOptions,
|
|
1014
|
-
throwOnError: true
|
|
1015
|
-
});
|
|
1016
|
-
return data;
|
|
1017
|
-
}
|
|
1018
|
-
};
|
|
1019
|
-
return mutationOptions;
|
|
1020
|
-
};
|
|
1021
|
-
export const alertEmailGroupListQueryKey = (options) => createQueryKey('alertEmailGroupList', options);
|
|
1022
|
-
/**
|
|
1023
|
-
* List tenant alert email groups
|
|
1024
|
-
*
|
|
1025
|
-
* Gets a list of tenant alert email groups
|
|
1026
|
-
*/
|
|
1027
|
-
export const alertEmailGroupListOptions = (options) => queryOptions({
|
|
1028
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1029
|
-
const { data } = await alertEmailGroupList({
|
|
1030
|
-
...options,
|
|
1031
|
-
...queryKey[0],
|
|
1032
|
-
signal,
|
|
1033
|
-
throwOnError: true
|
|
1034
|
-
});
|
|
1035
|
-
return data;
|
|
1036
|
-
},
|
|
1037
|
-
queryKey: alertEmailGroupListQueryKey(options)
|
|
1038
|
-
});
|
|
1039
|
-
/**
|
|
1040
|
-
* Create tenant alert email group
|
|
1041
|
-
*
|
|
1042
|
-
* Creates a new tenant alert email group
|
|
1043
|
-
*/
|
|
1044
|
-
export const alertEmailGroupCreateMutation = (options) => {
|
|
1045
|
-
const mutationOptions = {
|
|
1046
|
-
mutationFn: async (fnOptions) => {
|
|
1047
|
-
const { data } = await alertEmailGroupCreate({
|
|
1048
|
-
...options,
|
|
1049
|
-
...fnOptions,
|
|
1050
|
-
throwOnError: true
|
|
1051
|
-
});
|
|
1052
|
-
return data;
|
|
1053
|
-
}
|
|
1054
|
-
};
|
|
1055
|
-
return mutationOptions;
|
|
1056
|
-
};
|
|
1057
|
-
export const tenantResourcePolicyGetQueryKey = (options) => createQueryKey('tenantResourcePolicyGet', options);
|
|
1058
|
-
/**
|
|
1059
|
-
* Create tenant alert email group
|
|
1060
|
-
*
|
|
1061
|
-
* Gets the resource policy for a tenant
|
|
1062
|
-
*/
|
|
1063
|
-
export const tenantResourcePolicyGetOptions = (options) => queryOptions({
|
|
1064
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1065
|
-
const { data } = await tenantResourcePolicyGet({
|
|
1066
|
-
...options,
|
|
1067
|
-
...queryKey[0],
|
|
1068
|
-
signal,
|
|
1069
|
-
throwOnError: true
|
|
1070
|
-
});
|
|
1071
|
-
return data;
|
|
1072
|
-
},
|
|
1073
|
-
queryKey: tenantResourcePolicyGetQueryKey(options)
|
|
1074
|
-
});
|
|
1075
|
-
/**
|
|
1076
|
-
* Delete tenant alert email group
|
|
1077
|
-
*
|
|
1078
|
-
* Deletes a tenant alert email group
|
|
1079
|
-
*/
|
|
1080
|
-
export const alertEmailGroupDeleteMutation = (options) => {
|
|
1081
|
-
const mutationOptions = {
|
|
1082
|
-
mutationFn: async (fnOptions) => {
|
|
1083
|
-
const { data } = await alertEmailGroupDelete({
|
|
1084
|
-
...options,
|
|
1085
|
-
...fnOptions,
|
|
1086
|
-
throwOnError: true
|
|
1087
|
-
});
|
|
1088
|
-
return data;
|
|
1089
|
-
}
|
|
1090
|
-
};
|
|
1091
|
-
return mutationOptions;
|
|
1092
|
-
};
|
|
1093
|
-
/**
|
|
1094
|
-
* Update tenant alert email group
|
|
1095
|
-
*
|
|
1096
|
-
* Updates a tenant alert email group
|
|
1097
|
-
*/
|
|
1098
|
-
export const alertEmailGroupUpdateMutation = (options) => {
|
|
1099
|
-
const mutationOptions = {
|
|
1100
|
-
mutationFn: async (fnOptions) => {
|
|
1101
|
-
const { data } = await alertEmailGroupUpdate({
|
|
1102
|
-
...options,
|
|
1103
|
-
...fnOptions,
|
|
1104
|
-
throwOnError: true
|
|
1105
|
-
});
|
|
1106
|
-
return data;
|
|
1107
|
-
}
|
|
1108
|
-
};
|
|
1109
|
-
return mutationOptions;
|
|
1110
|
-
};
|
|
1111
|
-
/**
|
|
1112
|
-
* Delete SNS integration
|
|
1113
|
-
*
|
|
1114
|
-
* Delete SNS integration
|
|
1115
|
-
*/
|
|
1116
|
-
export const snsDeleteMutation = (options) => {
|
|
1117
|
-
const mutationOptions = {
|
|
1118
|
-
mutationFn: async (fnOptions) => {
|
|
1119
|
-
const { data } = await snsDelete({
|
|
1120
|
-
...options,
|
|
1121
|
-
...fnOptions,
|
|
1122
|
-
throwOnError: true
|
|
1123
|
-
});
|
|
1124
|
-
return data;
|
|
1125
|
-
}
|
|
1126
|
-
};
|
|
1127
|
-
return mutationOptions;
|
|
1128
|
-
};
|
|
1129
|
-
export const slackWebhookListQueryKey = (options) => createQueryKey('slackWebhookList', options);
|
|
1130
|
-
/**
|
|
1131
|
-
* List Slack integrations
|
|
1132
|
-
*
|
|
1133
|
-
* List Slack webhooks
|
|
1134
|
-
*/
|
|
1135
|
-
export const slackWebhookListOptions = (options) => queryOptions({
|
|
1136
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1137
|
-
const { data } = await slackWebhookList({
|
|
1138
|
-
...options,
|
|
1139
|
-
...queryKey[0],
|
|
1140
|
-
signal,
|
|
1141
|
-
throwOnError: true
|
|
1142
|
-
});
|
|
1143
|
-
return data;
|
|
1144
|
-
},
|
|
1145
|
-
queryKey: slackWebhookListQueryKey(options)
|
|
1146
|
-
});
|
|
1147
|
-
/**
|
|
1148
|
-
* Delete Slack webhook
|
|
1149
|
-
*
|
|
1150
|
-
* Delete Slack webhook
|
|
1151
|
-
*/
|
|
1152
|
-
export const slackWebhookDeleteMutation = (options) => {
|
|
1153
|
-
const mutationOptions = {
|
|
1154
|
-
mutationFn: async (fnOptions) => {
|
|
1155
|
-
const { data } = await slackWebhookDelete({
|
|
1156
|
-
...options,
|
|
1157
|
-
...fnOptions,
|
|
1158
|
-
throwOnError: true
|
|
1159
|
-
});
|
|
1160
|
-
return data;
|
|
1161
|
-
}
|
|
1162
|
-
};
|
|
1163
|
-
return mutationOptions;
|
|
1164
|
-
};
|
|
1165
|
-
export const userGetCurrentQueryKey = (options) => createQueryKey('userGetCurrent', options);
|
|
1166
|
-
/**
|
|
1167
|
-
* Get current user
|
|
1168
|
-
*
|
|
1169
|
-
* Gets the current user
|
|
1170
|
-
*/
|
|
1171
|
-
export const userGetCurrentOptions = (options) => queryOptions({
|
|
1172
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1173
|
-
const { data } = await userGetCurrent({
|
|
1174
|
-
...options,
|
|
1175
|
-
...queryKey[0],
|
|
1176
|
-
signal,
|
|
1177
|
-
throwOnError: true
|
|
1178
|
-
});
|
|
1179
|
-
return data;
|
|
1180
|
-
},
|
|
1181
|
-
queryKey: userGetCurrentQueryKey(options)
|
|
1182
|
-
});
|
|
1183
|
-
/**
|
|
1184
|
-
* Change user password
|
|
1185
|
-
*
|
|
1186
|
-
* Update a user password.
|
|
1187
|
-
*/
|
|
1188
|
-
export const userUpdatePasswordMutation = (options) => {
|
|
1189
|
-
const mutationOptions = {
|
|
1190
|
-
mutationFn: async (fnOptions) => {
|
|
1191
|
-
const { data } = await userUpdatePassword({
|
|
1192
|
-
...options,
|
|
1193
|
-
...fnOptions,
|
|
1194
|
-
throwOnError: true
|
|
1195
|
-
});
|
|
1196
|
-
return data;
|
|
1197
|
-
}
|
|
1198
|
-
};
|
|
1199
|
-
return mutationOptions;
|
|
1200
|
-
};
|
|
1201
|
-
/**
|
|
1202
|
-
* Register user
|
|
1203
|
-
*
|
|
1204
|
-
* Registers a user.
|
|
1205
|
-
*/
|
|
1206
|
-
export const userCreateMutation = (options) => {
|
|
1207
|
-
const mutationOptions = {
|
|
1208
|
-
mutationFn: async (fnOptions) => {
|
|
1209
|
-
const { data } = await userCreate({
|
|
1210
|
-
...options,
|
|
1211
|
-
...fnOptions,
|
|
1212
|
-
throwOnError: true
|
|
1213
|
-
});
|
|
1214
|
-
return data;
|
|
1215
|
-
}
|
|
1216
|
-
};
|
|
1217
|
-
return mutationOptions;
|
|
1218
|
-
};
|
|
1219
|
-
/**
|
|
1220
|
-
* Logout user
|
|
1221
|
-
*
|
|
1222
|
-
* Logs out a user.
|
|
1223
|
-
*/
|
|
1224
|
-
export const userUpdateLogoutMutation = (options) => {
|
|
1225
|
-
const mutationOptions = {
|
|
1226
|
-
mutationFn: async (fnOptions) => {
|
|
1227
|
-
const { data } = await userUpdateLogout({
|
|
1228
|
-
...options,
|
|
1229
|
-
...fnOptions,
|
|
1230
|
-
throwOnError: true
|
|
1231
|
-
});
|
|
1232
|
-
return data;
|
|
1233
|
-
}
|
|
1234
|
-
};
|
|
1235
|
-
return mutationOptions;
|
|
1236
|
-
};
|
|
1237
|
-
export const tenantMembershipsListQueryKey = (options) => createQueryKey('tenantMembershipsList', options);
|
|
1238
|
-
/**
|
|
1239
|
-
* List tenant memberships
|
|
1240
|
-
*
|
|
1241
|
-
* Lists all tenant memberships for the current user
|
|
1242
|
-
*/
|
|
1243
|
-
export const tenantMembershipsListOptions = (options) => queryOptions({
|
|
1244
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1245
|
-
const { data } = await tenantMembershipsList({
|
|
1246
|
-
...options,
|
|
1247
|
-
...queryKey[0],
|
|
1248
|
-
signal,
|
|
1249
|
-
throwOnError: true
|
|
1250
|
-
});
|
|
1251
|
-
return data;
|
|
1252
|
-
},
|
|
1253
|
-
queryKey: tenantMembershipsListQueryKey(options)
|
|
1254
|
-
});
|
|
1255
|
-
export const userListTenantInvitesQueryKey = (options) => createQueryKey('userListTenantInvites', options);
|
|
1256
|
-
/**
|
|
1257
|
-
* List tenant invites
|
|
1258
|
-
*
|
|
1259
|
-
* Lists all tenant invites for the current user
|
|
1260
|
-
*/
|
|
1261
|
-
export const userListTenantInvitesOptions = (options) => queryOptions({
|
|
1262
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1263
|
-
const { data } = await userListTenantInvites({
|
|
1264
|
-
...options,
|
|
1265
|
-
...queryKey[0],
|
|
1266
|
-
signal,
|
|
1267
|
-
throwOnError: true
|
|
1268
|
-
});
|
|
1269
|
-
return data;
|
|
1270
|
-
},
|
|
1271
|
-
queryKey: userListTenantInvitesQueryKey(options)
|
|
1272
|
-
});
|
|
1273
|
-
/**
|
|
1274
|
-
* Accept tenant invite
|
|
1275
|
-
*
|
|
1276
|
-
* Accepts a tenant invite
|
|
1277
|
-
*/
|
|
1278
|
-
export const tenantInviteAcceptMutation = (options) => {
|
|
1279
|
-
const mutationOptions = {
|
|
1280
|
-
mutationFn: async (fnOptions) => {
|
|
1281
|
-
const { data } = await tenantInviteAccept({
|
|
1282
|
-
...options,
|
|
1283
|
-
...fnOptions,
|
|
1284
|
-
throwOnError: true
|
|
1285
|
-
});
|
|
1286
|
-
return data;
|
|
1287
|
-
}
|
|
1288
|
-
};
|
|
1289
|
-
return mutationOptions;
|
|
1290
|
-
};
|
|
1291
|
-
/**
|
|
1292
|
-
* Reject tenant invite
|
|
1293
|
-
*
|
|
1294
|
-
* Rejects a tenant invite
|
|
1295
|
-
*/
|
|
1296
|
-
export const tenantInviteRejectMutation = (options) => {
|
|
1297
|
-
const mutationOptions = {
|
|
1298
|
-
mutationFn: async (fnOptions) => {
|
|
1299
|
-
const { data } = await tenantInviteReject({
|
|
1300
|
-
...options,
|
|
1301
|
-
...fnOptions,
|
|
1302
|
-
throwOnError: true
|
|
1303
|
-
});
|
|
1304
|
-
return data;
|
|
1305
|
-
}
|
|
1306
|
-
};
|
|
1307
|
-
return mutationOptions;
|
|
1308
|
-
};
|
|
1309
|
-
/**
|
|
1310
|
-
* Create tenant
|
|
1311
|
-
*
|
|
1312
|
-
* Creates a new tenant
|
|
1313
|
-
*/
|
|
1314
|
-
export const tenantCreateMutation = (options) => {
|
|
1315
|
-
const mutationOptions = {
|
|
1316
|
-
mutationFn: async (fnOptions) => {
|
|
1317
|
-
const { data } = await tenantCreate({
|
|
1318
|
-
...options,
|
|
1319
|
-
...fnOptions,
|
|
1320
|
-
throwOnError: true
|
|
1321
|
-
});
|
|
1322
|
-
return data;
|
|
1323
|
-
}
|
|
1324
|
-
};
|
|
1325
|
-
return mutationOptions;
|
|
1326
|
-
};
|
|
1327
|
-
export const tenantGetQueryKey = (options) => createQueryKey('tenantGet', options);
|
|
1328
|
-
/**
|
|
1329
|
-
* Get tenant
|
|
1330
|
-
*
|
|
1331
|
-
* Get the details of a tenant
|
|
1332
|
-
*/
|
|
1333
|
-
export const tenantGetOptions = (options) => queryOptions({
|
|
1334
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1335
|
-
const { data } = await tenantGet({
|
|
1336
|
-
...options,
|
|
1337
|
-
...queryKey[0],
|
|
1338
|
-
signal,
|
|
1339
|
-
throwOnError: true
|
|
1340
|
-
});
|
|
1341
|
-
return data;
|
|
1342
|
-
},
|
|
1343
|
-
queryKey: tenantGetQueryKey(options)
|
|
1344
|
-
});
|
|
1345
|
-
/**
|
|
1346
|
-
* Update tenant
|
|
1347
|
-
*
|
|
1348
|
-
* Update an existing tenant
|
|
1349
|
-
*/
|
|
1350
|
-
export const tenantUpdateMutation = (options) => {
|
|
1351
|
-
const mutationOptions = {
|
|
1352
|
-
mutationFn: async (fnOptions) => {
|
|
1353
|
-
const { data } = await tenantUpdate({
|
|
1354
|
-
...options,
|
|
1355
|
-
...fnOptions,
|
|
1356
|
-
throwOnError: true
|
|
1357
|
-
});
|
|
1358
|
-
return data;
|
|
1359
|
-
}
|
|
1360
|
-
};
|
|
1361
|
-
return mutationOptions;
|
|
1362
|
-
};
|
|
1363
|
-
export const tenantAlertingSettingsGetQueryKey = (options) => createQueryKey('tenantAlertingSettingsGet', options);
|
|
1364
|
-
/**
|
|
1365
|
-
* Get tenant alerting settings
|
|
1366
|
-
*
|
|
1367
|
-
* Gets the alerting settings for a tenant
|
|
1368
|
-
*/
|
|
1369
|
-
export const tenantAlertingSettingsGetOptions = (options) => queryOptions({
|
|
1370
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1371
|
-
const { data } = await tenantAlertingSettingsGet({
|
|
1372
|
-
...options,
|
|
1373
|
-
...queryKey[0],
|
|
1374
|
-
signal,
|
|
1375
|
-
throwOnError: true
|
|
1376
|
-
});
|
|
1377
|
-
return data;
|
|
1378
|
-
},
|
|
1379
|
-
queryKey: tenantAlertingSettingsGetQueryKey(options)
|
|
1380
|
-
});
|
|
1381
|
-
export const tenantInviteListQueryKey = (options) => createQueryKey('tenantInviteList', options);
|
|
1382
|
-
/**
|
|
1383
|
-
* List tenant invites
|
|
1384
|
-
*
|
|
1385
|
-
* Gets a list of tenant invites
|
|
1386
|
-
*/
|
|
1387
|
-
export const tenantInviteListOptions = (options) => queryOptions({
|
|
1388
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1389
|
-
const { data } = await tenantInviteList({
|
|
1390
|
-
...options,
|
|
1391
|
-
...queryKey[0],
|
|
1392
|
-
signal,
|
|
1393
|
-
throwOnError: true
|
|
1394
|
-
});
|
|
1395
|
-
return data;
|
|
1396
|
-
},
|
|
1397
|
-
queryKey: tenantInviteListQueryKey(options)
|
|
1398
|
-
});
|
|
1399
|
-
/**
|
|
1400
|
-
* Create tenant invite
|
|
1401
|
-
*
|
|
1402
|
-
* Creates a new tenant invite
|
|
1403
|
-
*/
|
|
1404
|
-
export const tenantInviteCreateMutation = (options) => {
|
|
1405
|
-
const mutationOptions = {
|
|
1406
|
-
mutationFn: async (fnOptions) => {
|
|
1407
|
-
const { data } = await tenantInviteCreate({
|
|
1408
|
-
...options,
|
|
1409
|
-
...fnOptions,
|
|
1410
|
-
throwOnError: true
|
|
1411
|
-
});
|
|
1412
|
-
return data;
|
|
1413
|
-
}
|
|
1414
|
-
};
|
|
1415
|
-
return mutationOptions;
|
|
1416
|
-
};
|
|
1417
|
-
/**
|
|
1418
|
-
* Delete invite
|
|
1419
|
-
*
|
|
1420
|
-
* Deletes a tenant invite
|
|
1421
|
-
*/
|
|
1422
|
-
export const tenantInviteDeleteMutation = (options) => {
|
|
1423
|
-
const mutationOptions = {
|
|
1424
|
-
mutationFn: async (fnOptions) => {
|
|
1425
|
-
const { data } = await tenantInviteDelete({
|
|
1426
|
-
...options,
|
|
1427
|
-
...fnOptions,
|
|
1428
|
-
throwOnError: true
|
|
1429
|
-
});
|
|
1430
|
-
return data;
|
|
1431
|
-
}
|
|
1432
|
-
};
|
|
1433
|
-
return mutationOptions;
|
|
1434
|
-
};
|
|
1435
|
-
/**
|
|
1436
|
-
* Update invite
|
|
1437
|
-
*
|
|
1438
|
-
* Updates a tenant invite
|
|
1439
|
-
*/
|
|
1440
|
-
export const tenantInviteUpdateMutation = (options) => {
|
|
1441
|
-
const mutationOptions = {
|
|
1442
|
-
mutationFn: async (fnOptions) => {
|
|
1443
|
-
const { data } = await tenantInviteUpdate({
|
|
1444
|
-
...options,
|
|
1445
|
-
...fnOptions,
|
|
1446
|
-
throwOnError: true
|
|
1447
|
-
});
|
|
1448
|
-
return data;
|
|
1449
|
-
}
|
|
1450
|
-
};
|
|
1451
|
-
return mutationOptions;
|
|
1452
|
-
};
|
|
1453
|
-
export const apiTokenListQueryKey = (options) => createQueryKey('apiTokenList', options);
|
|
1454
|
-
/**
|
|
1455
|
-
* List API Tokens
|
|
1456
|
-
*
|
|
1457
|
-
* List API tokens for a tenant
|
|
1458
|
-
*/
|
|
1459
|
-
export const apiTokenListOptions = (options) => queryOptions({
|
|
1460
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1461
|
-
const { data } = await apiTokenList({
|
|
1462
|
-
...options,
|
|
1463
|
-
...queryKey[0],
|
|
1464
|
-
signal,
|
|
1465
|
-
throwOnError: true
|
|
1466
|
-
});
|
|
1467
|
-
return data;
|
|
1468
|
-
},
|
|
1469
|
-
queryKey: apiTokenListQueryKey(options)
|
|
1470
|
-
});
|
|
1471
|
-
/**
|
|
1472
|
-
* Create API Token
|
|
1473
|
-
*
|
|
1474
|
-
* Create an API token for a tenant
|
|
1475
|
-
*/
|
|
1476
|
-
export const apiTokenCreateMutation = (options) => {
|
|
1477
|
-
const mutationOptions = {
|
|
1478
|
-
mutationFn: async (fnOptions) => {
|
|
1479
|
-
const { data } = await apiTokenCreate({
|
|
1480
|
-
...options,
|
|
1481
|
-
...fnOptions,
|
|
1482
|
-
throwOnError: true
|
|
1483
|
-
});
|
|
1484
|
-
return data;
|
|
1485
|
-
}
|
|
1486
|
-
};
|
|
1487
|
-
return mutationOptions;
|
|
1488
|
-
};
|
|
1489
|
-
/**
|
|
1490
|
-
* Revoke API Token
|
|
1491
|
-
*
|
|
1492
|
-
* Revoke an API token for a tenant
|
|
1493
|
-
*/
|
|
1494
|
-
export const apiTokenUpdateRevokeMutation = (options) => {
|
|
1495
|
-
const mutationOptions = {
|
|
1496
|
-
mutationFn: async (fnOptions) => {
|
|
1497
|
-
const { data } = await apiTokenUpdateRevoke({
|
|
1498
|
-
...options,
|
|
1499
|
-
...fnOptions,
|
|
1500
|
-
throwOnError: true
|
|
1501
|
-
});
|
|
1502
|
-
return data;
|
|
1503
|
-
}
|
|
1504
|
-
};
|
|
1505
|
-
return mutationOptions;
|
|
1506
|
-
};
|
|
1507
|
-
export const tenantGetQueueMetricsQueryKey = (options) => createQueryKey('tenantGetQueueMetrics', options);
|
|
1508
|
-
/**
|
|
1509
|
-
* Get workflow metrics
|
|
1510
|
-
*
|
|
1511
|
-
* Get the queue metrics for the tenant
|
|
1512
|
-
*/
|
|
1513
|
-
export const tenantGetQueueMetricsOptions = (options) => queryOptions({
|
|
1514
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1515
|
-
const { data } = await tenantGetQueueMetrics({
|
|
1516
|
-
...options,
|
|
1517
|
-
...queryKey[0],
|
|
1518
|
-
signal,
|
|
1519
|
-
throwOnError: true
|
|
1520
|
-
});
|
|
1521
|
-
return data;
|
|
1522
|
-
},
|
|
1523
|
-
queryKey: tenantGetQueueMetricsQueryKey(options)
|
|
1524
|
-
});
|
|
1525
|
-
export const tenantGetStepRunQueueMetricsQueryKey = (options) => createQueryKey('tenantGetStepRunQueueMetrics', options);
|
|
1526
|
-
/**
|
|
1527
|
-
* Get step run metrics
|
|
1528
|
-
*
|
|
1529
|
-
* Get the queue metrics for the tenant
|
|
1530
|
-
*/
|
|
1531
|
-
export const tenantGetStepRunQueueMetricsOptions = (options) => queryOptions({
|
|
1532
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1533
|
-
const { data } = await tenantGetStepRunQueueMetrics({
|
|
1534
|
-
...options,
|
|
1535
|
-
...queryKey[0],
|
|
1536
|
-
signal,
|
|
1537
|
-
throwOnError: true
|
|
1538
|
-
});
|
|
1539
|
-
return data;
|
|
1540
|
-
},
|
|
1541
|
-
queryKey: tenantGetStepRunQueueMetricsQueryKey(options)
|
|
1542
|
-
});
|
|
1543
|
-
export const eventListQueryKey = (options) => createQueryKey('eventList', options);
|
|
1544
|
-
/**
|
|
1545
|
-
* List events
|
|
1546
|
-
*
|
|
1547
|
-
* Lists all events for a tenant.
|
|
1548
|
-
*/
|
|
1549
|
-
export const eventListOptions = (options) => queryOptions({
|
|
1550
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1551
|
-
const { data } = await eventList({
|
|
1552
|
-
...options,
|
|
1553
|
-
...queryKey[0],
|
|
1554
|
-
signal,
|
|
1555
|
-
throwOnError: true
|
|
1556
|
-
});
|
|
1557
|
-
return data;
|
|
1558
|
-
},
|
|
1559
|
-
queryKey: eventListQueryKey(options)
|
|
1560
|
-
});
|
|
1561
|
-
export const eventListInfiniteQueryKey = (options) => createQueryKey('eventList', options, true);
|
|
1562
|
-
/**
|
|
1563
|
-
* List events
|
|
1564
|
-
*
|
|
1565
|
-
* Lists all events for a tenant.
|
|
1566
|
-
*/
|
|
1567
|
-
export const eventListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
1568
|
-
// @ts-ignore
|
|
1569
|
-
{
|
|
1570
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1571
|
-
// @ts-ignore
|
|
1572
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
1573
|
-
query: {
|
|
1574
|
-
offset: pageParam
|
|
1575
|
-
}
|
|
1576
|
-
};
|
|
1577
|
-
const params = createInfiniteParams(queryKey, page);
|
|
1578
|
-
const { data } = await eventList({
|
|
1579
|
-
...options,
|
|
1580
|
-
...params,
|
|
1581
|
-
signal,
|
|
1582
|
-
throwOnError: true
|
|
1583
|
-
});
|
|
1584
|
-
return data;
|
|
1585
|
-
},
|
|
1586
|
-
queryKey: eventListInfiniteQueryKey(options)
|
|
1587
|
-
});
|
|
1588
|
-
/**
|
|
1589
|
-
* Create event
|
|
1590
|
-
*
|
|
1591
|
-
* Creates a new event.
|
|
1592
|
-
*/
|
|
1593
|
-
export const eventCreateMutation = (options) => {
|
|
1594
|
-
const mutationOptions = {
|
|
1595
|
-
mutationFn: async (fnOptions) => {
|
|
1596
|
-
const { data } = await eventCreate({
|
|
1597
|
-
...options,
|
|
1598
|
-
...fnOptions,
|
|
1599
|
-
throwOnError: true
|
|
1600
|
-
});
|
|
1601
|
-
return data;
|
|
1602
|
-
}
|
|
1603
|
-
};
|
|
1604
|
-
return mutationOptions;
|
|
1605
|
-
};
|
|
1606
|
-
/**
|
|
1607
|
-
* Bulk Create events
|
|
1608
|
-
*
|
|
1609
|
-
* Bulk creates new events.
|
|
1610
|
-
*/
|
|
1611
|
-
export const eventCreateBulkMutation = (options) => {
|
|
1612
|
-
const mutationOptions = {
|
|
1613
|
-
mutationFn: async (fnOptions) => {
|
|
1614
|
-
const { data } = await eventCreateBulk({
|
|
1615
|
-
...options,
|
|
1616
|
-
...fnOptions,
|
|
1617
|
-
throwOnError: true
|
|
1618
|
-
});
|
|
1619
|
-
return data;
|
|
1620
|
-
}
|
|
1621
|
-
};
|
|
1622
|
-
return mutationOptions;
|
|
1623
|
-
};
|
|
1624
|
-
/**
|
|
1625
|
-
* Replay events
|
|
1626
|
-
*
|
|
1627
|
-
* Replays a list of events.
|
|
1628
|
-
*/
|
|
1629
|
-
export const eventUpdateReplayMutation = (options) => {
|
|
1630
|
-
const mutationOptions = {
|
|
1631
|
-
mutationFn: async (fnOptions) => {
|
|
1632
|
-
const { data } = await eventUpdateReplay({
|
|
1633
|
-
...options,
|
|
1634
|
-
...fnOptions,
|
|
1635
|
-
throwOnError: true
|
|
1636
|
-
});
|
|
1637
|
-
return data;
|
|
1638
|
-
}
|
|
1639
|
-
};
|
|
1640
|
-
return mutationOptions;
|
|
1641
|
-
};
|
|
1642
|
-
/**
|
|
1643
|
-
* Replay events
|
|
1644
|
-
*
|
|
1645
|
-
* Cancels all runs for a list of events.
|
|
1646
|
-
*/
|
|
1647
|
-
export const eventUpdateCancelMutation = (options) => {
|
|
1648
|
-
const mutationOptions = {
|
|
1649
|
-
mutationFn: async (fnOptions) => {
|
|
1650
|
-
const { data } = await eventUpdateCancel({
|
|
1651
|
-
...options,
|
|
1652
|
-
...fnOptions,
|
|
1653
|
-
throwOnError: true
|
|
1654
|
-
});
|
|
1655
|
-
return data;
|
|
1656
|
-
}
|
|
1657
|
-
};
|
|
1658
|
-
return mutationOptions;
|
|
1659
|
-
};
|
|
1660
|
-
export const rateLimitListQueryKey = (options) => createQueryKey('rateLimitList', options);
|
|
1661
|
-
/**
|
|
1662
|
-
* List rate limits
|
|
1663
|
-
*
|
|
1664
|
-
* Lists all rate limits for a tenant.
|
|
1665
|
-
*/
|
|
1666
|
-
export const rateLimitListOptions = (options) => queryOptions({
|
|
1667
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1668
|
-
const { data } = await rateLimitList({
|
|
1669
|
-
...options,
|
|
1670
|
-
...queryKey[0],
|
|
1671
|
-
signal,
|
|
1672
|
-
throwOnError: true
|
|
1673
|
-
});
|
|
1674
|
-
return data;
|
|
1675
|
-
},
|
|
1676
|
-
queryKey: rateLimitListQueryKey(options)
|
|
1677
|
-
});
|
|
1678
|
-
export const rateLimitListInfiniteQueryKey = (options) => createQueryKey('rateLimitList', options, true);
|
|
1679
|
-
/**
|
|
1680
|
-
* List rate limits
|
|
1681
|
-
*
|
|
1682
|
-
* Lists all rate limits for a tenant.
|
|
1683
|
-
*/
|
|
1684
|
-
export const rateLimitListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
1685
|
-
// @ts-ignore
|
|
1686
|
-
{
|
|
1687
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1688
|
-
// @ts-ignore
|
|
1689
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
1690
|
-
query: {
|
|
1691
|
-
offset: pageParam
|
|
1692
|
-
}
|
|
1693
|
-
};
|
|
1694
|
-
const params = createInfiniteParams(queryKey, page);
|
|
1695
|
-
const { data } = await rateLimitList({
|
|
1696
|
-
...options,
|
|
1697
|
-
...params,
|
|
1698
|
-
signal,
|
|
1699
|
-
throwOnError: true
|
|
1700
|
-
});
|
|
1701
|
-
return data;
|
|
1702
|
-
},
|
|
1703
|
-
queryKey: rateLimitListInfiniteQueryKey(options)
|
|
1704
|
-
});
|
|
1705
|
-
export const tenantMemberListQueryKey = (options) => createQueryKey('tenantMemberList', options);
|
|
1706
|
-
/**
|
|
1707
|
-
* List tenant members
|
|
1708
|
-
*
|
|
1709
|
-
* Gets a list of tenant members
|
|
1710
|
-
*/
|
|
1711
|
-
export const tenantMemberListOptions = (options) => queryOptions({
|
|
1712
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1713
|
-
const { data } = await tenantMemberList({
|
|
1714
|
-
...options,
|
|
1715
|
-
...queryKey[0],
|
|
1716
|
-
signal,
|
|
1717
|
-
throwOnError: true
|
|
1718
|
-
});
|
|
1719
|
-
return data;
|
|
1720
|
-
},
|
|
1721
|
-
queryKey: tenantMemberListQueryKey(options)
|
|
1722
|
-
});
|
|
1723
|
-
/**
|
|
1724
|
-
* Delete a tenant member
|
|
1725
|
-
*
|
|
1726
|
-
* Delete a member from a tenant
|
|
1727
|
-
*/
|
|
1728
|
-
export const tenantMemberDeleteMutation = (options) => {
|
|
1729
|
-
const mutationOptions = {
|
|
1730
|
-
mutationFn: async (fnOptions) => {
|
|
1731
|
-
const { data } = await tenantMemberDelete({
|
|
1732
|
-
...options,
|
|
1733
|
-
...fnOptions,
|
|
1734
|
-
throwOnError: true
|
|
1735
|
-
});
|
|
1736
|
-
return data;
|
|
1737
|
-
}
|
|
1738
|
-
};
|
|
1739
|
-
return mutationOptions;
|
|
1740
|
-
};
|
|
1741
|
-
/**
|
|
1742
|
-
* Update a tenant member
|
|
1743
|
-
*
|
|
1744
|
-
* Update a tenant member
|
|
1745
|
-
*/
|
|
1746
|
-
export const tenantMemberUpdateMutation = (options) => {
|
|
1747
|
-
const mutationOptions = {
|
|
1748
|
-
mutationFn: async (fnOptions) => {
|
|
1749
|
-
const { data } = await tenantMemberUpdate({
|
|
1750
|
-
...options,
|
|
1751
|
-
...fnOptions,
|
|
1752
|
-
throwOnError: true
|
|
1753
|
-
});
|
|
1754
|
-
return data;
|
|
1755
|
-
}
|
|
1756
|
-
};
|
|
1757
|
-
return mutationOptions;
|
|
1758
|
-
};
|
|
1759
|
-
export const eventGetQueryKey = (options) => createQueryKey('eventGet', options);
|
|
1760
|
-
/**
|
|
1761
|
-
* Get event data
|
|
1762
|
-
*
|
|
1763
|
-
* Get an event.
|
|
1764
|
-
*/
|
|
1765
|
-
export const eventGetOptions = (options) => queryOptions({
|
|
1766
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1767
|
-
const { data } = await eventGet({
|
|
1768
|
-
...options,
|
|
1769
|
-
...queryKey[0],
|
|
1770
|
-
signal,
|
|
1771
|
-
throwOnError: true
|
|
1772
|
-
});
|
|
1773
|
-
return data;
|
|
1774
|
-
},
|
|
1775
|
-
queryKey: eventGetQueryKey(options)
|
|
1776
|
-
});
|
|
1777
|
-
export const eventDataGetQueryKey = (options) => createQueryKey('eventDataGet', options);
|
|
1778
|
-
/**
|
|
1779
|
-
* Get event data
|
|
1780
|
-
*
|
|
1781
|
-
* Get the data for an event.
|
|
1782
|
-
*/
|
|
1783
|
-
export const eventDataGetOptions = (options) => queryOptions({
|
|
1784
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1785
|
-
const { data } = await eventDataGet({
|
|
1786
|
-
...options,
|
|
1787
|
-
...queryKey[0],
|
|
1788
|
-
signal,
|
|
1789
|
-
throwOnError: true
|
|
1790
|
-
});
|
|
1791
|
-
return data;
|
|
1792
|
-
},
|
|
1793
|
-
queryKey: eventDataGetQueryKey(options)
|
|
1794
|
-
});
|
|
1795
|
-
export const eventKeyListQueryKey = (options) => createQueryKey('eventKeyList', options);
|
|
1796
|
-
/**
|
|
1797
|
-
* List event keys
|
|
1798
|
-
*
|
|
1799
|
-
* Lists all event keys for a tenant.
|
|
1800
|
-
*/
|
|
1801
|
-
export const eventKeyListOptions = (options) => queryOptions({
|
|
1802
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1803
|
-
const { data } = await eventKeyList({
|
|
1804
|
-
...options,
|
|
1805
|
-
...queryKey[0],
|
|
1806
|
-
signal,
|
|
1807
|
-
throwOnError: true
|
|
1808
|
-
});
|
|
1809
|
-
return data;
|
|
1810
|
-
},
|
|
1811
|
-
queryKey: eventKeyListQueryKey(options)
|
|
1812
|
-
});
|
|
1813
|
-
export const workflowListQueryKey = (options) => createQueryKey('workflowList', options);
|
|
1814
|
-
/**
|
|
1815
|
-
* Get workflows
|
|
1816
|
-
*
|
|
1817
|
-
* Get all workflows for a tenant
|
|
1818
|
-
*/
|
|
1819
|
-
export const workflowListOptions = (options) => queryOptions({
|
|
1820
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1821
|
-
const { data } = await workflowList({
|
|
1822
|
-
...options,
|
|
1823
|
-
...queryKey[0],
|
|
1824
|
-
signal,
|
|
1825
|
-
throwOnError: true
|
|
1826
|
-
});
|
|
1827
|
-
return data;
|
|
1828
|
-
},
|
|
1829
|
-
queryKey: workflowListQueryKey(options)
|
|
1830
|
-
});
|
|
1831
|
-
export const workflowListInfiniteQueryKey = (options) => createQueryKey('workflowList', options, true);
|
|
1832
|
-
/**
|
|
1833
|
-
* Get workflows
|
|
1834
|
-
*
|
|
1835
|
-
* Get all workflows for a tenant
|
|
1836
|
-
*/
|
|
1837
|
-
export const workflowListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
1838
|
-
// @ts-ignore
|
|
1839
|
-
{
|
|
1840
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1841
|
-
// @ts-ignore
|
|
1842
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
1843
|
-
query: {
|
|
1844
|
-
offset: pageParam
|
|
1845
|
-
}
|
|
1846
|
-
};
|
|
1847
|
-
const params = createInfiniteParams(queryKey, page);
|
|
1848
|
-
const { data } = await workflowList({
|
|
1849
|
-
...options,
|
|
1850
|
-
...params,
|
|
1851
|
-
signal,
|
|
1852
|
-
throwOnError: true
|
|
1853
|
-
});
|
|
1854
|
-
return data;
|
|
1855
|
-
},
|
|
1856
|
-
queryKey: workflowListInfiniteQueryKey(options)
|
|
1857
|
-
});
|
|
1858
|
-
/**
|
|
1859
|
-
* Trigger workflow run
|
|
1860
|
-
*
|
|
1861
|
-
* Schedule a new workflow run for a tenant
|
|
1862
|
-
*/
|
|
1863
|
-
export const scheduledWorkflowRunCreateMutation = (options) => {
|
|
1864
|
-
const mutationOptions = {
|
|
1865
|
-
mutationFn: async (fnOptions) => {
|
|
1866
|
-
const { data } = await scheduledWorkflowRunCreate({
|
|
1867
|
-
...options,
|
|
1868
|
-
...fnOptions,
|
|
1869
|
-
throwOnError: true
|
|
1870
|
-
});
|
|
1871
|
-
return data;
|
|
1872
|
-
}
|
|
1873
|
-
};
|
|
1874
|
-
return mutationOptions;
|
|
1875
|
-
};
|
|
1876
|
-
export const workflowScheduledListQueryKey = (options) => createQueryKey('workflowScheduledList', options);
|
|
1877
|
-
/**
|
|
1878
|
-
* Get scheduled workflow runs
|
|
1879
|
-
*
|
|
1880
|
-
* Get all scheduled workflow runs for a tenant
|
|
1881
|
-
*/
|
|
1882
|
-
export const workflowScheduledListOptions = (options) => queryOptions({
|
|
1883
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1884
|
-
const { data } = await workflowScheduledList({
|
|
1885
|
-
...options,
|
|
1886
|
-
...queryKey[0],
|
|
1887
|
-
signal,
|
|
1888
|
-
throwOnError: true
|
|
1889
|
-
});
|
|
1890
|
-
return data;
|
|
1891
|
-
},
|
|
1892
|
-
queryKey: workflowScheduledListQueryKey(options)
|
|
1893
|
-
});
|
|
1894
|
-
export const workflowScheduledListInfiniteQueryKey = (options) => createQueryKey('workflowScheduledList', options, true);
|
|
1895
|
-
/**
|
|
1896
|
-
* Get scheduled workflow runs
|
|
1897
|
-
*
|
|
1898
|
-
* Get all scheduled workflow runs for a tenant
|
|
1899
|
-
*/
|
|
1900
|
-
export const workflowScheduledListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
1901
|
-
// @ts-ignore
|
|
1902
|
-
{
|
|
1903
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1904
|
-
// @ts-ignore
|
|
1905
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
1906
|
-
query: {
|
|
1907
|
-
offset: pageParam
|
|
1908
|
-
}
|
|
1909
|
-
};
|
|
1910
|
-
const params = createInfiniteParams(queryKey, page);
|
|
1911
|
-
const { data } = await workflowScheduledList({
|
|
1912
|
-
...options,
|
|
1913
|
-
...params,
|
|
1914
|
-
signal,
|
|
1915
|
-
throwOnError: true
|
|
1916
|
-
});
|
|
1917
|
-
return data;
|
|
1918
|
-
},
|
|
1919
|
-
queryKey: workflowScheduledListInfiniteQueryKey(options)
|
|
1920
|
-
});
|
|
1921
|
-
/**
|
|
1922
|
-
* Delete scheduled workflow run
|
|
1923
|
-
*
|
|
1924
|
-
* Delete a scheduled workflow run for a tenant
|
|
1925
|
-
*/
|
|
1926
|
-
export const workflowScheduledDeleteMutation = (options) => {
|
|
1927
|
-
const mutationOptions = {
|
|
1928
|
-
mutationFn: async (fnOptions) => {
|
|
1929
|
-
const { data } = await workflowScheduledDelete({
|
|
1930
|
-
...options,
|
|
1931
|
-
...fnOptions,
|
|
1932
|
-
throwOnError: true
|
|
1933
|
-
});
|
|
1934
|
-
return data;
|
|
1935
|
-
}
|
|
1936
|
-
};
|
|
1937
|
-
return mutationOptions;
|
|
1938
|
-
};
|
|
1939
|
-
export const workflowScheduledGetQueryKey = (options) => createQueryKey('workflowScheduledGet', options);
|
|
1940
|
-
/**
|
|
1941
|
-
* Get scheduled workflow run
|
|
1942
|
-
*
|
|
1943
|
-
* Get a scheduled workflow run for a tenant
|
|
1944
|
-
*/
|
|
1945
|
-
export const workflowScheduledGetOptions = (options) => queryOptions({
|
|
1946
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1947
|
-
const { data } = await workflowScheduledGet({
|
|
1948
|
-
...options,
|
|
1949
|
-
...queryKey[0],
|
|
1950
|
-
signal,
|
|
1951
|
-
throwOnError: true
|
|
1952
|
-
});
|
|
1953
|
-
return data;
|
|
1954
|
-
},
|
|
1955
|
-
queryKey: workflowScheduledGetQueryKey(options)
|
|
1956
|
-
});
|
|
1957
|
-
/**
|
|
1958
|
-
* Create cron job workflow trigger
|
|
1959
|
-
*
|
|
1960
|
-
* Create a new cron job workflow trigger for a tenant
|
|
1961
|
-
*/
|
|
1962
|
-
export const cronWorkflowTriggerCreateMutation = (options) => {
|
|
1963
|
-
const mutationOptions = {
|
|
1964
|
-
mutationFn: async (fnOptions) => {
|
|
1965
|
-
const { data } = await cronWorkflowTriggerCreate({
|
|
1966
|
-
...options,
|
|
1967
|
-
...fnOptions,
|
|
1968
|
-
throwOnError: true
|
|
1969
|
-
});
|
|
1970
|
-
return data;
|
|
1971
|
-
}
|
|
1972
|
-
};
|
|
1973
|
-
return mutationOptions;
|
|
1974
|
-
};
|
|
1975
|
-
export const cronWorkflowListQueryKey = (options) => createQueryKey('cronWorkflowList', options);
|
|
1976
|
-
/**
|
|
1977
|
-
* Get cron job workflows
|
|
1978
|
-
*
|
|
1979
|
-
* Get all cron job workflow triggers for a tenant
|
|
1980
|
-
*/
|
|
1981
|
-
export const cronWorkflowListOptions = (options) => queryOptions({
|
|
1982
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1983
|
-
const { data } = await cronWorkflowList({
|
|
1984
|
-
...options,
|
|
1985
|
-
...queryKey[0],
|
|
1986
|
-
signal,
|
|
1987
|
-
throwOnError: true
|
|
1988
|
-
});
|
|
1989
|
-
return data;
|
|
1990
|
-
},
|
|
1991
|
-
queryKey: cronWorkflowListQueryKey(options)
|
|
1992
|
-
});
|
|
1993
|
-
export const cronWorkflowListInfiniteQueryKey = (options) => createQueryKey('cronWorkflowList', options, true);
|
|
1994
|
-
/**
|
|
1995
|
-
* Get cron job workflows
|
|
1996
|
-
*
|
|
1997
|
-
* Get all cron job workflow triggers for a tenant
|
|
1998
|
-
*/
|
|
1999
|
-
export const cronWorkflowListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2000
|
-
// @ts-ignore
|
|
2001
|
-
{
|
|
2002
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2003
|
-
// @ts-ignore
|
|
2004
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2005
|
-
query: {
|
|
2006
|
-
offset: pageParam
|
|
2007
|
-
}
|
|
2008
|
-
};
|
|
2009
|
-
const params = createInfiniteParams(queryKey, page);
|
|
2010
|
-
const { data } = await cronWorkflowList({
|
|
2011
|
-
...options,
|
|
2012
|
-
...params,
|
|
2013
|
-
signal,
|
|
2014
|
-
throwOnError: true
|
|
2015
|
-
});
|
|
2016
|
-
return data;
|
|
2017
|
-
},
|
|
2018
|
-
queryKey: cronWorkflowListInfiniteQueryKey(options)
|
|
2019
|
-
});
|
|
2020
|
-
/**
|
|
2021
|
-
* Delete cron job workflow run
|
|
2022
|
-
*
|
|
2023
|
-
* Delete a cron job workflow run for a tenant
|
|
2024
|
-
*/
|
|
2025
|
-
export const workflowCronDeleteMutation = (options) => {
|
|
2026
|
-
const mutationOptions = {
|
|
2027
|
-
mutationFn: async (fnOptions) => {
|
|
2028
|
-
const { data } = await workflowCronDelete({
|
|
2029
|
-
...options,
|
|
2030
|
-
...fnOptions,
|
|
2031
|
-
throwOnError: true
|
|
2032
|
-
});
|
|
2033
|
-
return data;
|
|
2034
|
-
}
|
|
2035
|
-
};
|
|
2036
|
-
return mutationOptions;
|
|
2037
|
-
};
|
|
2038
|
-
export const workflowCronGetQueryKey = (options) => createQueryKey('workflowCronGet', options);
|
|
2039
|
-
/**
|
|
2040
|
-
* Get cron job workflow run
|
|
2041
|
-
*
|
|
2042
|
-
* Get a cron job workflow run for a tenant
|
|
2043
|
-
*/
|
|
2044
|
-
export const workflowCronGetOptions = (options) => queryOptions({
|
|
2045
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2046
|
-
const { data } = await workflowCronGet({
|
|
2047
|
-
...options,
|
|
2048
|
-
...queryKey[0],
|
|
2049
|
-
signal,
|
|
2050
|
-
throwOnError: true
|
|
2051
|
-
});
|
|
2052
|
-
return data;
|
|
2053
|
-
},
|
|
2054
|
-
queryKey: workflowCronGetQueryKey(options)
|
|
2055
|
-
});
|
|
2056
|
-
/**
|
|
2057
|
-
* Update cron job workflow run
|
|
2058
|
-
*
|
|
2059
|
-
* Update a cron workflow for a tenant
|
|
2060
|
-
*/
|
|
2061
|
-
export const workflowCronUpdateMutation = (options) => {
|
|
2062
|
-
const mutationOptions = {
|
|
2063
|
-
mutationFn: async (fnOptions) => {
|
|
2064
|
-
const { data } = await workflowCronUpdate({
|
|
2065
|
-
...options,
|
|
2066
|
-
...fnOptions,
|
|
2067
|
-
throwOnError: true
|
|
2068
|
-
});
|
|
2069
|
-
return data;
|
|
2070
|
-
}
|
|
2071
|
-
};
|
|
2072
|
-
return mutationOptions;
|
|
2073
|
-
};
|
|
2074
|
-
/**
|
|
2075
|
-
* Cancel workflow runs
|
|
2076
|
-
*
|
|
2077
|
-
* Cancel a batch of workflow runs
|
|
2078
|
-
*/
|
|
2079
|
-
export const workflowRunCancelMutation = (options) => {
|
|
2080
|
-
const mutationOptions = {
|
|
2081
|
-
mutationFn: async (fnOptions) => {
|
|
2082
|
-
const { data } = await workflowRunCancel({
|
|
2083
|
-
...options,
|
|
2084
|
-
...fnOptions,
|
|
2085
|
-
throwOnError: true
|
|
2086
|
-
});
|
|
2087
|
-
return data;
|
|
2088
|
-
}
|
|
2089
|
-
};
|
|
2090
|
-
return mutationOptions;
|
|
2091
|
-
};
|
|
2092
|
-
/**
|
|
2093
|
-
* Delete workflow
|
|
2094
|
-
*
|
|
2095
|
-
* Delete a workflow for a tenant
|
|
2096
|
-
*/
|
|
2097
|
-
export const workflowDeleteMutation = (options) => {
|
|
2098
|
-
const mutationOptions = {
|
|
2099
|
-
mutationFn: async (fnOptions) => {
|
|
2100
|
-
const { data } = await workflowDelete({
|
|
2101
|
-
...options,
|
|
2102
|
-
...fnOptions,
|
|
2103
|
-
throwOnError: true
|
|
2104
|
-
});
|
|
2105
|
-
return data;
|
|
2106
|
-
}
|
|
2107
|
-
};
|
|
2108
|
-
return mutationOptions;
|
|
2109
|
-
};
|
|
2110
|
-
export const workflowGetQueryKey = (options) => createQueryKey('workflowGet', options);
|
|
2111
|
-
/**
|
|
2112
|
-
* Get workflow
|
|
2113
|
-
*
|
|
2114
|
-
* Get a workflow for a tenant
|
|
2115
|
-
*/
|
|
2116
|
-
export const workflowGetOptions = (options) => queryOptions({
|
|
2117
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2118
|
-
const { data } = await workflowGet({
|
|
2119
|
-
...options,
|
|
2120
|
-
...queryKey[0],
|
|
2121
|
-
signal,
|
|
2122
|
-
throwOnError: true
|
|
2123
|
-
});
|
|
2124
|
-
return data;
|
|
2125
|
-
},
|
|
2126
|
-
queryKey: workflowGetQueryKey(options)
|
|
2127
|
-
});
|
|
2128
|
-
/**
|
|
2129
|
-
* Update workflow
|
|
2130
|
-
*
|
|
2131
|
-
* Update a workflow for a tenant
|
|
2132
|
-
*/
|
|
2133
|
-
export const workflowUpdateMutation = (options) => {
|
|
2134
|
-
const mutationOptions = {
|
|
2135
|
-
mutationFn: async (fnOptions) => {
|
|
2136
|
-
const { data } = await workflowUpdate({
|
|
2137
|
-
...options,
|
|
2138
|
-
...fnOptions,
|
|
2139
|
-
throwOnError: true
|
|
2140
|
-
});
|
|
2141
|
-
return data;
|
|
2142
|
-
}
|
|
2143
|
-
};
|
|
2144
|
-
return mutationOptions;
|
|
2145
|
-
};
|
|
2146
|
-
export const workflowVersionGetQueryKey = (options) => createQueryKey('workflowVersionGet', options);
|
|
2147
|
-
/**
|
|
2148
|
-
* Get workflow version
|
|
2149
|
-
*
|
|
2150
|
-
* Get a workflow version for a tenant
|
|
2151
|
-
*/
|
|
2152
|
-
export const workflowVersionGetOptions = (options) => queryOptions({
|
|
2153
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2154
|
-
const { data } = await workflowVersionGet({
|
|
2155
|
-
...options,
|
|
2156
|
-
...queryKey[0],
|
|
2157
|
-
signal,
|
|
2158
|
-
throwOnError: true
|
|
2159
|
-
});
|
|
2160
|
-
return data;
|
|
2161
|
-
},
|
|
2162
|
-
queryKey: workflowVersionGetQueryKey(options)
|
|
2163
|
-
});
|
|
2164
|
-
/**
|
|
2165
|
-
* Trigger workflow run
|
|
2166
|
-
*
|
|
2167
|
-
* Trigger a new workflow run for a tenant
|
|
2168
|
-
*/
|
|
2169
|
-
export const workflowRunCreateMutation = (options) => {
|
|
2170
|
-
const mutationOptions = {
|
|
2171
|
-
mutationFn: async (fnOptions) => {
|
|
2172
|
-
const { data } = await workflowRunCreate({
|
|
2173
|
-
...options,
|
|
2174
|
-
...fnOptions,
|
|
2175
|
-
throwOnError: true
|
|
2176
|
-
});
|
|
2177
|
-
return data;
|
|
2178
|
-
}
|
|
2179
|
-
};
|
|
2180
|
-
return mutationOptions;
|
|
2181
|
-
};
|
|
2182
|
-
export const workflowGetMetricsQueryKey = (options) => createQueryKey('workflowGetMetrics', options);
|
|
2183
|
-
/**
|
|
2184
|
-
* Get workflow metrics
|
|
2185
|
-
*
|
|
2186
|
-
* Get the metrics for a workflow version
|
|
2187
|
-
*/
|
|
2188
|
-
export const workflowGetMetricsOptions = (options) => queryOptions({
|
|
2189
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2190
|
-
const { data } = await workflowGetMetrics({
|
|
2191
|
-
...options,
|
|
2192
|
-
...queryKey[0],
|
|
2193
|
-
signal,
|
|
2194
|
-
throwOnError: true
|
|
2195
|
-
});
|
|
2196
|
-
return data;
|
|
2197
|
-
},
|
|
2198
|
-
queryKey: workflowGetMetricsQueryKey(options)
|
|
2199
|
-
});
|
|
2200
|
-
export const logLineListQueryKey = (options) => createQueryKey('logLineList', options);
|
|
2201
|
-
/**
|
|
2202
|
-
* List log lines
|
|
2203
|
-
*
|
|
2204
|
-
* Lists log lines for a step run.
|
|
2205
|
-
*/
|
|
2206
|
-
export const logLineListOptions = (options) => queryOptions({
|
|
2207
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2208
|
-
const { data } = await logLineList({
|
|
2209
|
-
...options,
|
|
2210
|
-
...queryKey[0],
|
|
2211
|
-
signal,
|
|
2212
|
-
throwOnError: true
|
|
2213
|
-
});
|
|
2214
|
-
return data;
|
|
2215
|
-
},
|
|
2216
|
-
queryKey: logLineListQueryKey(options)
|
|
2217
|
-
});
|
|
2218
|
-
export const logLineListInfiniteQueryKey = (options) => createQueryKey('logLineList', options, true);
|
|
2219
|
-
/**
|
|
2220
|
-
* List log lines
|
|
2221
|
-
*
|
|
2222
|
-
* Lists log lines for a step run.
|
|
2223
|
-
*/
|
|
2224
|
-
export const logLineListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2225
|
-
// @ts-ignore
|
|
2226
|
-
{
|
|
2227
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2228
|
-
// @ts-ignore
|
|
2229
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2230
|
-
query: {
|
|
2231
|
-
offset: pageParam
|
|
2232
|
-
}
|
|
2233
|
-
};
|
|
2234
|
-
const params = createInfiniteParams(queryKey, page);
|
|
2235
|
-
const { data } = await logLineList({
|
|
2236
|
-
...options,
|
|
2237
|
-
...params,
|
|
2238
|
-
signal,
|
|
2239
|
-
throwOnError: true
|
|
2240
|
-
});
|
|
2241
|
-
return data;
|
|
2242
|
-
},
|
|
2243
|
-
queryKey: logLineListInfiniteQueryKey(options)
|
|
2244
|
-
});
|
|
2245
|
-
export const stepRunListEventsQueryKey = (options) => createQueryKey('stepRunListEvents', options);
|
|
2246
|
-
/**
|
|
2247
|
-
* List events for step run
|
|
2248
|
-
*
|
|
2249
|
-
* List events for a step run
|
|
2250
|
-
*/
|
|
2251
|
-
export const stepRunListEventsOptions = (options) => queryOptions({
|
|
2252
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2253
|
-
const { data } = await stepRunListEvents({
|
|
2254
|
-
...options,
|
|
2255
|
-
...queryKey[0],
|
|
2256
|
-
signal,
|
|
2257
|
-
throwOnError: true
|
|
2258
|
-
});
|
|
2259
|
-
return data;
|
|
2260
|
-
},
|
|
2261
|
-
queryKey: stepRunListEventsQueryKey(options)
|
|
2262
|
-
});
|
|
2263
|
-
export const stepRunListEventsInfiniteQueryKey = (options) => createQueryKey('stepRunListEvents', options, true);
|
|
2264
|
-
/**
|
|
2265
|
-
* List events for step run
|
|
2266
|
-
*
|
|
2267
|
-
* List events for a step run
|
|
2268
|
-
*/
|
|
2269
|
-
export const stepRunListEventsInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2270
|
-
// @ts-ignore
|
|
2271
|
-
{
|
|
2272
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2273
|
-
// @ts-ignore
|
|
2274
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2275
|
-
query: {
|
|
2276
|
-
offset: pageParam
|
|
2277
|
-
}
|
|
2278
|
-
};
|
|
2279
|
-
const params = createInfiniteParams(queryKey, page);
|
|
2280
|
-
const { data } = await stepRunListEvents({
|
|
2281
|
-
...options,
|
|
2282
|
-
...params,
|
|
2283
|
-
signal,
|
|
2284
|
-
throwOnError: true
|
|
2285
|
-
});
|
|
2286
|
-
return data;
|
|
2287
|
-
},
|
|
2288
|
-
queryKey: stepRunListEventsInfiniteQueryKey(options)
|
|
2289
|
-
});
|
|
2290
|
-
export const workflowRunListStepRunEventsQueryKey = (options) => createQueryKey('workflowRunListStepRunEvents', options);
|
|
2291
|
-
/**
|
|
2292
|
-
* List events for all step runs for a workflow run
|
|
2293
|
-
*
|
|
2294
|
-
* List events for all step runs for a workflow run
|
|
2295
|
-
*/
|
|
2296
|
-
export const workflowRunListStepRunEventsOptions = (options) => queryOptions({
|
|
2297
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2298
|
-
const { data } = await workflowRunListStepRunEvents({
|
|
2299
|
-
...options,
|
|
2300
|
-
...queryKey[0],
|
|
2301
|
-
signal,
|
|
2302
|
-
throwOnError: true
|
|
2303
|
-
});
|
|
2304
|
-
return data;
|
|
2305
|
-
},
|
|
2306
|
-
queryKey: workflowRunListStepRunEventsQueryKey(options)
|
|
2307
|
-
});
|
|
2308
|
-
export const stepRunListArchivesQueryKey = (options) => createQueryKey('stepRunListArchives', options);
|
|
2309
|
-
/**
|
|
2310
|
-
* List archives for step run
|
|
2311
|
-
*
|
|
2312
|
-
* List archives for a step run
|
|
2313
|
-
*/
|
|
2314
|
-
export const stepRunListArchivesOptions = (options) => queryOptions({
|
|
2315
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2316
|
-
const { data } = await stepRunListArchives({
|
|
2317
|
-
...options,
|
|
2318
|
-
...queryKey[0],
|
|
2319
|
-
signal,
|
|
2320
|
-
throwOnError: true
|
|
2321
|
-
});
|
|
2322
|
-
return data;
|
|
2323
|
-
},
|
|
2324
|
-
queryKey: stepRunListArchivesQueryKey(options)
|
|
2325
|
-
});
|
|
2326
|
-
export const stepRunListArchivesInfiniteQueryKey = (options) => createQueryKey('stepRunListArchives', options, true);
|
|
2327
|
-
/**
|
|
2328
|
-
* List archives for step run
|
|
2329
|
-
*
|
|
2330
|
-
* List archives for a step run
|
|
2331
|
-
*/
|
|
2332
|
-
export const stepRunListArchivesInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2333
|
-
// @ts-ignore
|
|
2334
|
-
{
|
|
2335
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2336
|
-
// @ts-ignore
|
|
2337
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2338
|
-
query: {
|
|
2339
|
-
offset: pageParam
|
|
2340
|
-
}
|
|
2341
|
-
};
|
|
2342
|
-
const params = createInfiniteParams(queryKey, page);
|
|
2343
|
-
const { data } = await stepRunListArchives({
|
|
2344
|
-
...options,
|
|
2345
|
-
...params,
|
|
2346
|
-
signal,
|
|
2347
|
-
throwOnError: true
|
|
2348
|
-
});
|
|
2349
|
-
return data;
|
|
2350
|
-
},
|
|
2351
|
-
queryKey: stepRunListArchivesInfiniteQueryKey(options)
|
|
2352
|
-
});
|
|
2353
|
-
export const workflowGetWorkersCountQueryKey = (options) => createQueryKey('workflowGetWorkersCount', options);
|
|
2354
|
-
/**
|
|
2355
|
-
* Get workflow worker count
|
|
2356
|
-
*
|
|
2357
|
-
* Get a count of the workers available for workflow
|
|
2358
|
-
*/
|
|
2359
|
-
export const workflowGetWorkersCountOptions = (options) => queryOptions({
|
|
2360
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2361
|
-
const { data } = await workflowGetWorkersCount({
|
|
2362
|
-
...options,
|
|
2363
|
-
...queryKey[0],
|
|
2364
|
-
signal,
|
|
2365
|
-
throwOnError: true
|
|
2366
|
-
});
|
|
2367
|
-
return data;
|
|
2368
|
-
},
|
|
2369
|
-
queryKey: workflowGetWorkersCountQueryKey(options)
|
|
2370
|
-
});
|
|
2371
|
-
export const workflowRunListQueryKey = (options) => createQueryKey('workflowRunList', options);
|
|
2372
|
-
/**
|
|
2373
|
-
* Get workflow runs
|
|
2374
|
-
*
|
|
2375
|
-
* Get all workflow runs for a tenant
|
|
2376
|
-
*/
|
|
2377
|
-
export const workflowRunListOptions = (options) => queryOptions({
|
|
2378
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2379
|
-
const { data } = await workflowRunList({
|
|
2380
|
-
...options,
|
|
2381
|
-
...queryKey[0],
|
|
2382
|
-
signal,
|
|
2383
|
-
throwOnError: true
|
|
2384
|
-
});
|
|
2385
|
-
return data;
|
|
2386
|
-
},
|
|
2387
|
-
queryKey: workflowRunListQueryKey(options)
|
|
2388
|
-
});
|
|
2389
|
-
export const workflowRunListInfiniteQueryKey = (options) => createQueryKey('workflowRunList', options, true);
|
|
2390
|
-
/**
|
|
2391
|
-
* Get workflow runs
|
|
2392
|
-
*
|
|
2393
|
-
* Get all workflow runs for a tenant
|
|
2394
|
-
*/
|
|
2395
|
-
export const workflowRunListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
2396
|
-
// @ts-ignore
|
|
2397
|
-
{
|
|
2398
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2399
|
-
// @ts-ignore
|
|
2400
|
-
const page = typeof pageParam === 'object' ? pageParam : {
|
|
2401
|
-
query: {
|
|
2402
|
-
offset: pageParam
|
|
2403
|
-
}
|
|
2404
|
-
};
|
|
2405
|
-
const params = createInfiniteParams(queryKey, page);
|
|
2406
|
-
const { data } = await workflowRunList({
|
|
2407
|
-
...options,
|
|
2408
|
-
...params,
|
|
2409
|
-
signal,
|
|
2410
|
-
throwOnError: true
|
|
2411
|
-
});
|
|
2412
|
-
return data;
|
|
2413
|
-
},
|
|
2414
|
-
queryKey: workflowRunListInfiniteQueryKey(options)
|
|
2415
|
-
});
|
|
2416
|
-
/**
|
|
2417
|
-
* Replay workflow runs
|
|
2418
|
-
*
|
|
2419
|
-
* Replays a list of workflow runs.
|
|
2420
|
-
*/
|
|
2421
|
-
export const workflowRunUpdateReplayMutation = (options) => {
|
|
2422
|
-
const mutationOptions = {
|
|
2423
|
-
mutationFn: async (fnOptions) => {
|
|
2424
|
-
const { data } = await workflowRunUpdateReplay({
|
|
2425
|
-
...options,
|
|
2426
|
-
...fnOptions,
|
|
2427
|
-
throwOnError: true
|
|
2428
|
-
});
|
|
2429
|
-
return data;
|
|
2430
|
-
}
|
|
2431
|
-
};
|
|
2432
|
-
return mutationOptions;
|
|
2433
|
-
};
|
|
2434
|
-
export const workflowRunGetMetricsQueryKey = (options) => createQueryKey('workflowRunGetMetrics', options);
|
|
2435
|
-
/**
|
|
2436
|
-
* Get workflow runs metrics
|
|
2437
|
-
*
|
|
2438
|
-
* Get a summary of workflow run metrics for a tenant
|
|
2439
|
-
*/
|
|
2440
|
-
export const workflowRunGetMetricsOptions = (options) => queryOptions({
|
|
2441
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2442
|
-
const { data } = await workflowRunGetMetrics({
|
|
2443
|
-
...options,
|
|
2444
|
-
...queryKey[0],
|
|
2445
|
-
signal,
|
|
2446
|
-
throwOnError: true
|
|
2447
|
-
});
|
|
2448
|
-
return data;
|
|
2449
|
-
},
|
|
2450
|
-
queryKey: workflowRunGetMetricsQueryKey(options)
|
|
2451
|
-
});
|
|
2452
|
-
export const workflowRunGetQueryKey = (options) => createQueryKey('workflowRunGet', options);
|
|
2453
|
-
/**
|
|
2454
|
-
* Get workflow run
|
|
2455
|
-
*
|
|
2456
|
-
* Get a workflow run for a tenant
|
|
2457
|
-
*/
|
|
2458
|
-
export const workflowRunGetOptions = (options) => queryOptions({
|
|
2459
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2460
|
-
const { data } = await workflowRunGet({
|
|
2461
|
-
...options,
|
|
2462
|
-
...queryKey[0],
|
|
2463
|
-
signal,
|
|
2464
|
-
throwOnError: true
|
|
2465
|
-
});
|
|
2466
|
-
return data;
|
|
2467
|
-
},
|
|
2468
|
-
queryKey: workflowRunGetQueryKey(options)
|
|
2469
|
-
});
|
|
2470
|
-
export const workflowRunGetShapeQueryKey = (options) => createQueryKey('workflowRunGetShape', options);
|
|
2471
|
-
/**
|
|
2472
|
-
* Get workflow run
|
|
2473
|
-
*
|
|
2474
|
-
* Get a workflow run for a tenant
|
|
2475
|
-
*/
|
|
2476
|
-
export const workflowRunGetShapeOptions = (options) => queryOptions({
|
|
2477
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2478
|
-
const { data } = await workflowRunGetShape({
|
|
2479
|
-
...options,
|
|
2480
|
-
...queryKey[0],
|
|
2481
|
-
signal,
|
|
2482
|
-
throwOnError: true
|
|
2483
|
-
});
|
|
2484
|
-
return data;
|
|
2485
|
-
},
|
|
2486
|
-
queryKey: workflowRunGetShapeQueryKey(options)
|
|
2487
|
-
});
|
|
2488
|
-
export const stepRunGetQueryKey = (options) => createQueryKey('stepRunGet', options);
|
|
2489
|
-
/**
|
|
2490
|
-
* Get step run
|
|
2491
|
-
*
|
|
2492
|
-
* Get a step run by id
|
|
2493
|
-
*/
|
|
2494
|
-
export const stepRunGetOptions = (options) => queryOptions({
|
|
2495
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2496
|
-
const { data } = await stepRunGet({
|
|
2497
|
-
...options,
|
|
2498
|
-
...queryKey[0],
|
|
2499
|
-
signal,
|
|
2500
|
-
throwOnError: true
|
|
2501
|
-
});
|
|
2502
|
-
return data;
|
|
2503
|
-
},
|
|
2504
|
-
queryKey: stepRunGetQueryKey(options)
|
|
2505
|
-
});
|
|
2506
|
-
/**
|
|
2507
|
-
* Rerun step run
|
|
2508
|
-
*
|
|
2509
|
-
* Reruns a step run
|
|
2510
|
-
*/
|
|
2511
|
-
export const stepRunUpdateRerunMutation = (options) => {
|
|
2512
|
-
const mutationOptions = {
|
|
2513
|
-
mutationFn: async (fnOptions) => {
|
|
2514
|
-
const { data } = await stepRunUpdateRerun({
|
|
2515
|
-
...options,
|
|
2516
|
-
...fnOptions,
|
|
2517
|
-
throwOnError: true
|
|
2518
|
-
});
|
|
2519
|
-
return data;
|
|
2520
|
-
}
|
|
2521
|
-
};
|
|
2522
|
-
return mutationOptions;
|
|
2523
|
-
};
|
|
2524
|
-
/**
|
|
2525
|
-
* Attempts to cancel a step run
|
|
2526
|
-
*
|
|
2527
|
-
* Attempts to cancel a step run
|
|
2528
|
-
*/
|
|
2529
|
-
export const stepRunUpdateCancelMutation = (options) => {
|
|
2530
|
-
const mutationOptions = {
|
|
2531
|
-
mutationFn: async (fnOptions) => {
|
|
2532
|
-
const { data } = await stepRunUpdateCancel({
|
|
2533
|
-
...options,
|
|
2534
|
-
...fnOptions,
|
|
2535
|
-
throwOnError: true
|
|
2536
|
-
});
|
|
2537
|
-
return data;
|
|
2538
|
-
}
|
|
2539
|
-
};
|
|
2540
|
-
return mutationOptions;
|
|
2541
|
-
};
|
|
2542
|
-
export const stepRunGetSchemaQueryKey = (options) => createQueryKey('stepRunGetSchema', options);
|
|
2543
|
-
/**
|
|
2544
|
-
* Get step run schema
|
|
2545
|
-
*
|
|
2546
|
-
* Get the schema for a step run
|
|
2547
|
-
*/
|
|
2548
|
-
export const stepRunGetSchemaOptions = (options) => queryOptions({
|
|
2549
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2550
|
-
const { data } = await stepRunGetSchema({
|
|
2551
|
-
...options,
|
|
2552
|
-
...queryKey[0],
|
|
2553
|
-
signal,
|
|
2554
|
-
throwOnError: true
|
|
2555
|
-
});
|
|
2556
|
-
return data;
|
|
2557
|
-
},
|
|
2558
|
-
queryKey: stepRunGetSchemaQueryKey(options)
|
|
2559
|
-
});
|
|
2560
|
-
export const workerListQueryKey = (options) => createQueryKey('workerList', options);
|
|
2561
|
-
/**
|
|
2562
|
-
* Get workers
|
|
2563
|
-
*
|
|
2564
|
-
* Get all workers for a tenant
|
|
2565
|
-
*/
|
|
2566
|
-
export const workerListOptions = (options) => queryOptions({
|
|
2567
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2568
|
-
const { data } = await workerList({
|
|
2569
|
-
...options,
|
|
2570
|
-
...queryKey[0],
|
|
2571
|
-
signal,
|
|
2572
|
-
throwOnError: true
|
|
2573
|
-
});
|
|
2574
|
-
return data;
|
|
2575
|
-
},
|
|
2576
|
-
queryKey: workerListQueryKey(options)
|
|
2577
|
-
});
|
|
2578
|
-
export const workerGetQueryKey = (options) => createQueryKey('workerGet', options);
|
|
2579
|
-
/**
|
|
2580
|
-
* Get worker
|
|
2581
|
-
*
|
|
2582
|
-
* Get a worker
|
|
2583
|
-
*/
|
|
2584
|
-
export const workerGetOptions = (options) => queryOptions({
|
|
2585
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2586
|
-
const { data } = await workerGet({
|
|
2587
|
-
...options,
|
|
2588
|
-
...queryKey[0],
|
|
2589
|
-
signal,
|
|
2590
|
-
throwOnError: true
|
|
2591
|
-
});
|
|
2592
|
-
return data;
|
|
2593
|
-
},
|
|
2594
|
-
queryKey: workerGetQueryKey(options)
|
|
2595
|
-
});
|
|
2596
|
-
/**
|
|
2597
|
-
* Update worker
|
|
2598
|
-
*
|
|
2599
|
-
* Update a worker
|
|
2600
|
-
*/
|
|
2601
|
-
export const workerUpdateMutation = (options) => {
|
|
2602
|
-
const mutationOptions = {
|
|
2603
|
-
mutationFn: async (fnOptions) => {
|
|
2604
|
-
const { data } = await workerUpdate({
|
|
2605
|
-
...options,
|
|
2606
|
-
...fnOptions,
|
|
2607
|
-
throwOnError: true
|
|
2608
|
-
});
|
|
2609
|
-
return data;
|
|
2610
|
-
}
|
|
2611
|
-
};
|
|
2612
|
-
return mutationOptions;
|
|
2613
|
-
};
|
|
2614
|
-
export const webhookListQueryKey = (options) => createQueryKey('webhookList', options);
|
|
2615
|
-
/**
|
|
2616
|
-
* List webhooks
|
|
2617
|
-
*
|
|
2618
|
-
* Lists all webhooks
|
|
2619
|
-
*/
|
|
2620
|
-
export const webhookListOptions = (options) => queryOptions({
|
|
2621
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2622
|
-
const { data } = await webhookList({
|
|
2623
|
-
...options,
|
|
2624
|
-
...queryKey[0],
|
|
2625
|
-
signal,
|
|
2626
|
-
throwOnError: true
|
|
2627
|
-
});
|
|
2628
|
-
return data;
|
|
2629
|
-
},
|
|
2630
|
-
queryKey: webhookListQueryKey(options)
|
|
2631
|
-
});
|
|
2632
|
-
/**
|
|
2633
|
-
* Create a webhook
|
|
2634
|
-
*
|
|
2635
|
-
* Creates a webhook
|
|
2636
|
-
*/
|
|
2637
|
-
export const webhookCreateMutation = (options) => {
|
|
2638
|
-
const mutationOptions = {
|
|
2639
|
-
mutationFn: async (fnOptions) => {
|
|
2640
|
-
const { data } = await webhookCreate({
|
|
2641
|
-
...options,
|
|
2642
|
-
...fnOptions,
|
|
2643
|
-
throwOnError: true
|
|
2644
|
-
});
|
|
2645
|
-
return data;
|
|
2646
|
-
}
|
|
2647
|
-
};
|
|
2648
|
-
return mutationOptions;
|
|
2649
|
-
};
|
|
2650
|
-
/**
|
|
2651
|
-
* Delete a webhook
|
|
2652
|
-
*
|
|
2653
|
-
* Deletes a webhook
|
|
2654
|
-
*/
|
|
2655
|
-
export const webhookDeleteMutation = (options) => {
|
|
2656
|
-
const mutationOptions = {
|
|
2657
|
-
mutationFn: async (fnOptions) => {
|
|
2658
|
-
const { data } = await webhookDelete({
|
|
2659
|
-
...options,
|
|
2660
|
-
...fnOptions,
|
|
2661
|
-
throwOnError: true
|
|
2662
|
-
});
|
|
2663
|
-
return data;
|
|
2664
|
-
}
|
|
2665
|
-
};
|
|
2666
|
-
return mutationOptions;
|
|
2667
|
-
};
|
|
2668
|
-
export const webhookRequestsListQueryKey = (options) => createQueryKey('webhookRequestsList', options);
|
|
2669
|
-
/**
|
|
2670
|
-
* List webhook requests
|
|
2671
|
-
*
|
|
2672
|
-
* Lists all requests for a webhook
|
|
2673
|
-
*/
|
|
2674
|
-
export const webhookRequestsListOptions = (options) => queryOptions({
|
|
2675
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2676
|
-
const { data } = await webhookRequestsList({
|
|
2677
|
-
...options,
|
|
2678
|
-
...queryKey[0],
|
|
2679
|
-
signal,
|
|
2680
|
-
throwOnError: true
|
|
2681
|
-
});
|
|
2682
|
-
return data;
|
|
2683
|
-
},
|
|
2684
|
-
queryKey: webhookRequestsListQueryKey(options)
|
|
2685
|
-
});
|
|
2686
|
-
export const workflowRunGetInputQueryKey = (options) => createQueryKey('workflowRunGetInput', options);
|
|
2687
|
-
/**
|
|
2688
|
-
* Get workflow run input
|
|
2689
|
-
*
|
|
2690
|
-
* Get the input for a workflow run.
|
|
2691
|
-
*/
|
|
2692
|
-
export const workflowRunGetInputOptions = (options) => queryOptions({
|
|
2693
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2694
|
-
const { data } = await workflowRunGetInput({
|
|
2695
|
-
...options,
|
|
2696
|
-
...queryKey[0],
|
|
2697
|
-
signal,
|
|
2698
|
-
throwOnError: true
|
|
2699
|
-
});
|
|
2700
|
-
return data;
|
|
2701
|
-
},
|
|
2702
|
-
queryKey: workflowRunGetInputQueryKey(options)
|
|
2703
|
-
});
|
|
2704
|
-
/**
|
|
2705
|
-
* Detailed Health Probe For the Instance
|
|
2706
|
-
*
|
|
2707
|
-
* Triggers a workflow to check the status of the instance
|
|
2708
|
-
*/
|
|
2709
|
-
export const monitoringPostRunProbeMutation = (options) => {
|
|
2710
|
-
const mutationOptions = {
|
|
2711
|
-
mutationFn: async (fnOptions) => {
|
|
2712
|
-
const { data } = await monitoringPostRunProbe({
|
|
2713
|
-
...options,
|
|
2714
|
-
...fnOptions,
|
|
2715
|
-
throwOnError: true
|
|
2716
|
-
});
|
|
2717
|
-
return data;
|
|
2718
|
-
}
|
|
2719
|
-
};
|
|
2720
|
-
return mutationOptions;
|
|
2721
|
-
};
|
|
2722
|
-
export const infoGetVersionQueryKey = (options) => createQueryKey('infoGetVersion', options);
|
|
2723
|
-
/**
|
|
2724
|
-
* We return the version for the currently running server
|
|
2725
|
-
*
|
|
2726
|
-
* Get the version of the server
|
|
2727
|
-
*/
|
|
2728
|
-
export const infoGetVersionOptions = (options) => queryOptions({
|
|
2729
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2730
|
-
const { data } = await infoGetVersion({
|
|
2731
|
-
...options,
|
|
2732
|
-
...queryKey[0],
|
|
2733
|
-
signal,
|
|
2734
|
-
throwOnError: true
|
|
2735
|
-
});
|
|
2736
|
-
return data;
|
|
2737
|
-
},
|
|
2738
|
-
queryKey: infoGetVersionQueryKey(options)
|
|
2739
|
-
});
|
|
2740
|
-
export const tenantGetPrometheusMetricsQueryKey = (options) => createQueryKey('tenantGetPrometheusMetrics', options);
|
|
2741
|
-
/**
|
|
2742
|
-
* Get prometheus metrics
|
|
2743
|
-
*
|
|
2744
|
-
* Get the prometheus metrics for the tenant
|
|
2745
|
-
*/
|
|
2746
|
-
export const tenantGetPrometheusMetricsOptions = (options) => queryOptions({
|
|
2747
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2748
|
-
const { data } = await tenantGetPrometheusMetrics({
|
|
2749
|
-
...options,
|
|
2750
|
-
...queryKey[0],
|
|
2751
|
-
signal,
|
|
2752
|
-
throwOnError: true
|
|
2753
|
-
});
|
|
2754
|
-
return data;
|
|
2755
|
-
},
|
|
2756
|
-
queryKey: tenantGetPrometheusMetricsQueryKey(options)
|
|
2757
|
-
});
|
|
2758
|
-
export const tenantGetTaskStatsQueryKey = (options) => createQueryKey('tenantGetTaskStats', options);
|
|
2759
|
-
/**
|
|
2760
|
-
* Get task stats for tenant
|
|
2761
|
-
*
|
|
2762
|
-
* Get task stats for tenant
|
|
2763
|
-
*/
|
|
2764
|
-
export const tenantGetTaskStatsOptions = (options) => queryOptions({
|
|
2765
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
2766
|
-
const { data } = await tenantGetTaskStats({
|
|
2767
|
-
...options,
|
|
2768
|
-
...queryKey[0],
|
|
2769
|
-
signal,
|
|
2770
|
-
throwOnError: true
|
|
2771
|
-
});
|
|
2772
|
-
return data;
|
|
2773
|
-
},
|
|
2774
|
-
queryKey: tenantGetTaskStatsQueryKey(options)
|
|
2775
|
-
});
|
|
2776
|
-
//# sourceMappingURL=react-query.gen.js.map
|