@lyxa.ai/core 1.4.161 → 1.4.162

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,3 +1,5 @@
1
+ import { Ref } from '@typegoose/typegoose';
2
+ import { Zone } from '../zone.model';
1
3
  export declare class Charge {
2
4
  from: number;
3
5
  to: number;
@@ -7,4 +9,5 @@ export declare class Charge {
7
9
  export declare class DeliveryCharge {
8
10
  type: string;
9
11
  charges: Charge[];
12
+ zone?: Ref<Zone>;
10
13
  }
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DeliveryCharge = exports.Charge = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  const enum_1 = require("../../../../utilities/enum");
15
+ const zone_model_1 = require("../zone.model");
15
16
  class Charge {
16
17
  from;
17
18
  to;
@@ -38,6 +39,7 @@ __decorate([
38
39
  class DeliveryCharge {
39
40
  type;
40
41
  charges;
42
+ zone;
41
43
  }
42
44
  exports.DeliveryCharge = DeliveryCharge;
43
45
  __decorate([
@@ -48,4 +50,8 @@ __decorate([
48
50
  (0, typegoose_1.prop)({ type: () => [Charge], default: [] }),
49
51
  __metadata("design:type", Array)
50
52
  ], DeliveryCharge.prototype, "charges", void 0);
53
+ __decorate([
54
+ (0, typegoose_1.prop)({ ref: () => zone_model_1.Zone }),
55
+ __metadata("design:type", Object)
56
+ ], DeliveryCharge.prototype, "zone", void 0);
51
57
  //# sourceMappingURL=delivery-charge-setting.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"delivery-charge-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/delivery-charge-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAa,MAAM;IAEX,IAAI,CAAU;IAGd,EAAE,CAAU;IAGZ,MAAM,CAAU;IAGhB,QAAQ,CAAU;CACzB;AAZD,wBAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;oCAC1B;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;kCAC5B;AAGZ;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;sCACxB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;wCACtB;AAG1B,MAAa,cAAc;IAE1B,IAAI,CAAS;IAGb,OAAO,CAAU;CACjB;AAND,wCAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,OAAO,EAAE,CAAC;;4CACvD;AAGb;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;+CAC3B","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { OrderType } from '../../../../utilities/enum';\n\nexport class Charge {\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic from!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic to!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic charge!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic riderCut!: number;\n}\n\nexport class DeliveryCharge {\n\t@prop({ type: String, enum: OrderType, default: OrderType.REGULAR })\n\ttype: string;\n\n\t@prop({ type: () => [Charge], default: [] })\n\tcharges: Charge[]\n}\n"]}
1
+ {"version":3,"file":"delivery-charge-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/delivery-charge-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAuD;AACvD,8CAAqC;AAErC,MAAa,MAAM;IAEX,IAAI,CAAU;IAGd,EAAE,CAAU;IAGZ,MAAM,CAAU;IAGhB,QAAQ,CAAU;CACzB;AAZD,wBAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;oCAC1B;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;kCAC5B;AAGZ;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;sCACxB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;wCACtB;AAG1B,MAAa,cAAc;IAEnB,IAAI,CAAS;IAGb,OAAO,CAAW;IAGlB,IAAI,CAAa;CACxB;AATD,wCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,OAAO,EAAE,CAAC;;4CAChD;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;+CACnB;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;4CACF","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { OrderType } from '../../../../utilities/enum';\nimport { Zone } from '../zone.model';\n\nexport class Charge {\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic from!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic to!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic charge!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic riderCut!: number;\n}\n\nexport class DeliveryCharge {\n\t@prop({ type: String, enum: OrderType, default: OrderType.REGULAR })\n\tpublic type: string;\n\n\t@prop({ type: () => [Charge], default: [] })\n\tpublic charges: Charge[];\n\n\t@prop({ ref: () => Zone })\n\tpublic zone?: Ref<Zone>;\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.161
25
+ Version: 1.4.162
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.161",
3
+ "version": "1.4.162",
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.161",
3
+ "version": "1.4.162",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",