@better-giving/fundraiser 1.0.1 → 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.
@@ -1,6 +1,6 @@
1
1
  import type { ToDoc, ToHitFields, ToUpdate } from "@better-giving/types/cloudsearch";
2
- import type { NewFund, FundInternal } from "./schema.mjs";
3
- export interface CloudsearchFund extends Pick<NewFund, "name" | "description" | "logo" | "featured" | "members" | "target">, Pick<FundInternal, "id" | "env" | "active" | "verified" | "donation_total_usd" | "approvers"> {
2
+ import type { FundInternal, NewFund } from "./schema.mjs";
3
+ export interface CloudsearchFund extends Pick<NewFund, "name" | "description" | "logo" | "featured" | "members" | "target">, Pick<FundInternal, "id" | "env" | "active" | "verified" | "donation_total_usd" | "approvers" | "creator"> {
4
4
  /** iso | "9999-12-31T23:59:59.000Z" year 9999 */
5
5
  expiration: string;
6
6
  }
package/dist/index.d.mts CHANGED
@@ -1,13 +1,14 @@
1
1
  import type { CloudsearchFund as FundItem } from "./cloudsearch.mjs";
2
- import type { NewFund } from "./schema.mjs";
2
+ import type { FundInternal, NewFund } from "./schema.mjs";
3
3
  export type { Environment } from "./schema.mjs";
4
4
  export type { FundItem };
5
5
  export interface FundMember {
6
6
  id: number;
7
7
  name: string;
8
- card_img?: string;
8
+ logo: string | undefined;
9
+ banner: string | undefined;
9
10
  }
10
- export interface SingleFund extends Omit<NewFund, "members"> {
11
+ export interface SingleFund extends Omit<NewFund, "members">, FundInternal {
11
12
  members: FundMember[];
12
13
  }
13
14
  export interface FundsPage {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-giving/fundraiser",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "peerDependencies": {
5
5
  "@better-giving/types": "1.0.1"
6
6
  },
@@ -12,7 +12,13 @@ export interface CloudsearchFund
12
12
  >,
13
13
  Pick<
14
14
  FundInternal,
15
- "id" | "env" | "active" | "verified" | "donation_total_usd" | "approvers"
15
+ | "id"
16
+ | "env"
17
+ | "active"
18
+ | "verified"
19
+ | "donation_total_usd"
20
+ | "approvers"
21
+ | "creator"
16
22
  > {
17
23
  /** iso | "9999-12-31T23:59:59.000Z" year 9999 */
18
24
  expiration: string;
package/src/index.mts CHANGED
@@ -1,15 +1,16 @@
1
1
  import type { CloudsearchFund as FundItem } from "./cloudsearch.mjs";
2
- import type { NewFund } from "./schema.mjs";
2
+ import type { FundInternal, NewFund } from "./schema.mjs";
3
3
  export type { Environment } from "./schema.mjs";
4
4
  export type { FundItem };
5
5
 
6
6
  export interface FundMember {
7
7
  id: number;
8
8
  name: string;
9
- card_img?: string;
9
+ logo: string | undefined;
10
+ banner: string | undefined;
10
11
  }
11
12
 
12
- export interface SingleFund extends Omit<NewFund, "members"> {
13
+ export interface SingleFund extends Omit<NewFund, "members">, FundInternal {
13
14
  members: FundMember[];
14
15
  }
15
16