@zayne-labs/callapi-plugins 4.0.30 → 4.0.31

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.
@@ -9,7 +9,7 @@ declare const fallBackRouteSchemaKey = "@default";
9
9
  type FallBackRouteSchemaKey = typeof fallBackRouteSchemaKey;
10
10
  //#endregion
11
11
  //#endregion
12
- //#region ../callapi/dist/index-DvEQIgL-.d.ts
12
+ //#region ../callapi/dist/index-DP2YeNBA.d.ts
13
13
  //#region src/types/type-helpers.d.ts
14
14
  type AnyString = string & NonNullable<unknown>;
15
15
  type AnyNumber = number & NonNullable<unknown>;
@@ -356,6 +356,7 @@ declare namespace StandardSchemaV1 {
356
356
  type ResultVariant = "infer-input" | "infer-output";
357
357
  type InferSchemaResult<TSchema, TFallbackResult, TResultVariant extends ResultVariant> = undefined extends TSchema ? TFallbackResult : TSchema extends StandardSchemaV1 ? TResultVariant extends "infer-input" ? StandardSchemaV1.InferInput<TSchema> : StandardSchemaV1.InferOutput<TSchema> : TSchema extends AnyFunction$1<infer TResult> ? Awaited<TResult> : TFallbackResult;
358
358
  type InferSchemaOutput<TSchema, TFallbackResult = unknown> = InferSchemaResult<TSchema, TFallbackResult, "infer-output">;
359
+ type BooleanObject = { [Key in keyof CallApiSchema]: boolean };
359
360
  interface CallApiSchemaConfig {
360
361
  /**
361
362
  * The base url of the schema. By default it's the baseURL of the callApi instance.
@@ -364,14 +365,14 @@ interface CallApiSchemaConfig {
364
365
  /**
365
366
  * Disables runtime validation for the schema.
366
367
  */
367
- disableRuntimeValidation?: boolean;
368
+ disableRuntimeValidation?: boolean | BooleanObject;
368
369
  /**
369
370
  * If `true`, the original input value will be used instead of the transformed/validated output.
370
371
  *
371
372
  * This is useful when you want to validate the input but don't want any transformations
372
373
  * applied by the validation schema (e.g., type coercion, default values, etc).
373
374
  */
374
- disableValidationOutputApplication?: boolean;
375
+ disableValidationOutputApplication?: boolean | BooleanObject;
375
376
  /**
376
377
  * Optional url prefix that will be substituted for the `baseURL` of the schemaConfig at runtime.
377
378
  *
@@ -1762,20 +1763,13 @@ type CallApiResultErrorVariant<TErrorData> = {
1762
1763
  error: PossibleJavaScriptOrValidationError;
1763
1764
  response: Response | null;
1764
1765
  };
1765
- type CallApiSuccessOrErrorVariant<TData, TError> = CallApiResultErrorVariant<TError> | CallApiResultSuccessVariant<TData>;
1766
- type ResultModeMapWithoutException<TData, TErrorData, TComputedResult extends CallApiSuccessOrErrorVariant<TData, TErrorData> = CallApiSuccessOrErrorVariant<TData, TErrorData>> = UnmaskType<{
1766
+ type CallApiResultSuccessOrErrorVariant<TData, TError> = CallApiResultErrorVariant<TError> | CallApiResultSuccessVariant<TData>;
1767
+ type ResultModeMap<TData = DefaultDataType, TErrorData = DefaultDataType, TThrowOnError extends ThrowOnErrorUnion = DefaultThrowOnError, TComputedResultWithoutException extends CallApiResultSuccessOrErrorVariant<TData, TErrorData> = CallApiResultSuccessOrErrorVariant<TData, TErrorData>, TComputedResultWithException extends CallApiResultSuccessVariant<TData> = CallApiResultSuccessVariant<TData>, TComputedResult extends (TThrowOnError extends true ? TComputedResultWithException : TComputedResultWithoutException) = (TThrowOnError extends true ? TComputedResultWithException : TComputedResultWithoutException)> = UnmaskType<{
1767
1768
  all: TComputedResult;
1768
1769
  onlyData: TComputedResult["data"];
1769
1770
  onlyResponse: TComputedResult["response"];
1770
- withoutResponse: DistributiveOmit<TComputedResult, "response">;
1771
+ withoutResponse: Prettify<DistributiveOmit<TComputedResult, "response">>;
1771
1772
  }>;
1772
- type ResultModeMapWithException<TData, TComputedResult extends CallApiResultSuccessVariant<TData> = CallApiResultSuccessVariant<TData>> = {
1773
- all: TComputedResult;
1774
- onlyData: TComputedResult["data"];
1775
- onlyResponse: TComputedResult["response"];
1776
- withoutResponse: DistributiveOmit<TComputedResult, "response">;
1777
- };
1778
- type ResultModeMap<TData = DefaultDataType, TErrorData = DefaultDataType, TThrowOnError extends ThrowOnErrorUnion = DefaultThrowOnError> = TThrowOnError extends true ? ResultModeMapWithException<TData> : ResultModeMapWithoutException<TData, TErrorData>;
1779
1773
  type ResultModePlaceholder = null;
1780
1774
  type ResultModeUnion = keyof ResultModeMap;
1781
1775
  type ResultModeType = ResultModePlaceholder | ResultModeUnion;
@@ -1854,4 +1848,4 @@ declare const loggerPlugin: (options?: LoggerOptions) => {
1854
1848
  };
1855
1849
  //#endregion
1856
1850
  export { defaultConsoleObject as n, loggerPlugin as r, LoggerOptions as t };
1857
- //# sourceMappingURL=index-4Ly8sBk-.d.ts.map
1851
+ //# sourceMappingURL=index-DtZjKewM.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as defaultConsoleObject, r as loggerPlugin, t as LoggerOptions } from "./index-4Ly8sBk-.js";
1
+ import { n as defaultConsoleObject, r as loggerPlugin, t as LoggerOptions } from "./index-DtZjKewM.js";
2
2
  export { LoggerOptions, defaultConsoleObject, loggerPlugin };
@@ -1,2 +1,2 @@
1
- import { n as defaultConsoleObject, r as loggerPlugin, t as LoggerOptions } from "../../index-4Ly8sBk-.js";
1
+ import { n as defaultConsoleObject, r as loggerPlugin, t as LoggerOptions } from "../../index-DtZjKewM.js";
2
2
  export { LoggerOptions, defaultConsoleObject, loggerPlugin };
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.30",
4
+ "version": "4.0.31",
5
5
  "description": "A collection of plugins for callapi",
6
6
  "author": "Ryan Zayne",
7
7
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  "peerDependencies": {
25
25
  "@zayne-labs/toolkit-type-helpers": ">=0.11.17",
26
26
  "consola": "3.x.x",
27
- "@zayne-labs/callapi": "1.11.30"
27
+ "@zayne-labs/callapi": "1.11.31"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@arethetypeswrong/cli": "0.18.2",
@@ -38,10 +38,10 @@
38
38
  "cross-env": "^10.1.0",
39
39
  "publint": "^0.3.15",
40
40
  "size-limit": "12.0.0",
41
- "tsdown": "0.17.0-beta.4",
41
+ "tsdown": "0.17.0-beta.5",
42
42
  "typescript": "5.9.3",
43
- "vitest": "^4.0.14",
44
- "@zayne-labs/callapi": "1.11.30"
43
+ "vitest": "^4.0.15",
44
+ "@zayne-labs/callapi": "1.11.31"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public",