@lyxa.ai/core 1.4.98 → 1.4.99

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.
@@ -2,6 +2,7 @@ import { Ref } from '@typegoose/typegoose';
2
2
  import { LimitedTimeOfferCampaign } from './limited-time-offer-campaign.model';
3
3
  import { Shop } from './shop.model';
4
4
  import { Product } from './product.model';
5
+ import { Marketing } from './marketing.model';
5
6
  export declare class LimitedTimeOfferParticipant {
6
7
  campaign: Ref<LimitedTimeOfferCampaign>;
7
8
  shop: Ref<Shop>;
@@ -14,4 +15,5 @@ export declare class LimitedTimeOfferParticipant {
14
15
  maxOrderCapacity?: number;
15
16
  isWithdrawn: boolean;
16
17
  withdrawnAt?: Date;
18
+ marketing?: Ref<Marketing>;
17
19
  }
@@ -24,6 +24,7 @@ let LimitedTimeOfferParticipant = class LimitedTimeOfferParticipant {
24
24
  maxOrderCapacity;
25
25
  isWithdrawn;
26
26
  withdrawnAt;
27
+ marketing;
27
28
  };
28
29
  exports.LimitedTimeOfferParticipant = LimitedTimeOfferParticipant;
29
30
  __decorate([
@@ -70,6 +71,10 @@ __decorate([
70
71
  (0, typegoose_1.prop)(),
71
72
  __metadata("design:type", Date)
72
73
  ], LimitedTimeOfferParticipant.prototype, "withdrawnAt", void 0);
74
+ __decorate([
75
+ (0, typegoose_1.prop)({ ref: 'Marketing' }),
76
+ __metadata("design:type", Object)
77
+ ], LimitedTimeOfferParticipant.prototype, "marketing", void 0);
73
78
  exports.LimitedTimeOfferParticipant = LimitedTimeOfferParticipant = __decorate([
74
79
  (0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'limitedTimeOfferParticipants', timestamps: true } })
75
80
  ], LimitedTimeOfferParticipant);
@@ -1 +1 @@
1
- {"version":3,"file":"limited-time-offer-participant.model.js","sourceRoot":"/","sources":["libraries/mongo/models/limited-time-offer-participant.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAG/D,uCAAiC;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AU,EAAE,8BAA8B,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC;GACrF,2BAA2B,CAiCvC","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { LimitedTimeOfferCampaign } from './limited-time-offer-campaign.model';\nimport { Shop } from './shop.model';\nimport { Types } from 'mongoose';\nimport { Product } from './product.model';\n\n@modelOptions({ schemaOptions: { collection: 'limitedTimeOfferParticipants', timestamps: true } })\nexport class LimitedTimeOfferParticipant {\n\t@prop({ ref: 'LimitedTimeOfferCampaign', required: true })\n\tcampaign: Ref<LimitedTimeOfferCampaign>;\n\n\t@prop({ ref: 'Shop', required: true })\n\tshop: Ref<Shop>;\n\n\t@prop({ default: Date.now })\n\tjoinedAt: Date;\n\n\t@prop({ ref: 'Product', type: () => [Types.ObjectId], default: [] })\n\tproducts: Ref<Product>[];\n\n\t@prop({ default: false })\n\tisEntireMenu: boolean;\n\n\t@prop()\n\tdiscountPercentage?: number;\n\n\t@prop()\n\tmaxDiscountCap?: number;\n\n\t@prop({ default: false })\n\tisOrderCapacityEnabled: boolean;\n\n\t@prop()\n\tmaxOrderCapacity?: number;\n\t\n\t@prop({ default: false })\n\tisWithdrawn: boolean;\n\n\t@prop()\n\twithdrawnAt?: Date;\n}\n"]}
1
+ {"version":3,"file":"limited-time-offer-participant.model.js","sourceRoot":"/","sources":["libraries/mongo/models/limited-time-offer-participant.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAG/D,uCAAiC;AAK1B,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAEvC,QAAQ,CAAgC;IAGxC,IAAI,CAAY;IAGhB,QAAQ,CAAO;IAGf,QAAQ,CAAiB;IAGzB,YAAY,CAAU;IAGtB,kBAAkB,CAAU;IAG5B,cAAc,CAAU;IAGxB,sBAAsB,CAAU;IAGhC,gBAAgB,CAAU;IAG1B,WAAW,CAAU;IAGrB,WAAW,CAAQ;IAGnB,SAAS,CAAkB;CAC3B,CAAA;AApCY,kEAA2B;AAEvC;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,0BAA0B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DAClB;AAGxC;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACtB;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC;8BAClB,IAAI;6DAAC;AAGf;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,gBAAK,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;6DAC3C;AAGzB;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;iEACH;AAGtB;IADC,IAAA,gBAAI,GAAE;;uEACqB;AAG5B;IADC,IAAA,gBAAI,GAAE;;mEACiB;AAGxB;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2EACO;AAGhC;IADC,IAAA,gBAAI,GAAE;;qEACmB;AAG1B;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gEACJ;AAGrB;IADC,IAAA,gBAAI,GAAE;8BACO,IAAI;gEAAC;AAGnB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;;8DACA;sCAnCf,2BAA2B;IADvC,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,8BAA8B,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC;GACrF,2BAA2B,CAoCvC","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { LimitedTimeOfferCampaign } from './limited-time-offer-campaign.model';\nimport { Shop } from './shop.model';\nimport { Types } from 'mongoose';\nimport { Product } from './product.model';\nimport { Marketing } from './marketing.model';\n\n@modelOptions({ schemaOptions: { collection: 'limitedTimeOfferParticipants', timestamps: true } })\nexport class LimitedTimeOfferParticipant {\n\t@prop({ ref: 'LimitedTimeOfferCampaign', required: true })\n\tcampaign: Ref<LimitedTimeOfferCampaign>;\n\n\t@prop({ ref: 'Shop', required: true })\n\tshop: Ref<Shop>;\n\n\t@prop({ default: Date.now })\n\tjoinedAt: Date;\n\n\t@prop({ ref: 'Product', type: () => [Types.ObjectId], default: [] })\n\tproducts: Ref<Product>[];\n\n\t@prop({ default: false })\n\tisEntireMenu: boolean;\n\n\t@prop()\n\tdiscountPercentage?: number;\n\n\t@prop()\n\tmaxDiscountCap?: number;\n\n\t@prop({ default: false })\n\tisOrderCapacityEnabled: boolean;\n\n\t@prop()\n\tmaxOrderCapacity?: number;\n\t\n\t@prop({ default: false })\n\tisWithdrawn: boolean;\n\n\t@prop()\n\twithdrawnAt?: Date;\n\n\t@prop({ ref: 'Marketing' })\n\tmarketing?: Ref<Marketing>;\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.4.98
25
+ Version: 1.4.99
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.98",
3
+ "version": "1.4.99",
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.4.98",
3
+ "version": "1.4.99",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",