@deallony/shared 1.1.74 → 1.1.76

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.
@@ -1,2 +1,2 @@
1
- import { IEvent } from "../../dto";
2
- export declare const emptyEvent: IEvent;
1
+ import { EVENTS } from "../../dto";
2
+ export declare const emptyEvent: EVENTS.IEvent;
@@ -1,2 +1,2 @@
1
- import { IEventWedding } from "../../dto";
2
- export declare const emptyEventWedding: IEventWedding;
1
+ import { EVENTS } from "../../dto";
2
+ export declare const emptyEventWedding: EVENTS.IEventWedding;
@@ -1 +1 @@
1
- export * from './events';
1
+ export * as EVENTS from './events';
@@ -10,8 +10,28 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
10
  if (k2 === undefined) k2 = k;
11
11
  o[k2] = m[k];
12
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
- };
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
16
35
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./events"), exports);
36
+ exports.EVENTS = void 0;
37
+ exports.EVENTS = __importStar(require("./events"));
@@ -1,3 +1,4 @@
1
1
  export * from './Event.dto';
2
2
  export * from './EventTimeline.dto';
3
3
  export * from './EventWedding.dto';
4
+ export { IEvent, CreateEventDto, UpdateEventDto, SaveEventDto, GetEventsFilterDto } from './Event.dto';
@@ -1,2 +1,2 @@
1
1
  export { AdDto } from './ad/Ad.dto';
2
- export * from './events';
2
+ export * as EVENTS from './events';
@@ -10,11 +10,30 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
10
  if (k2 === undefined) k2 = k;
11
11
  o[k2] = m[k];
12
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
- };
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
16
35
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.AdDto = void 0;
36
+ exports.EVENTS = exports.AdDto = void 0;
18
37
  var Ad_dto_1 = require("./ad/Ad.dto");
19
38
  Object.defineProperty(exports, "AdDto", { enumerable: true, get: function () { return Ad_dto_1.AdDto; } });
20
- __exportStar(require("./events"), exports);
39
+ exports.EVENTS = __importStar(require("./events"));
@@ -4,4 +4,5 @@ export type { FilterParams } from './types/common/FilterParams';
4
4
  export * as TYPES from './types/index';
5
5
  export * as EventsDto from './dto/events';
6
6
  export * as CONSTANTS from './constants/index';
7
+ export * as DTO from './dto/index';
7
8
  export { AdDto } from './dto';
package/dist/cjs/index.js CHANGED
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.AdDto = exports.CONSTANTS = exports.EventsDto = exports.TYPES = exports.con = exports.Converter = exports.ClassService = void 0;
36
+ exports.AdDto = exports.DTO = exports.CONSTANTS = exports.EventsDto = exports.TYPES = exports.con = exports.Converter = exports.ClassService = void 0;
37
37
  var baseService_1 = require("./abstract/baseService");
38
38
  Object.defineProperty(exports, "ClassService", { enumerable: true, get: function () { return baseService_1.ClassService; } });
39
39
  var converter_1 = require("./utils/converter");
@@ -42,5 +42,6 @@ Object.defineProperty(exports, "con", { enumerable: true, get: function () { ret
42
42
  exports.TYPES = __importStar(require("./types/index"));
43
43
  exports.EventsDto = __importStar(require("./dto/events"));
44
44
  exports.CONSTANTS = __importStar(require("./constants/index"));
45
+ exports.DTO = __importStar(require("./dto/index"));
45
46
  var dto_1 = require("./dto");
46
47
  Object.defineProperty(exports, "AdDto", { enumerable: true, get: function () { return dto_1.AdDto; } });
@@ -1,4 +1,4 @@
1
- export * from './Event.js';
2
- export * from './EventType.js';
3
- export * from './EventWedding.js';
4
- export * from './EventTemplate.js';
1
+ export * from './Event';
2
+ export * from './EventType';
3
+ export * from './EventWedding';
4
+ export * from './EventTemplate';
@@ -1 +1 @@
1
- export * from './events/index.js';
1
+ export * as EVENTS from './events';
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { saveEventWeddingSchema } from './EventWedding.dto.js';
2
+ import { saveEventWeddingSchema } from './EventWedding.dto';
3
3
  export const eventBaseSchema = z.object({
4
4
  lat: z.coerce.number().optional().nullable(),
5
5
  long: z.coerce.number().optional().nullable(),
@@ -1,3 +1,3 @@
1
- export * from './Event.dto.js';
2
- export * from './EventTimeline.dto.js';
3
- export * from './EventWedding.dto.js';
1
+ export * from './Event.dto';
2
+ export * from './EventTimeline.dto';
3
+ export * from './EventWedding.dto';
@@ -1,2 +1,2 @@
1
- export { AdDto } from './ad/Ad.dto.js';
2
- export * from './events/index.js';
1
+ export { AdDto } from './ad/Ad.dto';
2
+ export * as EVENTS from './events';
package/dist/esm/index.js CHANGED
@@ -1,6 +1,7 @@
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 * as CONSTANTS from './constants/index.js';
6
- export { AdDto } from './dto/index.js';
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 * as CONSTANTS from './constants/index';
6
+ export * as DTO from './dto/index';
7
+ export { AdDto } from './dto';
@@ -1,7 +1,7 @@
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";
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";
5
5
  export const emptyAd = {
6
6
  id: 0,
7
7
  user_id: 0,
@@ -1,3 +1,3 @@
1
- export * from "./Ad.js";
2
- export * from "./AdLocation.js";
3
- export * from "./AdPromotion.js";
1
+ export * from "./Ad";
2
+ export * from "./AdLocation";
3
+ export * from "./AdPromotion";
@@ -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.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";
4
+ export * from "./Feature";
5
+ export * from "./OfferType";
6
+ export * from "./PriceType";
7
+ export * from "./PublisherType";
8
+ export * from "./UsedProductAge";
9
+ export * from "./UsedProductCondition";
@@ -1,4 +1,4 @@
1
- export * from "./Category.js";
2
- export * from "./CategoryWorkType.js";
3
- export * from "./Color.js";
4
- export * from "./Currency.js";
1
+ export * from "./Category";
2
+ export * from "./CategoryWorkType";
3
+ export * from "./Color";
4
+ export * from "./Currency";
@@ -1,5 +1,5 @@
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
+ export * from "./LocalizedName";
2
+ export * from "./Response";
3
+ export * from "./Subject";
4
+ export * from "./Status";
5
+ export * from "./Config";
@@ -1,5 +1,5 @@
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
+ export * from "./AppStartScreen";
2
+ export * from "./Chat";
3
+ export * from "./Device";
4
+ export * from "./MessageTemplate";
5
+ export * from "./NotificationToken";
@@ -1,3 +1,3 @@
1
- export * from "./AdminBoundary.js";
2
- export * from "./City.js";
3
- export * from "./District.js";
1
+ export * from "./AdminBoundary";
2
+ export * from "./City";
3
+ export * from "./District";
@@ -1,66 +1,66 @@
1
1
  // common
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";
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";
9
9
  // listings
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";
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";
19
19
  // attributes
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";
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";
39
39
  // geo
40
- export * as AdminBoundary from "./geo/AdminBoundary.js";
41
- export * as City from "./geo/City.js";
42
- export * as District from "./geo/District.js";
40
+ export * as AdminBoundary from "./geo/AdminBoundary";
41
+ export * as City from "./geo/City";
42
+ export * as District from "./geo/District";
43
43
  // events
44
- export * as Event from "../dto/events/Event.dto.js";
45
- export * as EventWedding from "../dto/events/EventWedding.dto.js";
44
+ export * as Event from "../dto/events/Event.dto";
45
+ export * as EventWedding from "../dto/events/EventWedding.dto";
46
46
  // user
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";
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";
52
52
  // communication
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";
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";
58
58
  // media
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";
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";
63
63
  // integrations
64
- export * as Google from "./integrations/Google.js";
64
+ export * as Google from "./integrations/Google";
65
65
  // analysis
66
- export * as Analysis from "./analysis/AnalysisDailySnapshot.js";
66
+ export * as Analysis from "./analysis/AnalysisDailySnapshot";
@@ -1 +1 @@
1
- export * from "./Google.js";
1
+ export * from "./Google";
@@ -1,4 +1,4 @@
1
- export * from "./Media.js";
2
- export * from "./Image.js";
3
- export * from "./SocialMediaPlatform.js";
4
- export * from "./SocialMediaProfile.js";
1
+ export * from "./Media";
2
+ export * from "./Image";
3
+ export * from "./SocialMediaPlatform";
4
+ export * from "./SocialMediaProfile";
@@ -1,6 +1,6 @@
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
+ export * from "./CarBody";
2
+ export * from "./FuelType";
3
+ export * from "./Motor";
4
+ export * from "./MotorTrim";
5
+ export * from "./RegionalSpec";
6
+ export * from "./Transmission";
@@ -1,5 +1,5 @@
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
+ export * from "./Facility";
2
+ export * from "./LicenseType";
3
+ export * from "./Property";
4
+ export * from "./PropertyStatus";
5
+ export * from "./PropertySubType";
@@ -1,4 +1,4 @@
1
- export * from "./AccessType.js";
2
- export * from "./Service.js";
3
- export * from "./Unit.js";
4
- export * from "./WorkType.js";
1
+ export * from "./AccessType";
2
+ export * from "./Service";
3
+ export * from "./Unit";
4
+ export * from "./WorkType";
@@ -1 +1 @@
1
- export * from "./UsedProduct.js";
1
+ export * from "./UsedProduct";
@@ -1,5 +1,5 @@
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";
1
+ export * from "./User";
2
+ export * from "./Role";
3
+ export * from "./Permission";
4
+ export * from "./Wallet";
5
+ export * from "./PotentialUser";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deallony/shared",
3
- "version": "1.1.74",
3
+ "version": "1.1.76",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -24,10 +24,10 @@
24
24
  "all:update": "npm run mobile:update && npm run backend:update",
25
25
  "mobile:update": "cd ../app && npm install @deallony/shared@latest",
26
26
  "backend:update": "cd ../backend-service-marketplace && pnpm uninstall @deallony/shared && pnpm install @deallony/shared@latest",
27
- "dashboard:update": "cd ../frontend-react-aloo && pnpm uninstall @deallony/shared && pnpm install @deallony/shared@latest",
27
+ "dashboard:update": "cd ../frontend-react-aloo && node ./scripts/upgrade-dellony.js",
28
28
  "current": "npm view @deallony/shared version",
29
29
  "========": "============ DEFAULT ============",
30
- "build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && node ./scripts/fix-esm-imports.mjs",
30
+ "build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json",
31
31
  "watch": "tsc -p tsconfig.cjs.json --watch",
32
32
  "deploy:publish": "npm publish --access public"
33
33
  },