@better-giving/endowment 1.1.13 → 1.1.14
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/schema.d.mts +348 -338
- package/dist/schema.mjs +93 -92
- package/package.json +1 -1
- package/src/schema.mts +157 -187
package/dist/schema.d.mts
CHANGED
|
@@ -1,239 +1,242 @@
|
|
|
1
1
|
import { donateMethodId, donateMethodIds, env, orgDesignation, unSdgNum } from "@better-giving/schemas";
|
|
2
2
|
export type { OrgDesignation as EndowDesignation, Environment, UnSdgNum, DonateMethodId, } from "@better-giving/schemas";
|
|
3
3
|
export { orgDesignation as endowDesignation, env, unSdgNum, donateMethodId, donateMethodIds, };
|
|
4
|
-
import
|
|
5
|
-
export declare const str:
|
|
6
|
-
export declare const csv:
|
|
7
|
-
export declare const csvStrs:
|
|
8
|
-
export declare const allocation:
|
|
9
|
-
readonly cash:
|
|
10
|
-
readonly liq:
|
|
11
|
-
readonly lock:
|
|
12
|
-
}, undefined>,
|
|
4
|
+
import * as v from "valibot";
|
|
5
|
+
export declare const str: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
6
|
+
export declare const csv: v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.RegexAction<string, "invalid csv">]>>;
|
|
7
|
+
export declare const csvStrs: v.SchemaWithPipe<[v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.RegexAction<string, "invalid csv">]>>, v.TransformAction<string, string[]>, v.FilterItemsAction<string[]>]>;
|
|
8
|
+
export declare const allocation: v.SchemaWithPipe<[v.ObjectSchema<{
|
|
9
|
+
readonly cash: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
10
|
+
readonly liq: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
11
|
+
readonly lock: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
12
|
+
}, undefined>, v.CheckAction<{
|
|
13
13
|
cash: number;
|
|
14
14
|
liq: number;
|
|
15
15
|
lock: number;
|
|
16
16
|
}, "must total to 100">]>;
|
|
17
|
-
export interface Allocation extends InferOutput<typeof allocation> {
|
|
17
|
+
export interface Allocation extends v.InferOutput<typeof allocation> {
|
|
18
18
|
}
|
|
19
|
-
export declare const
|
|
20
|
-
export type EndowId = InferOutput<typeof
|
|
21
|
-
export declare const endowIdParam:
|
|
19
|
+
export declare const int_id: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
20
|
+
export type EndowId = v.InferOutput<typeof int_id>;
|
|
21
|
+
export declare const endowIdParam: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TransformAction<string, number>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>]>;
|
|
22
22
|
export declare const segmentMaxChars = 30;
|
|
23
|
-
export declare const segment:
|
|
24
|
-
export declare const slug:
|
|
25
|
-
export declare const reg_number:
|
|
26
|
-
export declare const _url:
|
|
27
|
-
export declare const httpsUrl:
|
|
28
|
-
export declare const maybeEmptyHttpsUrl:
|
|
29
|
-
export declare const social_media_urls:
|
|
30
|
-
readonly facebook:
|
|
31
|
-
readonly twitter:
|
|
32
|
-
readonly linkedin:
|
|
33
|
-
readonly discord:
|
|
34
|
-
readonly instagram:
|
|
35
|
-
readonly youtube:
|
|
36
|
-
readonly tiktok:
|
|
23
|
+
export declare const segment: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 30, ({ requirement: r }: v.MaxLengthIssue<string, 30>) => string>, v.RegexAction<string, "should not be an id">, v.RegexAction<string, "allowed: numbers | letters | - | . | _ | ~">, v.ExcludesAction<string, "..", "should not contain double periods">, v.CustomSchema<string, "should not start with dot">, v.CustomSchema<string, "should not end with dot">]>;
|
|
24
|
+
export declare const slug: v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 30, ({ requirement: r }: v.MaxLengthIssue<string, 30>) => string>, v.RegexAction<string, "should not be an id">, v.RegexAction<string, "allowed: numbers | letters | - | . | _ | ~">, v.ExcludesAction<string, "..", "should not contain double periods">, v.CustomSchema<string, "should not start with dot">, v.CustomSchema<string, "should not end with dot">]>>;
|
|
25
|
+
export declare const reg_number: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">, v.RegexAction<string, "must only contain letters and numbers">]>;
|
|
26
|
+
export declare const _url: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>;
|
|
27
|
+
export declare const httpsUrl: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>;
|
|
28
|
+
export declare const maybeEmptyHttpsUrl: v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>;
|
|
29
|
+
export declare const social_media_urls: v.ObjectSchema<{
|
|
30
|
+
readonly facebook: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
31
|
+
readonly twitter: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
32
|
+
readonly linkedin: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
33
|
+
readonly discord: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
34
|
+
readonly instagram: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
35
|
+
readonly youtube: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
36
|
+
readonly tiktok: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
37
37
|
}, undefined>;
|
|
38
|
-
export interface SocialMediaURLs extends InferOutput<typeof social_media_urls> {
|
|
38
|
+
export interface SocialMediaURLs extends v.InferOutput<typeof social_media_urls> {
|
|
39
39
|
}
|
|
40
40
|
export declare const MAX_RECEIPT_MSG_CHAR = 500;
|
|
41
|
-
export declare const incrementVal:
|
|
41
|
+
export declare const incrementVal: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">, v.TransformAction<string, number>, v.NumberSchema<"must be a number">, v.MinValueAction<number, 0, "must be greater than 0">, v.TransformAction<number, string>]>;
|
|
42
42
|
export declare const MAX_NUM_INCREMENTS = 4;
|
|
43
43
|
export declare const incrementLabelMaxChars = 60;
|
|
44
44
|
export declare const taglineMaxChars = 140;
|
|
45
|
-
export declare const incrementLabel:
|
|
46
|
-
export declare const increment:
|
|
47
|
-
readonly value:
|
|
48
|
-
readonly label:
|
|
45
|
+
export declare const incrementLabel: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 60, ({ requirement: r }: v.MaxLengthIssue<string, 60>) => string>]>;
|
|
46
|
+
export declare const increment: v.ObjectSchema<{
|
|
47
|
+
readonly value: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">, v.TransformAction<string, number>, v.NumberSchema<"must be a number">, v.MinValueAction<number, 0, "must be greater than 0">, v.TransformAction<number, string>]>;
|
|
48
|
+
readonly label: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 60, ({ requirement: r }: v.MaxLengthIssue<string, 60>) => string>]>;
|
|
49
49
|
}, undefined>;
|
|
50
|
-
export interface Increment extends InferOutput<typeof increment> {
|
|
50
|
+
export interface Increment extends v.InferOutput<typeof increment> {
|
|
51
51
|
}
|
|
52
|
-
export declare const endowment:
|
|
53
|
-
readonly id:
|
|
54
|
-
readonly env:
|
|
55
|
-
readonly slug:
|
|
56
|
-
readonly registration_number:
|
|
57
|
-
readonly name:
|
|
58
|
-
readonly endow_designation:
|
|
59
|
-
readonly overview:
|
|
60
|
-
readonly tagline:
|
|
61
|
-
readonly image:
|
|
62
|
-
readonly logo:
|
|
63
|
-
readonly card_img:
|
|
64
|
-
readonly hq_country:
|
|
65
|
-
readonly active_in_countries:
|
|
66
|
-
readonly street_address:
|
|
67
|
-
readonly social_media_urls:
|
|
68
|
-
readonly facebook:
|
|
69
|
-
readonly twitter:
|
|
70
|
-
readonly linkedin:
|
|
71
|
-
readonly discord:
|
|
72
|
-
readonly instagram:
|
|
73
|
-
readonly youtube:
|
|
74
|
-
readonly tiktok:
|
|
52
|
+
export declare const endowment: v.ObjectSchema<{
|
|
53
|
+
readonly id: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
54
|
+
readonly env: v.PicklistSchema<readonly ["staging", "production"], undefined>;
|
|
55
|
+
readonly slug: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 30, ({ requirement: r }: v.MaxLengthIssue<string, 30>) => string>, v.RegexAction<string, "should not be an id">, v.RegexAction<string, "allowed: numbers | letters | - | . | _ | ~">, v.ExcludesAction<string, "..", "should not contain double periods">, v.CustomSchema<string, "should not start with dot">, v.CustomSchema<string, "should not end with dot">]>>, never>;
|
|
56
|
+
readonly registration_number: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">, v.RegexAction<string, "must only contain letters and numbers">]>;
|
|
57
|
+
readonly name: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>;
|
|
58
|
+
readonly endow_designation: v.PicklistSchema<readonly ["Charity", "Religious Organization", "University", "Hospital", "Other"], undefined>;
|
|
59
|
+
readonly overview: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, never>;
|
|
60
|
+
readonly tagline: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 140, undefined>]>, never>;
|
|
61
|
+
readonly image: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
62
|
+
readonly logo: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
63
|
+
readonly card_img: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
64
|
+
readonly hq_country: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>;
|
|
65
|
+
readonly active_in_countries: v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.NonEmptyAction<string[], "required">]>;
|
|
66
|
+
readonly street_address: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, never>;
|
|
67
|
+
readonly social_media_urls: v.ObjectSchema<{
|
|
68
|
+
readonly facebook: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
69
|
+
readonly twitter: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
70
|
+
readonly linkedin: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
71
|
+
readonly discord: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
72
|
+
readonly instagram: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
73
|
+
readonly youtube: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
74
|
+
readonly tiktok: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
75
75
|
}, undefined>;
|
|
76
76
|
/** website */
|
|
77
|
-
readonly url:
|
|
78
|
-
readonly sdgs:
|
|
79
|
-
readonly receiptMsg:
|
|
80
|
-
readonly hide_bg_tip:
|
|
81
|
-
readonly published:
|
|
77
|
+
readonly url: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
78
|
+
readonly sdgs: v.SchemaWithPipe<[v.ArraySchema<v.PicklistSchema<readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], undefined>, undefined>, v.MinLengthAction<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1, undefined>]>;
|
|
79
|
+
readonly receiptMsg: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 500, undefined>]>, never>;
|
|
80
|
+
readonly hide_bg_tip: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
81
|
+
readonly published: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
82
82
|
/** allowed by default */
|
|
83
|
-
readonly progDonationsAllowed:
|
|
84
|
-
readonly allocation:
|
|
85
|
-
readonly cash:
|
|
86
|
-
readonly liq:
|
|
87
|
-
readonly lock:
|
|
88
|
-
}, undefined>,
|
|
83
|
+
readonly progDonationsAllowed: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
84
|
+
readonly allocation: v.OptionalSchema<v.SchemaWithPipe<[v.ObjectSchema<{
|
|
85
|
+
readonly cash: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
86
|
+
readonly liq: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
87
|
+
readonly lock: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
88
|
+
}, undefined>, v.CheckAction<{
|
|
89
89
|
cash: number;
|
|
90
90
|
liq: number;
|
|
91
91
|
lock: number;
|
|
92
92
|
}, "must total to 100">]>, never>;
|
|
93
|
-
readonly donateMethods:
|
|
94
|
-
readonly increments:
|
|
95
|
-
readonly value:
|
|
96
|
-
readonly label:
|
|
97
|
-
}, undefined>, undefined>,
|
|
93
|
+
readonly donateMethods: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["stripe", "crypto", "daf", "stocks"], undefined>, undefined>, never>;
|
|
94
|
+
readonly increments: v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
|
95
|
+
readonly value: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">, v.TransformAction<string, number>, v.NumberSchema<"must be a number">, v.MinValueAction<number, 0, "must be greater than 0">, v.TransformAction<number, string>]>;
|
|
96
|
+
readonly label: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 60, ({ requirement: r }: v.MaxLengthIssue<string, 60>) => string>]>;
|
|
97
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
98
98
|
value: string;
|
|
99
99
|
label: string;
|
|
100
100
|
}[], 4, undefined>]>, never>;
|
|
101
|
-
readonly fund_opt_in:
|
|
102
|
-
readonly target:
|
|
101
|
+
readonly fund_opt_in: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
102
|
+
readonly target: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"smart", undefined>, v.SchemaWithPipe<[v.StringSchema<undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, string>]>], undefined>, never>;
|
|
103
103
|
/** endowment is not claimed if `false` only */
|
|
104
|
-
readonly claimed:
|
|
105
|
-
readonly kyc_donors_only:
|
|
106
|
-
readonly fiscal_sponsored:
|
|
107
|
-
readonly referral_id:
|
|
108
|
-
readonly referrer:
|
|
109
|
-
readonly referrer_expiry:
|
|
104
|
+
readonly claimed: v.BooleanSchema<undefined>;
|
|
105
|
+
readonly kyc_donors_only: v.BooleanSchema<undefined>;
|
|
106
|
+
readonly fiscal_sponsored: v.BooleanSchema<undefined>;
|
|
107
|
+
readonly referral_id: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
108
|
+
readonly referrer: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
109
|
+
readonly referrer_expiry: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>, never>;
|
|
110
|
+
readonly w_form: v.OptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, never>;
|
|
110
111
|
}, undefined>;
|
|
111
|
-
export declare const endowUpdate: Omit<Omit<
|
|
112
|
-
readonly id:
|
|
113
|
-
readonly env:
|
|
114
|
-
readonly slug:
|
|
115
|
-
readonly registration_number:
|
|
116
|
-
readonly name:
|
|
117
|
-
readonly endow_designation:
|
|
118
|
-
readonly overview:
|
|
119
|
-
readonly tagline:
|
|
120
|
-
readonly image:
|
|
121
|
-
readonly logo:
|
|
122
|
-
readonly card_img:
|
|
123
|
-
readonly hq_country:
|
|
124
|
-
readonly active_in_countries:
|
|
125
|
-
readonly street_address:
|
|
126
|
-
readonly social_media_urls:
|
|
127
|
-
readonly facebook:
|
|
128
|
-
readonly twitter:
|
|
129
|
-
readonly linkedin:
|
|
130
|
-
readonly discord:
|
|
131
|
-
readonly instagram:
|
|
132
|
-
readonly youtube:
|
|
133
|
-
readonly tiktok:
|
|
112
|
+
export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
113
|
+
readonly id: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
114
|
+
readonly env: v.PicklistSchema<readonly ["staging", "production"], undefined>;
|
|
115
|
+
readonly slug: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 30, ({ requirement: r }: v.MaxLengthIssue<string, 30>) => string>, v.RegexAction<string, "should not be an id">, v.RegexAction<string, "allowed: numbers | letters | - | . | _ | ~">, v.ExcludesAction<string, "..", "should not contain double periods">, v.CustomSchema<string, "should not start with dot">, v.CustomSchema<string, "should not end with dot">]>>, never>;
|
|
116
|
+
readonly registration_number: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">, v.RegexAction<string, "must only contain letters and numbers">]>;
|
|
117
|
+
readonly name: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>;
|
|
118
|
+
readonly endow_designation: v.PicklistSchema<readonly ["Charity", "Religious Organization", "University", "Hospital", "Other"], undefined>;
|
|
119
|
+
readonly overview: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, never>;
|
|
120
|
+
readonly tagline: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 140, undefined>]>, never>;
|
|
121
|
+
readonly image: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
122
|
+
readonly logo: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
123
|
+
readonly card_img: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
124
|
+
readonly hq_country: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>;
|
|
125
|
+
readonly active_in_countries: v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.NonEmptyAction<string[], "required">]>;
|
|
126
|
+
readonly street_address: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, never>;
|
|
127
|
+
readonly social_media_urls: v.ObjectSchema<{
|
|
128
|
+
readonly facebook: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
129
|
+
readonly twitter: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
130
|
+
readonly linkedin: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
131
|
+
readonly discord: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
132
|
+
readonly instagram: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
133
|
+
readonly youtube: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
134
|
+
readonly tiktok: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
134
135
|
}, undefined>;
|
|
135
136
|
/** website */
|
|
136
|
-
readonly url:
|
|
137
|
-
readonly sdgs:
|
|
138
|
-
readonly receiptMsg:
|
|
139
|
-
readonly hide_bg_tip:
|
|
140
|
-
readonly published:
|
|
137
|
+
readonly url: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
138
|
+
readonly sdgs: v.SchemaWithPipe<[v.ArraySchema<v.PicklistSchema<readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], undefined>, undefined>, v.MinLengthAction<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1, undefined>]>;
|
|
139
|
+
readonly receiptMsg: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 500, undefined>]>, never>;
|
|
140
|
+
readonly hide_bg_tip: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
141
|
+
readonly published: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
141
142
|
/** allowed by default */
|
|
142
|
-
readonly progDonationsAllowed:
|
|
143
|
-
readonly allocation:
|
|
144
|
-
readonly cash:
|
|
145
|
-
readonly liq:
|
|
146
|
-
readonly lock:
|
|
147
|
-
}, undefined>,
|
|
143
|
+
readonly progDonationsAllowed: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
144
|
+
readonly allocation: v.OptionalSchema<v.SchemaWithPipe<[v.ObjectSchema<{
|
|
145
|
+
readonly cash: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
146
|
+
readonly liq: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
147
|
+
readonly lock: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
148
|
+
}, undefined>, v.CheckAction<{
|
|
148
149
|
cash: number;
|
|
149
150
|
liq: number;
|
|
150
151
|
lock: number;
|
|
151
152
|
}, "must total to 100">]>, never>;
|
|
152
|
-
readonly donateMethods:
|
|
153
|
-
readonly increments:
|
|
154
|
-
readonly value:
|
|
155
|
-
readonly label:
|
|
156
|
-
}, undefined>, undefined>,
|
|
153
|
+
readonly donateMethods: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["stripe", "crypto", "daf", "stocks"], undefined>, undefined>, never>;
|
|
154
|
+
readonly increments: v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
|
155
|
+
readonly value: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">, v.TransformAction<string, number>, v.NumberSchema<"must be a number">, v.MinValueAction<number, 0, "must be greater than 0">, v.TransformAction<number, string>]>;
|
|
156
|
+
readonly label: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 60, ({ requirement: r }: v.MaxLengthIssue<string, 60>) => string>]>;
|
|
157
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
157
158
|
value: string;
|
|
158
159
|
label: string;
|
|
159
160
|
}[], 4, undefined>]>, never>;
|
|
160
|
-
readonly fund_opt_in:
|
|
161
|
-
readonly target:
|
|
161
|
+
readonly fund_opt_in: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
162
|
+
readonly target: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"smart", undefined>, v.SchemaWithPipe<[v.StringSchema<undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, string>]>], undefined>, never>;
|
|
162
163
|
/** endowment is not claimed if `false` only */
|
|
163
|
-
readonly claimed:
|
|
164
|
-
readonly kyc_donors_only:
|
|
165
|
-
readonly fiscal_sponsored:
|
|
166
|
-
readonly referral_id:
|
|
167
|
-
readonly referrer:
|
|
168
|
-
readonly referrer_expiry:
|
|
164
|
+
readonly claimed: v.BooleanSchema<undefined>;
|
|
165
|
+
readonly kyc_donors_only: v.BooleanSchema<undefined>;
|
|
166
|
+
readonly fiscal_sponsored: v.BooleanSchema<undefined>;
|
|
167
|
+
readonly referral_id: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
168
|
+
readonly referrer: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
169
|
+
readonly referrer_expiry: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>, never>;
|
|
170
|
+
readonly w_form: v.OptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, never>;
|
|
169
171
|
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
170
172
|
readonly entries: Omit<{
|
|
171
|
-
readonly id:
|
|
172
|
-
readonly env:
|
|
173
|
-
readonly slug:
|
|
174
|
-
readonly registration_number:
|
|
175
|
-
readonly name:
|
|
176
|
-
readonly endow_designation:
|
|
177
|
-
readonly overview:
|
|
178
|
-
readonly tagline:
|
|
179
|
-
readonly image:
|
|
180
|
-
readonly logo:
|
|
181
|
-
readonly card_img:
|
|
182
|
-
readonly hq_country:
|
|
183
|
-
readonly active_in_countries:
|
|
184
|
-
readonly street_address:
|
|
185
|
-
readonly social_media_urls:
|
|
186
|
-
readonly facebook:
|
|
187
|
-
readonly twitter:
|
|
188
|
-
readonly linkedin:
|
|
189
|
-
readonly discord:
|
|
190
|
-
readonly instagram:
|
|
191
|
-
readonly youtube:
|
|
192
|
-
readonly tiktok:
|
|
173
|
+
readonly id: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
174
|
+
readonly env: v.PicklistSchema<readonly ["staging", "production"], undefined>;
|
|
175
|
+
readonly slug: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 30, ({ requirement: r }: v.MaxLengthIssue<string, 30>) => string>, v.RegexAction<string, "should not be an id">, v.RegexAction<string, "allowed: numbers | letters | - | . | _ | ~">, v.ExcludesAction<string, "..", "should not contain double periods">, v.CustomSchema<string, "should not start with dot">, v.CustomSchema<string, "should not end with dot">]>>, never>;
|
|
176
|
+
readonly registration_number: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">, v.RegexAction<string, "must only contain letters and numbers">]>;
|
|
177
|
+
readonly name: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>;
|
|
178
|
+
readonly endow_designation: v.PicklistSchema<readonly ["Charity", "Religious Organization", "University", "Hospital", "Other"], undefined>;
|
|
179
|
+
readonly overview: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, never>;
|
|
180
|
+
readonly tagline: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 140, undefined>]>, never>;
|
|
181
|
+
readonly image: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
182
|
+
readonly logo: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
183
|
+
readonly card_img: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
184
|
+
readonly hq_country: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>;
|
|
185
|
+
readonly active_in_countries: v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.NonEmptyAction<string[], "required">]>;
|
|
186
|
+
readonly street_address: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, never>;
|
|
187
|
+
readonly social_media_urls: v.ObjectSchema<{
|
|
188
|
+
readonly facebook: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
189
|
+
readonly twitter: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
190
|
+
readonly linkedin: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
191
|
+
readonly discord: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
192
|
+
readonly instagram: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
193
|
+
readonly youtube: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
194
|
+
readonly tiktok: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
193
195
|
}, undefined>;
|
|
194
196
|
/** website */
|
|
195
|
-
readonly url:
|
|
196
|
-
readonly sdgs:
|
|
197
|
-
readonly receiptMsg:
|
|
198
|
-
readonly hide_bg_tip:
|
|
199
|
-
readonly published:
|
|
197
|
+
readonly url: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
198
|
+
readonly sdgs: v.SchemaWithPipe<[v.ArraySchema<v.PicklistSchema<readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], undefined>, undefined>, v.MinLengthAction<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1, undefined>]>;
|
|
199
|
+
readonly receiptMsg: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 500, undefined>]>, never>;
|
|
200
|
+
readonly hide_bg_tip: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
201
|
+
readonly published: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
200
202
|
/** allowed by default */
|
|
201
|
-
readonly progDonationsAllowed:
|
|
202
|
-
readonly allocation:
|
|
203
|
-
readonly cash:
|
|
204
|
-
readonly liq:
|
|
205
|
-
readonly lock:
|
|
206
|
-
}, undefined>,
|
|
203
|
+
readonly progDonationsAllowed: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
204
|
+
readonly allocation: v.OptionalSchema<v.SchemaWithPipe<[v.ObjectSchema<{
|
|
205
|
+
readonly cash: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
206
|
+
readonly liq: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
207
|
+
readonly lock: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
208
|
+
}, undefined>, v.CheckAction<{
|
|
207
209
|
cash: number;
|
|
208
210
|
liq: number;
|
|
209
211
|
lock: number;
|
|
210
212
|
}, "must total to 100">]>, never>;
|
|
211
|
-
readonly donateMethods:
|
|
212
|
-
readonly increments:
|
|
213
|
-
readonly value:
|
|
214
|
-
readonly label:
|
|
215
|
-
}, undefined>, undefined>,
|
|
213
|
+
readonly donateMethods: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["stripe", "crypto", "daf", "stocks"], undefined>, undefined>, never>;
|
|
214
|
+
readonly increments: v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
|
215
|
+
readonly value: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">, v.TransformAction<string, number>, v.NumberSchema<"must be a number">, v.MinValueAction<number, 0, "must be greater than 0">, v.TransformAction<number, string>]>;
|
|
216
|
+
readonly label: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 60, ({ requirement: r }: v.MaxLengthIssue<string, 60>) => string>]>;
|
|
217
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
216
218
|
value: string;
|
|
217
219
|
label: string;
|
|
218
220
|
}[], 4, undefined>]>, never>;
|
|
219
|
-
readonly fund_opt_in:
|
|
220
|
-
readonly target:
|
|
221
|
+
readonly fund_opt_in: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
222
|
+
readonly target: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"smart", undefined>, v.SchemaWithPipe<[v.StringSchema<undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, string>]>], undefined>, never>;
|
|
221
223
|
/** endowment is not claimed if `false` only */
|
|
222
|
-
readonly claimed:
|
|
223
|
-
readonly kyc_donors_only:
|
|
224
|
-
readonly fiscal_sponsored:
|
|
225
|
-
readonly referral_id:
|
|
226
|
-
readonly referrer:
|
|
227
|
-
readonly referrer_expiry:
|
|
224
|
+
readonly claimed: v.BooleanSchema<undefined>;
|
|
225
|
+
readonly kyc_donors_only: v.BooleanSchema<undefined>;
|
|
226
|
+
readonly fiscal_sponsored: v.BooleanSchema<undefined>;
|
|
227
|
+
readonly referral_id: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
228
|
+
readonly referrer: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
229
|
+
readonly referrer_expiry: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>, never>;
|
|
230
|
+
readonly w_form: v.OptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, never>;
|
|
228
231
|
}, "id" | "env" | "claimed" | "kyc_donors_only" | "fiscal_sponsored">;
|
|
229
|
-
_run(dataset:
|
|
232
|
+
_run(dataset: v.Dataset<unknown, never>, config: v.Config<v.StringIssue | v.RegexIssue<string> | v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 0> | v.MaxValueIssue<number, 100> | v.ObjectIssue | v.CheckIssue<{
|
|
230
233
|
cash: number;
|
|
231
234
|
liq: number;
|
|
232
235
|
lock: number;
|
|
233
|
-
}> |
|
|
236
|
+
}> | v.MinValueIssue<number, 1> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.StartsWithIssue<string, "https://"> | v.MaxLengthIssue<string, 60> | v.PicklistIssue | v.MaxLengthIssue<string, 140> | v.ArrayIssue | v.NonEmptyIssue<string[]> | v.MinLengthIssue<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | v.MaxLengthIssue<string, 500> | v.BooleanIssue | v.MaxLengthIssue<{
|
|
234
237
|
value: string;
|
|
235
238
|
label: string;
|
|
236
|
-
}[], 4> |
|
|
239
|
+
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>>): v.Dataset<{
|
|
237
240
|
name: string;
|
|
238
241
|
hq_country: string;
|
|
239
242
|
active_in_countries: string[];
|
|
@@ -276,14 +279,15 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
276
279
|
referral_id?: string | undefined;
|
|
277
280
|
referrer?: string | undefined;
|
|
278
281
|
referrer_expiry?: string | undefined;
|
|
279
|
-
|
|
282
|
+
w_form?: number | undefined;
|
|
283
|
+
}, v.StringIssue | v.RegexIssue<string> | v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 0> | v.MaxValueIssue<number, 100> | v.ObjectIssue | v.CheckIssue<{
|
|
280
284
|
cash: number;
|
|
281
285
|
liq: number;
|
|
282
286
|
lock: number;
|
|
283
|
-
}> |
|
|
287
|
+
}> | v.MinValueIssue<number, 1> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.StartsWithIssue<string, "https://"> | v.MaxLengthIssue<string, 60> | v.PicklistIssue | v.MaxLengthIssue<string, 140> | v.ArrayIssue | v.NonEmptyIssue<string[]> | v.MinLengthIssue<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | v.MaxLengthIssue<string, 500> | v.BooleanIssue | v.MaxLengthIssue<{
|
|
284
288
|
value: string;
|
|
285
289
|
label: string;
|
|
286
|
-
}[], 4> |
|
|
290
|
+
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>>;
|
|
287
291
|
readonly _types?: {
|
|
288
292
|
readonly input: {
|
|
289
293
|
name: string;
|
|
@@ -328,6 +332,7 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
328
332
|
referral_id?: string | undefined;
|
|
329
333
|
referrer?: string | undefined;
|
|
330
334
|
referrer_expiry?: string | undefined;
|
|
335
|
+
w_form?: number | undefined;
|
|
331
336
|
};
|
|
332
337
|
readonly output: {
|
|
333
338
|
name: string;
|
|
@@ -372,76 +377,78 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
372
377
|
referral_id?: string | undefined;
|
|
373
378
|
referrer?: string | undefined;
|
|
374
379
|
referrer_expiry?: string | undefined;
|
|
380
|
+
w_form?: number | undefined;
|
|
375
381
|
};
|
|
376
|
-
readonly issue:
|
|
382
|
+
readonly issue: v.StringIssue | v.RegexIssue<string> | v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 0> | v.MaxValueIssue<number, 100> | v.ObjectIssue | v.CheckIssue<{
|
|
377
383
|
cash: number;
|
|
378
384
|
liq: number;
|
|
379
385
|
lock: number;
|
|
380
|
-
}> |
|
|
386
|
+
}> | v.MinValueIssue<number, 1> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.StartsWithIssue<string, "https://"> | v.MaxLengthIssue<string, 60> | v.PicklistIssue | v.MaxLengthIssue<string, 140> | v.ArrayIssue | v.NonEmptyIssue<string[]> | v.MinLengthIssue<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | v.MaxLengthIssue<string, 500> | v.BooleanIssue | v.MaxLengthIssue<{
|
|
381
387
|
value: string;
|
|
382
388
|
label: string;
|
|
383
|
-
}[], 4> |
|
|
389
|
+
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>;
|
|
384
390
|
} | undefined;
|
|
385
391
|
}, "_types" | "_run" | "entries"> & {
|
|
386
392
|
readonly entries: {
|
|
387
|
-
readonly url:
|
|
388
|
-
readonly slug:
|
|
389
|
-
readonly name:
|
|
390
|
-
readonly overview:
|
|
391
|
-
readonly tagline:
|
|
392
|
-
readonly image:
|
|
393
|
-
readonly logo:
|
|
394
|
-
readonly card_img:
|
|
395
|
-
readonly hq_country:
|
|
396
|
-
readonly active_in_countries:
|
|
397
|
-
readonly street_address:
|
|
398
|
-
readonly sdgs:
|
|
399
|
-
readonly receiptMsg:
|
|
400
|
-
readonly hide_bg_tip:
|
|
401
|
-
readonly published:
|
|
402
|
-
readonly progDonationsAllowed:
|
|
403
|
-
readonly allocation:
|
|
404
|
-
readonly cash:
|
|
405
|
-
readonly liq:
|
|
406
|
-
readonly lock:
|
|
407
|
-
}, undefined>,
|
|
393
|
+
readonly url: v.OptionalSchema<v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>, never>;
|
|
394
|
+
readonly slug: v.OptionalSchema<v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 30, ({ requirement: r }: v.MaxLengthIssue<string, 30>) => string>, v.RegexAction<string, "should not be an id">, v.RegexAction<string, "allowed: numbers | letters | - | . | _ | ~">, v.ExcludesAction<string, "..", "should not contain double periods">, v.CustomSchema<string, "should not start with dot">, v.CustomSchema<string, "should not end with dot">]>>, never>, never>;
|
|
395
|
+
readonly name: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
396
|
+
readonly overview: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, never>, never>;
|
|
397
|
+
readonly tagline: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 140, undefined>]>, never>, never>;
|
|
398
|
+
readonly image: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>, never>;
|
|
399
|
+
readonly logo: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>, never>;
|
|
400
|
+
readonly card_img: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>, never>;
|
|
401
|
+
readonly hq_country: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
402
|
+
readonly active_in_countries: v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.NonEmptyAction<string[], "required">]>, never>;
|
|
403
|
+
readonly street_address: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, never>, never>;
|
|
404
|
+
readonly sdgs: v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.PicklistSchema<readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], undefined>, undefined>, v.MinLengthAction<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1, undefined>]>, never>;
|
|
405
|
+
readonly receiptMsg: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 500, undefined>]>, never>, never>;
|
|
406
|
+
readonly hide_bg_tip: v.OptionalSchema<v.OptionalSchema<v.BooleanSchema<undefined>, never>, never>;
|
|
407
|
+
readonly published: v.OptionalSchema<v.OptionalSchema<v.BooleanSchema<undefined>, never>, never>;
|
|
408
|
+
readonly progDonationsAllowed: v.OptionalSchema<v.OptionalSchema<v.BooleanSchema<undefined>, never>, never>;
|
|
409
|
+
readonly allocation: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.ObjectSchema<{
|
|
410
|
+
readonly cash: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
411
|
+
readonly liq: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
412
|
+
readonly lock: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
413
|
+
}, undefined>, v.CheckAction<{
|
|
408
414
|
cash: number;
|
|
409
415
|
liq: number;
|
|
410
416
|
lock: number;
|
|
411
417
|
}, "must total to 100">]>, never>, never>;
|
|
412
|
-
readonly donateMethods:
|
|
413
|
-
readonly increments:
|
|
414
|
-
readonly value:
|
|
415
|
-
readonly label:
|
|
416
|
-
}, undefined>, undefined>,
|
|
418
|
+
readonly donateMethods: v.OptionalSchema<v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["stripe", "crypto", "daf", "stocks"], undefined>, undefined>, never>, never>;
|
|
419
|
+
readonly increments: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
|
420
|
+
readonly value: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">, v.TransformAction<string, number>, v.NumberSchema<"must be a number">, v.MinValueAction<number, 0, "must be greater than 0">, v.TransformAction<number, string>]>;
|
|
421
|
+
readonly label: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 60, ({ requirement: r }: v.MaxLengthIssue<string, 60>) => string>]>;
|
|
422
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
417
423
|
value: string;
|
|
418
424
|
label: string;
|
|
419
425
|
}[], 4, undefined>]>, never>, never>;
|
|
420
|
-
readonly fund_opt_in:
|
|
421
|
-
readonly target:
|
|
422
|
-
readonly referral_id:
|
|
423
|
-
readonly referrer:
|
|
424
|
-
readonly referrer_expiry:
|
|
425
|
-
readonly
|
|
426
|
-
readonly
|
|
427
|
-
readonly
|
|
428
|
-
|
|
429
|
-
readonly
|
|
430
|
-
readonly
|
|
431
|
-
readonly
|
|
432
|
-
readonly
|
|
433
|
-
readonly
|
|
434
|
-
readonly
|
|
426
|
+
readonly fund_opt_in: v.OptionalSchema<v.OptionalSchema<v.BooleanSchema<undefined>, never>, never>;
|
|
427
|
+
readonly target: v.OptionalSchema<v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"smart", undefined>, v.SchemaWithPipe<[v.StringSchema<undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, string>]>], undefined>, never>, never>;
|
|
428
|
+
readonly referral_id: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>, never>;
|
|
429
|
+
readonly referrer: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>, never>;
|
|
430
|
+
readonly referrer_expiry: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>, never>, never>;
|
|
431
|
+
readonly w_form: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, never>, never>;
|
|
432
|
+
readonly registration_number: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">, v.RegexAction<string, "must only contain letters and numbers">]>, never>;
|
|
433
|
+
readonly endow_designation: v.OptionalSchema<v.PicklistSchema<readonly ["Charity", "Religious Organization", "University", "Hospital", "Other"], undefined>, never>;
|
|
434
|
+
readonly social_media_urls: v.OptionalSchema<v.ObjectSchema<{
|
|
435
|
+
readonly facebook: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
436
|
+
readonly twitter: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
437
|
+
readonly linkedin: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
438
|
+
readonly discord: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
439
|
+
readonly instagram: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
440
|
+
readonly youtube: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
441
|
+
readonly tiktok: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.StartsWithAction<string, "https://", "should start with https://">, v.CustomSchema<string, "incomplete url">, v.UrlAction<string, "invalid url">]>>, never>;
|
|
435
442
|
}, undefined>, never>;
|
|
436
443
|
};
|
|
437
|
-
_run(dataset:
|
|
444
|
+
_run(dataset: v.Dataset<unknown, never>, config: v.Config<v.StringIssue | v.RegexIssue<string> | v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 0> | v.MaxValueIssue<number, 100> | v.ObjectIssue | v.CheckIssue<{
|
|
438
445
|
cash: number;
|
|
439
446
|
liq: number;
|
|
440
447
|
lock: number;
|
|
441
|
-
}> |
|
|
448
|
+
}> | v.MinValueIssue<number, 1> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.StartsWithIssue<string, "https://"> | v.MaxLengthIssue<string, 60> | v.PicklistIssue | v.MaxLengthIssue<string, 140> | v.ArrayIssue | v.NonEmptyIssue<string[]> | v.MinLengthIssue<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | v.MaxLengthIssue<string, 500> | v.BooleanIssue | v.MaxLengthIssue<{
|
|
442
449
|
value: string;
|
|
443
450
|
label: string;
|
|
444
|
-
}[], 4> |
|
|
451
|
+
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>>): v.Dataset<{
|
|
445
452
|
url?: string | undefined;
|
|
446
453
|
slug?: string | undefined;
|
|
447
454
|
name?: string | undefined;
|
|
@@ -473,6 +480,7 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
473
480
|
referral_id?: string | undefined;
|
|
474
481
|
referrer?: string | undefined;
|
|
475
482
|
referrer_expiry?: string | undefined;
|
|
483
|
+
w_form?: number | undefined;
|
|
476
484
|
registration_number?: string | undefined;
|
|
477
485
|
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
478
486
|
social_media_urls?: {
|
|
@@ -484,14 +492,14 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
484
492
|
youtube?: string | undefined;
|
|
485
493
|
tiktok?: string | undefined;
|
|
486
494
|
} | undefined;
|
|
487
|
-
},
|
|
495
|
+
}, v.StringIssue | v.RegexIssue<string> | v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 0> | v.MaxValueIssue<number, 100> | v.ObjectIssue | v.CheckIssue<{
|
|
488
496
|
cash: number;
|
|
489
497
|
liq: number;
|
|
490
498
|
lock: number;
|
|
491
|
-
}> |
|
|
499
|
+
}> | v.MinValueIssue<number, 1> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.StartsWithIssue<string, "https://"> | v.MaxLengthIssue<string, 60> | v.PicklistIssue | v.MaxLengthIssue<string, 140> | v.ArrayIssue | v.NonEmptyIssue<string[]> | v.MinLengthIssue<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | v.MaxLengthIssue<string, 500> | v.BooleanIssue | v.MaxLengthIssue<{
|
|
492
500
|
value: string;
|
|
493
501
|
label: string;
|
|
494
|
-
}[], 4> |
|
|
502
|
+
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>>;
|
|
495
503
|
readonly _types?: {
|
|
496
504
|
readonly input: {
|
|
497
505
|
url?: string | undefined;
|
|
@@ -525,6 +533,7 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
525
533
|
referral_id?: string | undefined;
|
|
526
534
|
referrer?: string | undefined;
|
|
527
535
|
referrer_expiry?: string | undefined;
|
|
536
|
+
w_form?: number | undefined;
|
|
528
537
|
registration_number?: string | undefined;
|
|
529
538
|
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
530
539
|
social_media_urls?: {
|
|
@@ -569,6 +578,7 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
569
578
|
referral_id?: string | undefined;
|
|
570
579
|
referrer?: string | undefined;
|
|
571
580
|
referrer_expiry?: string | undefined;
|
|
581
|
+
w_form?: number | undefined;
|
|
572
582
|
registration_number?: string | undefined;
|
|
573
583
|
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
574
584
|
social_media_urls?: {
|
|
@@ -581,56 +591,56 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
581
591
|
tiktok?: string | undefined;
|
|
582
592
|
} | undefined;
|
|
583
593
|
};
|
|
584
|
-
readonly issue:
|
|
594
|
+
readonly issue: v.StringIssue | v.RegexIssue<string> | v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 0> | v.MaxValueIssue<number, 100> | v.ObjectIssue | v.CheckIssue<{
|
|
585
595
|
cash: number;
|
|
586
596
|
liq: number;
|
|
587
597
|
lock: number;
|
|
588
|
-
}> |
|
|
598
|
+
}> | v.MinValueIssue<number, 1> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.StartsWithIssue<string, "https://"> | v.MaxLengthIssue<string, 60> | v.PicklistIssue | v.MaxLengthIssue<string, 140> | v.ArrayIssue | v.NonEmptyIssue<string[]> | v.MinLengthIssue<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | v.MaxLengthIssue<string, 500> | v.BooleanIssue | v.MaxLengthIssue<{
|
|
589
599
|
value: string;
|
|
590
600
|
label: string;
|
|
591
|
-
}[], 4> |
|
|
601
|
+
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>;
|
|
592
602
|
} | undefined;
|
|
593
603
|
};
|
|
594
|
-
export declare const endowFields:
|
|
595
|
-
export interface Endowment extends InferOutput<typeof endowment> {
|
|
604
|
+
export declare const endowFields: v.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", "target", "referral_id", "referrer", "referrer_expiry", "w_form", "id", "env", "registration_number", "endow_designation", "social_media_urls", "claimed", "kyc_donors_only", "fiscal_sponsored"], undefined>;
|
|
605
|
+
export interface Endowment extends v.InferOutput<typeof endowment> {
|
|
596
606
|
}
|
|
597
|
-
export interface EndowUpdate extends InferOutput<typeof endowUpdate> {
|
|
607
|
+
export interface EndowUpdate extends v.InferOutput<typeof endowUpdate> {
|
|
598
608
|
}
|
|
599
|
-
export type EndowFields = InferOutput<typeof endowFields>;
|
|
609
|
+
export type EndowFields = v.InferOutput<typeof endowFields>;
|
|
600
610
|
/** for ein path, only fields in reg-num/env gsi is available */
|
|
601
|
-
export declare const endowQueryParams:
|
|
602
|
-
readonly fields:
|
|
611
|
+
export declare const endowQueryParams: v.ObjectSchema<{
|
|
612
|
+
readonly fields: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.RegexAction<string, "invalid csv">]>>, v.TransformAction<string, string[]>, v.FilterItemsAction<string[]>]>, v.ArraySchema<v.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", "target", "referral_id", "referrer", "referrer_expiry", "w_form", "id", "env", "registration_number", "endow_designation", "social_media_urls", "claimed", "kyc_donors_only", "fiscal_sponsored"], undefined>, undefined>]>, never>;
|
|
603
613
|
}, undefined>;
|
|
604
|
-
export interface EndowQueryParams extends InferInput<typeof endowQueryParams> {
|
|
614
|
+
export interface EndowQueryParams extends v.InferInput<typeof endowQueryParams> {
|
|
605
615
|
}
|
|
606
|
-
export declare const programId:
|
|
607
|
-
export type ProgramId = InferOutput<typeof programId>;
|
|
608
|
-
export declare const milestoneId:
|
|
609
|
-
export type MilestoneId = InferOutput<typeof milestoneId>;
|
|
610
|
-
export declare const newMilestone:
|
|
611
|
-
readonly date:
|
|
612
|
-
readonly title:
|
|
613
|
-
readonly description:
|
|
614
|
-
readonly media:
|
|
616
|
+
export declare const programId: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UuidAction<string, undefined>]>;
|
|
617
|
+
export type ProgramId = v.InferOutput<typeof programId>;
|
|
618
|
+
export declare const milestoneId: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UuidAction<string, undefined>]>;
|
|
619
|
+
export type MilestoneId = v.InferOutput<typeof milestoneId>;
|
|
620
|
+
export declare const newMilestone: v.ObjectSchema<{
|
|
621
|
+
readonly date: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>;
|
|
622
|
+
readonly title: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
623
|
+
readonly description: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
624
|
+
readonly media: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
615
625
|
}, undefined>;
|
|
616
|
-
export declare const milestoneUpdate: Omit<
|
|
617
|
-
readonly date:
|
|
618
|
-
readonly title:
|
|
619
|
-
readonly description:
|
|
620
|
-
readonly media:
|
|
626
|
+
export declare const milestoneUpdate: Omit<v.ObjectSchema<{
|
|
627
|
+
readonly date: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>;
|
|
628
|
+
readonly title: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
629
|
+
readonly description: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
630
|
+
readonly media: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
621
631
|
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
622
632
|
readonly entries: {
|
|
623
|
-
readonly date:
|
|
624
|
-
readonly title:
|
|
625
|
-
readonly description:
|
|
626
|
-
readonly media:
|
|
633
|
+
readonly date: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>, never>;
|
|
634
|
+
readonly title: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
635
|
+
readonly description: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
636
|
+
readonly media: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
627
637
|
};
|
|
628
|
-
_run(dataset:
|
|
638
|
+
_run(dataset: v.Dataset<unknown, never>, config: v.Config<v.StringIssue | v.ObjectIssue | v.UrlIssue<string> | v.IsoTimestampIssue<string>>): v.Dataset<{
|
|
629
639
|
title: string;
|
|
630
640
|
description: string;
|
|
631
641
|
date?: string | undefined;
|
|
632
642
|
media?: string | undefined;
|
|
633
|
-
},
|
|
643
|
+
}, v.StringIssue | v.ObjectIssue | v.UrlIssue<string> | v.IsoTimestampIssue<string>>;
|
|
634
644
|
readonly _types?: {
|
|
635
645
|
readonly input: {
|
|
636
646
|
title: string;
|
|
@@ -644,61 +654,61 @@ export declare const milestoneUpdate: Omit<import("valibot").ObjectSchema<{
|
|
|
644
654
|
date?: string | undefined;
|
|
645
655
|
media?: string | undefined;
|
|
646
656
|
};
|
|
647
|
-
readonly issue:
|
|
657
|
+
readonly issue: v.StringIssue | v.ObjectIssue | v.UrlIssue<string> | v.IsoTimestampIssue<string>;
|
|
648
658
|
} | undefined;
|
|
649
659
|
};
|
|
650
|
-
export interface MilestoneUpdate extends InferOutput<typeof milestoneUpdate> {
|
|
660
|
+
export interface MilestoneUpdate extends v.InferOutput<typeof milestoneUpdate> {
|
|
651
661
|
}
|
|
652
|
-
export interface NewMilestone extends InferOutput<typeof newMilestone> {
|
|
662
|
+
export interface NewMilestone extends v.InferOutput<typeof newMilestone> {
|
|
653
663
|
}
|
|
654
|
-
export declare const milestone:
|
|
655
|
-
readonly id:
|
|
656
|
-
readonly date:
|
|
657
|
-
readonly title:
|
|
658
|
-
readonly description:
|
|
659
|
-
readonly media:
|
|
664
|
+
export declare const milestone: v.ObjectSchema<{
|
|
665
|
+
readonly id: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UuidAction<string, undefined>]>;
|
|
666
|
+
readonly date: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>;
|
|
667
|
+
readonly title: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
668
|
+
readonly description: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
669
|
+
readonly media: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
660
670
|
}, undefined>;
|
|
661
|
-
export interface Milestone extends InferOutput<typeof milestone> {
|
|
671
|
+
export interface Milestone extends v.InferOutput<typeof milestone> {
|
|
662
672
|
}
|
|
663
|
-
export declare const newProgram:
|
|
664
|
-
readonly title:
|
|
665
|
-
readonly description:
|
|
666
|
-
readonly banner:
|
|
673
|
+
export declare const newProgram: v.ObjectSchema<{
|
|
674
|
+
readonly title: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
675
|
+
readonly description: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
676
|
+
readonly banner: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
667
677
|
/** null unsets target */
|
|
668
|
-
readonly targetRaise:
|
|
669
|
-
readonly milestones:
|
|
670
|
-
readonly date:
|
|
671
|
-
readonly title:
|
|
672
|
-
readonly description:
|
|
673
|
-
readonly media:
|
|
674
|
-
}, undefined>, undefined>,
|
|
678
|
+
readonly targetRaise: v.NullishSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, never>;
|
|
679
|
+
readonly milestones: v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
|
680
|
+
readonly date: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>;
|
|
681
|
+
readonly title: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
682
|
+
readonly description: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
683
|
+
readonly media: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
684
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
675
685
|
date: string;
|
|
676
686
|
title: string;
|
|
677
687
|
description: string;
|
|
678
688
|
media?: string | undefined;
|
|
679
689
|
}[], 24, undefined>]>;
|
|
680
690
|
}, undefined>;
|
|
681
|
-
export declare const program:
|
|
691
|
+
export declare const program: v.ObjectSchema<{
|
|
682
692
|
/** in USD */
|
|
683
|
-
readonly totalDonations:
|
|
684
|
-
readonly id:
|
|
685
|
-
readonly title:
|
|
686
|
-
readonly description:
|
|
687
|
-
readonly banner:
|
|
688
|
-
readonly targetRaise:
|
|
693
|
+
readonly totalDonations: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
694
|
+
readonly id: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UuidAction<string, undefined>]>;
|
|
695
|
+
readonly title: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
696
|
+
readonly description: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
697
|
+
readonly banner: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
698
|
+
readonly targetRaise: v.NullishSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, never>;
|
|
689
699
|
}, undefined>;
|
|
690
|
-
export declare const programUpdate: Omit<Omit<
|
|
691
|
-
readonly title:
|
|
692
|
-
readonly description:
|
|
693
|
-
readonly banner:
|
|
700
|
+
export declare const programUpdate: Omit<Omit<v.ObjectSchema<{
|
|
701
|
+
readonly title: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
702
|
+
readonly description: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
703
|
+
readonly banner: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
694
704
|
/** null unsets target */
|
|
695
|
-
readonly targetRaise:
|
|
696
|
-
readonly milestones:
|
|
697
|
-
readonly date:
|
|
698
|
-
readonly title:
|
|
699
|
-
readonly description:
|
|
700
|
-
readonly media:
|
|
701
|
-
}, undefined>, undefined>,
|
|
705
|
+
readonly targetRaise: v.NullishSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, never>;
|
|
706
|
+
readonly milestones: v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
|
707
|
+
readonly date: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>;
|
|
708
|
+
readonly title: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
709
|
+
readonly description: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
710
|
+
readonly media: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
711
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
702
712
|
date: string;
|
|
703
713
|
title: string;
|
|
704
714
|
description: string;
|
|
@@ -706,29 +716,29 @@ export declare const programUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
706
716
|
}[], 24, undefined>]>;
|
|
707
717
|
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
708
718
|
readonly entries: Omit<{
|
|
709
|
-
readonly title:
|
|
710
|
-
readonly description:
|
|
711
|
-
readonly banner:
|
|
719
|
+
readonly title: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
720
|
+
readonly description: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
721
|
+
readonly banner: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
712
722
|
/** null unsets target */
|
|
713
|
-
readonly targetRaise:
|
|
714
|
-
readonly milestones:
|
|
715
|
-
readonly date:
|
|
716
|
-
readonly title:
|
|
717
|
-
readonly description:
|
|
718
|
-
readonly media:
|
|
719
|
-
}, undefined>, undefined>,
|
|
723
|
+
readonly targetRaise: v.NullishSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, never>;
|
|
724
|
+
readonly milestones: v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
|
725
|
+
readonly date: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>;
|
|
726
|
+
readonly title: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
727
|
+
readonly description: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
728
|
+
readonly media: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
729
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
720
730
|
date: string;
|
|
721
731
|
title: string;
|
|
722
732
|
description: string;
|
|
723
733
|
media?: string | undefined;
|
|
724
734
|
}[], 24, undefined>]>;
|
|
725
735
|
}, "milestones">;
|
|
726
|
-
_run(dataset:
|
|
736
|
+
_run(dataset: v.Dataset<unknown, never>, config: v.Config<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.ObjectIssue | v.UrlIssue<string>>): v.Dataset<{
|
|
727
737
|
title: string;
|
|
728
738
|
description: string;
|
|
729
739
|
banner?: string | undefined;
|
|
730
740
|
targetRaise?: number | null | undefined;
|
|
731
|
-
},
|
|
741
|
+
}, v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.ObjectIssue | v.UrlIssue<string>>;
|
|
732
742
|
readonly _types?: {
|
|
733
743
|
readonly input: {
|
|
734
744
|
title: string;
|
|
@@ -742,21 +752,21 @@ export declare const programUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
742
752
|
banner?: string | undefined;
|
|
743
753
|
targetRaise?: number | null | undefined;
|
|
744
754
|
};
|
|
745
|
-
readonly issue:
|
|
755
|
+
readonly issue: v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.ObjectIssue | v.UrlIssue<string>;
|
|
746
756
|
} | undefined;
|
|
747
757
|
}, "_types" | "_run" | "entries"> & {
|
|
748
758
|
readonly entries: {
|
|
749
|
-
readonly title:
|
|
750
|
-
readonly description:
|
|
751
|
-
readonly banner:
|
|
752
|
-
readonly targetRaise:
|
|
759
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, never>;
|
|
760
|
+
readonly description: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, never>;
|
|
761
|
+
readonly banner: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>, never>;
|
|
762
|
+
readonly targetRaise: v.OptionalSchema<v.NullishSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, never>, never>;
|
|
753
763
|
};
|
|
754
|
-
_run(dataset:
|
|
764
|
+
_run(dataset: v.Dataset<unknown, never>, config: v.Config<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.ObjectIssue | v.UrlIssue<string>>): v.Dataset<{
|
|
755
765
|
title?: string | undefined;
|
|
756
766
|
description?: string | undefined;
|
|
757
767
|
banner?: string | undefined;
|
|
758
768
|
targetRaise?: number | null | undefined;
|
|
759
|
-
},
|
|
769
|
+
}, v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.ObjectIssue | v.UrlIssue<string>>;
|
|
760
770
|
readonly _types?: {
|
|
761
771
|
readonly input: {
|
|
762
772
|
title?: string | undefined;
|
|
@@ -770,38 +780,38 @@ export declare const programUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
770
780
|
banner?: string | undefined;
|
|
771
781
|
targetRaise?: number | null | undefined;
|
|
772
782
|
};
|
|
773
|
-
readonly issue:
|
|
783
|
+
readonly issue: v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.ObjectIssue | v.UrlIssue<string>;
|
|
774
784
|
} | undefined;
|
|
775
785
|
};
|
|
776
|
-
export interface NewProgram extends InferOutput<typeof newProgram> {
|
|
786
|
+
export interface NewProgram extends v.InferOutput<typeof newProgram> {
|
|
777
787
|
}
|
|
778
|
-
export interface Program extends InferOutput<typeof program> {
|
|
788
|
+
export interface Program extends v.InferOutput<typeof program> {
|
|
779
789
|
}
|
|
780
|
-
export interface ProgramUpdate extends InferOutput<typeof programUpdate> {
|
|
790
|
+
export interface ProgramUpdate extends v.InferOutput<typeof programUpdate> {
|
|
781
791
|
}
|
|
782
|
-
export declare const mediaUrl:
|
|
792
|
+
export declare const mediaUrl: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>;
|
|
783
793
|
/**
|
|
784
794
|
* so that media is automatically sorted by date
|
|
785
795
|
* @see https://github.com/segmentio/ksuid
|
|
786
796
|
* */
|
|
787
|
-
export declare const mediaKsuid:
|
|
797
|
+
export declare const mediaKsuid: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, undefined>]>;
|
|
788
798
|
export declare const mediaTypes: readonly ["album", "article", "video"];
|
|
789
|
-
export declare const mediaType:
|
|
790
|
-
export type MediaType = InferOutput<typeof mediaType>;
|
|
791
|
-
export declare const mediaUpdate:
|
|
792
|
-
readonly url:
|
|
793
|
-
readonly featured:
|
|
799
|
+
export declare const mediaType: v.PicklistSchema<readonly ["album", "article", "video"], undefined>;
|
|
800
|
+
export type MediaType = v.InferOutput<typeof mediaType>;
|
|
801
|
+
export declare const mediaUpdate: v.ObjectSchema<{
|
|
802
|
+
readonly url: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.UrlAction<string, undefined>]>, never>;
|
|
803
|
+
readonly featured: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
794
804
|
}, undefined>;
|
|
795
|
-
export interface MediaUpdate extends InferOutput<typeof mediaUpdate> {
|
|
805
|
+
export interface MediaUpdate extends v.InferOutput<typeof mediaUpdate> {
|
|
796
806
|
}
|
|
797
|
-
export type MediaId = InferOutput<typeof mediaKsuid>;
|
|
798
|
-
export declare const mediaQueryParams:
|
|
799
|
-
readonly type:
|
|
800
|
-
readonly nextPageKey:
|
|
801
|
-
readonly featured:
|
|
802
|
-
readonly limit:
|
|
807
|
+
export type MediaId = v.InferOutput<typeof mediaKsuid>;
|
|
808
|
+
export declare const mediaQueryParams: v.ObjectSchema<{
|
|
809
|
+
readonly type: v.OptionalSchema<v.PicklistSchema<readonly ["album", "article", "video"], undefined>, never>;
|
|
810
|
+
readonly nextPageKey: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.Base64Action<string, undefined>]>, never>;
|
|
811
|
+
readonly featured: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, boolean>, v.BooleanSchema<undefined>]>, never>;
|
|
812
|
+
readonly limit: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, never>;
|
|
803
813
|
}, undefined>;
|
|
804
|
-
export interface MediaQueryParams extends InferInput<typeof mediaQueryParams> {
|
|
814
|
+
export interface MediaQueryParams extends v.InferInput<typeof mediaQueryParams> {
|
|
805
815
|
}
|
|
806
|
-
export interface MediaQueryParamsObj extends InferOutput<typeof mediaQueryParams> {
|
|
816
|
+
export interface MediaQueryParamsObj extends v.InferOutput<typeof mediaQueryParams> {
|
|
807
817
|
}
|