@better-giving/endowment 1.0.4 → 1.0.6
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 +1 -1
- package/dist/schema.d.mts +2 -0
- package/dist/schema.mjs +1 -0
- package/package.json +1 -1
- package/src/index.mts +1 -1
- package/src/schema.mts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -2,4 +2,4 @@ import type { Fields as FundItem } from "./cloudsearch.mjs";
|
|
|
2
2
|
import type { Endow as NEndow } from "./db.mjs";
|
|
3
3
|
export type { Allocation, DonateMethodId, EndowByEinParams, EndowDesignation, EndowQueryParam, EndowsQueryParams, EndowUpdate, Environment, Increment, Milestone, MilestoneUpdate, NewMilestone, NewProgram, Program, ProgramUpdate, SocialMediaURLs, UnSdgNum, } from "./schema.mjs";
|
|
4
4
|
export type { FundItem };
|
|
5
|
-
export type Endow = Pick<NEndow.DBRecord, "id" | "slug" | "active_in_countries" | "endow_designation" | "fiscal_sponsored" | "hide_bg_tip" | "hq_country" | "image" | "card_img" | "kyc_donors_only" | "logo" | "name" | "overview" | "published" | "registration_number" | "sdgs" | "social_media_urls" | "street_address" | "tagline" | "url" | "claimed" | "
|
|
5
|
+
export type Endow = Pick<NEndow.DBRecord, "id" | "slug" | "active_in_countries" | "endow_designation" | "fiscal_sponsored" | "hide_bg_tip" | "hq_country" | "image" | "card_img" | "kyc_donors_only" | "logo" | "name" | "overview" | "published" | "registration_number" | "sdgs" | "social_media_urls" | "street_address" | "tagline" | "url" | "claimed" | "progDonationsAllowed" | "donateMethods" | "allocation" | "increments" | "receiptMsg">;
|
package/dist/schema.d.mts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { env, orgDesignation, unSdgNum } from "@better-giving/schemas";
|
|
1
2
|
export type { OrgDesignation as EndowDesignation, Environment, UnSdgNum, } from "@better-giving/schemas";
|
|
3
|
+
export { orgDesignation as endowDesignation, env, unSdgNum };
|
|
2
4
|
import { type InferInput, type InferOutput } from "valibot";
|
|
3
5
|
export declare const allocation: import("valibot").SchemaWithPipe<[import("valibot").ObjectSchema<{
|
|
4
6
|
readonly cash: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>;
|
package/dist/schema.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { env, orgDesignation, unSdgNum } from "@better-giving/schemas";
|
|
2
|
+
export { orgDesignation as endowDesignation, env, unSdgNum };
|
|
2
3
|
import { url, array, boolean, check, custom, excludes, integer, isoDate, keyof, lazy, maxLength, maxValue, minLength, minValue, nonEmpty, nullish, number, object, omit, optional, partial, picklist, pipe, regex, string, transform, trim, uuid, } from "valibot";
|
|
3
4
|
const str = pipe(string(), trim());
|
|
4
5
|
const pct = pipe(number(), integer(), minValue(0), maxValue(100));
|
package/package.json
CHANGED
package/src/index.mts
CHANGED