@deallony/shared 1.1.78 → 1.1.79
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/common/Subject.d.ts +8 -0
- package/dist/cjs/constants/common/Subject.js +16 -0
- package/dist/cjs/constants/common/index.d.ts +1 -0
- package/dist/cjs/constants/common/index.js +17 -0
- package/dist/cjs/constants/index.d.ts +1 -0
- package/dist/cjs/constants/index.js +2 -1
- package/dist/cjs/types/ad-common/Feature.d.ts +2 -2
- package/dist/cjs/types/common/Subject.d.ts +0 -7
- package/dist/cjs/types/common/Subject.js +0 -14
- package/dist/cjs/types/motor/Motor.d.ts +2 -2
- package/dist/cjs/types/property/Property.d.ts +2 -2
- package/dist/esm/constants/common/Subject.js +13 -0
- package/dist/esm/constants/common/index.js +1 -0
- package/dist/esm/constants/index.js +1 -0
- package/dist/esm/types/common/Subject.js +1 -13
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ISubjectTypeOption } from "../../types/common/Subject";
|
|
2
|
+
export declare enum SubjectTableEnum {
|
|
3
|
+
PROPERTIES = "properties",
|
|
4
|
+
SERVICES = "services",
|
|
5
|
+
MOTORS = "motors",
|
|
6
|
+
USED_PRODUCTS = "used_products"
|
|
7
|
+
}
|
|
8
|
+
export declare const SubjectTypeOptions: ISubjectTypeOption[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubjectTypeOptions = exports.SubjectTableEnum = void 0;
|
|
4
|
+
var SubjectTableEnum;
|
|
5
|
+
(function (SubjectTableEnum) {
|
|
6
|
+
SubjectTableEnum["PROPERTIES"] = "properties";
|
|
7
|
+
SubjectTableEnum["SERVICES"] = "services";
|
|
8
|
+
SubjectTableEnum["MOTORS"] = "motors";
|
|
9
|
+
SubjectTableEnum["USED_PRODUCTS"] = "used_products";
|
|
10
|
+
})(SubjectTableEnum || (exports.SubjectTableEnum = SubjectTableEnum = {}));
|
|
11
|
+
exports.SubjectTypeOptions = [
|
|
12
|
+
{ value: SubjectTableEnum.SERVICES, label: "Services", isCategory: true, color: "#3B82F6", isAge: false, isCondition: false, isFeature: false },
|
|
13
|
+
{ value: SubjectTableEnum.MOTORS, label: "Motors", isCategory: true, color: "#125b40ff", isAge: false, isCondition: false, isFeature: true },
|
|
14
|
+
{ value: SubjectTableEnum.USED_PRODUCTS, label: "Used Products", isCategory: true, color: "#6b5212ff", isAge: true, isCondition: true, isFeature: false },
|
|
15
|
+
{ value: SubjectTableEnum.PROPERTIES, label: "properties", isCategory: false, color: "#6c4fc3ff", isAge: true, isCondition: true, isFeature: true },
|
|
16
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Subject";
|
|
@@ -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("./Subject"), exports);
|
|
@@ -33,7 +33,8 @@ 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.PROPERTY = exports.MOTOR = exports.EVENTS = exports.AD = void 0;
|
|
36
|
+
exports.USED_PRODUCT = exports.SERVICE = exports.PROPERTY = exports.MOTOR = exports.EVENTS = exports.AD = exports.Subject = void 0;
|
|
37
|
+
exports.Subject = __importStar(require("./common/Subject"));
|
|
37
38
|
exports.AD = __importStar(require("./ad"));
|
|
38
39
|
exports.EVENTS = __importStar(require("./events"));
|
|
39
40
|
exports.MOTOR = __importStar(require("./motor"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LocalizedName } from "../common/LocalizedName";
|
|
2
|
-
import {
|
|
2
|
+
import type { SubjectTable } from "../common/Subject";
|
|
3
3
|
export type IFeature = {
|
|
4
4
|
id?: number;
|
|
5
5
|
name: LocalizedName;
|
|
6
|
-
type?:
|
|
6
|
+
type?: SubjectTable;
|
|
7
7
|
};
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
export type SubjectTable = "properties" | "services" | "motors" | "used_products";
|
|
2
|
-
export declare enum SubjectTableEnum {
|
|
3
|
-
PROPERTIES = "properties",
|
|
4
|
-
SERVICES = "services",
|
|
5
|
-
MOTORS = "motors",
|
|
6
|
-
USED_PRODUCTS = "used_products"
|
|
7
|
-
}
|
|
8
2
|
export type ISubjectTypeOption = {
|
|
9
3
|
value: SubjectTable;
|
|
10
4
|
label: string;
|
|
@@ -14,4 +8,3 @@ export type ISubjectTypeOption = {
|
|
|
14
8
|
color?: string;
|
|
15
9
|
[key: string]: any;
|
|
16
10
|
};
|
|
17
|
-
export declare const SubjectTypeOptions: ISubjectTypeOption[];
|
|
@@ -1,16 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubjectTypeOptions = exports.SubjectTableEnum = void 0;
|
|
4
|
-
var SubjectTableEnum;
|
|
5
|
-
(function (SubjectTableEnum) {
|
|
6
|
-
SubjectTableEnum["PROPERTIES"] = "properties";
|
|
7
|
-
SubjectTableEnum["SERVICES"] = "services";
|
|
8
|
-
SubjectTableEnum["MOTORS"] = "motors";
|
|
9
|
-
SubjectTableEnum["USED_PRODUCTS"] = "used_products";
|
|
10
|
-
})(SubjectTableEnum || (exports.SubjectTableEnum = SubjectTableEnum = {}));
|
|
11
|
-
exports.SubjectTypeOptions = [
|
|
12
|
-
{ value: SubjectTableEnum.SERVICES, label: "Services", isCategory: true, color: "#3B82F6", isAge: false, isCondition: false, isFeature: false },
|
|
13
|
-
{ value: SubjectTableEnum.MOTORS, label: "Motors", isCategory: true, color: "#125b40ff", isAge: false, isCondition: false, isFeature: true },
|
|
14
|
-
{ value: SubjectTableEnum.USED_PRODUCTS, label: "Used Products", isCategory: true, color: "#6b5212ff", isAge: true, isCondition: true, isFeature: false },
|
|
15
|
-
{ value: SubjectTableEnum.PROPERTIES, label: "properties", isCategory: false, color: "#6c4fc3ff", isAge: true, isCondition: true, isFeature: true },
|
|
16
|
-
];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SubjectTable } from "../common/Subject";
|
|
2
2
|
export type MotorDoors = number | null;
|
|
3
3
|
export type IMotor = {
|
|
4
4
|
id?: number;
|
|
5
|
-
componentType?:
|
|
5
|
+
componentType?: Extract<SubjectTable, "motors">;
|
|
6
6
|
trim_id?: number | null;
|
|
7
7
|
body_type_id: number;
|
|
8
8
|
regional_spec_id: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SubjectTable } from "../common/Subject";
|
|
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 = {
|
|
@@ -12,7 +12,7 @@ export type IPropertyFeature = {
|
|
|
12
12
|
};
|
|
13
13
|
export type IProperty = {
|
|
14
14
|
id?: number;
|
|
15
|
-
componentType?:
|
|
15
|
+
componentType?: Extract<SubjectTable, "properties">;
|
|
16
16
|
property_type_id?: number | null;
|
|
17
17
|
offer_type_id?: number | null;
|
|
18
18
|
price_type_id: number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export var SubjectTableEnum;
|
|
2
|
+
(function (SubjectTableEnum) {
|
|
3
|
+
SubjectTableEnum["PROPERTIES"] = "properties";
|
|
4
|
+
SubjectTableEnum["SERVICES"] = "services";
|
|
5
|
+
SubjectTableEnum["MOTORS"] = "motors";
|
|
6
|
+
SubjectTableEnum["USED_PRODUCTS"] = "used_products";
|
|
7
|
+
})(SubjectTableEnum || (SubjectTableEnum = {}));
|
|
8
|
+
export const SubjectTypeOptions = [
|
|
9
|
+
{ value: SubjectTableEnum.SERVICES, label: "Services", isCategory: true, color: "#3B82F6", isAge: false, isCondition: false, isFeature: false },
|
|
10
|
+
{ value: SubjectTableEnum.MOTORS, label: "Motors", isCategory: true, color: "#125b40ff", isAge: false, isCondition: false, isFeature: true },
|
|
11
|
+
{ value: SubjectTableEnum.USED_PRODUCTS, label: "Used Products", isCategory: true, color: "#6b5212ff", isAge: true, isCondition: true, isFeature: false },
|
|
12
|
+
{ value: SubjectTableEnum.PROPERTIES, label: "properties", isCategory: false, color: "#6c4fc3ff", isAge: true, isCondition: true, isFeature: true },
|
|
13
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Subject.js";
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
(function (SubjectTableEnum) {
|
|
3
|
-
SubjectTableEnum["PROPERTIES"] = "properties";
|
|
4
|
-
SubjectTableEnum["SERVICES"] = "services";
|
|
5
|
-
SubjectTableEnum["MOTORS"] = "motors";
|
|
6
|
-
SubjectTableEnum["USED_PRODUCTS"] = "used_products";
|
|
7
|
-
})(SubjectTableEnum || (SubjectTableEnum = {}));
|
|
8
|
-
export const SubjectTypeOptions = [
|
|
9
|
-
{ value: SubjectTableEnum.SERVICES, label: "Services", isCategory: true, color: "#3B82F6", isAge: false, isCondition: false, isFeature: false },
|
|
10
|
-
{ value: SubjectTableEnum.MOTORS, label: "Motors", isCategory: true, color: "#125b40ff", isAge: false, isCondition: false, isFeature: true },
|
|
11
|
-
{ value: SubjectTableEnum.USED_PRODUCTS, label: "Used Products", isCategory: true, color: "#6b5212ff", isAge: true, isCondition: true, isFeature: false },
|
|
12
|
-
{ value: SubjectTableEnum.PROPERTIES, label: "properties", isCategory: false, color: "#6c4fc3ff", isAge: true, isCondition: true, isFeature: true },
|
|
13
|
-
];
|
|
1
|
+
export {};
|