@deallony/shared 1.2.5 → 1.2.7

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.
@@ -25,6 +25,7 @@ export declare const eventBaseSchema: z.ZodObject<{
25
25
  }, z.core.$strip>;
26
26
  event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  event_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ venue_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
28
29
  }, z.core.$strip>;
29
30
  export declare const createEventSchema: z.ZodObject<{
30
31
  lat: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
@@ -52,6 +53,7 @@ export declare const createEventSchema: z.ZodObject<{
52
53
  }, z.core.$strip>;
53
54
  event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
55
  event_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ venue_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
55
57
  }, z.core.$strip>;
56
58
  export declare const updateEventSchema: z.ZodObject<{
57
59
  lat: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
@@ -79,6 +81,7 @@ export declare const updateEventSchema: z.ZodObject<{
79
81
  }, z.core.$strip>;
80
82
  event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
83
  event_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
+ venue_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
82
85
  id: z.ZodCoercedNumber<unknown>;
83
86
  }, z.core.$strip>;
84
87
  export declare const saveEventSchema: z.ZodObject<{
@@ -107,6 +110,7 @@ export declare const saveEventSchema: z.ZodObject<{
107
110
  }, z.core.$strip>;
108
111
  event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
112
  event_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ venue_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
110
114
  id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
111
115
  }, z.core.$strip>;
112
116
  export declare const getEventsFilterSchema: z.ZodObject<{
@@ -15,6 +15,7 @@ exports.eventBaseSchema = zod_1.z.object({
15
15
  timeline: EventTimeline_schema_1.saveEventTimelineSchema,
16
16
  event_type: zod_1.z.string().trim().max(255).nullable().optional(),
17
17
  event_template: zod_1.z.string().trim().max(255).nullable().optional(),
18
+ venue_id: zod_1.z.coerce.number().int().positive().nullable().optional(),
18
19
  });
19
20
  exports.createEventSchema = exports.eventBaseSchema;
20
21
  exports.updateEventSchema = exports.eventBaseSchema.extend({
@@ -1,8 +1,9 @@
1
+ import { IFile } from '../media';
1
2
  import type { IEvent } from './Event';
2
3
  export type IEventWedding = {
3
4
  id?: number;
4
5
  event_id?: number;
5
- cover: Record<string, any> | null;
6
+ cover: IFile | null;
6
7
  first_bride_name: string | null;
7
8
  last_bride_name: string | null;
8
9
  first_groom_name: string | null;
@@ -55,6 +55,7 @@ export * as Chat from "./communication/Chat";
55
55
  export * as Device from "./communication/Device";
56
56
  export * as MessageTemplate from "./communication/MessageTemplate";
57
57
  export * as NotificationToken from "./communication/NotificationToken";
58
+ export * as File from "./media/File";
58
59
  export * as Media from "./media/Media";
59
60
  export * as Image from "./media/Image";
60
61
  export * as SocialMediaPlatform from "./media/SocialMediaPlatform";
@@ -37,7 +37,7 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
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.Subject = exports.Response = exports.LocalizedName = void 0;
40
- exports.Analysis = exports.Google = exports.SocialMediaProfile = exports.SocialMediaPlatform = exports.Image = exports.Media = exports.NotificationToken = exports.MessageTemplate = exports.Device = exports.Chat = exports.AppStartScreen = exports.MetaData = exports.Company = 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 = exports.Company = void 0;
41
41
  // common
42
42
  exports.LocalizedName = __importStar(require("./common/LocalizedName"));
43
43
  exports.Response = __importStar(require("./common/Response"));
@@ -103,6 +103,7 @@ exports.Device = __importStar(require("./communication/Device"));
103
103
  exports.MessageTemplate = __importStar(require("./communication/MessageTemplate"));
104
104
  exports.NotificationToken = __importStar(require("./communication/NotificationToken"));
105
105
  // media
106
+ exports.File = __importStar(require("./media/File"));
106
107
  exports.Media = __importStar(require("./media/Media"));
107
108
  exports.Image = __importStar(require("./media/Image"));
108
109
  exports.SocialMediaPlatform = __importStar(require("./media/SocialMediaPlatform"));
@@ -0,0 +1,14 @@
1
+ export type IFile = {
2
+ id?: number;
3
+ path: string;
4
+ folder: string;
5
+ filename?: string;
6
+ mimetype?: string;
7
+ originalMimetype?: string;
8
+ isConverted?: boolean;
9
+ originalExtension?: string;
10
+ size?: number;
11
+ width?: number;
12
+ height?: number;
13
+ url: string;
14
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +1,5 @@
1
- export type IMedia = {
2
- id?: number;
1
+ import type { IFile } from "./File";
2
+ export type IMedia = IFile & {
3
3
  mimetype: string;
4
- url: string;
5
- width?: number;
6
- height?: number;
7
4
  isMain?: boolean;
8
- size?: number;
9
5
  };
@@ -1,3 +1,4 @@
1
+ export * from "./File";
1
2
  export * from "./Media";
2
3
  export * from "./Image";
3
4
  export * from "./SocialMediaPlatform";
@@ -14,6 +14,7 @@ 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("./File"), exports);
17
18
  __exportStar(require("./Media"), exports);
18
19
  __exportStar(require("./Image"), exports);
19
20
  __exportStar(require("./SocialMediaPlatform"), exports);
@@ -12,6 +12,7 @@ export const eventBaseSchema = z.object({
12
12
  timeline: saveEventTimelineSchema,
13
13
  event_type: z.string().trim().max(255).nullable().optional(),
14
14
  event_template: z.string().trim().max(255).nullable().optional(),
15
+ venue_id: z.coerce.number().int().positive().nullable().optional(),
15
16
  });
16
17
  export const createEventSchema = eventBaseSchema;
17
18
  export const updateEventSchema = eventBaseSchema.extend({
@@ -66,6 +66,7 @@ export * as Device from "./communication/Device.js";
66
66
  export * as MessageTemplate from "./communication/MessageTemplate.js";
67
67
  export * as NotificationToken from "./communication/NotificationToken.js";
68
68
  // media
69
+ export * as File from "./media/File.js";
69
70
  export * as Media from "./media/Media.js";
70
71
  export * as Image from "./media/Image.js";
71
72
  export * as SocialMediaPlatform from "./media/SocialMediaPlatform.js";
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
+ export * from "./File.js";
1
2
  export * from "./Media.js";
2
3
  export * from "./Image.js";
3
4
  export * from "./SocialMediaPlatform.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deallony/shared",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",