@readyfor/api-client-readyfor 1.184.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.
- package/dist/components.d.ts +1 -0
- package/dist/components.js +6 -1
- package/dist/components.mjs +6 -1
- package/dist/fetch/v1EngagementProjectsProjectKeywordRewards.d.ts +2 -0
- package/dist/hooks/useV1EngagementProjectsProjectKeywordRewards.d.ts +5 -0
- package/dist/schemaType.d.ts +31 -0
- package/package.json +3 -3
package/dist/components.d.ts
CHANGED
|
@@ -5299,6 +5299,7 @@ export declare const GetEngagementProjectsProjectKeywordRewards: z.ZodObject<{
|
|
|
5299
5299
|
isLastPage: z.ZodBoolean;
|
|
5300
5300
|
}, z.core.$strip>;
|
|
5301
5301
|
isSystemUsageFeeCase: z.ZodBoolean;
|
|
5302
|
+
paymentTypesOfAllRewards: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"onetime">, z.ZodLiteral<"monthly">, z.ZodLiteral<"yearly">]>>>;
|
|
5302
5303
|
}, z.core.$strip>;
|
|
5303
5304
|
export declare const Engagement_Project_Owner: z.ZodIntersection<z.ZodObject<{
|
|
5304
5305
|
id: z.ZodNumber;
|
package/dist/components.js
CHANGED
|
@@ -2814,7 +2814,12 @@ const GetEngagementProjectsProjectKeywordShowcaseProjects = zod.z.object({ proje
|
|
|
2814
2814
|
const GetEngagementProjectsProjectKeywordRewards = zod.z.object({
|
|
2815
2815
|
rewards: zod.z.array(Engagement_Reward),
|
|
2816
2816
|
pagination: Engagement_Pagination,
|
|
2817
|
-
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
|
+
])))
|
|
2818
2823
|
});
|
|
2819
2824
|
const Engagement_Project_Owner = zod.z.intersection(Engagement_UserProfile, zod.z.object({
|
|
2820
2825
|
fundraisingTeamId: zod.z.union([zod.z.number(), zod.z.null()]),
|
package/dist/components.mjs
CHANGED
|
@@ -2813,7 +2813,12 @@ const GetEngagementProjectsProjectKeywordShowcaseProjects = z.object({ projects:
|
|
|
2813
2813
|
const GetEngagementProjectsProjectKeywordRewards = z.object({
|
|
2814
2814
|
rewards: z.array(Engagement_Reward),
|
|
2815
2815
|
pagination: Engagement_Pagination,
|
|
2816
|
-
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
|
+
])))
|
|
2817
2822
|
});
|
|
2818
2823
|
const Engagement_Project_Owner = z.intersection(Engagement_UserProfile, z.object({
|
|
2819
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 {};
|
|
@@ -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>;
|
package/dist/schemaType.d.ts
CHANGED
|
@@ -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
|
|
@@ -24056,6 +24074,13 @@ export interface operations {
|
|
|
24056
24074
|
* 該当が無いときは空の rewards を返す(全件にフォールバックしない)。
|
|
24057
24075
|
*/
|
|
24058
24076
|
q?: string;
|
|
24077
|
+
/**
|
|
24078
|
+
* @description 支払いの種別で絞り込む。指定した種別のリターンだけを返し、pagination は絞り込んだ後の件数で計算する。
|
|
24079
|
+
* 未指定のときは絞り込まない。q と同時に指定したときは、両方を満たすリターンを返す。
|
|
24080
|
+
* 指定した種別のリターンが無いときは空の rewards を返す。
|
|
24081
|
+
* enum に無い値・空文字・配列・オブジェクトは、未指定として扱わずに 400 を返す。
|
|
24082
|
+
*/
|
|
24083
|
+
paymentType?: "onetime" | "monthly" | "yearly";
|
|
24059
24084
|
/**
|
|
24060
24085
|
* @description 現在のページ番号(1 始まり)。
|
|
24061
24086
|
* 未指定の場合と 1 未満を渡した場合は 1 として扱う。
|
|
@@ -24081,6 +24106,12 @@ export interface operations {
|
|
|
24081
24106
|
"application/json": components["schemas"]["GetEngagementProjectsProjectKeywordRewards"];
|
|
24082
24107
|
};
|
|
24083
24108
|
};
|
|
24109
|
+
/** @description paymentType が enum に無い値の場合に返す。空文字・配列・オブジェクトも含む */
|
|
24110
|
+
400: {
|
|
24111
|
+
content: {
|
|
24112
|
+
"application/json": components["schemas"]["HttpErrorBadRequest"];
|
|
24113
|
+
};
|
|
24114
|
+
};
|
|
24084
24115
|
/**
|
|
24085
24116
|
* @description プロジェクトが見つからない、またはリターン一覧を表示できる状態にない場合に返す。
|
|
24086
24117
|
* 公開準備中(coming_soon)・掲載終了(veiled)・未公開のプロジェクトを含む。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readyfor/api-client-readyfor",
|
|
3
|
-
"version": "1.
|
|
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.
|
|
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.
|
|
44
|
+
"@readyfor/api-client-base": "1.185.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
47
47
|
"react": {
|