@readyfor/api-client-readyfor 1.183.0 → 1.185.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.
@@ -622,6 +622,7 @@ export declare const Engagement_SpotCrowdfundingOrder_Reward: z.ZodObject<{
622
622
  name: z.ZodString;
623
623
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
624
624
  }, z.core.$strip>>;
625
+ requireDelivery: z.ZodOptional<z.ZodBoolean>;
625
626
  }, z.core.$strip>;
626
627
  export declare const Engagement_SpotCrowdfundingOrder_UserDelivery: z.ZodUnion<readonly [z.ZodObject<{
627
628
  zipCode: z.ZodString;
@@ -2164,6 +2165,7 @@ export declare const Engagement_SpotCrowdfundingOrder: z.ZodObject<{
2164
2165
  name: z.ZodString;
2165
2166
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
2166
2167
  }, z.core.$strip>>;
2168
+ requireDelivery: z.ZodOptional<z.ZodBoolean>;
2167
2169
  }, z.core.$strip>>;
2168
2170
  }, z.core.$strip>;
2169
2171
  export declare const Engagement_Settings_SocialAccounts: z.ZodObject<{
@@ -4682,6 +4684,7 @@ export declare const GetEngagementSpotCrowdfundingOrders: z.ZodObject<{
4682
4684
  name: z.ZodString;
4683
4685
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
4684
4686
  }, z.core.$strip>>;
4687
+ requireDelivery: z.ZodOptional<z.ZodBoolean>;
4685
4688
  }, z.core.$strip>>;
4686
4689
  }, z.core.$strip>>;
4687
4690
  pagination: z.ZodObject<{
@@ -5296,6 +5299,7 @@ export declare const GetEngagementProjectsProjectKeywordRewards: z.ZodObject<{
5296
5299
  isLastPage: z.ZodBoolean;
5297
5300
  }, z.core.$strip>;
5298
5301
  isSystemUsageFeeCase: z.ZodBoolean;
5302
+ paymentTypesOfAllRewards: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"onetime">, z.ZodLiteral<"monthly">, z.ZodLiteral<"yearly">]>>>;
5299
5303
  }, z.core.$strip>;
5300
5304
  export declare const Engagement_Project_Owner: z.ZodIntersection<z.ZodObject<{
5301
5305
  id: z.ZodNumber;
@@ -507,7 +507,8 @@ const Engagement_SpotCrowdfundingOrder_Reward = zod.z.object({
507
507
  zod.z.null()
508
508
  ]),
509
509
  shippedAt: zod.z.union([zod.z.string(), zod.z.null()]),
510
- exValues: zod.z.array(Engagement_SpotCrowdfundingOrder_Reward_ExValue)
510
+ exValues: zod.z.array(Engagement_SpotCrowdfundingOrder_Reward_ExValue),
511
+ requireDelivery: zod.z.optional(zod.z.boolean())
511
512
  });
512
513
  const Engagement_SpotCrowdfundingOrder_UserDelivery = zod.z.union([zod.z.object({
513
514
  zipCode: zod.z.string(),
@@ -2813,7 +2814,12 @@ const GetEngagementProjectsProjectKeywordShowcaseProjects = zod.z.object({ proje
2813
2814
  const GetEngagementProjectsProjectKeywordRewards = zod.z.object({
2814
2815
  rewards: zod.z.array(Engagement_Reward),
2815
2816
  pagination: Engagement_Pagination,
2816
- isSystemUsageFeeCase: zod.z.boolean()
2817
+ isSystemUsageFeeCase: zod.z.boolean(),
2818
+ paymentTypesOfAllRewards: zod.z.optional(zod.z.array(zod.z.union([
2819
+ zod.z.literal("onetime"),
2820
+ zod.z.literal("monthly"),
2821
+ zod.z.literal("yearly")
2822
+ ])))
2817
2823
  });
2818
2824
  const Engagement_Project_Owner = zod.z.intersection(Engagement_UserProfile, zod.z.object({
2819
2825
  fundraisingTeamId: zod.z.union([zod.z.number(), zod.z.null()]),
@@ -506,7 +506,8 @@ const Engagement_SpotCrowdfundingOrder_Reward = z.object({
506
506
  z.null()
507
507
  ]),
508
508
  shippedAt: z.union([z.string(), z.null()]),
509
- exValues: z.array(Engagement_SpotCrowdfundingOrder_Reward_ExValue)
509
+ exValues: z.array(Engagement_SpotCrowdfundingOrder_Reward_ExValue),
510
+ requireDelivery: z.optional(z.boolean())
510
511
  });
511
512
  const Engagement_SpotCrowdfundingOrder_UserDelivery = z.union([z.object({
512
513
  zipCode: z.string(),
@@ -2812,7 +2813,12 @@ const GetEngagementProjectsProjectKeywordShowcaseProjects = z.object({ projects:
2812
2813
  const GetEngagementProjectsProjectKeywordRewards = z.object({
2813
2814
  rewards: z.array(Engagement_Reward),
2814
2815
  pagination: Engagement_Pagination,
2815
- isSystemUsageFeeCase: z.boolean()
2816
+ isSystemUsageFeeCase: z.boolean(),
2817
+ paymentTypesOfAllRewards: z.optional(z.array(z.union([
2818
+ z.literal("onetime"),
2819
+ z.literal("monthly"),
2820
+ z.literal("yearly")
2821
+ ])))
2816
2822
  });
2817
2823
  const Engagement_Project_Owner = z.intersection(Engagement_UserProfile, z.object({
2818
2824
  fundraisingTeamId: z.union([z.number(), z.null()]),
@@ -27,6 +27,7 @@ export declare const buildV1EngagementProjectsProjectKeywordRewardsGetFetcher: (
27
27
  isLastPage: boolean;
28
28
  };
29
29
  isSystemUsageFeeCase: boolean;
30
+ paymentTypesOfAllRewards?: ("onetime" | "monthly" | "yearly")[] | undefined;
30
31
  }>;
31
32
  export type V1EngagementProjectsProjectKeywordRewardsGetPath = ForceDig<V1EngagementProjectsProjectKeywordRewardsGetOperation, ["parameters", "path"]>;
32
33
  export type V1EngagementProjectsProjectKeywordRewardsGetQuery = ForceDig<V1EngagementProjectsProjectKeywordRewardsGetOperation, ["parameters", "query"]>;
@@ -55,5 +56,6 @@ export declare const getV1EngagementProjectsProjectKeywordRewards: (path: V1Enga
55
56
  isLastPage: boolean;
56
57
  };
57
58
  isSystemUsageFeeCase: boolean;
59
+ paymentTypesOfAllRewards?: ("onetime" | "monthly" | "yearly")[] | undefined;
58
60
  }>;
59
61
  export {};
@@ -138,6 +138,7 @@ export declare const buildV1MyEngagementSpotCrowdfundingOrdersGetFetcher: (reque
138
138
  name: string;
139
139
  value: string | null;
140
140
  }[];
141
+ requireDelivery?: boolean | undefined;
141
142
  }[];
142
143
  }[];
143
144
  pagination: {
@@ -288,6 +289,7 @@ export declare const getV1MyEngagementSpotCrowdfundingOrders: (query: V1MyEngage
288
289
  name: string;
289
290
  value: string | null;
290
291
  }[];
292
+ requireDelivery?: boolean | undefined;
291
293
  }[];
292
294
  }[];
293
295
  pagination: {
@@ -9,12 +9,14 @@ export declare const useV1EngagementProjectsProjectKeywordRewards: (path: V1Enga
9
9
  rewards: components["schemas"]["Engagement_Reward"][];
10
10
  pagination: components["schemas"]["Engagement_Pagination"];
11
11
  isSystemUsageFeeCase: boolean;
12
+ paymentTypesOfAllRewards?: ("onetime" | "monthly" | "yearly")[];
12
13
  } | undefined;
13
14
  error: any;
14
15
  mutate: import("swr").KeyedMutator<{
15
16
  rewards: components["schemas"]["Engagement_Reward"][];
16
17
  pagination: components["schemas"]["Engagement_Pagination"];
17
18
  isSystemUsageFeeCase: boolean;
19
+ paymentTypesOfAllRewards?: ("onetime" | "monthly" | "yearly")[];
18
20
  }>;
19
21
  isValidating: boolean;
20
22
  isLoading: boolean;
@@ -25,12 +27,14 @@ export declare const useV1EngagementProjectsProjectKeywordRewardsImmutable: (pat
25
27
  rewards: components["schemas"]["Engagement_Reward"][];
26
28
  pagination: components["schemas"]["Engagement_Pagination"];
27
29
  isSystemUsageFeeCase: boolean;
30
+ paymentTypesOfAllRewards?: ("onetime" | "monthly" | "yearly")[];
28
31
  } | undefined;
29
32
  error: any;
30
33
  mutate: import("swr").KeyedMutator<{
31
34
  rewards: components["schemas"]["Engagement_Reward"][];
32
35
  pagination: components["schemas"]["Engagement_Pagination"];
33
36
  isSystemUsageFeeCase: boolean;
37
+ paymentTypesOfAllRewards?: ("onetime" | "monthly" | "yearly")[];
34
38
  }>;
35
39
  isValidating: boolean;
36
40
  isLoading: boolean;
@@ -40,4 +44,5 @@ export declare const useV1EngagementProjectsProjectKeywordRewardsInfinite: <Args
40
44
  rewards: components["schemas"]["Engagement_Reward"][];
41
45
  pagination: components["schemas"]["Engagement_Pagination"];
42
46
  isSystemUsageFeeCase: boolean;
47
+ paymentTypesOfAllRewards?: ("onetime" | "monthly" | "yearly")[];
43
48
  }, any>;
@@ -11128,6 +11128,10 @@ export interface components {
11128
11128
  * "totalCount": 5,
11129
11129
  * "isFirstPage": true
11130
11130
  * },
11131
+ * "paymentTypesOfAllRewards": [
11132
+ * "monthly",
11133
+ * "onetime"
11134
+ * ],
11131
11135
  * "isSystemUsageFeeCase": true,
11132
11136
  * "rewards": [
11133
11137
  * {
@@ -11168,6 +11172,20 @@ export interface components {
11168
11172
  * 全リターンで同じ値になるため要素側には持たせない
11169
11173
  */
11170
11174
  isSystemUsageFeeCase: boolean;
11175
+ /**
11176
+ * @description このプロジェクトのリターンにある支払いの種別の一覧。重複は含まず、順は決めない。
11177
+ * rewards と同じ対象のリターン(承認済みのリターン)から求める。
11178
+ * q・paymentType による絞り込みと、page・perPage によるページングには左右されない。
11179
+ * 支払いの種別のタブを、絞り込んだ後も出し続けるために使う。
11180
+ * 募集方式が許す種別ではなく、実際にリターンがある種別を返す。リターンが無いときは空の配列。
11181
+ * readyfor の実装が出るまでは返らないことがあるため、今は必須にしていない
11182
+ *
11183
+ * @example [
11184
+ * "monthly",
11185
+ * "onetime"
11186
+ * ]
11187
+ */
11188
+ paymentTypesOfAllRewards?: ("onetime" | "monthly" | "yearly")[];
11171
11189
  };
11172
11190
  /**
11173
11191
  * Engagement_Reward
@@ -13008,6 +13026,7 @@ export interface components {
13008
13026
  * "orderRewards": [
13009
13027
  * {
13010
13028
  * "shippingStatus": "preparing",
13029
+ * "requireDelivery": true,
13011
13030
  * "estimatedArrivalMonth": "2026-09",
13012
13031
  * "price": 7,
13013
13032
  * "num": 9,
@@ -13026,6 +13045,7 @@ export interface components {
13026
13045
  * },
13027
13046
  * {
13028
13047
  * "shippingStatus": "preparing",
13048
+ * "requireDelivery": true,
13029
13049
  * "estimatedArrivalMonth": "2026-09",
13030
13050
  * "price": 7,
13031
13051
  * "num": 9,
@@ -13084,6 +13104,7 @@ export interface components {
13084
13104
  * "orderRewards": [
13085
13105
  * {
13086
13106
  * "shippingStatus": "preparing",
13107
+ * "requireDelivery": true,
13087
13108
  * "estimatedArrivalMonth": "2026-09",
13088
13109
  * "price": 7,
13089
13110
  * "num": 9,
@@ -13102,6 +13123,7 @@ export interface components {
13102
13123
  * },
13103
13124
  * {
13104
13125
  * "shippingStatus": "preparing",
13126
+ * "requireDelivery": true,
13105
13127
  * "estimatedArrivalMonth": "2026-09",
13106
13128
  * "price": 7,
13107
13129
  * "num": 9,
@@ -13170,6 +13192,7 @@ export interface components {
13170
13192
  * "orderRewards": [
13171
13193
  * {
13172
13194
  * "shippingStatus": "preparing",
13195
+ * "requireDelivery": true,
13173
13196
  * "estimatedArrivalMonth": "2026-09",
13174
13197
  * "price": 7,
13175
13198
  * "num": 9,
@@ -13188,6 +13211,7 @@ export interface components {
13188
13211
  * },
13189
13212
  * {
13190
13213
  * "shippingStatus": "preparing",
13214
+ * "requireDelivery": true,
13191
13215
  * "estimatedArrivalMonth": "2026-09",
13192
13216
  * "price": 7,
13193
13217
  * "num": 9,
@@ -13547,6 +13571,7 @@ export interface components {
13547
13571
  * @description 支援したリターン 1 件
13548
13572
  * @example {
13549
13573
  * "shippingStatus": "preparing",
13574
+ * "requireDelivery": true,
13550
13575
  * "estimatedArrivalMonth": "2026-09",
13551
13576
  * "price": 7,
13552
13577
  * "num": 9,
@@ -13589,6 +13614,11 @@ export interface components {
13589
13614
  shippedAt: string | null;
13590
13615
  /** @description リターンに関する質問と回答。質問が無い場合は空の配列 */
13591
13616
  exValues: components["schemas"]["Engagement_SpotCrowdfundingOrder_Reward_ExValue"][];
13617
+ /**
13618
+ * @description 郵送があり、お届け先が必要なリターンか。リターンの「郵送の有無」が郵送ありの場合に true、それ以外は false。
13619
+ * readyfor は、num が 0 より大きく、requireDelivery が true のリターンを 1 つ以上含む支援を、お届け先が必要な支援として扱う
13620
+ */
13621
+ requireDelivery?: boolean;
13592
13622
  };
13593
13623
  /**
13594
13624
  * Engagement_SpotCrowdfundingOrder_Reward_ExValue
@@ -24044,6 +24074,13 @@ export interface operations {
24044
24074
  * 該当が無いときは空の rewards を返す(全件にフォールバックしない)。
24045
24075
  */
24046
24076
  q?: string;
24077
+ /**
24078
+ * @description 支払いの種別で絞り込む。指定した種別のリターンだけを返し、pagination は絞り込んだ後の件数で計算する。
24079
+ * 未指定のときは絞り込まない。q と同時に指定したときは、両方を満たすリターンを返す。
24080
+ * 指定した種別のリターンが無いときは空の rewards を返す。
24081
+ * enum に無い値・空文字・配列・オブジェクトは、未指定として扱わずに 400 を返す。
24082
+ */
24083
+ paymentType?: "onetime" | "monthly" | "yearly";
24047
24084
  /**
24048
24085
  * @description 現在のページ番号(1 始まり)。
24049
24086
  * 未指定の場合と 1 未満を渡した場合は 1 として扱う。
@@ -24069,6 +24106,12 @@ export interface operations {
24069
24106
  "application/json": components["schemas"]["GetEngagementProjectsProjectKeywordRewards"];
24070
24107
  };
24071
24108
  };
24109
+ /** @description paymentType が enum に無い値の場合に返す。空文字・配列・オブジェクトも含む */
24110
+ 400: {
24111
+ content: {
24112
+ "application/json": components["schemas"]["HttpErrorBadRequest"];
24113
+ };
24114
+ };
24072
24115
  /**
24073
24116
  * @description プロジェクトが見つからない、またはリターン一覧を表示できる状態にない場合に返す。
24074
24117
  * 公開準備中(coming_soon)・掲載終了(veiled)・未公開のプロジェクトを含む。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readyfor/api-client-readyfor",
3
- "version": "1.183.0",
3
+ "version": "1.185.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -34,14 +34,14 @@
34
34
  "swr": "2.5.1",
35
35
  "use-sync-external-store": "1.7.0",
36
36
  "zod": "^4.3.6",
37
- "@readyfor/api-client-base": "1.183.0"
37
+ "@readyfor/api-client-base": "1.185.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": ">=18.x <=19.x",
41
41
  "swr": "^2.3.3",
42
42
  "use-sync-external-store": "^1.2.2",
43
43
  "zod": "^4",
44
- "@readyfor/api-client-base": "1.183.0"
44
+ "@readyfor/api-client-base": "1.185.0"
45
45
  },
46
46
  "peerDependenciesMeta": {
47
47
  "react": {