@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.
- package/dist/{chunk-P5CNIF27.mjs → chunk-BPM425IG.mjs} +1 -2
- package/dist/{chunk-EDERCAMK.mjs → chunk-V2EIWQUV.mjs} +5 -5
- package/dist/fetch/v1Example.d.mts +2 -7
- package/dist/fetch/v1Example.d.ts +2 -7
- package/dist/fetch/v1Example.js +1 -2
- package/dist/fetch/v1Example.mjs +1 -1
- package/dist/hooks/index.d.mts +0 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/index.mjs +2 -2
- package/dist/hooks/useV1Example.d.mts +3 -4
- package/dist/hooks/useV1Example.d.ts +3 -4
- package/dist/hooks/useV1Example.js +4 -4
- package/dist/hooks/useV1Example.mjs +2 -2
- package/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/index.mjs +1 -1
- package/dist/schemaType.d.mts +0 -5
- package/dist/schemaType.d.ts +0 -5
- package/package.json +10 -9
|
@@ -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 = (
|
|
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-
|
|
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 = (
|
|
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(
|
|
15
|
+
buildV1ExampleGetFetcher(),
|
|
16
16
|
swrConfig
|
|
17
17
|
);
|
|
18
18
|
return { key, ...result };
|
|
19
19
|
};
|
|
20
|
-
var useV1ExampleImmutable = (
|
|
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(
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
12
|
+
export { type V1ExampleGetResponse, buildV1ExampleGetFetcher, getV1Example };
|
package/dist/fetch/v1Example.js
CHANGED
|
@@ -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 = (
|
|
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:
|
package/dist/fetch/v1Example.mjs
CHANGED
package/dist/hooks/index.d.mts
CHANGED
package/dist/hooks/index.d.ts
CHANGED
package/dist/hooks/index.js
CHANGED
|
@@ -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 = (
|
|
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(
|
|
59
|
+
buildV1ExampleGetFetcher(),
|
|
60
60
|
swrConfig
|
|
61
61
|
);
|
|
62
62
|
return { key, ...result };
|
|
63
63
|
};
|
|
64
|
-
var useV1ExampleImmutable = (
|
|
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(
|
|
68
|
+
buildV1ExampleGetFetcher(),
|
|
69
69
|
swrConfig
|
|
70
70
|
);
|
|
71
71
|
return { key, ...result };
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
useV1Example,
|
|
3
3
|
useV1ExampleImmutable,
|
|
4
4
|
useV1ExampleInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-V2EIWQUV.mjs";
|
|
6
6
|
import "../chunk-WY7GF7TX.mjs";
|
|
7
|
-
import "../chunk-
|
|
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 {
|
|
6
|
+
import { V1ExampleGetResponse } from '../fetch/v1Example.mjs';
|
|
7
7
|
import '../schemaType.mjs';
|
|
8
|
-
import '@readyfor/api-client-base';
|
|
9
8
|
|
|
10
|
-
declare const useV1Example: (
|
|
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: (
|
|
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 {
|
|
6
|
+
import { V1ExampleGetResponse } from '../fetch/v1Example.js';
|
|
7
7
|
import '../schemaType.js';
|
|
8
|
-
import '@readyfor/api-client-base';
|
|
9
8
|
|
|
10
|
-
declare const useV1Example: (
|
|
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: (
|
|
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 = (
|
|
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(
|
|
57
|
+
buildV1ExampleGetFetcher(),
|
|
58
58
|
swrConfig
|
|
59
59
|
);
|
|
60
60
|
return { key, ...result };
|
|
61
61
|
};
|
|
62
|
-
var useV1ExampleImmutable = (
|
|
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(
|
|
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-
|
|
5
|
+
} from "../chunk-V2EIWQUV.mjs";
|
|
6
6
|
import "../chunk-WY7GF7TX.mjs";
|
|
7
|
-
import "../chunk-
|
|
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 {
|
|
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 {
|
|
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 = (
|
|
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
package/dist/schemaType.d.mts
CHANGED
package/dist/schemaType.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readyfor/api-client-pigeon",
|
|
3
|
-
"version": "0.156.0
|
|
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
|
-
"
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
}
|
|
68
|
+
"gitHead": "73b4ee95269b24cc802c1457a331e9e44c8b9e27"
|
|
69
|
+
}
|