@better-giving/donation 3.0.27 → 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 +7 -1
- package/dist/schema.d.mts +2 -2
- package/dist/schema.mjs +1 -5
- package/package.json +1 -1
- package/src/interfaces.mts +7 -1
- package/src/schema.mts +1 -5
package/dist/interfaces.d.mts
CHANGED
|
@@ -84,6 +84,10 @@ export interface IDonationOnHoldAttr {
|
|
|
84
84
|
fiatRamp?: TFiatRamp;
|
|
85
85
|
/** bg-marketplace | bg-widget */
|
|
86
86
|
appUsed: TDonationSource;
|
|
87
|
+
/** nanoid */
|
|
88
|
+
form_id?: string;
|
|
89
|
+
/** form tag at the time of settlement */
|
|
90
|
+
form_tag?: string;
|
|
87
91
|
/** "fiat", "trx", "hbar", "eth", "matic", "xrp-mainnet" */
|
|
88
92
|
chainId: string;
|
|
89
93
|
/** "Fiat", "TRON", "Hedera", "Ethereum", "", "Polygon", "Stripe", "XRP Ledger" */
|
|
@@ -176,8 +180,10 @@ export interface IDonationFinalAttr {
|
|
|
176
180
|
allocation?: IAllocation;
|
|
177
181
|
/** "bg-marketplace", "restore-earth", "angel-protocol",
|
|
178
182
|
"ukraine-portal", "bg-widget", undefined, "aging", "black-history-month",
|
|
179
|
-
"make-whole", "mental-health" */
|
|
183
|
+
"make-whole", "mental-health", "tester-app" */
|
|
180
184
|
appUsed?: TDonationSource | (string & {});
|
|
185
|
+
/** nanoid | `${number}` - bg form */
|
|
186
|
+
form_id?: string;
|
|
181
187
|
/**
|
|
182
188
|
"fiat", "columbus-5", "eth", "matic", "juno-1", "ltc", undefined, "btc", "phoenix-1", "56", "1", "137",
|
|
183
189
|
"xrp-mainnet", "zec", "sol", "bch", "bsc", "cchain", "xvg", "xrp", "sei-1", "icx", "base",
|
package/dist/schema.d.mts
CHANGED
|
@@ -2,8 +2,8 @@ import * as v from "valibot";
|
|
|
2
2
|
export declare const frequencies: readonly ["one-time", "recurring"];
|
|
3
3
|
export declare const frequency: v.PicklistSchema<readonly ["one-time", "recurring"], "Please select donation frequency">;
|
|
4
4
|
export type TFrequency = v.InferOutput<typeof frequency>;
|
|
5
|
-
export declare const donation_sources: readonly ["bg-marketplace", "bg-widget"
|
|
6
|
-
export declare const donation_source: v.PicklistSchema<readonly ["bg-marketplace", "bg-widget"
|
|
5
|
+
export declare const donation_sources: readonly ["bg-marketplace", "bg-widget"];
|
|
6
|
+
export declare const donation_source: v.PicklistSchema<readonly ["bg-marketplace", "bg-widget"], undefined>;
|
|
7
7
|
export type TDonationSource = v.InferOutput<typeof donation_source>;
|
|
8
8
|
export declare const donor_titles: readonly ["Mr", "Mrs", "Ms", "Mx", ""];
|
|
9
9
|
export declare const donor_title: v.PicklistSchema<readonly ["Mr", "Mrs", "Ms", "Mx", ""], undefined>;
|
package/dist/schema.mjs
CHANGED
|
@@ -3,11 +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
|
-
"tester-app",
|
|
10
|
-
];
|
|
6
|
+
export const donation_sources = ["bg-marketplace", "bg-widget"];
|
|
11
7
|
export const donation_source = v.picklist(donation_sources);
|
|
12
8
|
export const donor_titles = ["Mr", "Mrs", "Ms", "Mx", ""];
|
|
13
9
|
export const donor_title = v.picklist(donor_titles);
|
package/package.json
CHANGED
package/src/interfaces.mts
CHANGED
|
@@ -97,6 +97,10 @@ export interface IDonationOnHoldAttr {
|
|
|
97
97
|
fiatRamp?: TFiatRamp;
|
|
98
98
|
/** bg-marketplace | bg-widget */
|
|
99
99
|
appUsed: TDonationSource;
|
|
100
|
+
/** nanoid */
|
|
101
|
+
form_id?: string;
|
|
102
|
+
/** form tag at the time of settlement */
|
|
103
|
+
form_tag?: string;
|
|
100
104
|
/** "fiat", "trx", "hbar", "eth", "matic", "xrp-mainnet" */
|
|
101
105
|
chainId: string;
|
|
102
106
|
/** "Fiat", "TRON", "Hedera", "Ethereum", "", "Polygon", "Stripe", "XRP Ledger" */
|
|
@@ -197,8 +201,10 @@ export interface IDonationFinalAttr {
|
|
|
197
201
|
/// VIA ///
|
|
198
202
|
/** "bg-marketplace", "restore-earth", "angel-protocol",
|
|
199
203
|
"ukraine-portal", "bg-widget", undefined, "aging", "black-history-month",
|
|
200
|
-
"make-whole", "mental-health" */
|
|
204
|
+
"make-whole", "mental-health", "tester-app" */
|
|
201
205
|
appUsed?: TDonationSource | (string & {});
|
|
206
|
+
/** nanoid | `${number}` - bg form */
|
|
207
|
+
form_id?: string;
|
|
202
208
|
/**
|
|
203
209
|
"fiat", "columbus-5", "eth", "matic", "juno-1", "ltc", undefined, "btc", "phoenix-1", "56", "1", "137",
|
|
204
210
|
"xrp-mainnet", "zec", "sol", "bch", "bsc", "cchain", "xvg", "xrp", "sei-1", "icx", "base",
|
package/src/schema.mts
CHANGED
|
@@ -9,11 +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
|
-
"tester-app",
|
|
16
|
-
] as const;
|
|
12
|
+
export const donation_sources = ["bg-marketplace", "bg-widget"] as const;
|
|
17
13
|
|
|
18
14
|
export const donation_source = v.picklist(donation_sources);
|
|
19
15
|
export type TDonationSource = v.InferOutput<typeof donation_source>;
|