@better-giving/donation 1.1.18 → 1.1.20
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/donation.d.mts +2 -0
- package/dist/intent.d.mts +1 -0
- package/dist/intent.mjs +1 -0
- package/package.json +2 -2
- package/src/donation.mts +2 -0
- package/src/intent.mts +1 -0
package/dist/donation.d.mts
CHANGED
|
@@ -115,6 +115,7 @@ export declare namespace Donation {
|
|
|
115
115
|
splitLiq: string;
|
|
116
116
|
charityName: string;
|
|
117
117
|
nonProfitMsg?: string;
|
|
118
|
+
msg_to_npo?: string;
|
|
118
119
|
claimed: boolean;
|
|
119
120
|
fiscalSponsored: boolean;
|
|
120
121
|
client: Client;
|
|
@@ -268,6 +269,7 @@ export declare namespace OnHoldDonation {
|
|
|
268
269
|
/** only allowed if honoree is provided */
|
|
269
270
|
tributeNotif?: Donation.TributeNotif;
|
|
270
271
|
donor_message?: string;
|
|
272
|
+
msg_to_npo?: string;
|
|
271
273
|
donor_public?: boolean;
|
|
272
274
|
company_name?: string;
|
|
273
275
|
} & (ApesAttributes | EmptyObject) & (Donation.WithKYC | Donation.WithoutKYC);
|
package/dist/intent.d.mts
CHANGED
|
@@ -96,6 +96,7 @@ export declare const intent: v.ObjectSchema<{
|
|
|
96
96
|
}, undefined>;
|
|
97
97
|
readonly donor_message: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, undefined>]>, v.MaxLengthAction<string, 500, undefined>]>, never>;
|
|
98
98
|
readonly donor_public: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
99
|
+
readonly msg_to_npo: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, undefined>]>, v.MaxLengthAction<string, 500, undefined>]>, never>;
|
|
99
100
|
readonly source: v.PicklistSchema<readonly ["bg-marketplace", "bg-widget", "tester-app"], undefined>;
|
|
100
101
|
readonly tribute: v.OptionalSchema<v.ObjectSchema<{
|
|
101
102
|
readonly full_name: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, undefined>]>;
|
package/dist/intent.mjs
CHANGED
|
@@ -58,6 +58,7 @@ export const intent = v.object({
|
|
|
58
58
|
donor,
|
|
59
59
|
donor_message: v.optional(v.pipe(required_str, v.maxLength(500))),
|
|
60
60
|
donor_public: v.optional(v.boolean()),
|
|
61
|
+
msg_to_npo: v.optional(v.pipe(required_str, v.maxLength(500))),
|
|
61
62
|
source: donation_source,
|
|
62
63
|
tribute: v.optional(tribute),
|
|
63
64
|
frequency,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-giving/donation",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.20",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@better-giving/config": "1.1.2"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@better-giving/types": "1.1.
|
|
8
|
+
"@better-giving/types": "1.1.7",
|
|
9
9
|
"@better-giving/schemas": "1.1.2",
|
|
10
10
|
"valibot": "0.42.0"
|
|
11
11
|
},
|
package/src/donation.mts
CHANGED
|
@@ -158,6 +158,7 @@ export declare namespace Donation {
|
|
|
158
158
|
|
|
159
159
|
charityName: string;
|
|
160
160
|
nonProfitMsg?: string;
|
|
161
|
+
msg_to_npo?: string;
|
|
161
162
|
claimed: boolean;
|
|
162
163
|
fiscalSponsored: boolean;
|
|
163
164
|
client: Client;
|
|
@@ -371,6 +372,7 @@ export declare namespace OnHoldDonation {
|
|
|
371
372
|
/** only allowed if honoree is provided */
|
|
372
373
|
tributeNotif?: Donation.TributeNotif;
|
|
373
374
|
donor_message?: string;
|
|
375
|
+
msg_to_npo?: string;
|
|
374
376
|
donor_public?: boolean;
|
|
375
377
|
company_name?: string;
|
|
376
378
|
} & (ApesAttributes | EmptyObject) &
|
package/src/intent.mts
CHANGED
|
@@ -98,6 +98,7 @@ export const intent = v.object({
|
|
|
98
98
|
donor,
|
|
99
99
|
donor_message: v.optional(v.pipe(required_str, v.maxLength(500))),
|
|
100
100
|
donor_public: v.optional(v.boolean()),
|
|
101
|
+
msg_to_npo: v.optional(v.pipe(required_str, v.maxLength(500))),
|
|
101
102
|
source: donation_source,
|
|
102
103
|
tribute: v.optional(tribute),
|
|
103
104
|
frequency,
|