@deallony/shared 1.0.67 → 1.0.69
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/AdLocationType.d.ts +7 -0
- package/dist/types/AdLocationType.js +1 -0
- package/dist/types/AdType.d.ts +5 -3
- package/dist/types/ConfigType.d.ts +7 -0
- package/dist/types/ConfigType.js +1 -0
- package/dist/types/MessageTemplateType.d.ts +1 -0
- package/dist/types/MotorType.d.ts +0 -2
- package/dist/types/__index__.d.ts +3 -0
- package/dist/types/__index__.js +3 -0
- package/dist/utils/translation.d.ts +6 -0
- package/dist/utils/translation.js +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/AdType.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { PropertyType } from "./PropertyType";
|
|
|
6
6
|
import { ServiceType } from "./ServiceType";
|
|
7
7
|
import { SubjectTableType, SubjectType } from "./SubjectType";
|
|
8
8
|
import { IUser } from "./UserType";
|
|
9
|
+
import { IAdLocations } from "./AdLocationType";
|
|
9
10
|
export type IAd = {
|
|
10
11
|
id?: number;
|
|
11
12
|
user_id?: number;
|
|
@@ -19,9 +20,10 @@ export type IAd = {
|
|
|
19
20
|
negotiable?: boolean;
|
|
20
21
|
views?: number;
|
|
21
22
|
city_id?: number;
|
|
22
|
-
latitude
|
|
23
|
-
longitude
|
|
24
|
-
baseAdminBoundaryId
|
|
23
|
+
latitude: number;
|
|
24
|
+
longitude: number;
|
|
25
|
+
baseAdminBoundaryId: number;
|
|
26
|
+
adLocations: IAdLocations;
|
|
25
27
|
subject_id?: number;
|
|
26
28
|
contact_methods: {
|
|
27
29
|
by_message?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * as Ad from './AdType';
|
|
2
|
+
export * as AdLocation from './AdLocationType';
|
|
2
3
|
export * as AdminBoundary from './AdminBoundaryType';
|
|
3
4
|
export * as Media from './MediaType';
|
|
4
5
|
export * from './PropertyTypeType';
|
|
5
6
|
export * as Google from './GoogleType';
|
|
6
7
|
export * as User from './UserType';
|
|
8
|
+
export * as MessageTemplate from './MessageTemplateType';
|
|
9
|
+
export * as Confog from './ConfigType';
|
package/dist/types/__index__.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * as Ad from './AdType';
|
|
2
|
+
export * as AdLocation from './AdLocationType';
|
|
2
3
|
export * as AdminBoundary from './AdminBoundaryType';
|
|
3
4
|
export * as Media from './MediaType';
|
|
4
5
|
export * from './PropertyTypeType';
|
|
5
6
|
export * as Google from './GoogleType';
|
|
6
7
|
export * as User from './UserType';
|
|
8
|
+
export * as MessageTemplate from './MessageTemplateType';
|
|
9
|
+
export * as Confog from './ConfigType';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const tn = (props) => {
|
|
2
|
+
const { name, language } = props;
|
|
3
|
+
return ((name === null || name === void 0 ? void 0 : name[language]) ||
|
|
4
|
+
(name === null || name === void 0 ? void 0 : name.en) ||
|
|
5
|
+
(name === null || name === void 0 ? void 0 : name.ar) ||
|
|
6
|
+
(typeof name === "string" ? name : ""));
|
|
7
|
+
};
|
|
8
|
+
export { tn };
|