@better-giving/endowment 4.0.36 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/db.d.mts +14 -13
- package/dist/npo.mjs +1 -0
- package/dist/schema.d.mts +494 -279
- package/dist/schema.mjs +1 -0
- package/package.json +3 -3
- package/src/npo.mts +1 -0
- package/src/schema.mts +1 -0
package/dist/schema.mjs
CHANGED
|
@@ -66,6 +66,7 @@ export const npo = v.object({
|
|
|
66
66
|
referrer_expiry: v.optional(v.pipe($, v.isoTimestamp())),
|
|
67
67
|
w_form: v.optional(v.string()),
|
|
68
68
|
payout_minimum: v.optional(v.pipe(v.number(), v.minValue(min_payout_amount))),
|
|
69
|
+
donor_address_required: v.optional(v.boolean()),
|
|
69
70
|
});
|
|
70
71
|
export const npo_update = v.partial(v.omit(npo, ["id", "claimed", "kyc_donors_only", "env", "fiscal_sponsored"]));
|
|
71
72
|
export const npo_fields = v.keyof(npo);
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-giving/endowment",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"ksuid": "3.0.0"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@better-giving/schemas": "2.0
|
|
8
|
+
"@better-giving/schemas": "2.1.0",
|
|
9
9
|
"@better-giving/types": "1.1.8",
|
|
10
10
|
"@better-giving/db": "2.0.7",
|
|
11
11
|
"@aws-sdk/lib-dynamodb": "3.485.0",
|
|
12
|
-
"valibot": "
|
|
12
|
+
"valibot": "1.2.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@better-giving/config": "1.1.2"
|
package/src/npo.mts
CHANGED
package/src/schema.mts
CHANGED
|
@@ -124,6 +124,7 @@ export const npo = v.object({
|
|
|
124
124
|
referrer_expiry: v.optional(v.pipe($, v.isoTimestamp())),
|
|
125
125
|
w_form: v.optional(v.string()),
|
|
126
126
|
payout_minimum: v.optional(v.pipe(v.number(), v.minValue(min_payout_amount))),
|
|
127
|
+
donor_address_required: v.optional(v.boolean()),
|
|
127
128
|
});
|
|
128
129
|
|
|
129
130
|
export const npo_update = v.partial(
|