@better-giving/endowment 1.0.14 → 1.0.16

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/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Fields as FundItem } from "./cloudsearch.mjs";
2
2
  import type { Endow as NEndow, Media } from "./db.mjs";
3
- export type { Allocation, DonateMethodId, EndowByEinParams, EndowDesignation, EndowQueryParam, EndowsQueryParams, EndowUpdate, Environment, Increment, Milestone, MilestoneUpdate, NewMilestone, NewProgram, Program, ProgramUpdate, SocialMediaURLs, UnSdgNum, MediaQueryParams, MediaType, MediaUpdate, } from "./schema.mjs";
3
+ export type { Allocation, DonateMethodId, EndowByEinParams, EndowDesignation, EndowQueryParam, EndowsQueryParams, EndowUpdate, Environment, Increment, Milestone, MilestoneUpdate, NewMilestone, NewProgram, Program, ProgramUpdate, SocialMediaURLs, UnSdgNum, MediaQueryParams, MediaQueryParamsObj, MediaType, MediaUpdate, } from "./schema.mjs";
4
4
  export type { FundItem };
5
5
  export type Endow = Pick<NEndow.DbRecord, "id" | "slug" | "active_in_countries" | "endow_designation" | "fiscal_sponsored" | "hide_bg_tip" | "hq_country" | "image" | "card_img" | "kyc_donors_only" | "logo" | "name" | "overview" | "published" | "registration_number" | "sdgs" | "social_media_urls" | "street_address" | "tagline" | "url" | "claimed" | "progDonationsAllowed" | "donateMethods" | "allocation" | "increments" | "receiptMsg">;
6
6
  /** web-app format */
package/dist/schema.d.mts CHANGED
@@ -750,3 +750,4 @@ export declare const mediaQueryParams: import("valibot").ObjectSchema<{
750
750
  readonly limit: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TransformAction<string, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>, never>;
751
751
  }, undefined>;
752
752
  export type MediaQueryParams = InferInput<typeof mediaQueryParams>;
753
+ export type MediaQueryParamsObj = InferOutput<typeof mediaQueryParams>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-giving/endowment",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "peerDependencies": {
5
5
  "@better-giving/schemas": "1.0.1",
6
6
  "@better-giving/types": "1.0.1"
package/src/index.mts CHANGED
@@ -19,6 +19,7 @@ export type {
19
19
  SocialMediaURLs,
20
20
  UnSdgNum,
21
21
  MediaQueryParams,
22
+ MediaQueryParamsObj,
22
23
  MediaType,
23
24
  MediaUpdate,
24
25
  } from "./schema.mjs";
package/src/schema.mts CHANGED
@@ -334,3 +334,4 @@ export const mediaQueryParams = object({
334
334
  ),
335
335
  });
336
336
  export type MediaQueryParams = InferInput<typeof mediaQueryParams>;
337
+ export type MediaQueryParamsObj = InferOutput<typeof mediaQueryParams>;