@better-giving/donation 3.0.28 → 3.0.29
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/interfaces.d.mts +3 -1
- package/dist/schema.mjs +1 -4
- package/package.json +1 -1
- package/src/interfaces.mts +3 -1
- package/src/schema.mts +1 -4
package/dist/interfaces.d.mts
CHANGED
|
@@ -84,8 +84,10 @@ export interface IDonationOnHoldAttr {
|
|
|
84
84
|
fiatRamp?: TFiatRamp;
|
|
85
85
|
/** bg-marketplace | bg-widget */
|
|
86
86
|
appUsed: TDonationSource;
|
|
87
|
-
/** nanoid
|
|
87
|
+
/** nanoid */
|
|
88
88
|
form_id?: string;
|
|
89
|
+
/** form tag at the time of settlement */
|
|
90
|
+
form_tag?: string;
|
|
89
91
|
/** "fiat", "trx", "hbar", "eth", "matic", "xrp-mainnet" */
|
|
90
92
|
chainId: string;
|
|
91
93
|
/** "Fiat", "TRON", "Hedera", "Ethereum", "", "Polygon", "Stripe", "XRP Ledger" */
|
package/dist/schema.mjs
CHANGED
|
@@ -3,10 +3,7 @@ import { endOfDay, iso_date, startOfDay } from "@better-giving/schemas/date";
|
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
export const frequencies = ["one-time", "recurring"];
|
|
5
5
|
export const frequency = v.picklist(frequencies, "Please select donation frequency");
|
|
6
|
-
export const donation_sources = [
|
|
7
|
-
"bg-marketplace",
|
|
8
|
-
"bg-widget",
|
|
9
|
-
];
|
|
6
|
+
export const donation_sources = ["bg-marketplace", "bg-widget"];
|
|
10
7
|
export const donation_source = v.picklist(donation_sources);
|
|
11
8
|
export const donor_titles = ["Mr", "Mrs", "Ms", "Mx", ""];
|
|
12
9
|
export const donor_title = v.picklist(donor_titles);
|
package/package.json
CHANGED
package/src/interfaces.mts
CHANGED
|
@@ -97,8 +97,10 @@ export interface IDonationOnHoldAttr {
|
|
|
97
97
|
fiatRamp?: TFiatRamp;
|
|
98
98
|
/** bg-marketplace | bg-widget */
|
|
99
99
|
appUsed: TDonationSource;
|
|
100
|
-
/** nanoid
|
|
100
|
+
/** nanoid */
|
|
101
101
|
form_id?: string;
|
|
102
|
+
/** form tag at the time of settlement */
|
|
103
|
+
form_tag?: string;
|
|
102
104
|
/** "fiat", "trx", "hbar", "eth", "matic", "xrp-mainnet" */
|
|
103
105
|
chainId: string;
|
|
104
106
|
/** "Fiat", "TRON", "Hedera", "Ethereum", "", "Polygon", "Stripe", "XRP Ledger" */
|
package/src/schema.mts
CHANGED
|
@@ -9,10 +9,7 @@ export const frequency = v.picklist(
|
|
|
9
9
|
|
|
10
10
|
export type TFrequency = v.InferOutput<typeof frequency>;
|
|
11
11
|
|
|
12
|
-
export const donation_sources = [
|
|
13
|
-
"bg-marketplace",
|
|
14
|
-
"bg-widget",
|
|
15
|
-
] as const;
|
|
12
|
+
export const donation_sources = ["bg-marketplace", "bg-widget"] as const;
|
|
16
13
|
|
|
17
14
|
export const donation_source = v.picklist(donation_sources);
|
|
18
15
|
export type TDonationSource = v.InferOutput<typeof donation_source>;
|