@amityco/ts-sdk 7.13.1-e0a963d.0 → 7.14.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.
- package/dist/@types/core/events.d.ts +0 -2
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/core/model.d.ts +0 -2
- package/dist/@types/core/model.d.ts.map +1 -1
- package/dist/@types/core/payload.d.ts +0 -5
- package/dist/@types/core/payload.d.ts.map +1 -1
- package/dist/@types/domains/client.d.ts +10 -7
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/@types/domains/feed.d.ts +17 -1
- package/dist/@types/domains/feed.d.ts.map +1 -1
- package/dist/@types/domains/message.d.ts +1 -1
- package/dist/@types/domains/message.d.ts.map +1 -1
- package/dist/@types/domains/post.d.ts +5 -2
- package/dist/@types/domains/post.d.ts.map +1 -1
- package/dist/@types/domains/room.d.ts +0 -1
- package/dist/@types/domains/room.d.ts.map +1 -1
- package/dist/@types/index.d.ts +0 -1
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/client/api/accessTokenExpiryWatcher.d.ts +1 -1
- package/dist/client/api/accessTokenExpiryWatcher.d.ts.map +1 -1
- package/dist/client/api/createClient.d.ts.map +1 -1
- package/dist/client/api/index.d.ts +2 -1
- package/dist/client/api/index.d.ts.map +1 -1
- package/dist/client/api/isSameUserId.d.ts +2 -0
- package/dist/client/api/isSameUserId.d.ts.map +1 -0
- package/dist/client/api/login.d.ts.map +1 -1
- package/dist/client/api/loginAsBot.d.ts.map +1 -1
- package/dist/client/api/loginAsVisitor.d.ts.map +1 -1
- package/dist/client/api/loginWithAccessToken.d.ts +28 -0
- package/dist/client/api/loginWithAccessToken.d.ts.map +1 -0
- package/dist/client/api/logout.d.ts.map +1 -1
- package/dist/client/api/renewTokenWithHandler.d.ts +11 -0
- package/dist/client/api/renewTokenWithHandler.d.ts.map +1 -0
- package/dist/client/api/renewWithAccessToken.d.ts +2 -0
- package/dist/client/api/renewWithAccessToken.d.ts.map +1 -0
- package/dist/client/api/resumeSession.d.ts.map +1 -1
- package/dist/client/api/setAccessTokenHandler.d.ts +31 -0
- package/dist/client/api/setAccessTokenHandler.d.ts.map +1 -0
- package/dist/client/api/setupLoginSubscriptions.d.ts +11 -0
- package/dist/client/api/setupLoginSubscriptions.d.ts.map +1 -0
- package/dist/client/api/tests/loginWithAccessToken.test.d.ts +2 -0
- package/dist/client/api/tests/loginWithAccessToken.test.d.ts.map +1 -0
- package/dist/client/api/validateAccessToken.d.ts +11 -0
- package/dist/client/api/validateAccessToken.d.ts.map +1 -0
- package/dist/commentRepository/api/createComment.d.ts.map +1 -1
- package/dist/commentRepository/api/deleteComment.d.ts.map +1 -1
- package/dist/commentRepository/events/utils.d.ts.map +1 -1
- package/dist/core/events.d.ts +3 -3
- package/dist/core/events.d.ts.map +1 -1
- package/dist/core/model/idResolvers.d.ts.map +1 -1
- package/dist/core/model/index.d.ts.map +1 -1
- package/dist/core/subscription.d.ts +2 -2
- package/dist/core/subscription.d.ts.map +1 -1
- package/dist/feedRepository/index.d.ts +1 -1
- package/dist/feedRepository/index.d.ts.map +1 -1
- package/dist/feedRepository/observers/getCommunityFeed/LiveCollectionController.d.ts +13 -0
- package/dist/feedRepository/observers/getCommunityFeed/LiveCollectionController.d.ts.map +1 -0
- package/dist/feedRepository/observers/getCommunityFeed/PaginationController.d.ts +5 -0
- package/dist/feedRepository/observers/getCommunityFeed/PaginationController.d.ts.map +1 -0
- package/dist/feedRepository/observers/getCommunityFeed/QueryStreamController.d.ts +15 -0
- package/dist/feedRepository/observers/getCommunityFeed/QueryStreamController.d.ts.map +1 -0
- package/dist/feedRepository/observers/getCommunityFeed.d.ts +34 -0
- package/dist/feedRepository/observers/getCommunityFeed.d.ts.map +1 -0
- package/dist/feedRepository/observers/index.d.ts +1 -0
- package/dist/feedRepository/observers/index.d.ts.map +1 -1
- package/dist/feedRepository/observers/utils.d.ts.map +1 -1
- package/dist/index.cjs.js +1040 -1013
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1018 -989
- package/dist/index.umd.js +3 -3
- package/dist/postRepository/api/createAudioPost.d.ts +0 -2
- package/dist/postRepository/api/createAudioPost.d.ts.map +1 -1
- package/dist/postRepository/api/createClipPost.d.ts +0 -2
- package/dist/postRepository/api/createClipPost.d.ts.map +1 -1
- package/dist/postRepository/api/createMixedMediaPost.d.ts +0 -2
- package/dist/postRepository/api/createMixedMediaPost.d.ts.map +1 -1
- package/dist/postRepository/api/createPost.d.ts +0 -3
- package/dist/postRepository/api/createPost.d.ts.map +1 -1
- package/dist/postRepository/api/editPost.d.ts +0 -3
- package/dist/postRepository/api/editPost.d.ts.map +1 -1
- package/dist/postRepository/api/index.d.ts +0 -4
- package/dist/postRepository/api/index.d.ts.map +1 -1
- package/dist/postRepository/events/utils.d.ts.map +1 -1
- package/dist/postRepository/observers/enums.d.ts +1 -4
- package/dist/postRepository/observers/enums.d.ts.map +1 -1
- package/dist/postRepository/observers/utils.d.ts.map +1 -1
- package/dist/postRepository/utils/PostCommentCountEngine/CommentChange.d.ts +11 -0
- package/dist/postRepository/utils/PostCommentCountEngine/CommentChange.d.ts.map +1 -0
- package/dist/postRepository/utils/PostCommentCountEngine/CreateTask.d.ts +8 -0
- package/dist/postRepository/utils/PostCommentCountEngine/CreateTask.d.ts.map +1 -0
- package/dist/postRepository/utils/PostCommentCountEngine/DeleteTask.d.ts +7 -0
- package/dist/postRepository/utils/PostCommentCountEngine/DeleteTask.d.ts.map +1 -0
- package/dist/postRepository/utils/PostCommentCountEngine/PostCommentCountEngine.d.ts +19 -0
- package/dist/postRepository/utils/PostCommentCountEngine/PostCommentCountEngine.d.ts.map +1 -0
- package/dist/postRepository/utils/PostCommentCountEngine/ResetTask.d.ts +8 -0
- package/dist/postRepository/utils/PostCommentCountEngine/ResetTask.d.ts.map +1 -0
- package/dist/postRepository/utils/payload.d.ts.map +1 -1
- package/dist/roomRepository/api/index.d.ts +0 -1
- package/dist/roomRepository/api/index.d.ts.map +1 -1
- package/dist/roomRepository/events/index.d.ts +0 -2
- package/dist/roomRepository/events/index.d.ts.map +1 -1
- package/dist/roomRepository/observers/enums.d.ts +1 -2
- package/dist/roomRepository/observers/enums.d.ts.map +1 -1
- package/dist/roomRepository/observers/utils.d.ts.map +1 -1
- package/dist/utils/linkedObject/postLinkedObject.d.ts.map +1 -1
- package/package.json +3 -1
- package/dist/@types/domains/product.d.ts +0 -75
- package/dist/@types/domains/product.d.ts.map +0 -1
- package/dist/client/api/getProductCatalogueSetting.d.ts +0 -15
- package/dist/client/api/getProductCatalogueSetting.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/createComment.d.ts +0 -2
- package/dist/commentRepository/internalApi/createComment.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/deleteComment.d.ts +0 -2
- package/dist/commentRepository/internalApi/deleteComment.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/flagComment.d.ts +0 -2
- package/dist/commentRepository/internalApi/flagComment.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/hardDeleteComment.d.ts +0 -2
- package/dist/commentRepository/internalApi/hardDeleteComment.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/isCommentFlaggedByMe.d.ts +0 -2
- package/dist/commentRepository/internalApi/isCommentFlaggedByMe.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/queryComments.d.ts +0 -2
- package/dist/commentRepository/internalApi/queryComments.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/softDeleteComment.d.ts +0 -2
- package/dist/commentRepository/internalApi/softDeleteComment.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/tests/createComment.test.d.ts +0 -2
- package/dist/commentRepository/internalApi/tests/createComment.test.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/tests/deleteComment.test.d.ts +0 -2
- package/dist/commentRepository/internalApi/tests/deleteComment.test.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/tests/getCommentByIds.test.d.ts +0 -2
- package/dist/commentRepository/internalApi/tests/getCommentByIds.test.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/tests/getComments.test.d.ts +0 -2
- package/dist/commentRepository/internalApi/tests/getComments.test.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/tests/hardDeleteComment.test.d.ts +0 -2
- package/dist/commentRepository/internalApi/tests/hardDeleteComment.test.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/tests/queryComments.test.d.ts +0 -2
- package/dist/commentRepository/internalApi/tests/queryComments.test.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/tests/softDeleteComment.test.d.ts +0 -2
- package/dist/commentRepository/internalApi/tests/softDeleteComment.test.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/tests/updateComment.test.d.ts +0 -2
- package/dist/commentRepository/internalApi/tests/updateComment.test.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/unflagComment.d.ts +0 -2
- package/dist/commentRepository/internalApi/unflagComment.d.ts.map +0 -1
- package/dist/commentRepository/internalApi/updateComment.d.ts +0 -2
- package/dist/commentRepository/internalApi/updateComment.d.ts.map +0 -1
- package/dist/postRepository/api/createRoomPost.d.ts +0 -29
- package/dist/postRepository/api/createRoomPost.d.ts.map +0 -1
- package/dist/postRepository/api/pinProduct.d.ts +0 -15
- package/dist/postRepository/api/pinProduct.d.ts.map +0 -1
- package/dist/postRepository/api/unpinProduct.d.ts +0 -14
- package/dist/postRepository/api/unpinProduct.d.ts.map +0 -1
- package/dist/postRepository/api/updateProductTags.d.ts +0 -15
- package/dist/postRepository/api/updateProductTags.d.ts.map +0 -1
- package/dist/productRepository/helpers/AttachmentProductTags.d.ts +0 -41
- package/dist/productRepository/helpers/AttachmentProductTags.d.ts.map +0 -1
- package/dist/productRepository/helpers/index.d.ts +0 -2
- package/dist/productRepository/helpers/index.d.ts.map +0 -1
- package/dist/productRepository/index.d.ts +0 -2
- package/dist/productRepository/index.d.ts.map +0 -1
- package/dist/productRepository/internalApi/getProduct.d.ts +0 -5
- package/dist/productRepository/internalApi/getProduct.d.ts.map +0 -1
- package/dist/productRepository/internalApi/index.d.ts +0 -2
- package/dist/productRepository/internalApi/index.d.ts.map +0 -1
- package/dist/productRepository/observers/getProduct.d.ts +0 -21
- package/dist/productRepository/observers/getProduct.d.ts.map +0 -1
- package/dist/productRepository/observers/index.d.ts +0 -3
- package/dist/productRepository/observers/index.d.ts.map +0 -1
- package/dist/productRepository/observers/searchProducts/LiveCollectionController.d.ts +0 -15
- package/dist/productRepository/observers/searchProducts/LiveCollectionController.d.ts.map +0 -1
- package/dist/productRepository/observers/searchProducts/PaginationController.d.ts +0 -5
- package/dist/productRepository/observers/searchProducts/PaginationController.d.ts.map +0 -1
- package/dist/productRepository/observers/searchProducts/QueryStreamController.d.ts +0 -8
- package/dist/productRepository/observers/searchProducts/QueryStreamController.d.ts.map +0 -1
- package/dist/productRepository/observers/searchProducts.d.ts +0 -25
- package/dist/productRepository/observers/searchProducts.d.ts.map +0 -1
- package/dist/roomRepository/api/updateCohostPermission.d.ts +0 -18
- package/dist/roomRepository/api/updateCohostPermission.d.ts.map +0 -1
- package/dist/roomRepository/events/onLocalRoomDidUpdate.d.ts +0 -17
- package/dist/roomRepository/events/onLocalRoomDidUpdate.d.ts.map +0 -1
- package/dist/roomRepository/events/onRoomDidUpdate.d.ts +0 -17
- package/dist/roomRepository/events/onRoomDidUpdate.d.ts.map +0 -1
- package/dist/utils/linkedObject/productTagLinkedObject.d.ts +0 -2
- package/dist/utils/linkedObject/productTagLinkedObject.d.ts.map +0 -1
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ```js
|
|
3
|
-
* import { PostRepository } from '@amityco/ts-sdk'
|
|
4
|
-
* const pinProduct = await PostRepository.pinProduct(postId, pinnedProductId)
|
|
5
|
-
* ```
|
|
6
|
-
*
|
|
7
|
-
* @param postId The ID of the post to unpin the product from
|
|
8
|
-
* @param productId the ID of the product to pin
|
|
9
|
-
* @returns Amity.Post
|
|
10
|
-
*
|
|
11
|
-
* @category Post API
|
|
12
|
-
* @async
|
|
13
|
-
* */
|
|
14
|
-
export declare const pinProduct: (postId: Amity.Post['postId'], pinnedProductId: Amity.Post['pinnedProductId']) => Promise<Amity.Cached<Amity.Post>>;
|
|
15
|
-
//# sourceMappingURL=pinProduct.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pinProduct.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/pinProduct.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;KAYK;AACL,eAAO,MAAM,UAAU,WACb,MAAM,IAAI,CAAC,QAAQ,CAAC,mBACX,MAAM,IAAI,CAAC,iBAAiB,CAAC,KAC7C,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAqBlC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ```js
|
|
3
|
-
* import { PostRepository } from '@amityco/ts-sdk'
|
|
4
|
-
* const unpinProduct = await PostRepository.unpinProduct(postId)
|
|
5
|
-
* ```
|
|
6
|
-
*
|
|
7
|
-
* @param postId The ID of the post to unpin the product from
|
|
8
|
-
* @returns Amity.Post
|
|
9
|
-
*
|
|
10
|
-
* @category Post API
|
|
11
|
-
* @async
|
|
12
|
-
* */
|
|
13
|
-
export declare const unpinProduct: (postId: Amity.Post['postId']) => Promise<Amity.Cached<Amity.Post>>;
|
|
14
|
-
//# sourceMappingURL=unpinProduct.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unpinProduct.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/unpinProduct.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;KAWK;AACL,eAAO,MAAM,YAAY,WACf,MAAM,IAAI,CAAC,QAAQ,CAAC,KAC3B,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAmBlC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ```js
|
|
3
|
-
* import { PostRepository } from '@amityco/ts-sdk'
|
|
4
|
-
* const updateProductTags = await PostRepository.updateProductTags(postId, productTags)
|
|
5
|
-
* ```
|
|
6
|
-
*
|
|
7
|
-
* @param postId of child room
|
|
8
|
-
* @param productTags the array of product tags to set on the post
|
|
9
|
-
* @returns Amity.Post
|
|
10
|
-
*
|
|
11
|
-
* @category Post API
|
|
12
|
-
* @async
|
|
13
|
-
* */
|
|
14
|
-
export declare const updateProductTags: (postId: Amity.Post['postId'], productTags: Amity.MediaProductTag[]) => Promise<Amity.Cached<Amity.Post>>;
|
|
15
|
-
//# sourceMappingURL=updateProductTags.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateProductTags.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/updateProductTags.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;KAYK;AACL,eAAO,MAAM,iBAAiB,WACpB,MAAM,IAAI,CAAC,QAAQ,CAAC,eACf,MAAM,eAAe,EAAE,KACnC,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAqBlC,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Helper class for managing product tags per media attachment.
|
|
3
|
-
*
|
|
4
|
-
* This class provides a convenient way to organize product tags by file ID,
|
|
5
|
-
* allowing you to associate multiple products with individual media attachments
|
|
6
|
-
* (images, videos) in a post.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* const attachmentTags = new AmityAttachmentProductTags();
|
|
11
|
-
*
|
|
12
|
-
* // Set tags to specific images
|
|
13
|
-
*
|
|
14
|
-
* attachmentTags.set('image-file-2', [
|
|
15
|
-
* { productId: 'product-3' },
|
|
16
|
-
* { productId: 'product-4' },
|
|
17
|
-
* ]);
|
|
18
|
-
*
|
|
19
|
-
* // Get tags for a specific file
|
|
20
|
-
* const tagsOnImage1 = attachmentTags.get('image-file-1');
|
|
21
|
-
* // Returns: [{ productId: 'product-1' }, { productId: 'product-2' }]
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export declare class AmityAttachmentProductTags {
|
|
25
|
-
private map;
|
|
26
|
-
/**
|
|
27
|
-
* Get all product tags associated with a specific file.
|
|
28
|
-
*
|
|
29
|
-
* @param fileId - The ID of the file (image/video)
|
|
30
|
-
* @returns Array of product tags for the file, empty array if none exist
|
|
31
|
-
*/
|
|
32
|
-
get(fileId: string): Amity.MediaProductTag[];
|
|
33
|
-
/**
|
|
34
|
-
* Set product tags for a specific file, replacing any existing tags.
|
|
35
|
-
*
|
|
36
|
-
* @param fileId - The ID of the file (image/video)
|
|
37
|
-
* @param tags - Array of product tags to set for the file
|
|
38
|
-
*/
|
|
39
|
-
set(fileId: string, tags: Amity.MediaProductTag[]): void;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=AttachmentProductTags.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentProductTags.d.ts","sourceRoot":"","sources":["../../../src/productRepository/helpers/AttachmentProductTags.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,GAAG,CAAmD;IAE9D;;;;;OAKG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,eAAe,EAAE;IAI5C;;;;;OAKG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,eAAe,EAAE,GAAG,IAAI;CAGzD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/productRepository/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/productRepository/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const getProduct: {
|
|
2
|
-
(productId: Amity.InternalProduct['productId']): Promise<Amity.Cached<Amity.InternalProduct>>;
|
|
3
|
-
locally(productId: Amity.InternalProduct['productId']): Amity.Cached<Amity.InternalProduct> | undefined;
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=getProduct.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getProduct.d.ts","sourceRoot":"","sources":["../../../src/productRepository/internalApi/getProduct.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU;gBACV,MAAM,eAAe,CAAC,WAAW,CAAC,GAC5C,QAAQ,MAAM,MAAM,CAAC,MAAM,eAAe,CAAC,CAAC;uBAmClC,MAAM,eAAe,CAAC,WAAW,CAAC,GAC5C,MAAM,MAAM,CAAC,MAAM,eAAe,CAAC,GAAG,SAAS;CAJjD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/productRepository/internalApi/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ```js
|
|
3
|
-
* import { ProductRepository } from '@amityco/ts-sdk';
|
|
4
|
-
*
|
|
5
|
-
* let product;
|
|
6
|
-
*
|
|
7
|
-
* const unsub = ProductRepository.getProduct(productId, response => {
|
|
8
|
-
* product = response.data;
|
|
9
|
-
* });
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* Observe all mutation on a given {@link Amity.Product}
|
|
13
|
-
*
|
|
14
|
-
* @param productId the ID of the product to observe
|
|
15
|
-
* @param callback the function to call when new data are available
|
|
16
|
-
* @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the product
|
|
17
|
-
*
|
|
18
|
-
* @category Product Live Object
|
|
19
|
-
*/
|
|
20
|
-
export declare const getProduct: (productId: Amity.Product['productId'], callback: Amity.LiveObjectCallback<Amity.Product>) => Amity.Unsubscriber;
|
|
21
|
-
//# sourceMappingURL=getProduct.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getProduct.d.ts","sourceRoot":"","sources":["../../../src/productRepository/observers/getProduct.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,UAAU,cACV,MAAM,OAAO,CAAC,WAAW,CAAC,YAC3B,MAAM,kBAAkB,CAAC,MAAM,OAAO,CAAC,KAChD,MAAM,YAQR,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/productRepository/observers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SearchProductPaginationController } from './PaginationController';
|
|
2
|
-
import { LiveCollectionController } from '~/core/liveCollection/LiveCollectionController';
|
|
3
|
-
export declare class SearchProductLiveCollectionController extends LiveCollectionController<'product', Amity.ProductLiveCollection, Amity.Product, SearchProductPaginationController> {
|
|
4
|
-
private queryStreamController;
|
|
5
|
-
private query;
|
|
6
|
-
constructor(query: Amity.ProductLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Product>);
|
|
7
|
-
protected setup(): void;
|
|
8
|
-
protected persistModel(queryPayload: {
|
|
9
|
-
products: Amity.RawProduct[];
|
|
10
|
-
} & Amity.Pagination): Promise<void>;
|
|
11
|
-
protected persistQueryStream({ response, direction, refresh, }: Amity.LiveCollectionPersistQueryStreamParams<'product'>): void;
|
|
12
|
-
startSubscription(): Amity.Unsubscriber[];
|
|
13
|
-
notifyChange({ origin, loading, error }: Amity.LiveCollectionNotifyParams): void;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=LiveCollectionController.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/productRepository/observers/searchProducts/LiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAC;AAE3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAG1F,qBAAa,qCAAsC,SAAQ,wBAAwB,CACjF,SAAS,EACT,KAAK,CAAC,qBAAqB,EAC3B,KAAK,CAAC,OAAO,EACb,iCAAiC,CAClC;IACC,OAAO,CAAC,qBAAqB,CAAqC;IAElE,OAAO,CAAC,KAAK,CAA8B;gBAGzC,KAAK,EAAE,KAAK,CAAC,qBAAqB,EAClC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,OAAO,CAAC;IAmBvD,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE;QAAE,QAAQ,EAAE,KAAK,CAAC,UAAU,EAAE,CAAA;KAAE,GAAG,KAAK,CAAC,UAAU;IAI9F,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,SAAS,CAAC;IAK1D,iBAAiB;IAIjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;CAoB1E"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { PaginationController } from '~/core/liveCollection/PaginationController';
|
|
2
|
-
export declare class SearchProductPaginationController extends PaginationController<'product', Amity.ProductLiveCollection> {
|
|
3
|
-
getRequest(queryParams: Amity.ProductLiveCollection, token: string | undefined): Promise<Amity.ProductPayload & Amity.Pagination>;
|
|
4
|
-
}
|
|
5
|
-
//# sourceMappingURL=PaginationController.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationController.d.ts","sourceRoot":"","sources":["../../../../src/productRepository/observers/searchProducts/PaginationController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAGlF,qBAAa,iCAAkC,SAAQ,oBAAoB,CACzE,SAAS,EACT,KAAK,CAAC,qBAAqB,CAC5B;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,qBAAqB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;CAerF"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { QueryStreamController } from '~/core/liveCollection/QueryStreamController';
|
|
2
|
-
export declare class SearchProductQueryStreamController extends QueryStreamController<Amity.ProductPayload, Amity.ProductLiveCollection> {
|
|
3
|
-
private notifyChange;
|
|
4
|
-
constructor(query: Amity.ProductLiveCollection, cacheKey: string[], notifyChange: (params: Amity.LiveCollectionNotifyParams) => void);
|
|
5
|
-
saveToMainDB(response: Amity.ProductPayload): void;
|
|
6
|
-
appendToQueryStream(response: Amity.ProductPayload & Partial<Amity.Pagination>, direction: Amity.LiveCollectionPageDirection, refresh?: boolean): void;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=QueryStreamController.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryStreamController.d.ts","sourceRoot":"","sources":["../../../../src/productRepository/observers/searchProducts/QueryStreamController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAMpF,qBAAa,kCAAmC,SAAQ,qBAAqB,CAC3E,KAAK,CAAC,cAAc,EACpB,KAAK,CAAC,qBAAqB,CAC5B;IACC,OAAO,CAAC,YAAY,CAAqD;gBAGvE,KAAK,EAAE,KAAK,CAAC,qBAAqB,EAClC,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,0BAA0B,KAAK,IAAI;IAOlE,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,cAAc;IAS3C,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EAC1D,SAAS,EAAE,KAAK,CAAC,2BAA2B,EAC5C,OAAO,UAAQ;CAiBlB"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ```js
|
|
3
|
-
* import { ProductRepository } from '@amityco/ts-sdk'
|
|
4
|
-
*
|
|
5
|
-
* let products = []
|
|
6
|
-
* const unsub = ProductRepository.searchProducts({
|
|
7
|
-
* keyword: string,
|
|
8
|
-
* }, response => merge(products, response.data))
|
|
9
|
-
* ```
|
|
10
|
-
*
|
|
11
|
-
* Observe all mutations on a list of {@link Amity.Product}
|
|
12
|
-
*
|
|
13
|
-
* @param params.keyword the search keyword
|
|
14
|
-
* @param params.isActive filter by active status
|
|
15
|
-
* @param params.isDeleted filter by deleted status
|
|
16
|
-
* @param params.sortBy sort option
|
|
17
|
-
* @param params.sortOrder order option
|
|
18
|
-
* @param callback the function to call when new data are available
|
|
19
|
-
* @param config
|
|
20
|
-
* @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the products
|
|
21
|
-
*
|
|
22
|
-
* @category Products Live Collection
|
|
23
|
-
*/
|
|
24
|
-
export declare const searchProducts: (params: Amity.ProductLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Product>, config?: Amity.LiveCollectionConfig) => Amity.Unsubscriber;
|
|
25
|
-
//# sourceMappingURL=searchProducts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"searchProducts.d.ts","sourceRoot":"","sources":["../../../src/productRepository/observers/searchProducts.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,cAAc,WACjB,MAAM,qBAAqB,YACzB,MAAM,sBAAsB,CAAC,MAAM,OAAO,CAAC,WAC5C,MAAM,oBAAoB,KAClC,MAAM,YAqBR,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ```js
|
|
3
|
-
* import { updateCohostPermission } from '@amityco/ts-sdk'
|
|
4
|
-
* const updated = await updateCohostPermission('roomId', 'cohostId', true)
|
|
5
|
-
* ```
|
|
6
|
-
*
|
|
7
|
-
* Updates an {@link Amity.InternalRoom}
|
|
8
|
-
*
|
|
9
|
-
* @param roomId The ID of the room to update
|
|
10
|
-
* @param cohostId The ID of the cohost to update
|
|
11
|
-
* @param canManageProductTags The permission to manage product tags
|
|
12
|
-
* @returns The updated {@link Amity.InternalRoom}
|
|
13
|
-
*
|
|
14
|
-
* @category Room API
|
|
15
|
-
* @async
|
|
16
|
-
*/
|
|
17
|
-
export declare const updateCohostPermission: (roomId: string, cohostId: string, canManageProductTags: boolean) => Promise<Amity.Cached<Amity.Room>>;
|
|
18
|
-
//# sourceMappingURL=updateCohostPermission.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateCohostPermission.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/updateCohostPermission.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,WACzB,MAAM,YACJ,MAAM,wBACM,OAAO,KAC5B,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAoBlC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ```js
|
|
3
|
-
* import { onLocalRoomDidUpdate } from '@amityco/ts-sdk'
|
|
4
|
-
* const dispose = onLocalRoomDidUpdate(room => {
|
|
5
|
-
* // ...
|
|
6
|
-
* })
|
|
7
|
-
* ```
|
|
8
|
-
*
|
|
9
|
-
* Fired when a {@link Amity.Room} has been updated locally
|
|
10
|
-
*
|
|
11
|
-
* @param callback The function to call when the event was fired
|
|
12
|
-
* @returns an {@link Amity.Unsubscriber} function to stop listening
|
|
13
|
-
*
|
|
14
|
-
* @category Room Events
|
|
15
|
-
*/
|
|
16
|
-
export declare const onLocalRoomDidUpdate: (callback: Amity.Listener<Amity.InternalRoom>) => Amity.Unsubscriber;
|
|
17
|
-
//# sourceMappingURL=onLocalRoomDidUpdate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"onLocalRoomDidUpdate.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onLocalRoomDidUpdate.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oBAAoB,aACrB,MAAM,QAAQ,CAAC,MAAM,YAAY,CAAC,KAC3C,MAAM,YASR,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ```js
|
|
3
|
-
* import { onRoomDidUpdate } from '@amityco/ts-sdk'
|
|
4
|
-
* const dispose = onRoomDidUpdate(room => {
|
|
5
|
-
* // ...
|
|
6
|
-
* })
|
|
7
|
-
* ```
|
|
8
|
-
*
|
|
9
|
-
* Fired when a {@link Amity.Room} has been updated locally
|
|
10
|
-
*
|
|
11
|
-
* @param callback The function to call when the event was fired
|
|
12
|
-
* @returns an {@link Amity.Unsubscriber} function to stop listening
|
|
13
|
-
*
|
|
14
|
-
* @category Room Events
|
|
15
|
-
*/
|
|
16
|
-
export declare const onRoomDidUpdate: (callback: Amity.Listener<Amity.InternalRoom>) => Amity.Unsubscriber;
|
|
17
|
-
//# sourceMappingURL=onRoomDidUpdate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"onRoomDidUpdate.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomDidUpdate.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,aAChB,MAAM,QAAQ,CAAC,MAAM,YAAY,CAAC,KAC3C,MAAM,YASR,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"productTagLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/productTagLinkedObject.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,eAAgB,MAAM,kBAAkB,KAAG,MAAM,UAKnF,CAAC"}
|