@deallony/shared 1.2.7 → 1.2.9
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/cjs/constants/company/Company.d.ts +9 -0
- package/dist/cjs/constants/company/Company.js +12 -0
- package/dist/cjs/constants/company/index.d.ts +1 -0
- package/dist/cjs/constants/company/index.js +17 -0
- package/dist/cjs/constants/index.d.ts +1 -0
- package/dist/cjs/constants/index.js +2 -1
- package/dist/cjs/dto/events/Event.d.ts +2 -0
- package/dist/cjs/dto/events/Event.js +5 -0
- package/dist/cjs/dto/events/EventTemplate.d.ts +14 -0
- package/dist/cjs/dto/events/EventTemplate.dto.d.ts +18 -0
- package/dist/cjs/dto/events/EventTemplate.dto.js +11 -0
- package/dist/cjs/dto/events/EventTemplate.js +14 -0
- package/dist/cjs/dto/events/EventType.d.ts +2 -0
- package/dist/cjs/dto/events/EventType.dto.d.ts +16 -0
- package/dist/cjs/dto/events/EventType.dto.js +10 -0
- package/dist/cjs/dto/events/EventType.js +5 -0
- package/dist/cjs/dto/events/EventWedding.d.ts +11 -0
- package/dist/cjs/dto/events/EventWedding.js +9 -0
- package/dist/cjs/dto/events/common.d.ts +5 -0
- package/dist/cjs/dto/events/common.js +8 -0
- package/dist/cjs/types/attributes/CarBody.d.ts +5 -0
- package/dist/cjs/types/attributes/CarBody.js +2 -0
- package/dist/cjs/types/attributes/Facility.d.ts +6 -0
- package/dist/cjs/types/attributes/Facility.js +2 -0
- package/dist/cjs/types/attributes/Feature.d.ts +7 -0
- package/dist/cjs/types/attributes/Feature.js +2 -0
- package/dist/cjs/types/attributes/FuelType.d.ts +5 -0
- package/dist/cjs/types/attributes/FuelType.js +2 -0
- package/dist/cjs/types/attributes/LicenseType.d.ts +5 -0
- package/dist/cjs/types/attributes/LicenseType.js +2 -0
- package/dist/cjs/types/attributes/OfferType.d.ts +5 -0
- package/dist/cjs/types/attributes/OfferType.js +2 -0
- package/dist/cjs/types/attributes/PriceType.d.ts +7 -0
- package/dist/cjs/types/attributes/PriceType.js +2 -0
- package/dist/cjs/types/attributes/PropertyStatus.d.ts +5 -0
- package/dist/cjs/types/attributes/PropertyStatus.js +2 -0
- package/dist/cjs/types/attributes/PublisherType.d.ts +5 -0
- package/dist/cjs/types/attributes/PublisherType.js +2 -0
- package/dist/cjs/types/attributes/RegionalSpec.d.ts +5 -0
- package/dist/cjs/types/attributes/RegionalSpec.js +2 -0
- package/dist/cjs/types/attributes/Transmission.d.ts +5 -0
- package/dist/cjs/types/attributes/Transmission.js +2 -0
- package/dist/cjs/types/attributes/Unit.d.ts +5 -0
- package/dist/cjs/types/attributes/Unit.js +2 -0
- package/dist/cjs/types/attributes/UsedProductAge.d.ts +7 -0
- package/dist/cjs/types/attributes/UsedProductAge.js +2 -0
- package/dist/cjs/types/attributes/UsedProductCondition.d.ts +7 -0
- package/dist/cjs/types/attributes/UsedProductCondition.js +2 -0
- package/dist/cjs/types/attributes/WorkType.d.ts +6 -0
- package/dist/cjs/types/attributes/WorkType.js +2 -0
- package/dist/cjs/types/common/AccessType.d.ts +5 -0
- package/dist/cjs/types/common/AccessType.js +2 -0
- package/dist/cjs/types/company/Company.d.ts +1 -0
- package/dist/cjs/types/events/EventTemplate.d.ts +14 -0
- package/dist/cjs/types/events/EventTemplate.js +14 -0
- package/dist/cjs/types/events/EventType.d.ts +10 -0
- package/dist/cjs/types/events/EventType.js +11 -0
- package/dist/cjs/types/listings/Ad.d.ts +93 -0
- package/dist/cjs/types/listings/Ad.js +25 -0
- package/dist/cjs/types/listings/AdLocation.d.ts +5 -0
- package/dist/cjs/types/listings/AdLocation.js +2 -0
- package/dist/cjs/types/listings/AdPromotion.d.ts +12 -0
- package/dist/cjs/types/listings/AdPromotion.js +2 -0
- package/dist/cjs/types/listings/Motor.d.ts +24 -0
- package/dist/cjs/types/listings/Motor.js +17 -0
- package/dist/cjs/types/listings/MotorTrim.d.ts +6 -0
- package/dist/cjs/types/listings/MotorTrim.js +2 -0
- package/dist/cjs/types/listings/Property.d.ts +37 -0
- package/dist/cjs/types/listings/Property.js +14 -0
- package/dist/cjs/types/listings/PropertySubType.d.ts +6 -0
- package/dist/cjs/types/listings/PropertySubType.js +2 -0
- package/dist/cjs/types/listings/Service.d.ts +14 -0
- package/dist/cjs/types/listings/Service.js +9 -0
- package/dist/cjs/types/listings/UsedProduct.d.ts +8 -0
- package/dist/cjs/types/listings/UsedProduct.js +7 -0
- package/dist/cjs/types/listings/index.d.ts +5 -0
- package/dist/cjs/types/listings/index.js +21 -0
- package/dist/cjs/validation/ad/save-ad.d.ts +45 -0
- package/dist/cjs/validation/ad/save-ad.js +55 -0
- package/dist/esm/constants/company/Company.js +9 -0
- package/dist/esm/constants/company/index.js +1 -0
- package/dist/esm/constants/index.js +1 -0
- package/dist/esm/dto/events/Event.js +1 -0
- package/dist/esm/dto/events/EventTemplate.dto.js +8 -0
- package/dist/esm/dto/events/EventTemplate.js +11 -0
- package/dist/esm/dto/events/EventType.dto.js +7 -0
- package/dist/esm/dto/events/EventType.js +1 -0
- package/dist/esm/dto/events/EventWedding.js +6 -0
- package/dist/esm/dto/events/common.js +5 -0
- package/dist/esm/types/attributes/CarBody.js +1 -0
- package/dist/esm/types/attributes/Facility.js +1 -0
- package/dist/esm/types/attributes/Feature.js +1 -0
- package/dist/esm/types/attributes/FuelType.js +1 -0
- package/dist/esm/types/attributes/LicenseType.js +1 -0
- package/dist/esm/types/attributes/OfferType.js +1 -0
- package/dist/esm/types/attributes/PriceType.js +1 -0
- package/dist/esm/types/attributes/PropertyStatus.js +1 -0
- package/dist/esm/types/attributes/PublisherType.js +1 -0
- package/dist/esm/types/attributes/RegionalSpec.js +1 -0
- package/dist/esm/types/attributes/Transmission.js +1 -0
- package/dist/esm/types/attributes/Unit.js +1 -0
- package/dist/esm/types/attributes/UsedProductAge.js +1 -0
- package/dist/esm/types/attributes/UsedProductCondition.js +1 -0
- package/dist/esm/types/attributes/WorkType.js +1 -0
- package/dist/esm/types/common/AccessType.js +1 -0
- package/dist/esm/types/events/EventTemplate.js +11 -0
- package/dist/esm/types/events/EventType.js +8 -0
- package/dist/esm/types/listings/Ad.js +22 -0
- package/dist/esm/types/listings/AdLocation.js +1 -0
- package/dist/esm/types/listings/AdPromotion.js +1 -0
- package/dist/esm/types/listings/Motor.js +14 -0
- package/dist/esm/types/listings/MotorTrim.js +1 -0
- package/dist/esm/types/listings/Property.js +11 -0
- package/dist/esm/types/listings/PropertySubType.js +1 -0
- package/dist/esm/types/listings/Service.js +6 -0
- package/dist/esm/types/listings/UsedProduct.js +4 -0
- package/dist/esm/types/listings/index.js +5 -0
- package/dist/esm/validation/ad/save-ad.js +52 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CompanyStatusOptions = exports.COMPANY_STATUS = void 0;
|
|
4
|
+
exports.COMPANY_STATUS = {
|
|
5
|
+
PENDING: 'pending',
|
|
6
|
+
APPROVED: 'approved',
|
|
7
|
+
REJECTED: 'rejected',
|
|
8
|
+
};
|
|
9
|
+
exports.CompanyStatusOptions = Object.values(exports.COMPANY_STATUS).map((status) => ({
|
|
10
|
+
value: status,
|
|
11
|
+
label: status.charAt(0).toUpperCase() + status.slice(1),
|
|
12
|
+
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Company';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Company"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * as Subject from "./common/Subject";
|
|
2
2
|
export * as COMMON from "./common";
|
|
3
3
|
export * as AD from "./ad";
|
|
4
|
+
export * as COMPANY from "./company";
|
|
4
5
|
export * as EVENTS from "./events";
|
|
5
6
|
export * as MOTOR from "./motor";
|
|
6
7
|
export * as PROPERTY from "./property";
|
|
@@ -33,10 +33,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.USED_PRODUCT = exports.SERVICE = exports.ROUTES = exports.PROPERTY = exports.MOTOR = exports.EVENTS = exports.AD = exports.COMMON = exports.Subject = void 0;
|
|
36
|
+
exports.USED_PRODUCT = exports.SERVICE = exports.ROUTES = exports.PROPERTY = exports.MOTOR = exports.EVENTS = exports.COMPANY = exports.AD = exports.COMMON = exports.Subject = void 0;
|
|
37
37
|
exports.Subject = __importStar(require("./common/Subject"));
|
|
38
38
|
exports.COMMON = __importStar(require("./common"));
|
|
39
39
|
exports.AD = __importStar(require("./ad"));
|
|
40
|
+
exports.COMPANY = __importStar(require("./company"));
|
|
40
41
|
exports.EVENTS = __importStar(require("./events"));
|
|
41
42
|
exports.MOTOR = __importStar(require("./motor"));
|
|
42
43
|
exports.PROPERTY = __importStar(require("./property"));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emptyEvent = void 0;
|
|
4
|
+
var Event_dto_1 = require("./Event.dto");
|
|
5
|
+
Object.defineProperty(exports, "emptyEvent", { enumerable: true, get: function () { return Event_dto_1.emptyEvent; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type LocalizedName } from '../../types/common/LocalizedName';
|
|
2
|
+
import type { IEventType } from './EventType';
|
|
3
|
+
import type { IEventWedding } from './EventWedding';
|
|
4
|
+
export type IEventTemplate = {
|
|
5
|
+
id?: number;
|
|
6
|
+
code: string;
|
|
7
|
+
name: LocalizedName;
|
|
8
|
+
active: boolean;
|
|
9
|
+
religion: string | null;
|
|
10
|
+
event_type_id: number;
|
|
11
|
+
eventType?: IEventType;
|
|
12
|
+
weddings?: IEventWedding[];
|
|
13
|
+
};
|
|
14
|
+
export declare const emptyEventTemplate: IEventTemplate;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const EventTemplate: {
|
|
2
|
+
WEDDING: {
|
|
3
|
+
value: string;
|
|
4
|
+
name: {
|
|
5
|
+
en: string;
|
|
6
|
+
ar: string;
|
|
7
|
+
};
|
|
8
|
+
event_types: string[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const EventTemplateOptions: {
|
|
12
|
+
value: string;
|
|
13
|
+
name: {
|
|
14
|
+
en: string;
|
|
15
|
+
ar: string;
|
|
16
|
+
};
|
|
17
|
+
event_types: string[];
|
|
18
|
+
}[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventTemplateOptions = exports.EventTemplate = void 0;
|
|
4
|
+
exports.EventTemplate = {
|
|
5
|
+
WEDDING: { value: 'wedding-1', name: { en: 'Wedding', ar: 'زفاف' }, event_types: ['wedding'] },
|
|
6
|
+
};
|
|
7
|
+
exports.EventTemplateOptions = Object.values(exports.EventTemplate).map((type) => ({
|
|
8
|
+
value: type.value,
|
|
9
|
+
name: type.name,
|
|
10
|
+
event_types: type.event_types,
|
|
11
|
+
}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emptyEventTemplate = void 0;
|
|
4
|
+
const LocalizedName_1 = require("../../types/common/LocalizedName");
|
|
5
|
+
exports.emptyEventTemplate = {
|
|
6
|
+
id: 0,
|
|
7
|
+
code: '',
|
|
8
|
+
name: (0, LocalizedName_1.createEmptyLocalizedName)(),
|
|
9
|
+
active: true,
|
|
10
|
+
religion: null,
|
|
11
|
+
event_type_id: 0,
|
|
12
|
+
eventType: undefined,
|
|
13
|
+
weddings: [],
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventTypeOptions = exports.EventTypes = void 0;
|
|
4
|
+
exports.EventTypes = {
|
|
5
|
+
WEDDING: { value: 'wedding', name: { en: 'Wedding', ar: 'زفاف' } },
|
|
6
|
+
};
|
|
7
|
+
exports.EventTypeOptions = Object.values(exports.EventTypes).map((type) => ({
|
|
8
|
+
value: type.value,
|
|
9
|
+
name: type.name,
|
|
10
|
+
}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emptyEventType = void 0;
|
|
4
|
+
var EventType_dto_1 = require("./EventType.dto");
|
|
5
|
+
Object.defineProperty(exports, "emptyEventType", { enumerable: true, get: function () { return EventType_dto_1.emptyEventType; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IEvent } from './Event';
|
|
2
|
+
import type { IEventTemplate } from './EventTemplate';
|
|
3
|
+
export type IEventWedding = {
|
|
4
|
+
id?: number;
|
|
5
|
+
event_id: number;
|
|
6
|
+
event_template_id: number;
|
|
7
|
+
cover: Record<string, any> | null;
|
|
8
|
+
event?: IEvent;
|
|
9
|
+
eventTemplate?: IEventTemplate;
|
|
10
|
+
};
|
|
11
|
+
export declare const emptyEventWedding: IEventWedding;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.localizedNameSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.localizedNameSchema = zod_1.z.object({
|
|
6
|
+
en: zod_1.z.string().trim().min(1),
|
|
7
|
+
ar: zod_1.z.string().trim().min(1),
|
|
8
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type LocalizedName } from '../common/LocalizedName';
|
|
2
|
+
import type { IEventType } from './EventType';
|
|
3
|
+
import type { IEventWedding } from './EventWedding';
|
|
4
|
+
export type IEventTemplate = {
|
|
5
|
+
id?: number;
|
|
6
|
+
code: string;
|
|
7
|
+
name: LocalizedName;
|
|
8
|
+
active: boolean;
|
|
9
|
+
religion: string | null;
|
|
10
|
+
event_type_id: number;
|
|
11
|
+
eventType?: IEventType;
|
|
12
|
+
weddings?: IEventWedding[];
|
|
13
|
+
};
|
|
14
|
+
export declare const emptyEventTemplate: IEventTemplate;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emptyEventTemplate = void 0;
|
|
4
|
+
const LocalizedName_1 = require("../common/LocalizedName");
|
|
5
|
+
exports.emptyEventTemplate = {
|
|
6
|
+
id: 0,
|
|
7
|
+
code: '',
|
|
8
|
+
name: (0, LocalizedName_1.createEmptyLocalizedName)(),
|
|
9
|
+
active: true,
|
|
10
|
+
religion: null,
|
|
11
|
+
event_type_id: 0,
|
|
12
|
+
eventType: undefined,
|
|
13
|
+
weddings: [],
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type LocalizedName } from '../common/LocalizedName';
|
|
2
|
+
import type { IEventTemplate } from './EventTemplate';
|
|
3
|
+
export type IEventType = {
|
|
4
|
+
id?: number;
|
|
5
|
+
code: string;
|
|
6
|
+
name: LocalizedName;
|
|
7
|
+
active: boolean;
|
|
8
|
+
templates?: IEventTemplate[];
|
|
9
|
+
};
|
|
10
|
+
export declare const emptyEventType: IEventType;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emptyEventType = void 0;
|
|
4
|
+
const LocalizedName_1 = require("../common/LocalizedName");
|
|
5
|
+
exports.emptyEventType = {
|
|
6
|
+
id: 0,
|
|
7
|
+
code: '',
|
|
8
|
+
name: (0, LocalizedName_1.createEmptyLocalizedName)(),
|
|
9
|
+
active: true,
|
|
10
|
+
templates: [],
|
|
11
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { IMedia } from "../media/Media";
|
|
2
|
+
import { IUser } from "../user/User";
|
|
3
|
+
import { IAdLocations } from "./AdLocation";
|
|
4
|
+
import { IAdPromotion } from "./AdPromotion";
|
|
5
|
+
import { IMotor } from "./Motor";
|
|
6
|
+
import { IProperty } from "./Property";
|
|
7
|
+
import { IService } from "./Service";
|
|
8
|
+
import { IUsedProduct } from "./UsedProduct";
|
|
9
|
+
import { SubjectTable } from "../common/Subject";
|
|
10
|
+
export type IAd = {
|
|
11
|
+
id?: number;
|
|
12
|
+
user_id?: number;
|
|
13
|
+
status_id?: number;
|
|
14
|
+
title?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
category_id?: number;
|
|
17
|
+
price?: number;
|
|
18
|
+
base_price?: number;
|
|
19
|
+
currency_id?: number;
|
|
20
|
+
negotiable?: boolean;
|
|
21
|
+
views?: number;
|
|
22
|
+
city_id?: number;
|
|
23
|
+
latitude: number;
|
|
24
|
+
longitude: number;
|
|
25
|
+
baseAdminBoundaryId: number;
|
|
26
|
+
adLocations?: IAdLocations;
|
|
27
|
+
subject_id?: number;
|
|
28
|
+
contact_methods: {
|
|
29
|
+
by_message?: boolean;
|
|
30
|
+
by_whatsapp?: boolean;
|
|
31
|
+
by_call?: boolean;
|
|
32
|
+
} | null;
|
|
33
|
+
selected_phone: string | null;
|
|
34
|
+
user?: IUser;
|
|
35
|
+
media: IMedia[];
|
|
36
|
+
subject_type?: SubjectTable;
|
|
37
|
+
promotions?: IAdPromotion[];
|
|
38
|
+
property?: IProperty;
|
|
39
|
+
motor?: IMotor;
|
|
40
|
+
service?: IService;
|
|
41
|
+
product?: IUsedProduct;
|
|
42
|
+
created_at?: string;
|
|
43
|
+
updated_at?: string;
|
|
44
|
+
};
|
|
45
|
+
export type SaveAdDto = Partial<Omit<IAd, "created_at" | "updated_at" | "views" | "user" | "promotions">> & {
|
|
46
|
+
id?: number;
|
|
47
|
+
latitude?: number;
|
|
48
|
+
longitude?: number;
|
|
49
|
+
baseAdminBoundaryId?: number;
|
|
50
|
+
adLocations?: IAdLocations;
|
|
51
|
+
};
|
|
52
|
+
export type GetAdsFilterDto = {
|
|
53
|
+
ids?: number[];
|
|
54
|
+
city_id?: number;
|
|
55
|
+
district_ids?: number[];
|
|
56
|
+
boundary_ids?: number[];
|
|
57
|
+
category_id?: number;
|
|
58
|
+
user_id?: number;
|
|
59
|
+
subject_type?: SubjectTable;
|
|
60
|
+
search?: string;
|
|
61
|
+
status?: string;
|
|
62
|
+
page?: number;
|
|
63
|
+
limit?: number;
|
|
64
|
+
currency_id?: number;
|
|
65
|
+
min_price?: number;
|
|
66
|
+
max_price?: number;
|
|
67
|
+
parent_category_id?: number;
|
|
68
|
+
property?: {
|
|
69
|
+
property_type_id?: number;
|
|
70
|
+
offer_type_id?: number;
|
|
71
|
+
bedrooms?: number[];
|
|
72
|
+
bathrooms?: number[];
|
|
73
|
+
};
|
|
74
|
+
service?: {
|
|
75
|
+
access_type_id?: number;
|
|
76
|
+
district_ids?: number[];
|
|
77
|
+
};
|
|
78
|
+
product?: {
|
|
79
|
+
condition_id?: number;
|
|
80
|
+
age_id?: number;
|
|
81
|
+
};
|
|
82
|
+
motor?: {
|
|
83
|
+
transmission_ids?: number[];
|
|
84
|
+
fuel_type_ids?: number[];
|
|
85
|
+
offer_type_ids?: number[];
|
|
86
|
+
color_ids?: number[];
|
|
87
|
+
min_year?: number;
|
|
88
|
+
max_year?: number;
|
|
89
|
+
min_mileage?: number;
|
|
90
|
+
max_mileage?: number;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export declare const emptyAd: IAd;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emptyAd = void 0;
|
|
4
|
+
const Motor_1 = require("./Motor");
|
|
5
|
+
const Property_1 = require("./Property");
|
|
6
|
+
const Service_1 = require("./Service");
|
|
7
|
+
const UsedProduct_1 = require("./UsedProduct");
|
|
8
|
+
exports.emptyAd = {
|
|
9
|
+
id: 0,
|
|
10
|
+
user_id: 0,
|
|
11
|
+
status_id: 0,
|
|
12
|
+
title: "",
|
|
13
|
+
description: "",
|
|
14
|
+
negotiable: false,
|
|
15
|
+
latitude: 0,
|
|
16
|
+
longitude: 0,
|
|
17
|
+
baseAdminBoundaryId: 0,
|
|
18
|
+
contact_methods: null,
|
|
19
|
+
selected_phone: null,
|
|
20
|
+
media: [],
|
|
21
|
+
property: Property_1.emptyProperty,
|
|
22
|
+
motor: Motor_1.emptyMotor,
|
|
23
|
+
service: Service_1.emptyService,
|
|
24
|
+
product: UsedProduct_1.emptyUsedProduct,
|
|
25
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type PromotionKind = "highlight" | "featured" | "top";
|
|
2
|
+
export type IAdPromotion = {
|
|
3
|
+
id?: number;
|
|
4
|
+
ad_id: number;
|
|
5
|
+
active: boolean;
|
|
6
|
+
promotion_type: PromotionKind;
|
|
7
|
+
promoted_from: string;
|
|
8
|
+
promoted_until: string;
|
|
9
|
+
amount_paid?: number | null;
|
|
10
|
+
created_at?: string;
|
|
11
|
+
updated_at?: string;
|
|
12
|
+
};
|