@better-giving/endowment 1.0.18 → 1.0.19

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,10 +1,10 @@
1
1
  import type { Fields as FundItem } from "./cloudsearch.mjs";
2
- import type { Milestone, Program as TProgram } from "./schema.mjs";
3
- import type { Endow as NEndow, Media } from "./db.mjs";
2
+ import type { Milestone } from "./schema.mjs";
3
+ import type { Endow as NEndow, Media, Program as NProgram } from "./db.mjs";
4
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";
5
5
  export type { FundItem };
6
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 & {
7
+ export type Program = Omit<NProgram.DbRecord, "PK" | "SK"> & {
8
8
  milestones: Milestone[];
9
9
  };
10
10
  /** web-app format */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-giving/endowment",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
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,6 +1,6 @@
1
1
  import type { Fields as FundItem } from "./cloudsearch.mjs";
2
- import type { Milestone, Program as TProgram } from "./schema.mjs";
3
- import type { Endow as NEndow, Media } from "./db.mjs";
2
+ import type { Milestone } from "./schema.mjs";
3
+ import type { Endow as NEndow, Media, Program as NProgram } from "./db.mjs";
4
4
  export type {
5
5
  Allocation,
6
6
  DonateMethodId,
@@ -55,7 +55,9 @@ export type Endow = Pick<
55
55
  | "receiptMsg"
56
56
  >;
57
57
 
58
- export type Program = TProgram & { milestones: Milestone[] };
58
+ export type Program = Omit<NProgram.DbRecord, "PK" | "SK"> & {
59
+ milestones: Milestone[];
60
+ };
59
61
 
60
62
  /** web-app format */
61
63
  export type TMedia = Omit<Media.DbRecord, "PK" | "SK" | "gsi1PK" | "gsi1SK"> & {