@readyfor/api-client-readyfor 1.182.0 → 1.184.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.
@@ -487,6 +487,8 @@ export declare const ReadyforHeader_SearchMenuListItem_Group_Link: z.ZodObject<{
487
487
  }, z.core.$strip>;
488
488
  export declare const PutEngagementSettingsUnconfirmedEmailUnprocessableEntityErrors: z.ZodObject<{
489
489
  email: z.ZodOptional<z.ZodArray<z.ZodString>>;
490
+ currentPassword: z.ZodOptional<z.ZodArray<z.ZodString>>;
491
+ base: z.ZodOptional<z.ZodArray<z.ZodString>>;
490
492
  }, z.core.$strip>;
491
493
  export declare const PutEngagementSpotCrowdfundingOrderRefundBankAccountInvalidParam: z.ZodObject<{
492
494
  name: z.ZodString;
@@ -620,6 +622,7 @@ export declare const Engagement_SpotCrowdfundingOrder_Reward: z.ZodObject<{
620
622
  name: z.ZodString;
621
623
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
622
624
  }, z.core.$strip>>;
625
+ requireDelivery: z.ZodOptional<z.ZodBoolean>;
623
626
  }, z.core.$strip>;
624
627
  export declare const Engagement_SpotCrowdfundingOrder_UserDelivery: z.ZodUnion<readonly [z.ZodObject<{
625
628
  zipCode: z.ZodString;
@@ -1816,6 +1819,8 @@ export declare const HttpErrorInvalidAuthenticityToken: z.ZodObject<{
1816
1819
  export declare const PutEngagementSettingsUnconfirmedEmailUnprocessableEntity: z.ZodObject<{
1817
1820
  errors: z.ZodObject<{
1818
1821
  email: z.ZodOptional<z.ZodArray<z.ZodString>>;
1822
+ currentPassword: z.ZodOptional<z.ZodArray<z.ZodString>>;
1823
+ base: z.ZodOptional<z.ZodArray<z.ZodString>>;
1819
1824
  }, z.core.$strip>;
1820
1825
  }, z.core.$strip>;
1821
1826
  export declare const PutEngagementSpotCrowdfundingOrderRefundBankAccountUnprocessableEntity: z.ZodObject<{
@@ -2160,6 +2165,7 @@ export declare const Engagement_SpotCrowdfundingOrder: z.ZodObject<{
2160
2165
  name: z.ZodString;
2161
2166
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
2162
2167
  }, z.core.$strip>>;
2168
+ requireDelivery: z.ZodOptional<z.ZodBoolean>;
2163
2169
  }, z.core.$strip>>;
2164
2170
  }, z.core.$strip>;
2165
2171
  export declare const Engagement_Settings_SocialAccounts: z.ZodObject<{
@@ -4273,6 +4279,8 @@ export declare const ReadyforHeader_SearchMenuListItem: z.ZodObject<{
4273
4279
  export declare const PutEngagementSettingsUnconfirmedEmail_422_response: z.ZodUnion<readonly [z.ZodObject<{
4274
4280
  errors: z.ZodObject<{
4275
4281
  email: z.ZodOptional<z.ZodArray<z.ZodString>>;
4282
+ currentPassword: z.ZodOptional<z.ZodArray<z.ZodString>>;
4283
+ base: z.ZodOptional<z.ZodArray<z.ZodString>>;
4276
4284
  }, z.core.$strip>;
4277
4285
  }, z.core.$strip>, z.ZodObject<{
4278
4286
  error: z.ZodString;
@@ -4359,6 +4367,7 @@ export declare const _api_v1_my_fundraising_announcements__announcement_id__patc
4359
4367
  }, z.core.$strip>>;
4360
4368
  export declare const PutEngagementSettingsUnconfirmedEmailRequestBody: z.ZodObject<{
4361
4369
  email: z.ZodString;
4370
+ currentPassword: z.ZodString;
4362
4371
  }, z.core.$strip>;
4363
4372
  export declare const PutEngagementSettingsUnconfirmedEmailResponse: z.ZodObject<{
4364
4373
  changed: z.ZodBoolean;
@@ -4675,6 +4684,7 @@ export declare const GetEngagementSpotCrowdfundingOrders: z.ZodObject<{
4675
4684
  name: z.ZodString;
4676
4685
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
4677
4686
  }, z.core.$strip>>;
4687
+ requireDelivery: z.ZodOptional<z.ZodBoolean>;
4678
4688
  }, z.core.$strip>>;
4679
4689
  }, z.core.$strip>>;
4680
4690
  pagination: z.ZodObject<{
@@ -436,7 +436,11 @@ const ReadyforHeader_SearchMenuListItem_Group_Link = zod.z.object({
436
436
  title: zod.z.string(),
437
437
  url: zod.z.string()
438
438
  });
439
- const PutEngagementSettingsUnconfirmedEmailUnprocessableEntityErrors = zod.z.object({ email: zod.z.optional(zod.z.array(zod.z.string())) });
439
+ const PutEngagementSettingsUnconfirmedEmailUnprocessableEntityErrors = zod.z.object({
440
+ email: zod.z.optional(zod.z.array(zod.z.string())),
441
+ currentPassword: zod.z.optional(zod.z.array(zod.z.string())),
442
+ base: zod.z.optional(zod.z.array(zod.z.string()))
443
+ });
440
444
  const PutEngagementSpotCrowdfundingOrderRefundBankAccountInvalidParam = zod.z.object({
441
445
  name: zod.z.string(),
442
446
  reason: zod.z.string()
@@ -503,7 +507,8 @@ const Engagement_SpotCrowdfundingOrder_Reward = zod.z.object({
503
507
  zod.z.null()
504
508
  ]),
505
509
  shippedAt: zod.z.union([zod.z.string(), zod.z.null()]),
506
- 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())
507
512
  });
508
513
  const Engagement_SpotCrowdfundingOrder_UserDelivery = zod.z.union([zod.z.object({
509
514
  zipCode: zod.z.string(),
@@ -2613,7 +2618,10 @@ const PostEngagementSettingsPassword_422_response = zod.z.union([PostEngagementS
2613
2618
  const DeleteEngagementSettingsCreditCardsCardSeq_422_response = zod.z.union([DeleteEngagementSettingsCreditCardsCardSeqUnprocessableEntity, HttpErrorInvalidAuthenticityToken]);
2614
2619
  const PostEngagementMessageThreadsUserIdMessages_422_response = zod.z.union([PostEngagementMessageThreadsUserIdMessagesUnprocessableEntity, HttpErrorInvalidAuthenticityToken]);
2615
2620
  const _api_v1_my_fundraising_announcements__announcement_id__patch_request = zod.z.intersection(Fundraising_Announcements_AnnouncementRequestBody, PatchMyFundraisingAnnouncementsAnnouncementIdRequestBody);
2616
- const PutEngagementSettingsUnconfirmedEmailRequestBody = zod.z.object({ email: zod.z.string() });
2621
+ const PutEngagementSettingsUnconfirmedEmailRequestBody = zod.z.object({
2622
+ email: zod.z.string(),
2623
+ currentPassword: zod.z.string()
2624
+ });
2617
2625
  const PutEngagementSettingsUnconfirmedEmailResponse = zod.z.object({
2618
2626
  changed: zod.z.boolean(),
2619
2627
  email: zod.z.string(),
@@ -435,7 +435,11 @@ const ReadyforHeader_SearchMenuListItem_Group_Link = z.object({
435
435
  title: z.string(),
436
436
  url: z.string()
437
437
  });
438
- const PutEngagementSettingsUnconfirmedEmailUnprocessableEntityErrors = z.object({ email: z.optional(z.array(z.string())) });
438
+ const PutEngagementSettingsUnconfirmedEmailUnprocessableEntityErrors = z.object({
439
+ email: z.optional(z.array(z.string())),
440
+ currentPassword: z.optional(z.array(z.string())),
441
+ base: z.optional(z.array(z.string()))
442
+ });
439
443
  const PutEngagementSpotCrowdfundingOrderRefundBankAccountInvalidParam = z.object({
440
444
  name: z.string(),
441
445
  reason: z.string()
@@ -502,7 +506,8 @@ const Engagement_SpotCrowdfundingOrder_Reward = z.object({
502
506
  z.null()
503
507
  ]),
504
508
  shippedAt: z.union([z.string(), z.null()]),
505
- exValues: z.array(Engagement_SpotCrowdfundingOrder_Reward_ExValue)
509
+ exValues: z.array(Engagement_SpotCrowdfundingOrder_Reward_ExValue),
510
+ requireDelivery: z.optional(z.boolean())
506
511
  });
507
512
  const Engagement_SpotCrowdfundingOrder_UserDelivery = z.union([z.object({
508
513
  zipCode: z.string(),
@@ -2612,7 +2617,10 @@ const PostEngagementSettingsPassword_422_response = z.union([PostEngagementSetti
2612
2617
  const DeleteEngagementSettingsCreditCardsCardSeq_422_response = z.union([DeleteEngagementSettingsCreditCardsCardSeqUnprocessableEntity, HttpErrorInvalidAuthenticityToken]);
2613
2618
  const PostEngagementMessageThreadsUserIdMessages_422_response = z.union([PostEngagementMessageThreadsUserIdMessagesUnprocessableEntity, HttpErrorInvalidAuthenticityToken]);
2614
2619
  const _api_v1_my_fundraising_announcements__announcement_id__patch_request = z.intersection(Fundraising_Announcements_AnnouncementRequestBody, PatchMyFundraisingAnnouncementsAnnouncementIdRequestBody);
2615
- const PutEngagementSettingsUnconfirmedEmailRequestBody = z.object({ email: z.string() });
2620
+ const PutEngagementSettingsUnconfirmedEmailRequestBody = z.object({
2621
+ email: z.string(),
2622
+ currentPassword: z.string()
2623
+ });
2616
2624
  const PutEngagementSettingsUnconfirmedEmailResponse = z.object({
2617
2625
  changed: z.boolean(),
2618
2626
  email: z.string(),
@@ -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: {
@@ -4346,6 +4346,7 @@ export interface paths {
4346
4346
  /**
4347
4347
  * メールアドレスの変更を申請する
4348
4348
  * @description ログインユーザー本人のメールアドレスの変更を申請し、送ったアドレスへ確認メールを送る。
4349
+ * 現在のパスワードを照合してから申請する。パスワードを設定していないユーザーは 422 になるため、FE はパスワード設定用のメールを案内する(設定は `isPasswordUser` で判定する)。
4349
4350
  * 確認メールのリンクが開かれた時点で、送ったアドレスが email になる。
4350
4351
  * 確認待ちのアドレスをもう一度送ると、確認メールを送り直す。
4351
4352
  */
@@ -13007,6 +13008,7 @@ export interface components {
13007
13008
  * "orderRewards": [
13008
13009
  * {
13009
13010
  * "shippingStatus": "preparing",
13011
+ * "requireDelivery": true,
13010
13012
  * "estimatedArrivalMonth": "2026-09",
13011
13013
  * "price": 7,
13012
13014
  * "num": 9,
@@ -13025,6 +13027,7 @@ export interface components {
13025
13027
  * },
13026
13028
  * {
13027
13029
  * "shippingStatus": "preparing",
13030
+ * "requireDelivery": true,
13028
13031
  * "estimatedArrivalMonth": "2026-09",
13029
13032
  * "price": 7,
13030
13033
  * "num": 9,
@@ -13083,6 +13086,7 @@ export interface components {
13083
13086
  * "orderRewards": [
13084
13087
  * {
13085
13088
  * "shippingStatus": "preparing",
13089
+ * "requireDelivery": true,
13086
13090
  * "estimatedArrivalMonth": "2026-09",
13087
13091
  * "price": 7,
13088
13092
  * "num": 9,
@@ -13101,6 +13105,7 @@ export interface components {
13101
13105
  * },
13102
13106
  * {
13103
13107
  * "shippingStatus": "preparing",
13108
+ * "requireDelivery": true,
13104
13109
  * "estimatedArrivalMonth": "2026-09",
13105
13110
  * "price": 7,
13106
13111
  * "num": 9,
@@ -13169,6 +13174,7 @@ export interface components {
13169
13174
  * "orderRewards": [
13170
13175
  * {
13171
13176
  * "shippingStatus": "preparing",
13177
+ * "requireDelivery": true,
13172
13178
  * "estimatedArrivalMonth": "2026-09",
13173
13179
  * "price": 7,
13174
13180
  * "num": 9,
@@ -13187,6 +13193,7 @@ export interface components {
13187
13193
  * },
13188
13194
  * {
13189
13195
  * "shippingStatus": "preparing",
13196
+ * "requireDelivery": true,
13190
13197
  * "estimatedArrivalMonth": "2026-09",
13191
13198
  * "price": 7,
13192
13199
  * "num": 9,
@@ -13546,6 +13553,7 @@ export interface components {
13546
13553
  * @description 支援したリターン 1 件
13547
13554
  * @example {
13548
13555
  * "shippingStatus": "preparing",
13556
+ * "requireDelivery": true,
13549
13557
  * "estimatedArrivalMonth": "2026-09",
13550
13558
  * "price": 7,
13551
13559
  * "num": 9,
@@ -13588,6 +13596,11 @@ export interface components {
13588
13596
  shippedAt: string | null;
13589
13597
  /** @description リターンに関する質問と回答。質問が無い場合は空の配列 */
13590
13598
  exValues: components["schemas"]["Engagement_SpotCrowdfundingOrder_Reward_ExValue"][];
13599
+ /**
13600
+ * @description 郵送があり、お届け先が必要なリターンか。リターンの「郵送の有無」が郵送ありの場合に true、それ以外は false。
13601
+ * readyfor は、num が 0 より大きく、requireDelivery が true のリターンを 1 つ以上含む支援を、お届け先が必要な支援として扱う
13602
+ */
13603
+ requireDelivery?: boolean;
13591
13604
  };
13592
13605
  /**
13593
13606
  * Engagement_SpotCrowdfundingOrder_Reward_ExValue
@@ -14201,8 +14214,7 @@ export interface components {
14201
14214
  * @example {
14202
14215
  * "errors": {
14203
14216
  * "email": [
14204
- * "email",
14205
- * "email"
14217
+ * "メールアドレスを登録できませんでした。入力内容をご確認ください。"
14206
14218
  * ]
14207
14219
  * }
14208
14220
  * }
@@ -14213,7 +14225,8 @@ export interface components {
14213
14225
  /**
14214
14226
  * PutEngagementSettingsUnconfirmedEmailRequestBody
14215
14227
  * @example {
14216
- * "email": "new@example.com"
14228
+ * "email": "new@example.com",
14229
+ * "currentPassword": "currentPassword"
14217
14230
  * }
14218
14231
  */
14219
14232
  PutEngagementSettingsUnconfirmedEmailRequestBody: {
@@ -14223,6 +14236,11 @@ export interface components {
14223
14236
  * @example new@example.com
14224
14237
  */
14225
14238
  email: string;
14239
+ /**
14240
+ * Format: password
14241
+ * @description 現在のパスワード。サーバが照合し、一致しなければ 422 の errors.currentPassword で返す
14242
+ */
14243
+ currentPassword: string;
14226
14244
  };
14227
14245
  /**
14228
14246
  * User
@@ -20343,16 +20361,30 @@ export interface components {
20343
20361
  } | null;
20344
20362
  /**
20345
20363
  * PutEngagementSettingsUnconfirmedEmailUnprocessableEntityErrors
20346
- * @description メッセージは項目名を含む文で返し、表示用の先頭の * は付けない
20364
+ * @description email のメッセージは項目名を含む文で返し、表示用の先頭の * は付けない。
20365
+ * currentPassword のメッセージはパスワードの変更(PostEngagementSettingsPassword)と同じ文言で返す。
20366
+ * currentPassword と、email・base が同時に入ることはない
20367
+ *
20347
20368
  * @example {
20348
20369
  * "email": [
20349
- * "email",
20350
- * "email"
20370
+ * "メールアドレスを登録できませんでした。入力内容をご確認ください。"
20351
20371
  * ]
20352
20372
  * }
20353
20373
  */
20354
20374
  PutEngagementSettingsUnconfirmedEmailUnprocessableEntityErrors: {
20355
20375
  email?: string[];
20376
+ /**
20377
+ * @description 現在のパスワードの照合に失敗した場合のエラー。次のいずれかが入る
20378
+ * - 一致しない: が正しくありません
20379
+ * - パスワードを設定していないユーザー: が設定されていません。パスワードを設定してから変更してください
20380
+ * - 照合の失敗が上限(10 分に 5 回)を超えた: の確認に何度も失敗したため、しばらく時間をおいてから再度お試しください
20381
+ */
20382
+ currentPassword?: string[];
20383
+ /**
20384
+ * @description email 以外の項目の検証で保存に失敗した場合など、
20385
+ * メールアドレスの入力欄に紐づかないエラー
20386
+ */
20387
+ base?: string[];
20356
20388
  };
20357
20389
  /**
20358
20390
  * @example {
@@ -25725,12 +25757,19 @@ export interface operations {
25725
25757
  /**
25726
25758
  * メールアドレスの変更を申請する
25727
25759
  * @description ログインユーザー本人のメールアドレスの変更を申請し、送ったアドレスへ確認メールを送る。
25760
+ * 現在のパスワードを照合してから申請する。パスワードを設定していないユーザーは 422 になるため、FE はパスワード設定用のメールを案内する(設定は `isPasswordUser` で判定する)。
25728
25761
  * 確認メールのリンクが開かれた時点で、送ったアドレスが email になる。
25729
25762
  * 確認待ちのアドレスをもう一度送ると、確認メールを送り直す。
25730
25763
  */
25731
25764
  PutEngagementSettingsUnconfirmedEmail: {
25732
25765
  requestBody: {
25733
25766
  content: {
25767
+ /**
25768
+ * @example {
25769
+ * "email": "new@example.com",
25770
+ * "currentPassword": "currentPassword123"
25771
+ * }
25772
+ */
25734
25773
  "application/json": components["schemas"]["PutEngagementSettingsUnconfirmedEmailRequestBody"];
25735
25774
  };
25736
25775
  };
@@ -25752,7 +25791,7 @@ export interface operations {
25752
25791
  };
25753
25792
  /**
25754
25793
  * @description 検証に失敗した場合に返す。
25755
- * 送ったメールアドレスに問題が無くても、名前などの保存済みの値が検証を満たさない場合は返す。その場合 errors に email は含まれない
25794
+ * 送ったメールアドレスに問題が無くても、名前などの保存済みの値が検証を満たさない場合は返す。その場合 errors に email は含まれず、base に入る
25756
25795
  * Bearer トークンが無い、または一致せず CSRF 検証に失敗した場合にも返す
25757
25796
  */
25758
25797
  422: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readyfor/api-client-readyfor",
3
- "version": "1.182.0",
3
+ "version": "1.184.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,20 +28,20 @@
28
28
  }
29
29
  },
30
30
  "devDependencies": {
31
- "@types/react": "19.3.0",
31
+ "@types/react": "19.3.3",
32
32
  "@types/use-sync-external-store": "1.7.0",
33
33
  "react": "19.3.1",
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.182.0"
37
+ "@readyfor/api-client-base": "1.184.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.182.0"
44
+ "@readyfor/api-client-base": "1.184.0"
45
45
  },
46
46
  "peerDependenciesMeta": {
47
47
  "react": {