-
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.
* move ts-node as dev-dependency * Add medias as optional create moment input
- Loading branch information
Showing
14 changed files
with
113 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,7 @@ docs/.yarn/ | |
!.yarn/versions | ||
.next | ||
.idea | ||
.vscode | ||
.vscode | ||
|
||
# Ignore Typescript definitions file extension | ||
*.d.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
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 |
---|---|---|
|
@@ -44,15 +44,13 @@ | |
"rollup-plugin-peer-deps-external": "^2.2.4", | ||
"rollup-plugin-typescript2": "^0.31.1", | ||
"ts-jest": "^29.1.0", | ||
"ts-node": "^10.9.1", | ||
"typedoc": "^0.23.28", | ||
"typescript": "^5.0.2" | ||
}, | ||
"workspaces": [ | ||
"packages/*", | ||
"examples/**" | ||
], | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"ts-node": "^10.9.1" | ||
} | ||
"packageManager": "[email protected]" | ||
} |
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 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,26 +1,25 @@ | ||
import { CreateSteps } from './CreateSteps'; | ||
import { CreateMedia } from './CreateMedia'; | ||
|
||
/** | ||
* Interface representing the input needed to create a moment. | ||
* @interface | ||
* @property {number} dropId - The ID of the drop related to the moment. | ||
* @property {number} [tokenId] - The ID of the token related to the moment (optional). | ||
* @property {Uint8Array} fileBinary - The binary of the file to be uploaded. | ||
* @property {string} author - The author of the moment. An Ethereum address. | ||
* @property {string} description - The description of the moment (optional). | ||
* @property {string} timeOut - The amount of time to wait until media is processed. | ||
* @property {string} fileType - The type of the file. | ||
* @property {(step: CreateSteps) => void | Promise<void>} [onStepUpdate] - Optional callback function to be called when the step changes. | ||
* @property {(progress: number) => void | Promise<void>} [onFileProgress] - Optional callback function to be called when the file upload progress change - progress is a number between 0 and 1. | ||
* @property {CreateMedia[]} medias - The media to be uploaded. | ||
*/ | ||
export interface CreateMomentInput { | ||
fileBinary: Uint8Array; | ||
fileType: string; | ||
author: string; | ||
description?: string; | ||
dropId: number; | ||
tokenId?: number; | ||
timeOut?: number; | ||
onStepUpdate?: (step: CreateSteps) => void | Promise<void>; | ||
onFileUploadProgress?: (progress: number) => void | Promise<void>; | ||
medias?: CreateMedia[]; | ||
} |
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,4 @@ | ||
export interface CreateMedia { | ||
fileBinary: Uint8Array; | ||
fileType: string; | ||
} |
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 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 |
---|---|---|
|
@@ -864,17 +864,17 @@ __metadata: | |
version: 0.0.0-use.local | ||
resolution: "@poap-xyz/drops@workspace:packages/drops" | ||
dependencies: | ||
"@poap-xyz/providers": 0.0.35 | ||
"@poap-xyz/utils": 0.0.35 | ||
"@poap-xyz/providers": 0.0.36 | ||
"@poap-xyz/utils": 0.0.36 | ||
languageName: unknown | ||
linkType: soft | ||
|
||
"@poap-xyz/moments@*, @poap-xyz/moments@workspace:packages/moments": | ||
version: 0.0.0-use.local | ||
resolution: "@poap-xyz/moments@workspace:packages/moments" | ||
dependencies: | ||
"@poap-xyz/providers": 0.0.35 | ||
"@poap-xyz/utils": 0.0.35 | ||
"@poap-xyz/providers": 0.0.36 | ||
"@poap-xyz/utils": 0.0.36 | ||
languageName: unknown | ||
linkType: soft | ||
|
||
|
@@ -888,12 +888,12 @@ __metadata: | |
version: 0.0.0-use.local | ||
resolution: "@poap-xyz/poaps@workspace:packages/poaps" | ||
dependencies: | ||
"@poap-xyz/providers": 0.0.35 | ||
"@poap-xyz/utils": 0.0.35 | ||
"@poap-xyz/providers": 0.0.36 | ||
"@poap-xyz/utils": 0.0.36 | ||
languageName: unknown | ||
linkType: soft | ||
|
||
"@poap-xyz/providers@*, @poap-xyz/[email protected].35, @poap-xyz/providers@workspace:packages/providers": | ||
"@poap-xyz/providers@*, @poap-xyz/[email protected].36, @poap-xyz/providers@workspace:packages/providers": | ||
version: 0.0.0-use.local | ||
resolution: "@poap-xyz/providers@workspace:packages/providers" | ||
dependencies: | ||
|
@@ -904,7 +904,7 @@ __metadata: | |
languageName: unknown | ||
linkType: soft | ||
|
||
"@poap-xyz/utils@*, @poap-xyz/[email protected].35, @poap-xyz/utils@workspace:packages/utils": | ||
"@poap-xyz/utils@*, @poap-xyz/[email protected].36, @poap-xyz/utils@workspace:packages/utils": | ||
version: 0.0.0-use.local | ||
resolution: "@poap-xyz/utils@workspace:packages/utils" | ||
languageName: unknown | ||
|