@amityco/ts-sdk 7.9.2-0d94d4d3.0 → 7.9.2-132846e8.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/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/createAudioPost.d.ts +5 -5
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/createAudioPost.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/createAudioPost.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/tsconfig.tsbuildinfo +1 -1
- package/dist/postRepository/api/createAudioPost.d.ts +5 -5
- package/dist/postRepository/api/createAudioPost.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/postRepository/api/createAudioPost.ts +4 -4
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
* @category Post API
|
|
18
18
|
* @async
|
|
19
19
|
*/
|
|
20
|
-
export declare const createAudioPost: (bundle: Pick<Amity.Post
|
|
20
|
+
export declare const createAudioPost: <T extends string = "audio">(bundle: Pick<Amity.Post<T>, "targetId" | "targetType"> & Partial<Pick<Amity.Post<T>, "tags" | "metadata" | "mentionees" | "hashtags">> & {
|
|
21
21
|
data?: {
|
|
22
|
-
text?: string;
|
|
23
|
-
title?: string;
|
|
24
|
-
};
|
|
22
|
+
text?: string | undefined;
|
|
23
|
+
title?: string | undefined;
|
|
24
|
+
} | undefined;
|
|
25
25
|
attachments: {
|
|
26
|
-
type:
|
|
26
|
+
type: T;
|
|
27
27
|
fileId: Amity.File['fileId'];
|
|
28
28
|
}[];
|
|
29
29
|
}) => Promise<Amity.Cached<Amity.Post>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAudioPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createAudioPost.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"createAudioPost.d.ts","sourceRoot":"","sources":["../../../src/postRepository/api/createAudioPost.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,eAAe;;;;;;;gBASZ,UAAU,CAAC,QAAQ,CAAC;;MAGjC,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAkBlC,CAAC"}
|
package/package.json
CHANGED
|
@@ -26,15 +26,15 @@ import { preparePostPayload } from '../utils/payload';
|
|
|
26
26
|
* @category Post API
|
|
27
27
|
* @async
|
|
28
28
|
*/
|
|
29
|
-
export const createAudioPost = async (
|
|
30
|
-
bundle: Pick<Amity.Post
|
|
31
|
-
Partial<Pick<Amity.Post
|
|
29
|
+
export const createAudioPost = async <T extends Amity.PostContentType = 'audio'>(
|
|
30
|
+
bundle: Pick<Amity.Post<T>, 'targetType' | 'targetId'> &
|
|
31
|
+
Partial<Pick<Amity.Post<T>, 'metadata' | 'mentionees' | 'tags' | 'hashtags'>> & {
|
|
32
32
|
data?: {
|
|
33
33
|
text?: string;
|
|
34
34
|
title?: string;
|
|
35
35
|
};
|
|
36
36
|
attachments: {
|
|
37
|
-
type:
|
|
37
|
+
type: T;
|
|
38
38
|
fileId: Amity.File['fileId'];
|
|
39
39
|
}[];
|
|
40
40
|
},
|