@better-giving/endowment 1.1.12 → 1.1.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/db.d.mts +11 -0
- package/package.json +1 -1
- package/src/db.mts +11 -0
package/dist/db.d.mts
CHANGED
|
@@ -24,6 +24,9 @@ export declare namespace Endow {
|
|
|
24
24
|
gsi1PK?: `ReferredBy#${string}`;
|
|
25
25
|
/** expiry / date onboarded */
|
|
26
26
|
gsi1SK?: string;
|
|
27
|
+
/** Rid#referral_id */
|
|
28
|
+
gsi2PK?: `Rid#${string}`;
|
|
29
|
+
gsi2SK?: `Rid#${string}`;
|
|
27
30
|
/** will only be present for unclaimed NPOs */
|
|
28
31
|
updated_at_auto?: string;
|
|
29
32
|
/** in USD @deprecated */
|
|
@@ -106,4 +109,12 @@ export declare namespace Gsi1 {
|
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
111
|
}
|
|
112
|
+
export declare namespace Gsi2 {
|
|
113
|
+
namespace Rid {
|
|
114
|
+
interface Keys extends Required<Pick<Endow.NonKeyAttributes, "gsi1PK" | "gsi1SK">> {
|
|
115
|
+
}
|
|
116
|
+
interface DbRecord extends Ensure<Endow.DbRecord, "gsi1PK" | "gsi1SK" | "referral_id"> {
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
109
120
|
export type DbRecord = Endow.DbRecord | Program.DbRecord;
|
package/package.json
CHANGED
package/src/db.mts
CHANGED
|
@@ -46,6 +46,9 @@ export namespace Endow {
|
|
|
46
46
|
gsi1PK?: `ReferredBy#${string}`;
|
|
47
47
|
/** expiry / date onboarded */
|
|
48
48
|
gsi1SK?: string;
|
|
49
|
+
/** Rid#referral_id */
|
|
50
|
+
gsi2PK?: `Rid#${string}`;
|
|
51
|
+
gsi2SK?: `Rid#${string}`;
|
|
49
52
|
|
|
50
53
|
/** will only be present for unclaimed NPOs */
|
|
51
54
|
updated_at_auto?: string;
|
|
@@ -138,5 +141,13 @@ export namespace Gsi1 {
|
|
|
138
141
|
> {}
|
|
139
142
|
}
|
|
140
143
|
}
|
|
144
|
+
export namespace Gsi2 {
|
|
145
|
+
export namespace Rid {
|
|
146
|
+
export interface Keys
|
|
147
|
+
extends Required<Pick<Endow.NonKeyAttributes, "gsi1PK" | "gsi1SK">> {}
|
|
148
|
+
export interface DbRecord
|
|
149
|
+
extends Ensure<Endow.DbRecord, "gsi1PK" | "gsi1SK" | "referral_id"> {}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
141
152
|
|
|
142
153
|
export type DbRecord = Endow.DbRecord | Program.DbRecord;
|