@amityco/ts-sdk 7.7.1-0c84fd02.0 → 7.7.1-11a1171d.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 (113) hide show
  1. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/core/payload.d.ts +3 -8
  2. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/core/payload.d.ts.map +1 -1
  3. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/core/payload.js.map +1 -1
  4. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/client.d.ts +0 -4
  5. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/client.d.ts.map +1 -1
  6. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/client.js.map +1 -1
  7. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/hashtag.d.ts +11 -0
  8. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/hashtag.d.ts.map +1 -0
  9. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/hashtag.js +2 -0
  10. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/hashtag.js.map +1 -0
  11. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/post.d.ts +14 -1
  12. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/post.d.ts.map +1 -1
  13. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/post.js.map +1 -1
  14. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/index.d.ts +1 -0
  15. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/index.d.ts.map +1 -1
  16. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/index.js +1 -0
  17. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/index.js.map +1 -1
  18. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/channelRepository/events/onChannelSetMuted.d.ts.map +1 -1
  19. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/channelRepository/events/onChannelSetMuted.js +8 -6
  20. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/channelRepository/events/onChannelSetMuted.js.map +1 -1
  21. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/index.d.ts +0 -1
  22. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/index.d.ts.map +1 -1
  23. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/index.js +0 -1
  24. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/index.js.map +1 -1
  25. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/createPost.d.ts +1 -1
  26. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/createPost.js.map +1 -1
  27. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/editPost.d.ts +1 -1
  28. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/editPost.js.map +1 -1
  29. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/queryPosts.js +2 -2
  30. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/queryPosts.js.map +1 -1
  31. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/getPostsByHashtag/SearchPostLiveCollectionController.d.ts +14 -0
  32. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/getPostsByHashtag/SearchPostLiveCollectionController.d.ts.map +1 -0
  33. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/getPostsByHashtag/SearchPostLiveCollectionController.js +126 -0
  34. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/getPostsByHashtag/SearchPostLiveCollectionController.js.map +1 -0
  35. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/getPostsByHashtag/SearchPostPaginationController.d.ts +5 -0
  36. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/getPostsByHashtag/SearchPostPaginationController.d.ts.map +1 -0
  37. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/getPostsByHashtag/SearchPostPaginationController.js +27 -0
  38. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/getPostsByHashtag/SearchPostPaginationController.js.map +1 -0
  39. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/getPostsByHashtag/SearchPostQueryStreamController.d.ts +15 -0
  40. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/getPostsByHashtag/SearchPostQueryStreamController.d.ts.map +1 -0
  41. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/getPostsByHashtag/SearchPostQueryStreamController.js +65 -0
  42. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/getPostsByHashtag/SearchPostQueryStreamController.js.map +1 -0
  43. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/index.d.ts +1 -0
  44. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/index.d.ts.map +1 -1
  45. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/index.js +1 -0
  46. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/index.js.map +1 -1
  47. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/searchPostsByHashtag.d.ts +22 -0
  48. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/searchPostsByHashtag.d.ts.map +1 -0
  49. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/searchPostsByHashtag.js +45 -0
  50. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/observers/searchPostsByHashtag.js.map +1 -0
  51. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/streamRepository/events/onStreamViewerBanned.d.ts.map +1 -1
  52. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/streamRepository/events/onStreamViewerBanned.js +8 -5
  53. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/streamRepository/events/onStreamViewerBanned.js.map +1 -1
  54. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/streamRepository/events/onStreamViewerUnbanned.d.ts.map +1 -1
  55. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/streamRepository/events/onStreamViewerUnbanned.js +6 -3
  56. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/streamRepository/events/onStreamViewerUnbanned.js.map +1 -1
  57. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/tsconfig.tsbuildinfo +1 -1
  58. package/dist/@types/core/payload.d.ts +3 -8
  59. package/dist/@types/core/payload.d.ts.map +1 -1
  60. package/dist/@types/domains/client.d.ts +0 -4
  61. package/dist/@types/domains/client.d.ts.map +1 -1
  62. package/dist/@types/domains/hashtag.d.ts +11 -0
  63. package/dist/@types/domains/hashtag.d.ts.map +1 -0
  64. package/dist/@types/domains/post.d.ts +14 -1
  65. package/dist/@types/domains/post.d.ts.map +1 -1
  66. package/dist/@types/index.d.ts +1 -0
  67. package/dist/@types/index.d.ts.map +1 -1
  68. package/dist/channelRepository/events/onChannelSetMuted.d.ts.map +1 -1
  69. package/dist/client/api/index.d.ts +0 -1
  70. package/dist/client/api/index.d.ts.map +1 -1
  71. package/dist/index.cjs.js +256 -36
  72. package/dist/index.esm.js +256 -36
  73. package/dist/index.umd.js +4 -4
  74. package/dist/postRepository/api/createPost.d.ts +1 -1
  75. package/dist/postRepository/api/editPost.d.ts +1 -1
  76. package/dist/postRepository/observers/getPostsByHashtag/SearchPostLiveCollectionController.d.ts +14 -0
  77. package/dist/postRepository/observers/getPostsByHashtag/SearchPostLiveCollectionController.d.ts.map +1 -0
  78. package/dist/postRepository/observers/getPostsByHashtag/SearchPostPaginationController.d.ts +5 -0
  79. package/dist/postRepository/observers/getPostsByHashtag/SearchPostPaginationController.d.ts.map +1 -0
  80. package/dist/postRepository/observers/getPostsByHashtag/SearchPostQueryStreamController.d.ts +15 -0
  81. package/dist/postRepository/observers/getPostsByHashtag/SearchPostQueryStreamController.d.ts.map +1 -0
  82. package/dist/postRepository/observers/index.d.ts +1 -0
  83. package/dist/postRepository/observers/index.d.ts.map +1 -1
  84. package/dist/postRepository/observers/searchPostsByHashtag.d.ts +22 -0
  85. package/dist/postRepository/observers/searchPostsByHashtag.d.ts.map +1 -0
  86. package/dist/streamRepository/events/onStreamViewerBanned.d.ts.map +1 -1
  87. package/dist/streamRepository/events/onStreamViewerUnbanned.d.ts.map +1 -1
  88. package/package.json +1 -1
  89. package/src/@types/core/payload.ts +3 -4
  90. package/src/@types/domains/client.ts +0 -5
  91. package/src/@types/domains/hashtag.ts +11 -0
  92. package/src/@types/domains/post.ts +18 -1
  93. package/src/@types/index.ts +1 -0
  94. package/src/channelRepository/events/onChannelSetMuted.ts +8 -6
  95. package/src/client/api/index.ts +0 -2
  96. package/src/postRepository/api/createPost.ts +1 -1
  97. package/src/postRepository/api/editPost.ts +1 -1
  98. package/src/postRepository/api/queryPosts.ts +2 -2
  99. package/src/postRepository/observers/getPostsByHashtag/SearchPostLiveCollectionController.ts +183 -0
  100. package/src/postRepository/observers/getPostsByHashtag/SearchPostPaginationController.ts +49 -0
  101. package/src/postRepository/observers/getPostsByHashtag/SearchPostQueryStreamController.ts +99 -0
  102. package/src/postRepository/observers/index.ts +1 -0
  103. package/src/postRepository/observers/searchPostsByHashtag.ts +56 -0
  104. package/src/streamRepository/events/onStreamViewerBanned.ts +8 -5
  105. package/src/streamRepository/events/onStreamViewerUnbanned.ts +6 -4
  106. package/tsconfig.tsbuildinfo +1 -1
  107. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getShareableLinkConfiguration.d.ts +0 -16
  108. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getShareableLinkConfiguration.d.ts.map +0 -1
  109. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getShareableLinkConfiguration.js +0 -21
  110. package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getShareableLinkConfiguration.js.map +0 -1
  111. package/dist/client/api/getShareableLinkConfiguration.d.ts +0 -16
  112. package/dist/client/api/getShareableLinkConfiguration.d.ts.map +0 -1
  113. package/src/client/api/getShareableLinkConfiguration.ts +0 -26
@@ -1,16 +0,0 @@
1
- /**
2
- * ```js
3
- * import Client from '@amityco/ts-sdk'
4
- * const shareableLinkConfiguration = await Client.getShareableLinkConfiguration()
5
- * const postLinkPattern = shareableLinkConfiguration.post
6
- * ```
7
- *
8
- * Fetches a {@link Amity.ShareableLinkConfiguration} object
9
- *
10
- * @returns A Promise of {@link Amity.ShareableLinkConfiguration} object
11
- *
12
- * @category Client API
13
- * @async
14
- */
15
- export declare const getShareableLinkConfiguration: () => Promise<Amity.ShareableLinkConfiguration>;
16
- //# sourceMappingURL=getShareableLinkConfiguration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getShareableLinkConfiguration.d.ts","sourceRoot":"","sources":["../../../src/client/api/getShareableLinkConfiguration.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,6BAA6B,QAC9B,QAAQ,MAAM,0BAA0B,CAQjD,CAAC"}
@@ -1,21 +0,0 @@
1
- import { getActiveClient } from './activeClient';
2
- /**
3
- * ```js
4
- * import Client from '@amityco/ts-sdk'
5
- * const shareableLinkConfiguration = await Client.getShareableLinkConfiguration()
6
- * const postLinkPattern = shareableLinkConfiguration.post
7
- * ```
8
- *
9
- * Fetches a {@link Amity.ShareableLinkConfiguration} object
10
- *
11
- * @returns A Promise of {@link Amity.ShareableLinkConfiguration} object
12
- *
13
- * @category Client API
14
- * @async
15
- */
16
- export const getShareableLinkConfiguration = async () => {
17
- const client = getActiveClient();
18
- const { data } = await client.http.get(`/api/v3/network-settings/shareable-deep-links`);
19
- return data;
20
- };
21
- //# sourceMappingURL=getShareableLinkConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getShareableLinkConfiguration.js","sourceRoot":"","sources":["../../../src/client/api/getShareableLinkConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,6BAA6B,GACxC,KAAK,IAA+C,EAAE;IACpD,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;IAEjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,GAAG,CACpC,+CAA+C,CAChD,CAAC;IAEF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","sourcesContent":["import { getActiveClient } from './activeClient';\n\n/**\n * ```js\n * import Client from '@amityco/ts-sdk'\n * const shareableLinkConfiguration = await Client.getShareableLinkConfiguration()\n * const postLinkPattern = shareableLinkConfiguration.post\n * ```\n *\n * Fetches a {@link Amity.ShareableLinkConfiguration} object\n *\n * @returns A Promise of {@link Amity.ShareableLinkConfiguration} object\n *\n * @category Client API\n * @async\n */\nexport const getShareableLinkConfiguration =\n async (): Promise<Amity.ShareableLinkConfiguration> => {\n const client = getActiveClient();\n\n const { data } = await client.http.get<Amity.ShareableLinkConfiguration>(\n `/api/v3/network-settings/shareable-deep-links`,\n );\n\n return data;\n };\n"]}
@@ -1,16 +0,0 @@
1
- /**
2
- * ```js
3
- * import Client from '@amityco/ts-sdk'
4
- * const shareableLinkConfiguration = await Client.getShareableLinkConfiguration()
5
- * const postLinkPattern = shareableLinkConfiguration.post
6
- * ```
7
- *
8
- * Fetches a {@link Amity.ShareableLinkConfiguration} object
9
- *
10
- * @returns A Promise of {@link Amity.ShareableLinkConfiguration} object
11
- *
12
- * @category Client API
13
- * @async
14
- */
15
- export declare const getShareableLinkConfiguration: () => Promise<Amity.ShareableLinkConfiguration>;
16
- //# sourceMappingURL=getShareableLinkConfiguration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getShareableLinkConfiguration.d.ts","sourceRoot":"","sources":["../../../src/client/api/getShareableLinkConfiguration.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,6BAA6B,QAC9B,QAAQ,MAAM,0BAA0B,CAQjD,CAAC"}
@@ -1,26 +0,0 @@
1
- import { getActiveClient } from './activeClient';
2
-
3
- /**
4
- * ```js
5
- * import Client from '@amityco/ts-sdk'
6
- * const shareableLinkConfiguration = await Client.getShareableLinkConfiguration()
7
- * const postLinkPattern = shareableLinkConfiguration.post
8
- * ```
9
- *
10
- * Fetches a {@link Amity.ShareableLinkConfiguration} object
11
- *
12
- * @returns A Promise of {@link Amity.ShareableLinkConfiguration} object
13
- *
14
- * @category Client API
15
- * @async
16
- */
17
- export const getShareableLinkConfiguration =
18
- async (): Promise<Amity.ShareableLinkConfiguration> => {
19
- const client = getActiveClient();
20
-
21
- const { data } = await client.http.get<Amity.ShareableLinkConfiguration>(
22
- `/api/v3/network-settings/shareable-deep-links`,
23
- );
24
-
25
- return data;
26
- };