@amityco/ts-sdk-react-native 6.22.1-3033cb6.0 → 6.22.1-431d613.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/package.json +1 -1
- package/src/fileRepository/api/createFile.ts +1 -1
- package/src/fileRepository/api/createImage.ts +1 -1
- package/src/fileRepository/api/createVideo.ts +1 -1
- package/src/fileRepository/api/uploadFile.ts +1 -1
- package/src/fileRepository/api/uploadImage.ts +1 -1
- package/src/fileRepository/api/uploadVideo.ts +1 -1
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ export const createFile = async <T extends Amity.FileType = any>(
|
|
|
30
30
|
const headers =
|
|
31
31
|
'getHeaders' in formData
|
|
32
32
|
? (formData as any).getHeaders()
|
|
33
|
-
: { '
|
|
33
|
+
: { 'content-type': 'multipart/form-data' };
|
|
34
34
|
|
|
35
35
|
const { data } = await client.http.post<Amity.CreateFilePayload<T>>('/api/v4/files', formData, {
|
|
36
36
|
headers,
|
|
@@ -28,7 +28,7 @@ export const createImage = async (
|
|
|
28
28
|
const headers =
|
|
29
29
|
'getHeaders' in formData
|
|
30
30
|
? (formData as any).getHeaders()
|
|
31
|
-
: { '
|
|
31
|
+
: { 'content-type': 'multipart/form-data' };
|
|
32
32
|
const { data } = await client.http.post<Amity.CreateFilePayload<'image'>>(
|
|
33
33
|
'/api/v4/images',
|
|
34
34
|
formData,
|
|
@@ -36,7 +36,7 @@ export const createVideo = async (
|
|
|
36
36
|
const headers =
|
|
37
37
|
'getHeaders' in formData
|
|
38
38
|
? (formData as any).getHeaders()
|
|
39
|
-
: { '
|
|
39
|
+
: { 'content-type': 'multipart/form-data' };
|
|
40
40
|
|
|
41
41
|
const { data } = await client.http.post<Amity.CreateFilePayload<'video'>>(
|
|
42
42
|
'/api/v4/videos',
|
|
@@ -34,7 +34,7 @@ export const uploadFile = async <T extends Amity.FileType = any>(
|
|
|
34
34
|
const headers =
|
|
35
35
|
'getHeaders' in formData
|
|
36
36
|
? (formData as any).getHeaders()
|
|
37
|
-
: { '
|
|
37
|
+
: { 'content-type': 'multipart/form-data' };
|
|
38
38
|
|
|
39
39
|
const { data } = await client.http.post<Amity.CreateFilePayload<T>>(
|
|
40
40
|
'/api/v4/files',
|
|
@@ -34,7 +34,7 @@ export const uploadImage = async (
|
|
|
34
34
|
const headers =
|
|
35
35
|
'getHeaders' in formData
|
|
36
36
|
? (formData as any).getHeaders()
|
|
37
|
-
: { '
|
|
37
|
+
: { 'content-type': 'multipart/form-data' };
|
|
38
38
|
|
|
39
39
|
const { data } = await client.http.post<Amity.CreateFilePayload<'image'>>(
|
|
40
40
|
'/api/v4/images',
|
|
@@ -40,7 +40,7 @@ export const uploadVideo = async (
|
|
|
40
40
|
const headers =
|
|
41
41
|
'getHeaders' in formData
|
|
42
42
|
? (formData as any).getHeaders()
|
|
43
|
-
: { '
|
|
43
|
+
: { 'content-type': 'multipart/form-data' };
|
|
44
44
|
|
|
45
45
|
const { data } = await client.http.post<Amity.CreateFilePayload<'video'>>(
|
|
46
46
|
'/api/v4/videos',
|