@better-giving/donation 3.0.26 → 3.0.27

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.
@@ -14,7 +14,7 @@ export declare class DonationsDb extends Db {
14
14
  item(id: string): Promise<IDonationFinal | undefined>;
15
15
  put_txi(data: IDonationFinalAttr): TxType["Put"];
16
16
  update(id: string, data: Partial<Omit<IDonationFinalAttr, "transactionId">>): Promise<IDonationFinal>;
17
- update_txi(id: string, data: Partial<Omit<IDonationFinalAttr, "transactionId">>): Promise<TxType["Update"]>;
17
+ update_txi(id: string, data: Partial<Omit<IDonationFinalAttr, "transactionId">>): TxType["Update"];
18
18
  referred_by_q(referrer: string, opts?: IPageOpts): QueryCommandInput;
19
19
  referred_by(referrer: string, opts?: IPageOpts): Promise<IPageKeyed<IDonationFinal>>;
20
20
  list_to_npo(npo: number, opts?: IDonationsSearch & {
@@ -36,7 +36,7 @@ export class DonationsDb extends Db {
36
36
  });
37
37
  return this.client.send(cmd).then((r) => r.Attributes);
38
38
  }
39
- async update_txi(id, data) {
39
+ update_txi(id, data) {
40
40
  const upd8 = new UpdateBuilder();
41
41
  for (const k in data) {
42
42
  upd8.set(k, data[k]);
@@ -10,7 +10,7 @@ export declare class OnHoldDonationsDb extends Db {
10
10
  };
11
11
  put(data: IDonationOnHoldAttr): Promise<import("@aws-sdk/lib-dynamodb").PutCommandOutput>;
12
12
  update(id: string, data: Partial<Omit<IDonationOnHoldAttr, "transactionId">>): Promise<IDonationOnHold>;
13
- update_txi(id: string, data: Partial<Omit<IDonationOnHoldAttr, "transactionId">>): Promise<TxType["Update"]>;
13
+ update_txi(id: string, data: Partial<Omit<IDonationOnHoldAttr, "transactionId">>): TxType["Update"];
14
14
  item(id: string): Promise<IDonationOnHold | undefined>;
15
15
  put_txi(data: IDonationOnHoldAttr): Promise<import("@aws-sdk/lib-dynamodb").PutCommandOutput>;
16
16
  del_txi(id: string): TxType["Delete"];
@@ -30,7 +30,7 @@ export class OnHoldDonationsDb extends Db {
30
30
  });
31
31
  return this.client.send(cmd).then((r) => r.Attributes);
32
32
  }
33
- async update_txi(id, data) {
33
+ update_txi(id, data) {
34
34
  const upd8 = new UpdateBuilder();
35
35
  for (const k in data) {
36
36
  upd8.set(k, data[k]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-giving/donation",
3
- "version": "3.0.26",
3
+ "version": "3.0.27",
4
4
  "devDependencies": {
5
5
  "@better-giving/config": "1.1.2"
6
6
  },
@@ -59,10 +59,10 @@ export class DonationsDb extends Db {
59
59
  return this.client.send(cmd).then((r) => r.Attributes as any);
60
60
  }
61
61
 
62
- async update_txi(
62
+ update_txi(
63
63
  id: string,
64
64
  data: Partial<Omit<IDonationFinalAttr, "transactionId">>
65
- ): Promise<TxType["Update"]> {
65
+ ): TxType["Update"] {
66
66
  const upd8 = new UpdateBuilder();
67
67
  for (const k in data) {
68
68
  upd8.set(k as K, (data as any)[k]);
package/src/onhold-db.mts CHANGED
@@ -53,10 +53,10 @@ export class OnHoldDonationsDb extends Db {
53
53
  return this.client.send(cmd).then((r) => r.Attributes as any);
54
54
  }
55
55
 
56
- async update_txi(
56
+ update_txi(
57
57
  id: string,
58
58
  data: Partial<Omit<IDonationOnHoldAttr, "transactionId">>
59
- ): Promise<TxType["Update"]> {
59
+ ): TxType["Update"] {
60
60
  const upd8 = new UpdateBuilder();
61
61
  for (const k in data) {
62
62
  upd8.set(k as K, (data as any)[k]);