@zayne-labs/callapi-plugins 4.0.15 → 4.0.16

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.
@@ -1,15 +1,16 @@
1
1
  import * as _zayne_labs_callapi_utils0 from "@zayne-labs/callapi/utils";
2
2
  import { AnyFunction } from "@zayne-labs/toolkit-type-helpers";
3
3
 
4
- //#region ../callapi/dist/esm/validation-uPnlxhfx.d.ts
4
+ //#region ../callapi/dist/esm/validation-Dq--Q5zC.d.ts
5
5
  //#region src/constants/common.d.ts
6
6
  declare const fetchSpecificKeys: readonly (keyof RequestInit | "duplex")[];
7
7
  //#endregion
8
8
  //#region src/constants/validation.d.ts
9
- declare const fallBackRouteSchemaKey = ".";
9
+ declare const fallBackRouteSchemaKey = "@default";
10
+ type FallBackRouteSchemaKey = typeof fallBackRouteSchemaKey;
10
11
  //#endregion
11
12
  //#endregion
12
- //#region ../callapi/dist/esm/common-Sj5tn_Fb.d.ts
13
+ //#region ../callapi/dist/esm/common-CYwKssG-.d.ts
13
14
  //#region src/types/type-helpers.d.ts
14
15
  type AnyString = string & NonNullable<unknown>;
15
16
  type AnyNumber = number & NonNullable<unknown>;
@@ -378,12 +379,11 @@ interface CallApiSchema {
378
379
  declare const routeKeyMethods: readonly ["delete", "get", "patch", "post", "put"];
379
380
  type RouteKeyMethods = (typeof routeKeyMethods)[number];
380
381
  type RouteKeyMethodsURLUnion = `@${RouteKeyMethods}/`;
381
- type BaseCallApiSchemaRoutes = Partial<Record<AnyString | RouteKeyMethodsURLUnion, CallApiSchema>>;
382
+ type BaseCallApiSchemaRoutes = Partial<Record<AnyString | FallBackRouteSchemaKey | RouteKeyMethodsURLUnion, CallApiSchema>>;
382
383
  type BaseCallApiSchemaAndConfig = {
383
384
  config?: CallApiSchemaConfig;
384
385
  routes: BaseCallApiSchemaRoutes;
385
386
  };
386
- type FallBackRouteSchemaKey = typeof fallBackRouteSchemaKey;
387
387
  //#endregion
388
388
  //#region src/utils/external/error.d.ts
389
389
  type HTTPErrorDetails<TErrorData$1> = Pick<CallApiExtraOptions, "defaultHTTPErrorMessage"> & {
@@ -1175,7 +1175,7 @@ type InferAllRouteKeys<TBaseSchemaRoutes$1 extends BaseCallApiSchemaRoutes, TSch
1175
1175
  type InferInitURL<TBaseSchemaRoutes$1 extends BaseCallApiSchemaRoutes, TSchemaConfig$1 extends CallApiSchemaConfig> = keyof TBaseSchemaRoutes$1 extends never ? InitURLOrURLObject : InferAllRouteKeys<TBaseSchemaRoutes$1, TSchemaConfig$1>;
1176
1176
  type GetCurrentRouteSchema<TBaseSchemaRoutes$1 extends BaseCallApiSchemaRoutes, TCurrentRouteSchemaKey extends string, TComputedFallBackRouteSchema = TBaseSchemaRoutes$1[FallBackRouteSchemaKey], TComputedCurrentRouteSchema = TBaseSchemaRoutes$1[TCurrentRouteSchemaKey], TComputedRouteSchema extends CallApiSchema = NonNullable<Omit<TComputedFallBackRouteSchema, keyof TComputedCurrentRouteSchema> & TComputedCurrentRouteSchema>> = TComputedRouteSchema extends CallApiSchema ? Writeable<TComputedRouteSchema, "deep"> : CallApiSchema;
1177
1177
  type JsonPrimitive = boolean | number | string | null | undefined;
1178
- type SerializableObject = Record<keyof object, unknown>;
1178
+ type SerializableObject = Record<PropertyKey, unknown>;
1179
1179
  type SerializableArray = Array<JsonPrimitive | SerializableObject> | ReadonlyArray<JsonPrimitive | SerializableObject>;
1180
1180
  type Body = UnmaskType<RequestInit["body"] | SerializableArray | SerializableObject>;
1181
1181
  type InferBodyOption<TSchema$1 extends CallApiSchema> = MakeSchemaOptionRequiredIfDefined<TSchema$1["body"], {
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.15",
4
+ "version": "4.0.16",
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.15"
24
+ "@zayne-labs/callapi": "1.11.16"
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.15"
41
+ "@zayne-labs/callapi": "1.11.16"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public",