@better-giving/endowment 4.0.9 → 4.0.10

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,7 @@
1
1
  import type { IPageKeyed } from "@better-giving/types/api";
2
2
  import type { Ensure } from "@better-giving/types/utils";
3
3
  import type { IMediaUpdate, INpo, TMediaType } from "./schema.mjs";
4
+ import type { CloudsearchEndow } from "./cloudsearch.mjs";
4
5
  export type { IAllocation, INpo, INpoFields, INposSearch, INpoUpdate, IIncrement, IMediaSearch, IMediaSearchObj, TMediaType, IMediaUpdate, IMilestone, IMilestoneUpdate, IMilestoneNew, IProgram, IProgramDb, IProgramNew, IProgramUpdate, ISocialMediaURLs, } from "./schema.mjs";
5
6
  export { type OrgDesignation as EndowDesignation, type Environment, type UnSdgNum, type DonateMethodId, https_url, } from "@better-giving/schemas";
6
7
  export interface INpoDb extends INpo {
@@ -34,8 +35,8 @@ export type TNpoDbKeys = keyof INpoDb;
34
35
  export type TArrayValues<T extends readonly unknown[]> = T[number];
35
36
  export type TNpoDbProjectedTo<T> = T extends TNpoDbKeys[] ? Pick<INpoDb, TArrayValues<T>> : INpoDb;
36
37
  export type TBinFlag = "0" | "1";
37
- export interface INposPage<T extends keyof INpoDb = keyof INpoDb> {
38
- items: Pick<INpoDb, T>[];
38
+ export interface INposPage<T extends keyof CloudsearchEndow = keyof CloudsearchEndow> {
39
+ items: Pick<CloudsearchEndow, T>[];
39
40
  page: number;
40
41
  pages: number;
41
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-giving/endowment",
3
- "version": "4.0.9",
3
+ "version": "4.0.10",
4
4
  "dependencies": {
5
5
  "ksuid": "3.0.0"
6
6
  },
@@ -1,7 +1,7 @@
1
1
  import type { IPageKeyed } from "@better-giving/types/api";
2
2
  import type { Ensure } from "@better-giving/types/utils";
3
3
  import type { IMediaUpdate, INpo, TMediaType } from "./schema.mjs";
4
-
4
+ import type { CloudsearchEndow } from "./cloudsearch.mjs";
5
5
  export type {
6
6
  IAllocation,
7
7
  INpo,
@@ -71,8 +71,10 @@ export type TNpoDbProjectedTo<T> = T extends TNpoDbKeys[]
71
71
 
72
72
  export type TBinFlag = "0" | "1";
73
73
 
74
- export interface INposPage<T extends keyof INpoDb = keyof INpoDb> {
75
- items: Pick<INpoDb, T>[];
74
+ export interface INposPage<
75
+ T extends keyof CloudsearchEndow = keyof CloudsearchEndow,
76
+ > {
77
+ items: Pick<CloudsearchEndow, T>[];
76
78
  page: number;
77
79
  pages: number;
78
80
  }