@better-giving/endowment 1.0.3 → 1.0.5
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/db.d.mts +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/schema.d.mts +441 -4
- package/dist/schema.mjs +1 -1
- package/package.json +1 -1
- package/src/db.mts +1 -0
- package/src/index.mts +2 -1
- package/src/schema.mts +2 -1
package/dist/db.d.mts
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Fields as FundItem } from "./cloudsearch.mjs";
|
|
2
2
|
import type { Endow as NEndow } from "./db.mjs";
|
|
3
|
-
export type { Allocation, DonateMethodId, EndowByEinParams, EndowDesignation, EndowQueryParam, EndowsQueryParams, Environment, Increment, Milestone, MilestoneUpdate, NewMilestone, NewProgram, Program, ProgramUpdate, SocialMediaURLs, UnSdgNum, } from "./schema.mjs";
|
|
3
|
+
export type { Allocation, DonateMethodId, EndowByEinParams, EndowDesignation, EndowQueryParam, EndowsQueryParams, EndowUpdate, Environment, Increment, Milestone, MilestoneUpdate, NewMilestone, NewProgram, Program, ProgramUpdate, SocialMediaURLs, UnSdgNum, } from "./schema.mjs";
|
|
4
4
|
export type { FundItem };
|
|
5
|
-
export type Endow = Pick<NEndow.DBRecord, "id" | "slug" | "active_in_countries" | "endow_designation" | "fiscal_sponsored" | "hide_bg_tip" | "hq_country" | "image" | "card_img" | "kyc_donors_only" | "logo" | "name" | "overview" | "published" | "registration_number" | "sdgs" | "social_media_urls" | "street_address" | "tagline" | "url" | "claimed" | "
|
|
5
|
+
export type Endow = Pick<NEndow.DBRecord, "id" | "slug" | "active_in_countries" | "endow_designation" | "fiscal_sponsored" | "hide_bg_tip" | "hq_country" | "image" | "card_img" | "kyc_donors_only" | "logo" | "name" | "overview" | "published" | "registration_number" | "sdgs" | "social_media_urls" | "street_address" | "tagline" | "url" | "claimed" | "progDonationsAllowed" | "donateMethods" | "allocation" | "increments" | "receiptMsg">;
|
package/dist/schema.d.mts
CHANGED
|
@@ -66,7 +66,6 @@ export declare const endowment: import("valibot").ObjectSchema<{
|
|
|
66
66
|
readonly sdgs: import("valibot").SchemaWithPipe<[import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], undefined>, undefined>, import("valibot").MinLengthAction<(2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1, undefined>]>;
|
|
67
67
|
readonly receiptMsg: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").MaxLengthAction<string, 500, undefined>]>, never>;
|
|
68
68
|
readonly hide_bg_tip: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
69
|
-
readonly sfCompounded: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
70
69
|
readonly published: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
71
70
|
/** allowed by default */
|
|
72
71
|
readonly progDonationsAllowed: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
@@ -89,8 +88,446 @@ export declare const endowment: import("valibot").ObjectSchema<{
|
|
|
89
88
|
}[], 4, undefined>]>, never>;
|
|
90
89
|
readonly fund_opt_in: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
91
90
|
}, undefined>;
|
|
92
|
-
export declare const
|
|
91
|
+
export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
92
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
|
|
93
|
+
readonly slug: import("valibot").OptionalSchema<import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").MaxLengthAction<string, 30, "max 30 characters">, import("valibot").RegexAction<string, "should not be an id">, import("valibot").RegexAction<string, "allowed: numbers | letters | - | . | _ | ~">, import("valibot").ExcludesAction<string, "..", "should not contain double periods">, import("valibot").CustomSchema<string, "should not start with dot">, import("valibot").CustomSchema<string, "should not end with dot">]>>, never>;
|
|
94
|
+
readonly registration_number: import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">, import("valibot").RegexAction<string, "must only contain letters and numbers">]>;
|
|
95
|
+
readonly name: import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">]>;
|
|
96
|
+
readonly endow_designation: import("valibot").PicklistSchema<readonly ["Charity", "Religious Organization", "University", "Hospital", "Other"], undefined>;
|
|
97
|
+
readonly overview: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, never>;
|
|
98
|
+
readonly tagline: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, never>;
|
|
99
|
+
readonly image: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
100
|
+
readonly logo: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
101
|
+
readonly card_img: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
102
|
+
readonly hq_country: import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">]>;
|
|
103
|
+
readonly active_in_countries: import("valibot").SchemaWithPipe<[import("valibot").ArraySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, undefined>, import("valibot").NonEmptyAction<string[], "required">]>;
|
|
104
|
+
readonly street_address: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, never>;
|
|
105
|
+
readonly social_media_urls: import("valibot").ObjectSchema<{
|
|
106
|
+
readonly facebook: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
107
|
+
readonly twitter: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
108
|
+
readonly linkedin: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
109
|
+
readonly discord: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
110
|
+
readonly instagram: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
111
|
+
readonly youtube: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
112
|
+
readonly tiktok: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
113
|
+
}, undefined>;
|
|
114
|
+
/** website */
|
|
115
|
+
readonly url: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
116
|
+
readonly sdgs: import("valibot").SchemaWithPipe<[import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], undefined>, undefined>, import("valibot").MinLengthAction<(2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1, undefined>]>;
|
|
117
|
+
readonly receiptMsg: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").MaxLengthAction<string, 500, undefined>]>, never>;
|
|
118
|
+
readonly hide_bg_tip: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
119
|
+
readonly published: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
120
|
+
/** allowed by default */
|
|
121
|
+
readonly progDonationsAllowed: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
122
|
+
readonly allocation: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").ObjectSchema<{
|
|
123
|
+
readonly cash: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>;
|
|
124
|
+
readonly liq: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>;
|
|
125
|
+
readonly lock: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>;
|
|
126
|
+
}, undefined>, import("valibot").CheckAction<{
|
|
127
|
+
cash: number;
|
|
128
|
+
liq: number;
|
|
129
|
+
lock: number;
|
|
130
|
+
}, "must total to 100">]>, never>;
|
|
131
|
+
readonly donateMethods: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["stripe", "crypto", "daf", "stocks"], undefined>, undefined>, never>;
|
|
132
|
+
readonly increments: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
133
|
+
readonly value: import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">, import("valibot").TransformAction<string, number>, import("valibot").NumberSchema<"must be a number">, import("valibot").MinValueAction<number, 0, "must be greater than 0">, import("valibot").TransformAction<number, string>]>;
|
|
134
|
+
readonly label: import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").MaxLengthAction<string, 30, ({ requirement: r }: import("valibot").MaxLengthIssue<string, 30>) => string>]>;
|
|
135
|
+
}, undefined>, undefined>, import("valibot").MaxLengthAction<{
|
|
136
|
+
value: string;
|
|
137
|
+
label: string;
|
|
138
|
+
}[], 4, undefined>]>, never>;
|
|
139
|
+
readonly fund_opt_in: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
140
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
141
|
+
readonly entries: Omit<{
|
|
142
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
|
|
143
|
+
readonly slug: import("valibot").OptionalSchema<import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").MaxLengthAction<string, 30, "max 30 characters">, import("valibot").RegexAction<string, "should not be an id">, import("valibot").RegexAction<string, "allowed: numbers | letters | - | . | _ | ~">, import("valibot").ExcludesAction<string, "..", "should not contain double periods">, import("valibot").CustomSchema<string, "should not start with dot">, import("valibot").CustomSchema<string, "should not end with dot">]>>, never>;
|
|
144
|
+
readonly registration_number: import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">, import("valibot").RegexAction<string, "must only contain letters and numbers">]>;
|
|
145
|
+
readonly name: import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">]>;
|
|
146
|
+
readonly endow_designation: import("valibot").PicklistSchema<readonly ["Charity", "Religious Organization", "University", "Hospital", "Other"], undefined>;
|
|
147
|
+
readonly overview: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, never>;
|
|
148
|
+
readonly tagline: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, never>;
|
|
149
|
+
readonly image: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
150
|
+
readonly logo: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
151
|
+
readonly card_img: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
152
|
+
readonly hq_country: import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">]>;
|
|
153
|
+
readonly active_in_countries: import("valibot").SchemaWithPipe<[import("valibot").ArraySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, undefined>, import("valibot").NonEmptyAction<string[], "required">]>;
|
|
154
|
+
readonly street_address: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, never>;
|
|
155
|
+
readonly social_media_urls: import("valibot").ObjectSchema<{
|
|
156
|
+
readonly facebook: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
157
|
+
readonly twitter: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
158
|
+
readonly linkedin: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
159
|
+
readonly discord: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
160
|
+
readonly instagram: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
161
|
+
readonly youtube: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
162
|
+
readonly tiktok: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
163
|
+
}, undefined>;
|
|
164
|
+
/** website */
|
|
165
|
+
readonly url: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
166
|
+
readonly sdgs: import("valibot").SchemaWithPipe<[import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], undefined>, undefined>, import("valibot").MinLengthAction<(2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1, undefined>]>;
|
|
167
|
+
readonly receiptMsg: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").MaxLengthAction<string, 500, undefined>]>, never>;
|
|
168
|
+
readonly hide_bg_tip: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
169
|
+
readonly published: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
170
|
+
/** allowed by default */
|
|
171
|
+
readonly progDonationsAllowed: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
172
|
+
readonly allocation: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").ObjectSchema<{
|
|
173
|
+
readonly cash: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>;
|
|
174
|
+
readonly liq: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>;
|
|
175
|
+
readonly lock: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>;
|
|
176
|
+
}, undefined>, import("valibot").CheckAction<{
|
|
177
|
+
cash: number;
|
|
178
|
+
liq: number;
|
|
179
|
+
lock: number;
|
|
180
|
+
}, "must total to 100">]>, never>;
|
|
181
|
+
readonly donateMethods: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["stripe", "crypto", "daf", "stocks"], undefined>, undefined>, never>;
|
|
182
|
+
readonly increments: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
183
|
+
readonly value: import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">, import("valibot").TransformAction<string, number>, import("valibot").NumberSchema<"must be a number">, import("valibot").MinValueAction<number, 0, "must be greater than 0">, import("valibot").TransformAction<number, string>]>;
|
|
184
|
+
readonly label: import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").MaxLengthAction<string, 30, ({ requirement: r }: import("valibot").MaxLengthIssue<string, 30>) => string>]>;
|
|
185
|
+
}, undefined>, undefined>, import("valibot").MaxLengthAction<{
|
|
186
|
+
value: string;
|
|
187
|
+
label: string;
|
|
188
|
+
}[], 4, undefined>]>, never>;
|
|
189
|
+
readonly fund_opt_in: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
190
|
+
}, "id">;
|
|
191
|
+
_run(dataset: import("valibot").Dataset<unknown, never>, config: import("valibot").Config<import("valibot").StringIssue | import("valibot").NumberIssue | import("valibot").IntegerIssue<number> | import("valibot").MinValueIssue<number, 0> | import("valibot").MaxValueIssue<number, 100> | import("valibot").ObjectIssue | import("valibot").CheckIssue<{
|
|
192
|
+
cash: number;
|
|
193
|
+
liq: number;
|
|
194
|
+
lock: number;
|
|
195
|
+
}> | import("valibot").MaxLengthIssue<string, 30> | import("valibot").RegexIssue<string> | import("valibot").ExcludesIssue<string, ".."> | import("valibot").CustomIssue | import("valibot").NonEmptyIssue<string> | import("valibot").PicklistIssue | import("valibot").UrlIssue<string> | import("valibot").ArrayIssue | import("valibot").NonEmptyIssue<string[]> | import("valibot").MinLengthIssue<(2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | import("valibot").MaxLengthIssue<string, 500> | import("valibot").BooleanIssue | import("valibot").MaxLengthIssue<{
|
|
196
|
+
value: string;
|
|
197
|
+
label: string;
|
|
198
|
+
}[], 4>>): import("valibot").Dataset<{
|
|
199
|
+
name: string;
|
|
200
|
+
hq_country: string;
|
|
201
|
+
active_in_countries: string[];
|
|
202
|
+
sdgs: (2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[];
|
|
203
|
+
registration_number: string;
|
|
204
|
+
endow_designation: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other";
|
|
205
|
+
social_media_urls: {
|
|
206
|
+
facebook?: string | undefined;
|
|
207
|
+
twitter?: string | undefined;
|
|
208
|
+
linkedin?: string | undefined;
|
|
209
|
+
discord?: string | undefined;
|
|
210
|
+
instagram?: string | undefined;
|
|
211
|
+
youtube?: string | undefined;
|
|
212
|
+
tiktok?: string | undefined;
|
|
213
|
+
};
|
|
214
|
+
url?: string | undefined;
|
|
215
|
+
slug?: string | undefined;
|
|
216
|
+
overview?: string | undefined;
|
|
217
|
+
tagline?: string | undefined;
|
|
218
|
+
image?: string | undefined;
|
|
219
|
+
logo?: string | undefined;
|
|
220
|
+
card_img?: string | undefined;
|
|
221
|
+
street_address?: string | undefined;
|
|
222
|
+
receiptMsg?: string | undefined;
|
|
223
|
+
hide_bg_tip?: boolean | undefined;
|
|
224
|
+
published?: boolean | undefined;
|
|
225
|
+
progDonationsAllowed?: boolean | undefined;
|
|
226
|
+
allocation?: {
|
|
227
|
+
cash: number;
|
|
228
|
+
liq: number;
|
|
229
|
+
lock: number;
|
|
230
|
+
} | undefined;
|
|
231
|
+
donateMethods?: ("stripe" | "crypto" | "daf" | "stocks")[] | undefined;
|
|
232
|
+
increments?: {
|
|
233
|
+
value: string;
|
|
234
|
+
label: string;
|
|
235
|
+
}[] | undefined;
|
|
236
|
+
fund_opt_in?: boolean | undefined;
|
|
237
|
+
}, import("valibot").StringIssue | import("valibot").NumberIssue | import("valibot").IntegerIssue<number> | import("valibot").MinValueIssue<number, 0> | import("valibot").MaxValueIssue<number, 100> | import("valibot").ObjectIssue | import("valibot").CheckIssue<{
|
|
238
|
+
cash: number;
|
|
239
|
+
liq: number;
|
|
240
|
+
lock: number;
|
|
241
|
+
}> | import("valibot").MaxLengthIssue<string, 30> | import("valibot").RegexIssue<string> | import("valibot").ExcludesIssue<string, ".."> | import("valibot").CustomIssue | import("valibot").NonEmptyIssue<string> | import("valibot").PicklistIssue | import("valibot").UrlIssue<string> | import("valibot").ArrayIssue | import("valibot").NonEmptyIssue<string[]> | import("valibot").MinLengthIssue<(2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | import("valibot").MaxLengthIssue<string, 500> | import("valibot").BooleanIssue | import("valibot").MaxLengthIssue<{
|
|
242
|
+
value: string;
|
|
243
|
+
label: string;
|
|
244
|
+
}[], 4>>;
|
|
245
|
+
readonly _types?: {
|
|
246
|
+
readonly input: {
|
|
247
|
+
name: string;
|
|
248
|
+
hq_country: string;
|
|
249
|
+
active_in_countries: string[];
|
|
250
|
+
sdgs: (2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[];
|
|
251
|
+
registration_number: string;
|
|
252
|
+
endow_designation: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other";
|
|
253
|
+
social_media_urls: {
|
|
254
|
+
facebook?: string | undefined;
|
|
255
|
+
twitter?: string | undefined;
|
|
256
|
+
linkedin?: string | undefined;
|
|
257
|
+
discord?: string | undefined;
|
|
258
|
+
instagram?: string | undefined;
|
|
259
|
+
youtube?: string | undefined;
|
|
260
|
+
tiktok?: string | undefined;
|
|
261
|
+
};
|
|
262
|
+
url?: string | undefined;
|
|
263
|
+
slug?: string | undefined;
|
|
264
|
+
overview?: string | undefined;
|
|
265
|
+
tagline?: string | undefined;
|
|
266
|
+
image?: string | undefined;
|
|
267
|
+
logo?: string | undefined;
|
|
268
|
+
card_img?: string | undefined;
|
|
269
|
+
street_address?: string | undefined;
|
|
270
|
+
receiptMsg?: string | undefined;
|
|
271
|
+
hide_bg_tip?: boolean | undefined;
|
|
272
|
+
published?: boolean | undefined;
|
|
273
|
+
progDonationsAllowed?: boolean | undefined;
|
|
274
|
+
allocation?: {
|
|
275
|
+
cash: number;
|
|
276
|
+
liq: number;
|
|
277
|
+
lock: number;
|
|
278
|
+
} | undefined;
|
|
279
|
+
donateMethods?: ("stripe" | "crypto" | "daf" | "stocks")[] | undefined;
|
|
280
|
+
increments?: {
|
|
281
|
+
value: string;
|
|
282
|
+
label: string;
|
|
283
|
+
}[] | undefined;
|
|
284
|
+
fund_opt_in?: boolean | undefined;
|
|
285
|
+
};
|
|
286
|
+
readonly output: {
|
|
287
|
+
name: string;
|
|
288
|
+
hq_country: string;
|
|
289
|
+
active_in_countries: string[];
|
|
290
|
+
sdgs: (2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[];
|
|
291
|
+
registration_number: string;
|
|
292
|
+
endow_designation: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other";
|
|
293
|
+
social_media_urls: {
|
|
294
|
+
facebook?: string | undefined;
|
|
295
|
+
twitter?: string | undefined;
|
|
296
|
+
linkedin?: string | undefined;
|
|
297
|
+
discord?: string | undefined;
|
|
298
|
+
instagram?: string | undefined;
|
|
299
|
+
youtube?: string | undefined;
|
|
300
|
+
tiktok?: string | undefined;
|
|
301
|
+
};
|
|
302
|
+
url?: string | undefined;
|
|
303
|
+
slug?: string | undefined;
|
|
304
|
+
overview?: string | undefined;
|
|
305
|
+
tagline?: string | undefined;
|
|
306
|
+
image?: string | undefined;
|
|
307
|
+
logo?: string | undefined;
|
|
308
|
+
card_img?: string | undefined;
|
|
309
|
+
street_address?: string | undefined;
|
|
310
|
+
receiptMsg?: string | undefined;
|
|
311
|
+
hide_bg_tip?: boolean | undefined;
|
|
312
|
+
published?: boolean | undefined;
|
|
313
|
+
progDonationsAllowed?: boolean | undefined;
|
|
314
|
+
allocation?: {
|
|
315
|
+
cash: number;
|
|
316
|
+
liq: number;
|
|
317
|
+
lock: number;
|
|
318
|
+
} | undefined;
|
|
319
|
+
donateMethods?: ("stripe" | "crypto" | "daf" | "stocks")[] | undefined;
|
|
320
|
+
increments?: {
|
|
321
|
+
value: string;
|
|
322
|
+
label: string;
|
|
323
|
+
}[] | undefined;
|
|
324
|
+
fund_opt_in?: boolean | undefined;
|
|
325
|
+
};
|
|
326
|
+
readonly issue: import("valibot").StringIssue | import("valibot").NumberIssue | import("valibot").IntegerIssue<number> | import("valibot").MinValueIssue<number, 0> | import("valibot").MaxValueIssue<number, 100> | import("valibot").ObjectIssue | import("valibot").CheckIssue<{
|
|
327
|
+
cash: number;
|
|
328
|
+
liq: number;
|
|
329
|
+
lock: number;
|
|
330
|
+
}> | import("valibot").MaxLengthIssue<string, 30> | import("valibot").RegexIssue<string> | import("valibot").ExcludesIssue<string, ".."> | import("valibot").CustomIssue | import("valibot").NonEmptyIssue<string> | import("valibot").PicklistIssue | import("valibot").UrlIssue<string> | import("valibot").ArrayIssue | import("valibot").NonEmptyIssue<string[]> | import("valibot").MinLengthIssue<(2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | import("valibot").MaxLengthIssue<string, 500> | import("valibot").BooleanIssue | import("valibot").MaxLengthIssue<{
|
|
331
|
+
value: string;
|
|
332
|
+
label: string;
|
|
333
|
+
}[], 4>;
|
|
334
|
+
} | undefined;
|
|
335
|
+
}, "_types" | "_run" | "entries"> & {
|
|
336
|
+
readonly entries: {
|
|
337
|
+
readonly url: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>, never>;
|
|
338
|
+
readonly slug: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").MaxLengthAction<string, 30, "max 30 characters">, import("valibot").RegexAction<string, "should not be an id">, import("valibot").RegexAction<string, "allowed: numbers | letters | - | . | _ | ~">, import("valibot").ExcludesAction<string, "..", "should not contain double periods">, import("valibot").CustomSchema<string, "should not start with dot">, import("valibot").CustomSchema<string, "should not end with dot">]>>, never>, never>;
|
|
339
|
+
readonly name: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">]>, never>;
|
|
340
|
+
readonly overview: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, never>, never>;
|
|
341
|
+
readonly tagline: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, never>, never>;
|
|
342
|
+
readonly image: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>, never>;
|
|
343
|
+
readonly logo: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>, never>;
|
|
344
|
+
readonly card_img: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>, never>;
|
|
345
|
+
readonly hq_country: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">]>, never>;
|
|
346
|
+
readonly active_in_countries: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").ArraySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, undefined>, import("valibot").NonEmptyAction<string[], "required">]>, never>;
|
|
347
|
+
readonly street_address: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, never>, never>;
|
|
348
|
+
readonly sdgs: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], undefined>, undefined>, import("valibot").MinLengthAction<(2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1, undefined>]>, never>;
|
|
349
|
+
readonly receiptMsg: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").MaxLengthAction<string, 500, undefined>]>, never>, never>;
|
|
350
|
+
readonly hide_bg_tip: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>, never>;
|
|
351
|
+
readonly published: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>, never>;
|
|
352
|
+
readonly progDonationsAllowed: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>, never>;
|
|
353
|
+
readonly allocation: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").ObjectSchema<{
|
|
354
|
+
readonly cash: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>;
|
|
355
|
+
readonly liq: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>;
|
|
356
|
+
readonly lock: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>;
|
|
357
|
+
}, undefined>, import("valibot").CheckAction<{
|
|
358
|
+
cash: number;
|
|
359
|
+
liq: number;
|
|
360
|
+
lock: number;
|
|
361
|
+
}, "must total to 100">]>, never>, never>;
|
|
362
|
+
readonly donateMethods: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["stripe", "crypto", "daf", "stocks"], undefined>, undefined>, never>, never>;
|
|
363
|
+
readonly increments: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
364
|
+
readonly value: import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">, import("valibot").TransformAction<string, number>, import("valibot").NumberSchema<"must be a number">, import("valibot").MinValueAction<number, 0, "must be greater than 0">, import("valibot").TransformAction<number, string>]>;
|
|
365
|
+
readonly label: import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").MaxLengthAction<string, 30, ({ requirement: r }: import("valibot").MaxLengthIssue<string, 30>) => string>]>;
|
|
366
|
+
}, undefined>, undefined>, import("valibot").MaxLengthAction<{
|
|
367
|
+
value: string;
|
|
368
|
+
label: string;
|
|
369
|
+
}[], 4, undefined>]>, never>, never>;
|
|
370
|
+
readonly fund_opt_in: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>, never>;
|
|
371
|
+
readonly registration_number: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">, import("valibot").RegexAction<string, "must only contain letters and numbers">]>, never>;
|
|
372
|
+
readonly endow_designation: import("valibot").OptionalSchema<import("valibot").PicklistSchema<readonly ["Charity", "Religious Organization", "University", "Hospital", "Other"], undefined>, never>;
|
|
373
|
+
readonly social_media_urls: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
374
|
+
readonly facebook: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
375
|
+
readonly twitter: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
376
|
+
readonly linkedin: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
377
|
+
readonly discord: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
378
|
+
readonly instagram: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
379
|
+
readonly youtube: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
380
|
+
readonly tiktok: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
|
|
381
|
+
}, undefined>, never>;
|
|
382
|
+
};
|
|
383
|
+
_run(dataset: import("valibot").Dataset<unknown, never>, config: import("valibot").Config<import("valibot").StringIssue | import("valibot").NumberIssue | import("valibot").IntegerIssue<number> | import("valibot").MinValueIssue<number, 0> | import("valibot").MaxValueIssue<number, 100> | import("valibot").ObjectIssue | import("valibot").CheckIssue<{
|
|
384
|
+
cash: number;
|
|
385
|
+
liq: number;
|
|
386
|
+
lock: number;
|
|
387
|
+
}> | import("valibot").MaxLengthIssue<string, 30> | import("valibot").RegexIssue<string> | import("valibot").ExcludesIssue<string, ".."> | import("valibot").CustomIssue | import("valibot").NonEmptyIssue<string> | import("valibot").PicklistIssue | import("valibot").UrlIssue<string> | import("valibot").ArrayIssue | import("valibot").NonEmptyIssue<string[]> | import("valibot").MinLengthIssue<(2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | import("valibot").MaxLengthIssue<string, 500> | import("valibot").BooleanIssue | import("valibot").MaxLengthIssue<{
|
|
388
|
+
value: string;
|
|
389
|
+
label: string;
|
|
390
|
+
}[], 4>>): import("valibot").Dataset<{
|
|
391
|
+
url?: string | undefined;
|
|
392
|
+
slug?: string | undefined;
|
|
393
|
+
name?: string | undefined;
|
|
394
|
+
overview?: string | undefined;
|
|
395
|
+
tagline?: string | undefined;
|
|
396
|
+
image?: string | undefined;
|
|
397
|
+
logo?: string | undefined;
|
|
398
|
+
card_img?: string | undefined;
|
|
399
|
+
hq_country?: string | undefined;
|
|
400
|
+
active_in_countries?: string[] | undefined;
|
|
401
|
+
street_address?: string | undefined;
|
|
402
|
+
sdgs?: (2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[] | undefined;
|
|
403
|
+
receiptMsg?: string | undefined;
|
|
404
|
+
hide_bg_tip?: boolean | undefined;
|
|
405
|
+
published?: boolean | undefined;
|
|
406
|
+
progDonationsAllowed?: boolean | undefined;
|
|
407
|
+
allocation?: {
|
|
408
|
+
cash: number;
|
|
409
|
+
liq: number;
|
|
410
|
+
lock: number;
|
|
411
|
+
} | undefined;
|
|
412
|
+
donateMethods?: ("stripe" | "crypto" | "daf" | "stocks")[] | undefined;
|
|
413
|
+
increments?: {
|
|
414
|
+
value: string;
|
|
415
|
+
label: string;
|
|
416
|
+
}[] | undefined;
|
|
417
|
+
fund_opt_in?: boolean | undefined;
|
|
418
|
+
registration_number?: string | undefined;
|
|
419
|
+
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
420
|
+
social_media_urls?: {
|
|
421
|
+
facebook?: string | undefined;
|
|
422
|
+
twitter?: string | undefined;
|
|
423
|
+
linkedin?: string | undefined;
|
|
424
|
+
discord?: string | undefined;
|
|
425
|
+
instagram?: string | undefined;
|
|
426
|
+
youtube?: string | undefined;
|
|
427
|
+
tiktok?: string | undefined;
|
|
428
|
+
} | undefined;
|
|
429
|
+
}, import("valibot").StringIssue | import("valibot").NumberIssue | import("valibot").IntegerIssue<number> | import("valibot").MinValueIssue<number, 0> | import("valibot").MaxValueIssue<number, 100> | import("valibot").ObjectIssue | import("valibot").CheckIssue<{
|
|
430
|
+
cash: number;
|
|
431
|
+
liq: number;
|
|
432
|
+
lock: number;
|
|
433
|
+
}> | import("valibot").MaxLengthIssue<string, 30> | import("valibot").RegexIssue<string> | import("valibot").ExcludesIssue<string, ".."> | import("valibot").CustomIssue | import("valibot").NonEmptyIssue<string> | import("valibot").PicklistIssue | import("valibot").UrlIssue<string> | import("valibot").ArrayIssue | import("valibot").NonEmptyIssue<string[]> | import("valibot").MinLengthIssue<(2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | import("valibot").MaxLengthIssue<string, 500> | import("valibot").BooleanIssue | import("valibot").MaxLengthIssue<{
|
|
434
|
+
value: string;
|
|
435
|
+
label: string;
|
|
436
|
+
}[], 4>>;
|
|
437
|
+
readonly _types?: {
|
|
438
|
+
readonly input: {
|
|
439
|
+
url?: string | undefined;
|
|
440
|
+
slug?: string | undefined;
|
|
441
|
+
name?: string | undefined;
|
|
442
|
+
overview?: string | undefined;
|
|
443
|
+
tagline?: string | undefined;
|
|
444
|
+
image?: string | undefined;
|
|
445
|
+
logo?: string | undefined;
|
|
446
|
+
card_img?: string | undefined;
|
|
447
|
+
hq_country?: string | undefined;
|
|
448
|
+
active_in_countries?: string[] | undefined;
|
|
449
|
+
street_address?: string | undefined;
|
|
450
|
+
sdgs?: (2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[] | undefined;
|
|
451
|
+
receiptMsg?: string | undefined;
|
|
452
|
+
hide_bg_tip?: boolean | undefined;
|
|
453
|
+
published?: boolean | undefined;
|
|
454
|
+
progDonationsAllowed?: boolean | undefined;
|
|
455
|
+
allocation?: {
|
|
456
|
+
cash: number;
|
|
457
|
+
liq: number;
|
|
458
|
+
lock: number;
|
|
459
|
+
} | undefined;
|
|
460
|
+
donateMethods?: ("stripe" | "crypto" | "daf" | "stocks")[] | undefined;
|
|
461
|
+
increments?: {
|
|
462
|
+
value: string;
|
|
463
|
+
label: string;
|
|
464
|
+
}[] | undefined;
|
|
465
|
+
fund_opt_in?: boolean | undefined;
|
|
466
|
+
registration_number?: string | undefined;
|
|
467
|
+
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
468
|
+
social_media_urls?: {
|
|
469
|
+
facebook?: string | undefined;
|
|
470
|
+
twitter?: string | undefined;
|
|
471
|
+
linkedin?: string | undefined;
|
|
472
|
+
discord?: string | undefined;
|
|
473
|
+
instagram?: string | undefined;
|
|
474
|
+
youtube?: string | undefined;
|
|
475
|
+
tiktok?: string | undefined;
|
|
476
|
+
} | undefined;
|
|
477
|
+
};
|
|
478
|
+
readonly output: {
|
|
479
|
+
url?: string | undefined;
|
|
480
|
+
slug?: string | undefined;
|
|
481
|
+
name?: string | undefined;
|
|
482
|
+
overview?: string | undefined;
|
|
483
|
+
tagline?: string | undefined;
|
|
484
|
+
image?: string | undefined;
|
|
485
|
+
logo?: string | undefined;
|
|
486
|
+
card_img?: string | undefined;
|
|
487
|
+
hq_country?: string | undefined;
|
|
488
|
+
active_in_countries?: string[] | undefined;
|
|
489
|
+
street_address?: string | undefined;
|
|
490
|
+
sdgs?: (2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[] | undefined;
|
|
491
|
+
receiptMsg?: string | undefined;
|
|
492
|
+
hide_bg_tip?: boolean | undefined;
|
|
493
|
+
published?: boolean | undefined;
|
|
494
|
+
progDonationsAllowed?: boolean | undefined;
|
|
495
|
+
allocation?: {
|
|
496
|
+
cash: number;
|
|
497
|
+
liq: number;
|
|
498
|
+
lock: number;
|
|
499
|
+
} | undefined;
|
|
500
|
+
donateMethods?: ("stripe" | "crypto" | "daf" | "stocks")[] | undefined;
|
|
501
|
+
increments?: {
|
|
502
|
+
value: string;
|
|
503
|
+
label: string;
|
|
504
|
+
}[] | undefined;
|
|
505
|
+
fund_opt_in?: boolean | undefined;
|
|
506
|
+
registration_number?: string | undefined;
|
|
507
|
+
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
508
|
+
social_media_urls?: {
|
|
509
|
+
facebook?: string | undefined;
|
|
510
|
+
twitter?: string | undefined;
|
|
511
|
+
linkedin?: string | undefined;
|
|
512
|
+
discord?: string | undefined;
|
|
513
|
+
instagram?: string | undefined;
|
|
514
|
+
youtube?: string | undefined;
|
|
515
|
+
tiktok?: string | undefined;
|
|
516
|
+
} | undefined;
|
|
517
|
+
};
|
|
518
|
+
readonly issue: import("valibot").StringIssue | import("valibot").NumberIssue | import("valibot").IntegerIssue<number> | import("valibot").MinValueIssue<number, 0> | import("valibot").MaxValueIssue<number, 100> | import("valibot").ObjectIssue | import("valibot").CheckIssue<{
|
|
519
|
+
cash: number;
|
|
520
|
+
liq: number;
|
|
521
|
+
lock: number;
|
|
522
|
+
}> | import("valibot").MaxLengthIssue<string, 30> | import("valibot").RegexIssue<string> | import("valibot").ExcludesIssue<string, ".."> | import("valibot").CustomIssue | import("valibot").NonEmptyIssue<string> | import("valibot").PicklistIssue | import("valibot").UrlIssue<string> | import("valibot").ArrayIssue | import("valibot").NonEmptyIssue<string[]> | import("valibot").MinLengthIssue<(2 | 1 | 4 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | import("valibot").MaxLengthIssue<string, 500> | import("valibot").BooleanIssue | import("valibot").MaxLengthIssue<{
|
|
523
|
+
value: string;
|
|
524
|
+
label: string;
|
|
525
|
+
}[], 4>;
|
|
526
|
+
} | undefined;
|
|
527
|
+
};
|
|
528
|
+
export declare const endowFields: import("valibot").PicklistSchema<["url", "slug", "name", "overview", "tagline", "image", "logo", "card_img", "hq_country", "active_in_countries", "street_address", "sdgs", "receiptMsg", "hide_bg_tip", "published", "progDonationsAllowed", "allocation", "donateMethods", "increments", "fund_opt_in", "id", "registration_number", "endow_designation", "social_media_urls"], undefined>;
|
|
93
529
|
export type Endowment = InferOutput<typeof endowment>;
|
|
530
|
+
export type EndowUpdate = InferOutput<typeof endowUpdate>;
|
|
94
531
|
export type EndowmentFields = InferOutput<typeof endowFields>;
|
|
95
532
|
export declare const endowsQueryParams: import("valibot").ObjectSchema<{
|
|
96
533
|
readonly query: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>;
|
|
@@ -101,11 +538,11 @@ export declare const endowsQueryParams: import("valibot").ObjectSchema<{
|
|
|
101
538
|
readonly fund_opt_in: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").RegexAction<string, "invalid csv">]>>, import("valibot").TransformAction<string, boolean[]>, import("valibot").ArraySchema<import("valibot").BooleanSchema<undefined>, undefined>]>, never>;
|
|
102
539
|
readonly claimed: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").RegexAction<string, "invalid csv">]>>, import("valibot").TransformAction<string, boolean[]>, import("valibot").ArraySchema<import("valibot").BooleanSchema<undefined>, undefined>]>, never>;
|
|
103
540
|
readonly countries: import("valibot").OptionalSchema<import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").RegexAction<string, "invalid csv">]>>, never>;
|
|
104
|
-
readonly fields: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").RegexAction<string, "invalid csv">]>>, import("valibot").TransformAction<string, string[]>, import("valibot").ArraySchema<import("valibot").PicklistSchema<["url", "slug", "name", "overview", "tagline", "image", "logo", "card_img", "hq_country", "active_in_countries", "street_address", "sdgs", "receiptMsg", "hide_bg_tip", "
|
|
541
|
+
readonly fields: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").RegexAction<string, "invalid csv">]>>, import("valibot").TransformAction<string, string[]>, import("valibot").ArraySchema<import("valibot").PicklistSchema<["url", "slug", "name", "overview", "tagline", "image", "logo", "card_img", "hq_country", "active_in_countries", "street_address", "sdgs", "receiptMsg", "hide_bg_tip", "published", "progDonationsAllowed", "allocation", "donateMethods", "increments", "fund_opt_in", "id", "registration_number", "endow_designation", "social_media_urls"], undefined>, undefined>]>, never>;
|
|
105
542
|
}, undefined>;
|
|
106
543
|
export type EndowsQueryParams = InferInput<typeof endowsQueryParams>;
|
|
107
544
|
export declare const endowQueryParam: import("valibot").ObjectSchema<{
|
|
108
|
-
readonly fields: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").RegexAction<string, "invalid csv">]>>, import("valibot").TransformAction<string, string[]>, import("valibot").ArraySchema<import("valibot").PicklistSchema<["url", "slug", "name", "overview", "tagline", "image", "logo", "card_img", "hq_country", "active_in_countries", "street_address", "sdgs", "receiptMsg", "hide_bg_tip", "
|
|
545
|
+
readonly fields: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").RegexAction<string, "invalid csv">]>>, import("valibot").TransformAction<string, string[]>, import("valibot").ArraySchema<import("valibot").PicklistSchema<["url", "slug", "name", "overview", "tagline", "image", "logo", "card_img", "hq_country", "active_in_countries", "street_address", "sdgs", "receiptMsg", "hide_bg_tip", "published", "progDonationsAllowed", "allocation", "donateMethods", "increments", "fund_opt_in", "id", "registration_number", "endow_designation", "social_media_urls"], undefined>, undefined>]>, never>;
|
|
109
546
|
readonly slug: import("valibot").OptionalSchema<import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").MaxLengthAction<string, 30, "max 30 characters">, import("valibot").RegexAction<string, "should not be an id">, import("valibot").RegexAction<string, "allowed: numbers | letters | - | . | _ | ~">, import("valibot").ExcludesAction<string, "..", "should not contain double periods">, import("valibot").CustomSchema<string, "should not start with dot">, import("valibot").CustomSchema<string, "should not end with dot">]>>, never>;
|
|
110
547
|
readonly env: import("valibot").PicklistSchema<readonly ["staging", "production"], undefined>;
|
|
111
548
|
}, undefined>;
|
package/dist/schema.mjs
CHANGED
|
@@ -63,7 +63,6 @@ export const endowment = object({
|
|
|
63
63
|
receiptMsg: optional(pipe(str, maxLength(MAX_RECEIPT_MSG_CHAR))),
|
|
64
64
|
//can be optional, default false and need not be explicit
|
|
65
65
|
hide_bg_tip: optional(boolean()),
|
|
66
|
-
sfCompounded: optional(boolean()),
|
|
67
66
|
published: optional(boolean()),
|
|
68
67
|
/** allowed by default */
|
|
69
68
|
progDonationsAllowed: optional(boolean()),
|
|
@@ -72,6 +71,7 @@ export const endowment = object({
|
|
|
72
71
|
increments: optional(pipe(array(increment), maxLength(MAX_NUM_INCREMENTS))),
|
|
73
72
|
fund_opt_in: optional(boolean()),
|
|
74
73
|
});
|
|
74
|
+
export const endowUpdate = partial(omit(endowment, ["id"]));
|
|
75
75
|
export const endowFields = keyof(endowment);
|
|
76
76
|
const csv = lazy((x) => {
|
|
77
77
|
if (!x)
|
package/package.json
CHANGED
package/src/db.mts
CHANGED
package/src/index.mts
CHANGED
|
@@ -7,6 +7,7 @@ export type {
|
|
|
7
7
|
EndowDesignation,
|
|
8
8
|
EndowQueryParam,
|
|
9
9
|
EndowsQueryParams,
|
|
10
|
+
EndowUpdate,
|
|
10
11
|
Environment,
|
|
11
12
|
Increment,
|
|
12
13
|
Milestone,
|
|
@@ -43,9 +44,9 @@ export type Endow = Pick<
|
|
|
43
44
|
| "tagline"
|
|
44
45
|
| "url"
|
|
45
46
|
| "claimed"
|
|
46
|
-
| "sfCompounded"
|
|
47
47
|
| "progDonationsAllowed"
|
|
48
48
|
| "donateMethods"
|
|
49
49
|
| "allocation"
|
|
50
50
|
| "increments"
|
|
51
|
+
| "receiptMsg"
|
|
51
52
|
>;
|
package/src/schema.mts
CHANGED
|
@@ -148,7 +148,6 @@ export const endowment = object({
|
|
|
148
148
|
receiptMsg: optional(pipe(str, maxLength(MAX_RECEIPT_MSG_CHAR))),
|
|
149
149
|
//can be optional, default false and need not be explicit
|
|
150
150
|
hide_bg_tip: optional(boolean()),
|
|
151
|
-
sfCompounded: optional(boolean()),
|
|
152
151
|
published: optional(boolean()),
|
|
153
152
|
/** allowed by default */
|
|
154
153
|
progDonationsAllowed: optional(boolean()),
|
|
@@ -159,9 +158,11 @@ export const endowment = object({
|
|
|
159
158
|
fund_opt_in: optional(boolean()),
|
|
160
159
|
});
|
|
161
160
|
|
|
161
|
+
export const endowUpdate = partial(omit(endowment, ["id"]));
|
|
162
162
|
export const endowFields = keyof(endowment);
|
|
163
163
|
|
|
164
164
|
export type Endowment = InferOutput<typeof endowment>;
|
|
165
|
+
export type EndowUpdate = InferOutput<typeof endowUpdate>;
|
|
165
166
|
export type EndowmentFields = InferOutput<typeof endowFields>;
|
|
166
167
|
|
|
167
168
|
const csv = lazy((x) => {
|