@better-giving/endowment 1.0.11 → 1.0.13

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 { Media, Endow as NEndow } 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, } from "./schema.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";
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
@@ -740,6 +740,7 @@ export declare const mediaUpdate: import("valibot").ObjectSchema<{
740
740
  readonly url: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UrlAction<string, undefined>]>, never>;
741
741
  readonly featured: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
742
742
  }, undefined>;
743
+ export type MediaUpdate = InferOutput<typeof mediaUpdate>;
743
744
  export type MediaId = InferOutput<typeof mediaKsuid>;
744
745
  export declare const mediaQueryParams: import("valibot").ObjectSchema<{
745
746
  readonly type: import("valibot").PicklistSchema<readonly ["album", "article", "video"], undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-giving/endowment",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "peerDependencies": {
5
5
  "@better-giving/schemas": "1.0.1",
6
6
  "@better-giving/types": "1.0.1"
package/src/index.mts CHANGED
@@ -20,6 +20,7 @@ export type {
20
20
  UnSdgNum,
21
21
  MediaQueryParams,
22
22
  MediaType,
23
+ MediaUpdate,
23
24
  } from "./schema.mjs";
24
25
  export type { FundItem };
25
26
 
package/src/schema.mts CHANGED
@@ -306,6 +306,7 @@ export const mediaUpdate = object({
306
306
  url: optional(mediaUrl),
307
307
  featured: optional(boolean()),
308
308
  });
309
+ export type MediaUpdate = InferOutput<typeof mediaUpdate>;
309
310
 
310
311
  export type MediaId = InferOutput<typeof mediaKsuid>;
311
312