shoal-web-sdk 1.0.17 → 1.0.19
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
|
@@ -361,12 +361,6 @@ export const recordOnboardingAnalytics = (options) => {
|
|
|
361
361
|
*/
|
|
362
362
|
export const previewBlueprint = (options) => {
|
|
363
363
|
return (options.client ?? client).get({
|
|
364
|
-
security: [
|
|
365
|
-
{
|
|
366
|
-
scheme: 'bearer',
|
|
367
|
-
type: 'http'
|
|
368
|
-
}
|
|
369
|
-
],
|
|
370
364
|
url: '/blueprints/preview/{blueprint}',
|
|
371
365
|
...options
|
|
372
366
|
});
|
|
@@ -376,12 +370,6 @@ export const previewBlueprint = (options) => {
|
|
|
376
370
|
*/
|
|
377
371
|
export const viewBlueprints = (options) => {
|
|
378
372
|
return (options?.client ?? client).get({
|
|
379
|
-
security: [
|
|
380
|
-
{
|
|
381
|
-
scheme: 'bearer',
|
|
382
|
-
type: 'http'
|
|
383
|
-
}
|
|
384
|
-
],
|
|
385
373
|
url: '/blueprints/view',
|
|
386
374
|
...options
|
|
387
375
|
});
|
|
@@ -391,12 +379,6 @@ export const viewBlueprints = (options) => {
|
|
|
391
379
|
*/
|
|
392
380
|
export const getBlueprint = (options) => {
|
|
393
381
|
return (options.client ?? client).get({
|
|
394
|
-
security: [
|
|
395
|
-
{
|
|
396
|
-
scheme: 'bearer',
|
|
397
|
-
type: 'http'
|
|
398
|
-
}
|
|
399
|
-
],
|
|
400
382
|
url: '/blueprints/{blueprint}',
|
|
401
383
|
...options
|
|
402
384
|
});
|
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -457,8 +457,8 @@ export type NeonDbNodeProps = {
|
|
|
457
457
|
projectName?: string;
|
|
458
458
|
branchId?: string;
|
|
459
459
|
branchName?: string;
|
|
460
|
-
dbName
|
|
461
|
-
roleName
|
|
460
|
+
dbName?: string;
|
|
461
|
+
roleName?: string;
|
|
462
462
|
regionId: string;
|
|
463
463
|
pgVersion: number;
|
|
464
464
|
autoscalingLimitMinCu?: number;
|
package/dist/sdk/zod.gen.d.ts
CHANGED
|
@@ -625,8 +625,8 @@ export declare const zNeonDbNodeProps: z.ZodObject<{
|
|
|
625
625
|
projectName: z.ZodOptional<z.ZodString>;
|
|
626
626
|
branchId: z.ZodOptional<z.ZodString>;
|
|
627
627
|
branchName: z.ZodOptional<z.ZodString>;
|
|
628
|
-
dbName: z.ZodString
|
|
629
|
-
roleName: z.ZodString
|
|
628
|
+
dbName: z.ZodOptional<z.ZodString>;
|
|
629
|
+
roleName: z.ZodOptional<z.ZodString>;
|
|
630
630
|
regionId: z.ZodString;
|
|
631
631
|
pgVersion: z.ZodInt;
|
|
632
632
|
autoscalingLimitMinCu: z.ZodOptional<z.ZodNumber>;
|
|
@@ -790,8 +790,8 @@ export declare const zNode: z.ZodObject<{
|
|
|
790
790
|
projectName: z.ZodOptional<z.ZodString>;
|
|
791
791
|
branchId: z.ZodOptional<z.ZodString>;
|
|
792
792
|
branchName: z.ZodOptional<z.ZodString>;
|
|
793
|
-
dbName: z.ZodString
|
|
794
|
-
roleName: z.ZodString
|
|
793
|
+
dbName: z.ZodOptional<z.ZodString>;
|
|
794
|
+
roleName: z.ZodOptional<z.ZodString>;
|
|
795
795
|
regionId: z.ZodString;
|
|
796
796
|
pgVersion: z.ZodInt;
|
|
797
797
|
autoscalingLimitMinCu: z.ZodOptional<z.ZodNumber>;
|
|
@@ -952,8 +952,8 @@ export declare const zNodes: z.ZodObject<{
|
|
|
952
952
|
projectName: z.ZodOptional<z.ZodString>;
|
|
953
953
|
branchId: z.ZodOptional<z.ZodString>;
|
|
954
954
|
branchName: z.ZodOptional<z.ZodString>;
|
|
955
|
-
dbName: z.ZodString
|
|
956
|
-
roleName: z.ZodString
|
|
955
|
+
dbName: z.ZodOptional<z.ZodString>;
|
|
956
|
+
roleName: z.ZodOptional<z.ZodString>;
|
|
957
957
|
regionId: z.ZodString;
|
|
958
958
|
pgVersion: z.ZodInt;
|
|
959
959
|
autoscalingLimitMinCu: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1117,8 +1117,8 @@ export declare const zGraph: z.ZodObject<{
|
|
|
1117
1117
|
projectName: z.ZodOptional<z.ZodString>;
|
|
1118
1118
|
branchId: z.ZodOptional<z.ZodString>;
|
|
1119
1119
|
branchName: z.ZodOptional<z.ZodString>;
|
|
1120
|
-
dbName: z.ZodString
|
|
1121
|
-
roleName: z.ZodString
|
|
1120
|
+
dbName: z.ZodOptional<z.ZodString>;
|
|
1121
|
+
roleName: z.ZodOptional<z.ZodString>;
|
|
1122
1122
|
regionId: z.ZodString;
|
|
1123
1123
|
pgVersion: z.ZodInt;
|
|
1124
1124
|
autoscalingLimitMinCu: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1703,8 +1703,8 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1703
1703
|
projectName: z.ZodOptional<z.ZodString>;
|
|
1704
1704
|
branchId: z.ZodOptional<z.ZodString>;
|
|
1705
1705
|
branchName: z.ZodOptional<z.ZodString>;
|
|
1706
|
-
dbName: z.ZodString
|
|
1707
|
-
roleName: z.ZodString
|
|
1706
|
+
dbName: z.ZodOptional<z.ZodString>;
|
|
1707
|
+
roleName: z.ZodOptional<z.ZodString>;
|
|
1708
1708
|
regionId: z.ZodString;
|
|
1709
1709
|
pgVersion: z.ZodInt;
|
|
1710
1710
|
autoscalingLimitMinCu: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1867,8 +1867,8 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
|
|
|
1867
1867
|
projectName: z.ZodOptional<z.ZodString>;
|
|
1868
1868
|
branchId: z.ZodOptional<z.ZodString>;
|
|
1869
1869
|
branchName: z.ZodOptional<z.ZodString>;
|
|
1870
|
-
dbName: z.ZodString
|
|
1871
|
-
roleName: z.ZodString
|
|
1870
|
+
dbName: z.ZodOptional<z.ZodString>;
|
|
1871
|
+
roleName: z.ZodOptional<z.ZodString>;
|
|
1872
1872
|
regionId: z.ZodString;
|
|
1873
1873
|
pgVersion: z.ZodInt;
|
|
1874
1874
|
autoscalingLimitMinCu: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2048,8 +2048,8 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
|
|
|
2048
2048
|
projectName: z.ZodOptional<z.ZodString>;
|
|
2049
2049
|
branchId: z.ZodOptional<z.ZodString>;
|
|
2050
2050
|
branchName: z.ZodOptional<z.ZodString>;
|
|
2051
|
-
dbName: z.ZodString
|
|
2052
|
-
roleName: z.ZodString
|
|
2051
|
+
dbName: z.ZodOptional<z.ZodString>;
|
|
2052
|
+
roleName: z.ZodOptional<z.ZodString>;
|
|
2053
2053
|
regionId: z.ZodString;
|
|
2054
2054
|
pgVersion: z.ZodInt;
|
|
2055
2055
|
autoscalingLimitMinCu: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2210,8 +2210,8 @@ export declare const zUpdateNodeM2mData: z.ZodObject<{
|
|
|
2210
2210
|
projectName: z.ZodOptional<z.ZodString>;
|
|
2211
2211
|
branchId: z.ZodOptional<z.ZodString>;
|
|
2212
2212
|
branchName: z.ZodOptional<z.ZodString>;
|
|
2213
|
-
dbName: z.ZodString
|
|
2214
|
-
roleName: z.ZodString
|
|
2213
|
+
dbName: z.ZodOptional<z.ZodString>;
|
|
2214
|
+
roleName: z.ZodOptional<z.ZodString>;
|
|
2215
2215
|
regionId: z.ZodString;
|
|
2216
2216
|
pgVersion: z.ZodInt;
|
|
2217
2217
|
autoscalingLimitMinCu: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2626,8 +2626,8 @@ export declare const zPreviewBlueprintResponse: z.ZodObject<{
|
|
|
2626
2626
|
projectName: z.ZodOptional<z.ZodString>;
|
|
2627
2627
|
branchId: z.ZodOptional<z.ZodString>;
|
|
2628
2628
|
branchName: z.ZodOptional<z.ZodString>;
|
|
2629
|
-
dbName: z.ZodString
|
|
2630
|
-
roleName: z.ZodString
|
|
2629
|
+
dbName: z.ZodOptional<z.ZodString>;
|
|
2630
|
+
roleName: z.ZodOptional<z.ZodString>;
|
|
2631
2631
|
regionId: z.ZodString;
|
|
2632
2632
|
pgVersion: z.ZodInt;
|
|
2633
2633
|
autoscalingLimitMinCu: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3504,8 +3504,8 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
3504
3504
|
projectName: z.ZodOptional<z.ZodString>;
|
|
3505
3505
|
branchId: z.ZodOptional<z.ZodString>;
|
|
3506
3506
|
branchName: z.ZodOptional<z.ZodString>;
|
|
3507
|
-
dbName: z.ZodString
|
|
3508
|
-
roleName: z.ZodString
|
|
3507
|
+
dbName: z.ZodOptional<z.ZodString>;
|
|
3508
|
+
roleName: z.ZodOptional<z.ZodString>;
|
|
3509
3509
|
regionId: z.ZodString;
|
|
3510
3510
|
pgVersion: z.ZodInt;
|
|
3511
3511
|
autoscalingLimitMinCu: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3668,8 +3668,8 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
3668
3668
|
projectName: z.ZodOptional<z.ZodString>;
|
|
3669
3669
|
branchId: z.ZodOptional<z.ZodString>;
|
|
3670
3670
|
branchName: z.ZodOptional<z.ZodString>;
|
|
3671
|
-
dbName: z.ZodString
|
|
3672
|
-
roleName: z.ZodString
|
|
3671
|
+
dbName: z.ZodOptional<z.ZodString>;
|
|
3672
|
+
roleName: z.ZodOptional<z.ZodString>;
|
|
3673
3673
|
regionId: z.ZodString;
|
|
3674
3674
|
pgVersion: z.ZodInt;
|
|
3675
3675
|
autoscalingLimitMinCu: z.ZodOptional<z.ZodNumber>;
|
package/dist/sdk/zod.gen.js
CHANGED
|
@@ -425,8 +425,8 @@ export const zNeonDbNodeProps = z.object({
|
|
|
425
425
|
projectName: z.optional(z.string()),
|
|
426
426
|
branchId: z.optional(z.string()),
|
|
427
427
|
branchName: z.optional(z.string()),
|
|
428
|
-
dbName: z.string(),
|
|
429
|
-
roleName: z.string(),
|
|
428
|
+
dbName: z.optional(z.string()),
|
|
429
|
+
roleName: z.optional(z.string()),
|
|
430
430
|
regionId: z.string(),
|
|
431
431
|
pgVersion: z.int().gte(14).lte(18),
|
|
432
432
|
autoscalingLimitMinCu: z.optional(z.number().gte(0.25)),
|
|
@@ -404,18 +404,12 @@ export const useRecordOnboardingAnalytics = (config) => {
|
|
|
404
404
|
});
|
|
405
405
|
};
|
|
406
406
|
export const usePreviewBlueprint = (options) => {
|
|
407
|
-
const token = useToken();
|
|
408
407
|
let { enabled, ...rest } = options || { enabled: true };
|
|
409
408
|
const opts = { throwOnError: true, url: "/blueprints/preview/{blueprint}" };
|
|
410
409
|
const funcer = async () => {
|
|
411
|
-
const
|
|
412
|
-
if (isPromise(token) && !token)
|
|
413
|
-
return;
|
|
414
|
-
const res = await previewBlueprint({ ...opts, ...rest, auth });
|
|
410
|
+
const res = await previewBlueprint({ ...opts, ...rest, });
|
|
415
411
|
return res.data;
|
|
416
412
|
};
|
|
417
|
-
if (!token)
|
|
418
|
-
enabled = false;
|
|
419
413
|
return useQuery({
|
|
420
414
|
queryKey: ["blueprints", "preview", options?.path?.blueprint, options.query ?? {}],
|
|
421
415
|
queryFn: funcer,
|
|
@@ -425,18 +419,12 @@ export const usePreviewBlueprint = (options) => {
|
|
|
425
419
|
});
|
|
426
420
|
};
|
|
427
421
|
export const useViewBlueprints = (options) => {
|
|
428
|
-
const token = useToken();
|
|
429
422
|
let { enabled, ...rest } = options || { enabled: true };
|
|
430
423
|
const opts = { throwOnError: true, url: "/blueprints/view" };
|
|
431
424
|
const funcer = async () => {
|
|
432
|
-
const
|
|
433
|
-
if (isPromise(token) && !token)
|
|
434
|
-
return;
|
|
435
|
-
const res = await viewBlueprints({ ...opts, ...rest, auth });
|
|
425
|
+
const res = await viewBlueprints({ ...opts, ...rest, });
|
|
436
426
|
return res.data;
|
|
437
427
|
};
|
|
438
|
-
if (!token)
|
|
439
|
-
enabled = false;
|
|
440
428
|
return useQuery({
|
|
441
429
|
queryKey: ["blueprints", "view", options?.query ?? {}],
|
|
442
430
|
queryFn: funcer,
|
|
@@ -446,18 +434,12 @@ export const useViewBlueprints = (options) => {
|
|
|
446
434
|
});
|
|
447
435
|
};
|
|
448
436
|
export const useGetBlueprint = (options) => {
|
|
449
|
-
const token = useToken();
|
|
450
437
|
let { enabled, ...rest } = options || { enabled: true };
|
|
451
438
|
const opts = { throwOnError: true, url: "/blueprints/{blueprint}" };
|
|
452
439
|
const funcer = async () => {
|
|
453
|
-
const
|
|
454
|
-
if (isPromise(token) && !token)
|
|
455
|
-
return;
|
|
456
|
-
const res = await getBlueprint({ ...opts, ...rest, auth });
|
|
440
|
+
const res = await getBlueprint({ ...opts, ...rest, });
|
|
457
441
|
return res.data;
|
|
458
442
|
};
|
|
459
|
-
if (!token)
|
|
460
|
-
enabled = false;
|
|
461
443
|
return useQuery({
|
|
462
444
|
queryKey: ["blueprints", options?.path?.blueprint, options.query ?? {}],
|
|
463
445
|
queryFn: funcer,
|