@amityco/ts-sdk 7.26.0 → 7.26.1-86b52c8a.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.
Files changed (62) hide show
  1. package/dist/@types/core/payload.d.ts +5 -0
  2. package/dist/@types/core/payload.d.ts.map +1 -1
  3. package/dist/@types/core/permissions.d.ts +7 -3
  4. package/dist/@types/core/permissions.d.ts.map +1 -1
  5. package/dist/@types/domains/analytics.d.ts +3 -1
  6. package/dist/@types/domains/analytics.d.ts.map +1 -1
  7. package/dist/@types/domains/client.d.ts +1 -0
  8. package/dist/@types/domains/client.d.ts.map +1 -1
  9. package/dist/@types/domains/curatedContent.d.ts +25 -0
  10. package/dist/@types/domains/curatedContent.d.ts.map +1 -0
  11. package/dist/@types/domains/file.d.ts +11 -2
  12. package/dist/@types/domains/file.d.ts.map +1 -1
  13. package/dist/@types/domains/liveViewerCount.d.ts +22 -0
  14. package/dist/@types/domains/liveViewerCount.d.ts.map +1 -0
  15. package/dist/@types/index.d.ts +2 -0
  16. package/dist/@types/index.d.ts.map +1 -1
  17. package/dist/analytic/service/analytic/AnalyticsEngine.d.ts +3 -0
  18. package/dist/analytic/service/analytic/AnalyticsEngine.d.ts.map +1 -1
  19. package/dist/analytic/service/analytic/AnalyticsEventCapturer.d.ts +3 -0
  20. package/dist/analytic/service/analytic/AnalyticsEventCapturer.d.ts.map +1 -1
  21. package/dist/client/api/createClient.d.ts.map +1 -1
  22. package/dist/client/api/getLiveViewerCountConfig.d.ts +24 -0
  23. package/dist/client/api/getLiveViewerCountConfig.d.ts.map +1 -0
  24. package/dist/client/api/index.d.ts +1 -0
  25. package/dist/client/api/index.d.ts.map +1 -1
  26. package/dist/curatedContentRepository/api/getPool.d.ts +2 -0
  27. package/dist/curatedContentRepository/api/getPool.d.ts.map +1 -0
  28. package/dist/curatedContentRepository/api/index.d.ts +2 -0
  29. package/dist/curatedContentRepository/api/index.d.ts.map +1 -0
  30. package/dist/curatedContentRepository/api/tests/getPool.test.d.ts +2 -0
  31. package/dist/curatedContentRepository/api/tests/getPool.test.d.ts.map +1 -0
  32. package/dist/curatedContentRepository/api/tests/integration/getPool.integration.test.d.ts +2 -0
  33. package/dist/curatedContentRepository/api/tests/integration/getPool.integration.test.d.ts.map +1 -0
  34. package/dist/curatedContentRepository/index.d.ts +2 -0
  35. package/dist/curatedContentRepository/index.d.ts.map +1 -0
  36. package/dist/fileRepository/api/getFile.d.ts.map +1 -1
  37. package/dist/fileRepository/api/uploadImage.d.ts.map +1 -1
  38. package/dist/fileRepository/api/uploadVideo.d.ts.map +1 -1
  39. package/dist/index.cjs.js +271 -66
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.esm.js +247 -43
  43. package/dist/index.umd.js +2 -2
  44. package/dist/userRepository/observers/index.d.ts +1 -0
  45. package/dist/userRepository/observers/index.d.ts.map +1 -1
  46. package/dist/userRepository/observers/searchUserByDisplayName.d.ts +2 -0
  47. package/dist/userRepository/observers/searchUserByDisplayName.d.ts.map +1 -1
  48. package/dist/userRepository/observers/searchUsers.d.ts +26 -0
  49. package/dist/userRepository/observers/searchUsers.d.ts.map +1 -0
  50. package/dist/userRepository/observers/tests/integrations/searchUsers.integration.test.d.ts +2 -0
  51. package/dist/userRepository/observers/tests/integrations/searchUsers.integration.test.d.ts.map +1 -0
  52. package/dist/userRepository/observers/tests/searchUsers.test.d.ts +2 -0
  53. package/dist/userRepository/observers/tests/searchUsers.test.d.ts.map +1 -0
  54. package/dist/utils/linkedObject/curatedContentTopicLinkedObject.d.ts +2 -0
  55. package/dist/utils/linkedObject/curatedContentTopicLinkedObject.d.ts.map +1 -0
  56. package/dist/utils/linkedObject/fileLinkedObject.d.ts +2 -0
  57. package/dist/utils/linkedObject/fileLinkedObject.d.ts.map +1 -0
  58. package/dist/utils/linkedObject/index.d.ts +2 -0
  59. package/dist/utils/linkedObject/index.d.ts.map +1 -1
  60. package/dist/utils/linkedObject/postLinkedObject.d.ts.map +1 -1
  61. package/dist/utils/tests/dummy/file.d.ts.map +1 -1
  62. package/package.json +1 -1
@@ -2,6 +2,7 @@ export { getUser } from './getUser';
2
2
  export { getUsers } from './getUsers';
3
3
  export { getBlockedUsers } from './getBlockedUsers';
4
4
  export { getBlockingUsers } from './getBlockingUsers';
5
+ export { searchUsers } from './searchUsers';
5
6
  export { searchUserByDisplayName } from './searchUserByDisplayName';
6
7
  export { getReachedUsers } from './getReachedUsers';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/userRepository/observers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/userRepository/observers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,4 +1,6 @@
1
1
  /**
2
+ * @deprecated Use {@link searchUsers} instead. `searchUserByDisplayName` will be removed in a future major version.
3
+ *
2
4
  * ```js
3
5
  * import { UserRepository } from '@amityco/ts-sdk'
4
6
  *
@@ -1 +1 @@
1
- {"version":3,"file":"searchUserByDisplayName.d.ts","sourceRoot":"","sources":["../../../src/userRepository/observers/searchUserByDisplayName.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,uBAAuB,WAC1B,MAAM,wBAAwB,YAC5B,MAAM,sBAAsB,CAAC,MAAM,YAAY,CAAC,WACjD,MAAM,oBAAoB,eAuBpC,CAAC"}
1
+ {"version":3,"file":"searchUserByDisplayName.d.ts","sourceRoot":"","sources":["../../../src/userRepository/observers/searchUserByDisplayName.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,uBAAuB,WAC1B,MAAM,wBAAwB,YAC5B,MAAM,sBAAsB,CAAC,MAAM,YAAY,CAAC,WACjD,MAAM,oBAAoB,eAuBpC,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * ```js
3
+ * import { UserRepository } from '@amityco/ts-sdk'
4
+ *
5
+ * let users = []
6
+ * const unsub = UserRepository.searchUsers(
7
+ * { displayName: 'jack', searchBy: [SearchUsersByEnum.DISPLAY_NAME] },
8
+ * response => merge(users, response.data),
9
+ * )
10
+ * ```
11
+ *
12
+ * Observe all mutations on a list of {@link Amity.InternalUser}s.
13
+ *
14
+ * Pass `searchBy` in `params` to restrict which user fields are matched
15
+ * (e.g. `[SearchUsersByEnum.DISPLAY_NAME]`). When omitted, the backend
16
+ * default (both `displayName` and `userId`) applies.
17
+ *
18
+ * @param params for searching users
19
+ * @param callback the function to call when new data are available
20
+ * @param config the configuration for the live collection
21
+ * @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the users
22
+ *
23
+ * @category Category Live Collection
24
+ */
25
+ export declare const searchUsers: (params: Amity.UserSearchLiveCollection, callback: Amity.LiveCollectionCallback<Amity.InternalUser>, config?: Amity.LiveCollectionConfig) => () => void;
26
+ //# sourceMappingURL=searchUsers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchUsers.d.ts","sourceRoot":"","sources":["../../../src/userRepository/observers/searchUsers.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,WAAW,WACd,MAAM,wBAAwB,YAC5B,MAAM,sBAAsB,CAAC,MAAM,YAAY,CAAC,WACjD,MAAM,oBAAoB,eAuBpC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=searchUsers.integration.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchUsers.integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/observers/tests/integrations/searchUsers.integration.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=searchUsers.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchUsers.test.d.ts","sourceRoot":"","sources":["../../../../src/userRepository/observers/tests/searchUsers.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare const curatedContentTopicLinkedObject: (topic: Amity.InternalCuratedContentTopic) => Amity.CuratedContentTopic;
2
+ //# sourceMappingURL=curatedContentTopicLinkedObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"curatedContentTopicLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/curatedContentTopicLinkedObject.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,+BAA+B,UACnC,MAAM,2BAA2B,KACvC,MAAM,mBAgBR,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const fileLinkedObject: <T extends Amity.FileType = any>(file?: Amity.FilePayload<T> | undefined) => Amity.File<T> | undefined;
2
+ //# sourceMappingURL=fileLinkedObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/fileLinkedObject.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,wGA6B5B,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export declare const LinkedObject: {
2
+ file: <T extends Amity.FileType = any>(file?: Amity.FilePayload<T> | undefined) => Amity.File<T> | undefined;
2
3
  ad: (ad: Amity.InternalAd) => Amity.Ad;
3
4
  comment: (comment: Amity.InternalComment<any>) => Amity.Comment<any>;
4
5
  post: (post: Amity.InternalPost<any>) => Amity.Post<any>;
@@ -21,5 +22,6 @@ export declare const LinkedObject: {
21
22
  eventResponse: (event: Amity.RawEventResponse) => Amity.EventResponse;
22
23
  product: (product: Amity.RawProduct) => Amity.Product;
23
24
  poll: (poll: Amity.RawPoll) => Amity.Poll;
25
+ curatedContentTopic: (topic: Amity.RawCuratedContentTopic) => Amity.CuratedContentTopic;
24
26
  };
25
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/index.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;CAuBxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/index.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;CAyBxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"postLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/postLinkedObject.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IAgLjE,CAAC"}
1
+ {"version":3,"file":"postLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/postLinkedObject.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IAsLjE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/file.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAoBtC,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAgBtC,CAAC;AAEF,eAAO,MAAM,kBAAkB,gBAK9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,gBAI/B,CAAC"}
1
+ {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/file.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAsBtC,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAmBtC,CAAC;AAEF,eAAO,MAAM,kBAAkB,gBAK9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,gBAI/B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk",
3
- "version": "7.26.0",
3
+ "version": "7.26.1-86b52c8a.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",