@better-giving/endowment 2.0.0 → 2.0.2
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 +65 -56
- package/dist/schema.mjs +12 -15
- package/package.json +1 -1
- package/src/schema.mts +18 -26
package/dist/schema.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { donateMethodId, donateMethodIds, env, orgDesignation, unSdgNum } from "@better-giving/schemas";
|
|
2
|
-
export type
|
|
2
|
+
export { type OrgDesignation as EndowDesignation, type Environment, type UnSdgNum, type DonateMethodId, https_url, } from "@better-giving/schemas";
|
|
3
3
|
export { orgDesignation as endowDesignation, env, unSdgNum, donateMethodId, donateMethodIds, };
|
|
4
4
|
import * as v from "valibot";
|
|
5
|
+
export declare const min_payout_amount = 50;
|
|
5
6
|
export declare const str: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>;
|
|
6
7
|
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
8
|
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[]>]>;
|
|
@@ -24,16 +25,14 @@ export declare const segment: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema
|
|
|
24
25
|
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
26
|
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
27
|
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
28
|
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.
|
|
31
|
-
readonly twitter: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
32
|
-
readonly linkedin: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
33
|
-
readonly discord: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
34
|
-
readonly instagram: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
35
|
-
readonly youtube: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
36
|
-
readonly tiktok: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
29
|
+
readonly facebook: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
30
|
+
readonly twitter: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
31
|
+
readonly linkedin: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
32
|
+
readonly discord: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
33
|
+
readonly instagram: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
34
|
+
readonly youtube: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
35
|
+
readonly tiktok: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
37
36
|
}, undefined>;
|
|
38
37
|
export interface SocialMediaURLs extends v.InferOutput<typeof social_media_urls> {
|
|
39
38
|
}
|
|
@@ -65,16 +64,16 @@ export declare const endowment: v.ObjectSchema<{
|
|
|
65
64
|
readonly active_in_countries: v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.NonEmptyAction<string[], "required">]>;
|
|
66
65
|
readonly street_address: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, never>;
|
|
67
66
|
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.
|
|
69
|
-
readonly twitter: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
70
|
-
readonly linkedin: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
71
|
-
readonly discord: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
72
|
-
readonly instagram: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
73
|
-
readonly youtube: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
74
|
-
readonly tiktok: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
67
|
+
readonly facebook: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
68
|
+
readonly twitter: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
69
|
+
readonly linkedin: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
70
|
+
readonly discord: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
71
|
+
readonly instagram: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
72
|
+
readonly youtube: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
73
|
+
readonly tiktok: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
75
74
|
}, undefined>;
|
|
76
75
|
/** website */
|
|
77
|
-
readonly url: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
76
|
+
readonly url: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
78
77
|
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
78
|
readonly receiptMsg: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 500, undefined>]>, never>;
|
|
80
79
|
readonly hide_bg_tip: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
@@ -108,6 +107,7 @@ export declare const endowment: v.ObjectSchema<{
|
|
|
108
107
|
readonly referrer: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
109
108
|
readonly referrer_expiry: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>, never>;
|
|
110
109
|
readonly w_form: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
110
|
+
readonly payout_minimum: v.OptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 50, undefined>]>, never>;
|
|
111
111
|
}, undefined>;
|
|
112
112
|
export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
113
113
|
readonly id: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
@@ -125,16 +125,16 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
125
125
|
readonly active_in_countries: v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.NonEmptyAction<string[], "required">]>;
|
|
126
126
|
readonly street_address: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, never>;
|
|
127
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.
|
|
129
|
-
readonly twitter: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
130
|
-
readonly linkedin: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
131
|
-
readonly discord: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
132
|
-
readonly instagram: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
133
|
-
readonly youtube: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
134
|
-
readonly tiktok: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
128
|
+
readonly facebook: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, 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.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, 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.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, 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.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, 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.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, 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.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, 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.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
135
135
|
}, undefined>;
|
|
136
136
|
/** website */
|
|
137
|
-
readonly url: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
137
|
+
readonly url: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
138
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
139
|
readonly receiptMsg: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 500, undefined>]>, never>;
|
|
140
140
|
readonly hide_bg_tip: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
@@ -168,6 +168,7 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
168
168
|
readonly referrer: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
169
169
|
readonly referrer_expiry: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>, never>;
|
|
170
170
|
readonly w_form: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
171
|
+
readonly payout_minimum: v.OptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 50, undefined>]>, never>;
|
|
171
172
|
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
172
173
|
readonly entries: Omit<{
|
|
173
174
|
readonly id: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
@@ -185,16 +186,16 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
185
186
|
readonly active_in_countries: v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.NonEmptyAction<string[], "required">]>;
|
|
186
187
|
readonly street_address: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, never>;
|
|
187
188
|
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.
|
|
189
|
-
readonly twitter: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
190
|
-
readonly linkedin: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
191
|
-
readonly discord: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
192
|
-
readonly instagram: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
193
|
-
readonly youtube: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
194
|
-
readonly tiktok: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
189
|
+
readonly facebook: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
190
|
+
readonly twitter: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
191
|
+
readonly linkedin: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
192
|
+
readonly discord: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
193
|
+
readonly instagram: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
194
|
+
readonly youtube: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
195
|
+
readonly tiktok: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
195
196
|
}, undefined>;
|
|
196
197
|
/** website */
|
|
197
|
-
readonly url: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
198
|
+
readonly url: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
198
199
|
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
200
|
readonly receiptMsg: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.MaxLengthAction<string, 500, undefined>]>, never>;
|
|
200
201
|
readonly hide_bg_tip: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
@@ -228,15 +229,16 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
228
229
|
readonly referrer: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
229
230
|
readonly referrer_expiry: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>, never>;
|
|
230
231
|
readonly w_form: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
232
|
+
readonly payout_minimum: v.OptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 50, undefined>]>, never>;
|
|
231
233
|
}, "id" | "env" | "claimed" | "kyc_donors_only" | "fiscal_sponsored">;
|
|
232
234
|
_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<{
|
|
233
235
|
cash: number;
|
|
234
236
|
liq: number;
|
|
235
237
|
lock: number;
|
|
236
|
-
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.
|
|
238
|
+
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | 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<{
|
|
237
239
|
value: string;
|
|
238
240
|
label: string;
|
|
239
|
-
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>>): v.Dataset<{
|
|
241
|
+
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string> | v.MinValueIssue<number, 50>>): v.Dataset<{
|
|
240
242
|
name: string;
|
|
241
243
|
hq_country: string;
|
|
242
244
|
active_in_countries: string[];
|
|
@@ -280,14 +282,15 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
280
282
|
referrer?: string | undefined;
|
|
281
283
|
referrer_expiry?: string | undefined;
|
|
282
284
|
w_form?: string | undefined;
|
|
285
|
+
payout_minimum?: number | undefined;
|
|
283
286
|
}, v.StringIssue | v.RegexIssue<string> | v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 0> | v.MaxValueIssue<number, 100> | v.ObjectIssue | v.CheckIssue<{
|
|
284
287
|
cash: number;
|
|
285
288
|
liq: number;
|
|
286
289
|
lock: number;
|
|
287
|
-
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.
|
|
290
|
+
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | 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<{
|
|
288
291
|
value: string;
|
|
289
292
|
label: string;
|
|
290
|
-
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>>;
|
|
293
|
+
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string> | v.MinValueIssue<number, 50>>;
|
|
291
294
|
readonly _types?: {
|
|
292
295
|
readonly input: {
|
|
293
296
|
name: string;
|
|
@@ -333,6 +336,7 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
333
336
|
referrer?: string | undefined;
|
|
334
337
|
referrer_expiry?: string | undefined;
|
|
335
338
|
w_form?: string | undefined;
|
|
339
|
+
payout_minimum?: number | undefined;
|
|
336
340
|
};
|
|
337
341
|
readonly output: {
|
|
338
342
|
name: string;
|
|
@@ -378,19 +382,20 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
378
382
|
referrer?: string | undefined;
|
|
379
383
|
referrer_expiry?: string | undefined;
|
|
380
384
|
w_form?: string | undefined;
|
|
385
|
+
payout_minimum?: number | undefined;
|
|
381
386
|
};
|
|
382
387
|
readonly issue: v.StringIssue | v.RegexIssue<string> | v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 0> | v.MaxValueIssue<number, 100> | v.ObjectIssue | v.CheckIssue<{
|
|
383
388
|
cash: number;
|
|
384
389
|
liq: number;
|
|
385
390
|
lock: number;
|
|
386
|
-
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.
|
|
391
|
+
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | 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<{
|
|
387
392
|
value: string;
|
|
388
393
|
label: string;
|
|
389
|
-
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>;
|
|
394
|
+
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string> | v.MinValueIssue<number, 50>;
|
|
390
395
|
} | undefined;
|
|
391
396
|
}, "_types" | "_run" | "entries"> & {
|
|
392
397
|
readonly entries: {
|
|
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.
|
|
398
|
+
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.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>, never>;
|
|
394
399
|
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
400
|
readonly name: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
396
401
|
readonly overview: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, never>, never>;
|
|
@@ -429,26 +434,27 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
429
434
|
readonly referrer: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>, never>;
|
|
430
435
|
readonly referrer_expiry: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>, never>, never>;
|
|
431
436
|
readonly w_form: v.OptionalSchema<v.OptionalSchema<v.StringSchema<undefined>, never>, never>;
|
|
437
|
+
readonly payout_minimum: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 50, undefined>]>, never>, never>;
|
|
432
438
|
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
439
|
readonly endow_designation: v.OptionalSchema<v.PicklistSchema<readonly ["Charity", "Religious Organization", "University", "Hospital", "Other"], undefined>, never>;
|
|
434
440
|
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.
|
|
436
|
-
readonly twitter: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
437
|
-
readonly linkedin: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
438
|
-
readonly discord: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
439
|
-
readonly instagram: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
440
|
-
readonly youtube: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
441
|
-
readonly tiktok: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.
|
|
441
|
+
readonly facebook: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
442
|
+
readonly twitter: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
443
|
+
readonly linkedin: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
444
|
+
readonly discord: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
445
|
+
readonly instagram: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
446
|
+
readonly youtube: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
447
|
+
readonly tiktok: v.OptionalSchema<v.LazySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.TransformAction<string, string>, v.UrlAction<string, "invalid url">]>>, never>;
|
|
442
448
|
}, undefined>, never>;
|
|
443
449
|
};
|
|
444
450
|
_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<{
|
|
445
451
|
cash: number;
|
|
446
452
|
liq: number;
|
|
447
453
|
lock: number;
|
|
448
|
-
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.
|
|
454
|
+
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | 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<{
|
|
449
455
|
value: string;
|
|
450
456
|
label: string;
|
|
451
|
-
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>>): v.Dataset<{
|
|
457
|
+
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string> | v.MinValueIssue<number, 50>>): v.Dataset<{
|
|
452
458
|
url?: string | undefined;
|
|
453
459
|
slug?: string | undefined;
|
|
454
460
|
name?: string | undefined;
|
|
@@ -481,6 +487,7 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
481
487
|
referrer?: string | undefined;
|
|
482
488
|
referrer_expiry?: string | undefined;
|
|
483
489
|
w_form?: string | undefined;
|
|
490
|
+
payout_minimum?: number | undefined;
|
|
484
491
|
registration_number?: string | undefined;
|
|
485
492
|
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
486
493
|
social_media_urls?: {
|
|
@@ -496,10 +503,10 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
496
503
|
cash: number;
|
|
497
504
|
liq: number;
|
|
498
505
|
lock: number;
|
|
499
|
-
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.
|
|
506
|
+
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | 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<{
|
|
500
507
|
value: string;
|
|
501
508
|
label: string;
|
|
502
|
-
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>>;
|
|
509
|
+
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string> | v.MinValueIssue<number, 50>>;
|
|
503
510
|
readonly _types?: {
|
|
504
511
|
readonly input: {
|
|
505
512
|
url?: string | undefined;
|
|
@@ -534,6 +541,7 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
534
541
|
referrer?: string | undefined;
|
|
535
542
|
referrer_expiry?: string | undefined;
|
|
536
543
|
w_form?: string | undefined;
|
|
544
|
+
payout_minimum?: number | undefined;
|
|
537
545
|
registration_number?: string | undefined;
|
|
538
546
|
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
539
547
|
social_media_urls?: {
|
|
@@ -579,6 +587,7 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
579
587
|
referrer?: string | undefined;
|
|
580
588
|
referrer_expiry?: string | undefined;
|
|
581
589
|
w_form?: string | undefined;
|
|
590
|
+
payout_minimum?: number | undefined;
|
|
582
591
|
registration_number?: string | undefined;
|
|
583
592
|
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
584
593
|
social_media_urls?: {
|
|
@@ -595,13 +604,13 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
595
604
|
cash: number;
|
|
596
605
|
liq: number;
|
|
597
606
|
lock: number;
|
|
598
|
-
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.
|
|
607
|
+
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | 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<{
|
|
599
608
|
value: string;
|
|
600
609
|
label: string;
|
|
601
|
-
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>;
|
|
610
|
+
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string> | v.MinValueIssue<number, 50>;
|
|
602
611
|
} | undefined;
|
|
603
612
|
};
|
|
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>;
|
|
613
|
+
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", "payout_minimum", "id", "env", "registration_number", "endow_designation", "social_media_urls", "claimed", "kyc_donors_only", "fiscal_sponsored"], undefined>;
|
|
605
614
|
export interface Endowment extends v.InferOutput<typeof endowment> {
|
|
606
615
|
}
|
|
607
616
|
export interface EndowUpdate extends v.InferOutput<typeof endowUpdate> {
|
|
@@ -609,7 +618,7 @@ export interface EndowUpdate extends v.InferOutput<typeof endowUpdate> {
|
|
|
609
618
|
export type EndowFields = v.InferOutput<typeof endowFields>;
|
|
610
619
|
/** for ein path, only fields in reg-num/env gsi is available */
|
|
611
620
|
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>;
|
|
621
|
+
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", "payout_minimum", "id", "env", "registration_number", "endow_designation", "social_media_urls", "claimed", "kyc_donors_only", "fiscal_sponsored"], undefined>, undefined>]>, never>;
|
|
613
622
|
}, undefined>;
|
|
614
623
|
export interface EndowQueryParams extends v.InferInput<typeof endowQueryParams> {
|
|
615
624
|
}
|
package/dist/schema.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { donateMethodId, donateMethodIds, env, orgDesignation, unSdgNum, } from "@better-giving/schemas";
|
|
1
|
+
import { donateMethodId, donateMethodIds, env, https_url, orgDesignation, unSdgNum, } from "@better-giving/schemas";
|
|
2
|
+
export { https_url, } from "@better-giving/schemas";
|
|
2
3
|
export { orgDesignation as endowDesignation, env, unSdgNum, donateMethodId, donateMethodIds, };
|
|
3
4
|
import * as v from "valibot";
|
|
5
|
+
export const min_payout_amount = 50;
|
|
4
6
|
export const str = v.pipe(v.string(), v.trim());
|
|
5
7
|
export const csv = v.lazy((x) => {
|
|
6
8
|
if (!x)
|
|
@@ -25,20 +27,14 @@ v.regex(/^[a-zA-Z0-9-._~]+$/, "allowed: numbers | letters | - | . | _ | ~"), v.e
|
|
|
25
27
|
export const slug = v.lazy((x) => (x ? segment : str));
|
|
26
28
|
export const reg_number = v.pipe(str, v.nonEmpty("required"), v.regex(/^[a-zA-Z0-9]+$/, "must only contain letters and numbers"));
|
|
27
29
|
export const _url = v.pipe(str, v.url());
|
|
28
|
-
export const httpsUrl = v.pipe(str, v.startsWith("https://", "should start with https://"), v.custom((x) => x !== "https://", "incomplete url"), v.url("invalid url"));
|
|
29
|
-
export const maybeEmptyHttpsUrl = v.lazy((x) => {
|
|
30
|
-
if (!x)
|
|
31
|
-
return str;
|
|
32
|
-
return httpsUrl;
|
|
33
|
-
});
|
|
34
30
|
export const social_media_urls = v.object({
|
|
35
|
-
facebook: v.optional(
|
|
36
|
-
twitter: v.optional(
|
|
37
|
-
linkedin: v.optional(
|
|
38
|
-
discord: v.optional(
|
|
39
|
-
instagram: v.optional(
|
|
40
|
-
youtube: v.optional(
|
|
41
|
-
tiktok: v.optional(
|
|
31
|
+
facebook: v.optional(https_url(false)),
|
|
32
|
+
twitter: v.optional(https_url(false)),
|
|
33
|
+
linkedin: v.optional(https_url(false)),
|
|
34
|
+
discord: v.optional(https_url(false)),
|
|
35
|
+
instagram: v.optional(https_url(false)),
|
|
36
|
+
youtube: v.optional(https_url(false)),
|
|
37
|
+
tiktok: v.optional(https_url(false)),
|
|
42
38
|
});
|
|
43
39
|
export const MAX_RECEIPT_MSG_CHAR = 500;
|
|
44
40
|
export const incrementVal = v.pipe(str, v.nonEmpty("required"), v.transform((x) => +x), v.number("must be a number"), v.minValue(0, "must be greater than 0"),
|
|
@@ -69,7 +65,7 @@ export const endowment = v.object({
|
|
|
69
65
|
street_address: v.optional(str),
|
|
70
66
|
social_media_urls,
|
|
71
67
|
/** website */
|
|
72
|
-
url: v.optional(
|
|
68
|
+
url: v.optional(https_url(false)),
|
|
73
69
|
sdgs: v.pipe(v.array(unSdgNum), v.minLength(1)),
|
|
74
70
|
receiptMsg: v.optional(v.pipe(str, v.maxLength(MAX_RECEIPT_MSG_CHAR))),
|
|
75
71
|
//can be optional, default false and need not be explicit
|
|
@@ -94,6 +90,7 @@ export const endowment = v.object({
|
|
|
94
90
|
referrer: v.optional(v.pipe(str, v.nonEmpty("required"))),
|
|
95
91
|
referrer_expiry: v.optional(v.pipe(str, v.isoTimestamp())),
|
|
96
92
|
w_form: v.optional(v.string()),
|
|
93
|
+
payout_minimum: v.optional(v.pipe(v.number(), v.minValue(min_payout_amount))),
|
|
97
94
|
});
|
|
98
95
|
export const endowUpdate = v.partial(v.omit(endowment, [
|
|
99
96
|
"id",
|
package/package.json
CHANGED
package/src/schema.mts
CHANGED
|
@@ -2,14 +2,16 @@ import {
|
|
|
2
2
|
donateMethodId,
|
|
3
3
|
donateMethodIds,
|
|
4
4
|
env,
|
|
5
|
+
https_url,
|
|
5
6
|
orgDesignation,
|
|
6
7
|
unSdgNum,
|
|
7
8
|
} from "@better-giving/schemas";
|
|
8
|
-
export
|
|
9
|
-
OrgDesignation as EndowDesignation,
|
|
10
|
-
Environment,
|
|
11
|
-
UnSdgNum,
|
|
12
|
-
DonateMethodId,
|
|
9
|
+
export {
|
|
10
|
+
type OrgDesignation as EndowDesignation,
|
|
11
|
+
type Environment,
|
|
12
|
+
type UnSdgNum,
|
|
13
|
+
type DonateMethodId,
|
|
14
|
+
https_url,
|
|
13
15
|
} from "@better-giving/schemas";
|
|
14
16
|
export {
|
|
15
17
|
orgDesignation as endowDesignation,
|
|
@@ -20,6 +22,8 @@ export {
|
|
|
20
22
|
};
|
|
21
23
|
import * as v from "valibot";
|
|
22
24
|
|
|
25
|
+
export const min_payout_amount = 50;
|
|
26
|
+
|
|
23
27
|
export const str = v.pipe(v.string(), v.trim());
|
|
24
28
|
export const csv = v.lazy((x) => {
|
|
25
29
|
if (!x) return str;
|
|
@@ -74,29 +78,16 @@ export const reg_number = v.pipe(
|
|
|
74
78
|
v.nonEmpty("required"),
|
|
75
79
|
v.regex(/^[a-zA-Z0-9]+$/, "must only contain letters and numbers")
|
|
76
80
|
);
|
|
77
|
-
|
|
78
81
|
export const _url = v.pipe(str, v.url());
|
|
79
82
|
|
|
80
|
-
export const httpsUrl = v.pipe(
|
|
81
|
-
str,
|
|
82
|
-
v.startsWith("https://", "should start with https://"),
|
|
83
|
-
v.custom((x) => x !== "https://", "incomplete url"),
|
|
84
|
-
v.url("invalid url")
|
|
85
|
-
);
|
|
86
|
-
|
|
87
|
-
export const maybeEmptyHttpsUrl = v.lazy((x) => {
|
|
88
|
-
if (!x) return str;
|
|
89
|
-
return httpsUrl;
|
|
90
|
-
});
|
|
91
|
-
|
|
92
83
|
export const social_media_urls = v.object({
|
|
93
|
-
facebook: v.optional(
|
|
94
|
-
twitter: v.optional(
|
|
95
|
-
linkedin: v.optional(
|
|
96
|
-
discord: v.optional(
|
|
97
|
-
instagram: v.optional(
|
|
98
|
-
youtube: v.optional(
|
|
99
|
-
tiktok: v.optional(
|
|
84
|
+
facebook: v.optional(https_url(false)),
|
|
85
|
+
twitter: v.optional(https_url(false)),
|
|
86
|
+
linkedin: v.optional(https_url(false)),
|
|
87
|
+
discord: v.optional(https_url(false)),
|
|
88
|
+
instagram: v.optional(https_url(false)),
|
|
89
|
+
youtube: v.optional(https_url(false)),
|
|
90
|
+
tiktok: v.optional(https_url(false)),
|
|
100
91
|
});
|
|
101
92
|
|
|
102
93
|
export interface SocialMediaURLs
|
|
@@ -150,7 +141,7 @@ export const endowment = v.object({
|
|
|
150
141
|
street_address: v.optional(str),
|
|
151
142
|
social_media_urls,
|
|
152
143
|
/** website */
|
|
153
|
-
url: v.optional(
|
|
144
|
+
url: v.optional(https_url(false)),
|
|
154
145
|
sdgs: v.pipe(v.array(unSdgNum), v.minLength(1)),
|
|
155
146
|
receiptMsg: v.optional(v.pipe(str, v.maxLength(MAX_RECEIPT_MSG_CHAR))),
|
|
156
147
|
//can be optional, default false and need not be explicit
|
|
@@ -186,6 +177,7 @@ export const endowment = v.object({
|
|
|
186
177
|
referrer: v.optional(v.pipe(str, v.nonEmpty("required"))),
|
|
187
178
|
referrer_expiry: v.optional(v.pipe(str, v.isoTimestamp())),
|
|
188
179
|
w_form: v.optional(v.string()),
|
|
180
|
+
payout_minimum: v.optional(v.pipe(v.number(), v.minValue(min_payout_amount))),
|
|
189
181
|
});
|
|
190
182
|
|
|
191
183
|
export const endowUpdate = v.partial(
|