Skip to content

Commit

Permalink
feat: Exclude minted drop email reservations in total count (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
reobin authored Jul 15, 2024
1 parent 169e8cf commit ce32449
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions packages/drops/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion packages/drops/src/domain/Drop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}

Expand Down
2 changes: 1 addition & 1 deletion packages/drops/src/queries/PaginatedDrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const PAGINATED_DROPS_QUERY = `
}
}
email_claims_stats {
total
reserved
}
drop_image {
gateways {
Expand Down
2 changes: 1 addition & 1 deletion packages/drops/src/queries/SearchDrops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const SEARCH_DROPS_QUERY = `
}
}
email_claims_stats {
total
reserved
}
drop_image {
gateways {
Expand Down
2 changes: 1 addition & 1 deletion packages/drops/src/types/DropResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface DropResponse {
};
};
email_claims_stats: {
total: number;
reserved: number;
};
drop_image: {
gateways: Array<{
Expand Down
6 changes: 3 additions & 3 deletions packages/moments/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions packages/poaps/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/providers/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -912,24 +912,24 @@ __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/[email protected].3, @poap-xyz/providers@workspace:packages/providers":
"@poap-xyz/[email protected].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
lodash.chunk: ^4.2.0
languageName: unknown
linkType: soft

"@poap-xyz/[email protected].3, @poap-xyz/utils@workspace:packages/utils":
"@poap-xyz/[email protected].4, @poap-xyz/utils@workspace:packages/utils":
version: 0.0.0-use.local
resolution: "@poap-xyz/utils@workspace:packages/utils"
languageName: unknown
Expand Down

0 comments on commit ce32449

Please sign in to comment.