-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Moments model and fetchs to Compass (#22)
* Fix Moments model and fetch to Compass * Remove unnecessary Moments stuff and fix typos * Bump package version
- Loading branch information
Showing
20 changed files
with
81 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export { createMomentInput, FetchMomentsInput } from './types/input'; | ||
export { CreateMomentInput, FetchMomentsInput } from './types/input'; | ||
export { Moment } from './domain/Moment'; | ||
export { MomentsClient } from './MomentsClient'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/providers/src/core/PoapMomentsApi/Types/MediaStatus.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export enum MediaStatus { | ||
INVALID = 'INVALID', | ||
PROCESSED = 'PROCESSED', | ||
IN_PROCESS = 'IN_PROCESS', | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
packages/providers/src/ports/MomentsApiProvider/Types/CreateMomentResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export interface CreateMomentResponse { | ||
id: string; | ||
|
||
/** | ||
* The author of the moment (for now only ETH accounts). | ||
*/ | ||
author: string; | ||
|
||
/** | ||
* When the moment was received on the API. | ||
*/ | ||
createdOn: Date; | ||
|
||
/** | ||
* The media file associated with the moment. | ||
*/ | ||
media: { | ||
gateways: string[]; | ||
}; | ||
|
||
/** | ||
* The drop ID related to the moment. | ||
*/ | ||
dropId: number; | ||
|
||
/** | ||
* The token ID related to the moment (optional). | ||
*/ | ||
tokenId?: number; | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/providers/src/ports/MomentsApiProvider/Types/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './input'; | ||
export * from './response'; | ||
export * from './CreateMomentInput'; | ||
export * from './CreateMomentResponse'; |
Oops, something went wrong.