@deallony/shared 1.2.16 → 1.2.17
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/ad/Ad.d.ts +14 -1
- package/dist/cjs/constants/ad/Ad.js +20 -1
- package/dist/cjs/constants/common/index.d.ts +0 -1
- package/dist/cjs/constants/common/index.js +0 -1
- package/dist/cjs/constants/index.d.ts +0 -1
- package/dist/cjs/constants/index.js +1 -2
- package/dist/cjs/types/ad/Ad.d.ts +10 -1
- package/dist/cjs/types/ad-common/Feature.d.ts +1 -1
- package/dist/cjs/types/ad-common/UsedProductAge.d.ts +1 -1
- package/dist/cjs/types/ad-common/UsedProductCondition.d.ts +1 -1
- package/dist/cjs/types/attributes/Category.d.ts +1 -1
- package/dist/cjs/types/common/index.d.ts +0 -1
- package/dist/cjs/types/common/index.js +0 -1
- package/dist/cjs/types/index.d.ts +0 -1
- package/dist/cjs/types/index.js +2 -3
- package/dist/cjs/types/motor/Motor.d.ts +1 -1
- package/dist/cjs/types/property/Property.d.ts +1 -1
- package/dist/esm/constants/ad/Ad.js +19 -0
- package/dist/esm/constants/common/index.js +0 -1
- package/dist/esm/constants/index.js +0 -1
- package/dist/esm/types/common/index.js +0 -1
- package/dist/esm/types/index.js +0 -1
- package/package.json +1 -1
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
import { IAd } from "../../types/ad";
|
|
1
|
+
import { IAd, ISubjectTypeOption } from "../../types/ad";
|
|
2
|
+
export declare enum SubjectTableEnum {
|
|
3
|
+
PROPERTIES = "properties",
|
|
4
|
+
SERVICES = "services",
|
|
5
|
+
MOTORS = "motors",
|
|
6
|
+
USED_PRODUCTS = "used_products"
|
|
7
|
+
}
|
|
8
|
+
export declare const SubjectTypes: {
|
|
9
|
+
properties: string;
|
|
10
|
+
services: string;
|
|
11
|
+
motors: string;
|
|
12
|
+
used_products: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const SubjectTypeOptions: ISubjectTypeOption[];
|
|
2
15
|
export declare const emptyAd: IAd;
|
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.emptyAd = void 0;
|
|
3
|
+
exports.emptyAd = exports.SubjectTypeOptions = exports.SubjectTypes = exports.SubjectTableEnum = void 0;
|
|
4
4
|
const motor_1 = require("../motor");
|
|
5
5
|
const property_1 = require("../property");
|
|
6
6
|
const service_1 = require("../service");
|
|
7
7
|
const used_product_1 = require("../used-product");
|
|
8
|
+
var SubjectTableEnum;
|
|
9
|
+
(function (SubjectTableEnum) {
|
|
10
|
+
SubjectTableEnum["PROPERTIES"] = "properties";
|
|
11
|
+
SubjectTableEnum["SERVICES"] = "services";
|
|
12
|
+
SubjectTableEnum["MOTORS"] = "motors";
|
|
13
|
+
SubjectTableEnum["USED_PRODUCTS"] = "used_products";
|
|
14
|
+
})(SubjectTableEnum || (exports.SubjectTableEnum = SubjectTableEnum = {}));
|
|
15
|
+
exports.SubjectTypes = {
|
|
16
|
+
[SubjectTableEnum.PROPERTIES]: "Properties",
|
|
17
|
+
[SubjectTableEnum.SERVICES]: "Services",
|
|
18
|
+
[SubjectTableEnum.MOTORS]: "Motors",
|
|
19
|
+
[SubjectTableEnum.USED_PRODUCTS]: "Used Products",
|
|
20
|
+
};
|
|
21
|
+
exports.SubjectTypeOptions = [
|
|
22
|
+
{ value: SubjectTableEnum.SERVICES, label: "Services", name: { en: "Services", ar: "خدمات" }, isCategory: true, color: "#3B82F6", isAge: false, isCondition: false, isFeature: false },
|
|
23
|
+
{ value: SubjectTableEnum.MOTORS, label: "Motors", name: { en: "Motors", ar: "سيارات" }, isCategory: true, color: "#125b40ff", isAge: false, isCondition: false, isFeature: true },
|
|
24
|
+
{ value: SubjectTableEnum.USED_PRODUCTS, label: "Used Products", name: { en: "Used Products", ar: "منتجات" }, isCategory: true, color: "#6b5212ff", isAge: true, isCondition: true, isFeature: false },
|
|
25
|
+
{ value: SubjectTableEnum.PROPERTIES, label: "Properties", name: { en: "Properties", ar: "عقارات" }, isCategory: false, color: "#6c4fc3ff", isAge: true, isCondition: true, isFeature: true },
|
|
26
|
+
];
|
|
8
27
|
exports.emptyAd = {
|
|
9
28
|
id: 0,
|
|
10
29
|
user_id: 0,
|
|
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Subject"), exports);
|
|
18
17
|
__exportStar(require("./MetaData"), exports);
|
|
19
18
|
__exportStar(require("./Role"), exports);
|
|
@@ -33,8 +33,7 @@ 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.COMPANY = exports.AD = exports.COMMON =
|
|
37
|
-
exports.Subject = __importStar(require("./common/Subject"));
|
|
36
|
+
exports.USED_PRODUCT = exports.SERVICE = exports.ROUTES = exports.PROPERTY = exports.MOTOR = exports.EVENTS = exports.COMPANY = exports.AD = exports.COMMON = void 0;
|
|
38
37
|
exports.COMMON = __importStar(require("./common"));
|
|
39
38
|
exports.AD = __importStar(require("./ad"));
|
|
40
39
|
exports.COMPANY = __importStar(require("./company"));
|
|
@@ -6,7 +6,6 @@ import { IMotor } from "../motor/Motor";
|
|
|
6
6
|
import { IProperty } from "../property/Property";
|
|
7
7
|
import { IService } from "../service/Service";
|
|
8
8
|
import { IUsedProduct } from "../used-product/UsedProduct";
|
|
9
|
-
import { SubjectTable } from "../common/Subject";
|
|
10
9
|
import { Category } from "..";
|
|
11
10
|
export type IAd = {
|
|
12
11
|
id?: number;
|
|
@@ -92,5 +91,15 @@ export type GetAdsFilterDto = {
|
|
|
92
91
|
max_mileage?: number;
|
|
93
92
|
};
|
|
94
93
|
};
|
|
94
|
+
export type SubjectTable = "properties" | "services" | "motors" | "used_products";
|
|
95
|
+
export type ISubjectTypeOption = {
|
|
96
|
+
value: SubjectTable;
|
|
97
|
+
label: string;
|
|
98
|
+
isCategory?: boolean;
|
|
99
|
+
isAge?: boolean;
|
|
100
|
+
isCondition?: boolean;
|
|
101
|
+
color?: string;
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
};
|
|
95
104
|
export declare const emptyAd: IAd;
|
|
96
105
|
export declare const emptyValues: IAd;
|
|
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./LocalizedName"), exports);
|
|
18
18
|
__exportStar(require("./Response"), exports);
|
|
19
|
-
__exportStar(require("./Subject"), exports);
|
|
20
19
|
__exportStar(require("./Status"), exports);
|
|
21
20
|
__exportStar(require("./Config"), exports);
|
|
22
21
|
__exportStar(require("./MetaData"), exports);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * as LocalizedName from "./common/LocalizedName";
|
|
2
2
|
export * as Response from "./common/Response";
|
|
3
|
-
export * as Subject from "./common/Subject";
|
|
4
3
|
export * as Status from "./common/Status";
|
|
5
4
|
export * as AccessType from "./service/AccessType";
|
|
6
5
|
export * as Config from "./common/Config";
|
package/dist/cjs/types/index.js
CHANGED
|
@@ -36,12 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.PotentialUser = exports.Loyalty = exports.Favorite = exports.Wallet = exports.Permission = exports.Role = exports.User = exports.EventVenue = exports.EventWedding = exports.EventTimeline = exports.EventRsvp = exports.Event = exports.District = exports.City = exports.AdminBoundary = exports.WorkType = exports.UsedProductCondition = exports.UsedProductAge = exports.Unit = exports.Transmission = exports.RegionalSpec = exports.PublisherType = exports.PropertyStatus = exports.PriceType = exports.OfferType = exports.LicenseType = exports.FuelType = exports.Feature = exports.Facility = exports.Currency = exports.Color = exports.CategoryWorkType = exports.Category = exports.CarBody = exports.UsedProduct = exports.Service = exports.PropertySubType = exports.Property = exports.MotorTrim = exports.Motor = exports.AdPromotion = exports.AdLocation = exports.Ad = exports.FilterParams = exports.Config = exports.AccessType = exports.Status = exports.
|
|
40
|
-
exports.Analysis = exports.Google = exports.SocialMediaProfile = exports.SocialMediaPlatform = exports.Image = exports.Media = exports.File = exports.NotificationToken = exports.MessageTemplate = exports.Device = exports.Chat = exports.AppStartScreen = exports.MetaData =
|
|
39
|
+
exports.Company = exports.PotentialUser = exports.Loyalty = exports.Favorite = exports.Wallet = exports.Permission = exports.Role = exports.User = exports.EventVenue = exports.EventWedding = exports.EventTimeline = exports.EventRsvp = exports.Event = exports.District = exports.City = exports.AdminBoundary = exports.WorkType = exports.UsedProductCondition = exports.UsedProductAge = exports.Unit = exports.Transmission = exports.RegionalSpec = exports.PublisherType = exports.PropertyStatus = exports.PriceType = exports.OfferType = exports.LicenseType = exports.FuelType = exports.Feature = exports.Facility = exports.Currency = exports.Color = exports.CategoryWorkType = exports.Category = exports.CarBody = exports.UsedProduct = exports.Service = exports.PropertySubType = exports.Property = exports.MotorTrim = exports.Motor = exports.AdPromotion = exports.AdLocation = exports.Ad = exports.FilterParams = exports.Config = exports.AccessType = exports.Status = exports.Response = exports.LocalizedName = void 0;
|
|
40
|
+
exports.Analysis = exports.Google = exports.SocialMediaProfile = exports.SocialMediaPlatform = exports.Image = exports.Media = exports.File = exports.NotificationToken = exports.MessageTemplate = exports.Device = exports.Chat = exports.AppStartScreen = exports.MetaData = void 0;
|
|
41
41
|
// common
|
|
42
42
|
exports.LocalizedName = __importStar(require("./common/LocalizedName"));
|
|
43
43
|
exports.Response = __importStar(require("./common/Response"));
|
|
44
|
-
exports.Subject = __importStar(require("./common/Subject"));
|
|
45
44
|
exports.Status = __importStar(require("./common/Status"));
|
|
46
45
|
exports.AccessType = __importStar(require("./service/AccessType"));
|
|
47
46
|
exports.Config = __importStar(require("./common/Config"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SubjectTable } from "../ad";
|
|
2
2
|
export type PropertyBathrooms = "0" | "1" | "2" | "3" | "4" | "5" | "6";
|
|
3
3
|
export type PropertyFurnished = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "+10";
|
|
4
4
|
export type IPropertyFacility = {
|
|
@@ -2,6 +2,25 @@ import { emptyMotor } from "../motor/index.js";
|
|
|
2
2
|
import { emptyProperty } from "../property/index.js";
|
|
3
3
|
import { emptyService } from "../service/index.js";
|
|
4
4
|
import { emptyUsedProduct } from "../used-product/index.js";
|
|
5
|
+
export var SubjectTableEnum;
|
|
6
|
+
(function (SubjectTableEnum) {
|
|
7
|
+
SubjectTableEnum["PROPERTIES"] = "properties";
|
|
8
|
+
SubjectTableEnum["SERVICES"] = "services";
|
|
9
|
+
SubjectTableEnum["MOTORS"] = "motors";
|
|
10
|
+
SubjectTableEnum["USED_PRODUCTS"] = "used_products";
|
|
11
|
+
})(SubjectTableEnum || (SubjectTableEnum = {}));
|
|
12
|
+
export const SubjectTypes = {
|
|
13
|
+
[SubjectTableEnum.PROPERTIES]: "Properties",
|
|
14
|
+
[SubjectTableEnum.SERVICES]: "Services",
|
|
15
|
+
[SubjectTableEnum.MOTORS]: "Motors",
|
|
16
|
+
[SubjectTableEnum.USED_PRODUCTS]: "Used Products",
|
|
17
|
+
};
|
|
18
|
+
export const SubjectTypeOptions = [
|
|
19
|
+
{ value: SubjectTableEnum.SERVICES, label: "Services", name: { en: "Services", ar: "خدمات" }, isCategory: true, color: "#3B82F6", isAge: false, isCondition: false, isFeature: false },
|
|
20
|
+
{ value: SubjectTableEnum.MOTORS, label: "Motors", name: { en: "Motors", ar: "سيارات" }, isCategory: true, color: "#125b40ff", isAge: false, isCondition: false, isFeature: true },
|
|
21
|
+
{ value: SubjectTableEnum.USED_PRODUCTS, label: "Used Products", name: { en: "Used Products", ar: "منتجات" }, isCategory: true, color: "#6b5212ff", isAge: true, isCondition: true, isFeature: false },
|
|
22
|
+
{ value: SubjectTableEnum.PROPERTIES, label: "Properties", name: { en: "Properties", ar: "عقارات" }, isCategory: false, color: "#6c4fc3ff", isAge: true, isCondition: true, isFeature: true },
|
|
23
|
+
];
|
|
5
24
|
export const emptyAd = {
|
|
6
25
|
id: 0,
|
|
7
26
|
user_id: 0,
|
package/dist/esm/types/index.js
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
// common
|
|
5
5
|
export * as LocalizedName from "./common/LocalizedName.js";
|
|
6
6
|
export * as Response from "./common/Response.js";
|
|
7
|
-
export * as Subject from "./common/Subject.js";
|
|
8
7
|
export * as Status from "./common/Status.js";
|
|
9
8
|
export * as AccessType from "./service/AccessType.js";
|
|
10
9
|
export * as Config from "./common/Config.js";
|