|
@@ -598,7 +598,7 @@ export async function shopRenterApiRequest(
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Fetch products from ShopRenter
|
|
// Fetch products from ShopRenter
|
|
|
-export async function fetchProducts(storeId: string, page: number = 1, limit: number = 25): Promise<any> {
|
|
|
|
|
|
|
+export async function fetchProducts(storeId: string, page: number = 0, limit: number = 25): Promise<any> {
|
|
|
return shopRenterApiRequest(
|
|
return shopRenterApiRequest(
|
|
|
storeId,
|
|
storeId,
|
|
|
`/productExtend?page=${page}&limit=${limit}&full=1`,
|
|
`/productExtend?page=${page}&limit=${limit}&full=1`,
|
|
@@ -625,7 +625,7 @@ export interface ShopRenterCustomerFilters {
|
|
|
// Fetch customers from ShopRenter
|
|
// Fetch customers from ShopRenter
|
|
|
export async function fetchCustomers(
|
|
export async function fetchCustomers(
|
|
|
storeId: string,
|
|
storeId: string,
|
|
|
- page: number = 1,
|
|
|
|
|
|
|
+ page: number = 0,
|
|
|
limit: number = 25,
|
|
limit: number = 25,
|
|
|
filters?: ShopRenterCustomerFilters
|
|
filters?: ShopRenterCustomerFilters
|
|
|
): Promise<any> {
|
|
): Promise<any> {
|
|
@@ -646,7 +646,7 @@ export async function fetchCustomers(
|
|
|
// Fetch orders from ShopRenter
|
|
// Fetch orders from ShopRenter
|
|
|
export async function fetchOrders(
|
|
export async function fetchOrders(
|
|
|
storeId: string,
|
|
storeId: string,
|
|
|
- page: number = 1,
|
|
|
|
|
|
|
+ page: number = 0,
|
|
|
limit: number = 25,
|
|
limit: number = 25,
|
|
|
filters?: ShopRenterOrderFilters
|
|
filters?: ShopRenterOrderFilters
|
|
|
): Promise<any> {
|
|
): Promise<any> {
|