@better-giving/schemas 1.0.1 → 1.0.2
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/index.d.mts +3 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
- package/src/index.mts +4 -0
package/dist/index.d.mts
CHANGED
|
@@ -14,3 +14,6 @@ export type UnSdgNum = InferOutput<typeof unSdgNum>;
|
|
|
14
14
|
export declare const envs: readonly ["staging", "production"];
|
|
15
15
|
export declare const env: import("valibot").PicklistSchema<readonly ["staging", "production"], undefined>;
|
|
16
16
|
export type Environment = InferOutput<typeof env>;
|
|
17
|
+
export declare const donateMethodIds: readonly ["stripe", "crypto", "daf", "stocks"];
|
|
18
|
+
export declare const donateMethodId: import("valibot").PicklistSchema<readonly ["stripe", "crypto", "daf", "stocks"], undefined>;
|
|
19
|
+
export type DonateMethodId = InferOutput<typeof donateMethodId>;
|
package/dist/index.mjs
CHANGED
|
@@ -17,3 +17,5 @@ export const unSdgNums = [
|
|
|
17
17
|
export const unSdgNum = picklist(unSdgNums);
|
|
18
18
|
export const envs = ["staging", "production"];
|
|
19
19
|
export const env = picklist(envs);
|
|
20
|
+
export const donateMethodIds = ["stripe", "crypto", "daf", "stocks"];
|
|
21
|
+
export const donateMethodId = picklist(donateMethodIds);
|
package/package.json
CHANGED
package/src/index.mts
CHANGED
|
@@ -28,3 +28,7 @@ export type UnSdgNum = InferOutput<typeof unSdgNum>;
|
|
|
28
28
|
export const envs = ["staging", "production"] as const;
|
|
29
29
|
export const env = picklist(envs);
|
|
30
30
|
export type Environment = InferOutput<typeof env>;
|
|
31
|
+
|
|
32
|
+
export const donateMethodIds = ["stripe", "crypto", "daf", "stocks"] as const;
|
|
33
|
+
export const donateMethodId = picklist(donateMethodIds);
|
|
34
|
+
export type DonateMethodId = InferOutput<typeof donateMethodId>;
|