shoal-web-sdk 1.0.32 → 1.0.33
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/sdk.gen.js
CHANGED
|
@@ -952,7 +952,7 @@ export const deleteBlueprint = (options) => {
|
|
|
952
952
|
type: 'http'
|
|
953
953
|
}
|
|
954
954
|
],
|
|
955
|
-
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{blueprint}',
|
|
955
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/blueprints/{blueprint}',
|
|
956
956
|
...options
|
|
957
957
|
});
|
|
958
958
|
};
|
|
@@ -967,7 +967,7 @@ export const updateBlueprint = (options) => {
|
|
|
967
967
|
type: 'http'
|
|
968
968
|
}
|
|
969
969
|
],
|
|
970
|
-
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{blueprint}',
|
|
970
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/blueprints/{blueprint}',
|
|
971
971
|
...options,
|
|
972
972
|
headers: {
|
|
973
973
|
'Content-Type': 'application/json',
|
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -3302,7 +3302,7 @@ export type DeleteBlueprintData = {
|
|
|
3302
3302
|
environmentHandle: string;
|
|
3303
3303
|
};
|
|
3304
3304
|
query?: never;
|
|
3305
|
-
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{blueprint}';
|
|
3305
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/blueprints/{blueprint}';
|
|
3306
3306
|
};
|
|
3307
3307
|
export type DeleteBlueprintErrors = {
|
|
3308
3308
|
/**
|
|
@@ -3351,7 +3351,7 @@ export type UpdateBlueprintData = {
|
|
|
3351
3351
|
environmentHandle: string;
|
|
3352
3352
|
};
|
|
3353
3353
|
query?: never;
|
|
3354
|
-
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{blueprint}';
|
|
3354
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/blueprints/{blueprint}';
|
|
3355
3355
|
};
|
|
3356
3356
|
export type UpdateBlueprintErrors = {
|
|
3357
3357
|
/**
|
|
@@ -1135,7 +1135,7 @@ export const useCreateEnvironmentVariable = (config) => {
|
|
|
1135
1135
|
export const useDeleteBlueprint = (config) => {
|
|
1136
1136
|
const token = useToken();
|
|
1137
1137
|
const queryClient = useQueryClient();
|
|
1138
|
-
const opts = { throwOnError: true, url: "/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{blueprint}" };
|
|
1138
|
+
const opts = { throwOnError: true, url: "/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/blueprints/{blueprint}" };
|
|
1139
1139
|
const funcer = async (options) => {
|
|
1140
1140
|
const auth = isPromise(token) ? (await token) || "" : token || "";
|
|
1141
1141
|
const res = await deleteBlueprint({ ...opts, ...options, auth });
|
|
@@ -1144,7 +1144,7 @@ export const useDeleteBlueprint = (config) => {
|
|
|
1144
1144
|
return useMutation({
|
|
1145
1145
|
mutationFn: funcer,
|
|
1146
1146
|
onSuccess: (res, options, c, ctx) => {
|
|
1147
|
-
queryClient.invalidateQueries({ queryKey: [options?.path?.spaceHandle, options?.path?.projectHandle, options?.path?.environmentHandle, options?.path?.blueprint] });
|
|
1147
|
+
queryClient.invalidateQueries({ queryKey: [options?.path?.spaceHandle, options?.path?.projectHandle, options?.path?.environmentHandle, "blueprints", options?.path?.blueprint] });
|
|
1148
1148
|
config?.onSuccess && config.onSuccess(res.data, res.headers);
|
|
1149
1149
|
},
|
|
1150
1150
|
onError: config?.onError,
|
|
@@ -1154,7 +1154,7 @@ export const useDeleteBlueprint = (config) => {
|
|
|
1154
1154
|
export const useUpdateBlueprint = (config) => {
|
|
1155
1155
|
const token = useToken();
|
|
1156
1156
|
const queryClient = useQueryClient();
|
|
1157
|
-
const opts = { throwOnError: true, url: "/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{blueprint}" };
|
|
1157
|
+
const opts = { throwOnError: true, url: "/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/blueprints/{blueprint}" };
|
|
1158
1158
|
const funcer = async (options) => {
|
|
1159
1159
|
const auth = isPromise(token) ? (await token) || "" : token || "";
|
|
1160
1160
|
const res = await updateBlueprint({ ...opts, ...options, auth });
|
|
@@ -1163,7 +1163,7 @@ export const useUpdateBlueprint = (config) => {
|
|
|
1163
1163
|
return useMutation({
|
|
1164
1164
|
mutationFn: funcer,
|
|
1165
1165
|
onSuccess: (res, options, c, ctx) => {
|
|
1166
|
-
queryClient.invalidateQueries({ queryKey: [options?.path?.spaceHandle, options?.path?.projectHandle, options?.path?.environmentHandle, options?.path?.blueprint] });
|
|
1166
|
+
queryClient.invalidateQueries({ queryKey: [options?.path?.spaceHandle, options?.path?.projectHandle, options?.path?.environmentHandle, "blueprints", options?.path?.blueprint] });
|
|
1167
1167
|
config?.onSuccess && config.onSuccess(res.data, res.headers);
|
|
1168
1168
|
},
|
|
1169
1169
|
onError: config?.onError,
|