@lyxa.ai/core 1.3.141 → 1.3.143

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,11 +1,15 @@
1
1
  import { BaseEvent } from '../BaseEvent';
2
+ import { ChangeStreamOperationTypes } from './mongo-stream-changes-batch-process-shops-event';
2
3
  import { DTO } from '../../../utilities/validation/global-validation';
3
4
  declare const SyncSingleShopSectionsInCacheValidationSchema: import("zod").ZodObject<{
4
5
  shopId: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>;
6
+ operation: import("zod").ZodNativeEnum<typeof ChangeStreamOperationTypes>;
5
7
  }, "strict", import("zod").ZodTypeAny, {
6
8
  shopId: import("mongoose").Types.ObjectId;
9
+ operation: ChangeStreamOperationTypes;
7
10
  }, {
8
11
  shopId: string | import("mongoose").Types.ObjectId;
12
+ operation: ChangeStreamOperationTypes;
9
13
  }>;
10
14
  export type SyncSingleShopSectionsInCacheDTO = DTO<typeof SyncSingleShopSectionsInCacheValidationSchema>;
11
15
  export declare class SyncSingleShopSectionsInCacheEvent extends BaseEvent<Record<string, unknown>> {
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SyncSingleShopSectionsInCacheEvent = void 0;
4
4
  const BaseEvent_1 = require("../BaseEvent");
5
5
  const EventEnums_1 = require("../EventEnums");
6
+ const mongo_stream_changes_batch_process_shops_event_1 = require("./mongo-stream-changes-batch-process-shops-event");
6
7
  const global_validation_1 = require("../../../utilities/validation/global-validation");
7
8
  const baseFields = {
8
9
  shopId: global_validation_1.ZodValidation.objectId(),
10
+ operation: global_validation_1.ZodValidation.enumType(mongo_stream_changes_batch_process_shops_event_1.ChangeStreamOperationTypes)
9
11
  };
10
12
  const schemaBuilder = (0, global_validation_1.createSchemaBuilder)(baseFields);
11
13
  const { BaseSchema: SyncSingleShopSectionsInCacheValidationSchema } = schemaBuilder.getAllSchemas({
@@ -1 +1 @@
1
- {"version":3,"file":"sync-single-shop-sections-in-cache-event.js","sourceRoot":"/","sources":["libraries/event/events/sync-single-shop-sections-in-cache-event.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AACzC,8CAAkD;AAClD,uFAA0G;AAE1G,MAAM,UAAU,GAAG;IAClB,MAAM,EAAE,iCAAa,CAAC,QAAQ,EAAE;CAChC,CAAC;AACF,MAAM,aAAa,GAAG,IAAA,uCAAmB,EAAC,UAAU,CAAC,CAAC;AACtD,MAAM,EAAE,UAAU,EAAE,6CAA6C,EAAE,GAAG,aAAa,CAAC,aAAa,CAAC;IACjG,SAAS,EAAE,IAAI;CACf,CAAC,CAAC;AAIH,MAAa,kCAAmC,SAAQ,qBAAkC;IACzF,YAAY,OAAyC;QACpD,KAAK,CAAC,8BAAiB,CAAC,qCAAqC,EAAE,OAAkC,CAAC,CAAC;IACpG,CAAC;CACD;AAJD,gFAIC","sourcesContent":["import { BaseEvent } from '../BaseEvent';\nimport { PublishEventEnums } from '../EventEnums';\nimport { createSchemaBuilder, DTO, ZodValidation } from '../../../utilities/validation/global-validation';\n\nconst baseFields = {\n\tshopId: ZodValidation.objectId(),\n};\nconst schemaBuilder = createSchemaBuilder(baseFields);\nconst { BaseSchema: SyncSingleShopSectionsInCacheValidationSchema } = schemaBuilder.getAllSchemas({\n\tcreatedAt: true,\n});\n\nexport type SyncSingleShopSectionsInCacheDTO = DTO<typeof SyncSingleShopSectionsInCacheValidationSchema>;\n\nexport class SyncSingleShopSectionsInCacheEvent extends BaseEvent<Record<string, unknown>> {\n\tconstructor(payload: SyncSingleShopSectionsInCacheDTO) {\n\t\tsuper(PublishEventEnums.SYNC_SINGLE_SHOP_SECTIONS_CACHE_EVENT, payload as Record<string, unknown>);\n\t}\n}\n"]}
1
+ {"version":3,"file":"sync-single-shop-sections-in-cache-event.js","sourceRoot":"/","sources":["libraries/event/events/sync-single-shop-sections-in-cache-event.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AACzC,8CAAkD;AAClD,qHAA8F;AAC9F,uFAA0G;AAE1G,MAAM,UAAU,GAAG;IAClB,MAAM,EAAE,iCAAa,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,iCAAa,CAAC,QAAQ,CAAC,2EAA0B,CAAC;CAC7D,CAAC;AACF,MAAM,aAAa,GAAG,IAAA,uCAAmB,EAAC,UAAU,CAAC,CAAC;AACtD,MAAM,EAAE,UAAU,EAAE,6CAA6C,EAAE,GAAG,aAAa,CAAC,aAAa,CAAC;IACjG,SAAS,EAAE,IAAI;CACf,CAAC,CAAC;AAIH,MAAa,kCAAmC,SAAQ,qBAAkC;IACzF,YAAY,OAAyC;QACpD,KAAK,CAAC,8BAAiB,CAAC,qCAAqC,EAAE,OAAkC,CAAC,CAAC;IACpG,CAAC;CACD;AAJD,gFAIC","sourcesContent":["import { BaseEvent } from '../BaseEvent';\nimport { PublishEventEnums } from '../EventEnums';\nimport { ChangeStreamOperationTypes } from './mongo-stream-changes-batch-process-shops-event';\nimport { createSchemaBuilder, DTO, ZodValidation } from '../../../utilities/validation/global-validation';\n\nconst baseFields = {\n\tshopId: ZodValidation.objectId(),\n\toperation: ZodValidation.enumType(ChangeStreamOperationTypes)\n};\nconst schemaBuilder = createSchemaBuilder(baseFields);\nconst { BaseSchema: SyncSingleShopSectionsInCacheValidationSchema } = schemaBuilder.getAllSchemas({\n\tcreatedAt: true,\n});\n\nexport type SyncSingleShopSectionsInCacheDTO = DTO<typeof SyncSingleShopSectionsInCacheValidationSchema>;\n\nexport class SyncSingleShopSectionsInCacheEvent extends BaseEvent<Record<string, unknown>> {\n\tconstructor(payload: SyncSingleShopSectionsInCacheDTO) {\n\t\tsuper(PublishEventEnums.SYNC_SINGLE_SHOP_SECTIONS_CACHE_EVENT, payload as Record<string, unknown>);\n\t}\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  export declare class Cashback {
2
+ cashbackRate?: number;
2
3
  amount?: number;
3
4
  secondaryAmount?: number;
4
5
  }
@@ -12,10 +12,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Cashback = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  class Cashback {
15
+ cashbackRate;
15
16
  amount;
16
17
  secondaryAmount;
17
18
  }
18
19
  exports.Cashback = Cashback;
20
+ __decorate([
21
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
22
+ __metadata("design:type", Number)
23
+ ], Cashback.prototype, "cashbackRate", void 0);
19
24
  __decorate([
20
25
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
21
26
  __metadata("design:type", Number)
@@ -1 +1 @@
1
- {"version":3,"file":"cashback-amounts.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/cashback-amounts.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,QAAQ;IAEb,MAAM,CAAU;IAGhB,eAAe,CAAU;CAChC;AAND,4BAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;wCACZ;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACH","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class Cashback {\n\t@prop({ type: Number, default: 0 })\n\tpublic amount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryAmount?: number;\n}"]}
1
+ {"version":3,"file":"cashback-amounts.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/cashback-amounts.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,QAAQ;IAEb,YAAY,CAAU;IAGtB,MAAM,CAAU;IAGhB,eAAe,CAAU;CAChC;AATD,4BASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8CACN;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;wCACZ;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACH","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class Cashback {\n\t@prop({ type: Number, default: 0 })\n\tpublic cashbackRate?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic amount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryAmount?: number;\n}\n"]}
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.3.141
25
+ Version: 1.3.143
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.3.141",
3
+ "version": "1.3.143",
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.3.141",
3
+ "version": "1.3.143",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",