customer v1.0.1
This commit is contained in:
parent
937ac87c9d
commit
1d8bf1ce86
@ -30,7 +30,7 @@ export type Account = {
|
|||||||
wallet: Wallet;
|
wallet: Wallet;
|
||||||
};
|
};
|
||||||
|
|
||||||
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0`;
|
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.1`;
|
||||||
|
|
||||||
export const getAccountInfo = async (id: string): Promise<[Account | null, string?]> => {
|
export const getAccountInfo = async (id: string): Promise<[Account | null, string?]> => {
|
||||||
try {
|
try {
|
||||||
|
@ -23,7 +23,7 @@ type HistoryResponse = {
|
|||||||
totalPages: number;
|
totalPages: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0`;
|
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.1`;
|
||||||
|
|
||||||
const getUserHistory = async (accountId: string, page: number): Promise<[HistoryResponse | null, string?]> => {
|
const getUserHistory = async (accountId: string, page: number): Promise<[HistoryResponse | null, string?]> => {
|
||||||
try {
|
try {
|
||||||
|
@ -40,7 +40,7 @@ export const getStatisticSchild = async (from: number, to: number): Promise<[Qui
|
|||||||
try {
|
try {
|
||||||
const statisticResponse = await makeRequest<GetStatisticSchildBody, QuizStatisticsItem[]>({
|
const statisticResponse = await makeRequest<GetStatisticSchildBody, QuizStatisticsItem[]>({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
url: `${API_URL}/customer/v1.0.0/quizlogo/stat`,
|
url: `${API_URL}/customer/v1.0.1/quizlogo/stat`,
|
||||||
body: { to, from, page: 0, limit: 100 },
|
body: { to, from, page: 0, limit: 100 },
|
||||||
useToken: true,
|
useToken: true,
|
||||||
});
|
});
|
||||||
@ -74,7 +74,7 @@ export const getStatisticsPromocode = async (
|
|||||||
try {
|
try {
|
||||||
const statisticsPromocode = await makeRequest<GetPromocodeStatisticsBody, Record<string, AllPromocodeStatistics>>({
|
const statisticsPromocode = await makeRequest<GetPromocodeStatisticsBody, Record<string, AllPromocodeStatistics>>({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
url: `${API_URL}/customer/v1.0.0/promocode/ltv`,
|
url: `${API_URL}/customer/v1.0.1/promocode/ltv`,
|
||||||
body: { to, from },
|
body: { to, from },
|
||||||
useToken: true,
|
useToken: true,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user