From ce3244952d2aae8e1f6e8b36c5b0ccaec56f0c75 Mon Sep 17 00:00:00 2001 From: Robin Gagnon Date: Mon, 15 Jul 2024 16:21:39 -0500 Subject: [PATCH] feat: Exclude minted drop email reservations in total count (#132) --- packages/drops/package.json | 6 +++--- packages/drops/src/domain/Drop.ts | 2 +- packages/drops/src/queries/PaginatedDrop.ts | 2 +- packages/drops/src/queries/SearchDrops.ts | 2 +- packages/drops/src/types/DropResponse.ts | 2 +- packages/moments/package.json | 6 +++--- packages/poaps/package.json | 6 +++--- packages/providers/package.json | 4 ++-- packages/utils/package.json | 2 +- yarn.lock | 18 +++++++++--------- 10 files changed, 25 insertions(+), 25 deletions(-) diff --git a/packages/drops/package.json b/packages/drops/package.json index 006024be..61a6533b 100644 --- a/packages/drops/package.json +++ b/packages/drops/package.json @@ -1,6 +1,6 @@ { "name": "@poap-xyz/drops", - "version": "0.5.3", + "version": "0.5.4", "description": "Drops module for the poap.js library", "main": "dist/cjs/index.cjs", "module": "dist/esm/index.mjs", @@ -29,7 +29,7 @@ "node": ">=18" }, "dependencies": { - "@poap-xyz/providers": "0.5.3", - "@poap-xyz/utils": "0.5.3" + "@poap-xyz/providers": "0.5.4", + "@poap-xyz/utils": "0.5.4" } } diff --git a/packages/drops/src/domain/Drop.ts b/packages/drops/src/domain/Drop.ts index 0898fc12..d5aaec77 100644 --- a/packages/drops/src/domain/Drop.ts +++ b/packages/drops/src/domain/Drop.ts @@ -66,7 +66,7 @@ export class Drop { transferCount: Number( response.stats_by_chain_aggregate.aggregate.sum.transfer_count, ), - emailReservationCount: Number(response.email_claims_stats?.total) || 0, + emailReservationCount: Number(response.email_claims_stats?.reserved) || 0, }); } diff --git a/packages/drops/src/queries/PaginatedDrop.ts b/packages/drops/src/queries/PaginatedDrop.ts index 12a20502..b88c92c6 100644 --- a/packages/drops/src/queries/PaginatedDrop.ts +++ b/packages/drops/src/queries/PaginatedDrop.ts @@ -41,7 +41,7 @@ export const PAGINATED_DROPS_QUERY = ` } } email_claims_stats { - total + reserved } drop_image { gateways { diff --git a/packages/drops/src/queries/SearchDrops.ts b/packages/drops/src/queries/SearchDrops.ts index bbd87df8..772c26a3 100644 --- a/packages/drops/src/queries/SearchDrops.ts +++ b/packages/drops/src/queries/SearchDrops.ts @@ -42,7 +42,7 @@ export const SEARCH_DROPS_QUERY = ` } } email_claims_stats { - total + reserved } drop_image { gateways { diff --git a/packages/drops/src/types/DropResponse.ts b/packages/drops/src/types/DropResponse.ts index 629156db..f34e492a 100644 --- a/packages/drops/src/types/DropResponse.ts +++ b/packages/drops/src/types/DropResponse.ts @@ -27,7 +27,7 @@ export interface DropResponse { }; }; email_claims_stats: { - total: number; + reserved: number; }; drop_image: { gateways: Array<{ diff --git a/packages/moments/package.json b/packages/moments/package.json index d55e7aa1..2a23b380 100644 --- a/packages/moments/package.json +++ b/packages/moments/package.json @@ -1,6 +1,6 @@ { "name": "@poap-xyz/moments", - "version": "0.5.3", + "version": "0.5.4", "description": "Moments module for the poap.js library", "main": "dist/cjs/index.cjs", "module": "dist/esm/index.mjs", @@ -26,8 +26,8 @@ "build": "rollup -c --bundleConfigAsCjs" }, "dependencies": { - "@poap-xyz/providers": "0.5.3", - "@poap-xyz/utils": "0.5.3", + "@poap-xyz/providers": "0.5.4", + "@poap-xyz/utils": "0.5.4", "uuid": "^9.0.0" }, "engines": { diff --git a/packages/poaps/package.json b/packages/poaps/package.json index 633797af..39249e40 100644 --- a/packages/poaps/package.json +++ b/packages/poaps/package.json @@ -1,6 +1,6 @@ { "name": "@poap-xyz/poaps", - "version": "0.5.3", + "version": "0.5.4", "description": "Poaps module for the poap.js library", "main": "dist/cjs/index.cjs", "module": "dist/esm/index.mjs", @@ -26,8 +26,8 @@ "build": "rollup -c --bundleConfigAsCjs" }, "dependencies": { - "@poap-xyz/providers": "0.5.3", - "@poap-xyz/utils": "0.5.3" + "@poap-xyz/providers": "0.5.4", + "@poap-xyz/utils": "0.5.4" }, "engines": { "node": ">=18" diff --git a/packages/providers/package.json b/packages/providers/package.json index ac3dcf28..da1aff44 100644 --- a/packages/providers/package.json +++ b/packages/providers/package.json @@ -1,6 +1,6 @@ { "name": "@poap-xyz/providers", - "version": "0.5.3", + "version": "0.5.4", "description": "Providers module for the poap.js library", "main": "dist/cjs/index.cjs", "module": "dist/esm/index.mjs", @@ -26,7 +26,7 @@ "build": "rollup -c --bundleConfigAsCjs" }, "dependencies": { - "@poap-xyz/utils": "0.5.3", + "@poap-xyz/utils": "0.5.4", "axios": "^1.6.8", "lodash.chunk": "^4.2.0" }, diff --git a/packages/utils/package.json b/packages/utils/package.json index 4f1dd1ab..4f057347 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@poap-xyz/utils", - "version": "0.5.3", + "version": "0.5.4", "description": "Utils module for the poap.js library", "main": "dist/cjs/index.cjs", "module": "dist/esm/index.mjs", diff --git a/yarn.lock b/yarn.lock index 7121f66f..0b3111b0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -884,8 +884,8 @@ __metadata: version: 0.0.0-use.local resolution: "@poap-xyz/drops@workspace:packages/drops" dependencies: - "@poap-xyz/providers": 0.5.3 - "@poap-xyz/utils": 0.5.3 + "@poap-xyz/providers": 0.5.4 + "@poap-xyz/utils": 0.5.4 languageName: unknown linkType: soft @@ -901,8 +901,8 @@ __metadata: version: 0.0.0-use.local resolution: "@poap-xyz/moments@workspace:packages/moments" dependencies: - "@poap-xyz/providers": 0.5.3 - "@poap-xyz/utils": 0.5.3 + "@poap-xyz/providers": 0.5.4 + "@poap-xyz/utils": 0.5.4 "@types/uuid": ^9.0.2 uuid: ^9.0.0 languageName: unknown @@ -912,16 +912,16 @@ __metadata: version: 0.0.0-use.local resolution: "@poap-xyz/poaps@workspace:packages/poaps" dependencies: - "@poap-xyz/providers": 0.5.3 - "@poap-xyz/utils": 0.5.3 + "@poap-xyz/providers": 0.5.4 + "@poap-xyz/utils": 0.5.4 languageName: unknown linkType: soft -"@poap-xyz/providers@0.5.3, @poap-xyz/providers@workspace:packages/providers": +"@poap-xyz/providers@0.5.4, @poap-xyz/providers@workspace:packages/providers": version: 0.0.0-use.local resolution: "@poap-xyz/providers@workspace:packages/providers" dependencies: - "@poap-xyz/utils": 0.5.3 + "@poap-xyz/utils": 0.5.4 axios: ^1.6.8 axios-mock-adapter: ^1.21.4 jest-fetch-mock: ^3.0.3 @@ -929,7 +929,7 @@ __metadata: languageName: unknown linkType: soft -"@poap-xyz/utils@0.5.3, @poap-xyz/utils@workspace:packages/utils": +"@poap-xyz/utils@0.5.4, @poap-xyz/utils@workspace:packages/utils": version: 0.0.0-use.local resolution: "@poap-xyz/utils@workspace:packages/utils" languageName: unknown