@deallony/shared 1.0.78 → 1.0.81

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.
@@ -1,4 +1,4 @@
1
- export type AccessTypeType = {
1
+ export type IAccessType = {
2
2
  id?: string;
3
3
  name: string;
4
4
  description: string;
@@ -1,5 +1,5 @@
1
1
  import { LocalizedNameType } from "./LocalizedNameType";
2
- export type CarBodyType = {
2
+ export type ICarBody = {
3
3
  id?: number;
4
4
  name: LocalizedNameType;
5
5
  };
@@ -1,4 +1,4 @@
1
- import { CategoryWorkTypeType } from "./CategoryWorkTypeType";
1
+ import { ICategoryWorkType } from "./CategoryWorkTypeType";
2
2
  import { IMedia } from "./MediaType";
3
3
  import { SubjectTableType } from "./SubjectType";
4
4
  export type CategoryType = {
@@ -8,7 +8,7 @@ export type CategoryType = {
8
8
  description?: string;
9
9
  display_order?: number;
10
10
  children?: CategoryType[];
11
- category_work_types?: Array<CategoryWorkTypeType>;
11
+ category_work_types?: Array<ICategoryWorkType>;
12
12
  isBranch: boolean;
13
13
  should_validate?: boolean;
14
14
  type?: SubjectTableType;
@@ -1,2 +1 @@
1
- ``;
2
1
  export {};
@@ -1,10 +1,10 @@
1
1
  import { CategoryType } from "./CategoryType";
2
- import { WorkTypeType } from "./WorkTypeType";
3
- export type CategoryWorkTypeType = {
2
+ import { IWorkType } from "./WorkTypeType";
3
+ export type ICategoryWorkType = {
4
4
  id?: number;
5
5
  category_id: number;
6
6
  work_type_id: number;
7
7
  is_price_require: boolean;
8
- workType?: WorkTypeType;
8
+ workType?: IWorkType;
9
9
  category?: CategoryType;
10
10
  };
@@ -8,3 +8,4 @@ export type CityType = {
8
8
  } | null;
9
9
  districts?: DistrictType[];
10
10
  };
11
+ export type ICity = CityType;
@@ -10,3 +10,4 @@ export type CurrencyType = {
10
10
  created_at?: Date;
11
11
  updated_at?: Date;
12
12
  };
13
+ export type ICurrency = CurrencyType;
@@ -1,12 +1,18 @@
1
- import { CityType } from "./CityType";
1
+ import { ICity } from "./CityType";
2
2
  export type DistrictType = {
3
3
  id?: number;
4
4
  name: string;
5
5
  should_validate: boolean;
6
6
  city_id: number;
7
- city?: CityType;
7
+ city?: ICity;
8
8
  zonePoints?: {
9
9
  lat: number;
10
10
  lng: number;
11
11
  }[];
12
+ adminBoundaryId?: number | null;
13
+ osmId?: number | null;
14
+ centerPoint?: {
15
+ lat: number;
16
+ lng: number;
17
+ } | null;
12
18
  };
@@ -1,5 +1,5 @@
1
1
  import { LocalizedNameType } from "./LocalizedNameType";
2
- export type FuelTypeType = {
2
+ export type IFuelType = {
3
3
  id?: number;
4
4
  name: LocalizedNameType;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { LocalizedNameType } from './LocalizedNameType';
2
- export type LicenseTypeType = {
2
+ export type ILicenseType = {
3
3
  id?: number;
4
4
  name: LocalizedNameType;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { LocalizedNameType } from './LocalizedNameType';
2
- export type OfferTypeType = {
2
+ export type IOfferType = {
3
3
  id?: number;
4
4
  name: LocalizedNameType;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { LocalizedNameType } from './LocalizedNameType';
2
- export type PriceTypeType = {
2
+ export type IPriceType = {
3
3
  id?: number;
4
4
  name: LocalizedNameType;
5
5
  display_order?: number;
@@ -1,5 +1,5 @@
1
1
  import { LocalizedNameType } from './LocalizedNameType';
2
- export type PropertyTypeType = {
2
+ export type IPropertyType = {
3
3
  id?: number;
4
4
  name: LocalizedNameType;
5
5
  category_id: number;
@@ -1,5 +1,5 @@
1
1
  import { LocalizedNameType } from './LocalizedNameType';
2
- export type PublisherTypeType = {
2
+ export type IPublisherType = {
3
3
  id?: number;
4
4
  name: LocalizedNameType;
5
5
  };
@@ -1,10 +1,10 @@
1
- import { ServiceLocationType } from "./ServicesLocationsType";
1
+ import { IServiceLocation } from "./ServicesLocationsType";
2
2
  export type ServiceType = {
3
3
  id?: number;
4
4
  unit_id: number | null;
5
5
  access_type_id: number | null;
6
6
  work_type_id: number | null;
7
- locations: ServiceLocationType[];
7
+ locations: IServiceLocation[];
8
8
  };
9
9
  export type IService = ServiceType;
10
10
  export declare const emptyService: ServiceType;
@@ -1,4 +1,4 @@
1
- export type ServiceLocationType = {
1
+ export type IServiceLocation = {
2
2
  id?: number;
3
3
  service_id?: number;
4
4
  district_id?: number;
@@ -0,0 +1,7 @@
1
+ import { SubjectTableType } from "./SubjectType";
2
+ export type UsedProductConditionType = {
3
+ id?: number;
4
+ name: string;
5
+ description?: string;
6
+ subject_type?: SubjectTableType;
7
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
- import { CategoryWorkTypeType } from "./CategoryWorkTypeType";
2
- export type WorkTypeType = {
1
+ import { ICategoryWorkType } from "./CategoryWorkTypeType";
2
+ export type IWorkType = {
3
3
  id?: number;
4
4
  name: string;
5
- categoryWorkTypes?: CategoryWorkTypeType[];
5
+ categoryWorkTypes?: ICategoryWorkType[];
6
6
  };
@@ -3,6 +3,7 @@ export * as AdLocation from './AdLocationType';
3
3
  export * as Motor from './MotorType';
4
4
  export * as Property from './PropertyType';
5
5
  export * as Service from './ServiceType';
6
+ export * as LegacyServiceLocation from './ServicesLocationsType';
6
7
  export * as Product from './UsedProductType';
7
8
  export * as SubjectTable from './SubjectType';
8
9
  export * as AdminBoundary from './AdminBoundaryType';
@@ -12,3 +13,44 @@ export * as Google from './GoogleType';
12
13
  export * as User from './UserType';
13
14
  export * as MessageTemplate from './MessageTemplateType';
14
15
  export * as Confog from './ConfigType';
16
+ export * as Config from './ConfigType';
17
+ export * as AccessType from './AccessTypeType';
18
+ export * as AdPromotion from './AdPromotionType';
19
+ export * as AppStartScreen from './AppStartScreenType';
20
+ export * as BaseService from './BaseService';
21
+ export * as CarBody from './CarBodyType';
22
+ export * as Category from './CategoryType';
23
+ export * as CategoryWorkType from './CategoryWorkTypeType';
24
+ export * as Chat from './ChatType';
25
+ export * as City from './CityType';
26
+ export * as Color from './ColorType';
27
+ export * as Currency from './CurrencyType';
28
+ export * as Device from './DeviceType';
29
+ export * as District from './DistrictType';
30
+ export * as Facility from './FacilityType';
31
+ export * as Feature from './FeatureType';
32
+ export * as FuelType from './FuelTypeType';
33
+ export * as Image from './ImageType';
34
+ export * as LicenseType from './LicenseTypeType';
35
+ export * as LocalizedName from './LocalizedNameType';
36
+ export * as MotorTrim from './MotorTrimType';
37
+ export * as NotificationToken from './NotificationTokenType';
38
+ export * as OfferType from './OfferTypeType';
39
+ export * as Permission from './PermissionType';
40
+ export * as PotentialUser from './PotentialUserType';
41
+ export * as PriceType from './PriceTypeType';
42
+ export * as PropertyStatus from './PropertyStatusType';
43
+ export * as PublisherType from './PublisherTypeType';
44
+ export * as RegionalSpec from './RegionalSpecType';
45
+ export * as Response from './ResponseType';
46
+ export * as Role from './RoleType';
47
+ export * as SocialMediaPlatform from './SocialMediaPlatformType';
48
+ export * as SocialMediaProfile from './SocialMediaProfileType';
49
+ export * as Status from './StatusType';
50
+ export * as Transmission from './TransmissionType';
51
+ export * as Unit from './UnitType';
52
+ export * as UsedProductAge from './UsedProductAge';
53
+ export * as UsedProductCondition from './UsedProductCondition';
54
+ export * as Wallet from './WalletType';
55
+ export * as WorkType from './WorkTypeType';
56
+ export * as Analysis from './analysis/AnalysisDailySnapshot';
@@ -3,6 +3,7 @@ export * as AdLocation from './AdLocationType';
3
3
  export * as Motor from './MotorType';
4
4
  export * as Property from './PropertyType';
5
5
  export * as Service from './ServiceType';
6
+ export * as LegacyServiceLocation from './ServicesLocationsType';
6
7
  export * as Product from './UsedProductType';
7
8
  export * as SubjectTable from './SubjectType';
8
9
  export * as AdminBoundary from './AdminBoundaryType';
@@ -12,3 +13,45 @@ export * as Google from './GoogleType';
12
13
  export * as User from './UserType';
13
14
  export * as MessageTemplate from './MessageTemplateType';
14
15
  export * as Confog from './ConfigType';
16
+ export * as Config from './ConfigType';
17
+ export * as AccessType from './AccessTypeType';
18
+ export * as AdPromotion from './AdPromotionType';
19
+ export * as AppStartScreen from './AppStartScreenType';
20
+ export * as BaseService from './BaseService';
21
+ export * as CarBody from './CarBodyType';
22
+ export * as Category from './CategoryType';
23
+ export * as CategoryWorkType from './CategoryWorkTypeType';
24
+ export * as Chat from './ChatType';
25
+ export * as City from './CityType';
26
+ export * as Color from './ColorType';
27
+ export * as Currency from './CurrencyType';
28
+ export * as Device from './DeviceType';
29
+ export * as District from './DistrictType';
30
+ export * as Facility from './FacilityType';
31
+ export * as Feature from './FeatureType';
32
+ export * as FuelType from './FuelTypeType';
33
+ export * as Image from './ImageType';
34
+ export * as LicenseType from './LicenseTypeType';
35
+ export * as LocalizedName from './LocalizedNameType';
36
+ export * as MotorTrim from './MotorTrimType';
37
+ export * as NotificationToken from './NotificationTokenType';
38
+ export * as OfferType from './OfferTypeType';
39
+ export * as Permission from './PermissionType';
40
+ export * as PotentialUser from './PotentialUserType';
41
+ export * as PriceType from './PriceTypeType';
42
+ export * as PropertyStatus from './PropertyStatusType';
43
+ export * as PublisherType from './PublisherTypeType';
44
+ export * as RegionalSpec from './RegionalSpecType';
45
+ export * as Response from './ResponseType';
46
+ export * as Role from './RoleType';
47
+ export * as SocialMediaPlatform from './SocialMediaPlatformType';
48
+ export * as SocialMediaProfile from './SocialMediaProfileType';
49
+ export * as Status from './StatusType';
50
+ export * as Transmission from './TransmissionType';
51
+ export * as Unit from './UnitType';
52
+ export * as UsedProductAge from './UsedProductAge';
53
+ export * as UsedProductCondition from './UsedProductCondition';
54
+ export * as Wallet from './WalletType';
55
+ export * as WorkType from './WorkTypeType';
56
+ // Analysis types
57
+ export * as Analysis from './analysis/AnalysisDailySnapshot';
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Common structure for category-specific analytics
3
+ */
4
+ type CategoryMetrics = {
5
+ views_count: number;
6
+ filter_count: number;
7
+ category_ids: number[];
8
+ parent_category_ids: number[];
9
+ };
10
+ /**
11
+ * Metrics related to user-to-ad engagement
12
+ */
13
+ type AdInteractions = {
14
+ whatsapp_clicks: number;
15
+ call_clicks: number;
16
+ chat_clicks: number;
17
+ shares: number;
18
+ };
19
+ /**
20
+ * High-level app engagement and system health
21
+ */
22
+ type AppMetrics = {
23
+ device_open_count: number;
24
+ chat_messages_count: number;
25
+ chat_rooms_count: number;
26
+ };
27
+ export type IAnalysisDailySnapshot = {
28
+ id: number;
29
+ snapshot_date: string;
30
+ created_at: string;
31
+ updated_at: string;
32
+ /** Grouped interactions for ads/contact actions */
33
+ ad_interactions: AdInteractions;
34
+ /** Category-specific performance metrics */
35
+ services: CategoryMetrics;
36
+ products: CategoryMetrics;
37
+ properties: CategoryMetrics;
38
+ motors: CategoryMetrics;
39
+ /** General app-wide engagement metrics */
40
+ app_metrics: AppMetrics;
41
+ };
42
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { IAnalysisDailySnapshot } from './AnalysisDailySnapshot';
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deallony/shared",
3
- "version": "1.0.78",
3
+ "version": "1.0.81",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,8 +13,8 @@
13
13
  "=========": "============= UPDATE APPS LIBRARY =============",
14
14
  "all:update": "npm run mobile:update && npm run backend:update",
15
15
  "mobile:update": "cd ../app && npm install @deallony/shared@latest",
16
- "backend:update": "cd ../backend-service-marketplace && pnpm install @deallony/shared@latest",
17
- "dashboard:update": "cd ../frontend-react-aloo && pnpm install @deallony/shared@latest",
16
+ "backend:update": "cd ../backend-service-marketplace && pnpm uninstall @deallony/shared && pnpm install @deallony/shared@latest",
17
+ "dashboard:update": "cd ../frontend-react-aloo && pnpm uninstall @deallony/shared && pnpm install @deallony/shared@latest",
18
18
  "current": "npm view @deallony/shared version",
19
19
  "========": "============ DEFAULT ============",
20
20
  "build": "tsc",