@poap-xyz/drops
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -21,3 +21,5 @@ export declare class Drop { | ||
transfer_count: number; | ||
email_claim: number; | ||
constructor(properties: DropProperties); | ||
getTotalMinted(): number; | ||
} | ||
@@ -44,2 +46,3 @@ export interface DropProperties { | ||
transfer_count: number; | ||
email_claim: number; | ||
} |
@@ -1,2 +0,2 @@ | ||
export declare const PAGINATED_DROPS_QUERY = "\n query PaginatedDrops(\n $limit: Int!\n $offset: Int!\n $orderBy: [drops_order_by!]\n $where: drops_bool_exp\n ) {\n drops(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) {\n id\n fancy_id\n name\n description\n city\n country\n channel\n platform\n location_type\n drop_url\n image_url\n animation_url\n year\n start_date\n timezone\n private\n created_date\n stats {\n transfer_count\n poap_count\n }\n }\n }\n"; | ||
export declare const PAGINATED_DROPS_QUERY = "\n query PaginatedDrops(\n $limit: Int!\n $offset: Int!\n $orderBy: [drops_order_by!]\n $where: drops_bool_exp\n ) {\n drops(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) {\n id\n fancy_id\n name\n description\n city\n country\n channel\n platform\n location_type\n drop_url\n image_url\n animation_url\n year\n start_date\n timezone\n private\n created_date\n stats {\n transfer_count\n poap_count\n }\n email_claims_stats {\n total\n }\n }\n }\n"; | ||
export interface DropResponse { | ||
@@ -24,2 +24,5 @@ id: number; | ||
}; | ||
email_claims_stats: { | ||
total: number; | ||
}; | ||
} | ||
@@ -26,0 +29,0 @@ export interface PaginatedDropsResponse { |
@@ -21,3 +21,5 @@ export declare class Drop { | ||
transfer_count: number; | ||
email_claim: number; | ||
constructor(properties: DropProperties); | ||
getTotalMinted(): number; | ||
} | ||
@@ -44,2 +46,3 @@ export interface DropProperties { | ||
transfer_count: number; | ||
email_claim: number; | ||
} |
@@ -1,2 +0,2 @@ | ||
export declare const PAGINATED_DROPS_QUERY = "\n query PaginatedDrops(\n $limit: Int!\n $offset: Int!\n $orderBy: [drops_order_by!]\n $where: drops_bool_exp\n ) {\n drops(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) {\n id\n fancy_id\n name\n description\n city\n country\n channel\n platform\n location_type\n drop_url\n image_url\n animation_url\n year\n start_date\n timezone\n private\n created_date\n stats {\n transfer_count\n poap_count\n }\n }\n }\n"; | ||
export declare const PAGINATED_DROPS_QUERY = "\n query PaginatedDrops(\n $limit: Int!\n $offset: Int!\n $orderBy: [drops_order_by!]\n $where: drops_bool_exp\n ) {\n drops(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) {\n id\n fancy_id\n name\n description\n city\n country\n channel\n platform\n location_type\n drop_url\n image_url\n animation_url\n year\n start_date\n timezone\n private\n created_date\n stats {\n transfer_count\n poap_count\n }\n email_claims_stats {\n total\n }\n }\n }\n"; | ||
export interface DropResponse { | ||
@@ -24,2 +24,5 @@ id: number; | ||
}; | ||
email_claims_stats: { | ||
total: number; | ||
}; | ||
} | ||
@@ -26,0 +29,0 @@ export interface PaginatedDropsResponse { |
@@ -21,3 +21,5 @@ export declare class Drop { | ||
transfer_count: number; | ||
email_claim: number; | ||
constructor(properties: DropProperties); | ||
getTotalMinted(): number; | ||
} | ||
@@ -44,2 +46,3 @@ export interface DropProperties { | ||
transfer_count: number; | ||
email_claim: number; | ||
} |
@@ -28,4 +28,7 @@ (function (global, factory) { | ||
this.transfer_count = properties.transfer_count; | ||
Object.assign(this, properties); | ||
this.email_claim = properties.email_claim; | ||
} | ||
getTotalMinted() { | ||
return this.poap_count + this.email_claim; | ||
} | ||
} | ||
@@ -62,2 +65,5 @@ | ||
} | ||
email_claims_stats { | ||
total | ||
} | ||
} | ||
@@ -120,2 +126,5 @@ } | ||
transfer_count: drop.stats ? Number(drop.stats.transfer_count) : 0, | ||
email_claim: drop.email_claims_stats | ||
? Number(drop.email_claims_stats.total) | ||
: 0, | ||
})); | ||
@@ -153,2 +162,3 @@ return new utils.PaginatedResult(drops, utils.nextCursor(drops.length, limit, offset)); | ||
poap_count: 0, | ||
email_claim: 0, | ||
}); | ||
@@ -155,0 +165,0 @@ } |
@@ -1,2 +0,2 @@ | ||
export declare const PAGINATED_DROPS_QUERY = "\n query PaginatedDrops(\n $limit: Int!\n $offset: Int!\n $orderBy: [drops_order_by!]\n $where: drops_bool_exp\n ) {\n drops(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) {\n id\n fancy_id\n name\n description\n city\n country\n channel\n platform\n location_type\n drop_url\n image_url\n animation_url\n year\n start_date\n timezone\n private\n created_date\n stats {\n transfer_count\n poap_count\n }\n }\n }\n"; | ||
export declare const PAGINATED_DROPS_QUERY = "\n query PaginatedDrops(\n $limit: Int!\n $offset: Int!\n $orderBy: [drops_order_by!]\n $where: drops_bool_exp\n ) {\n drops(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) {\n id\n fancy_id\n name\n description\n city\n country\n channel\n platform\n location_type\n drop_url\n image_url\n animation_url\n year\n start_date\n timezone\n private\n created_date\n stats {\n transfer_count\n poap_count\n }\n email_claims_stats {\n total\n }\n }\n }\n"; | ||
export interface DropResponse { | ||
@@ -24,2 +24,5 @@ id: number; | ||
}; | ||
email_claims_stats: { | ||
total: number; | ||
}; | ||
} | ||
@@ -26,0 +29,0 @@ export interface PaginatedDropsResponse { |
{ | ||
"name": "@poap-xyz/drops", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Drops module for the poap.js library", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.cjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
68805
872