@deallony/shared 1.1.73 → 1.1.75

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"));
@@ -8,7 +8,6 @@ export declare const eventBaseSchema: z.ZodObject<{
8
8
  end_date: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
9
9
  is_published: z.ZodOptional<z.ZodBoolean>;
10
10
  slug: z.ZodString;
11
- ss: z.ZodString;
12
11
  wedding: z.ZodUnion<readonly [z.ZodObject<{
13
12
  event_id: z.ZodCoercedNumber<unknown>;
14
13
  cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -35,7 +34,6 @@ export declare const createEventSchema: z.ZodObject<{
35
34
  end_date: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
36
35
  is_published: z.ZodOptional<z.ZodBoolean>;
37
36
  slug: z.ZodString;
38
- ss: z.ZodString;
39
37
  wedding: z.ZodUnion<readonly [z.ZodObject<{
40
38
  event_id: z.ZodCoercedNumber<unknown>;
41
39
  cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -62,7 +60,6 @@ export declare const updateEventSchema: z.ZodObject<{
62
60
  end_date: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
63
61
  is_published: z.ZodOptional<z.ZodBoolean>;
64
62
  slug: z.ZodString;
65
- ss: z.ZodString;
66
63
  wedding: z.ZodUnion<readonly [z.ZodObject<{
67
64
  event_id: z.ZodCoercedNumber<unknown>;
68
65
  cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -90,7 +87,6 @@ export declare const saveEventSchema: z.ZodUnion<readonly [z.ZodObject<{
90
87
  end_date: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
91
88
  is_published: z.ZodOptional<z.ZodBoolean>;
92
89
  slug: z.ZodString;
93
- ss: z.ZodString;
94
90
  wedding: z.ZodUnion<readonly [z.ZodObject<{
95
91
  event_id: z.ZodCoercedNumber<unknown>;
96
92
  cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -116,7 +112,6 @@ export declare const saveEventSchema: z.ZodUnion<readonly [z.ZodObject<{
116
112
  end_date: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
117
113
  is_published: z.ZodOptional<z.ZodBoolean>;
118
114
  slug: z.ZodString;
119
- ss: z.ZodString;
120
115
  wedding: z.ZodUnion<readonly [z.ZodObject<{
121
116
  event_id: z.ZodCoercedNumber<unknown>;
122
117
  cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -10,7 +10,6 @@ exports.eventBaseSchema = zod_1.z.object({
10
10
  end_date: zod_1.z.coerce.date().optional().nullable(),
11
11
  is_published: zod_1.z.boolean().optional(),
12
12
  slug: zod_1.z.string().trim().min(1).max(255),
13
- ss: zod_1.z.string().trim().min(1).max(255),
14
13
  wedding: EventWedding_dto_1.saveEventWeddingSchema,
15
14
  event_type: zod_1.z.string().trim().max(255).nullable().optional(),
16
15
  event_template: zod_1.z.string().trim().max(255).nullable().optional(),
@@ -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"));
@@ -3,4 +3,6 @@ export { Converter, Converter as con } from './utils/converter';
3
3
  export type { FilterParams } from './types/common/FilterParams';
4
4
  export * as TYPES from './types/index';
5
5
  export * as EventsDto from './dto/events';
6
+ export * as CONSTANTS from './constants/index';
7
+ export * as DTO from './dto/index';
6
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.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");
@@ -41,5 +41,7 @@ Object.defineProperty(exports, "Converter", { enumerable: true, get: function ()
41
41
  Object.defineProperty(exports, "con", { enumerable: true, get: function () { return converter_1.Converter; } });
42
42
  exports.TYPES = __importStar(require("./types/index"));
43
43
  exports.EventsDto = __importStar(require("./dto/events"));
44
+ exports.CONSTANTS = __importStar(require("./constants/index"));
45
+ exports.DTO = __importStar(require("./dto/index"));
44
46
  var dto_1 = require("./dto");
45
47
  Object.defineProperty(exports, "AdDto", { enumerable: true, get: function () { return dto_1.AdDto; } });
@@ -1 +1 @@
1
- export * from './events/index.js';
1
+ export * as EVENTS from './events/index.js';
@@ -7,7 +7,6 @@ export const eventBaseSchema = z.object({
7
7
  end_date: z.coerce.date().optional().nullable(),
8
8
  is_published: z.boolean().optional(),
9
9
  slug: z.string().trim().min(1).max(255),
10
- ss: z.string().trim().min(1).max(255),
11
10
  wedding: saveEventWeddingSchema,
12
11
  event_type: z.string().trim().max(255).nullable().optional(),
13
12
  event_template: z.string().trim().max(255).nullable().optional(),
@@ -1,2 +1,2 @@
1
1
  export { AdDto } from './ad/Ad.dto.js';
2
- export * from './events/index.js';
2
+ export * as EVENTS from './events/index.js';
package/dist/esm/index.js CHANGED
@@ -2,4 +2,6 @@ export { ClassService } from './abstract/baseService.js';
2
2
  export { Converter, Converter as con } from './utils/converter.js';
3
3
  export * as TYPES from './types/index.js';
4
4
  export * as EventsDto from './dto/events/index.js';
5
+ export * as CONSTANTS from './constants/index.js';
6
+ export * as DTO from './dto/index.js';
5
7
  export { AdDto } from './dto/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deallony/shared",
3
- "version": "1.1.73",
3
+ "version": "1.1.75",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -24,7 +24,7 @@
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
30
  "build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && node ./scripts/fix-esm-imports.mjs",