Implement tender workflows and dashboard integration
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/push Build encountered an error
This commit is contained in:
@@ -14,7 +14,7 @@ class HomeApi {
|
||||
}
|
||||
|
||||
static const String tenderApprovalStats = '/api/v1/tender-approvals/stats';
|
||||
static const String statsCompany = '/api/v1/feedback/stats/company';
|
||||
static const String statsCustomer = '/api/v1/feedback/stats/customer';
|
||||
static const String checkUnreadNotifications =
|
||||
'/api/v1/notifications?seen=false&limit=1&event_type=PUSH';
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ class LikedTendersApi {
|
||||
required String dateTo,
|
||||
}) {
|
||||
if (dateFrom.isNotEmpty && dateTo.isNotEmpty) {
|
||||
return '$tendersFeedback?feedback_type=$feedbackType&limit=$limit&offset=$offset&date_from=$dateFrom&date_to=$dateTo';
|
||||
return '$tendersFeedback?feedback_type=$feedbackType&limit=$limit&offset=$offset&include_total=true&date_from=$dateFrom&date_to=$dateTo';
|
||||
}
|
||||
return '$tendersFeedback?feedback_type=$feedbackType&limit=$limit&offset=$offset';
|
||||
return '$tendersFeedback?feedback_type=$feedbackType&limit=$limit&offset=$offset&include_total=true';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
class TenderSubmissionsApi {
|
||||
static const String base = '/api/v1/tender-submissions';
|
||||
|
||||
static const String list = base;
|
||||
static const String stats = '$base/stats';
|
||||
static String byId(String id) => '$base/$id';
|
||||
static String byTender(String tenderId) => '$base/tender/$tenderId';
|
||||
static String ensure(String tenderId) => '$base/tender/$tenderId/ensure';
|
||||
static String status(String id) => '$base/$id/status';
|
||||
}
|
||||
Reference in New Issue
Block a user