@amityco/ts-sdk 7.10.1-f3435c3.0 → 7.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ```js
|
|
3
|
-
* import {
|
|
4
|
-
*
|
|
3
|
+
* import { LiveReactionRepository } from '@amityco/ts-sdk'
|
|
4
|
+
* await LiveReactionRepository.createReaction({
|
|
5
|
+
* referenceType: 'post',
|
|
6
|
+
* referenceId: 'postId',
|
|
7
|
+
* streamId: 'streamId',
|
|
8
|
+
* reactionName: 'like',
|
|
9
|
+
* })
|
|
5
10
|
* ```
|
|
6
11
|
*
|
|
7
12
|
*
|
|
8
13
|
* @param referenceId that is target post's ID linked with a livestream
|
|
14
|
+
* @param referenceType should be 'post'
|
|
9
15
|
* @param reactionName that is the reaction name
|
|
10
16
|
* @param streamId stream id
|
|
11
17
|
* @returns a success boolean if the reaction was added
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createReaction.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/api/createReaction.ts"],"names":[],"mappings":"AAQA
|
|
1
|
+
{"version":3,"file":"createReaction.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/api/createReaction.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc;iBAMZ,MAAM;cACT,MAAM;MACd,QAAQ,OAAO,CAwBlB,CAAC"}
|