@readyfor/api-client-pigeon 0.156.0-pr911.80e14d4 → 0.156.0

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.
@@ -8,10 +8,9 @@ import {
8
8
  __internal__requestUrl
9
9
  } from "@readyfor/api-client-base";
10
10
  var buildV1ExampleGetFetcher = (requestInit) => createJsonFetcher(ExampleModel, { ...requestInit });
11
- var getV1Example = (headers, requestBody, requestInit) => buildV1ExampleGetFetcher()(__internal__requestUrl("/api/v1/example"), {
11
+ var getV1Example = (requestBody, requestInit) => buildV1ExampleGetFetcher()(__internal__requestUrl("/api/v1/example"), {
12
12
  ...requestInit,
13
13
  method: "GET",
14
- headers,
15
14
  body: requestBody
16
15
  });
17
16
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildV1ExampleGetFetcher
3
- } from "./chunk-P5CNIF27.mjs";
3
+ } from "./chunk-BPM425IG.mjs";
4
4
 
5
5
  // src/hooks/useV1Example.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -8,20 +8,20 @@ import useSWRInfinite from "swr/infinite";
8
8
  import useSWR from "swr";
9
9
  import { __internal__requestUrl } from "@readyfor/api-client-base";
10
10
  var v1ExampleGetFetcher = buildV1ExampleGetFetcher();
11
- var useV1Example = (headers, swrConfig) => {
11
+ var useV1Example = (swrConfig) => {
12
12
  const key = __internal__requestUrl("/api/v1/example");
13
13
  const result = useSWR(
14
14
  swrConfig?.shouldNotFetch ? null : key,
15
- buildV1ExampleGetFetcher({ headers }),
15
+ buildV1ExampleGetFetcher(),
16
16
  swrConfig
17
17
  );
18
18
  return { key, ...result };
19
19
  };
20
- var useV1ExampleImmutable = (headers, swrConfig) => {
20
+ var useV1ExampleImmutable = (swrConfig) => {
21
21
  const key = __internal__requestUrl("/api/v1/example");
22
22
  const result = useSWRImmutable(
23
23
  swrConfig?.shouldNotFetch ? null : key,
24
- buildV1ExampleGetFetcher({ headers }),
24
+ buildV1ExampleGetFetcher(),
25
25
  swrConfig
26
26
  );
27
27
  return { key, ...result };
@@ -1,17 +1,12 @@
1
1
  import { paths } from '../schemaType.mjs';
2
- import { ForceDig } from '@readyfor/api-client-base';
3
2
 
4
3
  type V1ExampleGetOperation = paths["/api/v1/example"]["get"];
5
4
  type V1ExampleGetResponse = V1ExampleGetOperation["responses"]["200"]["content"]["application/json"];
6
5
  declare const buildV1ExampleGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
6
  value: string;
8
7
  }>;
9
- type V1ExampleGetHeader = ForceDig<V1ExampleGetOperation, [
10
- "parameters",
11
- "header"
12
- ]>;
13
- declare const getV1Example: (headers: V1ExampleGetHeader, requestBody: FormData, requestInit?: RequestInit) => Promise<{
8
+ declare const getV1Example: (requestBody: FormData, requestInit?: RequestInit) => Promise<{
14
9
  value: string;
15
10
  }>;
16
11
 
17
- export { type V1ExampleGetHeader, type V1ExampleGetResponse, buildV1ExampleGetFetcher, getV1Example };
12
+ export { type V1ExampleGetResponse, buildV1ExampleGetFetcher, getV1Example };
@@ -1,17 +1,12 @@
1
1
  import { paths } from '../schemaType.js';
2
- import { ForceDig } from '@readyfor/api-client-base';
3
2
 
4
3
  type V1ExampleGetOperation = paths["/api/v1/example"]["get"];
5
4
  type V1ExampleGetResponse = V1ExampleGetOperation["responses"]["200"]["content"]["application/json"];
6
5
  declare const buildV1ExampleGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
6
  value: string;
8
7
  }>;
9
- type V1ExampleGetHeader = ForceDig<V1ExampleGetOperation, [
10
- "parameters",
11
- "header"
12
- ]>;
13
- declare const getV1Example: (headers: V1ExampleGetHeader, requestBody: FormData, requestInit?: RequestInit) => Promise<{
8
+ declare const getV1Example: (requestBody: FormData, requestInit?: RequestInit) => Promise<{
14
9
  value: string;
15
10
  }>;
16
11
 
17
- export { type V1ExampleGetHeader, type V1ExampleGetResponse, buildV1ExampleGetFetcher, getV1Example };
12
+ export { type V1ExampleGetResponse, buildV1ExampleGetFetcher, getV1Example };
@@ -32,10 +32,9 @@ var ExampleModel = import_zod.z.object({ value: import_zod.z.string() });
32
32
 
33
33
  // src/fetch/v1Example.ts
34
34
  var buildV1ExampleGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(ExampleModel, { ...requestInit });
35
- var getV1Example = (headers, requestBody, requestInit) => buildV1ExampleGetFetcher()((0, import_api_client_base.__internal__requestUrl)("/api/v1/example"), {
35
+ var getV1Example = (requestBody, requestInit) => buildV1ExampleGetFetcher()((0, import_api_client_base.__internal__requestUrl)("/api/v1/example"), {
36
36
  ...requestInit,
37
37
  method: "GET",
38
- headers,
39
38
  body: requestBody
40
39
  });
41
40
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildV1ExampleGetFetcher,
3
3
  getV1Example
4
- } from "../chunk-P5CNIF27.mjs";
4
+ } from "../chunk-BPM425IG.mjs";
5
5
  import "../chunk-77MRBHHK.mjs";
6
6
  export {
7
7
  buildV1ExampleGetFetcher,
@@ -4,4 +4,3 @@ import 'swr';
4
4
  import '@readyfor/api-client-base/react';
5
5
  import '../fetch/v1Example.mjs';
6
6
  import '../schemaType.mjs';
7
- import '@readyfor/api-client-base';
@@ -4,4 +4,3 @@ import 'swr';
4
4
  import '@readyfor/api-client-base/react';
5
5
  import '../fetch/v1Example.js';
6
6
  import '../schemaType.js';
7
- import '@readyfor/api-client-base';
@@ -52,20 +52,20 @@ var buildV1ExampleGetFetcher = (requestInit) => (0, import_api_client_base.creat
52
52
 
53
53
  // src/hooks/useV1Example.ts
54
54
  var v1ExampleGetFetcher = buildV1ExampleGetFetcher();
55
- var useV1Example = (headers, swrConfig) => {
55
+ var useV1Example = (swrConfig) => {
56
56
  const key = (0, import_api_client_base2.__internal__requestUrl)("/api/v1/example");
57
57
  const result = (0, import_swr.default)(
58
58
  swrConfig?.shouldNotFetch ? null : key,
59
- buildV1ExampleGetFetcher({ headers }),
59
+ buildV1ExampleGetFetcher(),
60
60
  swrConfig
61
61
  );
62
62
  return { key, ...result };
63
63
  };
64
- var useV1ExampleImmutable = (headers, swrConfig) => {
64
+ var useV1ExampleImmutable = (swrConfig) => {
65
65
  const key = (0, import_api_client_base2.__internal__requestUrl)("/api/v1/example");
66
66
  const result = (0, import_immutable.default)(
67
67
  swrConfig?.shouldNotFetch ? null : key,
68
- buildV1ExampleGetFetcher({ headers }),
68
+ buildV1ExampleGetFetcher(),
69
69
  swrConfig
70
70
  );
71
71
  return { key, ...result };
@@ -2,9 +2,9 @@ import {
2
2
  useV1Example,
3
3
  useV1ExampleImmutable,
4
4
  useV1ExampleInfinite
5
- } from "../chunk-EDERCAMK.mjs";
5
+ } from "../chunk-V2EIWQUV.mjs";
6
6
  import "../chunk-WY7GF7TX.mjs";
7
- import "../chunk-P5CNIF27.mjs";
7
+ import "../chunk-BPM425IG.mjs";
8
8
  import "../chunk-77MRBHHK.mjs";
9
9
  export {
10
10
  useV1Example,
@@ -3,11 +3,10 @@ import { SWRInfiniteKeyLoader, SWRInfiniteConfiguration } from 'swr/infinite';
3
3
  import * as swr from 'swr';
4
4
  import { Arguments } from 'swr';
5
5
  import { Configuration } from '@readyfor/api-client-base/react';
6
- import { V1ExampleGetHeader, V1ExampleGetResponse } from '../fetch/v1Example.mjs';
6
+ import { V1ExampleGetResponse } from '../fetch/v1Example.mjs';
7
7
  import '../schemaType.mjs';
8
- import '@readyfor/api-client-base';
9
8
 
10
- declare const useV1Example: (headers: V1ExampleGetHeader, swrConfig?: Configuration<V1ExampleGetResponse>) => {
9
+ declare const useV1Example: (swrConfig?: Configuration<V1ExampleGetResponse>) => {
11
10
  data: {
12
11
  value: string;
13
12
  } | undefined;
@@ -19,7 +18,7 @@ declare const useV1Example: (headers: V1ExampleGetHeader, swrConfig?: Configurat
19
18
  isLoading: boolean;
20
19
  key: string;
21
20
  };
22
- declare const useV1ExampleImmutable: (headers: V1ExampleGetHeader, swrConfig?: Configuration<V1ExampleGetResponse>) => {
21
+ declare const useV1ExampleImmutable: (swrConfig?: Configuration<V1ExampleGetResponse>) => {
23
22
  data: {
24
23
  value: string;
25
24
  } | undefined;
@@ -3,11 +3,10 @@ import { SWRInfiniteKeyLoader, SWRInfiniteConfiguration } from 'swr/infinite';
3
3
  import * as swr from 'swr';
4
4
  import { Arguments } from 'swr';
5
5
  import { Configuration } from '@readyfor/api-client-base/react';
6
- import { V1ExampleGetHeader, V1ExampleGetResponse } from '../fetch/v1Example.js';
6
+ import { V1ExampleGetResponse } from '../fetch/v1Example.js';
7
7
  import '../schemaType.js';
8
- import '@readyfor/api-client-base';
9
8
 
10
- declare const useV1Example: (headers: V1ExampleGetHeader, swrConfig?: Configuration<V1ExampleGetResponse>) => {
9
+ declare const useV1Example: (swrConfig?: Configuration<V1ExampleGetResponse>) => {
11
10
  data: {
12
11
  value: string;
13
12
  } | undefined;
@@ -19,7 +18,7 @@ declare const useV1Example: (headers: V1ExampleGetHeader, swrConfig?: Configurat
19
18
  isLoading: boolean;
20
19
  key: string;
21
20
  };
22
- declare const useV1ExampleImmutable: (headers: V1ExampleGetHeader, swrConfig?: Configuration<V1ExampleGetResponse>) => {
21
+ declare const useV1ExampleImmutable: (swrConfig?: Configuration<V1ExampleGetResponse>) => {
23
22
  data: {
24
23
  value: string;
25
24
  } | undefined;
@@ -50,20 +50,20 @@ var buildV1ExampleGetFetcher = (requestInit) => (0, import_api_client_base.creat
50
50
 
51
51
  // src/hooks/useV1Example.ts
52
52
  var v1ExampleGetFetcher = buildV1ExampleGetFetcher();
53
- var useV1Example = (headers, swrConfig) => {
53
+ var useV1Example = (swrConfig) => {
54
54
  const key = (0, import_api_client_base2.__internal__requestUrl)("/api/v1/example");
55
55
  const result = (0, import_swr.default)(
56
56
  swrConfig?.shouldNotFetch ? null : key,
57
- buildV1ExampleGetFetcher({ headers }),
57
+ buildV1ExampleGetFetcher(),
58
58
  swrConfig
59
59
  );
60
60
  return { key, ...result };
61
61
  };
62
- var useV1ExampleImmutable = (headers, swrConfig) => {
62
+ var useV1ExampleImmutable = (swrConfig) => {
63
63
  const key = (0, import_api_client_base2.__internal__requestUrl)("/api/v1/example");
64
64
  const result = (0, import_immutable.default)(
65
65
  swrConfig?.shouldNotFetch ? null : key,
66
- buildV1ExampleGetFetcher({ headers }),
66
+ buildV1ExampleGetFetcher(),
67
67
  swrConfig
68
68
  );
69
69
  return { key, ...result };
@@ -2,9 +2,9 @@ import {
2
2
  useV1Example,
3
3
  useV1ExampleImmutable,
4
4
  useV1ExampleInfinite
5
- } from "../chunk-EDERCAMK.mjs";
5
+ } from "../chunk-V2EIWQUV.mjs";
6
6
  import "../chunk-WY7GF7TX.mjs";
7
- import "../chunk-P5CNIF27.mjs";
7
+ import "../chunk-BPM425IG.mjs";
8
8
  import "../chunk-77MRBHHK.mjs";
9
9
  export {
10
10
  useV1Example,
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  export { $defs, components, external, operations, paths, webhooks } from './schemaType.mjs';
2
2
  export { ExampleModel } from './components.mjs';
3
- export { V1ExampleGetHeader, V1ExampleGetResponse, buildV1ExampleGetFetcher, getV1Example } from './fetch/v1Example.mjs';
3
+ export { V1ExampleGetResponse, buildV1ExampleGetFetcher, getV1Example } from './fetch/v1Example.mjs';
4
4
  import 'zod';
5
- import '@readyfor/api-client-base';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export { $defs, components, external, operations, paths, webhooks } from './schemaType.js';
2
2
  export { ExampleModel } from './components.js';
3
- export { V1ExampleGetHeader, V1ExampleGetResponse, buildV1ExampleGetFetcher, getV1Example } from './fetch/v1Example.js';
3
+ export { V1ExampleGetResponse, buildV1ExampleGetFetcher, getV1Example } from './fetch/v1Example.js';
4
4
  import 'zod';
5
- import '@readyfor/api-client-base';
package/dist/index.js CHANGED
@@ -33,10 +33,9 @@ var ExampleModel = import_zod.z.object({ value: import_zod.z.string() });
33
33
  // src/fetch/v1Example.ts
34
34
  var import_api_client_base = require("@readyfor/api-client-base");
35
35
  var buildV1ExampleGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(ExampleModel, { ...requestInit });
36
- var getV1Example = (headers, requestBody, requestInit) => buildV1ExampleGetFetcher()((0, import_api_client_base.__internal__requestUrl)("/api/v1/example"), {
36
+ var getV1Example = (requestBody, requestInit) => buildV1ExampleGetFetcher()((0, import_api_client_base.__internal__requestUrl)("/api/v1/example"), {
37
37
  ...requestInit,
38
38
  method: "GET",
39
- headers,
40
39
  body: requestBody
41
40
  });
42
41
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import "./chunk-WY7GF7TX.mjs";
2
2
  import {
3
3
  buildV1ExampleGetFetcher,
4
4
  getV1Example
5
- } from "./chunk-P5CNIF27.mjs";
5
+ } from "./chunk-BPM425IG.mjs";
6
6
  import {
7
7
  ExampleModel
8
8
  } from "./chunk-77MRBHHK.mjs";
@@ -32,11 +32,6 @@ type external = Record<string, never>;
32
32
  interface operations {
33
33
  /** example */
34
34
  V1Example: {
35
- parameters: {
36
- header: {
37
- Authorization: string;
38
- };
39
- };
40
35
  responses: {
41
36
  /** @description OK */
42
37
  200: {
@@ -32,11 +32,6 @@ type external = Record<string, never>;
32
32
  interface operations {
33
33
  /** example */
34
34
  V1Example: {
35
- parameters: {
36
- header: {
37
- Authorization: string;
38
- };
39
- };
40
35
  responses: {
41
36
  /** @description OK */
42
37
  200: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readyfor/api-client-pigeon",
3
- "version": "0.156.0-pr911.80e14d4",
3
+ "version": "0.156.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20,7 +20,11 @@
20
20
  "require": "./dist/hooks/index.js"
21
21
  }
22
22
  },
23
+ "scripts": {
24
+ "build": "tsup"
25
+ },
23
26
  "devDependencies": {
27
+ "@readyfor/api-client-base": "0.156.0",
24
28
  "@types/qs": "6.9.17",
25
29
  "@types/react": "^18.3.12",
26
30
  "@types/use-sync-external-store": "0.0.6",
@@ -28,16 +32,15 @@
28
32
  "react": "^18.3.1",
29
33
  "swr": "^2.2.5",
30
34
  "use-sync-external-store": "^1.2.2",
31
- "zod": "^3.23.8",
32
- "@readyfor/api-client-base": "0.156.0-pr911.80e14d4"
35
+ "zod": "^3.23.8"
33
36
  },
34
37
  "peerDependencies": {
38
+ "@readyfor/api-client-base": "*",
35
39
  "qs": "^6",
36
40
  "react": "^18",
37
41
  "swr": "^2",
38
42
  "use-sync-external-store": "1.2.2",
39
- "zod": "^3",
40
- "@readyfor/api-client-base": "0.156.0-pr911.80e14d4"
43
+ "zod": "^3"
41
44
  },
42
45
  "peerDependenciesMeta": {
43
46
  "react": {
@@ -62,7 +65,5 @@
62
65
  "src"
63
66
  ]
64
67
  },
65
- "scripts": {
66
- "build": "tsup"
67
- }
68
- }
68
+ "gitHead": "73b4ee95269b24cc802c1457a331e9e44c8b9e27"
69
+ }