wg-api-sdk 1.0.4 → 1.0.5

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/index.d.mts CHANGED
@@ -356,6 +356,6 @@ export { RetrieveAutomobileByCarIdFreemiumVersionPathParams, RetrieveAutomobileB
356
356
  export { GetVehicleByVersionIdPathParams, GetVehicleByVersionIdQueryParams, GetVehicleByVersionIdResponse, getVehicleByVersionId } from './routes/vehicle/get-vehicle-by-version-id-v1-api-vehicles-automobile-versions--version-id--premium-get.mjs';
357
357
  export { GetVehicleVersionFactsBySeriesIdPathParams, GetVehicleVersionFactsBySeriesIdQueryParams, GetVehicleVersionFactsBySeriesIdResponse, getVehicleVersionFactsBySeriesId } from './routes/vehicle/get-vehicle-version-facts-by-series-id-v1-api-vehicles-automobile-series--series-id--facts-get.mjs';
358
358
  export { GetHubspotVisitorIdentificationTokenResponse, getHubspotVisitorIdentificationToken } from './routes/vendor/get-hubspot-visitor-identification-token-v1-api-hubspot-visitor-identification-token-get.mjs';
359
- export { ClientType, HttpMethod, WgApiSchema, WgPaths, wgApiClient } from './types/index.mjs';
359
+ export { ClientType, HttpMethod, Middleware, WgApiSchema, WgPaths, wgApiClient } from './types/index.mjs';
360
360
  export { $defs, components, operations, paths, webhooks } from './types/schema.mjs';
361
361
  import 'openapi-fetch';
@@ -1,4 +1,4 @@
1
- import createClient, { ClientOptions } from 'openapi-fetch';
1
+ import createClient, { Middleware as Middleware$1, ClientOptions } from 'openapi-fetch';
2
2
  import { components, paths } from './schema.mjs';
3
3
  export { $defs, operations, webhooks } from './schema.mjs';
4
4
 
@@ -9,7 +9,8 @@ type WgPaths<Prop extends HttpMethod> = PathKeysByMethod<Prop>;
9
9
  type PathKeysByMethod<Prop extends string> = {
10
10
  [K in keyof paths]: Prop extends keyof paths[K] ? K : never;
11
11
  }[keyof paths];
12
+ type Middleware = Middleware$1;
12
13
  type ClientType = ReturnType<typeof createClient<paths>>;
13
14
  declare const wgApiClient: (options: ClientOptions) => ClientType;
14
15
 
15
- export { type ClientType, type HttpMethod, type WgApiSchema, type WgPaths, components, paths, wgApiClient };
16
+ export { type ClientType, type HttpMethod, type Middleware, type WgApiSchema, type WgPaths, components, paths, wgApiClient };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wg-api-sdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "An SDK that provides auto-generated fetch functions and types for interacting with WeGroup 's APIs, based on the OpenAPI specification file.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",