@better-giving/donation 3.0.28 → 3.0.30
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,7 +84,7 @@ 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
89
|
/** "fiat", "trx", "hbar", "eth", "matic", "xrp-mainnet" */
|
|
90
90
|
chainId: string;
|
|
@@ -182,6 +182,8 @@ export interface IDonationFinalAttr {
|
|
|
182
182
|
appUsed?: TDonationSource | (string & {});
|
|
183
183
|
/** nanoid | `${number}` - bg form */
|
|
184
184
|
form_id?: string;
|
|
185
|
+
/** form tag at the time of settlement */
|
|
186
|
+
form_tag?: string;
|
|
185
187
|
/**
|
|
186
188
|
"fiat", "columbus-5", "eth", "matic", "juno-1", "ltc", undefined, "btc", "phoenix-1", "56", "1", "137",
|
|
187
189
|
"xrp-mainnet", "zec", "sol", "bch", "bsc", "cchain", "xvg", "xrp", "sei-1", "icx", "base",
|
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,7 +97,7 @@ 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
102
|
/** "fiat", "trx", "hbar", "eth", "matic", "xrp-mainnet" */
|
|
103
103
|
chainId: string;
|
|
@@ -203,6 +203,8 @@ export interface IDonationFinalAttr {
|
|
|
203
203
|
appUsed?: TDonationSource | (string & {});
|
|
204
204
|
/** nanoid | `${number}` - bg form */
|
|
205
205
|
form_id?: string;
|
|
206
|
+
/** form tag at the time of settlement */
|
|
207
|
+
form_tag?: string;
|
|
206
208
|
/**
|
|
207
209
|
"fiat", "columbus-5", "eth", "matic", "juno-1", "ltc", undefined, "btc", "phoenix-1", "56", "1", "137",
|
|
208
210
|
"xrp-mainnet", "zec", "sol", "bch", "bsc", "cchain", "xvg", "xrp", "sei-1", "icx", "base",
|
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>;
|