@better-giving/donation 1.1.5 → 1.1.7

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,18 +1,18 @@
1
1
  import type { ISODate } from "@better-giving/types/alias";
2
2
  import type { Environment } from "@better-giving/types/list";
3
3
  export declare namespace GSI1 {
4
- type Name = "donor-gsi";
4
+ type Name = "recipient-env-gsi";
5
5
  interface Key {
6
- /** `Donor#{donor_id}#{env}` */
7
- gsi1PK: `Donor#${string}#${Environment}`;
6
+ /** `Recipient#{recipient_id}#{env}` */
7
+ gsi1PK: `Recipient#${string}#${Environment}`;
8
8
  gsi1SK: ISODate;
9
9
  }
10
10
  }
11
11
  export declare namespace DonationMessage {
12
+ /** `DM#{uuid}` */
12
13
  interface PrimaryKey {
13
- /** `Recipient#{recipient_id}#{env}` */
14
- PK: `Recipient#${string}#${Environment}`;
15
- SK: ISODate;
14
+ PK: `DM#${string}`;
15
+ SK: `DM#${string}`;
16
16
  }
17
17
  interface NonKeyAttributes {
18
18
  /** USD amount at the time of donation */
@@ -22,6 +22,7 @@ export declare namespace DonationMessage {
22
22
  donor_message: string;
23
23
  donor_name: string;
24
24
  env: Environment;
25
+ id: `DM#${string}`;
25
26
  /** Endow or fund ID */
26
27
  recipient_id: string;
27
28
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@better-giving/donation",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "devDependencies": {
5
5
  "@better-giving/config": "1.1.2"
6
6
  },
7
7
  "peerDependencies": {
8
- "@better-giving/types": "1.1.2",
8
+ "@better-giving/types": "1.1.3",
9
9
  "@better-giving/schemas": "1.1.2",
10
10
  "valibot": "0.42.0"
11
11
  },
@@ -2,20 +2,20 @@ import type { ISODate } from "@better-giving/types/alias";
2
2
  import type { Environment } from "@better-giving/types/list";
3
3
 
4
4
  export declare namespace GSI1 {
5
- type Name = "donor-gsi";
5
+ type Name = "recipient-env-gsi";
6
6
 
7
7
  interface Key {
8
- /** `Donor#{donor_id}#{env}` */
9
- gsi1PK: `Donor#${string}#${Environment}`;
8
+ /** `Recipient#{recipient_id}#{env}` */
9
+ gsi1PK: `Recipient#${string}#${Environment}`;
10
10
  gsi1SK: ISODate;
11
11
  }
12
12
  }
13
13
 
14
14
  export declare namespace DonationMessage {
15
+ /** `DM#{uuid}` */
15
16
  interface PrimaryKey {
16
- /** `Recipient#{recipient_id}#{env}` */
17
- PK: `Recipient#${string}#${Environment}`;
18
- SK: ISODate;
17
+ PK: `DM#${string}`;
18
+ SK: `DM#${string}`;
19
19
  }
20
20
 
21
21
  interface NonKeyAttributes {
@@ -26,6 +26,7 @@ export declare namespace DonationMessage {
26
26
  donor_message: string;
27
27
  donor_name: string;
28
28
  env: Environment;
29
+ id: `DM#${string}`;
29
30
  /** Endow or fund ID */
30
31
  recipient_id: string;
31
32
  }