@better-giving/endowment 4.0.2 → 4.0.4
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 +1 -1
- package/dist/db.mjs +1 -1
- package/dist/interfaces.d.mts +1 -1
- package/package.json +1 -1
- package/src/db.mts +2 -2
- package/src/interfaces.mts +4 -1
package/dist/db.d.mts
CHANGED
|
@@ -132,7 +132,7 @@ export declare class NpoDb extends Db {
|
|
|
132
132
|
npo_med(npo: number, mid: string): Promise<IMedia | undefined>;
|
|
133
133
|
npo_med_delete(npo: number, mid: string): Promise<import("@aws-sdk/lib-dynamodb").DeleteCommandOutput>;
|
|
134
134
|
npo<T extends TNpoDbKeys[]>(id: string | number, fields?: T): Promise<TNpoDbProjectedTo<T> | undefined>;
|
|
135
|
-
npo_update_comps({ target, slug, social_media_urls, ...update }: INpoUpdate):
|
|
135
|
+
npo_update_comps({ target, slug, social_media_urls, ...update }: INpoUpdate): UpdateComps;
|
|
136
136
|
npo_update(id: number, update: INpoUpdate): Promise<import("@aws-sdk/lib-dynamodb").UpdateCommandOutput>;
|
|
137
137
|
prog_milestones(id: string): Promise<IMilestone[]>;
|
|
138
138
|
prog_milestone_delete(pid: string, mid: string): Promise<import("@aws-sdk/lib-dynamodb").DeleteCommandOutput>;
|
package/dist/db.mjs
CHANGED
|
@@ -222,7 +222,7 @@ export class NpoDb extends Db {
|
|
|
222
222
|
const { Item: i } = await this.client.send(cmd);
|
|
223
223
|
return i ? this.sans_keys(i) : undefined;
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
npo_update_comps({ target, slug, social_media_urls, ...update }) {
|
|
226
226
|
const updates = new UpdateBuilder();
|
|
227
227
|
if (slug)
|
|
228
228
|
updates.set("slug", slug);
|
package/dist/interfaces.d.mts
CHANGED
|
@@ -19,7 +19,7 @@ export interface INpoReferredBy extends Ensure<INpo, "referrer" | "referrer_expi
|
|
|
19
19
|
}
|
|
20
20
|
export interface INpoWithRid extends Ensure<INpo, "referral_id"> {
|
|
21
21
|
}
|
|
22
|
-
export interface INpoWithRegNum extends Pick<INpo, "claimed" | "name" | "hq_country" | "id"> {
|
|
22
|
+
export interface INpoWithRegNum extends Pick<INpo, "registration_number" | "env" | "claimed" | "name" | "hq_country" | "id"> {
|
|
23
23
|
}
|
|
24
24
|
export interface IMedia extends Required<IMediaUpdate> {
|
|
25
25
|
id: string;
|
package/package.json
CHANGED
package/src/db.mts
CHANGED
|
@@ -288,12 +288,12 @@ export class NpoDb extends Db {
|
|
|
288
288
|
return i ? this.sans_keys(i) : undefined;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
|
|
291
|
+
npo_update_comps({
|
|
292
292
|
target,
|
|
293
293
|
slug,
|
|
294
294
|
social_media_urls,
|
|
295
295
|
...update
|
|
296
|
-
}: INpoUpdate):
|
|
296
|
+
}: INpoUpdate): UpdateComps {
|
|
297
297
|
const updates = new UpdateBuilder();
|
|
298
298
|
|
|
299
299
|
if (slug) updates.set("slug", slug);
|
package/src/interfaces.mts
CHANGED
|
@@ -48,7 +48,10 @@ export interface INpoReferredBy
|
|
|
48
48
|
export interface INpoWithRid extends Ensure<INpo, "referral_id"> {}
|
|
49
49
|
|
|
50
50
|
export interface INpoWithRegNum
|
|
51
|
-
extends Pick<
|
|
51
|
+
extends Pick<
|
|
52
|
+
INpo,
|
|
53
|
+
"registration_number" | "env" | "claimed" | "name" | "hq_country" | "id"
|
|
54
|
+
> {}
|
|
52
55
|
|
|
53
56
|
export interface IMedia extends Required<IMediaUpdate> {
|
|
54
57
|
id: string;
|