@better-giving/endowment 2.0.5 → 2.0.6

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,3 +1,4 @@
1
+ import type { IPageKeyed } from "@better-giving/types/api";
1
2
  import type { CloudsearchEndow as EndowItem } from "./cloudsearch.mjs";
2
3
  import type { Media } from "./db.mjs";
3
4
  import type { Milestone, Program as ProgramShape } from "./schema.mjs";
@@ -16,7 +17,5 @@ export interface Program extends ProgramShape {
16
17
  export interface IMedia extends Omit<Media.DbRecord, "PK" | "SK" | "gsi1PK" | "gsi1SK"> {
17
18
  featured: boolean;
18
19
  }
19
- export interface MediaPage {
20
- items: IMedia[];
21
- nextPageKey?: string;
20
+ export interface MediaPage extends IPageKeyed<IMedia> {
22
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-giving/endowment",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "peerDependencies": {
5
5
  "@better-giving/schemas": "1.2.2",
6
6
  "@better-giving/types": "1.1.8",
@@ -9,17 +9,13 @@ import {
9
9
  type InferOutput,
10
10
  array,
11
11
  boolean,
12
- integer,
13
12
  keyof,
14
13
  mapItems,
15
- minValue,
16
14
  number,
17
15
  object,
18
16
  optional,
19
17
  pick,
20
18
  pipe,
21
- string,
22
- transform,
23
19
  } from "valibot";
24
20
  import { $, type Environment, csvStrs, endowment } from "./schema.mjs";
25
21
 
package/src/index.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { IPageKeyed } from "@better-giving/types/api";
1
2
  import type { CloudsearchEndow as EndowItem } from "./cloudsearch.mjs";
2
3
  import type { Media } from "./db.mjs";
3
4
  import type { Milestone, Program as ProgramShape } from "./schema.mjs";
@@ -46,7 +47,4 @@ export interface IMedia
46
47
  featured: boolean;
47
48
  }
48
49
 
49
- export interface MediaPage {
50
- items: IMedia[];
51
- nextPageKey?: string;
52
- }
50
+ export interface MediaPage extends IPageKeyed<IMedia> {}