@readyfor/api-client-readyfor 1.174.0 → 1.176.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.
@@ -2413,10 +2413,10 @@ export declare const Engagement_Project_AnnouncementSummary: z.ZodObject<{
2413
2413
  }, z.core.$strip>;
2414
2414
  export declare const Engagement_Project_SummaryTerminated: z.ZodObject<{
2415
2415
  __type: z.ZodLiteral<"Terminated">;
2416
- id: z.ZodOptional<z.ZodNumber>;
2416
+ id: z.ZodNumber;
2417
2417
  title: z.ZodString;
2418
2418
  fundingModel: z.ZodUnion<readonly [z.ZodLiteral<"allOrNothing">, z.ZodLiteral<"keepItAll">, z.ZodLiteral<"permanentSupport">, z.ZodLiteral<"regularSteady">]>;
2419
- fundraisingStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"open">, z.ZodLiteral<"expired">]>>;
2419
+ fundraisingStatus: z.ZodUnion<readonly [z.ZodLiteral<"open">, z.ZodLiteral<"expired">]>;
2420
2420
  abstract: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
2421
2421
  ogImageUrl: z.ZodString;
2422
2422
  }, z.core.$strip>;
@@ -2428,7 +2428,7 @@ export declare const Engagement_Project_SummaryComingSoon: z.ZodObject<{
2428
2428
  abstract: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
2429
2429
  ogImageUrl: z.ZodString;
2430
2430
  fundingModel: z.ZodUnion<readonly [z.ZodLiteral<"allOrNothing">, z.ZodLiteral<"keepItAll">, z.ZodLiteral<"permanentSupport">, z.ZodLiteral<"regularSteady">]>;
2431
- fundraisingStatus: z.ZodOptional<z.ZodLiteral<"prepared">>;
2431
+ fundraisingStatus: z.ZodLiteral<"prepared">;
2432
2432
  projectType: z.ZodUnion<readonly [z.ZodLiteral<"normal">, z.ZodLiteral<"charity">, z.ZodLiteral<"emergency">, z.ZodLiteral<"furusatoTax">]>;
2433
2433
  goalPrice: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
2434
2434
  twitterHashTags: z.ZodString;
@@ -5512,16 +5512,16 @@ export declare const Engagement_Project_Summary: z.ZodUnion<readonly [z.ZodInter
5512
5512
  abstract: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
5513
5513
  ogImageUrl: z.ZodString;
5514
5514
  fundingModel: z.ZodUnion<readonly [z.ZodLiteral<"allOrNothing">, z.ZodLiteral<"keepItAll">, z.ZodLiteral<"permanentSupport">, z.ZodLiteral<"regularSteady">]>;
5515
- fundraisingStatus: z.ZodOptional<z.ZodLiteral<"prepared">>;
5515
+ fundraisingStatus: z.ZodLiteral<"prepared">;
5516
5516
  projectType: z.ZodUnion<readonly [z.ZodLiteral<"normal">, z.ZodLiteral<"charity">, z.ZodLiteral<"emergency">, z.ZodLiteral<"furusatoTax">]>;
5517
5517
  goalPrice: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
5518
5518
  twitterHashTags: z.ZodString;
5519
5519
  }, z.core.$strip>, z.ZodObject<{
5520
5520
  __type: z.ZodLiteral<"Terminated">;
5521
- id: z.ZodOptional<z.ZodNumber>;
5521
+ id: z.ZodNumber;
5522
5522
  title: z.ZodString;
5523
5523
  fundingModel: z.ZodUnion<readonly [z.ZodLiteral<"allOrNothing">, z.ZodLiteral<"keepItAll">, z.ZodLiteral<"permanentSupport">, z.ZodLiteral<"regularSteady">]>;
5524
- fundraisingStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"open">, z.ZodLiteral<"expired">]>>;
5524
+ fundraisingStatus: z.ZodUnion<readonly [z.ZodLiteral<"open">, z.ZodLiteral<"expired">]>;
5525
5525
  abstract: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
5526
5526
  ogImageUrl: z.ZodString;
5527
5527
  }, z.core.$strip>]>;
@@ -1805,7 +1805,7 @@ const Engagement_Project_AnnouncementSummary = zod.z.object({
1805
1805
  });
1806
1806
  const Engagement_Project_SummaryTerminated = zod.z.object({
1807
1807
  __type: zod.z.literal("Terminated"),
1808
- id: zod.z.optional(zod.z.number()),
1808
+ id: zod.z.number(),
1809
1809
  title: zod.z.string(),
1810
1810
  fundingModel: zod.z.union([
1811
1811
  zod.z.literal("allOrNothing"),
@@ -1813,7 +1813,7 @@ const Engagement_Project_SummaryTerminated = zod.z.object({
1813
1813
  zod.z.literal("permanentSupport"),
1814
1814
  zod.z.literal("regularSteady")
1815
1815
  ]),
1816
- fundraisingStatus: zod.z.optional(zod.z.union([zod.z.literal("open"), zod.z.literal("expired")])),
1816
+ fundraisingStatus: zod.z.union([zod.z.literal("open"), zod.z.literal("expired")]),
1817
1817
  abstract: zod.z.union([zod.z.string(), zod.z.null()]),
1818
1818
  ogImageUrl: zod.z.string()
1819
1819
  });
@@ -1830,7 +1830,7 @@ const Engagement_Project_SummaryComingSoon = zod.z.object({
1830
1830
  zod.z.literal("permanentSupport"),
1831
1831
  zod.z.literal("regularSteady")
1832
1832
  ]),
1833
- fundraisingStatus: zod.z.optional(zod.z.literal("prepared")),
1833
+ fundraisingStatus: zod.z.literal("prepared"),
1834
1834
  projectType: zod.z.union([
1835
1835
  zod.z.literal("normal"),
1836
1836
  zod.z.literal("charity"),
@@ -1804,7 +1804,7 @@ const Engagement_Project_AnnouncementSummary = z.object({
1804
1804
  });
1805
1805
  const Engagement_Project_SummaryTerminated = z.object({
1806
1806
  __type: z.literal("Terminated"),
1807
- id: z.optional(z.number()),
1807
+ id: z.number(),
1808
1808
  title: z.string(),
1809
1809
  fundingModel: z.union([
1810
1810
  z.literal("allOrNothing"),
@@ -1812,7 +1812,7 @@ const Engagement_Project_SummaryTerminated = z.object({
1812
1812
  z.literal("permanentSupport"),
1813
1813
  z.literal("regularSteady")
1814
1814
  ]),
1815
- fundraisingStatus: z.optional(z.union([z.literal("open"), z.literal("expired")])),
1815
+ fundraisingStatus: z.union([z.literal("open"), z.literal("expired")]),
1816
1816
  abstract: z.union([z.string(), z.null()]),
1817
1817
  ogImageUrl: z.string()
1818
1818
  });
@@ -1829,7 +1829,7 @@ const Engagement_Project_SummaryComingSoon = z.object({
1829
1829
  z.literal("permanentSupport"),
1830
1830
  z.literal("regularSteady")
1831
1831
  ]),
1832
- fundraisingStatus: z.optional(z.literal("prepared")),
1832
+ fundraisingStatus: z.literal("prepared"),
1833
1833
  projectType: z.union([
1834
1834
  z.literal("normal"),
1835
1835
  z.literal("charity"),
@@ -4,12 +4,12 @@ type V1EngagementProjectsProjectKeywordGetOperation = paths["/api/v1/engagement/
4
4
  export type V1EngagementProjectsProjectKeywordGetResponse = V1EngagementProjectsProjectKeywordGetOperation["responses"]["200"]["content"]["application/json"];
5
5
  export declare const buildV1EngagementProjectsProjectKeywordGetFetcher: (requestInit?: RequestInit, options?: FetcherOptions) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
6
  __type: "Terminated";
7
+ id: number;
7
8
  title: string;
8
9
  fundingModel: "regularSteady" | "allOrNothing" | "keepItAll" | "permanentSupport";
10
+ fundraisingStatus: "open" | "expired";
9
11
  abstract: string | null;
10
12
  ogImageUrl: string;
11
- id?: number | undefined;
12
- fundraisingStatus?: "open" | "expired" | undefined;
13
13
  } | {
14
14
  __type: "ComingSoon";
15
15
  id: number;
@@ -18,10 +18,10 @@ export declare const buildV1EngagementProjectsProjectKeywordGetFetcher: (request
18
18
  abstract: string | null;
19
19
  ogImageUrl: string;
20
20
  fundingModel: "regularSteady" | "allOrNothing" | "keepItAll" | "permanentSupport";
21
+ fundraisingStatus: "prepared";
21
22
  projectType: "normal" | "charity" | "emergency" | "furusatoTax";
22
23
  goalPrice: number | null;
23
24
  twitterHashTags: string;
24
- fundraisingStatus?: "prepared" | undefined;
25
25
  } | ({
26
26
  id: number;
27
27
  keyword: string;
@@ -118,12 +118,12 @@ export declare const buildV1EngagementProjectsProjectKeywordGetFetcher: (request
118
118
  export type V1EngagementProjectsProjectKeywordGetPath = ForceDig<V1EngagementProjectsProjectKeywordGetOperation, ["parameters", "path"]>;
119
119
  export declare const getV1EngagementProjectsProjectKeyword: (path: V1EngagementProjectsProjectKeywordGetPath, customRequestInit?: RequestInit, options?: FetcherOptions) => Promise<{
120
120
  __type: "Terminated";
121
+ id: number;
121
122
  title: string;
122
123
  fundingModel: "regularSteady" | "allOrNothing" | "keepItAll" | "permanentSupport";
124
+ fundraisingStatus: "open" | "expired";
123
125
  abstract: string | null;
124
126
  ogImageUrl: string;
125
- id?: number | undefined;
126
- fundraisingStatus?: "open" | "expired" | undefined;
127
127
  } | {
128
128
  __type: "ComingSoon";
129
129
  id: number;
@@ -132,10 +132,10 @@ export declare const getV1EngagementProjectsProjectKeyword: (path: V1EngagementP
132
132
  abstract: string | null;
133
133
  ogImageUrl: string;
134
134
  fundingModel: "regularSteady" | "allOrNothing" | "keepItAll" | "permanentSupport";
135
+ fundraisingStatus: "prepared";
135
136
  projectType: "normal" | "charity" | "emergency" | "furusatoTax";
136
137
  goalPrice: number | null;
137
138
  twitterHashTags: string;
138
- fundraisingStatus?: "prepared" | undefined;
139
139
  } | ({
140
140
  id: number;
141
141
  keyword: string;
@@ -99,16 +99,16 @@ export declare const useV1EngagementProjectsProjectKeyword: (path: V1EngagementP
99
99
  abstract: string | null;
100
100
  ogImageUrl: string;
101
101
  fundingModel: "allOrNothing" | "keepItAll" | "permanentSupport" | "regularSteady";
102
- fundraisingStatus?: "prepared";
102
+ fundraisingStatus: "prepared";
103
103
  projectType: "normal" | "charity" | "emergency" | "furusatoTax";
104
104
  goalPrice: number | null;
105
105
  twitterHashTags: string;
106
106
  } | {
107
107
  __type: "Terminated";
108
- id?: number;
108
+ id: number;
109
109
  title: string;
110
110
  fundingModel: "allOrNothing" | "keepItAll" | "permanentSupport" | "regularSteady";
111
- fundraisingStatus?: "open" | "expired";
111
+ fundraisingStatus: "open" | "expired";
112
112
  abstract: string | null;
113
113
  ogImageUrl: string;
114
114
  } | undefined;
@@ -207,16 +207,16 @@ export declare const useV1EngagementProjectsProjectKeyword: (path: V1EngagementP
207
207
  abstract: string | null;
208
208
  ogImageUrl: string;
209
209
  fundingModel: "allOrNothing" | "keepItAll" | "permanentSupport" | "regularSteady";
210
- fundraisingStatus?: "prepared";
210
+ fundraisingStatus: "prepared";
211
211
  projectType: "normal" | "charity" | "emergency" | "furusatoTax";
212
212
  goalPrice: number | null;
213
213
  twitterHashTags: string;
214
214
  } | {
215
215
  __type: "Terminated";
216
- id?: number;
216
+ id: number;
217
217
  title: string;
218
218
  fundingModel: "allOrNothing" | "keepItAll" | "permanentSupport" | "regularSteady";
219
- fundraisingStatus?: "open" | "expired";
219
+ fundraisingStatus: "open" | "expired";
220
220
  abstract: string | null;
221
221
  ogImageUrl: string;
222
222
  }>;
@@ -319,16 +319,16 @@ export declare const useV1EngagementProjectsProjectKeywordImmutable: (path: V1En
319
319
  abstract: string | null;
320
320
  ogImageUrl: string;
321
321
  fundingModel: "allOrNothing" | "keepItAll" | "permanentSupport" | "regularSteady";
322
- fundraisingStatus?: "prepared";
322
+ fundraisingStatus: "prepared";
323
323
  projectType: "normal" | "charity" | "emergency" | "furusatoTax";
324
324
  goalPrice: number | null;
325
325
  twitterHashTags: string;
326
326
  } | {
327
327
  __type: "Terminated";
328
- id?: number;
328
+ id: number;
329
329
  title: string;
330
330
  fundingModel: "allOrNothing" | "keepItAll" | "permanentSupport" | "regularSteady";
331
- fundraisingStatus?: "open" | "expired";
331
+ fundraisingStatus: "open" | "expired";
332
332
  abstract: string | null;
333
333
  ogImageUrl: string;
334
334
  } | undefined;
@@ -427,16 +427,16 @@ export declare const useV1EngagementProjectsProjectKeywordImmutable: (path: V1En
427
427
  abstract: string | null;
428
428
  ogImageUrl: string;
429
429
  fundingModel: "allOrNothing" | "keepItAll" | "permanentSupport" | "regularSteady";
430
- fundraisingStatus?: "prepared";
430
+ fundraisingStatus: "prepared";
431
431
  projectType: "normal" | "charity" | "emergency" | "furusatoTax";
432
432
  goalPrice: number | null;
433
433
  twitterHashTags: string;
434
434
  } | {
435
435
  __type: "Terminated";
436
- id?: number;
436
+ id: number;
437
437
  title: string;
438
438
  fundingModel: "allOrNothing" | "keepItAll" | "permanentSupport" | "regularSteady";
439
- fundraisingStatus?: "open" | "expired";
439
+ fundraisingStatus: "open" | "expired";
440
440
  abstract: string | null;
441
441
  ogImageUrl: string;
442
442
  }>;
@@ -538,16 +538,16 @@ export declare const useV1EngagementProjectsProjectKeywordInfinite: <Args extend
538
538
  abstract: string | null;
539
539
  ogImageUrl: string;
540
540
  fundingModel: "allOrNothing" | "keepItAll" | "permanentSupport" | "regularSteady";
541
- fundraisingStatus?: "prepared";
541
+ fundraisingStatus: "prepared";
542
542
  projectType: "normal" | "charity" | "emergency" | "furusatoTax";
543
543
  goalPrice: number | null;
544
544
  twitterHashTags: string;
545
545
  } | {
546
546
  __type: "Terminated";
547
- id?: number;
547
+ id: number;
548
548
  title: string;
549
549
  fundingModel: "allOrNothing" | "keepItAll" | "permanentSupport" | "regularSteady";
550
- fundraisingStatus?: "open" | "expired";
550
+ fundraisingStatus: "open" | "expired";
551
551
  abstract: string | null;
552
552
  ogImageUrl: string;
553
553
  }, any>;
@@ -17315,7 +17315,7 @@ export interface components {
17315
17315
  *
17316
17316
  * @enum {string}
17317
17317
  */
17318
- fundraisingStatus?: "prepared";
17318
+ fundraisingStatus: "prepared";
17319
17319
  /** @enum {string} */
17320
17320
  projectType: "normal" | "charity" | "emergency" | "furusatoTax";
17321
17321
  /**
@@ -17349,7 +17349,7 @@ export interface components {
17349
17349
  * Format: int64
17350
17350
  * @description GTM の dataLayer の projectId に積む。画面には出さない
17351
17351
  */
17352
- id?: number;
17352
+ id: number;
17353
17353
  /**
17354
17354
  * @description og:title に使う。画面には出ない。
17355
17355
  * 公開準備中と同じく、未入力のときは null ではなく空文字になる
@@ -17369,7 +17369,7 @@ export interface components {
17369
17369
  *
17370
17370
  * @enum {string}
17371
17371
  */
17372
- fundraisingStatus?: "open" | "expired";
17372
+ fundraisingStatus: "open" | "expired";
17373
17373
  /**
17374
17374
  * @description 実行者が入力したプロジェクト概要の生値。HTML ではなくプレーンテキスト。
17375
17375
  * og:description に使う。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readyfor/api-client-readyfor",
3
- "version": "1.174.0",
3
+ "version": "1.176.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -36,7 +36,7 @@
36
36
  "swr": "2.5.1",
37
37
  "use-sync-external-store": "1.7.0",
38
38
  "zod": "^4.3.6",
39
- "@readyfor/api-client-base": "1.174.0"
39
+ "@readyfor/api-client-base": "1.176.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "qs": "^6",
@@ -44,7 +44,7 @@
44
44
  "swr": "^2.3.3",
45
45
  "use-sync-external-store": "^1.2.2",
46
46
  "zod": "^4",
47
- "@readyfor/api-client-base": "1.174.0"
47
+ "@readyfor/api-client-base": "1.176.0"
48
48
  },
49
49
  "peerDependenciesMeta": {
50
50
  "react": {