@zayne-labs/callapi-plugins 4.0.18 → 4.0.20
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/esm/index.d.ts +15 -3
- package/package.json +3 -3
package/dist/esm/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare const fallBackRouteSchemaKey = "@default";
|
|
|
10
10
|
type FallBackRouteSchemaKey = typeof fallBackRouteSchemaKey;
|
|
11
11
|
//#endregion
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region ../callapi/dist/esm/common-
|
|
13
|
+
//#region ../callapi/dist/esm/common-B6fZ7-fM.d.ts
|
|
14
14
|
//#region src/types/type-helpers.d.ts
|
|
15
15
|
type AnyString = string & NonNullable<unknown>;
|
|
16
16
|
type AnyNumber = number & NonNullable<unknown>;
|
|
@@ -456,6 +456,10 @@ type CallApiResultSuccessVariant<TData$1> = {
|
|
|
456
456
|
error: null;
|
|
457
457
|
response: Response;
|
|
458
458
|
};
|
|
459
|
+
type CallApiResultSuccessVariantWithoutResponse<TData$1> = {
|
|
460
|
+
data: NoInfer<TData$1>;
|
|
461
|
+
error: null;
|
|
462
|
+
};
|
|
459
463
|
type PossibleJavaScriptError = UnmaskType<{
|
|
460
464
|
errorData: false;
|
|
461
465
|
message: string;
|
|
@@ -485,18 +489,26 @@ type CallApiResultErrorVariant<TErrorData$1> = {
|
|
|
485
489
|
error: PossibleJavaScriptOrValidationError;
|
|
486
490
|
response: Response | null;
|
|
487
491
|
};
|
|
492
|
+
type CallApiResultErrorVariantWithoutResponse<TErrorData$1> = {
|
|
493
|
+
data: null;
|
|
494
|
+
error: PossibleHTTPError<TErrorData$1>;
|
|
495
|
+
} | {
|
|
496
|
+
data: null;
|
|
497
|
+
error: PossibleJavaScriptOrValidationError;
|
|
498
|
+
};
|
|
488
499
|
type CallApiSuccessOrErrorVariant<TData$1, TError> = CallApiResultErrorVariant<TError> | CallApiResultSuccessVariant<TData$1>;
|
|
500
|
+
type CallApiSuccessOrErrorVariantWithoutResponse<TData$1, TErrorData$1> = CallApiResultErrorVariantWithoutResponse<TErrorData$1> | CallApiResultSuccessVariantWithoutResponse<TData$1>;
|
|
489
501
|
type ResultModeMapWithoutException<TData$1, TErrorData$1, TResponseType extends ResponseTypeType, TComputedData = GetResponseType<TData$1, TResponseType>, TComputedErrorData = GetResponseType<TErrorData$1, TResponseType>, TComputedResult extends CallApiSuccessOrErrorVariant<TComputedData, TComputedErrorData> = CallApiSuccessOrErrorVariant<TComputedData, TComputedErrorData>> = UnmaskType<{
|
|
490
502
|
all: TComputedResult;
|
|
491
503
|
onlyData: TComputedResult["data"];
|
|
492
504
|
onlyResponse: TComputedResult["response"];
|
|
493
|
-
withoutResponse:
|
|
505
|
+
withoutResponse: CallApiSuccessOrErrorVariantWithoutResponse<TComputedData, TComputedErrorData>;
|
|
494
506
|
}>;
|
|
495
507
|
type ResultModeMapWithException<TData$1, TResponseType extends ResponseTypeType, TComputedData = GetResponseType<TData$1, TResponseType>, TComputedResult extends CallApiResultSuccessVariant<TComputedData> = CallApiResultSuccessVariant<TComputedData>> = {
|
|
496
508
|
all: TComputedResult;
|
|
497
509
|
onlyData: TComputedResult["data"];
|
|
498
510
|
onlyResponse: TComputedResult["response"];
|
|
499
|
-
withoutResponse:
|
|
511
|
+
withoutResponse: CallApiResultSuccessVariantWithoutResponse<TComputedData>;
|
|
500
512
|
};
|
|
501
513
|
type ResultModeMap<TData$1 = DefaultDataType, TErrorData$1 = DefaultDataType, TResponseType extends ResponseTypeType = ResponseTypeType, TThrowOnError extends ThrowOnErrorUnion = DefaultThrowOnError> = TThrowOnError extends true ? ResultModeMapWithException<TData$1, TResponseType> : ResultModeMapWithoutException<TData$1, TErrorData$1, TResponseType>;
|
|
502
514
|
type ResultModePlaceholder = null;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zayne-labs/callapi-plugins",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.20",
|
|
5
5
|
"description": "A collection of plugins for callapi",
|
|
6
6
|
"author": "Ryan Zayne",
|
|
7
7
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@zayne-labs/toolkit-type-helpers": ">=0.11.17",
|
|
23
23
|
"consola": "3.x.x",
|
|
24
|
-
"@zayne-labs/callapi": "1.11.
|
|
24
|
+
"@zayne-labs/callapi": "1.11.20"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@arethetypeswrong/cli": "0.18.2",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"tsdown": "^0.15.9",
|
|
39
39
|
"typescript": "5.9.3",
|
|
40
40
|
"vitest": "^4.0.1",
|
|
41
|
-
"@zayne-labs/callapi": "1.11.
|
|
41
|
+
"@zayne-labs/callapi": "1.11.20"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public",
|