@better-giving/fundraiser 1.0.9-bg758.1 → 1.0.9-bg758.4

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,7 +1,7 @@
1
1
  import type { ToDoc, ToHitFields, ToUpdate } from "@better-giving/types/cloudsearch";
2
2
  import type { FundInternal, NewFund } from "./schema.mjs";
3
- export interface CloudsearchFund extends Pick<NewFund, "name" | "description" | "logo" | "banner" | "featured" | "members" | "target" | "npo_owner">, Pick<FundInternal, "id" | "env" | "active" | "verified" | "donation_total_usd" | "creator"> {
4
- /** iso | "9999-12-31T23:59:59.000Z" year 9999 */
3
+ export interface CloudsearchFund extends Pick<NewFund, "name" | "description" | "logo" | "banner" | "featured" | "members" | "target">, Pick<FundInternal, "id" | "env" | "active" | "verified" | "donation_total_usd" | "creator_id" | "creator_name"> {
4
+ /** iso | "9999-12-31T23:59:59Z" year 9999 */
5
5
  expiration: string;
6
6
  }
7
7
  /** uuidv4 */
package/dist/index.d.mts CHANGED
@@ -16,3 +16,4 @@ export interface FundsPage {
16
16
  page: number;
17
17
  numPages: number;
18
18
  }
19
+ export declare const MAX_EXPIRATION = "9999-12-31T23:59:59Z";
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export const MAX_EXPIRATION = "9999-12-31T23:59:59Z";
package/dist/schema.d.mts CHANGED
@@ -151,7 +151,8 @@ export interface FundInternal {
151
151
  verified: boolean;
152
152
  /** to date received: initialized to `0` */
153
153
  donation_total_usd: number;
154
- /** user email or better giving (if creator is bg-admin) */
155
- creator: string;
154
+ /** "{number}" - endow id, "{email} - user*/
155
+ creator_id: string;
156
+ creator_name: string;
156
157
  settings: FundSettings;
157
158
  }
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
- "name": "@better-giving/fundraiser",
3
- "version": "1.0.9-bg758.1",
4
- "peerDependencies": {
5
- "@better-giving/schemas": "1.0.2",
6
- "@better-giving/types": "1.0.2"
7
- },
8
- "devDependencies": {
9
- "@better-giving/config": "workspace:*"
10
- },
11
- "files": [
12
- "src",
13
- "dist"
14
- ],
15
- "exports": {
16
- ".": "./dist/index.mjs",
17
- "./schema": "./dist/schema.mjs",
18
- "./db": "./dist/db.mjs",
19
- "./cloudsearch": "./dist/cloudsearch.mjs"
20
- },
21
- "scripts": {
22
- "publish": "npm publish --access public",
23
- "build": "tsc --outDir dist"
24
- }
2
+ "name": "@better-giving/fundraiser",
3
+ "version": "1.0.9-bg758.4",
4
+ "peerDependencies": {
5
+ "@better-giving/schemas": "1.0.2",
6
+ "@better-giving/types": "1.0.3"
7
+ },
8
+ "devDependencies": {
9
+ "@better-giving/config": "workspace:*"
10
+ },
11
+ "files": [
12
+ "src",
13
+ "dist"
14
+ ],
15
+ "exports": {
16
+ ".": "./dist/index.mjs",
17
+ "./schema": "./dist/schema.mjs",
18
+ "./db": "./dist/db.mjs",
19
+ "./cloudsearch": "./dist/cloudsearch.mjs"
20
+ },
21
+ "scripts": {
22
+ "publish": "npm publish --access public",
23
+ "build": "tsc --outDir dist"
24
+ }
25
25
  }
@@ -15,13 +15,18 @@ export interface CloudsearchFund
15
15
  | "featured"
16
16
  | "members"
17
17
  | "target"
18
- | "npo_owner"
19
18
  >,
20
19
  Pick<
21
20
  FundInternal,
22
- "id" | "env" | "active" | "verified" | "donation_total_usd" | "creator"
21
+ | "id"
22
+ | "env"
23
+ | "active"
24
+ | "verified"
25
+ | "donation_total_usd"
26
+ | "creator_id"
27
+ | "creator_name"
23
28
  > {
24
- /** iso | "9999-12-31T23:59:59.000Z" year 9999 */
29
+ /** iso | "9999-12-31T23:59:59Z" year 9999 */
25
30
  expiration: string;
26
31
  }
27
32
 
package/src/index.mts CHANGED
@@ -26,3 +26,5 @@ export interface FundsPage {
26
26
  page: number;
27
27
  numPages: number;
28
28
  }
29
+
30
+ export const MAX_EXPIRATION = "9999-12-31T23:59:59Z";
package/src/schema.mts CHANGED
@@ -133,7 +133,8 @@ export interface FundInternal {
133
133
  verified: boolean;
134
134
  /** to date received: initialized to `0` */
135
135
  donation_total_usd: number;
136
- /** user email or better giving (if creator is bg-admin) */
137
- creator: string;
136
+ /** "{number}" - endow id, "{email} - user*/
137
+ creator_id: string;
138
+ creator_name: string;
138
139
  settings: FundSettings;
139
140
  }