shoal-web-sdk 1.0.12 → 1.0.14
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 +64 -26
- package/dist/sdk/@tanstack/react-query.gen.js +76 -36
- package/dist/sdk/sdk.gen.d.ts +21 -10
- package/dist/sdk/sdk.gen.js +55 -22
- package/dist/sdk/types.gen.d.ts +183 -72
- package/dist/sdk/zod.gen.d.ts +263 -49
- package/dist/sdk/zod.gen.js +68 -33
- package/dist/tanstack-codegen/generated/generated.d.ts +32 -18
- package/dist/tanstack-codegen/generated/generated.js +88 -27
- 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 { CheckSubdomainUniquenessData, CreateEnvironmentData, CreateEnvironmentError, CreateEnvironmentResponse, CreateEnvironmentVariableData, CreateEnvironmentVariableError, CreateFeatureRequestData, CreateFeatureRequestError, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSetupIntentData, CreateSetupIntentError, CreateSetupIntentResponse, CreateSpaceData, CreateSpaceError, CreateSpaceInviteData, CreateSpaceInviteError, CreateSpaceInviteResponse, CreateSpaceResponse,
|
|
3
|
+
import type { CheckSubdomainUniquenessData, CreateBlueprintData, CreateBlueprintError, CreateBlueprintResponse, CreateEnvironmentData, CreateEnvironmentError, CreateEnvironmentResponse, CreateEnvironmentVariableData, CreateEnvironmentVariableError, CreateFeatureRequestData, CreateFeatureRequestError, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSetupIntentData, CreateSetupIntentError, CreateSetupIntentResponse, CreateSpaceData, CreateSpaceError, CreateSpaceInviteData, CreateSpaceInviteError, CreateSpaceInviteResponse, CreateSpaceResponse, CreateUsernameData, CreateUsernameError, DeleteAccountIdentityData, DeleteAccountIdentityError, DeleteAccountIdentityResponse, DeleteBlueprintData, DeleteBlueprintError, DeleteBlueprintResponse, DeleteEnvironmentVariableData, DeleteEnvironmentVariableError, DeleteEnvironmentVariableResponse, DeployVersionData, DeployVersionError, FetchBillingPricesData, FetchGraphM2mData, FetchKindeOrganisationBillingAgreementsData, FetchNodeM2mData, GetBillingPlanData, GetBillingUsageData, GetBlueprintData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetEnvironmentVariablesData, GetEnvironmentVersionsData, GetGraphOverviewData, GetProjectOverviewData, GetPublicInviteData, GetServiceHealthData, GetSpaceInvitesData, GetSpaceOrgCodeData, GetSpaceOverviewData, GetSpacePropertiesData, GetSpaceStatsData, GetUserIdentitiesData, GetUserInvitesData, GetUserProfileData, GetVersionData, GetVersionM2mData, ImportBlueprintData, ImportBlueprintError, JoinSpaceData, JoinSpaceError, LeaveSpaceData, LeaveSpaceError, ListBillingInvoicesData, ListInstallationBranchesData, ListInstallationRepositoriesData, ListPaymentMethodsData, ListSpaceMemberRolesData, ListSpaceMembersData, ListUserInstallationsData, ListUserSpacesData, PreviewBlueprintData, RecordCloudUsageData, RecordCloudUsageError, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsError, RejectSpaceInviteData, RejectSpaceInviteError, RejectSpaceInviteResponse, RemovePaymentMethodData, RemovePaymentMethodError, RemovePaymentMethodResponse, RequestAccountPasswordResetData, RequestAccountPasswordResetError, RequestSignedDownloadUrlData, RequestSignedUploadUrlData, RequestSignedUploadUrlError, RequestSignedUploadUrlResponse, RevokeSpaceInviteData, RevokeSpaceInviteError, RevokeSpaceInviteResponse, SetDefaultPaymentMethodData, SetDefaultPaymentMethodError, SetDefaultPaymentMethodResponse, SetSpacePropertyData, SetSpacePropertyError, UpdateBillingPlanData, UpdateBillingPlanError, UpdateBlueprintData, UpdateBlueprintError, UpdateBlueprintResponse, UpdateConnectedAppTokenData, UpdateConnectedAppTokenError, UpdateDeploymentStatusM2mData, UpdateDeploymentStatusM2mError, UpdateEnvironmentVariableData, UpdateEnvironmentVariableError, UpdateGraphM2mData, UpdateGraphM2mError, UpdateGraphStateData, UpdateGraphStateError, UpdateNodeM2mData, UpdateNodeM2mError, UpdateUsernameData, UpdateUsernameError, UpdateUserProfileData, UpdateUserProfileError, ViewBlueprintsData } from '../types.gen';
|
|
4
4
|
export type QueryKey<TOptions extends Options> = [
|
|
5
5
|
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
|
6
6
|
_id: string;
|
|
@@ -450,84 +450,114 @@ export declare const createFeatureRequestMutation: (options?: Partial<Options<Cr
|
|
|
450
450
|
* Record analytics data captured during the onboarding flow.
|
|
451
451
|
*/
|
|
452
452
|
export declare const recordOnboardingAnalyticsMutation: (options?: Partial<Options<RecordOnboardingAnalyticsData>>) => UseMutationOptions<unknown, RecordOnboardingAnalyticsError, Options<RecordOnboardingAnalyticsData>>;
|
|
453
|
-
export declare const
|
|
453
|
+
export declare const previewBlueprintQueryKey: (options: Options<PreviewBlueprintData>) => [Pick<Options<PreviewBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
454
454
|
_id: string;
|
|
455
455
|
_infinite?: boolean;
|
|
456
456
|
tags?: ReadonlyArray<string>;
|
|
457
457
|
}];
|
|
458
|
-
|
|
458
|
+
/**
|
|
459
|
+
* Preview blueprints
|
|
460
|
+
*/
|
|
461
|
+
export declare const previewBlueprintOptions: (options: Options<PreviewBlueprintData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Nodes, Error, import("../types.gen").Nodes, [Pick<Options<PreviewBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
462
|
+
_id: string;
|
|
463
|
+
_infinite?: boolean;
|
|
464
|
+
tags?: ReadonlyArray<string>;
|
|
465
|
+
}]>, "queryFn"> & {
|
|
466
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Nodes, [Pick<Options<PreviewBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
467
|
+
_id: string;
|
|
468
|
+
_infinite?: boolean;
|
|
469
|
+
tags?: ReadonlyArray<string>;
|
|
470
|
+
}], never> | undefined;
|
|
471
|
+
} & {
|
|
472
|
+
queryKey: [Pick<Options<PreviewBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
473
|
+
_id: string;
|
|
474
|
+
_infinite?: boolean;
|
|
475
|
+
tags?: ReadonlyArray<string>;
|
|
476
|
+
}] & {
|
|
477
|
+
[dataTagSymbol]: import("../types.gen").Nodes;
|
|
478
|
+
[dataTagErrorSymbol]: Error;
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
export declare const viewBlueprintsQueryKey: (options?: Options<ViewBlueprintsData>) => [Pick<Options<ViewBlueprintsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
482
|
+
_id: string;
|
|
483
|
+
_infinite?: boolean;
|
|
484
|
+
tags?: ReadonlyArray<string>;
|
|
485
|
+
}];
|
|
486
|
+
/**
|
|
487
|
+
* View all blueprints
|
|
488
|
+
*/
|
|
489
|
+
export declare const viewBlueprintsOptions: (options?: Options<ViewBlueprintsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").PaginatedBlueprints, Error, import("../types.gen").PaginatedBlueprints, [Pick<Options<ViewBlueprintsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
459
490
|
_id: string;
|
|
460
491
|
_infinite?: boolean;
|
|
461
492
|
tags?: ReadonlyArray<string>;
|
|
462
493
|
}]>, "queryFn"> & {
|
|
463
|
-
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").
|
|
494
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").PaginatedBlueprints, [Pick<Options<ViewBlueprintsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
464
495
|
_id: string;
|
|
465
496
|
_infinite?: boolean;
|
|
466
497
|
tags?: ReadonlyArray<string>;
|
|
467
498
|
}], never> | undefined;
|
|
468
499
|
} & {
|
|
469
|
-
queryKey: [Pick<Options<
|
|
500
|
+
queryKey: [Pick<Options<ViewBlueprintsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
470
501
|
_id: string;
|
|
471
502
|
_infinite?: boolean;
|
|
472
503
|
tags?: ReadonlyArray<string>;
|
|
473
504
|
}] & {
|
|
474
|
-
[dataTagSymbol]: import("../types.gen").
|
|
505
|
+
[dataTagSymbol]: import("../types.gen").PaginatedBlueprints;
|
|
475
506
|
[dataTagErrorSymbol]: Error;
|
|
476
507
|
};
|
|
477
508
|
};
|
|
478
|
-
export declare const
|
|
479
|
-
|
|
509
|
+
export declare const viewBlueprintsInfiniteQueryKey: (options?: Options<ViewBlueprintsData>) => QueryKey<Options<ViewBlueprintsData>>;
|
|
510
|
+
/**
|
|
511
|
+
* View all blueprints
|
|
512
|
+
*/
|
|
513
|
+
export declare const viewBlueprintsInfiniteOptions: (options?: Options<ViewBlueprintsData>) => import("@tanstack/react-query").UseInfiniteQueryOptions<import("../types.gen").PaginatedBlueprints, import("../types.gen").ErrorResponse, InfiniteData<import("../types.gen").PaginatedBlueprints, unknown>, QueryKey<Options<ViewBlueprintsData>>, number | Pick<Pick<Options<ViewBlueprintsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
480
514
|
_id: string;
|
|
481
515
|
_infinite?: boolean;
|
|
482
516
|
tags?: ReadonlyArray<string>;
|
|
483
517
|
}, "query" | "body" | "headers" | "path">> & {
|
|
484
|
-
initialData: InfiniteData<import("../types.gen").
|
|
518
|
+
initialData: InfiniteData<import("../types.gen").PaginatedBlueprints, number | Pick<Pick<Options<ViewBlueprintsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
485
519
|
_id: string;
|
|
486
520
|
_infinite?: boolean;
|
|
487
521
|
tags?: ReadonlyArray<string>;
|
|
488
|
-
}, "query" | "body" | "headers" | "path">> | (() => InfiniteData<import("../types.gen").
|
|
522
|
+
}, "query" | "body" | "headers" | "path">> | (() => InfiniteData<import("../types.gen").PaginatedBlueprints, number | Pick<Pick<Options<ViewBlueprintsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
489
523
|
_id: string;
|
|
490
524
|
_infinite?: boolean;
|
|
491
525
|
tags?: ReadonlyArray<string>;
|
|
492
526
|
}, "query" | "body" | "headers" | "path">>) | undefined;
|
|
493
527
|
} & {
|
|
494
|
-
queryKey: QueryKey<Options<
|
|
495
|
-
[dataTagSymbol]: InfiniteData<import("../types.gen").
|
|
528
|
+
queryKey: QueryKey<Options<ViewBlueprintsData>> & {
|
|
529
|
+
[dataTagSymbol]: InfiniteData<import("../types.gen").PaginatedBlueprints, unknown>;
|
|
496
530
|
[dataTagErrorSymbol]: import("../types.gen").ErrorResponse;
|
|
497
531
|
};
|
|
498
532
|
};
|
|
499
|
-
export declare const
|
|
533
|
+
export declare const getBlueprintQueryKey: (options: Options<GetBlueprintData>) => [Pick<Options<GetBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
500
534
|
_id: string;
|
|
501
535
|
_infinite?: boolean;
|
|
502
536
|
tags?: ReadonlyArray<string>;
|
|
503
537
|
}];
|
|
504
538
|
/**
|
|
505
|
-
* Retrieve a
|
|
539
|
+
* Retrieve a blueprint record.
|
|
506
540
|
*/
|
|
507
|
-
export declare const
|
|
541
|
+
export declare const getBlueprintOptions: (options: Options<GetBlueprintData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Blueprint, Error, import("../types.gen").Blueprint, [Pick<Options<GetBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
508
542
|
_id: string;
|
|
509
543
|
_infinite?: boolean;
|
|
510
544
|
tags?: ReadonlyArray<string>;
|
|
511
545
|
}]>, "queryFn"> & {
|
|
512
|
-
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").
|
|
546
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Blueprint, [Pick<Options<GetBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
513
547
|
_id: string;
|
|
514
548
|
_infinite?: boolean;
|
|
515
549
|
tags?: ReadonlyArray<string>;
|
|
516
550
|
}], never> | undefined;
|
|
517
551
|
} & {
|
|
518
|
-
queryKey: [Pick<Options<
|
|
552
|
+
queryKey: [Pick<Options<GetBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
519
553
|
_id: string;
|
|
520
554
|
_infinite?: boolean;
|
|
521
555
|
tags?: ReadonlyArray<string>;
|
|
522
556
|
}] & {
|
|
523
|
-
[dataTagSymbol]: import("../types.gen").
|
|
557
|
+
[dataTagSymbol]: import("../types.gen").Blueprint;
|
|
524
558
|
[dataTagErrorSymbol]: Error;
|
|
525
559
|
};
|
|
526
560
|
};
|
|
527
|
-
/**
|
|
528
|
-
* Update a template record.
|
|
529
|
-
*/
|
|
530
|
-
export declare const updateTemplateMutation: (options?: Partial<Options<UpdateTemplateData>>) => UseMutationOptions<UpdateTemplateResponse, UpdateTemplateError, Options<UpdateTemplateData>>;
|
|
531
561
|
/**
|
|
532
562
|
* Create a space.
|
|
533
563
|
*/
|
|
@@ -1033,13 +1063,17 @@ export declare const updateEnvironmentVariableMutation: (options?: Partial<Optio
|
|
|
1033
1063
|
*/
|
|
1034
1064
|
export declare const createEnvironmentVariableMutation: (options?: Partial<Options<CreateEnvironmentVariableData>>) => UseMutationOptions<unknown, CreateEnvironmentVariableError, Options<CreateEnvironmentVariableData>>;
|
|
1035
1065
|
/**
|
|
1036
|
-
* Delete a
|
|
1066
|
+
* Delete a blueprint record.
|
|
1037
1067
|
*/
|
|
1038
|
-
export declare const
|
|
1068
|
+
export declare const deleteBlueprintMutation: (options?: Partial<Options<DeleteBlueprintData>>) => UseMutationOptions<DeleteBlueprintResponse, DeleteBlueprintError, Options<DeleteBlueprintData>>;
|
|
1039
1069
|
/**
|
|
1040
|
-
*
|
|
1070
|
+
* Update a blueprint record.
|
|
1041
1071
|
*/
|
|
1042
|
-
export declare const
|
|
1072
|
+
export declare const updateBlueprintMutation: (options?: Partial<Options<UpdateBlueprintData>>) => UseMutationOptions<UpdateBlueprintResponse, UpdateBlueprintError, Options<UpdateBlueprintData>>;
|
|
1073
|
+
/**
|
|
1074
|
+
* Create a blueprint. A blueprint references the HEAD version of an environment.
|
|
1075
|
+
*/
|
|
1076
|
+
export declare const createBlueprintMutation: (options?: Partial<Options<CreateBlueprintData>>) => UseMutationOptions<CreateBlueprintResponse, CreateBlueprintError, Options<CreateBlueprintData>>;
|
|
1043
1077
|
export declare const getVersionQueryKey: (options: Options<GetVersionData>) => [Pick<Options<GetVersionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1044
1078
|
_id: string;
|
|
1045
1079
|
_infinite?: boolean;
|
|
@@ -1068,6 +1102,10 @@ export declare const getVersionOptions: (options: Options<GetVersionData>) => im
|
|
|
1068
1102
|
[dataTagErrorSymbol]: Error;
|
|
1069
1103
|
};
|
|
1070
1104
|
};
|
|
1105
|
+
/**
|
|
1106
|
+
* Import a blueprint into an environment. This does not overwrite existing content. Please create an environment before importing.
|
|
1107
|
+
*/
|
|
1108
|
+
export declare const importBlueprintMutation: (options?: Partial<Options<ImportBlueprintData>>) => UseMutationOptions<unknown, ImportBlueprintError, Options<ImportBlueprintData>>;
|
|
1071
1109
|
export declare const getGraphOverviewQueryKey: (options: Options<GetGraphOverviewData>) => [Pick<Options<GetGraphOverviewData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1072
1110
|
_id: string;
|
|
1073
1111
|
_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 { checkSubdomainUniqueness, createEnvironment, createEnvironmentVariable, createFeatureRequest, createProject, createSetupIntent, createSpace, createSpaceInvite,
|
|
4
|
+
import { checkSubdomainUniqueness, createBlueprint, createEnvironment, createEnvironmentVariable, createFeatureRequest, createProject, createSetupIntent, createSpace, createSpaceInvite, createUsername, deleteAccountIdentity, deleteBlueprint, deleteEnvironmentVariable, deployVersion, fetchBillingPrices, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, fetchNodeM2M, getBillingPlan, getBillingUsage, getBlueprint, getConnectedAppUrl, getEnvironmentOverview, getEnvironmentVariables, getEnvironmentVersions, getGraphOverview, getProjectOverview, getPublicInvite, getServiceHealth, getSpaceInvites, getSpaceOrgCode, getSpaceOverview, getSpaceProperties, getSpaceStats, getUserIdentities, getUserInvites, getUserProfile, getVersion, getVersionM2M, importBlueprint, joinSpace, leaveSpace, listBillingInvoices, listInstallationBranches, listInstallationRepositories, listPaymentMethods, listSpaceMemberRoles, listSpaceMembers, listUserInstallations, listUserSpaces, previewBlueprint, recordCloudUsage, recordOnboardingAnalytics, rejectSpaceInvite, removePaymentMethod, requestAccountPasswordReset, requestSignedDownloadUrl, requestSignedUploadUrl, revokeSpaceInvite, setDefaultPaymentMethod, setSpaceProperty, updateBillingPlan, updateBlueprint, updateConnectedAppToken, updateDeploymentStatusM2M, updateEnvironmentVariable, updateGraphM2M, updateGraphState, updateNodeM2M, updateUsername, updateUserProfile, viewBlueprints } 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) {
|
|
@@ -532,11 +532,32 @@ export const recordOnboardingAnalyticsMutation = (options) => {
|
|
|
532
532
|
};
|
|
533
533
|
return mutationOptions;
|
|
534
534
|
};
|
|
535
|
-
export const
|
|
536
|
-
|
|
535
|
+
export const previewBlueprintQueryKey = (options) => createQueryKey('previewBlueprint', options);
|
|
536
|
+
/**
|
|
537
|
+
* Preview blueprints
|
|
538
|
+
*/
|
|
539
|
+
export const previewBlueprintOptions = (options) => {
|
|
540
|
+
return queryOptions({
|
|
541
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
542
|
+
const { data } = await previewBlueprint({
|
|
543
|
+
...options,
|
|
544
|
+
...queryKey[0],
|
|
545
|
+
signal,
|
|
546
|
+
throwOnError: true
|
|
547
|
+
});
|
|
548
|
+
return data;
|
|
549
|
+
},
|
|
550
|
+
queryKey: previewBlueprintQueryKey(options)
|
|
551
|
+
});
|
|
552
|
+
};
|
|
553
|
+
export const viewBlueprintsQueryKey = (options) => createQueryKey('viewBlueprints', options);
|
|
554
|
+
/**
|
|
555
|
+
* View all blueprints
|
|
556
|
+
*/
|
|
557
|
+
export const viewBlueprintsOptions = (options) => {
|
|
537
558
|
return queryOptions({
|
|
538
559
|
queryFn: async ({ queryKey, signal }) => {
|
|
539
|
-
const { data } = await
|
|
560
|
+
const { data } = await viewBlueprints({
|
|
540
561
|
...options,
|
|
541
562
|
...queryKey[0],
|
|
542
563
|
signal,
|
|
@@ -544,11 +565,14 @@ export const viewTemplatesOptions = (options) => {
|
|
|
544
565
|
});
|
|
545
566
|
return data;
|
|
546
567
|
},
|
|
547
|
-
queryKey:
|
|
568
|
+
queryKey: viewBlueprintsQueryKey(options)
|
|
548
569
|
});
|
|
549
570
|
};
|
|
550
|
-
export const
|
|
551
|
-
|
|
571
|
+
export const viewBlueprintsInfiniteQueryKey = (options) => createQueryKey('viewBlueprints', options, true);
|
|
572
|
+
/**
|
|
573
|
+
* View all blueprints
|
|
574
|
+
*/
|
|
575
|
+
export const viewBlueprintsInfiniteOptions = (options) => {
|
|
552
576
|
return infiniteQueryOptions(
|
|
553
577
|
// @ts-ignore
|
|
554
578
|
{
|
|
@@ -560,7 +584,7 @@ export const viewTemplatesInfiniteOptions = (options) => {
|
|
|
560
584
|
}
|
|
561
585
|
};
|
|
562
586
|
const params = createInfiniteParams(queryKey, page);
|
|
563
|
-
const { data } = await
|
|
587
|
+
const { data } = await viewBlueprints({
|
|
564
588
|
...options,
|
|
565
589
|
...params,
|
|
566
590
|
signal,
|
|
@@ -568,17 +592,17 @@ export const viewTemplatesInfiniteOptions = (options) => {
|
|
|
568
592
|
});
|
|
569
593
|
return data;
|
|
570
594
|
},
|
|
571
|
-
queryKey:
|
|
595
|
+
queryKey: viewBlueprintsInfiniteQueryKey(options)
|
|
572
596
|
});
|
|
573
597
|
};
|
|
574
|
-
export const
|
|
598
|
+
export const getBlueprintQueryKey = (options) => createQueryKey('getBlueprint', options);
|
|
575
599
|
/**
|
|
576
|
-
* Retrieve a
|
|
600
|
+
* Retrieve a blueprint record.
|
|
577
601
|
*/
|
|
578
|
-
export const
|
|
602
|
+
export const getBlueprintOptions = (options) => {
|
|
579
603
|
return queryOptions({
|
|
580
604
|
queryFn: async ({ queryKey, signal }) => {
|
|
581
|
-
const { data } = await
|
|
605
|
+
const { data } = await getBlueprint({
|
|
582
606
|
...options,
|
|
583
607
|
...queryKey[0],
|
|
584
608
|
signal,
|
|
@@ -586,25 +610,9 @@ export const getTemplateOptions = (options) => {
|
|
|
586
610
|
});
|
|
587
611
|
return data;
|
|
588
612
|
},
|
|
589
|
-
queryKey:
|
|
613
|
+
queryKey: getBlueprintQueryKey(options)
|
|
590
614
|
});
|
|
591
615
|
};
|
|
592
|
-
/**
|
|
593
|
-
* Update a template record.
|
|
594
|
-
*/
|
|
595
|
-
export const updateTemplateMutation = (options) => {
|
|
596
|
-
const mutationOptions = {
|
|
597
|
-
mutationFn: async (fnOptions) => {
|
|
598
|
-
const { data } = await updateTemplate({
|
|
599
|
-
...options,
|
|
600
|
-
...fnOptions,
|
|
601
|
-
throwOnError: true
|
|
602
|
-
});
|
|
603
|
-
return data;
|
|
604
|
-
}
|
|
605
|
-
};
|
|
606
|
-
return mutationOptions;
|
|
607
|
-
};
|
|
608
616
|
/**
|
|
609
617
|
* Create a space.
|
|
610
618
|
*/
|
|
@@ -1124,12 +1132,28 @@ export const createEnvironmentVariableMutation = (options) => {
|
|
|
1124
1132
|
return mutationOptions;
|
|
1125
1133
|
};
|
|
1126
1134
|
/**
|
|
1127
|
-
* Delete a
|
|
1135
|
+
* Delete a blueprint record.
|
|
1136
|
+
*/
|
|
1137
|
+
export const deleteBlueprintMutation = (options) => {
|
|
1138
|
+
const mutationOptions = {
|
|
1139
|
+
mutationFn: async (fnOptions) => {
|
|
1140
|
+
const { data } = await deleteBlueprint({
|
|
1141
|
+
...options,
|
|
1142
|
+
...fnOptions,
|
|
1143
|
+
throwOnError: true
|
|
1144
|
+
});
|
|
1145
|
+
return data;
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
return mutationOptions;
|
|
1149
|
+
};
|
|
1150
|
+
/**
|
|
1151
|
+
* Update a blueprint record.
|
|
1128
1152
|
*/
|
|
1129
|
-
export const
|
|
1153
|
+
export const updateBlueprintMutation = (options) => {
|
|
1130
1154
|
const mutationOptions = {
|
|
1131
1155
|
mutationFn: async (fnOptions) => {
|
|
1132
|
-
const { data } = await
|
|
1156
|
+
const { data } = await updateBlueprint({
|
|
1133
1157
|
...options,
|
|
1134
1158
|
...fnOptions,
|
|
1135
1159
|
throwOnError: true
|
|
@@ -1140,12 +1164,12 @@ export const deleteTemplateMutation = (options) => {
|
|
|
1140
1164
|
return mutationOptions;
|
|
1141
1165
|
};
|
|
1142
1166
|
/**
|
|
1143
|
-
* Create a
|
|
1167
|
+
* Create a blueprint. A blueprint references the HEAD version of an environment.
|
|
1144
1168
|
*/
|
|
1145
|
-
export const
|
|
1169
|
+
export const createBlueprintMutation = (options) => {
|
|
1146
1170
|
const mutationOptions = {
|
|
1147
1171
|
mutationFn: async (fnOptions) => {
|
|
1148
|
-
const { data } = await
|
|
1172
|
+
const { data } = await createBlueprint({
|
|
1149
1173
|
...options,
|
|
1150
1174
|
...fnOptions,
|
|
1151
1175
|
throwOnError: true
|
|
@@ -1173,6 +1197,22 @@ export const getVersionOptions = (options) => {
|
|
|
1173
1197
|
queryKey: getVersionQueryKey(options)
|
|
1174
1198
|
});
|
|
1175
1199
|
};
|
|
1200
|
+
/**
|
|
1201
|
+
* Import a blueprint into an environment. This does not overwrite existing content. Please create an environment before importing.
|
|
1202
|
+
*/
|
|
1203
|
+
export const importBlueprintMutation = (options) => {
|
|
1204
|
+
const mutationOptions = {
|
|
1205
|
+
mutationFn: async (fnOptions) => {
|
|
1206
|
+
const { data } = await importBlueprint({
|
|
1207
|
+
...options,
|
|
1208
|
+
...fnOptions,
|
|
1209
|
+
throwOnError: true
|
|
1210
|
+
});
|
|
1211
|
+
return data;
|
|
1212
|
+
}
|
|
1213
|
+
};
|
|
1214
|
+
return mutationOptions;
|
|
1215
|
+
};
|
|
1176
1216
|
export const getGraphOverviewQueryKey = (options) => createQueryKey('getGraphOverview', options);
|
|
1177
1217
|
/**
|
|
1178
1218
|
* Get a graph for a version inside an environment.
|
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 { CheckSubdomainUniquenessData, CheckSubdomainUniquenessErrors, CheckSubdomainUniquenessResponses, CreateEnvironmentData, CreateEnvironmentErrors, CreateEnvironmentResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableErrors, CreateEnvironmentVariableResponses, CreateFeatureRequestData, CreateFeatureRequestErrors, CreateFeatureRequestResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateSetupIntentData, CreateSetupIntentErrors, CreateSetupIntentResponses, CreateSpaceData, CreateSpaceErrors, CreateSpaceInviteData, CreateSpaceInviteErrors, CreateSpaceInviteResponses, CreateSpaceResponses,
|
|
2
|
+
import type { CheckSubdomainUniquenessData, CheckSubdomainUniquenessErrors, CheckSubdomainUniquenessResponses, CreateBlueprintData, CreateBlueprintErrors, CreateBlueprintResponses, CreateEnvironmentData, CreateEnvironmentErrors, CreateEnvironmentResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableErrors, CreateEnvironmentVariableResponses, CreateFeatureRequestData, CreateFeatureRequestErrors, CreateFeatureRequestResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateSetupIntentData, CreateSetupIntentErrors, CreateSetupIntentResponses, CreateSpaceData, CreateSpaceErrors, CreateSpaceInviteData, CreateSpaceInviteErrors, CreateSpaceInviteResponses, CreateSpaceResponses, CreateUsernameData, CreateUsernameErrors, CreateUsernameResponses, DeleteAccountIdentityData, DeleteAccountIdentityErrors, DeleteAccountIdentityResponses, DeleteBlueprintData, DeleteBlueprintErrors, DeleteBlueprintResponses, DeleteEnvironmentVariableData, DeleteEnvironmentVariableErrors, DeleteEnvironmentVariableResponses, DeployVersionData, DeployVersionErrors, DeployVersionResponses, FetchBillingPricesData, FetchBillingPricesErrors, FetchBillingPricesResponses, FetchGraphM2mData, FetchGraphM2mErrors, FetchGraphM2mResponses, FetchKindeOrganisationBillingAgreementsData, FetchKindeOrganisationBillingAgreementsErrors, FetchKindeOrganisationBillingAgreementsResponses, FetchNodeM2mData, FetchNodeM2mErrors, FetchNodeM2mResponses, GetBillingPlanData, GetBillingPlanErrors, GetBillingPlanResponses, GetBillingUsageData, GetBillingUsageErrors, GetBillingUsageResponses, GetBlueprintData, GetBlueprintErrors, GetBlueprintResponses, GetConnectedAppUrlData, GetConnectedAppUrlErrors, GetConnectedAppUrlResponses, GetEnvironmentOverviewData, GetEnvironmentOverviewErrors, GetEnvironmentOverviewResponses, GetEnvironmentVariablesData, GetEnvironmentVariablesErrors, GetEnvironmentVariablesResponses, GetEnvironmentVersionsData, GetEnvironmentVersionsResponses, GetGraphOverviewData, GetGraphOverviewErrors, GetGraphOverviewResponses, GetProjectOverviewData, GetProjectOverviewErrors, GetProjectOverviewResponses, GetPublicInviteData, GetPublicInviteErrors, GetPublicInviteResponses, GetServiceHealthData, GetServiceHealthResponses, GetSpaceInvitesData, GetSpaceInvitesErrors, GetSpaceInvitesResponses, GetSpaceOrgCodeData, GetSpaceOrgCodeErrors, GetSpaceOrgCodeResponses, GetSpaceOverviewData, GetSpaceOverviewErrors, GetSpaceOverviewResponses, GetSpacePropertiesData, GetSpacePropertiesErrors, GetSpacePropertiesResponses, GetSpaceStatsData, GetSpaceStatsErrors, GetSpaceStatsResponses, GetUserIdentitiesData, GetUserIdentitiesErrors, GetUserIdentitiesResponses, GetUserInvitesData, GetUserInvitesErrors, GetUserInvitesResponses, GetUserProfileData, GetUserProfileErrors, GetUserProfileResponses, GetVersionData, GetVersionErrors, GetVersionM2mData, GetVersionM2mErrors, GetVersionM2mResponses, GetVersionResponses, ImportBlueprintData, ImportBlueprintErrors, ImportBlueprintResponses, 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, PreviewBlueprintData, PreviewBlueprintErrors, PreviewBlueprintResponses, RecordCloudUsageData, RecordCloudUsageErrors, RecordCloudUsageResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsErrors, RecordOnboardingAnalyticsResponses, RejectSpaceInviteData, RejectSpaceInviteErrors, RejectSpaceInviteResponses, RemovePaymentMethodData, RemovePaymentMethodErrors, RemovePaymentMethodResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetErrors, RequestAccountPasswordResetResponses, RequestSignedDownloadUrlData, RequestSignedDownloadUrlErrors, RequestSignedDownloadUrlResponses, RequestSignedUploadUrlData, RequestSignedUploadUrlErrors, RequestSignedUploadUrlResponses, RevokeSpaceInviteData, RevokeSpaceInviteErrors, RevokeSpaceInviteResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodErrors, SetDefaultPaymentMethodResponses, SetSpacePropertyData, SetSpacePropertyErrors, SetSpacePropertyResponses, UpdateBillingPlanData, UpdateBillingPlanErrors, UpdateBillingPlanResponses, UpdateBlueprintData, UpdateBlueprintErrors, UpdateBlueprintResponses, UpdateConnectedAppTokenData, UpdateConnectedAppTokenErrors, UpdateConnectedAppTokenResponses, UpdateDeploymentStatusM2mData, UpdateDeploymentStatusM2mErrors, UpdateDeploymentStatusM2mResponses, UpdateEnvironmentVariableData, UpdateEnvironmentVariableErrors, UpdateEnvironmentVariableResponses, UpdateGraphM2mData, UpdateGraphM2mErrors, UpdateGraphM2mResponses, UpdateGraphStateData, UpdateGraphStateErrors, UpdateGraphStateResponses, UpdateNodeM2mData, UpdateNodeM2mErrors, UpdateNodeM2mResponses, UpdateUsernameData, UpdateUsernameErrors, UpdateUsernameResponses, UpdateUserProfileData, UpdateUserProfileErrors, UpdateUserProfileResponses, ViewBlueprintsData, ViewBlueprintsErrors, ViewBlueprintsResponses } 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
|
|
@@ -95,15 +95,18 @@ export declare const createFeatureRequest: <ThrowOnError extends boolean = false
|
|
|
95
95
|
* Record analytics data captured during the onboarding flow.
|
|
96
96
|
*/
|
|
97
97
|
export declare const recordOnboardingAnalytics: <ThrowOnError extends boolean = false>(options: Options<RecordOnboardingAnalyticsData, ThrowOnError>) => import("./client").RequestResult<RecordOnboardingAnalyticsResponses, RecordOnboardingAnalyticsErrors, ThrowOnError, "fields">;
|
|
98
|
-
export declare const viewTemplates: <ThrowOnError extends boolean = false>(options?: Options<ViewTemplatesData, ThrowOnError>) => import("./client").RequestResult<ViewTemplatesResponses, ViewTemplatesErrors, ThrowOnError, "fields">;
|
|
99
98
|
/**
|
|
100
|
-
*
|
|
99
|
+
* Preview blueprints
|
|
101
100
|
*/
|
|
102
|
-
export declare const
|
|
101
|
+
export declare const previewBlueprint: <ThrowOnError extends boolean = false>(options: Options<PreviewBlueprintData, ThrowOnError>) => import("./client").RequestResult<PreviewBlueprintResponses, PreviewBlueprintErrors, ThrowOnError, "fields">;
|
|
103
102
|
/**
|
|
104
|
-
*
|
|
103
|
+
* View all blueprints
|
|
105
104
|
*/
|
|
106
|
-
export declare const
|
|
105
|
+
export declare const viewBlueprints: <ThrowOnError extends boolean = false>(options?: Options<ViewBlueprintsData, ThrowOnError>) => import("./client").RequestResult<ViewBlueprintsResponses, ViewBlueprintsErrors, ThrowOnError, "fields">;
|
|
106
|
+
/**
|
|
107
|
+
* Retrieve a blueprint record.
|
|
108
|
+
*/
|
|
109
|
+
export declare const getBlueprint: <ThrowOnError extends boolean = false>(options: Options<GetBlueprintData, ThrowOnError>) => import("./client").RequestResult<GetBlueprintResponses, GetBlueprintErrors, ThrowOnError, "fields">;
|
|
107
110
|
/**
|
|
108
111
|
* Create a space.
|
|
109
112
|
*/
|
|
@@ -201,17 +204,25 @@ export declare const updateEnvironmentVariable: <ThrowOnError extends boolean =
|
|
|
201
204
|
*/
|
|
202
205
|
export declare const createEnvironmentVariable: <ThrowOnError extends boolean = false>(options: Options<CreateEnvironmentVariableData, ThrowOnError>) => import("./client").RequestResult<CreateEnvironmentVariableResponses, CreateEnvironmentVariableErrors, ThrowOnError, "fields">;
|
|
203
206
|
/**
|
|
204
|
-
* Delete a
|
|
207
|
+
* Delete a blueprint record.
|
|
208
|
+
*/
|
|
209
|
+
export declare const deleteBlueprint: <ThrowOnError extends boolean = false>(options: Options<DeleteBlueprintData, ThrowOnError>) => import("./client").RequestResult<DeleteBlueprintResponses, DeleteBlueprintErrors, ThrowOnError, "fields">;
|
|
210
|
+
/**
|
|
211
|
+
* Update a blueprint record.
|
|
205
212
|
*/
|
|
206
|
-
export declare const
|
|
213
|
+
export declare const updateBlueprint: <ThrowOnError extends boolean = false>(options: Options<UpdateBlueprintData, ThrowOnError>) => import("./client").RequestResult<UpdateBlueprintResponses, UpdateBlueprintErrors, ThrowOnError, "fields">;
|
|
207
214
|
/**
|
|
208
|
-
* Create a
|
|
215
|
+
* Create a blueprint. A blueprint references the HEAD version of an environment.
|
|
209
216
|
*/
|
|
210
|
-
export declare const
|
|
217
|
+
export declare const createBlueprint: <ThrowOnError extends boolean = false>(options: Options<CreateBlueprintData, ThrowOnError>) => import("./client").RequestResult<CreateBlueprintResponses, CreateBlueprintErrors, ThrowOnError, "fields">;
|
|
211
218
|
/**
|
|
212
219
|
* Get a version inside an environment.
|
|
213
220
|
*/
|
|
214
221
|
export declare const getVersion: <ThrowOnError extends boolean = false>(options: Options<GetVersionData, ThrowOnError>) => import("./client").RequestResult<GetVersionResponses, GetVersionErrors, ThrowOnError, "fields">;
|
|
222
|
+
/**
|
|
223
|
+
* Import a blueprint into an environment. This does not overwrite existing content. Please create an environment before importing.
|
|
224
|
+
*/
|
|
225
|
+
export declare const importBlueprint: <ThrowOnError extends boolean = false>(options: Options<ImportBlueprintData, ThrowOnError>) => import("./client").RequestResult<ImportBlueprintResponses, ImportBlueprintErrors, ThrowOnError, "fields">;
|
|
215
226
|
/**
|
|
216
227
|
* Get a graph for a version inside an environment.
|
|
217
228
|
*/
|
package/dist/sdk/sdk.gen.js
CHANGED
|
@@ -356,50 +356,49 @@ export const recordOnboardingAnalytics = (options) => {
|
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
358
|
};
|
|
359
|
-
|
|
360
|
-
|
|
359
|
+
/**
|
|
360
|
+
* Preview blueprints
|
|
361
|
+
*/
|
|
362
|
+
export const previewBlueprint = (options) => {
|
|
363
|
+
return (options.client ?? client).get({
|
|
361
364
|
security: [
|
|
362
365
|
{
|
|
363
366
|
scheme: 'bearer',
|
|
364
367
|
type: 'http'
|
|
365
368
|
}
|
|
366
369
|
],
|
|
367
|
-
url: '/
|
|
370
|
+
url: '/blueprints/preview/{blueprint}',
|
|
368
371
|
...options
|
|
369
372
|
});
|
|
370
373
|
};
|
|
371
374
|
/**
|
|
372
|
-
*
|
|
375
|
+
* View all blueprints
|
|
373
376
|
*/
|
|
374
|
-
export const
|
|
375
|
-
return (options
|
|
377
|
+
export const viewBlueprints = (options) => {
|
|
378
|
+
return (options?.client ?? client).get({
|
|
376
379
|
security: [
|
|
377
380
|
{
|
|
378
381
|
scheme: 'bearer',
|
|
379
382
|
type: 'http'
|
|
380
383
|
}
|
|
381
384
|
],
|
|
382
|
-
url: '/
|
|
385
|
+
url: '/blueprints/view',
|
|
383
386
|
...options
|
|
384
387
|
});
|
|
385
388
|
};
|
|
386
389
|
/**
|
|
387
|
-
*
|
|
390
|
+
* Retrieve a blueprint record.
|
|
388
391
|
*/
|
|
389
|
-
export const
|
|
390
|
-
return (options.client ?? client).
|
|
392
|
+
export const getBlueprint = (options) => {
|
|
393
|
+
return (options.client ?? client).get({
|
|
391
394
|
security: [
|
|
392
395
|
{
|
|
393
396
|
scheme: 'bearer',
|
|
394
397
|
type: 'http'
|
|
395
398
|
}
|
|
396
399
|
],
|
|
397
|
-
url: '/
|
|
398
|
-
...options
|
|
399
|
-
headers: {
|
|
400
|
-
'Content-Type': 'application/json',
|
|
401
|
-
...options.headers
|
|
402
|
-
}
|
|
400
|
+
url: '/blueprints/{blueprint}',
|
|
401
|
+
...options
|
|
403
402
|
});
|
|
404
403
|
};
|
|
405
404
|
/**
|
|
@@ -787,9 +786,9 @@ export const createEnvironmentVariable = (options) => {
|
|
|
787
786
|
});
|
|
788
787
|
};
|
|
789
788
|
/**
|
|
790
|
-
* Delete a
|
|
789
|
+
* Delete a blueprint record.
|
|
791
790
|
*/
|
|
792
|
-
export const
|
|
791
|
+
export const deleteBlueprint = (options) => {
|
|
793
792
|
return (options.client ?? client).delete({
|
|
794
793
|
security: [
|
|
795
794
|
{
|
|
@@ -797,14 +796,33 @@ export const deleteTemplate = (options) => {
|
|
|
797
796
|
type: 'http'
|
|
798
797
|
}
|
|
799
798
|
],
|
|
800
|
-
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{
|
|
799
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{blueprint}',
|
|
801
800
|
...options
|
|
802
801
|
});
|
|
803
802
|
};
|
|
804
803
|
/**
|
|
805
|
-
*
|
|
804
|
+
* Update a blueprint record.
|
|
805
|
+
*/
|
|
806
|
+
export const updateBlueprint = (options) => {
|
|
807
|
+
return (options.client ?? client).patch({
|
|
808
|
+
security: [
|
|
809
|
+
{
|
|
810
|
+
scheme: 'bearer',
|
|
811
|
+
type: 'http'
|
|
812
|
+
}
|
|
813
|
+
],
|
|
814
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{blueprint}',
|
|
815
|
+
...options,
|
|
816
|
+
headers: {
|
|
817
|
+
'Content-Type': 'application/json',
|
|
818
|
+
...options.headers
|
|
819
|
+
}
|
|
820
|
+
});
|
|
821
|
+
};
|
|
822
|
+
/**
|
|
823
|
+
* Create a blueprint. A blueprint references the HEAD version of an environment.
|
|
806
824
|
*/
|
|
807
|
-
export const
|
|
825
|
+
export const createBlueprint = (options) => {
|
|
808
826
|
return (options.client ?? client).post({
|
|
809
827
|
security: [
|
|
810
828
|
{
|
|
@@ -812,7 +830,7 @@ export const createTemplate = (options) => {
|
|
|
812
830
|
type: 'http'
|
|
813
831
|
}
|
|
814
832
|
],
|
|
815
|
-
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/
|
|
833
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/blueprints/create',
|
|
816
834
|
...options,
|
|
817
835
|
headers: {
|
|
818
836
|
'Content-Type': 'application/json',
|
|
@@ -835,6 +853,21 @@ export const getVersion = (options) => {
|
|
|
835
853
|
...options
|
|
836
854
|
});
|
|
837
855
|
};
|
|
856
|
+
/**
|
|
857
|
+
* Import a blueprint into an environment. This does not overwrite existing content. Please create an environment before importing.
|
|
858
|
+
*/
|
|
859
|
+
export const importBlueprint = (options) => {
|
|
860
|
+
return (options.client ?? client).patch({
|
|
861
|
+
security: [
|
|
862
|
+
{
|
|
863
|
+
scheme: 'bearer',
|
|
864
|
+
type: 'http'
|
|
865
|
+
}
|
|
866
|
+
],
|
|
867
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/import',
|
|
868
|
+
...options
|
|
869
|
+
});
|
|
870
|
+
};
|
|
838
871
|
/**
|
|
839
872
|
* Get a graph for a version inside an environment.
|
|
840
873
|
*/
|