feat(consumers): implement consumer and POS stores with breadcrumb management
- Added ConsumerStore and PosStore to manage state and data fetching for consumers and POS entities. - Implemented breadcrumb functionality in both stores to enhance navigation. - Created views for consumer accounts, business activities, complexes, and poses with respective components. - Developed single view components for detailed display and editing of consumer and POS data. - Introduced charge account management components in the super admin module, including forms and lists for charge transactions. - Established API routes and services for handling charge account transactions.
This commit is contained in:
+13
-5
@@ -1,11 +1,19 @@
|
||||
import ISummary from '@/core/models/summary';
|
||||
|
||||
export interface IPartnerActivatedLicenseRawResponse {
|
||||
id: string;
|
||||
starts_at: string;
|
||||
expires_at: string;
|
||||
consumer: {
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
mobile_number: string;
|
||||
};
|
||||
business_activity: BusinessActivity;
|
||||
}
|
||||
export interface IPartnerActivatedLicenseResponse extends IPartnerActivatedLicenseRawResponse {}
|
||||
|
||||
interface BusinessActivity extends ISummary {
|
||||
consumer: Consumer;
|
||||
}
|
||||
|
||||
interface Consumer {
|
||||
id: string;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
export interface IPartnerChargeAccountRawResponse {
|
||||
id: string;
|
||||
created_at: string;
|
||||
tracking_code: string;
|
||||
activation_expires_at: string;
|
||||
charged_license_count: number;
|
||||
activated_license_count: number;
|
||||
remained_license_count: number;
|
||||
}
|
||||
|
||||
export interface IPartnerChargeAccountResponse extends IPartnerChargeAccountRawResponse {}
|
||||
|
||||
export interface IPartnerChargeAccountRequest {
|
||||
quantity: number;
|
||||
activated_expires_at: string;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
export * from './accounts_io';
|
||||
export * from './activatedLicenses_io';
|
||||
export * from './chargeAccount_io';
|
||||
export * from './chargeLicenseTransactions_io';
|
||||
export * from './io';
|
||||
|
||||
@@ -9,6 +9,11 @@ export interface IPartnerRawResponse {
|
||||
used: number;
|
||||
expired: number;
|
||||
};
|
||||
account_quota_status: {
|
||||
total: number;
|
||||
used: number;
|
||||
expired: number;
|
||||
};
|
||||
}
|
||||
export interface IPartnerResponse extends IPartnerRawResponse {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user