@lyxa.ai/core 1.0.288 → 1.0.290

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.
Files changed (31) hide show
  1. package/dist/libraries/mongo/models/chat-room.model.d.ts +0 -1
  2. package/dist/libraries/mongo/models/chat-room.model.js +1 -6
  3. package/dist/libraries/mongo/models/chat-room.model.js.map +1 -1
  4. package/dist/libraries/mongo/models/embedded/chat-participant.model.d.ts +4 -1
  5. package/dist/libraries/mongo/models/embedded/chat-participant.model.js +13 -2
  6. package/dist/libraries/mongo/models/embedded/chat-participant.model.js.map +1 -1
  7. package/dist/libraries/mongo/models/user.model.d.ts +1 -1
  8. package/dist/libraries/mongo/repositories/index.d.ts +0 -0
  9. package/dist/libraries/mongo/repositories/index.js +2 -0
  10. package/dist/libraries/mongo/repositories/index.js.map +1 -0
  11. package/dist/libraries/mongo/repositories/optimized-product.repository.d.ts +0 -0
  12. package/dist/libraries/mongo/repositories/optimized-product.repository.js +2 -0
  13. package/dist/libraries/mongo/repositories/optimized-product.repository.js.map +1 -0
  14. package/dist/libraries/mongo/repositories/optimized-product.service.d.ts +0 -0
  15. package/dist/libraries/mongo/repositories/optimized-product.service.js +2 -0
  16. package/dist/libraries/mongo/repositories/optimized-product.service.js.map +1 -0
  17. package/dist/libraries/mongo/repositories/product-benchmark.d.ts +0 -0
  18. package/dist/libraries/mongo/repositories/product-benchmark.js +2 -0
  19. package/dist/libraries/mongo/repositories/product-benchmark.js.map +1 -0
  20. package/dist/libraries/mongo/repositories/product-query-optimizer.d.ts +0 -0
  21. package/dist/libraries/mongo/repositories/product-query-optimizer.js +2 -0
  22. package/dist/libraries/mongo/repositories/product-query-optimizer.js.map +1 -0
  23. package/dist/libraries/mongo/repositories/product.repository.d.ts +0 -0
  24. package/dist/libraries/mongo/repositories/product.repository.js +2 -0
  25. package/dist/libraries/mongo/repositories/product.repository.js.map +1 -0
  26. package/dist/libraries/mongo/repositories/test-optimized-product.d.ts +0 -0
  27. package/dist/libraries/mongo/repositories/test-optimized-product.js +2 -0
  28. package/dist/libraries/mongo/repositories/test-optimized-product.js.map +1 -0
  29. package/dist/types/README.md +1 -1
  30. package/dist/types/package.json +1 -1
  31. package/package.json +1 -1
@@ -12,7 +12,6 @@ declare class LastMessage extends TimeStamps {
12
12
  content: string;
13
13
  senderType: UserRef;
14
14
  sender: Ref<User | Admin | Shop | Rider>;
15
- isRead?: boolean;
16
15
  }
17
16
  export declare class Chatroom extends TimeStamps {
18
17
  type: ChatroomType;
@@ -20,7 +20,6 @@ class LastMessage extends defaultClasses_1.TimeStamps {
20
20
  content;
21
21
  senderType;
22
22
  sender;
23
- isRead;
24
23
  }
25
24
  __decorate([
26
25
  (0, typegoose_1.prop)({ type: mongoose_1.Types.ObjectId }),
@@ -38,10 +37,6 @@ __decorate([
38
37
  (0, typegoose_1.prop)({ refPath: 'senderType' }),
39
38
  __metadata("design:type", Object)
40
39
  ], LastMessage.prototype, "sender", void 0);
41
- __decorate([
42
- (0, typegoose_1.prop)({ type: Boolean, default: false }),
43
- __metadata("design:type", Boolean)
44
- ], LastMessage.prototype, "isRead", void 0);
45
40
  let Chatroom = class Chatroom extends defaultClasses_1.TimeStamps {
46
41
  type;
47
42
  participants;
@@ -87,6 +82,6 @@ exports.Chatroom = Chatroom = __decorate([
87
82
  (0, typegoose_1.index)({ ticket: 1 }),
88
83
  (0, typegoose_1.index)({ createdAt: -1 }),
89
84
  (0, typegoose_1.index)({ messageCount: -1 }),
90
- (0, typegoose_1.index)({ 'participants.lastReadAt': 1 })
85
+ (0, typegoose_1.index)({ 'participants.lastReadMessageAt': 1 })
91
86
  ], Chatroom);
92
87
  //# sourceMappingURL=chat-room.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat-room.model.js","sourceRoot":"/","sources":["libraries/mongo/models/chat-room.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,4EAAqE;AACrE,8EAAoE;AACpE,kDAAgE;AA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,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;0CACpB;AAGnB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACL,IAAI;+CAAC;AAGrB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8CACb;mBAjBV,QAAQ;IAZpB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE;YACd,UAAU,EAAE,WAAW;YACvB,UAAU,EAAE,IAAI;SAChB;KACD,CAAC;IACD,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;IAC/B,IAAA,iBAAK,EAAC,EAAE,kBAAkB,EAAE,CAAC,EAAE,mBAAmB,EAAE,CAAC,EAAE,CAAC;IACxD,IAAA,iBAAK,EAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;IACpB,IAAA,iBAAK,EAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC;IACxB,IAAA,iBAAK,EAAC,EAAE,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC;IAC3B,IAAA,iBAAK,EAAC,EAAE,yBAAyB,EAAE,CAAC,EAAE,CAAC;GAC3B,QAAQ,CAkBpB","sourcesContent":["import { prop, modelOptions, index, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { ChatParticipant } from './embedded/chat-participant.model';\nimport { ChatroomType, UserRef } from '../../../utilities/enum';\nimport { User } from './user.model';\nimport { Shop } from './shop.model';\nimport { Admin } from './admin.model';\nimport { Rider } from './rider.model';\nimport { Types } from 'mongoose';\n\nclass LastMessage extends TimeStamps {\n\t@prop({ type: Types.ObjectId })\n\tpublic _id!: Types.ObjectId;\n\n\t@prop({ required: true, type: String })\n\tpublic content!: string;\n\n\t@prop({ required: true, type: String, enum: UserRef })\n\tpublic senderType!: UserRef;\n\n\t@prop({ refPath: 'senderType' })\n\tpublic sender!: Ref<User | Admin | Shop | Rider>;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isRead?: boolean;\n}\n\n@modelOptions({\n\tschemaOptions: {\n\t\tcollection: 'chatrooms',\n\t\ttimestamps: true,\n\t},\n})\n@index({ type: 1, isActive: 1 })\n@index({ 'participants.ref': 1, 'participants.type': 1 })\n@index({ ticket: 1 })\n@index({ createdAt: -1 })\n@index({ messageCount: -1 })\n@index({ 'participants.lastReadAt': 1 })\nexport class Chatroom extends TimeStamps {\n\t@prop({ enum: ChatroomType, required: true })\n\ttype!: ChatroomType;\n\n\t@prop({ type: () => [ChatParticipant], required: true })\n\tparticipants!: ChatParticipant[];\n\n\t@prop({ type: LastMessage })\n\tlastMessage?: LastMessage;\n\n\t@prop({ type: Boolean, default: true })\n\tisActive?: boolean;\n\n\t@prop({ type: Date })\n\tlastMessageAt?: Date;\n\n\t@prop({ type: Number, default: 0 })\n\tmessageCount?: number;\n}\n"]}
1
+ {"version":3,"file":"chat-room.model.js","sourceRoot":"/","sources":["libraries/mongo/models/chat-room.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,4EAAqE;AACrE,8EAAoE;AACpE,kDAAgE;AAKhE,uCAAiC;AAEjC,MAAM,WAAY,SAAQ,2BAAU;IAE5B,GAAG,CAAkB;IAGrB,OAAO,CAAU;IAGjB,UAAU,CAAW;IAGrB,MAAM,CAAoC;CACjD;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,gBAAK,CAAC,QAAQ,EAAE,CAAC;8BAClB,gBAAK,CAAC,QAAQ;wCAAC;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACf;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE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AAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;IACpB,IAAA,iBAAK,EAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC;IACxB,IAAA,iBAAK,EAAC,EAAE,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC;IAC3B,IAAA,iBAAK,EAAC,EAAE,gCAAgC,EAAE,CAAC,EAAE,CAAC;GAClC,QAAQ,CAkBpB","sourcesContent":["import { prop, modelOptions, index, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { ChatParticipant } from './embedded/chat-participant.model';\nimport { ChatroomType, UserRef } from '../../../utilities/enum';\nimport { User } from './user.model';\nimport { Shop } from './shop.model';\nimport { Admin } from './admin.model';\nimport { Rider } from './rider.model';\nimport { Types } from 'mongoose';\n\nclass LastMessage extends TimeStamps {\n\t@prop({ type: Types.ObjectId })\n\tpublic _id!: Types.ObjectId;\n\n\t@prop({ required: true, type: String })\n\tpublic content!: string;\n\n\t@prop({ required: true, type: String, enum: UserRef })\n\tpublic senderType!: UserRef;\n\n\t@prop({ refPath: 'senderType' })\n\tpublic sender!: Ref<User | Admin | Shop | Rider>;\n}\n\n@modelOptions({\n\tschemaOptions: {\n\t\tcollection: 'chatrooms',\n\t\ttimestamps: true,\n\t},\n})\n@index({ type: 1, isActive: 1 })\n@index({ 'participants.ref': 1, 'participants.type': 1 })\n@index({ ticket: 1 })\n@index({ createdAt: -1 })\n@index({ messageCount: -1 })\n@index({ 'participants.lastReadMessageAt': 1 })\nexport class Chatroom extends TimeStamps {\n\t@prop({ enum: ChatroomType, required: true })\n\ttype!: ChatroomType;\n\n\t@prop({ type: () => [ChatParticipant], required: true })\n\tparticipants!: ChatParticipant[];\n\n\t@prop({ type: LastMessage })\n\tlastMessage?: LastMessage;\n\n\t@prop({ type: Boolean, default: true })\n\tisActive?: boolean;\n\n\t@prop({ type: Date })\n\tlastMessageAt?: Date;\n\n\t@prop({ type: Number, default: 0 })\n\tmessageCount?: number;\n}\n"]}
@@ -4,12 +4,15 @@ import { Admin } from '../admin.model';
4
4
  import { Shop } from '../shop.model';
5
5
  import { Rider } from '../rider.model';
6
6
  import { UserRef } from '../../../../utilities/enum';
7
+ import { Message } from '../message.model';
7
8
  export declare class ChatParticipant {
8
9
  ref: Ref<User | Admin | Shop | Rider>;
9
10
  type: UserRef;
10
11
  joinedAt?: Date;
11
12
  lastReadAt?: Date;
12
13
  isActive?: boolean;
13
- ifReadSeq: number;
14
+ lastReadMessage?: Ref<Message>;
15
+ lastReadMessageAt?: Date;
16
+ unreadCount?: number;
14
17
  leftAt?: Date;
15
18
  }
@@ -12,13 +12,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ChatParticipant = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  const enum_1 = require("../../../../utilities/enum");
15
+ const message_model_1 = require("../message.model");
15
16
  class ChatParticipant {
16
17
  ref;
17
18
  type;
18
19
  joinedAt;
19
20
  lastReadAt;
20
21
  isActive;
21
- ifReadSeq;
22
+ lastReadMessage;
23
+ lastReadMessageAt;
24
+ unreadCount;
22
25
  leftAt;
23
26
  }
24
27
  exports.ChatParticipant = ChatParticipant;
@@ -42,10 +45,18 @@ __decorate([
42
45
  (0, typegoose_1.prop)({ type: Boolean, default: true }),
43
46
  __metadata("design:type", Boolean)
44
47
  ], ChatParticipant.prototype, "isActive", void 0);
48
+ __decorate([
49
+ (0, typegoose_1.prop)({ ref: () => message_model_1.Message }),
50
+ __metadata("design:type", Object)
51
+ ], ChatParticipant.prototype, "lastReadMessage", void 0);
52
+ __decorate([
53
+ (0, typegoose_1.prop)({ type: Date }),
54
+ __metadata("design:type", Date)
55
+ ], ChatParticipant.prototype, "lastReadMessageAt", void 0);
45
56
  __decorate([
46
57
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
47
58
  __metadata("design:type", Number)
48
- ], ChatParticipant.prototype, "ifReadSeq", void 0);
59
+ ], ChatParticipant.prototype, "unreadCount", void 0);
49
60
  __decorate([
50
61
  (0, typegoose_1.prop)({ type: Date }),
51
62
  __metadata("design:type", Date)
@@ -1 +1 @@
1
- {"version":3,"file":"chat-participant.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/chat-participant.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AAKjD,qDAAqD;AAErD,MAAa,eAAe;IAE3B,GAAG,CAAoC;IAGvC,IAAI,CAAW;IAGf,QAAQ,CAAQ;IAGhB,UAAU,CAAQ;IAGlB,QAAQ,CAAW;IAGnB,SAAS,CAAU;IAGnB,MAAM,CAAQ;CACd;AArBD,0CAqBC;AAnBA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;;4CACH;AAGvC;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,cAAO,EAAE,CAAC;;6CACzB;AAGf;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;8BACrC,IAAI;iDAAC;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;mDAAC;AAGlB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACpB;AAGnB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kDAChB;AAGnB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACZ,IAAI;+CAAC","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { User } from '../user.model';\nimport { Admin } from '../admin.model';\nimport { Shop } from '../shop.model';\nimport { Rider } from '../rider.model';\nimport { UserRef } from '../../../../utilities/enum';\n\nexport class ChatParticipant {\n\t@prop({ required: true, refPath: 'type' })\n\tref!: Ref<User | Admin | Shop | Rider>;\n\n\t@prop({ required: true, enum: UserRef })\n\ttype!: UserRef;\n\n\t@prop({ type: Date, default: () => new Date() })\n\tjoinedAt?: Date;\n\n\t@prop({ type: Date })\n\tlastReadAt?: Date;\n\n\t@prop({ type: Boolean, default: true })\n\tisActive?: boolean;\n\n\t@prop({ type: Number, default: 0 })\n\tifReadSeq!: number;\n\n\t@prop({ type: Date })\n\tleftAt?: Date;\n}\n"]}
1
+ {"version":3,"file":"chat-participant.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/chat-participant.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AAKjD,qDAAqD;AACrD,oDAA2C;AAE3C,MAAa,eAAe;IAE3B,GAAG,CAAoC;IAGvC,IAAI,CAAW;IAGf,QAAQ,CAAQ;IAGhB,UAAU,CAAQ;IAGlB,QAAQ,CAAW;IAGnB,eAAe,CAAgB;IAG/B,iBAAiB,CAAQ;IAGzB,WAAW,CAAU;IAGrB,MAAM,CAAQ;CACd;AA3BD,0CA2BC;AAzBA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;;4CACH;AAGvC;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,cAAO,EAAE,CAAC;;6CACzB;AAGf;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;8BACrC,IAAI;iDAAC;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;mDAAC;AAGlB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACpB;AAGnB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,uBAAO,EAAE,CAAC;;wDACE;AAG/B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACD,IAAI;0DAAC;AAGzB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oDACd;AAGrB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACZ,IAAI;+CAAC","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { User } from '../user.model';\nimport { Admin } from '../admin.model';\nimport { Shop } from '../shop.model';\nimport { Rider } from '../rider.model';\nimport { UserRef } from '../../../../utilities/enum';\nimport { Message } from '../message.model';\n\nexport class ChatParticipant {\n\t@prop({ required: true, refPath: 'type' })\n\tref!: Ref<User | Admin | Shop | Rider>;\n\n\t@prop({ required: true, enum: UserRef })\n\ttype!: UserRef;\n\n\t@prop({ type: Date, default: () => new Date() })\n\tjoinedAt?: Date;\n\n\t@prop({ type: Date })\n\tlastReadAt?: Date;\n\n\t@prop({ type: Boolean, default: true })\n\tisActive?: boolean;\n\n\t@prop({ ref: () => Message })\n\tlastReadMessage?: Ref<Message>;\n\n\t@prop({ type: Date })\n\tlastReadMessageAt?: Date;\n\n\t@prop({ type: Number, default: 0 })\n\tunreadCount?: number;\n\n\t@prop({ type: Date })\n\tleftAt?: Date;\n}\n"]}
@@ -31,7 +31,7 @@ export declare class User extends TimeStamps {
31
31
  isPhoneVerified?: boolean;
32
32
  onlineStatus?: OnlineStatus;
33
33
  fcmTokens?: string[];
34
- static updateWallet(this: ReturnModelType<typeof User>, userId: string, amount: number): Promise<(import("mongoose").Document<unknown, import("@typegoose/typegoose/lib/types").BeAnObject, User, import("@typegoose/typegoose/lib/types").BeAnyObject, {}> & Omit<User & {
34
+ static updateWallet(this: ReturnModelType<typeof User>, userId: string, amount: number): Promise<(import("mongoose").Document<unknown, import("@typegoose/typegoose/lib/types").BeAnObject, User, import("@typegoose/typegoose/lib/types").BeAnyObject> & Omit<User & {
35
35
  _id: import("mongoose").Types.ObjectId;
36
36
  } & {
37
37
  __v: number;
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["libraries/mongo/repositories/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=optimized-product.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optimized-product.repository.js","sourceRoot":"/","sources":["libraries/mongo/repositories/optimized-product.repository.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=optimized-product.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optimized-product.service.js","sourceRoot":"/","sources":["libraries/mongo/repositories/optimized-product.service.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=product-benchmark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-benchmark.js","sourceRoot":"/","sources":["libraries/mongo/repositories/product-benchmark.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=product-query-optimizer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-query-optimizer.js","sourceRoot":"/","sources":["libraries/mongo/repositories/product-query-optimizer.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=product.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.repository.js","sourceRoot":"/","sources":["libraries/mongo/repositories/product.repository.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=test-optimized-product.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-optimized-product.js","sourceRoot":"/","sources":["libraries/mongo/repositories/test-optimized-product.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.0.288
25
+ Version: 1.0.290
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.0.288",
3
+ "version": "1.0.290",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/core",
3
- "version": "1.0.288",
3
+ "version": "1.0.290",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",