@better-giving/endowment 1.0.17 → 1.0.18

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,8 +1,12 @@
1
1
  import type { Fields as FundItem } from "./cloudsearch.mjs";
2
+ import type { Milestone, Program as TProgram } from "./schema.mjs";
2
3
  import type { Endow as NEndow, Media } from "./db.mjs";
3
- export type { Allocation, DonateMethodId, EndowByEinParams, EndowDesignation, EndowQueryParam, EndowsQueryParams, EndowUpdate, Environment, Increment, Milestone, MilestoneUpdate, NewMilestone, NewProgram, Program, ProgramUpdate, SocialMediaURLs, UnSdgNum, MediaQueryParams, MediaQueryParamsObj, MediaType, MediaUpdate, } from "./schema.mjs";
4
+ export type { Allocation, DonateMethodId, EndowByEinParams, EndowDesignation, EndowQueryParam, EndowsQueryParams, EndowUpdate, Environment, Increment, Milestone, MilestoneUpdate, NewMilestone, NewProgram, ProgramUpdate, SocialMediaURLs, UnSdgNum, MediaQueryParams, MediaQueryParamsObj, MediaType, MediaUpdate, } from "./schema.mjs";
4
5
  export type { FundItem };
5
6
  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">;
7
+ export type Program = TProgram & {
8
+ milestones: Milestone[];
9
+ };
6
10
  /** web-app format */
7
11
  export type TMedia = Omit<Media.DbRecord, "PK" | "SK" | "gsi1PK" | "gsi1SK"> & {
8
12
  featured: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-giving/endowment",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
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,4 +1,5 @@
1
1
  import type { Fields as FundItem } from "./cloudsearch.mjs";
2
+ import type { Milestone, Program as TProgram } from "./schema.mjs";
2
3
  import type { Endow as NEndow, Media } from "./db.mjs";
3
4
  export type {
4
5
  Allocation,
@@ -14,7 +15,6 @@ export type {
14
15
  MilestoneUpdate,
15
16
  NewMilestone,
16
17
  NewProgram,
17
- Program,
18
18
  ProgramUpdate,
19
19
  SocialMediaURLs,
20
20
  UnSdgNum,
@@ -55,6 +55,8 @@ export type Endow = Pick<
55
55
  | "receiptMsg"
56
56
  >;
57
57
 
58
+ export type Program = TProgram & { milestones: Milestone[] };
59
+
58
60
  /** web-app format */
59
61
  export type TMedia = Omit<Media.DbRecord, "PK" | "SK" | "gsi1PK" | "gsi1SK"> & {
60
62
  featured: boolean;