@deallony/shared 1.0.80 → 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.
- package/dist/types/AccessTypeType.d.ts +1 -1
- package/dist/types/CarBodyType.d.ts +1 -1
- package/dist/types/CategoryType.d.ts +2 -2
- package/dist/types/CategoryType.js +0 -1
- package/dist/types/CategoryWorkTypeType.d.ts +3 -3
- package/dist/types/CityType.d.ts +1 -0
- package/dist/types/CurrencyType.d.ts +1 -0
- package/dist/types/DistrictType.d.ts +8 -2
- package/dist/types/FuelTypeType.d.ts +1 -1
- package/dist/types/LicenseTypeType.d.ts +1 -1
- package/dist/types/OfferTypeType.d.ts +1 -1
- package/dist/types/PriceTypeType.d.ts +1 -1
- package/dist/types/PropertyTypeType.d.ts +1 -1
- package/dist/types/PublisherTypeType.d.ts +1 -1
- package/dist/types/UsedProductCondition.d.ts +7 -0
- package/dist/types/UsedProductCondition.js +1 -0
- package/dist/types/WorkTypeType.d.ts +3 -3
- package/dist/types/__index__.d.ts +41 -0
- package/dist/types/__index__.js +42 -0
- package/dist/types/analysis/AnalysisDailySnapshot.d.ts +42 -0
- package/dist/types/analysis/AnalysisDailySnapshot.js +1 -0
- package/dist/types/analysis/__index.d.ts +1 -0
- package/dist/types/analysis/__index.js +1 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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<
|
|
11
|
+
category_work_types?: Array<ICategoryWorkType>;
|
|
12
12
|
isBranch: boolean;
|
|
13
13
|
should_validate?: boolean;
|
|
14
14
|
type?: SubjectTableType;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CategoryType } from "./CategoryType";
|
|
2
|
-
import {
|
|
3
|
-
export type
|
|
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?:
|
|
8
|
+
workType?: IWorkType;
|
|
9
9
|
category?: CategoryType;
|
|
10
10
|
};
|
package/dist/types/CityType.d.ts
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import {
|
|
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?:
|
|
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
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { ICategoryWorkType } from "./CategoryWorkTypeType";
|
|
2
|
+
export type IWorkType = {
|
|
3
3
|
id?: number;
|
|
4
4
|
name: string;
|
|
5
|
-
categoryWorkTypes?:
|
|
5
|
+
categoryWorkTypes?: ICategoryWorkType[];
|
|
6
6
|
};
|
|
@@ -13,3 +13,44 @@ export * as Google from './GoogleType';
|
|
|
13
13
|
export * as User from './UserType';
|
|
14
14
|
export * as MessageTemplate from './MessageTemplateType';
|
|
15
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';
|
package/dist/types/__index__.js
CHANGED
|
@@ -13,3 +13,45 @@ export * as Google from './GoogleType';
|
|
|
13
13
|
export * as User from './UserType';
|
|
14
14
|
export * as MessageTemplate from './MessageTemplateType';
|
|
15
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.
|
|
3
|
+
"version": "1.0.81",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
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",
|
|
16
|
+
"backend:update": "cd ../backend-service-marketplace && pnpm uninstall @deallony/shared && pnpm install @deallony/shared@latest",
|
|
17
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 ============",
|