@better-giving/endowment 2.0.3 → 2.0.5
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.mjs +1 -1
- package/dist/db.d.mts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/schema.d.mts +1 -1
- package/dist/schema.mjs +1 -1
- package/package.json +2 -2
- package/src/cloudsearch.mts +1 -1
- package/src/db.mts +2 -2
- package/src/index.mts +1 -1
- package/src/schema.mts +5 -5
package/dist/cloudsearch.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $int_gte1, org_designation, unsdg_num } from "@better-giving/schemas";
|
|
2
2
|
import { array, boolean, integer, keyof, mapItems, minValue, number, object, optional, pick, pipe, string, transform, } from "valibot";
|
|
3
|
-
import { csvStrs, endowment
|
|
3
|
+
import { $, csvStrs, endowment } from "./schema.mjs";
|
|
4
4
|
const boolCsv = pipe(csvStrs, mapItems((x) => x === "true"), array(boolean()));
|
|
5
5
|
export const cloudsearchEndowFields = object({
|
|
6
6
|
contributions_total: number(),
|
package/dist/db.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Ensure } from "@better-giving/types/utils";
|
|
2
|
-
import type { Endowment as EndowmentShape, Environment, MediaId, MediaType, Milestone as MilestoneShape,
|
|
2
|
+
import type { Endowment as EndowmentShape, Environment, MediaId, MediaType, MilestoneId, Milestone as MilestoneShape, ProgramId, Program as ProgramShape } from "./schema.mjs";
|
|
3
3
|
export type { SocialMediaURLs, Allocation, Increment, EndowDesignation, Environment, ProgramId, } from "./schema.mjs";
|
|
4
4
|
export declare const endowGsi: {
|
|
5
5
|
readonly regnumEnv: "regnum-env-gsi";
|
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ export type { CloudsearchEndow as EndowItem, CloudsearchEndowsQueryParams as End
|
|
|
7
7
|
export interface EndowsPage<T extends keyof EndowItem = keyof EndowItem> {
|
|
8
8
|
items: Pick<EndowItem, T>[];
|
|
9
9
|
page: number;
|
|
10
|
-
|
|
10
|
+
pages: number;
|
|
11
11
|
}
|
|
12
12
|
export interface Program extends ProgramShape {
|
|
13
13
|
milestones: Milestone[];
|
package/dist/schema.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $, $int_gte1, $req, $req_num_gt0, donate_method_id, donate_method_ids, env, int_gte1, org_designation, unsdg_num } from "@better-giving/schemas";
|
|
2
2
|
export { type OrgDesignation as EndowDesignation, type Environment, type UnSdgNum, type DonateMethodId, https_url, } from "@better-giving/schemas";
|
|
3
3
|
export { org_designation as endow_designation, env, unsdg_num, donate_method_id, donate_method_ids, $int_gte1, int_gte1, $, $req_num_gt0, $req, };
|
|
4
4
|
import * as v from "valibot";
|
package/dist/schema.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $, $int_gte1, $req, $req_num_gt0, donate_method_id, donate_method_ids, env, https_url, int_gte1, org_designation, unsdg_num, } from "@better-giving/schemas";
|
|
2
2
|
export { https_url, } from "@better-giving/schemas";
|
|
3
3
|
export { org_designation as endow_designation, env, unsdg_num, donate_method_id, donate_method_ids, $int_gte1, int_gte1, $, $req_num_gt0, $req, };
|
|
4
4
|
import * as v from "valibot";
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-giving/endowment",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@better-giving/schemas": "1.2.2",
|
|
6
|
-
"@better-giving/types": "1.1.
|
|
6
|
+
"@better-giving/types": "1.1.8",
|
|
7
7
|
"valibot": "0.42.0"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
package/src/cloudsearch.mts
CHANGED
package/src/db.mts
CHANGED
|
@@ -4,10 +4,10 @@ import type {
|
|
|
4
4
|
Environment,
|
|
5
5
|
MediaId,
|
|
6
6
|
MediaType,
|
|
7
|
-
Milestone as MilestoneShape,
|
|
8
7
|
MilestoneId,
|
|
9
|
-
|
|
8
|
+
Milestone as MilestoneShape,
|
|
10
9
|
ProgramId,
|
|
10
|
+
Program as ProgramShape,
|
|
11
11
|
} from "./schema.mjs";
|
|
12
12
|
export type {
|
|
13
13
|
SocialMediaURLs,
|
package/src/index.mts
CHANGED
package/src/schema.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
+
$,
|
|
3
|
+
$int_gte1,
|
|
4
|
+
$req,
|
|
5
|
+
$req_num_gt0,
|
|
2
6
|
donate_method_id,
|
|
3
7
|
donate_method_ids,
|
|
4
8
|
env,
|
|
5
9
|
https_url,
|
|
10
|
+
int_gte1,
|
|
6
11
|
org_designation,
|
|
7
12
|
unsdg_num,
|
|
8
|
-
$int_gte1,
|
|
9
|
-
int_gte1,
|
|
10
|
-
$,
|
|
11
|
-
$req_num_gt0,
|
|
12
|
-
$req,
|
|
13
13
|
} from "@better-giving/schemas";
|
|
14
14
|
export {
|
|
15
15
|
type OrgDesignation as EndowDesignation,
|