@better-giving/endowment 1.0.0 → 1.0.3

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 CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { Fields as FundItem } from "./cloudsearch.mjs";
2
2
  import type { Endow as NEndow } from "./db.mjs";
3
+ export type { Allocation, DonateMethodId, EndowByEinParams, EndowDesignation, EndowQueryParam, EndowsQueryParams, Environment, Increment, Milestone, MilestoneUpdate, NewMilestone, NewProgram, Program, ProgramUpdate, SocialMediaURLs, UnSdgNum, } from "./schema.mjs";
3
4
  export type { FundItem };
4
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" | "sfCompounded" | "progDonationsAllowed" | "donateMethods" | "allocation" | "increments">;
package/dist/schema.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export type { OrgDesignation as EndowDesignation, Environment, } from "@better-giving/schemas";
1
+ export type { OrgDesignation as EndowDesignation, Environment, UnSdgNum, } from "@better-giving/schemas";
2
2
  import { type InferInput, type InferOutput } from "valibot";
3
3
  export declare const allocation: import("valibot").SchemaWithPipe<[import("valibot").ObjectSchema<{
4
4
  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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-giving/endowment",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "peerDependencies": {
5
5
  "@better-giving/schemas": "1.0.1",
6
6
  "@better-giving/types": "1.0.1"
package/src/index.mts CHANGED
@@ -1,5 +1,23 @@
1
1
  import type { Fields as FundItem } from "./cloudsearch.mjs";
2
2
  import type { Endow as NEndow } from "./db.mjs";
3
+ export type {
4
+ Allocation,
5
+ DonateMethodId,
6
+ EndowByEinParams,
7
+ EndowDesignation,
8
+ EndowQueryParam,
9
+ EndowsQueryParams,
10
+ Environment,
11
+ Increment,
12
+ Milestone,
13
+ MilestoneUpdate,
14
+ NewMilestone,
15
+ NewProgram,
16
+ Program,
17
+ ProgramUpdate,
18
+ SocialMediaURLs,
19
+ UnSdgNum,
20
+ } from "./schema.mjs";
3
21
  export type { FundItem };
4
22
 
5
23
  export type Endow = Pick<
package/src/schema.mts CHANGED
@@ -2,6 +2,7 @@ import { env, orgDesignation, unSdgNum } from "@better-giving/schemas";
2
2
  export type {
3
3
  OrgDesignation as EndowDesignation,
4
4
  Environment,
5
+ UnSdgNum,
5
6
  } from "@better-giving/schemas";
6
7
  import {
7
8
  url,