@better-giving/fundraiser 3.0.12 → 3.0.14

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,5 +1,9 @@
1
+ import type { IPageNumbered } from "@better-giving/types/api";
2
+ import type { CloudsearchFund } from "./cloudsearch.mjs";
1
3
  export type { CloudsearchFund as FundItem } from "./cloudsearch.mjs";
2
4
  export type { IFundNew, IFundUpdate, IFundsNpoMemberOfSearchObj, IFundsSearchObj, DonateMethodId, Environment, } from "./schema.mjs";
5
+ export { MAX_EXPIRATION } from "./schema.mjs";
3
6
  export type * from "./interfaces.mjs";
4
7
  export { FundDb } from "./db.mjs";
5
- export declare const MAX_EXPIRATION = "9999-12-31T23:59:59Z";
8
+ export interface IFundsPage extends IPageNumbered<CloudsearchFund> {
9
+ }
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
+ export { MAX_EXPIRATION } from "./schema.mjs";
1
2
  export { FundDb } from "./db.mjs";
2
- export const MAX_EXPIRATION = "9999-12-31T23:59:59Z";
@@ -1,6 +1,4 @@
1
1
  import type { DonateMethodId, Environment } from "@better-giving/schemas";
2
- import type { IPageNumbered } from "@better-giving/types/api";
3
- import type { CloudsearchFund } from "./cloudsearch.mjs";
4
2
  import type { IFundNew } from "./schema.mjs";
5
3
  export interface IFundSettings {
6
4
  hide_bg_tip: boolean;
@@ -24,5 +22,3 @@ export interface IFundInternal extends IFundCreator {
24
22
  }
25
23
  export interface IFund extends IFundNew, IFundInternal {
26
24
  }
27
- export interface IFundsPage extends IPageNumbered<CloudsearchFund> {
28
- }
package/dist/schema.d.mts CHANGED
@@ -147,3 +147,4 @@ export interface IFundsSearchObj extends InferOutput<typeof funds_search> {
147
147
  }
148
148
  export interface IFundsNpoMemberOfSearchObj extends InferOutput<typeof funds_npo_memberof_search> {
149
149
  }
150
+ export declare const MAX_EXPIRATION = "9999-12-31T23:59:59Z";
package/dist/schema.mjs CHANGED
@@ -53,3 +53,4 @@ export const funds_npo_memberof_search = object({
53
53
  */
54
54
  npo_profile_featured: optional(pipe($, transform((x) => x === "true"), boolean())),
55
55
  });
56
+ export const MAX_EXPIRATION = "9999-12-31T23:59:59Z";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-giving/fundraiser",
3
- "version": "3.0.12",
3
+ "version": "3.0.14",
4
4
  "peerDependencies": {
5
5
  "valibot": "0.42.0",
6
6
  "@better-giving/schemas": "2.0.0",
@@ -17,9 +17,7 @@
17
17
  ],
18
18
  "exports": {
19
19
  ".": "./dist/index.mjs",
20
- "./schema": "./dist/schema.mjs",
21
- "./db": "./dist/db.mjs",
22
- "./cloudsearch": "./dist/cloudsearch.mjs"
20
+ "./*": "./dist/*.mjs"
23
21
  },
24
22
  "scripts": {
25
23
  "build": "tsc --outDir dist"
package/src/index.mts CHANGED
@@ -1,3 +1,6 @@
1
+ import type { IPageNumbered } from "@better-giving/types/api";
2
+ import type { CloudsearchFund } from "./cloudsearch.mjs";
3
+
1
4
  export type { CloudsearchFund as FundItem } from "./cloudsearch.mjs";
2
5
  export type {
3
6
  IFundNew,
@@ -7,7 +10,8 @@ export type {
7
10
  DonateMethodId,
8
11
  Environment,
9
12
  } from "./schema.mjs";
13
+ export { MAX_EXPIRATION } from "./schema.mjs";
10
14
  export type * from "./interfaces.mjs";
11
15
  export { FundDb } from "./db.mjs";
12
16
 
13
- export const MAX_EXPIRATION = "9999-12-31T23:59:59Z";
17
+ export interface IFundsPage extends IPageNumbered<CloudsearchFund> {}
@@ -1,6 +1,4 @@
1
1
  import type { DonateMethodId, Environment } from "@better-giving/schemas";
2
- import type { IPageNumbered } from "@better-giving/types/api";
3
- import type { CloudsearchFund } from "./cloudsearch.mjs";
4
2
  import type { IFundNew } from "./schema.mjs";
5
3
 
6
4
  export interface IFundSettings {
@@ -27,5 +25,3 @@ export interface IFundInternal extends IFundCreator {
27
25
  }
28
26
 
29
27
  export interface IFund extends IFundNew, IFundInternal {}
30
-
31
- export interface IFundsPage extends IPageNumbered<CloudsearchFund> {}
package/src/schema.mts CHANGED
@@ -110,3 +110,5 @@ export interface IFundUpdate extends InferOutput<typeof fund_update> {}
110
110
  export interface IFundsSearchObj extends InferOutput<typeof funds_search> {}
111
111
  export interface IFundsNpoMemberOfSearchObj
112
112
  extends InferOutput<typeof funds_npo_memberof_search> {}
113
+
114
+ export const MAX_EXPIRATION = "9999-12-31T23:59:59Z";