@amityco/ts-sdk 7.33.1 → 7.33.2-427e58f0.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;CAoB/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":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAMlF,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;CA8CtF"}
@@ -10,7 +10,20 @@
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 users on screen), pass the signed-in
14
+ * user's `userId` and up to 100 `userIds`. The result only holds those users, in one 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.status filter by follow status, defaults to all
24
+ * @param params.userIds only return the followers with these users (up to 100 ids, in one page).
25
+ * A user missing from the result has no relationship. Only allowed when `userId` is the
26
+ * signed-in user, otherwise the callback gets an {@link ASCInvalidParameterError}.
14
27
  * @param callback the function to call when new data are available
15
28
  * @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the messages
16
29
  *
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,YAAY,WACf,MAAM,sBAAsB,YAC1B,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":""}
@@ -20,4 +20,5 @@ export declare const API_ENDPOINTS: {
20
20
  };
21
21
  export declare const COMMENT_REVIEW_QUEUE_DEFAULT_PAGINATION_SIZE = 10;
22
22
  export declare const COMMENT_REVIEW_QUEUE_MAX_PAGINATION_SIZE = 100;
23
+ export declare const FOLLOW_USER_IDS_PAGINATION_LIMIT = 100;
23
24
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,IAAI,CAAC;AACrD,eAAO,MAAM,qBAAqB,IAAI,CAAC;AACvC,eAAO,MAAM,kCAAkC,KAAK,CAAC;AACrD,eAAO,MAAM,iCAAiC,EAAE,KAAK,CAAC,WAAiC,CAAC;AACxF,eAAO,MAAM,oBAAoB,gEAAgE,CAAC;AAClG,eAAO,MAAM,gCAAgC,4DACc,CAAC;AAC5D,eAAO,MAAM,iCAAiC,+DACgB,CAAC;AAC/D,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAClD,eAAO,MAAM,MAAM,OAAO,CAAC;AAC3B,eAAO,MAAM,MAAM,QAAc,CAAC;AAClC,eAAO,MAAM,IAAI,QAAc,CAAC;AAChC,eAAO,MAAM,GAAG,QAAY,CAAC;AAC7B,eAAO,MAAM,IAAI,QAAU,CAAC;AAC5B,eAAO,MAAM,KAAK,QAAW,CAAC;AAC9B,eAAO,MAAM,IAAI,QAAY,CAAC;AAC9B,eAAO,MAAM,6BAA6B,QAAc,CAAC;AAEzD,eAAO,MAAM,aAAa;;sCAEU,MAAM,SAAS,CAAC,aAAa,CAAC;CAEjE,CAAC;AAGF,eAAO,MAAM,4CAA4C,KAAK,CAAC;AAC/D,eAAO,MAAM,wCAAwC,MAAM,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,IAAI,CAAC;AACrD,eAAO,MAAM,qBAAqB,IAAI,CAAC;AACvC,eAAO,MAAM,kCAAkC,KAAK,CAAC;AACrD,eAAO,MAAM,iCAAiC,EAAE,KAAK,CAAC,WAAiC,CAAC;AACxF,eAAO,MAAM,oBAAoB,gEAAgE,CAAC;AAClG,eAAO,MAAM,gCAAgC,4DACc,CAAC;AAC5D,eAAO,MAAM,iCAAiC,+DACgB,CAAC;AAC/D,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAClD,eAAO,MAAM,MAAM,OAAO,CAAC;AAC3B,eAAO,MAAM,MAAM,QAAc,CAAC;AAClC,eAAO,MAAM,IAAI,QAAc,CAAC;AAChC,eAAO,MAAM,GAAG,QAAY,CAAC;AAC7B,eAAO,MAAM,IAAI,QAAU,CAAC;AAC5B,eAAO,MAAM,KAAK,QAAW,CAAC;AAC9B,eAAO,MAAM,IAAI,QAAY,CAAC;AAC9B,eAAO,MAAM,6BAA6B,QAAc,CAAC;AAEzD,eAAO,MAAM,aAAa;;sCAEU,MAAM,SAAS,CAAC,aAAa,CAAC;CAEjE,CAAC;AAGF,eAAO,MAAM,4CAA4C,KAAK,CAAC;AAC/D,eAAO,MAAM,wCAAwC,MAAM,CAAC;AAG5D,eAAO,MAAM,gCAAgC,MAAM,CAAC"}
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-427e58f0.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",