@amityco/ts-sdk 7.14.1-e31cea3f.0 → 7.15.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/analytics.d.ts +1 -2
- package/dist/@types/domains/analytics.d.ts.map +1 -1
- package/dist/@types/domains/client.d.ts +0 -6
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/@types/domains/post.d.ts +0 -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/domains/user.d.ts +7 -0
- package/dist/@types/domains/user.d.ts.map +1 -1
- package/dist/@types/index.d.ts +0 -1
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/analytic/service/analytic/AnalyticsEngine.d.ts +0 -2
- package/dist/analytic/service/analytic/AnalyticsEngine.d.ts.map +1 -1
- package/dist/analytic/service/analytic/AnalyticsEventCapturer.d.ts +0 -2
- package/dist/analytic/service/analytic/AnalyticsEventCapturer.d.ts.map +1 -1
- package/dist/analytic/service/analytic/AnalyticsService.d.ts +0 -12
- package/dist/analytic/service/analytic/AnalyticsService.d.ts.map +1 -1
- package/dist/client/api/createClient.d.ts.map +1 -1
- package/dist/client/api/index.d.ts +0 -1
- package/dist/client/api/index.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/index.cjs.js +72 -718
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +50 -694
- 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/observers/enums.d.ts +1 -4
- package/dist/postRepository/observers/enums.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/getRoom.d.ts.map +1 -1
- package/dist/roomRepository/observers/utils.d.ts.map +1 -1
- package/dist/utils/linkedObject/index.d.ts +0 -1
- package/dist/utils/linkedObject/index.d.ts.map +1 -1
- package/dist/utils/linkedObject/postLinkedObject.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/@types/domains/product.d.ts +0 -95
- 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/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/productLinkedObject.d.ts +0 -2
- package/dist/utils/linkedObject/productLinkedObject.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,4 +1,3 @@
|
|
|
1
|
-
import { AmityAttachmentProductTags } from '~/productRepository/helpers';
|
|
2
1
|
/**
|
|
3
2
|
* ```js
|
|
4
3
|
* import { PostRepository } from '@amityco/ts-sdk'
|
|
@@ -27,6 +26,5 @@ export declare const createAudioPost: (bundle: Pick<Amity.Post, 'targetType' | '
|
|
|
27
26
|
type: Extract<Amity.MixedMediaPostContentType, 'audio'>;
|
|
28
27
|
fileId: Amity.File['fileId'];
|
|
29
28
|
}[];
|
|
30
|
-
attachmentProductTags?: AmityAttachmentProductTags;
|
|
31
29
|
}) => Promise<Amity.Cached<Amity.Post>>;
|
|
32
30
|
//# sourceMappingURL=createAudioPost.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAudioPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createAudioPost.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createAudioPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createAudioPost.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,eAAe,WAClB,KAAK,MAAM,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC,GACjD,QAAQ,KAAK,MAAM,IAAI,EAAE,UAAU,GAAG,YAAY,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC,GAAG;IAC3E,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ,MAAM,yBAAyB,EAAE,OAAO,CAAC,CAAC;QACxD,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;KAC9B,EAAE,CAAC;CACL,KACF,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAkBlC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AmityAttachmentProductTags } from '~/productRepository/helpers';
|
|
2
1
|
/**
|
|
3
2
|
* ```js
|
|
4
3
|
* import { PostRepository } from '@amityco/ts-sdk'
|
|
@@ -29,6 +28,5 @@ export declare const createClipPost: <T extends string>(bundle: Pick<Amity.Post<
|
|
|
29
28
|
displayMode?: Amity.ClipDisplayMode | undefined;
|
|
30
29
|
isMuted?: boolean | undefined;
|
|
31
30
|
}[];
|
|
32
|
-
attachmentProductTags?: AmityAttachmentProductTags | undefined;
|
|
33
31
|
}) => Promise<Amity.Cached<Amity.Post>>;
|
|
34
32
|
//# sourceMappingURL=createClipPost.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createClipPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createClipPost.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createClipPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createClipPost.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,cAAc;;;;;;gBAMX,UAAU,CAAC,QAAQ,CAAC;;;;MAKjC,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAmBlC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AmityAttachmentProductTags } from '~/productRepository/helpers';
|
|
2
1
|
/**
|
|
3
2
|
* ```js
|
|
4
3
|
* import { PostRepository } from '@amityco/ts-sdk'
|
|
@@ -32,6 +31,5 @@ export declare const createMixedMediaPost: (bundle: Pick<Amity.Post, 'targetType
|
|
|
32
31
|
type: Amity.MixedMediaPostContentType;
|
|
33
32
|
fileId: Amity.File['fileId'];
|
|
34
33
|
}[];
|
|
35
|
-
attachmentProductTags: AmityAttachmentProductTags;
|
|
36
34
|
}) => Promise<Amity.Cached<Amity.Post>>;
|
|
37
35
|
//# sourceMappingURL=createMixedMediaPost.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createMixedMediaPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createMixedMediaPost.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createMixedMediaPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createMixedMediaPost.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,oBAAoB,WACvB,KAAK,MAAM,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC,GACjD,QAAQ,KAAK,MAAM,IAAI,EAAE,UAAU,GAAG,YAAY,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC,GAAG;IAC3E,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,WAAW,EAAE;QAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;QAAC,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAA;KAAE,EAAE,CAAC;CACxF,KACF,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAkBlC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AmityAttachmentProductTags } from '~/productRepository/helpers';
|
|
2
1
|
/**
|
|
3
2
|
* ```js
|
|
4
3
|
* import { PostRepository } from '@amityco/ts-sdk'
|
|
@@ -27,7 +26,5 @@ export declare const createPost: <T extends string>(bundle: Pick<Amity.Post<T>,
|
|
|
27
26
|
fileId: Amity.File['fileId'];
|
|
28
27
|
}[] | undefined;
|
|
29
28
|
links?: Amity.Link[] | undefined;
|
|
30
|
-
productTags?: Amity.TextProductTag[] | undefined;
|
|
31
|
-
attachmentProductTags?: AmityAttachmentProductTags | undefined;
|
|
32
29
|
}) => Promise<Amity.Cached<Amity.Post>>;
|
|
33
30
|
//# sourceMappingURL=createPost.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createPost.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createPost.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU;;;;;;;gBAKgB,UAAU,CAAC,QAAQ,CAAC;;;MAGxD,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAyBlC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AmityAttachmentProductTags } from '~/productRepository/helpers';
|
|
2
1
|
/**
|
|
3
2
|
* ```js
|
|
4
3
|
* import { PostRepository } from '@amityco/ts-sdk'
|
|
@@ -22,7 +21,5 @@ export declare const editPost: <T extends string>(postId: Amity.Post['postId'],
|
|
|
22
21
|
fileId: Amity.File['fileId'];
|
|
23
22
|
}[] | undefined;
|
|
24
23
|
links?: Amity.Link[] | undefined;
|
|
25
|
-
productTags?: Amity.TextProductTag[] | undefined;
|
|
26
|
-
attachmentProductTags?: AmityAttachmentProductTags | undefined;
|
|
27
24
|
}) => Promise<Amity.Cached<Amity.Post>>;
|
|
28
25
|
//# sourceMappingURL=editPost.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/editPost.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"editPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/editPost.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,QAAQ,6BACX,MAAM,IAAI,CAAC,QAAQ,CAAC;;;gBAIhB,UAAU,CAAC,QAAQ,CAAC;;;MAI/B,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAsBlC,CAAC"}
|
|
@@ -12,8 +12,4 @@ export * from './isPostFlaggedByMe';
|
|
|
12
12
|
export * from './createClipPost';
|
|
13
13
|
export * from './createAudioPost';
|
|
14
14
|
export * from './createMixedMediaPost';
|
|
15
|
-
export * from './createRoomPost';
|
|
16
|
-
export * from './pinProduct';
|
|
17
|
-
export * from './unpinProduct';
|
|
18
|
-
export * from './updateProductTags';
|
|
19
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAE/B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAE3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAE9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AAEpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAE/B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAE3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAE9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AAEpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC"}
|
|
@@ -7,9 +7,6 @@ export declare enum EnumPostActions {
|
|
|
7
7
|
OnPostReactionAdded = "onPostReactionAdded",
|
|
8
8
|
OnPostReactionRemoved = "onPostReactionRemoved",
|
|
9
9
|
OnPostApproved = "onPostApproved",
|
|
10
|
-
OnPostDeclined = "onPostDeclined"
|
|
11
|
-
OnPostPinProduct = "onPostPinProduct",
|
|
12
|
-
OnPostUnpinProduct = "onPostUnpinProduct",
|
|
13
|
-
OnPostUpdateProductTags = "onPostUpdateProductTags"
|
|
10
|
+
OnPostDeclined = "onPostDeclined"
|
|
14
11
|
}
|
|
15
12
|
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/postRepository/observers/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,mBAAmB,wBAAwB;IAC3C,qBAAqB,0BAA0B;IAC/C,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/postRepository/observers/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,mBAAmB,wBAAwB;IAC3C,qBAAqB,0BAA0B;IAC/C,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;CAClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
@@ -11,12 +11,10 @@ export * from './onRoomParticipantLeft';
|
|
|
11
11
|
export * from './onRoomParticipantStageLeft';
|
|
12
12
|
export * from './onRoomParticipantStageJoined';
|
|
13
13
|
export * from './onRoomTerminated';
|
|
14
|
-
export * from './onRoomDidUpdate';
|
|
15
14
|
export * from './onRoomCreated';
|
|
16
15
|
export * from './onRoomUpdated';
|
|
17
16
|
export * from './onRoomDeleted';
|
|
18
17
|
export * from './onRoomStopped';
|
|
19
18
|
export * from './onRoomParticipantRemoved';
|
|
20
19
|
export * from './onRoomLeft';
|
|
21
|
-
export * from './onLocalRoomDidUpdate';
|
|
22
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AAGnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC"}
|
|
@@ -5,7 +5,6 @@ export declare enum EnumRoomActions {
|
|
|
5
5
|
OnRoomStartBroadcasting = "OnRoomStartBroadcasting",
|
|
6
6
|
OnRoomEndBroadcasting = "OnRoomEndBroadcasting",
|
|
7
7
|
OnRoomParticipantJoined = "OnRoomParticipantJoined",
|
|
8
|
-
OnRoomParticipantLeft = "OnRoomParticipantLeft"
|
|
9
|
-
OnRoomDidUpdate = "OnRoomDidUpdate"
|
|
8
|
+
OnRoomParticipantLeft = "OnRoomParticipantLeft"
|
|
10
9
|
}
|
|
11
10
|
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/observers/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;IAC/C,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/observers/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;IAC/C,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;CAChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/observers/getRoom.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/observers/getRoom.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,OAAO,WACV,MAAM,YACJ,MAAM,kBAAkB,CAAC,MAAM,IAAI,CAAC,KAC7C,MAAM,YA2BR,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/observers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/observers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAgB1C,eAAO,MAAM,yBAAyB,4BACV,MAAM,QAAQ,CAAC,MAAM,WAAW,CAAC,KAAK,MAAM,YAAY,gBACvE,MAAM,QAAQ,CAAC,MAAM,IAAI,CAAC,uBAGjC,CAAC;AAGP,eAAO,MAAM,mBAAmB;mBACf,MAAM,QAAQ,CAAC,MAAM,OAAO,CAAC,KAAK,MAAM,YAAY;YAC3D,eAAe;GA8CxB,CAAC"}
|
|
@@ -19,6 +19,5 @@ export declare const LinkedObject: {
|
|
|
19
19
|
room: (room: Amity.RawRoom) => Amity.Room;
|
|
20
20
|
event: (event: Amity.RawEvent) => Amity.Event;
|
|
21
21
|
eventResponse: (event: Amity.RawEventResponse) => Amity.EventResponse;
|
|
22
|
-
product: (product: Amity.RawProduct) => Amity.Product;
|
|
23
22
|
};
|
|
24
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/index.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;CAqBxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/postLinkedObject.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"postLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/postLinkedObject.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IA+GjE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
export declare const enum AnalyticsSourceTypeEnum {
|
|
3
|
-
POST = "post",
|
|
4
|
-
ROOM = "room"
|
|
5
|
-
}
|
|
6
|
-
declare global {
|
|
7
|
-
namespace Amity {
|
|
8
|
-
const enum ProductStatusEnum {
|
|
9
|
-
ACTIVE = "active",
|
|
10
|
-
INACTIVE = "inactive"
|
|
11
|
-
}
|
|
12
|
-
type ProductStatus = `${ProductStatusEnum}`;
|
|
13
|
-
const enum ProductThumbnailModeEnum {
|
|
14
|
-
ASPECT_FIT = "aspect_fit",
|
|
15
|
-
ASPECT_FILL = "aspect_fill"
|
|
16
|
-
}
|
|
17
|
-
type ProductThumbnailMode = `${ProductThumbnailModeEnum}`;
|
|
18
|
-
const enum ProductImportSourceEnum {
|
|
19
|
-
MANUAL = "manual",
|
|
20
|
-
IMPORT = "import"
|
|
21
|
-
}
|
|
22
|
-
type ProductImportSource = `${ProductImportSourceEnum}`;
|
|
23
|
-
const enum ProductSortOptionEnum {
|
|
24
|
-
CREATED_AT = "createdAt",
|
|
25
|
-
UPDATED_AT = "updatedAt",
|
|
26
|
-
PRODUCT_NAME = "productName"
|
|
27
|
-
}
|
|
28
|
-
type AnalyticsSourceType = `${AnalyticsSourceTypeEnum}`;
|
|
29
|
-
type ProductSortOption = `${ProductSortOptionEnum}`;
|
|
30
|
-
const enum ProductOrderOptionEnum {
|
|
31
|
-
ASC = "asc",
|
|
32
|
-
DESC = "desc"
|
|
33
|
-
}
|
|
34
|
-
type ProductOrderOption = `${ProductOrderOptionEnum}`;
|
|
35
|
-
type RawTextProductTag = {
|
|
36
|
-
productId: string;
|
|
37
|
-
text: string;
|
|
38
|
-
index: number;
|
|
39
|
-
length: number;
|
|
40
|
-
};
|
|
41
|
-
type RawMediaProductTag = {
|
|
42
|
-
productId: string;
|
|
43
|
-
};
|
|
44
|
-
type ProductTagType = 'text' | 'media';
|
|
45
|
-
type ProductTagLinkedObject = {
|
|
46
|
-
product?: Amity.Product;
|
|
47
|
-
};
|
|
48
|
-
type RawProductTag<T extends ProductTagType = any> = T extends 'text' ? RawTextProductTag : RawMediaProductTag;
|
|
49
|
-
type InternalProductTag<T extends ProductTagType = any> = RawProductTag<T>;
|
|
50
|
-
type ProductTag = InternalProductTag & ProductTagLinkedObject;
|
|
51
|
-
type TextProductTag = {
|
|
52
|
-
text: string;
|
|
53
|
-
index: number;
|
|
54
|
-
length: number;
|
|
55
|
-
} & ProductTag;
|
|
56
|
-
type MediaProductTag = ProductTag;
|
|
57
|
-
type RawProduct = {
|
|
58
|
-
productId: string;
|
|
59
|
-
productName: string;
|
|
60
|
-
productUrl: string;
|
|
61
|
-
status: ProductStatus;
|
|
62
|
-
price?: number;
|
|
63
|
-
currency?: string;
|
|
64
|
-
thumbnailUrl?: string;
|
|
65
|
-
thumbnailMode?: ProductThumbnailMode;
|
|
66
|
-
importSource: ProductImportSource;
|
|
67
|
-
createdBy: string;
|
|
68
|
-
updatedBy?: string;
|
|
69
|
-
isDeleted: boolean;
|
|
70
|
-
createdAt: Amity.timestamp;
|
|
71
|
-
updatedAt: Amity.timestamp;
|
|
72
|
-
_id: string;
|
|
73
|
-
};
|
|
74
|
-
type InternalProduct = RawProduct;
|
|
75
|
-
type ProductLinkedObject = {
|
|
76
|
-
analytics: {
|
|
77
|
-
markAsClicked: (location: string, sourceType: Amity.AnalyticsSourceType, sourceId: string) => void;
|
|
78
|
-
markAsViewed: (location: string, sourceType: Amity.AnalyticsSourceType, sourceId: string) => void;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
type Product = InternalProduct & ProductLinkedObject;
|
|
82
|
-
type QueryProducts = {
|
|
83
|
-
keyword: string;
|
|
84
|
-
isActive?: boolean;
|
|
85
|
-
isDeleted?: boolean;
|
|
86
|
-
sortBy?: ProductSortOption;
|
|
87
|
-
sortOrder?: ProductOrderOption;
|
|
88
|
-
page?: string;
|
|
89
|
-
limit?: number;
|
|
90
|
-
};
|
|
91
|
-
type ProductLiveCollection = Amity.LiveCollectionParams<Omit<QueryProducts, 'page'>>;
|
|
92
|
-
type ProductLiveCollectionCache = Amity.LiveCollectionCache<Amity.InternalProduct['productId'], Pick<QueryProducts, 'page'>>;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=product.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/product.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ```js
|
|
3
|
-
* import { getProductCatalogueSetting } from '@amityco/ts-sdk'
|
|
4
|
-
* const productCatalogueSetting = await getProductCatalogueSetting()
|
|
5
|
-
* ```
|
|
6
|
-
*
|
|
7
|
-
* Fetches a {@link Amity.ProductCatalogueSetting} object
|
|
8
|
-
*
|
|
9
|
-
* @returns A Promise of {@link Amity.ProductCatalogueSetting} object
|
|
10
|
-
*
|
|
11
|
-
* @category Client API
|
|
12
|
-
* @async
|
|
13
|
-
*/
|
|
14
|
-
export declare const getProductCatalogueSetting: () => Promise<Amity.ProductCatalogueSetting>;
|
|
15
|
-
//# sourceMappingURL=getProductCatalogueSetting.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getProductCatalogueSetting.d.ts","sourceRoot":"","sources":["../../../src/client/api/getProductCatalogueSetting.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,QAAa,QAAQ,MAAM,uBAAuB,CAQxF,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ```js
|
|
3
|
-
* import { PostRepository } from '@amityco/ts-sdk'
|
|
4
|
-
* const created = await PostRepository.createRoomPost({
|
|
5
|
-
* targetType: 'user',
|
|
6
|
-
* targetId: 'foobar',
|
|
7
|
-
* data: { text: 'hello world', title: 'Room Title', roomId: 'roomId123' }
|
|
8
|
-
* }))
|
|
9
|
-
* ```
|
|
10
|
-
*
|
|
11
|
-
* Creates an {@link Amity.Post}
|
|
12
|
-
*
|
|
13
|
-
* @param bundle The data necessary to create a new {@link Amity.Post}
|
|
14
|
-
* @returns The newly created {@link Amity.Post}
|
|
15
|
-
*
|
|
16
|
-
* @category Post API
|
|
17
|
-
* @async
|
|
18
|
-
*/
|
|
19
|
-
export declare const createRoomPost: <T extends string>(bundle: Pick<Amity.Post<T>, "targetId" | "targetType"> & Partial<Pick<Amity.Post<T>, "tags" | "metadata" | "mentionees" | "hashtags">> & {
|
|
20
|
-
data: {
|
|
21
|
-
roomId: string;
|
|
22
|
-
} & {
|
|
23
|
-
[k: string]: any;
|
|
24
|
-
};
|
|
25
|
-
links?: Amity.Link[] | undefined;
|
|
26
|
-
productTags?: Amity.ProductTag[] | null | undefined;
|
|
27
|
-
pinnedProductId?: string | undefined;
|
|
28
|
-
}) => Promise<Amity.Cached<Amity.Post>>;
|
|
29
|
-
//# sourceMappingURL=createRoomPost.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createRoomPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createRoomPost.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,cAAc;;gBAGL,MAAM;;;;;;;MAKzB,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAuBlC,CAAC"}
|
|
@@ -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":"AAOA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,UAAU,cACV,MAAM,OAAO,CAAC,WAAW,CAAC,YAC3B,MAAM,kBAAkB,CAAC,MAAM,OAAO,CAAC,KAChD,MAAM,YASR,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;AAI1F,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;CAqB1E"}
|
|
@@ -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"}
|