@poap-xyz/drops
Advanced tools
Comparing version
@@ -0,1 +1,11 @@ | ||
/** | ||
* Enum to define available fields for sorting Drops. | ||
* | ||
* Note: The string values use snake_case as they correspond to | ||
* backend API field names, while the enum keys use camelCase | ||
* to maintain consistency with TypeScript conventions. | ||
* | ||
* @export | ||
* @enum {string} | ||
*/ | ||
export declare enum DropsSortFields { | ||
@@ -2,0 +12,0 @@ Name = "name", |
@@ -0,1 +1,11 @@ | ||
/** | ||
* Enum to define available fields for sorting Drops. | ||
* | ||
* Note: The string values use snake_case as they correspond to | ||
* backend API field names, while the enum keys use camelCase | ||
* to maintain consistency with TypeScript conventions. | ||
* | ||
* @export | ||
* @enum {string} | ||
*/ | ||
export declare enum DropsSortFields { | ||
@@ -2,0 +12,0 @@ Name = "name", |
@@ -0,1 +1,11 @@ | ||
/** | ||
* Enum to define available fields for sorting Drops. | ||
* | ||
* Note: The string values use snake_case as they correspond to | ||
* backend API field names, while the enum keys use camelCase | ||
* to maintain consistency with TypeScript conventions. | ||
* | ||
* @export | ||
* @enum {string} | ||
*/ | ||
export declare enum DropsSortFields { | ||
@@ -2,0 +12,0 @@ Name = "name", |
{ | ||
"name": "@poap-xyz/drops", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "Drops module for the poap.js library", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.cjs", |
@@ -146,3 +146,3 @@ import { CompassProvider, DropApiProvider } from '@poap-xyz/providers'; | ||
async create(input: CreateDropsInput): Promise<Drop> { | ||
const repsonse = await this.dropApiProvider.createDrop({ | ||
const response = await this.dropApiProvider.createDrop({ | ||
name: input.name, | ||
@@ -175,3 +175,3 @@ description: input.description, | ||
}); | ||
return Drop.fromProvider(repsonse); | ||
return Drop.fromProvider(response); | ||
} | ||
@@ -188,3 +188,3 @@ | ||
async update(input: UpdateDropsInput): Promise<Drop> { | ||
const repsonse = await this.dropApiProvider.updateDrop({ | ||
const response = await this.dropApiProvider.updateDrop({ | ||
name: input.name, | ||
@@ -203,4 +203,4 @@ description: input.description, | ||
}); | ||
return Drop.fromProvider(repsonse); | ||
return Drop.fromProvider(response); | ||
} | ||
} |
@@ -0,1 +1,11 @@ | ||
/** | ||
* Enum to define available fields for sorting Drops. | ||
* | ||
* Note: The string values use snake_case as they correspond to | ||
* backend API field names, while the enum keys use camelCase | ||
* to maintain consistency with TypeScript conventions. | ||
* | ||
* @export | ||
* @enum {string} | ||
*/ | ||
export enum DropsSortFields { | ||
@@ -2,0 +12,0 @@ Name = 'name', |
73762
1.54%1613
2.54%