@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.
- package/dist/interfaces.d.mts +3 -2
- package/package.json +1 -1
- package/src/interfaces.mts +5 -3
package/dist/interfaces.d.mts
CHANGED
|
@@ -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
|
|
38
|
-
items: Pick<
|
|
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
package/src/interfaces.mts
CHANGED
|
@@ -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<
|
|
75
|
-
|
|
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
|
}
|