@amityco/ts-sdk 7.33.1 → 7.33.2-1fd595a2.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 +1 @@
1
- {"version":3,"file":"FollowerLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../../../src/userRepository/relationship/follow/observers/getFollowers/FollowerLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAE9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAkB1F,qBAAa,gCAAiC,SAAQ,wBAAwB,CAC5E,UAAU,EACV,KAAK,CAAC,sBAAsB,EAC5B,KAAK,CAAC,YAAY,EAClB,4BAA4B,CAC7B;IACC,OAAO,CAAC,qBAAqB,CAAgC;IAE7D,OAAO,CAAC,KAAK,CAA+B;gBAG1C,KAAK,EAAE,KAAK,CAAC,sBAAsB,EACnC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,YAAY,CAAC;IAoB5D,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,gBAAgB,GAAG,KAAK,CAAC,UAAU;IAIpF,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,UAAU,CAAC;IAI3D,iBAAiB;IAmBjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,oBAAoB,EAAE;CAc/C"}
1
+ {"version":3,"file":"FollowerLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../../../src/userRepository/relationship/follow/observers/getFollowers/FollowerLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAE9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAkB1F,qBAAa,gCAAiC,SAAQ,wBAAwB,CAC5E,UAAU,EACV,KAAK,CAAC,sBAAsB,EAC5B,KAAK,CAAC,YAAY,EAClB,4BAA4B,CAC7B;IACC,OAAO,CAAC,qBAAqB,CAAgC;IAE7D,OAAO,CAAC,KAAK,CAA+B;gBAG1C,KAAK,EAAE,KAAK,CAAC,sBAAsB,EACnC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,YAAY,CAAC;IAoB5D,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,gBAAgB,GAAG,KAAK,CAAC,UAAU;IAIpF,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,UAAU,CAAC;IAI3D,iBAAiB;IAmBjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,oBAAoB,EAAE;CAmB/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"FollowerPaginationController.d.ts","sourceRoot":"","sources":["../../../../../../src/userRepository/relationship/follow/observers/getFollowers/FollowerPaginationController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAGlF,qBAAa,4BAA6B,SAAQ,oBAAoB,CACpE,UAAU,EACV,KAAK,CAAC,sBAAsB,CAC7B;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,sBAAsB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;CAoBtF"}
1
+ {"version":3,"file":"FollowerPaginationController.d.ts","sourceRoot":"","sources":["../../../../../../src/userRepository/relationship/follow/observers/getFollowers/FollowerPaginationController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAGlF,qBAAa,4BAA6B,SAAQ,oBAAoB,CACpE,UAAU,EACV,KAAK,CAAC,sBAAsB,CAC7B;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,sBAAsB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;CA4BtF"}
@@ -10,7 +10,17 @@
10
10
  *
11
11
  * Observe all mutations on a list of {@link Amity.FollowStatus} followers for a given userId
12
12
  *
13
- * @param userId the user
13
+ * To check the relationship with specific users (e.g. the authors on a loaded feed page),
14
+ * pass `userIds` (max 100). The result then only contains those users, in a single page:
15
+ *
16
+ * ```js
17
+ * getFollowers({ userId: client.userId, userIds: ['a', 'b', 'c'] }, ({ data }) => {
18
+ * // users missing from `data` have no relationship
19
+ * })
20
+ * ```
21
+ *
22
+ * @param params.userId the user
23
+ * @param params.userIds only return relationships with these users (max 100)
14
24
  * @param callback the function to call when new data are available
15
25
  * @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the messages
16
26
  *
@@ -1 +1 @@
1
- {"version":3,"file":"getFollowers.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/observers/getFollowers.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,YAAY,WACf,MAAM,sBAAsB,YAC1B,MAAM,sBAAsB,CAAC,MAAM,YAAY,CAAC,WACjD,MAAM,oBAAoB,KAClC,MAAM,YAqBR,CAAC"}
1
+ {"version":3,"file":"getFollowers.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/observers/getFollowers.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,YAAY,WACf,MAAM,sBAAsB,YAC1B,MAAM,sBAAsB,CAAC,MAAM,YAAY,CAAC,WACjD,MAAM,oBAAoB,KAClC,MAAM,YAqBR,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FollowingLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../../../src/userRepository/relationship/follow/observers/getFollowings/FollowingLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAoB1F,qBAAa,iCAAkC,SAAQ,wBAAwB,CAC7E,WAAW,EACX,KAAK,CAAC,uBAAuB,EAC7B,KAAK,CAAC,YAAY,EAClB,6BAA6B,CAC9B;IACC,OAAO,CAAC,qBAAqB,CAAiC;IAE9D,OAAO,CAAC,KAAK,CAAgC;gBAG3C,KAAK,EAAE,KAAK,CAAC,uBAAuB,EACpC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,YAAY,CAAC;IAoB5D,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,UAAU;IAIrF,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,WAAW,CAAC;IAI5D,iBAAiB;IAqBjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,oBAAoB,EAAE;CAc/C"}
1
+ {"version":3,"file":"FollowingLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../../../src/userRepository/relationship/follow/observers/getFollowings/FollowingLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAoB1F,qBAAa,iCAAkC,SAAQ,wBAAwB,CAC7E,WAAW,EACX,KAAK,CAAC,uBAAuB,EAC7B,KAAK,CAAC,YAAY,EAClB,6BAA6B,CAC9B;IACC,OAAO,CAAC,qBAAqB,CAAiC;IAE9D,OAAO,CAAC,KAAK,CAAgC;gBAG3C,KAAK,EAAE,KAAK,CAAC,uBAAuB,EACpC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,YAAY,CAAC;IAoB5D,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,UAAU;IAIrF,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,WAAW,CAAC;IAI5D,iBAAiB;IAqBjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,oBAAoB,EAAE;CAmB/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"FollowingPaginationController.d.ts","sourceRoot":"","sources":["../../../../../../src/userRepository/relationship/follow/observers/getFollowings/FollowingPaginationController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAGlF,qBAAa,6BAA8B,SAAQ,oBAAoB,CACrE,UAAU,EACV,KAAK,CAAC,uBAAuB,CAC9B;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,uBAAuB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;CAoBvF"}
1
+ {"version":3,"file":"FollowingPaginationController.d.ts","sourceRoot":"","sources":["../../../../../../src/userRepository/relationship/follow/observers/getFollowings/FollowingPaginationController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAGlF,qBAAa,6BAA8B,SAAQ,oBAAoB,CACrE,UAAU,EACV,KAAK,CAAC,uBAAuB,CAC9B;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,uBAAuB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;CA4BvF"}
@@ -10,7 +10,17 @@
10
10
  *
11
11
  * Observe all mutations on a list of {@link Amity.FollowStatus} followings for a given userId
12
12
  *
13
- * @param userId the user
13
+ * To check the relationship with specific users (e.g. the authors on a loaded feed page),
14
+ * pass `userIds` (max 100). The result then only contains those users, in a single page:
15
+ *
16
+ * ```js
17
+ * getFollowings({ userId: client.userId, userIds: ['a', 'b', 'c'] }, ({ data }) => {
18
+ * // users missing from `data` have no relationship
19
+ * })
20
+ * ```
21
+ *
22
+ * @param params.userId the user
23
+ * @param params.userIds only return relationships with these users (max 100)
14
24
  * @param callback the function to call when new data are available
15
25
  * @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the messages
16
26
  *
@@ -1 +1 @@
1
- {"version":3,"file":"getFollowings.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/observers/getFollowings.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,aAAa,WAChB,MAAM,uBAAuB,YAC3B,MAAM,sBAAsB,CAAC,MAAM,YAAY,CAAC,WACjD,MAAM,oBAAoB,KAClC,MAAM,YAqBR,CAAC"}
1
+ {"version":3,"file":"getFollowings.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/observers/getFollowings.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,aAAa,WAChB,MAAM,uBAAuB,YAC3B,MAAM,sBAAsB,CAAC,MAAM,YAAY,CAAC,WACjD,MAAM,oBAAoB,KAClC,MAAM,YAqBR,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getFollowsByUserIds.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFollowsByUserIds.test.d.ts","sourceRoot":"","sources":["../../../../../../src/userRepository/relationship/follow/observers/tests/getFollowsByUserIds.test.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk",
3
- "version": "7.33.1",
3
+ "version": "7.33.2-1fd595a2.0",
4
4
  "license": "CC-BY-ND-4.0",
5
5
  "author": "amity.co <developers@amity.co> (https://amity.co)",
6
6
  "description": "Amity Social Cloud Typescript SDK",