@better-giving/endowment 2.0.3 → 2.0.4

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,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, $ } from "./schema.mjs";
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, MilestoneId, Program as ProgramShape, ProgramId } from "./schema.mjs";
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/schema.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { donate_method_id, donate_method_ids, env, org_designation, unsdg_num, $int_gte1, int_gte1, $, $req_num_gt0, $req } from "@better-giving/schemas";
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 { donate_method_id, donate_method_ids, env, https_url, org_designation, unsdg_num, $int_gte1, int_gte1, $, $req_num_gt0, $req, } from "@better-giving/schemas";
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",
3
+ "version": "2.0.4",
4
4
  "peerDependencies": {
5
5
  "@better-giving/schemas": "1.2.2",
6
- "@better-giving/types": "1.1.7",
6
+ "@better-giving/types": "1.1.8",
7
7
  "valibot": "0.42.0"
8
8
  },
9
9
  "devDependencies": {
@@ -21,7 +21,7 @@ import {
21
21
  string,
22
22
  transform,
23
23
  } from "valibot";
24
- import { type Environment, csvStrs, endowment, $ } from "./schema.mjs";
24
+ import { $, type Environment, csvStrs, endowment } from "./schema.mjs";
25
25
 
26
26
  const boolCsv = pipe(
27
27
  csvStrs,
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
- Program as ProgramShape,
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/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,