@chopkola/common 1.0.91 → 1.0.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,3 +2,6 @@ import { VendorI } from "../../user";
2
2
  export interface ToggleBusinessOpenedState {
3
3
  business: VendorI;
4
4
  }
5
+ export interface GetBusinessOpenedState {
6
+ business: VendorI;
7
+ }
@@ -0,0 +1,33 @@
1
+ import { LucideIcon } from "lucide-react";
2
+ export declare enum ActiveBusinessSummaryStatisticsIconEnum {
3
+ }
4
+ export declare type BackendActiveBusinessSummaryStat = {
5
+ title: string;
6
+ value: string | number;
7
+ subtext?: string;
8
+ icon: ActiveBusinessSummaryStatisticsIconEnum;
9
+ bg_color?: string;
10
+ text_color?: string;
11
+ };
12
+ export declare type ActiveBusinessSummaryStat = {
13
+ title: string;
14
+ value: string | number;
15
+ subtext?: string;
16
+ icon: LucideIcon;
17
+ bg_color: string;
18
+ text_color: string;
19
+ };
20
+ export declare type ActiveBusinessStats = {
21
+ todays_revenue: BackendActiveBusinessSummaryStat;
22
+ total_orders: BackendActiveBusinessSummaryStat;
23
+ average_rating: BackendActiveBusinessSummaryStat;
24
+ cancelled: BackendActiveBusinessSummaryStat;
25
+ };
26
+ export declare type ActiveBusinessSummaryStatisticsResourceData = {
27
+ orders: any[];
28
+ delivery_status: any[];
29
+ stats: ActiveBusinessStats;
30
+ };
31
+ export interface GetActiveBusinessSummaryStatisticsResourceDataI {
32
+ data: ActiveBusinessSummaryStatisticsResourceData;
33
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActiveBusinessSummaryStatisticsIconEnum = void 0;
4
+ var ActiveBusinessSummaryStatisticsIconEnum;
5
+ (function (ActiveBusinessSummaryStatisticsIconEnum) {
6
+ })(ActiveBusinessSummaryStatisticsIconEnum = exports.ActiveBusinessSummaryStatisticsIconEnum || (exports.ActiveBusinessSummaryStatisticsIconEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chopkola/common",
3
- "version": "1.0.91",
3
+ "version": "1.0.93",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "akrosoft technology ltd",