@better-giving/donation 1.1.7 → 1.1.9
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,5 +1,6 @@
|
|
|
1
1
|
import type { ISODate } from "@better-giving/types/alias";
|
|
2
2
|
import type { Environment } from "@better-giving/types/list";
|
|
3
|
+
export type DMKey = `DM#${string}`;
|
|
3
4
|
export declare namespace GSI1 {
|
|
4
5
|
type Name = "recipient-env-gsi";
|
|
5
6
|
interface Key {
|
|
@@ -11,18 +12,20 @@ export declare namespace GSI1 {
|
|
|
11
12
|
export declare namespace DonationMessage {
|
|
12
13
|
/** `DM#{uuid}` */
|
|
13
14
|
interface PrimaryKey {
|
|
14
|
-
PK:
|
|
15
|
-
SK:
|
|
15
|
+
PK: DMKey;
|
|
16
|
+
SK: DMKey;
|
|
16
17
|
}
|
|
17
18
|
interface NonKeyAttributes {
|
|
18
19
|
/** USD amount at the time of donation */
|
|
19
20
|
amount: number;
|
|
21
|
+
date: ISODate;
|
|
20
22
|
donation_id: string;
|
|
21
23
|
donor_id: string;
|
|
22
24
|
donor_message: string;
|
|
23
25
|
donor_name: string;
|
|
24
26
|
env: Environment;
|
|
25
|
-
|
|
27
|
+
/** uuidv4 */
|
|
28
|
+
id: string;
|
|
26
29
|
/** Endow or fund ID */
|
|
27
30
|
recipient_id: string;
|
|
28
31
|
}
|
|
@@ -14,5 +14,8 @@ export type FinalRecorderPayload = {
|
|
|
14
14
|
/** intent to delete */
|
|
15
15
|
intentId?: string;
|
|
16
16
|
hideBgTip: boolean;
|
|
17
|
+
/** donation message */
|
|
18
|
+
donor_message?: string;
|
|
19
|
+
donor_public?: boolean;
|
|
17
20
|
} & FinalRecord & SettledAmounts & Fund & (Donation.WithKYC | Donation.WithoutKYC);
|
|
18
21
|
export {};
|
package/package.json
CHANGED
package/src/donation-message.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ISODate } from "@better-giving/types/alias";
|
|
2
2
|
import type { Environment } from "@better-giving/types/list";
|
|
3
3
|
|
|
4
|
+
export type DMKey = `DM#${string}`;
|
|
5
|
+
|
|
4
6
|
export declare namespace GSI1 {
|
|
5
7
|
type Name = "recipient-env-gsi";
|
|
6
8
|
|
|
@@ -14,19 +16,21 @@ export declare namespace GSI1 {
|
|
|
14
16
|
export declare namespace DonationMessage {
|
|
15
17
|
/** `DM#{uuid}` */
|
|
16
18
|
interface PrimaryKey {
|
|
17
|
-
PK:
|
|
18
|
-
SK:
|
|
19
|
+
PK: DMKey;
|
|
20
|
+
SK: DMKey;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
interface NonKeyAttributes {
|
|
22
24
|
/** USD amount at the time of donation */
|
|
23
25
|
amount: number;
|
|
26
|
+
date: ISODate;
|
|
24
27
|
donation_id: string;
|
|
25
28
|
donor_id: string;
|
|
26
29
|
donor_message: string;
|
|
27
30
|
donor_name: string;
|
|
28
31
|
env: Environment;
|
|
29
|
-
|
|
32
|
+
/** uuidv4 */
|
|
33
|
+
id: string;
|
|
30
34
|
/** Endow or fund ID */
|
|
31
35
|
recipient_id: string;
|
|
32
36
|
}
|
package/src/final-recorder.mts
CHANGED