@deallony/shared 1.1.63 → 1.1.65
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/dto/events/EventTemplate.dto.d.ts +17 -76
- package/dist/cjs/dto/events/EventTemplate.dto.js +8 -35
- package/dist/esm/dto/events/Event.js +1 -1
- package/dist/esm/dto/events/EventTemplate.dto.js +7 -34
- package/dist/esm/dto/events/EventTemplate.js +1 -1
- package/dist/esm/dto/events/EventType.js +1 -1
- package/dist/esm/dto/events/index.js +4 -4
- package/dist/esm/dto/index.js +2 -2
- package/dist/esm/index.js +5 -5
- package/dist/esm/types/ad/Ad.js +4 -4
- package/dist/esm/types/ad/index.js +3 -3
- package/dist/esm/types/ad-common/index.js +6 -6
- package/dist/esm/types/attributes/index.js +4 -4
- package/dist/esm/types/common/index.js +5 -5
- package/dist/esm/types/communication/index.js +5 -5
- package/dist/esm/types/events/EventTemplate.js +1 -1
- package/dist/esm/types/events/EventType.js +1 -1
- package/dist/esm/types/events/index.js +4 -4
- package/dist/esm/types/geo/index.js +3 -3
- package/dist/esm/types/index.js +56 -56
- package/dist/esm/types/integrations/index.js +1 -1
- package/dist/esm/types/listings/Ad.js +4 -4
- package/dist/esm/types/listings/index.js +5 -5
- package/dist/esm/types/media/index.js +4 -4
- package/dist/esm/types/motor/index.js +6 -6
- package/dist/esm/types/property/index.js +5 -5
- package/dist/esm/types/service/index.js +4 -4
- package/dist/esm/types/used-product/index.js +1 -1
- package/dist/esm/types/user/index.js +5 -5
- package/package.json +2 -2
|
@@ -1,77 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
active: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
religion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
event_type_id: z.ZodCoercedNumber<unknown>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export declare const createEventTemplateSchema: z.ZodObject<{
|
|
16
|
-
code: z.ZodString;
|
|
17
|
-
name: z.ZodObject<{
|
|
18
|
-
en: z.ZodString;
|
|
19
|
-
ar: z.ZodString;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
active: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
-
religion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
event_type_id: z.ZodCoercedNumber<unknown>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
export declare const updateEventTemplateSchema: z.ZodObject<{
|
|
26
|
-
code: z.ZodString;
|
|
27
|
-
name: z.ZodObject<{
|
|
28
|
-
en: z.ZodString;
|
|
29
|
-
ar: z.ZodString;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
active: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
religion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
-
event_type_id: z.ZodCoercedNumber<unknown>;
|
|
34
|
-
id: z.ZodCoercedNumber<unknown>;
|
|
35
|
-
}, z.core.$strip>;
|
|
36
|
-
export declare const saveEventTemplateSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
37
|
-
code: z.ZodString;
|
|
38
|
-
name: z.ZodObject<{
|
|
39
|
-
en: z.ZodString;
|
|
40
|
-
ar: z.ZodString;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
active: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
-
religion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
-
event_type_id: z.ZodCoercedNumber<unknown>;
|
|
45
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
-
code: z.ZodString;
|
|
47
|
-
name: z.ZodObject<{
|
|
48
|
-
en: z.ZodString;
|
|
49
|
-
ar: z.ZodString;
|
|
50
|
-
}, z.core.$strip>;
|
|
51
|
-
active: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
-
religion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
-
event_type_id: z.ZodCoercedNumber<unknown>;
|
|
54
|
-
id: z.ZodCoercedNumber<unknown>;
|
|
55
|
-
}, z.core.$strip>]>;
|
|
56
|
-
export declare const getEventTemplatesFilterSchema: z.ZodObject<{
|
|
57
|
-
search: z.ZodOptional<z.ZodString>;
|
|
58
|
-
active: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
-
event_type_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
60
|
-
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
61
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
export type CreateEventTemplateDto = z.infer<typeof createEventTemplateSchema>;
|
|
64
|
-
export type UpdateEventTemplateDto = z.infer<typeof updateEventTemplateSchema>;
|
|
65
|
-
export type SaveEventTemplateDto = z.infer<typeof saveEventTemplateSchema>;
|
|
66
|
-
export type GetEventTemplatesFilterDto = z.infer<typeof getEventTemplatesFilterSchema>;
|
|
67
|
-
export type IEventTemplate = {
|
|
68
|
-
id?: number;
|
|
69
|
-
code: string;
|
|
70
|
-
name: LocalizedName;
|
|
71
|
-
active: boolean;
|
|
72
|
-
religion: string | null;
|
|
73
|
-
event_type_id: number;
|
|
74
|
-
eventType?: IEventType;
|
|
75
|
-
weddings?: IEventWedding[];
|
|
1
|
+
export declare const EventTemplate: {
|
|
2
|
+
WEDDING: {
|
|
3
|
+
value: string;
|
|
4
|
+
name: {
|
|
5
|
+
en: string;
|
|
6
|
+
ar: string;
|
|
7
|
+
};
|
|
8
|
+
event_types: string[];
|
|
9
|
+
};
|
|
76
10
|
};
|
|
77
|
-
export declare const
|
|
11
|
+
export declare const EventTemplateOptions: {
|
|
12
|
+
value: string;
|
|
13
|
+
name: {
|
|
14
|
+
en: string;
|
|
15
|
+
ar: string;
|
|
16
|
+
};
|
|
17
|
+
event_types: string[];
|
|
18
|
+
}[];
|
|
@@ -1,38 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const localizedName_dto_1 = require("../common/localizedName.dto");
|
|
7
|
-
exports.eventTemplateBaseSchema = zod_1.z.object({
|
|
8
|
-
code: zod_1.z.string().trim().min(1).max(100),
|
|
9
|
-
name: localizedName_dto_1.localizedNameSchema,
|
|
10
|
-
active: zod_1.z.boolean().optional(),
|
|
11
|
-
religion: zod_1.z.string().trim().max(100).nullable().optional(),
|
|
12
|
-
event_type_id: zod_1.z.coerce.number().int().positive(),
|
|
13
|
-
});
|
|
14
|
-
exports.createEventTemplateSchema = exports.eventTemplateBaseSchema;
|
|
15
|
-
exports.updateEventTemplateSchema = exports.eventTemplateBaseSchema.extend({
|
|
16
|
-
id: zod_1.z.coerce.number().int().positive(),
|
|
17
|
-
});
|
|
18
|
-
exports.saveEventTemplateSchema = zod_1.z.union([
|
|
19
|
-
exports.createEventTemplateSchema,
|
|
20
|
-
exports.updateEventTemplateSchema,
|
|
21
|
-
]);
|
|
22
|
-
exports.getEventTemplatesFilterSchema = zod_1.z.object({
|
|
23
|
-
search: zod_1.z.string().trim().optional(),
|
|
24
|
-
active: zod_1.z.boolean().optional(),
|
|
25
|
-
event_type_id: zod_1.z.coerce.number().int().positive().optional(),
|
|
26
|
-
page: zod_1.z.coerce.number().int().positive().optional(),
|
|
27
|
-
limit: zod_1.z.coerce.number().int().positive().max(100).optional(),
|
|
28
|
-
});
|
|
29
|
-
exports.emptyEventTemplate = {
|
|
30
|
-
id: 0,
|
|
31
|
-
code: '',
|
|
32
|
-
name: (0, LocalizedName_1.createEmptyLocalizedName)(),
|
|
33
|
-
active: true,
|
|
34
|
-
religion: null,
|
|
35
|
-
event_type_id: 0,
|
|
36
|
-
eventType: undefined,
|
|
37
|
-
weddings: [],
|
|
3
|
+
exports.EventTemplateOptions = exports.EventTemplate = void 0;
|
|
4
|
+
exports.EventTemplate = {
|
|
5
|
+
WEDDING: { value: 'wedding-1', name: { en: 'Wedding', ar: 'زفاف' }, event_types: ['wedding'] },
|
|
38
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
|
+
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { emptyEvent } from './Event.dto';
|
|
1
|
+
export { emptyEvent } from './Event.dto.js';
|
|
@@ -1,35 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { localizedNameSchema } from '../common/localizedName.dto';
|
|
4
|
-
export const eventTemplateBaseSchema = z.object({
|
|
5
|
-
code: z.string().trim().min(1).max(100),
|
|
6
|
-
name: localizedNameSchema,
|
|
7
|
-
active: z.boolean().optional(),
|
|
8
|
-
religion: z.string().trim().max(100).nullable().optional(),
|
|
9
|
-
event_type_id: z.coerce.number().int().positive(),
|
|
10
|
-
});
|
|
11
|
-
export const createEventTemplateSchema = eventTemplateBaseSchema;
|
|
12
|
-
export const updateEventTemplateSchema = eventTemplateBaseSchema.extend({
|
|
13
|
-
id: z.coerce.number().int().positive(),
|
|
14
|
-
});
|
|
15
|
-
export const saveEventTemplateSchema = z.union([
|
|
16
|
-
createEventTemplateSchema,
|
|
17
|
-
updateEventTemplateSchema,
|
|
18
|
-
]);
|
|
19
|
-
export const getEventTemplatesFilterSchema = z.object({
|
|
20
|
-
search: z.string().trim().optional(),
|
|
21
|
-
active: z.boolean().optional(),
|
|
22
|
-
event_type_id: z.coerce.number().int().positive().optional(),
|
|
23
|
-
page: z.coerce.number().int().positive().optional(),
|
|
24
|
-
limit: z.coerce.number().int().positive().max(100).optional(),
|
|
25
|
-
});
|
|
26
|
-
export const emptyEventTemplate = {
|
|
27
|
-
id: 0,
|
|
28
|
-
code: '',
|
|
29
|
-
name: createEmptyLocalizedName(),
|
|
30
|
-
active: true,
|
|
31
|
-
religion: null,
|
|
32
|
-
event_type_id: 0,
|
|
33
|
-
eventType: undefined,
|
|
34
|
-
weddings: [],
|
|
1
|
+
export const EventTemplate = {
|
|
2
|
+
WEDDING: { value: 'wedding-1', name: { en: 'Wedding', ar: 'زفاف' }, event_types: ['wedding'] },
|
|
35
3
|
};
|
|
4
|
+
export const EventTemplateOptions = Object.values(EventTemplate).map((type) => ({
|
|
5
|
+
value: type.value,
|
|
6
|
+
name: type.name,
|
|
7
|
+
event_types: type.event_types,
|
|
8
|
+
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { emptyEventType } from './EventType.dto';
|
|
1
|
+
export { emptyEventType } from './EventType.dto.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './Event.dto';
|
|
2
|
-
export * from './EventTimeline.dto';
|
|
3
|
-
export * from './EventWedding.dto';
|
|
4
|
-
export * from './EventType.dto';
|
|
1
|
+
export * from './Event.dto.js';
|
|
2
|
+
export * from './EventTimeline.dto.js';
|
|
3
|
+
export * from './EventWedding.dto.js';
|
|
4
|
+
export * from './EventType.dto.js';
|
package/dist/esm/dto/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AdDto } from './ad/Ad.dto';
|
|
2
|
-
export * from './events';
|
|
1
|
+
export { AdDto } from './ad/Ad.dto.js';
|
|
2
|
+
export * from './events/index.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ClassService } from './abstract/baseService';
|
|
2
|
-
export { Converter, Converter as con } from './utils/converter';
|
|
3
|
-
export * as TYPES from './types/index';
|
|
4
|
-
export * as EventsDto from './dto/events';
|
|
5
|
-
export { AdDto } from './dto';
|
|
1
|
+
export { ClassService } from './abstract/baseService.js';
|
|
2
|
+
export { Converter, Converter as con } from './utils/converter.js';
|
|
3
|
+
export * as TYPES from './types/index.js';
|
|
4
|
+
export * as EventsDto from './dto/events/index.js';
|
|
5
|
+
export { AdDto } from './dto/index.js';
|
package/dist/esm/types/ad/Ad.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { emptyMotor } from "../motor/Motor";
|
|
2
|
-
import { emptyProperty } from "../property/Property";
|
|
3
|
-
import { emptyService } from "../service/Service";
|
|
4
|
-
import { emptyUsedProduct } from "../used-product/UsedProduct";
|
|
1
|
+
import { emptyMotor } from "../motor/Motor.js";
|
|
2
|
+
import { emptyProperty } from "../property/Property.js";
|
|
3
|
+
import { emptyService } from "../service/Service.js";
|
|
4
|
+
import { emptyUsedProduct } from "../used-product/UsedProduct.js";
|
|
5
5
|
export const emptyAd = {
|
|
6
6
|
id: 0,
|
|
7
7
|
user_id: 0,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./Ad";
|
|
2
|
-
export * from "./AdLocation";
|
|
3
|
-
export * from "./AdPromotion";
|
|
1
|
+
export * from "./Ad.js";
|
|
2
|
+
export * from "./AdLocation.js";
|
|
3
|
+
export * from "./AdPromotion.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// ==========================================================================================
|
|
2
2
|
// these types are shared between different ad types, so they are placed in a common folder
|
|
3
3
|
// ==========================================================================================
|
|
4
|
-
export * from "./Feature";
|
|
5
|
-
export * from "./OfferType";
|
|
6
|
-
export * from "./PriceType";
|
|
7
|
-
export * from "./PublisherType";
|
|
8
|
-
export * from "./UsedProductAge";
|
|
9
|
-
export * from "./UsedProductCondition";
|
|
4
|
+
export * from "./Feature.js";
|
|
5
|
+
export * from "./OfferType.js";
|
|
6
|
+
export * from "./PriceType.js";
|
|
7
|
+
export * from "./PublisherType.js";
|
|
8
|
+
export * from "./UsedProductAge.js";
|
|
9
|
+
export * from "./UsedProductCondition.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./Category";
|
|
2
|
-
export * from "./CategoryWorkType";
|
|
3
|
-
export * from "./Color";
|
|
4
|
-
export * from "./Currency";
|
|
1
|
+
export * from "./Category.js";
|
|
2
|
+
export * from "./CategoryWorkType.js";
|
|
3
|
+
export * from "./Color.js";
|
|
4
|
+
export * from "./Currency.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./LocalizedName";
|
|
2
|
-
export * from "./Response";
|
|
3
|
-
export * from "./Subject";
|
|
4
|
-
export * from "./Status";
|
|
5
|
-
export * from "./Config";
|
|
1
|
+
export * from "./LocalizedName.js";
|
|
2
|
+
export * from "./Response.js";
|
|
3
|
+
export * from "./Subject.js";
|
|
4
|
+
export * from "./Status.js";
|
|
5
|
+
export * from "./Config.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./AppStartScreen";
|
|
2
|
-
export * from "./Chat";
|
|
3
|
-
export * from "./Device";
|
|
4
|
-
export * from "./MessageTemplate";
|
|
5
|
-
export * from "./NotificationToken";
|
|
1
|
+
export * from "./AppStartScreen.js";
|
|
2
|
+
export * from "./Chat.js";
|
|
3
|
+
export * from "./Device.js";
|
|
4
|
+
export * from "./MessageTemplate.js";
|
|
5
|
+
export * from "./NotificationToken.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './Event';
|
|
2
|
-
export * from './EventTemplate';
|
|
3
|
-
export * from './EventType';
|
|
4
|
-
export * from './EventWedding';
|
|
1
|
+
export * from './Event.js';
|
|
2
|
+
export * from './EventTemplate.js';
|
|
3
|
+
export * from './EventType.js';
|
|
4
|
+
export * from './EventWedding.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./AdminBoundary";
|
|
2
|
-
export * from "./City";
|
|
3
|
-
export * from "./District";
|
|
1
|
+
export * from "./AdminBoundary.js";
|
|
2
|
+
export * from "./City.js";
|
|
3
|
+
export * from "./District.js";
|
package/dist/esm/types/index.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
// common
|
|
2
|
-
export * as LocalizedName from "./common/LocalizedName";
|
|
3
|
-
export * as Response from "./common/Response";
|
|
4
|
-
export * as Subject from "./common/Subject";
|
|
5
|
-
export * as Status from "./common/Status";
|
|
6
|
-
export * as AccessType from "./service/AccessType";
|
|
7
|
-
export * as Config from "./common/Config";
|
|
8
|
-
export * as FilterParams from "./common/FilterParams";
|
|
2
|
+
export * as LocalizedName from "./common/LocalizedName.js";
|
|
3
|
+
export * as Response from "./common/Response.js";
|
|
4
|
+
export * as Subject from "./common/Subject.js";
|
|
5
|
+
export * as Status from "./common/Status.js";
|
|
6
|
+
export * as AccessType from "./service/AccessType.js";
|
|
7
|
+
export * as Config from "./common/Config.js";
|
|
8
|
+
export * as FilterParams from "./common/FilterParams.js";
|
|
9
9
|
// listings
|
|
10
|
-
export * as Ad from "./ad/Ad";
|
|
11
|
-
export * as AdLocation from "./ad/AdLocation";
|
|
12
|
-
export * as AdPromotion from "./ad/AdPromotion";
|
|
13
|
-
export * as Motor from "./motor/Motor";
|
|
14
|
-
export * as MotorTrim from "./motor/MotorTrim";
|
|
15
|
-
export * as Property from "./property/Property";
|
|
16
|
-
export * as PropertySubType from "./property/PropertySubType";
|
|
17
|
-
export * as Service from "./service/Service";
|
|
18
|
-
export * as UsedProduct from "./used-product/UsedProduct";
|
|
10
|
+
export * as Ad from "./ad/Ad.js";
|
|
11
|
+
export * as AdLocation from "./ad/AdLocation.js";
|
|
12
|
+
export * as AdPromotion from "./ad/AdPromotion.js";
|
|
13
|
+
export * as Motor from "./motor/Motor.js";
|
|
14
|
+
export * as MotorTrim from "./motor/MotorTrim.js";
|
|
15
|
+
export * as Property from "./property/Property.js";
|
|
16
|
+
export * as PropertySubType from "./property/PropertySubType.js";
|
|
17
|
+
export * as Service from "./service/Service.js";
|
|
18
|
+
export * as UsedProduct from "./used-product/UsedProduct.js";
|
|
19
19
|
// attributes
|
|
20
|
-
export * as CarBody from "./motor/CarBody";
|
|
21
|
-
export * as Category from "./attributes/Category";
|
|
22
|
-
export * as CategoryWorkType from "./attributes/CategoryWorkType";
|
|
23
|
-
export * as Color from "./attributes/Color";
|
|
24
|
-
export * as Currency from "./attributes/Currency";
|
|
25
|
-
export * as Facility from "./property/Facility";
|
|
26
|
-
export * as Feature from "./ad-common/Feature";
|
|
27
|
-
export * as FuelType from "./motor/FuelType";
|
|
28
|
-
export * as LicenseType from "./property/LicenseType";
|
|
29
|
-
export * as OfferType from "./ad-common/OfferType";
|
|
30
|
-
export * as PriceType from "./ad-common/PriceType";
|
|
31
|
-
export * as PropertyStatus from "./property/PropertyStatus";
|
|
32
|
-
export * as PublisherType from "./ad-common/PublisherType";
|
|
33
|
-
export * as RegionalSpec from "./motor/RegionalSpec";
|
|
34
|
-
export * as Transmission from "./motor/Transmission";
|
|
35
|
-
export * as Unit from "./service/Unit";
|
|
36
|
-
export * as UsedProductAge from "./ad-common/UsedProductAge";
|
|
37
|
-
export * as UsedProductCondition from "./ad-common/UsedProductCondition";
|
|
38
|
-
export * as WorkType from "./service/WorkType";
|
|
20
|
+
export * as CarBody from "./motor/CarBody.js";
|
|
21
|
+
export * as Category from "./attributes/Category.js";
|
|
22
|
+
export * as CategoryWorkType from "./attributes/CategoryWorkType.js";
|
|
23
|
+
export * as Color from "./attributes/Color.js";
|
|
24
|
+
export * as Currency from "./attributes/Currency.js";
|
|
25
|
+
export * as Facility from "./property/Facility.js";
|
|
26
|
+
export * as Feature from "./ad-common/Feature.js";
|
|
27
|
+
export * as FuelType from "./motor/FuelType.js";
|
|
28
|
+
export * as LicenseType from "./property/LicenseType.js";
|
|
29
|
+
export * as OfferType from "./ad-common/OfferType.js";
|
|
30
|
+
export * as PriceType from "./ad-common/PriceType.js";
|
|
31
|
+
export * as PropertyStatus from "./property/PropertyStatus.js";
|
|
32
|
+
export * as PublisherType from "./ad-common/PublisherType.js";
|
|
33
|
+
export * as RegionalSpec from "./motor/RegionalSpec.js";
|
|
34
|
+
export * as Transmission from "./motor/Transmission.js";
|
|
35
|
+
export * as Unit from "./service/Unit.js";
|
|
36
|
+
export * as UsedProductAge from "./ad-common/UsedProductAge.js";
|
|
37
|
+
export * as UsedProductCondition from "./ad-common/UsedProductCondition.js";
|
|
38
|
+
export * as WorkType from "./service/WorkType.js";
|
|
39
39
|
// geo
|
|
40
|
-
export * as AdminBoundary from "./geo/AdminBoundary";
|
|
41
|
-
export * as City from "./geo/City";
|
|
42
|
-
export * as District from "./geo/District";
|
|
40
|
+
export * as AdminBoundary from "./geo/AdminBoundary.js";
|
|
41
|
+
export * as City from "./geo/City.js";
|
|
42
|
+
export * as District from "./geo/District.js";
|
|
43
43
|
// events
|
|
44
|
-
export * as Event from "../dto/events/Event.dto";
|
|
45
|
-
export * as EventWedding from "../dto/events/EventWedding.dto";
|
|
44
|
+
export * as Event from "../dto/events/Event.dto.js";
|
|
45
|
+
export * as EventWedding from "../dto/events/EventWedding.dto.js";
|
|
46
46
|
// user
|
|
47
|
-
export * as User from "./user/User";
|
|
48
|
-
export * as Role from "./user/Role";
|
|
49
|
-
export * as Permission from "./user/Permission";
|
|
50
|
-
export * as Wallet from "./user/Wallet";
|
|
51
|
-
export * as PotentialUser from "./user/PotentialUser";
|
|
47
|
+
export * as User from "./user/User.js";
|
|
48
|
+
export * as Role from "./user/Role.js";
|
|
49
|
+
export * as Permission from "./user/Permission.js";
|
|
50
|
+
export * as Wallet from "./user/Wallet.js";
|
|
51
|
+
export * as PotentialUser from "./user/PotentialUser.js";
|
|
52
52
|
// communication
|
|
53
|
-
export * as AppStartScreen from "./communication/AppStartScreen";
|
|
54
|
-
export * as Chat from "./communication/Chat";
|
|
55
|
-
export * as Device from "./communication/Device";
|
|
56
|
-
export * as MessageTemplate from "./communication/MessageTemplate";
|
|
57
|
-
export * as NotificationToken from "./communication/NotificationToken";
|
|
53
|
+
export * as AppStartScreen from "./communication/AppStartScreen.js";
|
|
54
|
+
export * as Chat from "./communication/Chat.js";
|
|
55
|
+
export * as Device from "./communication/Device.js";
|
|
56
|
+
export * as MessageTemplate from "./communication/MessageTemplate.js";
|
|
57
|
+
export * as NotificationToken from "./communication/NotificationToken.js";
|
|
58
58
|
// media
|
|
59
|
-
export * as Media from "./media/Media";
|
|
60
|
-
export * as Image from "./media/Image";
|
|
61
|
-
export * as SocialMediaPlatform from "./media/SocialMediaPlatform";
|
|
62
|
-
export * as SocialMediaProfile from "./media/SocialMediaProfile";
|
|
59
|
+
export * as Media from "./media/Media.js";
|
|
60
|
+
export * as Image from "./media/Image.js";
|
|
61
|
+
export * as SocialMediaPlatform from "./media/SocialMediaPlatform.js";
|
|
62
|
+
export * as SocialMediaProfile from "./media/SocialMediaProfile.js";
|
|
63
63
|
// integrations
|
|
64
|
-
export * as Google from "./integrations/Google";
|
|
64
|
+
export * as Google from "./integrations/Google.js";
|
|
65
65
|
// analysis
|
|
66
|
-
export * as Analysis from "./analysis/AnalysisDailySnapshot";
|
|
66
|
+
export * as Analysis from "./analysis/AnalysisDailySnapshot.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Google";
|
|
1
|
+
export * from "./Google.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { emptyMotor } from "./Motor";
|
|
2
|
-
import { emptyProperty } from "./Property";
|
|
3
|
-
import { emptyService } from "./Service";
|
|
4
|
-
import { emptyUsedProduct } from "./UsedProduct";
|
|
1
|
+
import { emptyMotor } from "./Motor.js";
|
|
2
|
+
import { emptyProperty } from "./Property.js";
|
|
3
|
+
import { emptyService } from "./Service.js";
|
|
4
|
+
import { emptyUsedProduct } from "./UsedProduct.js";
|
|
5
5
|
export const emptyAd = {
|
|
6
6
|
id: 0,
|
|
7
7
|
user_id: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "../ad";
|
|
2
|
-
export * from "../motor";
|
|
3
|
-
export * from "../property";
|
|
4
|
-
export * from "../service";
|
|
5
|
-
export * from "../used-product";
|
|
1
|
+
export * from "../ad/index.js";
|
|
2
|
+
export * from "../motor/index.js";
|
|
3
|
+
export * from "../property/index.js";
|
|
4
|
+
export * from "../service/index.js";
|
|
5
|
+
export * from "../used-product/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./Media";
|
|
2
|
-
export * from "./Image";
|
|
3
|
-
export * from "./SocialMediaPlatform";
|
|
4
|
-
export * from "./SocialMediaProfile";
|
|
1
|
+
export * from "./Media.js";
|
|
2
|
+
export * from "./Image.js";
|
|
3
|
+
export * from "./SocialMediaPlatform.js";
|
|
4
|
+
export * from "./SocialMediaProfile.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./CarBody";
|
|
2
|
-
export * from "./FuelType";
|
|
3
|
-
export * from "./Motor";
|
|
4
|
-
export * from "./MotorTrim";
|
|
5
|
-
export * from "./RegionalSpec";
|
|
6
|
-
export * from "./Transmission";
|
|
1
|
+
export * from "./CarBody.js";
|
|
2
|
+
export * from "./FuelType.js";
|
|
3
|
+
export * from "./Motor.js";
|
|
4
|
+
export * from "./MotorTrim.js";
|
|
5
|
+
export * from "./RegionalSpec.js";
|
|
6
|
+
export * from "./Transmission.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./Facility";
|
|
2
|
-
export * from "./LicenseType";
|
|
3
|
-
export * from "./Property";
|
|
4
|
-
export * from "./PropertyStatus";
|
|
5
|
-
export * from "./PropertySubType";
|
|
1
|
+
export * from "./Facility.js";
|
|
2
|
+
export * from "./LicenseType.js";
|
|
3
|
+
export * from "./Property.js";
|
|
4
|
+
export * from "./PropertyStatus.js";
|
|
5
|
+
export * from "./PropertySubType.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./AccessType";
|
|
2
|
-
export * from "./Service";
|
|
3
|
-
export * from "./Unit";
|
|
4
|
-
export * from "./WorkType";
|
|
1
|
+
export * from "./AccessType.js";
|
|
2
|
+
export * from "./Service.js";
|
|
3
|
+
export * from "./Unit.js";
|
|
4
|
+
export * from "./WorkType.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./UsedProduct";
|
|
1
|
+
export * from "./UsedProduct.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./User";
|
|
2
|
-
export * from "./Role";
|
|
3
|
-
export * from "./Permission";
|
|
4
|
-
export * from "./Wallet";
|
|
5
|
-
export * from "./PotentialUser";
|
|
1
|
+
export * from "./User.js";
|
|
2
|
+
export * from "./Role.js";
|
|
3
|
+
export * from "./Permission.js";
|
|
4
|
+
export * from "./Wallet.js";
|
|
5
|
+
export * from "./PotentialUser.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deallony/shared",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.65",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dashboard:update": "cd ../frontend-react-aloo && pnpm uninstall @deallony/shared && pnpm install @deallony/shared@latest",
|
|
28
28
|
"current": "npm view @deallony/shared version",
|
|
29
29
|
"========": "============ DEFAULT ============",
|
|
30
|
-
"build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json",
|
|
30
|
+
"build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && node ./scripts/fix-esm-imports.mjs",
|
|
31
31
|
"watch": "tsc -p tsconfig.cjs.json --watch",
|
|
32
32
|
"deploy:publish": "npm publish --access public"
|
|
33
33
|
},
|