shoal-web-sdk 1.0.58 → 1.0.60
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/sdk/@tanstack/react-query.gen.d.ts +3 -0
- package/dist/sdk/@tanstack/react-query.gen.js +3 -0
- package/dist/sdk/sdk.gen.d.ts +3 -0
- package/dist/sdk/sdk.gen.js +3 -0
- package/dist/sdk/types.gen.d.ts +1 -0
- package/dist/sdk/zod.gen.d.ts +13 -0
- package/dist/sdk/zod.gen.js +1 -0
- package/dist/tanstack-codegen/generated/generated.d.ts +9 -1
- package/dist/tanstack-codegen/generated/generated.js +20 -1
- package/package.json +1 -1
|
@@ -1469,6 +1469,9 @@ export declare const getSecretValueOptions: (options: Options<GetSecretValueData
|
|
|
1469
1469
|
[dataTagErrorSymbol]: Error;
|
|
1470
1470
|
};
|
|
1471
1471
|
};
|
|
1472
|
+
/**
|
|
1473
|
+
* Delete an environment.
|
|
1474
|
+
*/
|
|
1472
1475
|
export declare const deleteEnvironmentMutation: (options?: Partial<Options<DeleteEnvironmentData>>) => UseMutationOptions<DeleteEnvironmentResponse, DeleteEnvironmentError, Options<DeleteEnvironmentData>>;
|
|
1473
1476
|
export declare const getEnvironmentOverviewQueryKey: (options: Options<GetEnvironmentOverviewData>) => [Pick<Options<GetEnvironmentOverviewData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1474
1477
|
_id: string;
|
|
@@ -1470,6 +1470,9 @@ export const getSecretValueOptions = (options) => {
|
|
|
1470
1470
|
queryKey: getSecretValueQueryKey(options)
|
|
1471
1471
|
});
|
|
1472
1472
|
};
|
|
1473
|
+
/**
|
|
1474
|
+
* Delete an environment.
|
|
1475
|
+
*/
|
|
1473
1476
|
export const deleteEnvironmentMutation = (options) => {
|
|
1474
1477
|
const mutationOptions = {
|
|
1475
1478
|
mutationFn: async (fnOptions) => {
|
package/dist/sdk/sdk.gen.d.ts
CHANGED
|
@@ -274,6 +274,9 @@ export declare const createSecret: <ThrowOnError extends boolean = false>(option
|
|
|
274
274
|
* Access a secret's value from GCP Secret Manager. Defaults to the "latest" version.
|
|
275
275
|
*/
|
|
276
276
|
export declare const getSecretValue: <ThrowOnError extends boolean = false>(options: Options<GetSecretValueData, ThrowOnError>) => import("./client").RequestResult<GetSecretValueResponses, GetSecretValueErrors, ThrowOnError, "fields">;
|
|
277
|
+
/**
|
|
278
|
+
* Delete an environment.
|
|
279
|
+
*/
|
|
277
280
|
export declare const deleteEnvironment: <ThrowOnError extends boolean = false>(options: Options<DeleteEnvironmentData, ThrowOnError>) => import("./client").RequestResult<DeleteEnvironmentResponses, DeleteEnvironmentErrors, ThrowOnError, "fields">;
|
|
278
281
|
/**
|
|
279
282
|
* Get the environment overview.
|
package/dist/sdk/sdk.gen.js
CHANGED
|
@@ -1078,6 +1078,9 @@ export const getSecretValue = (options) => {
|
|
|
1078
1078
|
...options
|
|
1079
1079
|
});
|
|
1080
1080
|
};
|
|
1081
|
+
/**
|
|
1082
|
+
* Delete an environment.
|
|
1083
|
+
*/
|
|
1081
1084
|
export const deleteEnvironment = (options) => {
|
|
1082
1085
|
return (options.client ?? client).delete({
|
|
1083
1086
|
security: [
|
package/dist/sdk/types.gen.d.ts
CHANGED
package/dist/sdk/zod.gen.d.ts
CHANGED
|
@@ -960,6 +960,7 @@ export declare const zVmNodeProps: z.ZodObject<{
|
|
|
960
960
|
startUpScript: z.ZodOptional<z.ZodString>;
|
|
961
961
|
dockerComposeFile: z.ZodOptional<z.ZodString>;
|
|
962
962
|
sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
963
|
+
subdomain: z.ZodString;
|
|
963
964
|
protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
|
|
964
965
|
}, z.core.$strip>;
|
|
965
966
|
export declare const zNode: z.ZodObject<{
|
|
@@ -1172,6 +1173,7 @@ export declare const zNode: z.ZodObject<{
|
|
|
1172
1173
|
startUpScript: z.ZodOptional<z.ZodString>;
|
|
1173
1174
|
dockerComposeFile: z.ZodOptional<z.ZodString>;
|
|
1174
1175
|
sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1176
|
+
subdomain: z.ZodString;
|
|
1175
1177
|
protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
|
|
1176
1178
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1177
1179
|
typ: z.ZodLiteral<"scheduler">;
|
|
@@ -1403,6 +1405,7 @@ export declare const zNodes: z.ZodObject<{
|
|
|
1403
1405
|
startUpScript: z.ZodOptional<z.ZodString>;
|
|
1404
1406
|
dockerComposeFile: z.ZodOptional<z.ZodString>;
|
|
1405
1407
|
sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1408
|
+
subdomain: z.ZodString;
|
|
1406
1409
|
protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
|
|
1407
1410
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1408
1411
|
typ: z.ZodLiteral<"scheduler">;
|
|
@@ -1637,6 +1640,7 @@ export declare const zGraph: z.ZodObject<{
|
|
|
1637
1640
|
startUpScript: z.ZodOptional<z.ZodString>;
|
|
1638
1641
|
dockerComposeFile: z.ZodOptional<z.ZodString>;
|
|
1639
1642
|
sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1643
|
+
subdomain: z.ZodString;
|
|
1640
1644
|
protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
|
|
1641
1645
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1642
1646
|
typ: z.ZodLiteral<"scheduler">;
|
|
@@ -1876,6 +1880,7 @@ export declare const zBlueprintDetail: z.ZodObject<{
|
|
|
1876
1880
|
startUpScript: z.ZodOptional<z.ZodString>;
|
|
1877
1881
|
dockerComposeFile: z.ZodOptional<z.ZodString>;
|
|
1878
1882
|
sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1883
|
+
subdomain: z.ZodString;
|
|
1879
1884
|
protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
|
|
1880
1885
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1881
1886
|
typ: z.ZodLiteral<"scheduler">;
|
|
@@ -2733,6 +2738,7 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
2733
2738
|
startUpScript: z.ZodOptional<z.ZodString>;
|
|
2734
2739
|
dockerComposeFile: z.ZodOptional<z.ZodString>;
|
|
2735
2740
|
sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2741
|
+
subdomain: z.ZodString;
|
|
2736
2742
|
protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
|
|
2737
2743
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2738
2744
|
typ: z.ZodLiteral<"scheduler">;
|
|
@@ -2966,6 +2972,7 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
|
|
|
2966
2972
|
startUpScript: z.ZodOptional<z.ZodString>;
|
|
2967
2973
|
dockerComposeFile: z.ZodOptional<z.ZodString>;
|
|
2968
2974
|
sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2975
|
+
subdomain: z.ZodString;
|
|
2969
2976
|
protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
|
|
2970
2977
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2971
2978
|
typ: z.ZodLiteral<"scheduler">;
|
|
@@ -3216,6 +3223,7 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
|
|
|
3216
3223
|
startUpScript: z.ZodOptional<z.ZodString>;
|
|
3217
3224
|
dockerComposeFile: z.ZodOptional<z.ZodString>;
|
|
3218
3225
|
sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3226
|
+
subdomain: z.ZodString;
|
|
3219
3227
|
protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
|
|
3220
3228
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3221
3229
|
typ: z.ZodLiteral<"scheduler">;
|
|
@@ -3447,6 +3455,7 @@ export declare const zUpdateNodeM2mData: z.ZodObject<{
|
|
|
3447
3455
|
startUpScript: z.ZodOptional<z.ZodString>;
|
|
3448
3456
|
dockerComposeFile: z.ZodOptional<z.ZodString>;
|
|
3449
3457
|
sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3458
|
+
subdomain: z.ZodString;
|
|
3450
3459
|
protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
|
|
3451
3460
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3452
3461
|
typ: z.ZodLiteral<"scheduler">;
|
|
@@ -3747,6 +3756,7 @@ export declare const zGetBlueprintM2mResponse: z.ZodObject<{
|
|
|
3747
3756
|
startUpScript: z.ZodOptional<z.ZodString>;
|
|
3748
3757
|
dockerComposeFile: z.ZodOptional<z.ZodString>;
|
|
3749
3758
|
sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3759
|
+
subdomain: z.ZodString;
|
|
3750
3760
|
protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
|
|
3751
3761
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3752
3762
|
typ: z.ZodLiteral<"scheduler">;
|
|
@@ -4639,6 +4649,7 @@ export declare const zPreviewBlueprintResponse: z.ZodObject<{
|
|
|
4639
4649
|
startUpScript: z.ZodOptional<z.ZodString>;
|
|
4640
4650
|
dockerComposeFile: z.ZodOptional<z.ZodString>;
|
|
4641
4651
|
sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4652
|
+
subdomain: z.ZodString;
|
|
4642
4653
|
protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
|
|
4643
4654
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
4644
4655
|
typ: z.ZodLiteral<"scheduler">;
|
|
@@ -5658,6 +5669,7 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
5658
5669
|
startUpScript: z.ZodOptional<z.ZodString>;
|
|
5659
5670
|
dockerComposeFile: z.ZodOptional<z.ZodString>;
|
|
5660
5671
|
sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5672
|
+
subdomain: z.ZodString;
|
|
5661
5673
|
protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
|
|
5662
5674
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
5663
5675
|
typ: z.ZodLiteral<"scheduler">;
|
|
@@ -5891,6 +5903,7 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
5891
5903
|
startUpScript: z.ZodOptional<z.ZodString>;
|
|
5892
5904
|
dockerComposeFile: z.ZodOptional<z.ZodString>;
|
|
5893
5905
|
sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5906
|
+
subdomain: z.ZodString;
|
|
5894
5907
|
protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
|
|
5895
5908
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
5896
5909
|
typ: z.ZodLiteral<"scheduler">;
|
package/dist/sdk/zod.gen.js
CHANGED
|
@@ -670,6 +670,7 @@ export const zVmNodeProps = z.object({
|
|
|
670
670
|
startUpScript: z.optional(z.string()),
|
|
671
671
|
dockerComposeFile: z.optional(z.string()),
|
|
672
672
|
sshKeys: z.optional(z.record(z.string(), z.string())),
|
|
673
|
+
subdomain: z.string(),
|
|
673
674
|
protocolPorts: z.optional(z.record(z.string(), z.array(z.coerce.bigint().gte(BigInt(1)).lte(BigInt(65535)))))
|
|
674
675
|
});
|
|
675
676
|
export const zNode = z.object({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { GetSuccessResponse } from "../util";
|
|
3
|
-
import { GetServiceHealthData, FetchGraphM2mData, UpdateGraphM2mData, UpdateGraphM2mResponses, FetchNodeM2mData, UpdateNodeM2mData, UpdateNodeM2mResponses, ViewBlueprintsM2mData, CreateSecretM2mData, CreateSecretM2mResponses, GetBlueprintM2mData, CreateNeonProjectM2mData, CreateNeonProjectM2mResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, UpdateUsernameData, UpdateUsernameResponses, CreateUsernameData, CreateUsernameResponses, GetUserProfileData, UpdateUserProfileData, UpdateUserProfileResponses, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, FetchNeonOrganizationsData, FetchNeonRegionsData, FetchMongoOrganizationsData, FetchMongoRegionsData, ListMongoProjectsData, ListMongoClustersData, FetchMongoOrganizationTierData, FetchNeonConnectionUriData, ListNeonProjectsData, CreateNeonProjectData, CreateNeonProjectResponses, ListNeonBranchesData, CreateNeonBranchData, CreateNeonBranchResponses, ListNeonDatabasesData, CreateNeonDatabaseData, CreateNeonDatabaseResponses, ListNeonRolesData, DeleteNeonDatabaseData, DeleteNeonDatabaseResponses, ListUserSpacesData, GetFeatureFlagsData, CreateFeatureRequestData, CreateFeatureRequestResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsResponses, PreviewBlueprintData, ViewBlueprintsData, GetBlueprintData, CreateSpaceData, CreateSpaceResponses, GetPublicInviteData, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, GetSpaceStatsData, FetchKindeOrganisationBillingAgreementsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, CreateEnvironmentData, CreateEnvironmentResponses, CreateSecretData, CreateSecretResponses, GetSecretValueData, GetEnvironmentOverviewData, GetEnvironmentVersionsData, DeleteEnvironmentVariableData, DeleteEnvironmentVariableResponses, GetEnvironmentVariablesData, UpdateEnvironmentVariableData, UpdateEnvironmentVariableResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableResponses, DeleteBlueprintData, DeleteBlueprintResponses, UpdateBlueprintData, UpdateBlueprintResponses, CreateBlueprintData, CreateBlueprintResponses, GetVersionData, ImportBlueprintData, ImportBlueprintResponses, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, RequestSignedDownloadUrlData, GetNodeEnvironmentVariablesData, RequestSignedUploadUrlData, RequestSignedUploadUrlResponses, CheckSubdomainUniquenessData, PingNodeData, RecordCloudUsageData, RecordCloudUsageResponses, GetBillingPlanData, UpdateBillingPlanData, UpdateBillingPlanResponses, CreateSetupIntentData, CreateSetupIntentResponses, ListPaymentMethodsData, RemovePaymentMethodData, RemovePaymentMethodResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodResponses, GetBillingUsageData, FetchBillingPricesData, ListBillingInvoicesData, GetSpacePropertiesData, SetSpacePropertyData, SetSpacePropertyResponses } from "../../sdk/types.gen";
|
|
3
|
+
import { GetServiceHealthData, FetchGraphM2mData, UpdateGraphM2mData, UpdateGraphM2mResponses, FetchNodeM2mData, UpdateNodeM2mData, UpdateNodeM2mResponses, ViewBlueprintsM2mData, CreateSecretM2mData, CreateSecretM2mResponses, GetBlueprintM2mData, CreateNeonProjectM2mData, CreateNeonProjectM2mResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, UpdateUsernameData, UpdateUsernameResponses, CreateUsernameData, CreateUsernameResponses, GetUserProfileData, UpdateUserProfileData, UpdateUserProfileResponses, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, FetchNeonOrganizationsData, FetchNeonRegionsData, FetchMongoOrganizationsData, FetchMongoRegionsData, ListMongoProjectsData, ListMongoClustersData, FetchMongoOrganizationTierData, FetchNeonConnectionUriData, ListNeonProjectsData, CreateNeonProjectData, CreateNeonProjectResponses, ListNeonBranchesData, CreateNeonBranchData, CreateNeonBranchResponses, ListNeonDatabasesData, CreateNeonDatabaseData, CreateNeonDatabaseResponses, ListNeonRolesData, DeleteNeonDatabaseData, DeleteNeonDatabaseResponses, ListUserSpacesData, GetFeatureFlagsData, CreateFeatureRequestData, CreateFeatureRequestResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsResponses, PreviewBlueprintData, ViewBlueprintsData, GetBlueprintData, CreateSpaceData, CreateSpaceResponses, GetPublicInviteData, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, GetSpaceStatsData, FetchKindeOrganisationBillingAgreementsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, CreateEnvironmentData, CreateEnvironmentResponses, CreateSecretData, CreateSecretResponses, GetSecretValueData, DeleteEnvironmentData, DeleteEnvironmentResponses, GetEnvironmentOverviewData, GetEnvironmentVersionsData, DeleteEnvironmentVariableData, DeleteEnvironmentVariableResponses, GetEnvironmentVariablesData, UpdateEnvironmentVariableData, UpdateEnvironmentVariableResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableResponses, DeleteBlueprintData, DeleteBlueprintResponses, UpdateBlueprintData, UpdateBlueprintResponses, CreateBlueprintData, CreateBlueprintResponses, GetVersionData, ImportBlueprintData, ImportBlueprintResponses, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, RequestSignedDownloadUrlData, GetNodeEnvironmentVariablesData, RequestSignedUploadUrlData, RequestSignedUploadUrlResponses, CheckSubdomainUniquenessData, PingNodeData, RecordCloudUsageData, RecordCloudUsageResponses, GetBillingPlanData, UpdateBillingPlanData, UpdateBillingPlanResponses, CreateSetupIntentData, CreateSetupIntentResponses, ListPaymentMethodsData, RemovePaymentMethodData, RemovePaymentMethodResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodResponses, GetBillingUsageData, FetchBillingPricesData, ListBillingInvoicesData, GetSpacePropertiesData, SetSpacePropertyData, SetSpacePropertyResponses } from "../../sdk/types.gen";
|
|
4
4
|
export declare const useGetServiceHealth: (options?: Omit<GetServiceHealthData, "url"> & {
|
|
5
5
|
enabled?: boolean;
|
|
6
6
|
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").HealthResponse | undefined, Error>;
|
|
@@ -318,6 +318,14 @@ export declare const useCreateSecret: (config?: {
|
|
|
318
318
|
export declare const useGetSecretValue: (options: Omit<GetSecretValueData, "url"> & {
|
|
319
319
|
enabled?: boolean;
|
|
320
320
|
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").SecretValue | undefined, Error>;
|
|
321
|
+
export declare const useDeleteEnvironment: (config?: {
|
|
322
|
+
onSuccess?: (data: GetSuccessResponse<DeleteEnvironmentResponses>, headers: Headers) => void;
|
|
323
|
+
onError?: Parameters<typeof useMutation>["0"]["onError"];
|
|
324
|
+
retry?: boolean;
|
|
325
|
+
}) => import("@tanstack/react-query").UseMutationResult<{
|
|
326
|
+
data: void | undefined;
|
|
327
|
+
headers: Headers;
|
|
328
|
+
}, unknown, Omit<DeleteEnvironmentData, "url">, unknown>;
|
|
321
329
|
export declare const useGetEnvironmentOverview: (options: Omit<GetEnvironmentOverviewData, "url"> & {
|
|
322
330
|
enabled?: boolean;
|
|
323
331
|
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").EnvironmentOverview | undefined, Error>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
3
3
|
import { isPromise } from "../util";
|
|
4
4
|
import { useToken } from "../../provider/token-provider";
|
|
5
|
-
import { getServiceHealth, fetchGraphM2M, updateGraphM2M, fetchNodeM2M, updateNodeM2M, viewBlueprintsM2M, createSecretM2M, getBlueprintM2M, createNeonProjectM2M, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, fetchNeonOrganizations, fetchNeonRegions, fetchMongoOrganizations, fetchMongoRegions, listMongoProjects, listMongoClusters, fetchMongoOrganizationTier, fetchNeonConnectionUri, listNeonProjects, createNeonProject, listNeonBranches, createNeonBranch, listNeonDatabases, createNeonDatabase, listNeonRoles, deleteNeonDatabase, listUserSpaces, getFeatureFlags, createFeatureRequest, recordOnboardingAnalytics, previewBlueprint, viewBlueprints, getBlueprint, createSpace, getPublicInvite, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, getSpaceStats, fetchKindeOrganisationBillingAgreements, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, listSpaceMembers, listSpaceMemberRoles, leaveSpace, createProject, getProjectOverview, createEnvironment, createSecret, getSecretValue, getEnvironmentOverview, getEnvironmentVersions, deleteEnvironmentVariable, getEnvironmentVariables, updateEnvironmentVariable, createEnvironmentVariable, deleteBlueprint, updateBlueprint, createBlueprint, getVersion, importBlueprint, getGraphOverview, updateGraphState, deployVersion, requestSignedDownloadUrl, getNodeEnvironmentVariables, requestSignedUploadUrl, checkSubdomainUniqueness, pingNode, recordCloudUsage, getBillingPlan, updateBillingPlan, createSetupIntent, listPaymentMethods, removePaymentMethod, setDefaultPaymentMethod, getBillingUsage, fetchBillingPrices, listBillingInvoices, getSpaceProperties, setSpaceProperty } from "../../sdk/sdk.gen";
|
|
5
|
+
import { getServiceHealth, fetchGraphM2M, updateGraphM2M, fetchNodeM2M, updateNodeM2M, viewBlueprintsM2M, createSecretM2M, getBlueprintM2M, createNeonProjectM2M, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, fetchNeonOrganizations, fetchNeonRegions, fetchMongoOrganizations, fetchMongoRegions, listMongoProjects, listMongoClusters, fetchMongoOrganizationTier, fetchNeonConnectionUri, listNeonProjects, createNeonProject, listNeonBranches, createNeonBranch, listNeonDatabases, createNeonDatabase, listNeonRoles, deleteNeonDatabase, listUserSpaces, getFeatureFlags, createFeatureRequest, recordOnboardingAnalytics, previewBlueprint, viewBlueprints, getBlueprint, createSpace, getPublicInvite, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, getSpaceStats, fetchKindeOrganisationBillingAgreements, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, listSpaceMembers, listSpaceMemberRoles, leaveSpace, createProject, getProjectOverview, createEnvironment, createSecret, getSecretValue, deleteEnvironment, getEnvironmentOverview, getEnvironmentVersions, deleteEnvironmentVariable, getEnvironmentVariables, updateEnvironmentVariable, createEnvironmentVariable, deleteBlueprint, updateBlueprint, createBlueprint, getVersion, importBlueprint, getGraphOverview, updateGraphState, deployVersion, requestSignedDownloadUrl, getNodeEnvironmentVariables, requestSignedUploadUrl, checkSubdomainUniqueness, pingNode, recordCloudUsage, getBillingPlan, updateBillingPlan, createSetupIntent, listPaymentMethods, removePaymentMethod, setDefaultPaymentMethod, getBillingUsage, fetchBillingPrices, listBillingInvoices, getSpaceProperties, setSpaceProperty } from "../../sdk/sdk.gen";
|
|
6
6
|
export const useGetServiceHealth = (options) => {
|
|
7
7
|
const token = useToken();
|
|
8
8
|
let { enabled, ...rest } = options || { enabled: true };
|
|
@@ -1279,6 +1279,25 @@ export const useGetSecretValue = (options) => {
|
|
|
1279
1279
|
staleTime: 600000
|
|
1280
1280
|
});
|
|
1281
1281
|
};
|
|
1282
|
+
export const useDeleteEnvironment = (config) => {
|
|
1283
|
+
const token = useToken();
|
|
1284
|
+
const queryClient = useQueryClient();
|
|
1285
|
+
const opts = { throwOnError: true, url: "/auth/{spaceHandle}/{projectHandle}/{environmentHandle}" };
|
|
1286
|
+
const funcer = async (options) => {
|
|
1287
|
+
const auth = isPromise(token) ? (await token) || "" : token || "";
|
|
1288
|
+
const res = await deleteEnvironment({ ...opts, ...options, auth });
|
|
1289
|
+
return { data: res.data, headers: res.response.headers };
|
|
1290
|
+
};
|
|
1291
|
+
return useMutation({
|
|
1292
|
+
mutationFn: funcer,
|
|
1293
|
+
onSuccess: (res, options, c, ctx) => {
|
|
1294
|
+
queryClient.invalidateQueries({ queryKey: [options?.path?.spaceHandle, options?.path?.projectHandle, options?.path?.environmentHandle] });
|
|
1295
|
+
config?.onSuccess && config.onSuccess(res.data, res.headers);
|
|
1296
|
+
},
|
|
1297
|
+
onError: config?.onError,
|
|
1298
|
+
retry: config?.retry
|
|
1299
|
+
});
|
|
1300
|
+
};
|
|
1282
1301
|
export const useGetEnvironmentOverview = (options) => {
|
|
1283
1302
|
const token = useToken();
|
|
1284
1303
|
let { enabled, ...rest } = options || { enabled: true };
|