1.7
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import api from './client'
|
||||
|
||||
export const climatesApi = {
|
||||
get: (conversationId: string) => api.get(`/climates/${conversationId}`),
|
||||
|
||||
getCalendar: (conversationId: string) => api.get(`/climates/${conversationId}/calendar`),
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import api from './client'
|
||||
|
||||
export const echoesApi = {
|
||||
send: (toUserId: string, message?: string) =>
|
||||
api.post('/echoes/', { to_user_id: toUserId, message }),
|
||||
|
||||
getAll: () => api.get('/echoes/'),
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import api from './client'
|
||||
|
||||
export const flashApi = {
|
||||
getActive: () => api.get('/flash/active'),
|
||||
|
||||
click: (eventId: string) => api.post(`/flash/${eventId}/click`),
|
||||
|
||||
claim: (eventId: string) => api.post(`/flash/${eventId}/claim`),
|
||||
|
||||
getAlbum: () => api.get('/flash/album'),
|
||||
}
|
||||
@@ -7,4 +7,6 @@ export const leavesApi = {
|
||||
api.put(`/leaves/${leafId}`, data),
|
||||
|
||||
getCollection: () => api.get('/leaves/collection'),
|
||||
|
||||
getGrove: () => api.get('/leaves/grove'),
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import api from './client'
|
||||
|
||||
export const syncApi = {
|
||||
getQuestion: () => api.get('/sync/question'),
|
||||
|
||||
submitAnswer: (questionId: string, friendId: string, answer: string) =>
|
||||
api.post('/sync/answer', { question_id: questionId, friend_id: friendId, answer }),
|
||||
|
||||
getSeed: (seedId: string) => api.get(`/sync/${seedId}`),
|
||||
}
|
||||
@@ -6,4 +6,6 @@ export const treesApi = {
|
||||
getTree: (friendId: string) => api.get(`/trees/${friendId}`),
|
||||
|
||||
water: (friendId: string) => api.post(`/trees/${friendId}/water`),
|
||||
|
||||
heartbeat: (friendId: string) => api.get(`/trees/${friendId}/heartbeat`),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user