@lyxa.ai/core 1.4.299 → 1.4.301

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.
@@ -12,19 +12,19 @@ export declare const TicketActionsSocketOutputSchema: z.ZodObject<{
12
12
  title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
13
13
  silent: z.ZodOptional<z.ZodBoolean>;
14
14
  }, "strip", z.ZodTypeAny, {
15
- status: TicketStatus;
16
15
  type: TicketType;
17
16
  _id: import("mongoose").Types.ObjectId;
18
- silent?: boolean | undefined;
17
+ status: TicketStatus;
19
18
  title?: string | undefined;
20
19
  content?: string | undefined;
20
+ silent?: boolean | undefined;
21
21
  }, {
22
- status: TicketStatus;
23
22
  type: TicketType;
24
23
  _id: import("mongoose").Types.ObjectId;
25
- silent?: boolean | undefined;
24
+ status: TicketStatus;
26
25
  title?: string | undefined;
27
26
  content?: string | undefined;
27
+ silent?: boolean | undefined;
28
28
  }>;
29
29
  export declare const TicketActionsPushOutputSchema: z.ZodObject<{
30
30
  ticketId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
@@ -33,14 +33,14 @@ export declare const TicketActionsPushOutputSchema: z.ZodObject<{
33
33
  content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
34
34
  title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
35
35
  }, "strip", z.ZodTypeAny, {
36
- status: TicketStatus;
37
36
  type: TicketType;
37
+ status: TicketStatus;
38
38
  ticketId: import("mongoose").Types.ObjectId;
39
39
  title?: string | undefined;
40
40
  content?: string | undefined;
41
41
  }, {
42
- status: TicketStatus;
43
42
  type: TicketType;
43
+ status: TicketStatus;
44
44
  ticketId: import("mongoose").Types.ObjectId;
45
45
  title?: string | undefined;
46
46
  content?: string | undefined;
@@ -59,19 +59,19 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
59
59
  title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
60
60
  silent: z.ZodOptional<z.ZodBoolean>;
61
61
  }, "strip", z.ZodTypeAny, {
62
- status: TicketStatus;
63
62
  type: TicketType;
64
63
  _id: import("mongoose").Types.ObjectId;
65
- silent?: boolean | undefined;
64
+ status: TicketStatus;
66
65
  title?: string | undefined;
67
66
  content?: string | undefined;
67
+ silent?: boolean | undefined;
68
68
  }, {
69
- status: TicketStatus;
70
69
  type: TicketType;
71
70
  _id: import("mongoose").Types.ObjectId;
72
- silent?: boolean | undefined;
71
+ status: TicketStatus;
73
72
  title?: string | undefined;
74
73
  content?: string | undefined;
74
+ silent?: boolean | undefined;
75
75
  }>;
76
76
  pushNotificationOutput: z.ZodObject<{
77
77
  ticketId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
@@ -80,14 +80,14 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
80
80
  content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
81
81
  title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
82
82
  }, "strip", z.ZodTypeAny, {
83
- status: TicketStatus;
84
83
  type: TicketType;
84
+ status: TicketStatus;
85
85
  ticketId: import("mongoose").Types.ObjectId;
86
86
  title?: string | undefined;
87
87
  content?: string | undefined;
88
88
  }, {
89
- status: TicketStatus;
90
89
  type: TicketType;
90
+ status: TicketStatus;
91
91
  ticketId: import("mongoose").Types.ObjectId;
92
92
  title?: string | undefined;
93
93
  content?: string | undefined;
@@ -96,8 +96,8 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
96
96
  get notificationSettings(): NotificationSettings | undefined;
97
97
  constructor(payload: TicketActionsSocketOutputDTO);
98
98
  getPushNotificationPayload(): {
99
- status: TicketStatus;
100
99
  type: TicketType;
100
+ status: TicketStatus;
101
101
  ticketId: import("mongoose").Types.ObjectId;
102
102
  title?: string | undefined;
103
103
  content?: string | undefined;
@@ -39,11 +39,11 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
39
39
  }>;
40
40
  unreadCount: z.ZodNumber;
41
41
  }, "strip", z.ZodTypeAny, {
42
- status: TicketStatus;
43
42
  type: TicketType;
44
- _id: import("mongoose").Types.ObjectId;
45
43
  createdAt: Date;
46
44
  updatedAt: Date;
45
+ _id: import("mongoose").Types.ObjectId;
46
+ status: TicketStatus;
47
47
  lastMessage: {
48
48
  createdAt: Date;
49
49
  content: string;
@@ -58,11 +58,11 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
58
58
  chatroomId: import("mongoose").Types.ObjectId;
59
59
  orderId?: import("mongoose").Types.ObjectId | undefined;
60
60
  }, {
61
- status: TicketStatus;
62
61
  type: TicketType;
63
- _id: string | import("mongoose").Types.ObjectId;
64
62
  createdAt: string | Date;
65
63
  updatedAt: string | Date;
64
+ _id: string | import("mongoose").Types.ObjectId;
65
+ status: TicketStatus;
66
66
  lastMessage: {
67
67
  createdAt: string | Date;
68
68
  content: string;
@@ -117,11 +117,11 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
117
117
  }>;
118
118
  unreadCount: z.ZodNumber;
119
119
  }, "strip", z.ZodTypeAny, {
120
- status: TicketStatus;
121
120
  type: TicketType;
122
- _id: import("mongoose").Types.ObjectId;
123
121
  createdAt: Date;
124
122
  updatedAt: Date;
123
+ _id: import("mongoose").Types.ObjectId;
124
+ status: TicketStatus;
125
125
  lastMessage: {
126
126
  createdAt: Date;
127
127
  content: string;
@@ -136,11 +136,11 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
136
136
  chatroomId: import("mongoose").Types.ObjectId;
137
137
  orderId?: import("mongoose").Types.ObjectId | undefined;
138
138
  }, {
139
- status: TicketStatus;
140
139
  type: TicketType;
141
- _id: string | import("mongoose").Types.ObjectId;
142
140
  createdAt: string | Date;
143
141
  updatedAt: string | Date;
142
+ _id: string | import("mongoose").Types.ObjectId;
143
+ status: TicketStatus;
144
144
  lastMessage: {
145
145
  createdAt: string | Date;
146
146
  content: string;
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.4.299
25
+ Version: 1.4.301
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.299",
3
+ "version": "1.4.301",
4
4
  "description": "Lyxa type definitions and validation schemas for both frontend and backend",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",
@@ -22,7 +22,6 @@ export declare function createPaginatedSchema<ItemType extends z.ZodTypeAny>(ite
22
22
  }, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>, z.ZodUndefined]>, "strip">>;
23
23
  items: z.ZodArray<ItemType, "many">;
24
24
  }, "strip", z.ZodTypeAny, {
25
- items: ItemType["_output"][];
26
25
  metadata: {
27
26
  size: number;
28
27
  page: number;
@@ -31,8 +30,8 @@ export declare function createPaginatedSchema<ItemType extends z.ZodTypeAny>(ite
31
30
  } & {
32
31
  [k: string]: string | number | boolean | null | undefined;
33
32
  };
33
+ items: ItemType["_output"][];
34
34
  }, {
35
- items: ItemType["_input"][];
36
35
  metadata: {
37
36
  size: number;
38
37
  page: number;
@@ -41,6 +40,7 @@ export declare function createPaginatedSchema<ItemType extends z.ZodTypeAny>(ite
41
40
  } & {
42
41
  [k: string]: string | number | boolean | null | undefined;
43
42
  };
43
+ items: ItemType["_input"][];
44
44
  }>;
45
45
  export interface RawPaginatedResult<T extends AnyParamConstructor<any>> {
46
46
  metadata: {
@@ -62,7 +62,6 @@ export interface PaginatorOptions<TClass extends AnyParamConstructor<any>> {
62
62
  }
63
63
  export declare function createRawDocumentPaginatorObject<T extends AnyParamConstructor<any>>(model: ReturnModelType<T>): (options: PaginatorOptions<T>) => Promise<RawPaginatedResult<T>>;
64
64
  export declare function createPaginatorObject<T extends AnyParamConstructor<any>>(model: ReturnModelType<T>, itemSchema: z.ZodTypeAny, transformFn?: (doc: DocumentType<T>) => z.infer<typeof itemSchema>): (options: PaginatorOptions<T>) => Promise<{
65
- items: any[];
66
65
  metadata: {
67
66
  size: number;
68
67
  page: number;
@@ -71,6 +70,7 @@ export declare function createPaginatorObject<T extends AnyParamConstructor<any>
71
70
  } & {
72
71
  [k: string]: string | number | boolean | null | undefined;
73
72
  };
73
+ items: any[];
74
74
  }>;
75
75
  export declare function paginateAggregation(model: any, pipeline: any[], page?: number, size?: number, sort?: any, populateOptions?: any): Promise<{
76
76
  metadata: {