shoal-web-sdk 0.0.140 → 0.0.142
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 +29 -1
- package/dist/sdk/@tanstack/react-query.gen.js +19 -1
- package/dist/sdk/sdk.gen.d.ts +5 -1
- package/dist/sdk/sdk.gen.js +15 -0
- package/dist/sdk/types.gen.d.ts +46 -3
- package/dist/sdk/zod.gen.d.ts +18 -350
- package/dist/sdk/zod.gen.js +18 -38
- package/dist/tanstack-codegen/generated/generated.d.ts +4 -1
- package/dist/tanstack-codegen/generated/generated.js +22 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type InfiniteData, type UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import { type Options } from '../sdk.gen';
|
|
3
|
-
import type { CreateEnvironmentData, CreateEnvironmentError, CreateEnvironmentResponse, CreateEnvironmentVariableData, CreateEnvironmentVariableError, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSetupIntentData, CreateSetupIntentError, CreateSetupIntentResponse, CreateSpaceData, CreateSpaceError, CreateSpaceInviteData, CreateSpaceInviteError, CreateSpaceInviteResponse, CreateSpaceResponse, CreateUsernameData, CreateUsernameError, DeleteAccountIdentityData, DeleteAccountIdentityError, DeleteAccountIdentityResponse, DeleteEnvironmentVariableData, DeleteEnvironmentVariableError, DeleteEnvironmentVariableResponse, DeployVersionData, DeployVersionError, FetchBillingPricesData, FetchGraphM2mData, FetchKindeOrganisationBillingAgreementsData, FetchNodeM2mData, GetBillingPlanData, GetBillingUsageData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetEnvironmentVariablesData, GetEnvironmentVersionsData, GetGraphOverviewData, GetProjectOverviewData, GetServiceHealthData, GetSpaceInvitesData, GetSpaceOrgCodeData, GetSpaceOverviewData, GetUserIdentitiesData, GetUserInvitesData, GetUserProfileData, JoinSpaceData, JoinSpaceError, LeaveSpaceData, LeaveSpaceError, ListBillingInvoicesData, ListInstallationBranchesData, ListInstallationRepositoriesData, ListPaymentMethodsData, ListSpaceMemberRolesData, ListSpaceMembersData, ListUserInstallationsData, ListUserSpacesData, RecordCloudUsageData, RecordCloudUsageError, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsError, RejectSpaceInviteData, RejectSpaceInviteError, RejectSpaceInviteResponse, RemovePaymentMethodData, RemovePaymentMethodError, RemovePaymentMethodResponse, RequestAccountPasswordResetData, RequestAccountPasswordResetError, RequestSignedUploadUrlData, RequestSignedUploadUrlError, RequestSignedUploadUrlResponse, RevokeSpaceInviteData, RevokeSpaceInviteError, RevokeSpaceInviteResponse, SetDefaultPaymentMethodData, SetDefaultPaymentMethodError, SetDefaultPaymentMethodResponse, UpdateBillingPlanData, UpdateBillingPlanError, UpdateConnectedAppTokenData, UpdateConnectedAppTokenError, UpdateEnvironmentVariableData, UpdateEnvironmentVariableError, UpdateGraphM2mData, UpdateGraphM2mError, UpdateGraphStateData, UpdateGraphStateError, UpdateUsernameData, UpdateUsernameError, UpdateUserProfileData, UpdateUserProfileError, VersionStatusData } from '../types.gen';
|
|
3
|
+
import type { CreateEnvironmentData, CreateEnvironmentError, CreateEnvironmentResponse, CreateEnvironmentVariableData, CreateEnvironmentVariableError, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSetupIntentData, CreateSetupIntentError, CreateSetupIntentResponse, CreateSpaceData, CreateSpaceError, CreateSpaceInviteData, CreateSpaceInviteError, CreateSpaceInviteResponse, CreateSpaceResponse, CreateUsernameData, CreateUsernameError, DeleteAccountIdentityData, DeleteAccountIdentityError, DeleteAccountIdentityResponse, DeleteEnvironmentVariableData, DeleteEnvironmentVariableError, DeleteEnvironmentVariableResponse, DeployVersionData, DeployVersionError, FetchBillingPricesData, FetchGraphM2mData, FetchKindeOrganisationBillingAgreementsData, FetchNodeM2mData, GetBillingPlanData, GetBillingUsageData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetEnvironmentVariablesData, GetEnvironmentVersionsData, GetGraphOverviewData, GetProjectOverviewData, GetServiceHealthData, GetSpaceInvitesData, GetSpaceOrgCodeData, GetSpaceOverviewData, GetSpaceStatsData, GetUserIdentitiesData, GetUserInvitesData, GetUserProfileData, JoinSpaceData, JoinSpaceError, LeaveSpaceData, LeaveSpaceError, ListBillingInvoicesData, ListInstallationBranchesData, ListInstallationRepositoriesData, ListPaymentMethodsData, ListSpaceMemberRolesData, ListSpaceMembersData, ListUserInstallationsData, ListUserSpacesData, RecordCloudUsageData, RecordCloudUsageError, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsError, RejectSpaceInviteData, RejectSpaceInviteError, RejectSpaceInviteResponse, RemovePaymentMethodData, RemovePaymentMethodError, RemovePaymentMethodResponse, RequestAccountPasswordResetData, RequestAccountPasswordResetError, RequestSignedUploadUrlData, RequestSignedUploadUrlError, RequestSignedUploadUrlResponse, RevokeSpaceInviteData, RevokeSpaceInviteError, RevokeSpaceInviteResponse, SetDefaultPaymentMethodData, SetDefaultPaymentMethodError, SetDefaultPaymentMethodResponse, UpdateBillingPlanData, UpdateBillingPlanError, UpdateConnectedAppTokenData, UpdateConnectedAppTokenError, UpdateEnvironmentVariableData, UpdateEnvironmentVariableError, UpdateGraphM2mData, UpdateGraphM2mError, UpdateGraphStateData, UpdateGraphStateError, UpdateUsernameData, UpdateUsernameError, UpdateUserProfileData, UpdateUserProfileError, VersionStatusData } from '../types.gen';
|
|
4
4
|
export type QueryKey<TOptions extends Options> = [
|
|
5
5
|
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
|
6
6
|
_id: string;
|
|
@@ -536,6 +536,34 @@ export declare const getSpaceOrgCodeOptions: (options: Options<GetSpaceOrgCodeDa
|
|
|
536
536
|
[dataTagErrorSymbol]: Error;
|
|
537
537
|
};
|
|
538
538
|
};
|
|
539
|
+
export declare const getSpaceStatsQueryKey: (options: Options<GetSpaceStatsData>) => [Pick<Options<GetSpaceStatsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
540
|
+
_id: string;
|
|
541
|
+
_infinite?: boolean;
|
|
542
|
+
tags?: ReadonlyArray<string>;
|
|
543
|
+
}];
|
|
544
|
+
/**
|
|
545
|
+
* Stats for a space.
|
|
546
|
+
*/
|
|
547
|
+
export declare const getSpaceStatsOptions: (options: Options<GetSpaceStatsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").SpaceStats, Error, import("../types.gen").SpaceStats, [Pick<Options<GetSpaceStatsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
548
|
+
_id: string;
|
|
549
|
+
_infinite?: boolean;
|
|
550
|
+
tags?: ReadonlyArray<string>;
|
|
551
|
+
}]>, "queryFn"> & {
|
|
552
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").SpaceStats, [Pick<Options<GetSpaceStatsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
553
|
+
_id: string;
|
|
554
|
+
_infinite?: boolean;
|
|
555
|
+
tags?: ReadonlyArray<string>;
|
|
556
|
+
}], never> | undefined;
|
|
557
|
+
} & {
|
|
558
|
+
queryKey: [Pick<Options<GetSpaceStatsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
559
|
+
_id: string;
|
|
560
|
+
_infinite?: boolean;
|
|
561
|
+
tags?: ReadonlyArray<string>;
|
|
562
|
+
}] & {
|
|
563
|
+
[dataTagSymbol]: import("../types.gen").SpaceStats;
|
|
564
|
+
[dataTagErrorSymbol]: Error;
|
|
565
|
+
};
|
|
566
|
+
};
|
|
539
567
|
export declare const fetchKindeOrganisationBillingAgreementsQueryKey: (options: Options<FetchKindeOrganisationBillingAgreementsData>) => [Pick<Options<FetchKindeOrganisationBillingAgreementsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
540
568
|
_id: string;
|
|
541
569
|
_infinite?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { infiniteQueryOptions, queryOptions } from '@tanstack/react-query';
|
|
3
3
|
import { client } from '../client.gen';
|
|
4
|
-
import { createEnvironment, createEnvironmentVariable, createProject, createSetupIntent, createSpace, createSpaceInvite, createUsername, deleteAccountIdentity, deleteEnvironmentVariable, deployVersion, fetchBillingPrices, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, fetchNodeM2M, getBillingPlan, getBillingUsage, getConnectedAppUrl, getEnvironmentOverview, getEnvironmentVariables, getEnvironmentVersions, getGraphOverview, getProjectOverview, getServiceHealth, getSpaceInvites, getSpaceOrgCode, getSpaceOverview, getUserIdentities, getUserInvites, getUserProfile, joinSpace, leaveSpace, listBillingInvoices, listInstallationBranches, listInstallationRepositories, listPaymentMethods, listSpaceMemberRoles, listSpaceMembers, listUserInstallations, listUserSpaces, recordCloudUsage, recordOnboardingAnalytics, rejectSpaceInvite, removePaymentMethod, requestAccountPasswordReset, requestSignedUploadUrl, revokeSpaceInvite, setDefaultPaymentMethod, updateBillingPlan, updateConnectedAppToken, updateEnvironmentVariable, updateGraphM2M, updateGraphState, updateUsername, updateUserProfile, versionStatus } from '../sdk.gen';
|
|
4
|
+
import { createEnvironment, createEnvironmentVariable, createProject, createSetupIntent, createSpace, createSpaceInvite, createUsername, deleteAccountIdentity, deleteEnvironmentVariable, deployVersion, fetchBillingPrices, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, fetchNodeM2M, getBillingPlan, getBillingUsage, getConnectedAppUrl, getEnvironmentOverview, getEnvironmentVariables, getEnvironmentVersions, getGraphOverview, getProjectOverview, getServiceHealth, getSpaceInvites, getSpaceOrgCode, getSpaceOverview, getSpaceStats, getUserIdentities, getUserInvites, getUserProfile, joinSpace, leaveSpace, listBillingInvoices, listInstallationBranches, listInstallationRepositories, listPaymentMethods, listSpaceMemberRoles, listSpaceMembers, listUserInstallations, listUserSpaces, recordCloudUsage, recordOnboardingAnalytics, rejectSpaceInvite, removePaymentMethod, requestAccountPasswordReset, requestSignedUploadUrl, revokeSpaceInvite, setDefaultPaymentMethod, updateBillingPlan, updateConnectedAppToken, updateEnvironmentVariable, updateGraphM2M, updateGraphState, updateUsername, updateUserProfile, versionStatus } from '../sdk.gen';
|
|
5
5
|
const createQueryKey = (id, options, infinite, tags) => {
|
|
6
6
|
const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
|
|
7
7
|
if (infinite) {
|
|
@@ -601,6 +601,24 @@ export const getSpaceOrgCodeOptions = (options) => {
|
|
|
601
601
|
queryKey: getSpaceOrgCodeQueryKey(options)
|
|
602
602
|
});
|
|
603
603
|
};
|
|
604
|
+
export const getSpaceStatsQueryKey = (options) => createQueryKey('getSpaceStats', options);
|
|
605
|
+
/**
|
|
606
|
+
* Stats for a space.
|
|
607
|
+
*/
|
|
608
|
+
export const getSpaceStatsOptions = (options) => {
|
|
609
|
+
return queryOptions({
|
|
610
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
611
|
+
const { data } = await getSpaceStats({
|
|
612
|
+
...options,
|
|
613
|
+
...queryKey[0],
|
|
614
|
+
signal,
|
|
615
|
+
throwOnError: true
|
|
616
|
+
});
|
|
617
|
+
return data;
|
|
618
|
+
},
|
|
619
|
+
queryKey: getSpaceStatsQueryKey(options)
|
|
620
|
+
});
|
|
621
|
+
};
|
|
604
622
|
export const fetchKindeOrganisationBillingAgreementsQueryKey = (options) => createQueryKey('fetchKindeOrganisationBillingAgreements', options);
|
|
605
623
|
/**
|
|
606
624
|
* The space billing agreements.
|
package/dist/sdk/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Client, Options as Options2, TDataShape } from './client';
|
|
2
|
-
import type { CreateEnvironmentData, CreateEnvironmentErrors, CreateEnvironmentResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableErrors, CreateEnvironmentVariableResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateSetupIntentData, CreateSetupIntentErrors, CreateSetupIntentResponses, CreateSpaceData, CreateSpaceErrors, CreateSpaceInviteData, CreateSpaceInviteErrors, CreateSpaceInviteResponses, CreateSpaceResponses, CreateUsernameData, CreateUsernameErrors, CreateUsernameResponses, DeleteAccountIdentityData, DeleteAccountIdentityErrors, DeleteAccountIdentityResponses, DeleteEnvironmentVariableData, DeleteEnvironmentVariableErrors, DeleteEnvironmentVariableResponses, DeployVersionData, DeployVersionErrors, DeployVersionResponses, FetchBillingPricesData, FetchBillingPricesErrors, FetchBillingPricesResponses, FetchGraphM2mData, FetchGraphM2mErrors, FetchGraphM2mResponses, FetchKindeOrganisationBillingAgreementsData, FetchKindeOrganisationBillingAgreementsErrors, FetchKindeOrganisationBillingAgreementsResponses, FetchNodeM2mData, FetchNodeM2mErrors, FetchNodeM2mResponses, GetBillingPlanData, GetBillingPlanErrors, GetBillingPlanResponses, GetBillingUsageData, GetBillingUsageErrors, GetBillingUsageResponses, GetConnectedAppUrlData, GetConnectedAppUrlErrors, GetConnectedAppUrlResponses, GetEnvironmentOverviewData, GetEnvironmentOverviewErrors, GetEnvironmentOverviewResponses, GetEnvironmentVariablesData, GetEnvironmentVariablesErrors, GetEnvironmentVariablesResponses, GetEnvironmentVersionsData, GetEnvironmentVersionsResponses, GetGraphOverviewData, GetGraphOverviewErrors, GetGraphOverviewResponses, GetProjectOverviewData, GetProjectOverviewErrors, GetProjectOverviewResponses, GetServiceHealthData, GetServiceHealthResponses, GetSpaceInvitesData, GetSpaceInvitesErrors, GetSpaceInvitesResponses, GetSpaceOrgCodeData, GetSpaceOrgCodeErrors, GetSpaceOrgCodeResponses, GetSpaceOverviewData, GetSpaceOverviewErrors, GetSpaceOverviewResponses, GetUserIdentitiesData, GetUserIdentitiesErrors, GetUserIdentitiesResponses, GetUserInvitesData, GetUserInvitesErrors, GetUserInvitesResponses, GetUserProfileData, GetUserProfileErrors, GetUserProfileResponses, JoinSpaceData, JoinSpaceErrors, JoinSpaceResponses, LeaveSpaceData, LeaveSpaceErrors, LeaveSpaceResponses, ListBillingInvoicesData, ListBillingInvoicesErrors, ListBillingInvoicesResponses, ListInstallationBranchesData, ListInstallationBranchesErrors, ListInstallationBranchesResponses, ListInstallationRepositoriesData, ListInstallationRepositoriesErrors, ListInstallationRepositoriesResponses, ListPaymentMethodsData, ListPaymentMethodsErrors, ListPaymentMethodsResponses, ListSpaceMemberRolesData, ListSpaceMemberRolesErrors, ListSpaceMemberRolesResponses, ListSpaceMembersData, ListSpaceMembersErrors, ListSpaceMembersResponses, ListUserInstallationsData, ListUserInstallationsErrors, ListUserInstallationsResponses, ListUserSpacesData, ListUserSpacesErrors, ListUserSpacesResponses, RecordCloudUsageData, RecordCloudUsageErrors, RecordCloudUsageResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsErrors, RecordOnboardingAnalyticsResponses, RejectSpaceInviteData, RejectSpaceInviteErrors, RejectSpaceInviteResponses, RemovePaymentMethodData, RemovePaymentMethodErrors, RemovePaymentMethodResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetErrors, RequestAccountPasswordResetResponses, RequestSignedUploadUrlData, RequestSignedUploadUrlErrors, RequestSignedUploadUrlResponses, RevokeSpaceInviteData, RevokeSpaceInviteErrors, RevokeSpaceInviteResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodErrors, SetDefaultPaymentMethodResponses, UpdateBillingPlanData, UpdateBillingPlanErrors, UpdateBillingPlanResponses, UpdateConnectedAppTokenData, UpdateConnectedAppTokenErrors, UpdateConnectedAppTokenResponses, UpdateEnvironmentVariableData, UpdateEnvironmentVariableErrors, UpdateEnvironmentVariableResponses, UpdateGraphM2mData, UpdateGraphM2mErrors, UpdateGraphM2mResponses, UpdateGraphStateData, UpdateGraphStateErrors, UpdateGraphStateResponses, UpdateUsernameData, UpdateUsernameErrors, UpdateUsernameResponses, UpdateUserProfileData, UpdateUserProfileErrors, UpdateUserProfileResponses, VersionStatusData, VersionStatusErrors, VersionStatusResponses } from './types.gen';
|
|
2
|
+
import type { CreateEnvironmentData, CreateEnvironmentErrors, CreateEnvironmentResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableErrors, CreateEnvironmentVariableResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateSetupIntentData, CreateSetupIntentErrors, CreateSetupIntentResponses, CreateSpaceData, CreateSpaceErrors, CreateSpaceInviteData, CreateSpaceInviteErrors, CreateSpaceInviteResponses, CreateSpaceResponses, CreateUsernameData, CreateUsernameErrors, CreateUsernameResponses, DeleteAccountIdentityData, DeleteAccountIdentityErrors, DeleteAccountIdentityResponses, DeleteEnvironmentVariableData, DeleteEnvironmentVariableErrors, DeleteEnvironmentVariableResponses, DeployVersionData, DeployVersionErrors, DeployVersionResponses, FetchBillingPricesData, FetchBillingPricesErrors, FetchBillingPricesResponses, FetchGraphM2mData, FetchGraphM2mErrors, FetchGraphM2mResponses, FetchKindeOrganisationBillingAgreementsData, FetchKindeOrganisationBillingAgreementsErrors, FetchKindeOrganisationBillingAgreementsResponses, FetchNodeM2mData, FetchNodeM2mErrors, FetchNodeM2mResponses, GetBillingPlanData, GetBillingPlanErrors, GetBillingPlanResponses, GetBillingUsageData, GetBillingUsageErrors, GetBillingUsageResponses, GetConnectedAppUrlData, GetConnectedAppUrlErrors, GetConnectedAppUrlResponses, GetEnvironmentOverviewData, GetEnvironmentOverviewErrors, GetEnvironmentOverviewResponses, GetEnvironmentVariablesData, GetEnvironmentVariablesErrors, GetEnvironmentVariablesResponses, GetEnvironmentVersionsData, GetEnvironmentVersionsResponses, GetGraphOverviewData, GetGraphOverviewErrors, GetGraphOverviewResponses, GetProjectOverviewData, GetProjectOverviewErrors, GetProjectOverviewResponses, GetServiceHealthData, GetServiceHealthResponses, GetSpaceInvitesData, GetSpaceInvitesErrors, GetSpaceInvitesResponses, GetSpaceOrgCodeData, GetSpaceOrgCodeErrors, GetSpaceOrgCodeResponses, GetSpaceOverviewData, GetSpaceOverviewErrors, GetSpaceOverviewResponses, GetSpaceStatsData, GetSpaceStatsErrors, GetSpaceStatsResponses, GetUserIdentitiesData, GetUserIdentitiesErrors, GetUserIdentitiesResponses, GetUserInvitesData, GetUserInvitesErrors, GetUserInvitesResponses, GetUserProfileData, GetUserProfileErrors, GetUserProfileResponses, JoinSpaceData, JoinSpaceErrors, JoinSpaceResponses, LeaveSpaceData, LeaveSpaceErrors, LeaveSpaceResponses, ListBillingInvoicesData, ListBillingInvoicesErrors, ListBillingInvoicesResponses, ListInstallationBranchesData, ListInstallationBranchesErrors, ListInstallationBranchesResponses, ListInstallationRepositoriesData, ListInstallationRepositoriesErrors, ListInstallationRepositoriesResponses, ListPaymentMethodsData, ListPaymentMethodsErrors, ListPaymentMethodsResponses, ListSpaceMemberRolesData, ListSpaceMemberRolesErrors, ListSpaceMemberRolesResponses, ListSpaceMembersData, ListSpaceMembersErrors, ListSpaceMembersResponses, ListUserInstallationsData, ListUserInstallationsErrors, ListUserInstallationsResponses, ListUserSpacesData, ListUserSpacesErrors, ListUserSpacesResponses, RecordCloudUsageData, RecordCloudUsageErrors, RecordCloudUsageResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsErrors, RecordOnboardingAnalyticsResponses, RejectSpaceInviteData, RejectSpaceInviteErrors, RejectSpaceInviteResponses, RemovePaymentMethodData, RemovePaymentMethodErrors, RemovePaymentMethodResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetErrors, RequestAccountPasswordResetResponses, RequestSignedUploadUrlData, RequestSignedUploadUrlErrors, RequestSignedUploadUrlResponses, RevokeSpaceInviteData, RevokeSpaceInviteErrors, RevokeSpaceInviteResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodErrors, SetDefaultPaymentMethodResponses, UpdateBillingPlanData, UpdateBillingPlanErrors, UpdateBillingPlanResponses, UpdateConnectedAppTokenData, UpdateConnectedAppTokenErrors, UpdateConnectedAppTokenResponses, UpdateEnvironmentVariableData, UpdateEnvironmentVariableErrors, UpdateEnvironmentVariableResponses, UpdateGraphM2mData, UpdateGraphM2mErrors, UpdateGraphM2mResponses, UpdateGraphStateData, UpdateGraphStateErrors, UpdateGraphStateResponses, UpdateUsernameData, UpdateUsernameErrors, UpdateUsernameResponses, UpdateUserProfileData, UpdateUserProfileErrors, UpdateUserProfileResponses, VersionStatusData, VersionStatusErrors, VersionStatusResponses } from './types.gen';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -109,6 +109,10 @@ export declare const getSpaceOverview: <ThrowOnError extends boolean = false>(op
|
|
|
109
109
|
* The space organisation code.
|
|
110
110
|
*/
|
|
111
111
|
export declare const getSpaceOrgCode: <ThrowOnError extends boolean = false>(options: Options<GetSpaceOrgCodeData, ThrowOnError>) => import("./client").RequestResult<GetSpaceOrgCodeResponses, GetSpaceOrgCodeErrors, ThrowOnError, "fields">;
|
|
112
|
+
/**
|
|
113
|
+
* Stats for a space.
|
|
114
|
+
*/
|
|
115
|
+
export declare const getSpaceStats: <ThrowOnError extends boolean = false>(options: Options<GetSpaceStatsData, ThrowOnError>) => import("./client").RequestResult<GetSpaceStatsResponses, GetSpaceStatsErrors, ThrowOnError, "fields">;
|
|
112
116
|
/**
|
|
113
117
|
* The space billing agreements.
|
|
114
118
|
*/
|
package/dist/sdk/sdk.gen.js
CHANGED
|
@@ -384,6 +384,21 @@ export const getSpaceOrgCode = (options) => {
|
|
|
384
384
|
...options
|
|
385
385
|
});
|
|
386
386
|
};
|
|
387
|
+
/**
|
|
388
|
+
* Stats for a space.
|
|
389
|
+
*/
|
|
390
|
+
export const getSpaceStats = (options) => {
|
|
391
|
+
return (options.client ?? client).get({
|
|
392
|
+
security: [
|
|
393
|
+
{
|
|
394
|
+
scheme: 'bearer',
|
|
395
|
+
type: 'http'
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
url: '/auth/{spaceHandle}/stats',
|
|
399
|
+
...options
|
|
400
|
+
});
|
|
401
|
+
};
|
|
387
402
|
/**
|
|
388
403
|
* The space billing agreements.
|
|
389
404
|
*/
|
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -98,6 +98,16 @@ export type SpaceOverview = {
|
|
|
98
98
|
export type SpaceOrgCodeResponse = {
|
|
99
99
|
orgCode: string;
|
|
100
100
|
};
|
|
101
|
+
export type SpaceStats = {
|
|
102
|
+
/**
|
|
103
|
+
* Total node count across the latest version of every environment in the space.
|
|
104
|
+
*/
|
|
105
|
+
active_services: number;
|
|
106
|
+
/**
|
|
107
|
+
* Count of all deployment attempts across all projects and environments in the current calendar month.
|
|
108
|
+
*/
|
|
109
|
+
deployments_this_month: number;
|
|
110
|
+
};
|
|
101
111
|
export type EnvironmentOverview = {
|
|
102
112
|
id: string;
|
|
103
113
|
name: string;
|
|
@@ -380,9 +390,9 @@ export type ContainerNodeProps = {
|
|
|
380
390
|
[key: string]: string;
|
|
381
391
|
};
|
|
382
392
|
};
|
|
383
|
-
export type Region = '
|
|
384
|
-
export type Cpu = '1' | '2'
|
|
385
|
-
export type Memory = '512Mi' | '1Gi' | '2Gi'
|
|
393
|
+
export type Region = 'europe-west2';
|
|
394
|
+
export type Cpu = '1' | '2';
|
|
395
|
+
export type Memory = '512Mi' | '1Gi' | '2Gi';
|
|
386
396
|
export type Ingress = 'INGRESS_TRAFFIC_ALL' | 'INGRESS_TRAFFIC_INTERNAL_ONLY' | 'INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER';
|
|
387
397
|
export type CronJobNodeProps = {
|
|
388
398
|
cronTab?: string;
|
|
@@ -1512,6 +1522,39 @@ export type GetSpaceOrgCodeResponses = {
|
|
|
1512
1522
|
200: SpaceOrgCodeResponse;
|
|
1513
1523
|
};
|
|
1514
1524
|
export type GetSpaceOrgCodeResponse = GetSpaceOrgCodeResponses[keyof GetSpaceOrgCodeResponses];
|
|
1525
|
+
export type GetSpaceStatsData = {
|
|
1526
|
+
body?: never;
|
|
1527
|
+
path: {
|
|
1528
|
+
/**
|
|
1529
|
+
* The space handle. This must be globally unique.
|
|
1530
|
+
*/
|
|
1531
|
+
spaceHandle: string;
|
|
1532
|
+
};
|
|
1533
|
+
query?: never;
|
|
1534
|
+
url: '/auth/{spaceHandle}/stats';
|
|
1535
|
+
};
|
|
1536
|
+
export type GetSpaceStatsErrors = {
|
|
1537
|
+
/**
|
|
1538
|
+
* Unauthorised user.
|
|
1539
|
+
*/
|
|
1540
|
+
401: ErrorResponse;
|
|
1541
|
+
/**
|
|
1542
|
+
* Invalid credentials.
|
|
1543
|
+
*/
|
|
1544
|
+
403: ErrorResponse;
|
|
1545
|
+
/**
|
|
1546
|
+
* Unexpected error.
|
|
1547
|
+
*/
|
|
1548
|
+
500: ErrorResponse;
|
|
1549
|
+
};
|
|
1550
|
+
export type GetSpaceStatsError = GetSpaceStatsErrors[keyof GetSpaceStatsErrors];
|
|
1551
|
+
export type GetSpaceStatsResponses = {
|
|
1552
|
+
/**
|
|
1553
|
+
* Active service count and deployment count for the current month.
|
|
1554
|
+
*/
|
|
1555
|
+
200: SpaceStats;
|
|
1556
|
+
};
|
|
1557
|
+
export type GetSpaceStatsResponse = GetSpaceStatsResponses[keyof GetSpaceStatsResponses];
|
|
1515
1558
|
export type FetchKindeOrganisationBillingAgreementsData = {
|
|
1516
1559
|
body?: never;
|
|
1517
1560
|
path: {
|
package/dist/sdk/zod.gen.d.ts
CHANGED
|
@@ -139,6 +139,10 @@ export declare const zOnboardingAnalytics: z.ZodObject<{
|
|
|
139
139
|
export declare const zSpaceOrgCodeResponse: z.ZodObject<{
|
|
140
140
|
orgCode: z.ZodString;
|
|
141
141
|
}, z.core.$strip>;
|
|
142
|
+
export declare const zSpaceStats: z.ZodObject<{
|
|
143
|
+
active_services: z.ZodInt;
|
|
144
|
+
deployments_this_month: z.ZodInt;
|
|
145
|
+
}, z.core.$strip>;
|
|
142
146
|
export declare const zEnvironmentOverview: z.ZodObject<{
|
|
143
147
|
id: z.ZodUUID;
|
|
144
148
|
name: z.ZodString;
|
|
@@ -553,51 +557,16 @@ export declare const zSchedulerNodeProps: z.ZodObject<{
|
|
|
553
557
|
paused: z.ZodBoolean;
|
|
554
558
|
}, z.core.$strip>;
|
|
555
559
|
export declare const zRegion: z.ZodEnum<{
|
|
556
|
-
"africa-south1": "africa-south1";
|
|
557
|
-
"asia-east1": "asia-east1";
|
|
558
|
-
"asia-east2": "asia-east2";
|
|
559
|
-
"asia-northeast1": "asia-northeast1";
|
|
560
|
-
"asia-northeast2": "asia-northeast2";
|
|
561
|
-
"asia-northeast3": "asia-northeast3";
|
|
562
|
-
"asia-south1": "asia-south1";
|
|
563
|
-
"asia-southeast1": "asia-southeast1";
|
|
564
|
-
"asia-southeast2": "asia-southeast2";
|
|
565
|
-
"australia-southeast1": "australia-southeast1";
|
|
566
|
-
"europe-north1": "europe-north1";
|
|
567
|
-
"europe-west1": "europe-west1";
|
|
568
560
|
"europe-west2": "europe-west2";
|
|
569
|
-
"europe-west3": "europe-west3";
|
|
570
|
-
"europe-west4": "europe-west4";
|
|
571
|
-
"europe-west6": "europe-west6";
|
|
572
|
-
"northamerica-northeast1": "northamerica-northeast1";
|
|
573
|
-
"northamerica-northeast2": "northamerica-northeast2";
|
|
574
|
-
"southamerica-east1": "southamerica-east1";
|
|
575
|
-
"southamerica-west1": "southamerica-west1";
|
|
576
|
-
"us-central1": "us-central1";
|
|
577
|
-
"us-east1": "us-east1";
|
|
578
|
-
"us-east4": "us-east4";
|
|
579
|
-
"us-west1": "us-west1";
|
|
580
|
-
"us-west2": "us-west2";
|
|
581
|
-
"us-west3": "us-west3";
|
|
582
|
-
"us-west4": "us-west4";
|
|
583
561
|
}>;
|
|
584
562
|
export declare const zCpu: z.ZodEnum<{
|
|
585
563
|
1: "1";
|
|
586
564
|
2: "2";
|
|
587
|
-
4: "4";
|
|
588
|
-
6: "6";
|
|
589
|
-
8: "8";
|
|
590
|
-
16: "16";
|
|
591
|
-
32: "32";
|
|
592
565
|
}>;
|
|
593
566
|
export declare const zMemory: z.ZodEnum<{
|
|
594
567
|
"512Mi": "512Mi";
|
|
595
568
|
"1Gi": "1Gi";
|
|
596
569
|
"2Gi": "2Gi";
|
|
597
|
-
"4Gi": "4Gi";
|
|
598
|
-
"8Gi": "8Gi";
|
|
599
|
-
"16Gi": "16Gi";
|
|
600
|
-
"32Gi": "32Gi";
|
|
601
570
|
}>;
|
|
602
571
|
export declare const zIngress: z.ZodEnum<{
|
|
603
572
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
@@ -606,52 +575,17 @@ export declare const zIngress: z.ZodEnum<{
|
|
|
606
575
|
}>;
|
|
607
576
|
export declare const zContainerNodeProps: z.ZodObject<{
|
|
608
577
|
region: z.ZodEnum<{
|
|
609
|
-
"africa-south1": "africa-south1";
|
|
610
|
-
"asia-east1": "asia-east1";
|
|
611
|
-
"asia-east2": "asia-east2";
|
|
612
|
-
"asia-northeast1": "asia-northeast1";
|
|
613
|
-
"asia-northeast2": "asia-northeast2";
|
|
614
|
-
"asia-northeast3": "asia-northeast3";
|
|
615
|
-
"asia-south1": "asia-south1";
|
|
616
|
-
"asia-southeast1": "asia-southeast1";
|
|
617
|
-
"asia-southeast2": "asia-southeast2";
|
|
618
|
-
"australia-southeast1": "australia-southeast1";
|
|
619
|
-
"europe-north1": "europe-north1";
|
|
620
|
-
"europe-west1": "europe-west1";
|
|
621
578
|
"europe-west2": "europe-west2";
|
|
622
|
-
"europe-west3": "europe-west3";
|
|
623
|
-
"europe-west4": "europe-west4";
|
|
624
|
-
"europe-west6": "europe-west6";
|
|
625
|
-
"northamerica-northeast1": "northamerica-northeast1";
|
|
626
|
-
"northamerica-northeast2": "northamerica-northeast2";
|
|
627
|
-
"southamerica-east1": "southamerica-east1";
|
|
628
|
-
"southamerica-west1": "southamerica-west1";
|
|
629
|
-
"us-central1": "us-central1";
|
|
630
|
-
"us-east1": "us-east1";
|
|
631
|
-
"us-east4": "us-east4";
|
|
632
|
-
"us-west1": "us-west1";
|
|
633
|
-
"us-west2": "us-west2";
|
|
634
|
-
"us-west3": "us-west3";
|
|
635
|
-
"us-west4": "us-west4";
|
|
636
579
|
}>;
|
|
637
580
|
port: z.ZodInt;
|
|
638
581
|
cpu: z.ZodEnum<{
|
|
639
582
|
1: "1";
|
|
640
583
|
2: "2";
|
|
641
|
-
4: "4";
|
|
642
|
-
6: "6";
|
|
643
|
-
8: "8";
|
|
644
|
-
16: "16";
|
|
645
|
-
32: "32";
|
|
646
584
|
}>;
|
|
647
585
|
memory: z.ZodEnum<{
|
|
648
586
|
"512Mi": "512Mi";
|
|
649
587
|
"1Gi": "1Gi";
|
|
650
588
|
"2Gi": "2Gi";
|
|
651
|
-
"4Gi": "4Gi";
|
|
652
|
-
"8Gi": "8Gi";
|
|
653
|
-
"16Gi": "16Gi";
|
|
654
|
-
"32Gi": "32Gi";
|
|
655
589
|
}>;
|
|
656
590
|
ingress: z.ZodEnum<{
|
|
657
591
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
@@ -735,52 +669,17 @@ export declare const zNode: z.ZodObject<{
|
|
|
735
669
|
typ: z.ZodLiteral<"container">;
|
|
736
670
|
}, z.core.$strip>, z.ZodObject<{
|
|
737
671
|
region: z.ZodEnum<{
|
|
738
|
-
"africa-south1": "africa-south1";
|
|
739
|
-
"asia-east1": "asia-east1";
|
|
740
|
-
"asia-east2": "asia-east2";
|
|
741
|
-
"asia-northeast1": "asia-northeast1";
|
|
742
|
-
"asia-northeast2": "asia-northeast2";
|
|
743
|
-
"asia-northeast3": "asia-northeast3";
|
|
744
|
-
"asia-south1": "asia-south1";
|
|
745
|
-
"asia-southeast1": "asia-southeast1";
|
|
746
|
-
"asia-southeast2": "asia-southeast2";
|
|
747
|
-
"australia-southeast1": "australia-southeast1";
|
|
748
|
-
"europe-north1": "europe-north1";
|
|
749
|
-
"europe-west1": "europe-west1";
|
|
750
672
|
"europe-west2": "europe-west2";
|
|
751
|
-
"europe-west3": "europe-west3";
|
|
752
|
-
"europe-west4": "europe-west4";
|
|
753
|
-
"europe-west6": "europe-west6";
|
|
754
|
-
"northamerica-northeast1": "northamerica-northeast1";
|
|
755
|
-
"northamerica-northeast2": "northamerica-northeast2";
|
|
756
|
-
"southamerica-east1": "southamerica-east1";
|
|
757
|
-
"southamerica-west1": "southamerica-west1";
|
|
758
|
-
"us-central1": "us-central1";
|
|
759
|
-
"us-east1": "us-east1";
|
|
760
|
-
"us-east4": "us-east4";
|
|
761
|
-
"us-west1": "us-west1";
|
|
762
|
-
"us-west2": "us-west2";
|
|
763
|
-
"us-west3": "us-west3";
|
|
764
|
-
"us-west4": "us-west4";
|
|
765
673
|
}>;
|
|
766
674
|
port: z.ZodInt;
|
|
767
675
|
cpu: z.ZodEnum<{
|
|
768
676
|
1: "1";
|
|
769
677
|
2: "2";
|
|
770
|
-
4: "4";
|
|
771
|
-
6: "6";
|
|
772
|
-
8: "8";
|
|
773
|
-
16: "16";
|
|
774
|
-
32: "32";
|
|
775
678
|
}>;
|
|
776
679
|
memory: z.ZodEnum<{
|
|
777
680
|
"512Mi": "512Mi";
|
|
778
681
|
"1Gi": "1Gi";
|
|
779
682
|
"2Gi": "2Gi";
|
|
780
|
-
"4Gi": "4Gi";
|
|
781
|
-
"8Gi": "8Gi";
|
|
782
|
-
"16Gi": "16Gi";
|
|
783
|
-
"32Gi": "32Gi";
|
|
784
683
|
}>;
|
|
785
684
|
ingress: z.ZodEnum<{
|
|
786
685
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
@@ -889,52 +788,17 @@ export declare const zNodes: z.ZodObject<{
|
|
|
889
788
|
typ: z.ZodLiteral<"container">;
|
|
890
789
|
}, z.core.$strip>, z.ZodObject<{
|
|
891
790
|
region: z.ZodEnum<{
|
|
892
|
-
"africa-south1": "africa-south1";
|
|
893
|
-
"asia-east1": "asia-east1";
|
|
894
|
-
"asia-east2": "asia-east2";
|
|
895
|
-
"asia-northeast1": "asia-northeast1";
|
|
896
|
-
"asia-northeast2": "asia-northeast2";
|
|
897
|
-
"asia-northeast3": "asia-northeast3";
|
|
898
|
-
"asia-south1": "asia-south1";
|
|
899
|
-
"asia-southeast1": "asia-southeast1";
|
|
900
|
-
"asia-southeast2": "asia-southeast2";
|
|
901
|
-
"australia-southeast1": "australia-southeast1";
|
|
902
|
-
"europe-north1": "europe-north1";
|
|
903
|
-
"europe-west1": "europe-west1";
|
|
904
791
|
"europe-west2": "europe-west2";
|
|
905
|
-
"europe-west3": "europe-west3";
|
|
906
|
-
"europe-west4": "europe-west4";
|
|
907
|
-
"europe-west6": "europe-west6";
|
|
908
|
-
"northamerica-northeast1": "northamerica-northeast1";
|
|
909
|
-
"northamerica-northeast2": "northamerica-northeast2";
|
|
910
|
-
"southamerica-east1": "southamerica-east1";
|
|
911
|
-
"southamerica-west1": "southamerica-west1";
|
|
912
|
-
"us-central1": "us-central1";
|
|
913
|
-
"us-east1": "us-east1";
|
|
914
|
-
"us-east4": "us-east4";
|
|
915
|
-
"us-west1": "us-west1";
|
|
916
|
-
"us-west2": "us-west2";
|
|
917
|
-
"us-west3": "us-west3";
|
|
918
|
-
"us-west4": "us-west4";
|
|
919
792
|
}>;
|
|
920
793
|
port: z.ZodInt;
|
|
921
794
|
cpu: z.ZodEnum<{
|
|
922
795
|
1: "1";
|
|
923
796
|
2: "2";
|
|
924
|
-
4: "4";
|
|
925
|
-
6: "6";
|
|
926
|
-
8: "8";
|
|
927
|
-
16: "16";
|
|
928
|
-
32: "32";
|
|
929
797
|
}>;
|
|
930
798
|
memory: z.ZodEnum<{
|
|
931
799
|
"512Mi": "512Mi";
|
|
932
800
|
"1Gi": "1Gi";
|
|
933
801
|
"2Gi": "2Gi";
|
|
934
|
-
"4Gi": "4Gi";
|
|
935
|
-
"8Gi": "8Gi";
|
|
936
|
-
"16Gi": "16Gi";
|
|
937
|
-
"32Gi": "32Gi";
|
|
938
802
|
}>;
|
|
939
803
|
ingress: z.ZodEnum<{
|
|
940
804
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
@@ -1045,52 +909,17 @@ export declare const zGraph: z.ZodObject<{
|
|
|
1045
909
|
typ: z.ZodLiteral<"container">;
|
|
1046
910
|
}, z.core.$strip>, z.ZodObject<{
|
|
1047
911
|
region: z.ZodEnum<{
|
|
1048
|
-
"africa-south1": "africa-south1";
|
|
1049
|
-
"asia-east1": "asia-east1";
|
|
1050
|
-
"asia-east2": "asia-east2";
|
|
1051
|
-
"asia-northeast1": "asia-northeast1";
|
|
1052
|
-
"asia-northeast2": "asia-northeast2";
|
|
1053
|
-
"asia-northeast3": "asia-northeast3";
|
|
1054
|
-
"asia-south1": "asia-south1";
|
|
1055
|
-
"asia-southeast1": "asia-southeast1";
|
|
1056
|
-
"asia-southeast2": "asia-southeast2";
|
|
1057
|
-
"australia-southeast1": "australia-southeast1";
|
|
1058
|
-
"europe-north1": "europe-north1";
|
|
1059
|
-
"europe-west1": "europe-west1";
|
|
1060
912
|
"europe-west2": "europe-west2";
|
|
1061
|
-
"europe-west3": "europe-west3";
|
|
1062
|
-
"europe-west4": "europe-west4";
|
|
1063
|
-
"europe-west6": "europe-west6";
|
|
1064
|
-
"northamerica-northeast1": "northamerica-northeast1";
|
|
1065
|
-
"northamerica-northeast2": "northamerica-northeast2";
|
|
1066
|
-
"southamerica-east1": "southamerica-east1";
|
|
1067
|
-
"southamerica-west1": "southamerica-west1";
|
|
1068
|
-
"us-central1": "us-central1";
|
|
1069
|
-
"us-east1": "us-east1";
|
|
1070
|
-
"us-east4": "us-east4";
|
|
1071
|
-
"us-west1": "us-west1";
|
|
1072
|
-
"us-west2": "us-west2";
|
|
1073
|
-
"us-west3": "us-west3";
|
|
1074
|
-
"us-west4": "us-west4";
|
|
1075
913
|
}>;
|
|
1076
914
|
port: z.ZodInt;
|
|
1077
915
|
cpu: z.ZodEnum<{
|
|
1078
916
|
1: "1";
|
|
1079
917
|
2: "2";
|
|
1080
|
-
4: "4";
|
|
1081
|
-
6: "6";
|
|
1082
|
-
8: "8";
|
|
1083
|
-
16: "16";
|
|
1084
|
-
32: "32";
|
|
1085
918
|
}>;
|
|
1086
919
|
memory: z.ZodEnum<{
|
|
1087
920
|
"512Mi": "512Mi";
|
|
1088
921
|
"1Gi": "1Gi";
|
|
1089
922
|
"2Gi": "2Gi";
|
|
1090
|
-
"4Gi": "4Gi";
|
|
1091
|
-
"8Gi": "8Gi";
|
|
1092
|
-
"16Gi": "16Gi";
|
|
1093
|
-
"32Gi": "32Gi";
|
|
1094
923
|
}>;
|
|
1095
924
|
ingress: z.ZodEnum<{
|
|
1096
925
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
@@ -1414,52 +1243,17 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1414
1243
|
typ: z.ZodLiteral<"container">;
|
|
1415
1244
|
}, z.core.$strip>, z.ZodObject<{
|
|
1416
1245
|
region: z.ZodEnum<{
|
|
1417
|
-
"africa-south1": "africa-south1";
|
|
1418
|
-
"asia-east1": "asia-east1";
|
|
1419
|
-
"asia-east2": "asia-east2";
|
|
1420
|
-
"asia-northeast1": "asia-northeast1";
|
|
1421
|
-
"asia-northeast2": "asia-northeast2";
|
|
1422
|
-
"asia-northeast3": "asia-northeast3";
|
|
1423
|
-
"asia-south1": "asia-south1";
|
|
1424
|
-
"asia-southeast1": "asia-southeast1";
|
|
1425
|
-
"asia-southeast2": "asia-southeast2";
|
|
1426
|
-
"australia-southeast1": "australia-southeast1";
|
|
1427
|
-
"europe-north1": "europe-north1";
|
|
1428
|
-
"europe-west1": "europe-west1";
|
|
1429
1246
|
"europe-west2": "europe-west2";
|
|
1430
|
-
"europe-west3": "europe-west3";
|
|
1431
|
-
"europe-west4": "europe-west4";
|
|
1432
|
-
"europe-west6": "europe-west6";
|
|
1433
|
-
"northamerica-northeast1": "northamerica-northeast1";
|
|
1434
|
-
"northamerica-northeast2": "northamerica-northeast2";
|
|
1435
|
-
"southamerica-east1": "southamerica-east1";
|
|
1436
|
-
"southamerica-west1": "southamerica-west1";
|
|
1437
|
-
"us-central1": "us-central1";
|
|
1438
|
-
"us-east1": "us-east1";
|
|
1439
|
-
"us-east4": "us-east4";
|
|
1440
|
-
"us-west1": "us-west1";
|
|
1441
|
-
"us-west2": "us-west2";
|
|
1442
|
-
"us-west3": "us-west3";
|
|
1443
|
-
"us-west4": "us-west4";
|
|
1444
1247
|
}>;
|
|
1445
1248
|
port: z.ZodInt;
|
|
1446
1249
|
cpu: z.ZodEnum<{
|
|
1447
1250
|
1: "1";
|
|
1448
1251
|
2: "2";
|
|
1449
|
-
4: "4";
|
|
1450
|
-
6: "6";
|
|
1451
|
-
8: "8";
|
|
1452
|
-
16: "16";
|
|
1453
|
-
32: "32";
|
|
1454
1252
|
}>;
|
|
1455
1253
|
memory: z.ZodEnum<{
|
|
1456
1254
|
"512Mi": "512Mi";
|
|
1457
1255
|
"1Gi": "1Gi";
|
|
1458
1256
|
"2Gi": "2Gi";
|
|
1459
|
-
"4Gi": "4Gi";
|
|
1460
|
-
"8Gi": "8Gi";
|
|
1461
|
-
"16Gi": "16Gi";
|
|
1462
|
-
"32Gi": "32Gi";
|
|
1463
1257
|
}>;
|
|
1464
1258
|
ingress: z.ZodEnum<{
|
|
1465
1259
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
@@ -1570,52 +1364,17 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
|
|
|
1570
1364
|
typ: z.ZodLiteral<"container">;
|
|
1571
1365
|
}, z.core.$strip>, z.ZodObject<{
|
|
1572
1366
|
region: z.ZodEnum<{
|
|
1573
|
-
"africa-south1": "africa-south1";
|
|
1574
|
-
"asia-east1": "asia-east1";
|
|
1575
|
-
"asia-east2": "asia-east2";
|
|
1576
|
-
"asia-northeast1": "asia-northeast1";
|
|
1577
|
-
"asia-northeast2": "asia-northeast2";
|
|
1578
|
-
"asia-northeast3": "asia-northeast3";
|
|
1579
|
-
"asia-south1": "asia-south1";
|
|
1580
|
-
"asia-southeast1": "asia-southeast1";
|
|
1581
|
-
"asia-southeast2": "asia-southeast2";
|
|
1582
|
-
"australia-southeast1": "australia-southeast1";
|
|
1583
|
-
"europe-north1": "europe-north1";
|
|
1584
|
-
"europe-west1": "europe-west1";
|
|
1585
1367
|
"europe-west2": "europe-west2";
|
|
1586
|
-
"europe-west3": "europe-west3";
|
|
1587
|
-
"europe-west4": "europe-west4";
|
|
1588
|
-
"europe-west6": "europe-west6";
|
|
1589
|
-
"northamerica-northeast1": "northamerica-northeast1";
|
|
1590
|
-
"northamerica-northeast2": "northamerica-northeast2";
|
|
1591
|
-
"southamerica-east1": "southamerica-east1";
|
|
1592
|
-
"southamerica-west1": "southamerica-west1";
|
|
1593
|
-
"us-central1": "us-central1";
|
|
1594
|
-
"us-east1": "us-east1";
|
|
1595
|
-
"us-east4": "us-east4";
|
|
1596
|
-
"us-west1": "us-west1";
|
|
1597
|
-
"us-west2": "us-west2";
|
|
1598
|
-
"us-west3": "us-west3";
|
|
1599
|
-
"us-west4": "us-west4";
|
|
1600
1368
|
}>;
|
|
1601
1369
|
port: z.ZodInt;
|
|
1602
1370
|
cpu: z.ZodEnum<{
|
|
1603
1371
|
1: "1";
|
|
1604
1372
|
2: "2";
|
|
1605
|
-
4: "4";
|
|
1606
|
-
6: "6";
|
|
1607
|
-
8: "8";
|
|
1608
|
-
16: "16";
|
|
1609
|
-
32: "32";
|
|
1610
1373
|
}>;
|
|
1611
1374
|
memory: z.ZodEnum<{
|
|
1612
1375
|
"512Mi": "512Mi";
|
|
1613
1376
|
"1Gi": "1Gi";
|
|
1614
1377
|
"2Gi": "2Gi";
|
|
1615
|
-
"4Gi": "4Gi";
|
|
1616
|
-
"8Gi": "8Gi";
|
|
1617
|
-
"16Gi": "16Gi";
|
|
1618
|
-
"32Gi": "32Gi";
|
|
1619
1378
|
}>;
|
|
1620
1379
|
ingress: z.ZodEnum<{
|
|
1621
1380
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
@@ -1740,52 +1499,17 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
|
|
|
1740
1499
|
typ: z.ZodLiteral<"container">;
|
|
1741
1500
|
}, z.core.$strip>, z.ZodObject<{
|
|
1742
1501
|
region: z.ZodEnum<{
|
|
1743
|
-
"africa-south1": "africa-south1";
|
|
1744
|
-
"asia-east1": "asia-east1";
|
|
1745
|
-
"asia-east2": "asia-east2";
|
|
1746
|
-
"asia-northeast1": "asia-northeast1";
|
|
1747
|
-
"asia-northeast2": "asia-northeast2";
|
|
1748
|
-
"asia-northeast3": "asia-northeast3";
|
|
1749
|
-
"asia-south1": "asia-south1";
|
|
1750
|
-
"asia-southeast1": "asia-southeast1";
|
|
1751
|
-
"asia-southeast2": "asia-southeast2";
|
|
1752
|
-
"australia-southeast1": "australia-southeast1";
|
|
1753
|
-
"europe-north1": "europe-north1";
|
|
1754
|
-
"europe-west1": "europe-west1";
|
|
1755
1502
|
"europe-west2": "europe-west2";
|
|
1756
|
-
"europe-west3": "europe-west3";
|
|
1757
|
-
"europe-west4": "europe-west4";
|
|
1758
|
-
"europe-west6": "europe-west6";
|
|
1759
|
-
"northamerica-northeast1": "northamerica-northeast1";
|
|
1760
|
-
"northamerica-northeast2": "northamerica-northeast2";
|
|
1761
|
-
"southamerica-east1": "southamerica-east1";
|
|
1762
|
-
"southamerica-west1": "southamerica-west1";
|
|
1763
|
-
"us-central1": "us-central1";
|
|
1764
|
-
"us-east1": "us-east1";
|
|
1765
|
-
"us-east4": "us-east4";
|
|
1766
|
-
"us-west1": "us-west1";
|
|
1767
|
-
"us-west2": "us-west2";
|
|
1768
|
-
"us-west3": "us-west3";
|
|
1769
|
-
"us-west4": "us-west4";
|
|
1770
1503
|
}>;
|
|
1771
1504
|
port: z.ZodInt;
|
|
1772
1505
|
cpu: z.ZodEnum<{
|
|
1773
1506
|
1: "1";
|
|
1774
1507
|
2: "2";
|
|
1775
|
-
4: "4";
|
|
1776
|
-
6: "6";
|
|
1777
|
-
8: "8";
|
|
1778
|
-
16: "16";
|
|
1779
|
-
32: "32";
|
|
1780
1508
|
}>;
|
|
1781
1509
|
memory: z.ZodEnum<{
|
|
1782
1510
|
"512Mi": "512Mi";
|
|
1783
1511
|
"1Gi": "1Gi";
|
|
1784
1512
|
"2Gi": "2Gi";
|
|
1785
|
-
"4Gi": "4Gi";
|
|
1786
|
-
"8Gi": "8Gi";
|
|
1787
|
-
"16Gi": "16Gi";
|
|
1788
|
-
"32Gi": "32Gi";
|
|
1789
1513
|
}>;
|
|
1790
1514
|
ingress: z.ZodEnum<{
|
|
1791
1515
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
@@ -2200,6 +1924,20 @@ export declare const zGetSpaceOrgCodeData: z.ZodObject<{
|
|
|
2200
1924
|
export declare const zGetSpaceOrgCodeResponse: z.ZodObject<{
|
|
2201
1925
|
orgCode: z.ZodString;
|
|
2202
1926
|
}, z.core.$strip>;
|
|
1927
|
+
export declare const zGetSpaceStatsData: z.ZodObject<{
|
|
1928
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
1929
|
+
path: z.ZodObject<{
|
|
1930
|
+
spaceHandle: z.ZodString;
|
|
1931
|
+
}, z.core.$strip>;
|
|
1932
|
+
query: z.ZodOptional<z.ZodNever>;
|
|
1933
|
+
}, z.core.$strip>;
|
|
1934
|
+
/**
|
|
1935
|
+
* Active service count and deployment count for the current month.
|
|
1936
|
+
*/
|
|
1937
|
+
export declare const zGetSpaceStatsResponse: z.ZodObject<{
|
|
1938
|
+
active_services: z.ZodInt;
|
|
1939
|
+
deployments_this_month: z.ZodInt;
|
|
1940
|
+
}, z.core.$strip>;
|
|
2203
1941
|
export declare const zFetchKindeOrganisationBillingAgreementsData: z.ZodObject<{
|
|
2204
1942
|
body: z.ZodOptional<z.ZodNever>;
|
|
2205
1943
|
path: z.ZodObject<{
|
|
@@ -2606,52 +2344,17 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
2606
2344
|
typ: z.ZodLiteral<"container">;
|
|
2607
2345
|
}, z.core.$strip>, z.ZodObject<{
|
|
2608
2346
|
region: z.ZodEnum<{
|
|
2609
|
-
"africa-south1": "africa-south1";
|
|
2610
|
-
"asia-east1": "asia-east1";
|
|
2611
|
-
"asia-east2": "asia-east2";
|
|
2612
|
-
"asia-northeast1": "asia-northeast1";
|
|
2613
|
-
"asia-northeast2": "asia-northeast2";
|
|
2614
|
-
"asia-northeast3": "asia-northeast3";
|
|
2615
|
-
"asia-south1": "asia-south1";
|
|
2616
|
-
"asia-southeast1": "asia-southeast1";
|
|
2617
|
-
"asia-southeast2": "asia-southeast2";
|
|
2618
|
-
"australia-southeast1": "australia-southeast1";
|
|
2619
|
-
"europe-north1": "europe-north1";
|
|
2620
|
-
"europe-west1": "europe-west1";
|
|
2621
2347
|
"europe-west2": "europe-west2";
|
|
2622
|
-
"europe-west3": "europe-west3";
|
|
2623
|
-
"europe-west4": "europe-west4";
|
|
2624
|
-
"europe-west6": "europe-west6";
|
|
2625
|
-
"northamerica-northeast1": "northamerica-northeast1";
|
|
2626
|
-
"northamerica-northeast2": "northamerica-northeast2";
|
|
2627
|
-
"southamerica-east1": "southamerica-east1";
|
|
2628
|
-
"southamerica-west1": "southamerica-west1";
|
|
2629
|
-
"us-central1": "us-central1";
|
|
2630
|
-
"us-east1": "us-east1";
|
|
2631
|
-
"us-east4": "us-east4";
|
|
2632
|
-
"us-west1": "us-west1";
|
|
2633
|
-
"us-west2": "us-west2";
|
|
2634
|
-
"us-west3": "us-west3";
|
|
2635
|
-
"us-west4": "us-west4";
|
|
2636
2348
|
}>;
|
|
2637
2349
|
port: z.ZodInt;
|
|
2638
2350
|
cpu: z.ZodEnum<{
|
|
2639
2351
|
1: "1";
|
|
2640
2352
|
2: "2";
|
|
2641
|
-
4: "4";
|
|
2642
|
-
6: "6";
|
|
2643
|
-
8: "8";
|
|
2644
|
-
16: "16";
|
|
2645
|
-
32: "32";
|
|
2646
2353
|
}>;
|
|
2647
2354
|
memory: z.ZodEnum<{
|
|
2648
2355
|
"512Mi": "512Mi";
|
|
2649
2356
|
"1Gi": "1Gi";
|
|
2650
2357
|
"2Gi": "2Gi";
|
|
2651
|
-
"4Gi": "4Gi";
|
|
2652
|
-
"8Gi": "8Gi";
|
|
2653
|
-
"16Gi": "16Gi";
|
|
2654
|
-
"32Gi": "32Gi";
|
|
2655
2358
|
}>;
|
|
2656
2359
|
ingress: z.ZodEnum<{
|
|
2657
2360
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
@@ -2762,52 +2465,17 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
2762
2465
|
typ: z.ZodLiteral<"container">;
|
|
2763
2466
|
}, z.core.$strip>, z.ZodObject<{
|
|
2764
2467
|
region: z.ZodEnum<{
|
|
2765
|
-
"africa-south1": "africa-south1";
|
|
2766
|
-
"asia-east1": "asia-east1";
|
|
2767
|
-
"asia-east2": "asia-east2";
|
|
2768
|
-
"asia-northeast1": "asia-northeast1";
|
|
2769
|
-
"asia-northeast2": "asia-northeast2";
|
|
2770
|
-
"asia-northeast3": "asia-northeast3";
|
|
2771
|
-
"asia-south1": "asia-south1";
|
|
2772
|
-
"asia-southeast1": "asia-southeast1";
|
|
2773
|
-
"asia-southeast2": "asia-southeast2";
|
|
2774
|
-
"australia-southeast1": "australia-southeast1";
|
|
2775
|
-
"europe-north1": "europe-north1";
|
|
2776
|
-
"europe-west1": "europe-west1";
|
|
2777
2468
|
"europe-west2": "europe-west2";
|
|
2778
|
-
"europe-west3": "europe-west3";
|
|
2779
|
-
"europe-west4": "europe-west4";
|
|
2780
|
-
"europe-west6": "europe-west6";
|
|
2781
|
-
"northamerica-northeast1": "northamerica-northeast1";
|
|
2782
|
-
"northamerica-northeast2": "northamerica-northeast2";
|
|
2783
|
-
"southamerica-east1": "southamerica-east1";
|
|
2784
|
-
"southamerica-west1": "southamerica-west1";
|
|
2785
|
-
"us-central1": "us-central1";
|
|
2786
|
-
"us-east1": "us-east1";
|
|
2787
|
-
"us-east4": "us-east4";
|
|
2788
|
-
"us-west1": "us-west1";
|
|
2789
|
-
"us-west2": "us-west2";
|
|
2790
|
-
"us-west3": "us-west3";
|
|
2791
|
-
"us-west4": "us-west4";
|
|
2792
2469
|
}>;
|
|
2793
2470
|
port: z.ZodInt;
|
|
2794
2471
|
cpu: z.ZodEnum<{
|
|
2795
2472
|
1: "1";
|
|
2796
2473
|
2: "2";
|
|
2797
|
-
4: "4";
|
|
2798
|
-
6: "6";
|
|
2799
|
-
8: "8";
|
|
2800
|
-
16: "16";
|
|
2801
|
-
32: "32";
|
|
2802
2474
|
}>;
|
|
2803
2475
|
memory: z.ZodEnum<{
|
|
2804
2476
|
"512Mi": "512Mi";
|
|
2805
2477
|
"1Gi": "1Gi";
|
|
2806
2478
|
"2Gi": "2Gi";
|
|
2807
|
-
"4Gi": "4Gi";
|
|
2808
|
-
"8Gi": "8Gi";
|
|
2809
|
-
"16Gi": "16Gi";
|
|
2810
|
-
"32Gi": "32Gi";
|
|
2811
2479
|
}>;
|
|
2812
2480
|
ingress: z.ZodEnum<{
|
|
2813
2481
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
package/dist/sdk/zod.gen.js
CHANGED
|
@@ -102,6 +102,10 @@ export const zOnboardingAnalytics = z.object({
|
|
|
102
102
|
export const zSpaceOrgCodeResponse = z.object({
|
|
103
103
|
orgCode: z.string()
|
|
104
104
|
});
|
|
105
|
+
export const zSpaceStats = z.object({
|
|
106
|
+
active_services: z.int(),
|
|
107
|
+
deployments_this_month: z.int()
|
|
108
|
+
});
|
|
105
109
|
export const zEnvironmentOverview = z.object({
|
|
106
110
|
id: z.uuid(),
|
|
107
111
|
name: z.string(),
|
|
@@ -363,51 +367,16 @@ export const zSchedulerNodeProps = z.object({
|
|
|
363
367
|
paused: z.boolean()
|
|
364
368
|
});
|
|
365
369
|
export const zRegion = z.enum([
|
|
366
|
-
'
|
|
367
|
-
'asia-east1',
|
|
368
|
-
'asia-east2',
|
|
369
|
-
'asia-northeast1',
|
|
370
|
-
'asia-northeast2',
|
|
371
|
-
'asia-northeast3',
|
|
372
|
-
'asia-south1',
|
|
373
|
-
'asia-southeast1',
|
|
374
|
-
'asia-southeast2',
|
|
375
|
-
'australia-southeast1',
|
|
376
|
-
'europe-north1',
|
|
377
|
-
'europe-west1',
|
|
378
|
-
'europe-west2',
|
|
379
|
-
'europe-west3',
|
|
380
|
-
'europe-west4',
|
|
381
|
-
'europe-west6',
|
|
382
|
-
'northamerica-northeast1',
|
|
383
|
-
'northamerica-northeast2',
|
|
384
|
-
'southamerica-east1',
|
|
385
|
-
'southamerica-west1',
|
|
386
|
-
'us-central1',
|
|
387
|
-
'us-east1',
|
|
388
|
-
'us-east4',
|
|
389
|
-
'us-west1',
|
|
390
|
-
'us-west2',
|
|
391
|
-
'us-west3',
|
|
392
|
-
'us-west4'
|
|
370
|
+
'europe-west2'
|
|
393
371
|
]);
|
|
394
372
|
export const zCpu = z.enum([
|
|
395
373
|
'1',
|
|
396
|
-
'2'
|
|
397
|
-
'4',
|
|
398
|
-
'6',
|
|
399
|
-
'8',
|
|
400
|
-
'16',
|
|
401
|
-
'32'
|
|
374
|
+
'2'
|
|
402
375
|
]);
|
|
403
376
|
export const zMemory = z.enum([
|
|
404
377
|
'512Mi',
|
|
405
378
|
'1Gi',
|
|
406
|
-
'2Gi'
|
|
407
|
-
'4Gi',
|
|
408
|
-
'8Gi',
|
|
409
|
-
'16Gi',
|
|
410
|
-
'32Gi'
|
|
379
|
+
'2Gi'
|
|
411
380
|
]);
|
|
412
381
|
export const zIngress = z.enum([
|
|
413
382
|
'INGRESS_TRAFFIC_ALL',
|
|
@@ -889,6 +858,17 @@ export const zGetSpaceOrgCodeData = z.object({
|
|
|
889
858
|
* The organisation code for this space.
|
|
890
859
|
*/
|
|
891
860
|
export const zGetSpaceOrgCodeResponse = zSpaceOrgCodeResponse;
|
|
861
|
+
export const zGetSpaceStatsData = z.object({
|
|
862
|
+
body: z.optional(z.never()),
|
|
863
|
+
path: z.object({
|
|
864
|
+
spaceHandle: z.string()
|
|
865
|
+
}),
|
|
866
|
+
query: z.optional(z.never())
|
|
867
|
+
});
|
|
868
|
+
/**
|
|
869
|
+
* Active service count and deployment count for the current month.
|
|
870
|
+
*/
|
|
871
|
+
export const zGetSpaceStatsResponse = zSpaceStats;
|
|
892
872
|
export const zFetchKindeOrganisationBillingAgreementsData = z.object({
|
|
893
873
|
body: z.optional(z.never()),
|
|
894
874
|
path: 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, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, UpdateUsernameData, UpdateUsernameResponses, CreateUsernameData, CreateUsernameResponses, GetUserProfileData, UpdateUserProfileData, UpdateUserProfileResponses, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, ListUserSpacesData, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsResponses, CreateSpaceData, CreateSpaceResponses, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, FetchKindeOrganisationBillingAgreementsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, CreateEnvironmentData, CreateEnvironmentResponses, GetEnvironmentOverviewData, GetEnvironmentVersionsData, DeleteEnvironmentVariableData, DeleteEnvironmentVariableResponses, GetEnvironmentVariablesData, UpdateEnvironmentVariableData, UpdateEnvironmentVariableResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableResponses, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, VersionStatusData, RequestSignedUploadUrlData, RequestSignedUploadUrlResponses, RecordCloudUsageData, RecordCloudUsageResponses, GetBillingPlanData, UpdateBillingPlanData, UpdateBillingPlanResponses, CreateSetupIntentData, CreateSetupIntentResponses, ListPaymentMethodsData, RemovePaymentMethodData, RemovePaymentMethodResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodResponses, GetBillingUsageData, FetchBillingPricesData, ListBillingInvoicesData } from "../../sdk/types.gen";
|
|
3
|
+
import { GetServiceHealthData, FetchGraphM2mData, UpdateGraphM2mData, UpdateGraphM2mResponses, FetchNodeM2mData, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, UpdateUsernameData, UpdateUsernameResponses, CreateUsernameData, CreateUsernameResponses, GetUserProfileData, UpdateUserProfileData, UpdateUserProfileResponses, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, ListUserSpacesData, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsResponses, CreateSpaceData, CreateSpaceResponses, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, GetSpaceStatsData, FetchKindeOrganisationBillingAgreementsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, CreateEnvironmentData, CreateEnvironmentResponses, GetEnvironmentOverviewData, GetEnvironmentVersionsData, DeleteEnvironmentVariableData, DeleteEnvironmentVariableResponses, GetEnvironmentVariablesData, UpdateEnvironmentVariableData, UpdateEnvironmentVariableResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableResponses, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, VersionStatusData, RequestSignedUploadUrlData, RequestSignedUploadUrlResponses, RecordCloudUsageData, RecordCloudUsageResponses, GetBillingPlanData, UpdateBillingPlanData, UpdateBillingPlanResponses, CreateSetupIntentData, CreateSetupIntentResponses, ListPaymentMethodsData, RemovePaymentMethodData, RemovePaymentMethodResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodResponses, GetBillingUsageData, FetchBillingPricesData, ListBillingInvoicesData } 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>;
|
|
@@ -95,6 +95,9 @@ export declare const useGetSpaceOverview: (options: Omit<GetSpaceOverviewData, "
|
|
|
95
95
|
export declare const useGetSpaceOrgCode: (options: Omit<GetSpaceOrgCodeData, "url"> & {
|
|
96
96
|
enabled?: boolean;
|
|
97
97
|
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").SpaceOrgCodeResponse | undefined, Error>;
|
|
98
|
+
export declare const useGetSpaceStats: (options: Omit<GetSpaceStatsData, "url"> & {
|
|
99
|
+
enabled?: boolean;
|
|
100
|
+
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").SpaceStats | undefined, Error>;
|
|
98
101
|
export declare const useFetchKindeOrganisationBillingAgreements: (options: Omit<FetchKindeOrganisationBillingAgreementsData, "url"> & {
|
|
99
102
|
enabled?: boolean;
|
|
100
103
|
}) => import("@tanstack/react-query").UseQueryResult<unknown, 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, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, listUserSpaces, recordOnboardingAnalytics, createSpace, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, fetchKindeOrganisationBillingAgreements, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, listSpaceMembers, listSpaceMemberRoles, leaveSpace, createProject, getProjectOverview, createEnvironment, getEnvironmentOverview, getEnvironmentVersions, deleteEnvironmentVariable, getEnvironmentVariables, updateEnvironmentVariable, createEnvironmentVariable, getGraphOverview, updateGraphState, deployVersion, versionStatus, requestSignedUploadUrl, recordCloudUsage, getBillingPlan, updateBillingPlan, createSetupIntent, listPaymentMethods, removePaymentMethod, setDefaultPaymentMethod, getBillingUsage, fetchBillingPrices, listBillingInvoices } from "../../sdk/sdk.gen";
|
|
5
|
+
import { getServiceHealth, fetchGraphM2M, updateGraphM2M, fetchNodeM2M, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, listUserSpaces, recordOnboardingAnalytics, createSpace, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, getSpaceStats, fetchKindeOrganisationBillingAgreements, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, listSpaceMembers, listSpaceMemberRoles, leaveSpace, createProject, getProjectOverview, createEnvironment, getEnvironmentOverview, getEnvironmentVersions, deleteEnvironmentVariable, getEnvironmentVariables, updateEnvironmentVariable, createEnvironmentVariable, getGraphOverview, updateGraphState, deployVersion, versionStatus, requestSignedUploadUrl, recordCloudUsage, getBillingPlan, updateBillingPlan, createSetupIntent, listPaymentMethods, removePaymentMethod, setDefaultPaymentMethod, getBillingUsage, fetchBillingPrices, listBillingInvoices } from "../../sdk/sdk.gen";
|
|
6
6
|
export const useGetServiceHealth = (options) => {
|
|
7
7
|
const token = useToken();
|
|
8
8
|
let { enabled, ...rest } = options || { enabled: true };
|
|
@@ -485,6 +485,27 @@ export const useGetSpaceOrgCode = (options) => {
|
|
|
485
485
|
staleTime: 600000
|
|
486
486
|
});
|
|
487
487
|
};
|
|
488
|
+
export const useGetSpaceStats = (options) => {
|
|
489
|
+
const token = useToken();
|
|
490
|
+
let { enabled, ...rest } = options || { enabled: true };
|
|
491
|
+
const opts = { throwOnError: true, url: "/auth/{spaceHandle}/stats" };
|
|
492
|
+
const funcer = async () => {
|
|
493
|
+
const auth = isPromise(token) ? (await token) || "" : token || "";
|
|
494
|
+
if (isPromise(token) && !token)
|
|
495
|
+
return;
|
|
496
|
+
const res = await getSpaceStats({ ...opts, ...rest, auth });
|
|
497
|
+
return res.data;
|
|
498
|
+
};
|
|
499
|
+
if (!token)
|
|
500
|
+
enabled = false;
|
|
501
|
+
return useQuery({
|
|
502
|
+
queryKey: [options?.path?.spaceHandle, "stats", options.query ?? {}],
|
|
503
|
+
queryFn: funcer,
|
|
504
|
+
enabled,
|
|
505
|
+
retry: false,
|
|
506
|
+
staleTime: 600000
|
|
507
|
+
});
|
|
508
|
+
};
|
|
488
509
|
export const useFetchKindeOrganisationBillingAgreements = (options) => {
|
|
489
510
|
const token = useToken();
|
|
490
511
|
let { enabled, ...rest } = options || { enabled: true };
|