@better-giving/endowment 1.0.29 → 1.0.30
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/cloudsearch.d.mts +4 -0
- package/dist/index.d.mts +1 -1
- package/package.json +1 -1
- package/src/cloudsearch.mts +6 -0
- package/src/index.mts +1 -0
package/dist/cloudsearch.d.mts
CHANGED
|
@@ -36,8 +36,12 @@ export declare const endowsQueryParams: import("valibot").ObjectSchema<{
|
|
|
36
36
|
readonly countries: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").RegexAction<string, "invalid csv">]>>, import("valibot").TransformAction<string, string[]>, import("valibot").FilterItemsAction<string[]>]>, import("valibot").ArraySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, undefined>]>, never>;
|
|
37
37
|
readonly fields: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").RegexAction<string, "invalid csv">]>>, import("valibot").TransformAction<string, string[]>, import("valibot").FilterItemsAction<string[]>]>, import("valibot").ArraySchema<import("valibot").PicklistSchema<["name", "tagline", "card_img", "hq_country", "active_in_countries", "sdgs", "published", "fund_opt_in", "target", "id", "env", "registration_number", "endow_designation", "claimed", "kyc_donors_only", "contributions_total", "contributions_count"], undefined>, undefined>]>, never>;
|
|
38
38
|
}, undefined>;
|
|
39
|
+
export interface CloudsearchEndowsQueryParamsObj extends InferInput<typeof endowsQueryParams> {
|
|
40
|
+
}
|
|
39
41
|
export interface CloudsearchEndowsQueryParams extends InferInput<typeof endowsQueryParams> {
|
|
40
42
|
}
|
|
43
|
+
export interface CloudsearchEndowsQueryParamsParsed extends InferOutput<typeof endowsQueryParams> {
|
|
44
|
+
}
|
|
41
45
|
export interface CloudsearchEndow extends InferOutput<typeof cloudsearchEndow> {
|
|
42
46
|
}
|
|
43
47
|
export type DocId = `${Environment}-${number}`;
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import type { CloudsearchEndow as EndowItem } from "./cloudsearch.mjs";
|
|
|
2
2
|
import type { Media } from "./db.mjs";
|
|
3
3
|
import type { Milestone, Program as ProgramShape } from "./schema.mjs";
|
|
4
4
|
export type { Allocation, DonateMethodId, EndowDesignation, Endowment as Endow, EndowFields, EndowQueryParams, EndowUpdate, Environment, Increment, MediaQueryParams, MediaQueryParamsObj, MediaType, MediaUpdate, Milestone, MilestoneUpdate, NewMilestone, NewProgram, ProgramUpdate, SocialMediaURLs, UnSdgNum, } from "./schema.mjs";
|
|
5
|
-
export type { CloudsearchEndow as EndowItem, CloudsearchEndowsQueryParams as EndowsQueryParams, } from "./cloudsearch.mjs";
|
|
5
|
+
export type { CloudsearchEndow as EndowItem, CloudsearchEndowsQueryParams as EndowsQueryParams, CloudsearchEndowsQueryParamsParsed as EndowsQueryParamsParsed, } from "./cloudsearch.mjs";
|
|
6
6
|
/** client responsible on T depending on keys projected */
|
|
7
7
|
export interface EndowsPage<T extends keyof EndowItem = keyof EndowItem> {
|
|
8
8
|
items: Pick<EndowItem, T>[];
|
package/package.json
CHANGED
package/src/cloudsearch.mts
CHANGED
|
@@ -81,9 +81,15 @@ export const endowsQueryParams = object({
|
|
|
81
81
|
fields: optional(pipe(csvStrs, array(cloudSearchEndowFields))),
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
+
export interface CloudsearchEndowsQueryParamsObj
|
|
85
|
+
extends InferInput<typeof endowsQueryParams> {}
|
|
86
|
+
|
|
84
87
|
export interface CloudsearchEndowsQueryParams
|
|
85
88
|
extends InferInput<typeof endowsQueryParams> {}
|
|
86
89
|
|
|
90
|
+
export interface CloudsearchEndowsQueryParamsParsed
|
|
91
|
+
extends InferOutput<typeof endowsQueryParams> {}
|
|
92
|
+
|
|
87
93
|
export interface CloudsearchEndow
|
|
88
94
|
extends InferOutput<typeof cloudsearchEndow> {}
|
|
89
95
|
|
package/src/index.mts
CHANGED
|
@@ -26,6 +26,7 @@ export type {
|
|
|
26
26
|
export type {
|
|
27
27
|
CloudsearchEndow as EndowItem,
|
|
28
28
|
CloudsearchEndowsQueryParams as EndowsQueryParams,
|
|
29
|
+
CloudsearchEndowsQueryParamsParsed as EndowsQueryParamsParsed,
|
|
29
30
|
} from "./cloudsearch.mjs";
|
|
30
31
|
|
|
31
32
|
/** client responsible on T depending on keys projected */
|