@readyfor/api-client-pigeon 0.167.0 → 0.169.0-pr898.30fdbe2

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,6 +1,6 @@
1
1
  import {
2
2
  buildCampaignsGetFetcher
3
- } from "./chunk-5ABKVLAJ.mjs";
3
+ } from "./chunk-IOFBDHPP.mjs";
4
4
 
5
5
  // src/hooks/useCampaigns.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -32,7 +32,7 @@ var Campaign = z.object({
32
32
  });
33
33
  var PostCampaignsRequestBody = z.object({ kind: CampaignKind });
34
34
  var PostCampaignsResponse = z.object({ id: z.number() });
35
- var GetCampaigns = z.object({
35
+ var GetCampaignsResponse = z.object({
36
36
  campaigns: z.array(Campaign),
37
37
  pagination: Pagination
38
38
  });
@@ -44,5 +44,5 @@ export {
44
44
  Campaign,
45
45
  PostCampaignsRequestBody,
46
46
  PostCampaignsResponse,
47
- GetCampaigns
47
+ GetCampaignsResponse
48
48
  };
@@ -1,14 +1,14 @@
1
1
  import {
2
- GetCampaigns,
2
+ GetCampaignsResponse,
3
3
  PostCampaignsResponse
4
- } from "./chunk-6ZPXNB6H.mjs";
4
+ } from "./chunk-6US3CWHW.mjs";
5
5
 
6
6
  // src/fetch/campaigns.ts
7
7
  import {
8
8
  createJsonFetcher,
9
9
  __internal__requestUrl
10
10
  } from "@readyfor/api-client-base";
11
- var buildCampaignsGetFetcher = (requestInit) => createJsonFetcher(GetCampaigns, { ...requestInit });
11
+ var buildCampaignsGetFetcher = (requestInit) => createJsonFetcher(GetCampaignsResponse, { ...requestInit });
12
12
  var getCampaigns = (query, requestInit) => buildCampaignsGetFetcher()(
13
13
  __internal__requestUrl("/api/campaigns", {}, query),
14
14
  { ...requestInit, method: "GET" }
@@ -69,7 +69,7 @@ declare const PostCampaignsResponse: z.ZodObject<{
69
69
  }, {
70
70
  id: number;
71
71
  }>;
72
- declare const GetCampaigns: z.ZodObject<{
72
+ declare const GetCampaignsResponse: z.ZodObject<{
73
73
  campaigns: z.ZodArray<z.ZodObject<{
74
74
  id: z.ZodNumber;
75
75
  title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
@@ -165,4 +165,4 @@ declare const GetCampaigns: z.ZodObject<{
165
165
  };
166
166
  }>;
167
167
 
168
- export { Campaign, CampaignKind, CampaignStatus, GetCampaigns, Pagination, PostCampaignsRequestBody, PostCampaignsResponse };
168
+ export { Campaign, CampaignKind, CampaignStatus, GetCampaignsResponse, Pagination, PostCampaignsRequestBody, PostCampaignsResponse };
@@ -69,7 +69,7 @@ declare const PostCampaignsResponse: z.ZodObject<{
69
69
  }, {
70
70
  id: number;
71
71
  }>;
72
- declare const GetCampaigns: z.ZodObject<{
72
+ declare const GetCampaignsResponse: z.ZodObject<{
73
73
  campaigns: z.ZodArray<z.ZodObject<{
74
74
  id: z.ZodNumber;
75
75
  title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
@@ -165,4 +165,4 @@ declare const GetCampaigns: z.ZodObject<{
165
165
  };
166
166
  }>;
167
167
 
168
- export { Campaign, CampaignKind, CampaignStatus, GetCampaigns, Pagination, PostCampaignsRequestBody, PostCampaignsResponse };
168
+ export { Campaign, CampaignKind, CampaignStatus, GetCampaignsResponse, Pagination, PostCampaignsRequestBody, PostCampaignsResponse };
@@ -23,7 +23,7 @@ __export(components_exports, {
23
23
  Campaign: () => Campaign,
24
24
  CampaignKind: () => CampaignKind,
25
25
  CampaignStatus: () => CampaignStatus,
26
- GetCampaigns: () => GetCampaigns,
26
+ GetCampaignsResponse: () => GetCampaignsResponse,
27
27
  Pagination: () => Pagination,
28
28
  PostCampaignsRequestBody: () => PostCampaignsRequestBody,
29
29
  PostCampaignsResponse: () => PostCampaignsResponse
@@ -62,7 +62,7 @@ var Campaign = import_zod.z.object({
62
62
  });
63
63
  var PostCampaignsRequestBody = import_zod.z.object({ kind: CampaignKind });
64
64
  var PostCampaignsResponse = import_zod.z.object({ id: import_zod.z.number() });
65
- var GetCampaigns = import_zod.z.object({
65
+ var GetCampaignsResponse = import_zod.z.object({
66
66
  campaigns: import_zod.z.array(Campaign),
67
67
  pagination: Pagination
68
68
  });
@@ -71,7 +71,7 @@ var GetCampaigns = import_zod.z.object({
71
71
  Campaign,
72
72
  CampaignKind,
73
73
  CampaignStatus,
74
- GetCampaigns,
74
+ GetCampaignsResponse,
75
75
  Pagination,
76
76
  PostCampaignsRequestBody,
77
77
  PostCampaignsResponse
@@ -2,16 +2,16 @@ import {
2
2
  Campaign,
3
3
  CampaignKind,
4
4
  CampaignStatus,
5
- GetCampaigns,
5
+ GetCampaignsResponse,
6
6
  Pagination,
7
7
  PostCampaignsRequestBody,
8
8
  PostCampaignsResponse
9
- } from "./chunk-6ZPXNB6H.mjs";
9
+ } from "./chunk-6US3CWHW.mjs";
10
10
  export {
11
11
  Campaign,
12
12
  CampaignKind,
13
13
  CampaignStatus,
14
- GetCampaigns,
14
+ GetCampaignsResponse,
15
15
  Pagination,
16
16
  PostCampaignsRequestBody,
17
17
  PostCampaignsResponse
@@ -62,13 +62,13 @@ var Campaign = import_zod.z.object({
62
62
  });
63
63
  var PostCampaignsRequestBody = import_zod.z.object({ kind: CampaignKind });
64
64
  var PostCampaignsResponse = import_zod.z.object({ id: import_zod.z.number() });
65
- var GetCampaigns = import_zod.z.object({
65
+ var GetCampaignsResponse = import_zod.z.object({
66
66
  campaigns: import_zod.z.array(Campaign),
67
67
  pagination: Pagination
68
68
  });
69
69
 
70
70
  // src/fetch/campaigns.ts
71
- var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaigns, { ...requestInit });
71
+ var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsResponse, { ...requestInit });
72
72
  var getCampaigns = (query, requestInit) => buildCampaignsGetFetcher()(
73
73
  (0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query),
74
74
  { ...requestInit, method: "GET" }
@@ -3,8 +3,8 @@ import {
3
3
  buildCampaignsPostFetcher,
4
4
  getCampaigns,
5
5
  postCampaigns
6
- } from "../chunk-5ABKVLAJ.mjs";
7
- import "../chunk-6ZPXNB6H.mjs";
6
+ } from "../chunk-IOFBDHPP.mjs";
7
+ import "../chunk-6US3CWHW.mjs";
8
8
  export {
9
9
  buildCampaignsGetFetcher,
10
10
  buildCampaignsPostFetcher,
@@ -77,14 +77,14 @@ var Campaign = import_zod.z.object({
77
77
  });
78
78
  var PostCampaignsRequestBody = import_zod.z.object({ kind: CampaignKind });
79
79
  var PostCampaignsResponse = import_zod.z.object({ id: import_zod.z.number() });
80
- var GetCampaigns = import_zod.z.object({
80
+ var GetCampaignsResponse = import_zod.z.object({
81
81
  campaigns: import_zod.z.array(Campaign),
82
82
  pagination: Pagination
83
83
  });
84
84
 
85
85
  // src/fetch/campaigns.ts
86
86
  var import_api_client_base = require("@readyfor/api-client-base");
87
- var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaigns, { ...requestInit });
87
+ var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsResponse, { ...requestInit });
88
88
 
89
89
  // src/hooks/useCampaigns.ts
90
90
  var campaignsGetFetcher = buildCampaignsGetFetcher();
@@ -2,10 +2,10 @@ import {
2
2
  useCampaigns,
3
3
  useCampaignsImmutable,
4
4
  useCampaignsInfinite
5
- } from "../chunk-HJV37TZY.mjs";
5
+ } from "../chunk-2PGNAMJH.mjs";
6
6
  import "../chunk-WY7GF7TX.mjs";
7
- import "../chunk-5ABKVLAJ.mjs";
8
- import "../chunk-6ZPXNB6H.mjs";
7
+ import "../chunk-IOFBDHPP.mjs";
8
+ import "../chunk-6US3CWHW.mjs";
9
9
  export {
10
10
  useCampaigns,
11
11
  useCampaignsImmutable,
@@ -75,14 +75,14 @@ var Campaign = import_zod.z.object({
75
75
  });
76
76
  var PostCampaignsRequestBody = import_zod.z.object({ kind: CampaignKind });
77
77
  var PostCampaignsResponse = import_zod.z.object({ id: import_zod.z.number() });
78
- var GetCampaigns = import_zod.z.object({
78
+ var GetCampaignsResponse = import_zod.z.object({
79
79
  campaigns: import_zod.z.array(Campaign),
80
80
  pagination: Pagination
81
81
  });
82
82
 
83
83
  // src/fetch/campaigns.ts
84
84
  var import_api_client_base = require("@readyfor/api-client-base");
85
- var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaigns, { ...requestInit });
85
+ var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsResponse, { ...requestInit });
86
86
 
87
87
  // src/hooks/useCampaigns.ts
88
88
  var campaignsGetFetcher = buildCampaignsGetFetcher();
@@ -2,10 +2,10 @@ import {
2
2
  useCampaigns,
3
3
  useCampaignsImmutable,
4
4
  useCampaignsInfinite
5
- } from "../chunk-HJV37TZY.mjs";
5
+ } from "../chunk-2PGNAMJH.mjs";
6
6
  import "../chunk-WY7GF7TX.mjs";
7
- import "../chunk-5ABKVLAJ.mjs";
8
- import "../chunk-6ZPXNB6H.mjs";
7
+ import "../chunk-IOFBDHPP.mjs";
8
+ import "../chunk-6US3CWHW.mjs";
9
9
  export {
10
10
  useCampaigns,
11
11
  useCampaignsImmutable,
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { $defs, components, external, operations, paths, webhooks } from './schemaType.mjs';
2
- export { Campaign, CampaignKind, CampaignStatus, GetCampaigns, Pagination, PostCampaignsRequestBody, PostCampaignsResponse } from './components.mjs';
2
+ export { Campaign, CampaignKind, CampaignStatus, GetCampaignsResponse, Pagination, PostCampaignsRequestBody, PostCampaignsResponse } from './components.mjs';
3
3
  export { CampaignsGetQuery, CampaignsGetResponse, CampaignsPostRequestBody, CampaignsPostResponse, buildCampaignsGetFetcher, buildCampaignsPostFetcher, getCampaigns, postCampaigns } from './fetch/campaigns.mjs';
4
4
  import 'zod';
5
5
  import '@readyfor/api-client-base';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { $defs, components, external, operations, paths, webhooks } from './schemaType.js';
2
- export { Campaign, CampaignKind, CampaignStatus, GetCampaigns, Pagination, PostCampaignsRequestBody, PostCampaignsResponse } from './components.js';
2
+ export { Campaign, CampaignKind, CampaignStatus, GetCampaignsResponse, Pagination, PostCampaignsRequestBody, PostCampaignsResponse } from './components.js';
3
3
  export { CampaignsGetQuery, CampaignsGetResponse, CampaignsPostRequestBody, CampaignsPostResponse, buildCampaignsGetFetcher, buildCampaignsPostFetcher, getCampaigns, postCampaigns } from './fetch/campaigns.js';
4
4
  import 'zod';
5
5
  import '@readyfor/api-client-base';
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ __export(src_exports, {
23
23
  Campaign: () => Campaign,
24
24
  CampaignKind: () => CampaignKind,
25
25
  CampaignStatus: () => CampaignStatus,
26
- GetCampaigns: () => GetCampaigns,
26
+ GetCampaignsResponse: () => GetCampaignsResponse,
27
27
  Pagination: () => Pagination,
28
28
  PostCampaignsRequestBody: () => PostCampaignsRequestBody,
29
29
  PostCampaignsResponse: () => PostCampaignsResponse,
@@ -68,14 +68,14 @@ var Campaign = import_zod.z.object({
68
68
  });
69
69
  var PostCampaignsRequestBody = import_zod.z.object({ kind: CampaignKind });
70
70
  var PostCampaignsResponse = import_zod.z.object({ id: import_zod.z.number() });
71
- var GetCampaigns = import_zod.z.object({
71
+ var GetCampaignsResponse = import_zod.z.object({
72
72
  campaigns: import_zod.z.array(Campaign),
73
73
  pagination: Pagination
74
74
  });
75
75
 
76
76
  // src/fetch/campaigns.ts
77
77
  var import_api_client_base = require("@readyfor/api-client-base");
78
- var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaigns, { ...requestInit });
78
+ var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsResponse, { ...requestInit });
79
79
  var getCampaigns = (query, requestInit) => buildCampaignsGetFetcher()(
80
80
  (0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query),
81
81
  { ...requestInit, method: "GET" }
@@ -92,7 +92,7 @@ var postCampaigns = (requestBody, requestInit) => buildCampaignsPostFetcher()((0
92
92
  Campaign,
93
93
  CampaignKind,
94
94
  CampaignStatus,
95
- GetCampaigns,
95
+ GetCampaignsResponse,
96
96
  Pagination,
97
97
  PostCampaignsRequestBody,
98
98
  PostCampaignsResponse,
package/dist/index.mjs CHANGED
@@ -4,21 +4,21 @@ import {
4
4
  buildCampaignsPostFetcher,
5
5
  getCampaigns,
6
6
  postCampaigns
7
- } from "./chunk-5ABKVLAJ.mjs";
7
+ } from "./chunk-IOFBDHPP.mjs";
8
8
  import {
9
9
  Campaign,
10
10
  CampaignKind,
11
11
  CampaignStatus,
12
- GetCampaigns,
12
+ GetCampaignsResponse,
13
13
  Pagination,
14
14
  PostCampaignsRequestBody,
15
15
  PostCampaignsResponse
16
- } from "./chunk-6ZPXNB6H.mjs";
16
+ } from "./chunk-6US3CWHW.mjs";
17
17
  export {
18
18
  Campaign,
19
19
  CampaignKind,
20
20
  CampaignStatus,
21
- GetCampaigns,
21
+ GetCampaignsResponse,
22
22
  Pagination,
23
23
  PostCampaignsRequestBody,
24
24
  PostCampaignsResponse,
@@ -14,7 +14,7 @@ type webhooks = Record<string, never>;
14
14
  interface components {
15
15
  schemas: {
16
16
  /**
17
- * GetCampaigns
17
+ * GetCampaignsResponse
18
18
  * @example {
19
19
  * "pagination": {
20
20
  * "nextPage": 7,
@@ -48,7 +48,7 @@ interface components {
48
48
  * ]
49
49
  * }
50
50
  */
51
- GetCampaigns: {
51
+ GetCampaignsResponse: {
52
52
  campaigns: components["schemas"]["Campaign"][];
53
53
  pagination: components["schemas"]["Pagination"];
54
54
  };
@@ -161,7 +161,7 @@ interface operations {
161
161
  /** @description OK */
162
162
  200: {
163
163
  content: {
164
- "application/json": components["schemas"]["GetCampaigns"];
164
+ "application/json": components["schemas"]["GetCampaignsResponse"];
165
165
  };
166
166
  };
167
167
  };
@@ -14,7 +14,7 @@ type webhooks = Record<string, never>;
14
14
  interface components {
15
15
  schemas: {
16
16
  /**
17
- * GetCampaigns
17
+ * GetCampaignsResponse
18
18
  * @example {
19
19
  * "pagination": {
20
20
  * "nextPage": 7,
@@ -48,7 +48,7 @@ interface components {
48
48
  * ]
49
49
  * }
50
50
  */
51
- GetCampaigns: {
51
+ GetCampaignsResponse: {
52
52
  campaigns: components["schemas"]["Campaign"][];
53
53
  pagination: components["schemas"]["Pagination"];
54
54
  };
@@ -161,7 +161,7 @@ interface operations {
161
161
  /** @description OK */
162
162
  200: {
163
163
  content: {
164
- "application/json": components["schemas"]["GetCampaigns"];
164
+ "application/json": components["schemas"]["GetCampaignsResponse"];
165
165
  };
166
166
  };
167
167
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readyfor/api-client-pigeon",
3
- "version": "0.167.0",
3
+ "version": "0.169.0-pr898.30fdbe2",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20,11 +20,7 @@
20
20
  "require": "./dist/hooks/index.js"
21
21
  }
22
22
  },
23
- "scripts": {
24
- "build": "tsup"
25
- },
26
23
  "devDependencies": {
27
- "@readyfor/api-client-base": "0.167.0",
28
24
  "@types/qs": "6.9.17",
29
25
  "@types/react": "^18.3.12",
30
26
  "@types/use-sync-external-store": "0.0.6",
@@ -32,15 +28,16 @@
32
28
  "react": "^18.3.1",
33
29
  "swr": "^2.2.5",
34
30
  "use-sync-external-store": "^1.2.2",
35
- "zod": "^3.24.1"
31
+ "zod": "^3.24.1",
32
+ "@readyfor/api-client-base": "0.169.0-pr898.30fdbe2"
36
33
  },
37
34
  "peerDependencies": {
38
- "@readyfor/api-client-base": "*",
39
35
  "qs": "^6",
40
36
  "react": "^18",
41
37
  "swr": "^2",
42
38
  "use-sync-external-store": "1.2.2",
43
- "zod": "^3"
39
+ "zod": "^3",
40
+ "@readyfor/api-client-base": "0.169.0-pr898.30fdbe2"
44
41
  },
45
42
  "peerDependenciesMeta": {
46
43
  "react": {
@@ -65,5 +62,7 @@
65
62
  "src"
66
63
  ]
67
64
  },
68
- "gitHead": "fc4d856ccad042d447df24653fa65eef27772cd3"
69
- }
65
+ "scripts": {
66
+ "build": "tsup"
67
+ }
68
+ }