sdk.AWF_Entry
Constructors
constructor
new AWF_Entry(log
, gql
, auth
, globalChannel
)
Parameters
Name | Type |
---|---|
log | Logging |
gql | Gql |
auth | AWF_Auth |
globalChannel | EventBus |
Defined in
Methods
editEntry
editEntry(opt
): Promise
<undefined
| EditEntryMutation
>
Update an existing entry
Parameters
Name | Type |
---|---|
opt | Object |
opt.data | DataProviderInput [] |
opt.entryID | string |
opt.post | Object |
opt.post.mentions? | string [] |
opt.post.quotes? | string [] |
opt.post.tags? | string [] |
opt.post.title? | string |
Returns
Promise
<undefined
| EditEntryMutation
>
Defined in
entriesByAuthor
entriesByAuthor(opt
): Promise
<GetPostsByAuthorQuery
>
Parameters
Name | Type |
---|---|
opt | Object |
opt.limit | number |
opt.offset? | number |
opt.pubKey | string |
Returns
Promise
<GetPostsByAuthorQuery
>
Defined in
entriesByTag
entriesByTag(opt
): Promise
<GetPostsByTagQuery
>
Parameters
Name | Type |
---|---|
opt | Object |
opt.limit | number |
opt.name | string |
opt.offset? | number |
Returns
Promise
<GetPostsByTagQuery
>
Defined in
getEntries
getEntries(opt
): Promise
<GetEntriesQuery
>
Parameters
Name | Type |
---|---|
opt | Object |
opt.limit | number |
opt.offset? | string |
Returns
Promise
<GetEntriesQuery
>
Defined in
getEntry
getEntry(entryId
): Promise
<GetEntryQuery
>
Parameters
Name | Type |
---|---|
entryId | string |
Returns
Promise
<GetEntryQuery
>
Defined in
getFeedEntries
getFeedEntries(opt
): Promise
<GetCustomFeedQuery
>
Parameters
Name | Type |
---|---|
opt | Object |
opt.limit | number |
opt.offset? | number |
Returns
Promise
<GetCustomFeedQuery
>
Defined in
getLinkPreview
getLinkPreview(link
): Promise
<GetLinkPreviewMutation
>
Parameters
Name | Type |
---|---|
link | string |
Returns
Promise
<GetLinkPreviewMutation
>
Defined in
postEntry
postEntry(opt
): Promise
<undefined
| CreateEntryMutation
>
Parameters
Name | Type |
---|---|
opt | Object |
opt.data | DataProviderInput [] |
opt.post | Object |
opt.post.mentions? | string [] |
opt.post.quotes? | string [] |
opt.post.tags? | string [] |
opt.post.title? | string |
Returns
Promise
<undefined
| CreateEntryMutation
>
Defined in
removeEntry
removeEntry(entryID
): Promise
<RemoveEntryMutation
>
Remove an entry's content by ID
Parameters
Name | Type |
---|---|
entryID | string |
Returns
Promise
<RemoveEntryMutation
>