@readyfor/api-client-pigeon 0.162.0-pr927.e2f436d → 0.162.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,9 +8,10 @@ import {
8
8
  __internal__requestUrl
9
9
  } from "@readyfor/api-client-base";
10
10
  var buildV1ExampleGetFetcher = (requestInit) => createJsonFetcher(ExampleModel, { ...requestInit });
11
- var getV1Example = (requestInit) => buildV1ExampleGetFetcher()(__internal__requestUrl("/api/v1/example"), {
11
+ var getV1Example = (requestBody, requestInit) => buildV1ExampleGetFetcher()(__internal__requestUrl("/api/v1/example"), {
12
12
  ...requestInit,
13
- method: "GET"
13
+ method: "GET",
14
+ body: requestBody
14
15
  });
15
16
 
16
17
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildV1ExampleGetFetcher
3
- } from "./chunk-R5STKOXL.mjs";
3
+ } from "./chunk-BPM425IG.mjs";
4
4
 
5
5
  // src/hooks/useV1Example.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -5,7 +5,7 @@ type V1ExampleGetResponse = V1ExampleGetOperation["responses"]["200"]["content"]
5
5
  declare const buildV1ExampleGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
6
  value: string;
7
7
  }>;
8
- declare const getV1Example: (requestInit?: RequestInit) => Promise<{
8
+ declare const getV1Example: (requestBody: FormData, requestInit?: RequestInit) => Promise<{
9
9
  value: string;
10
10
  }>;
11
11
 
@@ -5,7 +5,7 @@ type V1ExampleGetResponse = V1ExampleGetOperation["responses"]["200"]["content"]
5
5
  declare const buildV1ExampleGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
6
  value: string;
7
7
  }>;
8
- declare const getV1Example: (requestInit?: RequestInit) => Promise<{
8
+ declare const getV1Example: (requestBody: FormData, requestInit?: RequestInit) => Promise<{
9
9
  value: string;
10
10
  }>;
11
11
 
@@ -32,9 +32,10 @@ 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 = (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
- method: "GET"
37
+ method: "GET",
38
+ body: requestBody
38
39
  });
39
40
  // Annotate the CommonJS export names for ESM import in node:
40
41
  0 && (module.exports = {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildV1ExampleGetFetcher,
3
3
  getV1Example
4
- } from "../chunk-R5STKOXL.mjs";
4
+ } from "../chunk-BPM425IG.mjs";
5
5
  import "../chunk-77MRBHHK.mjs";
6
6
  export {
7
7
  buildV1ExampleGetFetcher,
@@ -2,9 +2,9 @@ import {
2
2
  useV1Example,
3
3
  useV1ExampleImmutable,
4
4
  useV1ExampleInfinite
5
- } from "../chunk-HJ4QTN4K.mjs";
5
+ } from "../chunk-J5RHLJQH.mjs";
6
6
  import "../chunk-WY7GF7TX.mjs";
7
- import "../chunk-R5STKOXL.mjs";
7
+ import "../chunk-BPM425IG.mjs";
8
8
  import "../chunk-77MRBHHK.mjs";
9
9
  export {
10
10
  useV1Example,
@@ -2,9 +2,9 @@ import {
2
2
  useV1Example,
3
3
  useV1ExampleImmutable,
4
4
  useV1ExampleInfinite
5
- } from "../chunk-HJ4QTN4K.mjs";
5
+ } from "../chunk-J5RHLJQH.mjs";
6
6
  import "../chunk-WY7GF7TX.mjs";
7
- import "../chunk-R5STKOXL.mjs";
7
+ import "../chunk-BPM425IG.mjs";
8
8
  import "../chunk-77MRBHHK.mjs";
9
9
  export {
10
10
  useV1Example,
package/dist/index.js CHANGED
@@ -33,9 +33,10 @@ 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 = (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
- method: "GET"
38
+ method: "GET",
39
+ body: requestBody
39
40
  });
40
41
  // Annotate the CommonJS export names for ESM import in node:
41
42
  0 && (module.exports = {
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-R5STKOXL.mjs";
5
+ } from "./chunk-BPM425IG.mjs";
6
6
  import {
7
7
  ExampleModel
8
8
  } from "./chunk-77MRBHHK.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readyfor/api-client-pigeon",
3
- "version": "0.162.0-pr927.e2f436d",
3
+ "version": "0.162.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.162.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.24.1",
32
- "@readyfor/api-client-base": "0.162.0-pr927.e2f436d"
35
+ "zod": "^3.24.1"
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.162.0-pr927.e2f436d"
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": "6fa7e7b91161ab65c3645b07ceca61122f479906"
69
+ }