@amityco/ts-sdk 7.32.1-d7637d9.0 → 7.32.1-e3468d0b.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 (40) hide show
  1. package/dist/@types/domains/content.d.ts +8 -2
  2. package/dist/@types/domains/content.d.ts.map +1 -1
  3. package/dist/@types/domains/feed.d.ts +4 -1
  4. package/dist/@types/domains/feed.d.ts.map +1 -1
  5. package/dist/@types/domains/post.d.ts +11 -0
  6. package/dist/@types/domains/post.d.ts.map +1 -1
  7. package/dist/cache/api/dropFromCache.d.ts.map +1 -1
  8. package/dist/cache/api/pushToCache.d.ts.map +1 -1
  9. package/dist/cache/api/queryCache.d.ts.map +1 -1
  10. package/dist/cache/api/queryCacheByProperty.d.ts +3 -0
  11. package/dist/cache/api/queryCacheByProperty.d.ts.map +1 -0
  12. package/dist/cache/api/tests/queryCache.test.d.ts +2 -0
  13. package/dist/cache/api/tests/queryCache.test.d.ts.map +1 -0
  14. package/dist/cache/utils/cacheIndex.d.ts +15 -0
  15. package/dist/cache/utils/cacheIndex.d.ts.map +1 -0
  16. package/dist/index.cjs.js +162 -54
  17. package/dist/index.esm.js +162 -54
  18. package/dist/index.umd.js +2 -2
  19. package/dist/messagePreview/utils/getSubChannelMessagePreviewWithUser.d.ts +1 -1
  20. package/dist/messageRepository/utils/getMessageFromMainDB.d.ts.map +1 -1
  21. package/dist/messageRepository/utils/prepareMessagePayload.d.ts.map +1 -1
  22. package/dist/postRepository/api/createMixedMediaPost.d.ts +6 -6
  23. package/dist/postRepository/api/createMixedMediaPost.d.ts.map +1 -1
  24. package/dist/postRepository/api/createPost.d.ts +1 -4
  25. package/dist/postRepository/api/createPost.d.ts.map +1 -1
  26. package/dist/postRepository/api/editPost.d.ts +4 -5
  27. package/dist/postRepository/api/editPost.d.ts.map +1 -1
  28. package/dist/postRepository/api/tests/gifPost.test.d.ts +2 -0
  29. package/dist/postRepository/api/tests/gifPost.test.d.ts.map +1 -0
  30. package/dist/postRepository/observers/getPosts.d.ts +4 -0
  31. package/dist/postRepository/observers/getPosts.d.ts.map +1 -1
  32. package/dist/postRepository/utils/attachments.d.ts +8 -0
  33. package/dist/postRepository/utils/attachments.d.ts.map +1 -0
  34. package/dist/utils/linkedObject/channelLinkedObject.d.ts.map +1 -1
  35. package/dist/utils/linkedObject/tests/channelCachePerformance.test.d.ts +2 -0
  36. package/dist/utils/linkedObject/tests/channelCachePerformance.test.d.ts.map +1 -0
  37. package/dist/utils/postTypePredicate.d.ts +1 -0
  38. package/dist/utils/postTypePredicate.d.ts.map +1 -1
  39. package/dist/utils/tests/dummy/comment.d.ts +1 -1
  40. package/package.json +1 -1
@@ -3,7 +3,7 @@ export declare const getSubChannelMessagePreviewWithUser: (subChannel: Amity.Sub
3
3
  user: Amity.User | undefined;
4
4
  messagePreviewId: string;
5
5
  subChannelName: string;
6
- data?: string | Record<string, unknown> | Amity.ContentDataText | Amity.ContentDataFile | Amity.ContentDataImage | Amity.ContentDataVideo | Amity.ContentDataAudio | Amity.ContentDataPoll | Amity.ContentDataStream | Amity.ContentDataClip | Amity.ContentDataRoom | Amity.ContentDataEvent | undefined;
6
+ data?: string | Record<string, unknown> | Amity.ContentDataText | Amity.ContentDataFile | Amity.ContentDataImage | Amity.ContentDataVideo | Amity.ContentDataAudio | Amity.ContentDataPoll | Amity.ContentDataStream | Amity.ContentDataClip | Amity.ContentDataRoom | Amity.ContentDataEvent | Amity.ContentDataGif | undefined;
7
7
  dataType?: any;
8
8
  channelId: string;
9
9
  subChannelId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"getMessageFromMainDB.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/utils/getMessageFromMainDB.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,cAAe,MAAM,KAAG,MAAM,eAAe,GAAG,SAMhF,CAAC"}
1
+ {"version":3,"file":"getMessageFromMainDB.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/utils/getMessageFromMainDB.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,cAAe,MAAM,KAAG,MAAM,eAAe,GAAG,SAShF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"prepareMessagePayload.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/utils/prepareMessagePayload.ts"],"names":[],"mappings":"AA4BA,wBAAgB,cAAc,CAC5B,OAAO,EAAE,KAAK,CAAC,UAAU,EACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,eAAe,EAAE,EAClC,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC,iBAAiB,GACpC,KAAK,CAAC,eAAe,CAqEvB;AAWD,eAAO,MAAM,qBAAqB,YACvB,MAAM,cAAc,UACrB,MAAM,MAAM,iBAAiB,KACpC,QAAQ,MAAM,uBAAuB,CAyCvC,CAAC;AAEF,aAAK,gBAAgB,GAAG,IAAI,CAC1B,KAAK,CAAC,aAAa,EAIjB,MAAM,GACN,QAAQ,GACR,cAAc,GACd,MAAM,GACN,gBAAgB,GAChB,iBAAiB,GACjB,UAAU,GACV,eAAe,GACf,eAAe,CAClB,GAAG;IACF,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IACnD,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IACnD,SAAS,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACvC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC;IACpC,OAAO,EAAE;QACP,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACvC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;KACrC,CAAC;CACH,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC5B,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAc9C;AAED,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,KAAK,EACL,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,KAAK,CAAC,sBAAsB,GAAG,gBAAgB,CAyBjD"}
1
+ {"version":3,"file":"prepareMessagePayload.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/utils/prepareMessagePayload.ts"],"names":[],"mappings":"AAgCA,wBAAgB,cAAc,CAC5B,OAAO,EAAE,KAAK,CAAC,UAAU,EACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,eAAe,EAAE,EAClC,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC,iBAAiB,GACpC,KAAK,CAAC,eAAe,CAqEvB;AAWD,eAAO,MAAM,qBAAqB,YACvB,MAAM,cAAc,UACrB,MAAM,MAAM,iBAAiB,KACpC,QAAQ,MAAM,uBAAuB,CAyCvC,CAAC;AAEF,aAAK,gBAAgB,GAAG,IAAI,CAC1B,KAAK,CAAC,aAAa,EAIjB,MAAM,GACN,QAAQ,GACR,cAAc,GACd,MAAM,GACN,gBAAgB,GAChB,iBAAiB,GACjB,UAAU,GACV,eAAe,GACf,eAAe,CAClB,GAAG;IACF,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IACnD,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IACnD,SAAS,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACvC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC;IACpC,OAAO,EAAE;QACP,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACvC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;KACrC,CAAC;CACH,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC5B,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAc9C;AAED,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,KAAK,EACL,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,KAAK,CAAC,sBAAsB,GAAG,gBAAgB,CAyBjD"}
@@ -10,11 +10,14 @@ import { AmityAttachmentProductTags } from '~/productRepository/helpers';
10
10
  * { fileId: "file1", type: "image" },
11
11
  * { fileId: "file2", type: "video" },
12
12
  * { fileId: "file3", type: "audio" },
13
- * { fileId: "file4", type: "file" }
13
+ * { fileId: "file4", type: "file" },
14
+ * { type: "gif", url: "https://media.giphy.com/media/l0MYt5jPR6QX5pnqM/giphy.gif", width: 480, height: 270 }
14
15
  * ],
15
16
  * })
16
17
  * ```
17
18
  *
19
+ * A post holds 1 to 10 attachments. A GIF is a link, not a file, and takes no product tags.
20
+ *
18
21
  * Creates an {@link Amity.Post}
19
22
  *
20
23
  * @param bundle The data necessary to create a new {@link Amity.Post}
@@ -28,10 +31,7 @@ export declare const createMixedMediaPost: (bundle: Pick<Amity.Post, 'targetType
28
31
  text?: string;
29
32
  title?: string;
30
33
  };
31
- attachments: {
32
- type: Amity.MixedMediaPostContentType;
33
- fileId: Amity.File['fileId'];
34
- }[];
35
- attachmentProductTags: AmityAttachmentProductTags;
34
+ attachments: Amity.PostAttachment[];
35
+ attachmentProductTags?: AmityAttachmentProductTags;
36
36
  }) => Promise<Amity.Cached<Amity.Post>>;
37
37
  //# sourceMappingURL=createMixedMediaPost.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createMixedMediaPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createMixedMediaPost.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAKzE;;;;;;;;;;;;;;;;;;;;;;;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;IACvF,qBAAqB,EAAE,0BAA0B,CAAC;CACnD,KACF,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAuClC,CAAC"}
1
+ {"version":3,"file":"createMixedMediaPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createMixedMediaPost.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAMzE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;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,MAAM,cAAc,EAAE,CAAC;IACpC,qBAAqB,CAAC,EAAE,0BAA0B,CAAC;CACpD,KACF,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CA0BlC,CAAC"}
@@ -22,10 +22,7 @@ export declare const createPost: <T extends string>(bundle: Pick<Amity.Post<T>,
22
22
  data?: {
23
23
  [k: string]: any;
24
24
  } | undefined;
25
- attachments?: {
26
- type: T;
27
- fileId: Amity.File['fileId'];
28
- }[] | undefined;
25
+ attachments?: Amity.PostAttachment<T>[] | undefined;
29
26
  links?: Amity.Link[] | undefined;
30
27
  productTags?: Amity.TextProductTag[] | undefined;
31
28
  attachmentProductTags?: AmityAttachmentProductTags | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"createPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createPost.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAKzE;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU;;;;;;;gBAKgB,UAAU,CAAC,QAAQ,CAAC;;;;;MAKxD,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CA6ClC,CAAC"}
1
+ {"version":3,"file":"createPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createPost.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAMzE;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU;;;;;;;;;MAUpB,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAgClC,CAAC"}
@@ -7,7 +7,9 @@ import { AmityAttachmentProductTags } from '~/productRepository/helpers';
7
7
  * })
8
8
  * ```
9
9
  *
10
- * Updates an {@link Amity.Post}
10
+ * Updates an {@link Amity.Post}. `attachments` is the full list to keep: a GIF is matched by its
11
+ * `url`, so send each kept GIF back with its link and size as read from `childrenPosts`; an
12
+ * attachment left out is deleted, `[]` removes them all, and leaving `attachments` out keeps them.
11
13
  *
12
14
  * @param postId The ID of the {@link Amity.Post} to edit
13
15
  * @param patch The patch data to apply
@@ -17,10 +19,7 @@ import { AmityAttachmentProductTags } from '~/productRepository/helpers';
17
19
  * @async
18
20
  */
19
21
  export declare const editPost: <T extends string>(postId: Amity.Post['postId'], patch: Partial<Pick<Amity.Post<any>, "tags" | "metadata" | "data" | "mentionees" | "hashtags">> & {
20
- attachments?: {
21
- type: T;
22
- fileId: Amity.File['fileId'];
23
- }[] | undefined;
22
+ attachments?: Amity.PostAttachment<T>[] | undefined;
24
23
  links?: Amity.Link[] | undefined;
25
24
  productTags?: Amity.TextProductTag[] | undefined;
26
25
  attachmentProductTags?: AmityAttachmentProductTags | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"editPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/editPost.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAKzE;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,QAAQ,6BACX,MAAM,IAAI,CAAC,QAAQ,CAAC;;;gBAEO,UAAU,CAAC,QAAQ,CAAC;;;;;MAKtD,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CA0ClC,CAAC"}
1
+ {"version":3,"file":"editPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/editPost.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAMzE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,6BACX,MAAM,IAAI,CAAC,QAAQ,CAAC;;;;;MAO3B,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CA6BlC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=gifPost.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gifPost.test.d.ts","sourceRoot":"","sources":["../../../../src/postRepository/api/tests/gifPost.test.ts"],"names":[],"mappings":""}
@@ -11,6 +11,10 @@
11
11
  *
12
12
  * Observe all mutations on a list of {@link Amity.Post} for a given target object
13
13
  *
14
+ * GIF posts come back on every API version. This query is on v5, so `dataTypes: ['gif']` filters
15
+ * them; a post with GIFs beside other media is `mixed` and is hidden unless
16
+ * `includeMixedStructure` is `true`.
17
+ *
14
18
  * @param params.targetType the type of the target
15
19
  * @param params.targetId the ID of the target
16
20
  * @param callback the function to call when new data are available
@@ -1 +1 @@
1
- {"version":3,"file":"getPosts.d.ts","sourceRoot":"","sources":["../../../src/postRepository/observers/getPosts.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,QAAQ,WACX,MAAM,kBAAkB,YACtB,MAAM,sBAAsB,CAAC,MAAM,IAAI,CAAC,WACzC,MAAM,oBAAoB,KAClC,MAAM,YAqBR,CAAC"}
1
+ {"version":3,"file":"getPosts.d.ts","sourceRoot":"","sources":["../../../src/postRepository/observers/getPosts.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,QAAQ,WACX,MAAM,kBAAkB,YACtB,MAAM,sBAAsB,CAAC,MAAM,IAAI,CAAC,WACzC,MAAM,oBAAoB,KAClC,MAAM,YAqBR,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { AmityAttachmentProductTags } from '~/productRepository/helpers';
2
+ declare type WritableAttachment = {
3
+ type: string;
4
+ fileId?: Amity.File['fileId'];
5
+ };
6
+ export declare const preparePostAttachments: <A extends WritableAttachment>(attachments: A[] | undefined, attachmentProductTags?: AmityAttachmentProductTags) => A[] | undefined;
7
+ export {};
8
+ //# sourceMappingURL=attachments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachments.d.ts","sourceRoot":"","sources":["../../../src/postRepository/utils/attachments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAGzE,aAAK,kBAAkB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;CAAE,CAAC;AAM1E,eAAO,MAAM,sBAAsB,uFAET,0BAA0B,oBAQhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"channelLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/channelLinkedObject.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB,YAAa,MAAM,eAAe,KAAG,MAAM,OAkC1E,CAAC"}
1
+ {"version":3,"file":"channelLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/channelLinkedObject.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mBAAmB,YAAa,MAAM,eAAe,KAAG,MAAM,OAkC1E,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=channelCachePerformance.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channelCachePerformance.test.d.ts","sourceRoot":"","sources":["../../../../src/utils/linkedObject/tests/channelCachePerformance.test.ts"],"names":[],"mappings":""}
@@ -7,4 +7,5 @@ export declare function isAmityClipPost(post: Amity.InternalPost): post is Amity
7
7
  export declare function isAmityAudioPost(post: Amity.InternalPost): post is Amity.Post<'audio'>;
8
8
  export declare function isAmityRoomPost(post: Amity.InternalPost): post is Amity.Post<'room'>;
9
9
  export declare function isAmityEventPost(post: Amity.InternalPost): post is Amity.Post<'event'>;
10
+ export declare function isAmityGifPost(post: Amity.InternalPost): post is Amity.Post<'gif'>;
10
11
  //# sourceMappingURL=postTypePredicate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postTypePredicate.d.ts","sourceRoot":"","sources":["../../src/utils/postTypePredicate.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAOtF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAOpF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAQtF;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAOhG;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAOpF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAOpF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAOtF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAOpF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAEtF"}
1
+ {"version":3,"file":"postTypePredicate.d.ts","sourceRoot":"","sources":["../../src/utils/postTypePredicate.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAOtF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAOpF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAQtF;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAOhG;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAOpF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAOpF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAOtF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAOpF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAEtF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAOlF"}
@@ -25,7 +25,7 @@ export declare const generateComment: (params?: Partial<Amity.InternalComment>)
25
25
  referenceType: Amity.CommentReferenceType;
26
26
  dataType?: any;
27
27
  dataTypes?: any[] | undefined;
28
- data?: string | Record<string, unknown> | Amity.ContentDataText | Amity.ContentDataFile | Amity.ContentDataImage | Amity.ContentDataVideo | Amity.ContentDataAudio | Amity.ContentDataPoll | Amity.ContentDataStream | Amity.ContentDataClip | Amity.ContentDataRoom | Amity.ContentDataEvent | undefined;
28
+ data?: string | Record<string, unknown> | Amity.ContentDataText | Amity.ContentDataFile | Amity.ContentDataImage | Amity.ContentDataVideo | Amity.ContentDataAudio | Amity.ContentDataPoll | Amity.ContentDataStream | Amity.ContentDataClip | Amity.ContentDataRoom | Amity.ContentDataEvent | Amity.ContentDataGif | undefined;
29
29
  metadata?: Record<string, any> | undefined;
30
30
  flagCount: number;
31
31
  hashFlag: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk",
3
- "version": "7.32.1-d7637d9.0",
3
+ "version": "7.32.1-e3468d0b.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",