@lyxa.ai/core 1.0.40 → 1.0.41

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.
@@ -13,7 +13,6 @@ exports.FinanceSettlement = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
15
15
  const order_model_1 = require("./order.model");
16
- const zod_1 = require("zod");
17
16
  const shop_model_1 = require("./shop.model");
18
17
  const rider_model_1 = require("./rider.model");
19
18
  const enum_1 = require("../../../utilities/enum");
@@ -51,11 +50,11 @@ __decorate([
51
50
  __metadata("design:type", String)
52
51
  ], FinanceSettlement.prototype, "settlementType", void 0);
53
52
  __decorate([
54
- (0, typegoose_1.prop)({ type: zod_1.number, default: 0 }),
53
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
55
54
  __metadata("design:type", Number)
56
55
  ], FinanceSettlement.prototype, "amount", void 0);
57
56
  __decorate([
58
- (0, typegoose_1.prop)({ type: zod_1.number, default: 0 }),
57
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
59
58
  __metadata("design:type", Number)
60
59
  ], FinanceSettlement.prototype, "secondaryAmount", void 0);
61
60
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"finance-settlement.model.js","sourceRoot":"/","sources":["libraries/mongo/models/finance-settlement.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,+CAAsC;AACtC,6BAA6B;AAC7B,6CAAoC;AACpC,+CAAsC;AACtC,kDAAyD;AACzD,6CAAoC;AACpC,+CAAsC;AAG/B,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,2BAAU;IAEzC,KAAK,CAAc;IAGnB,IAAI,CAAa;IAGjB,KAAK,CAAc;IAGnB,IAAI,CAAa;IAGjB,cAAc,CAAiB;IAG/B,MAAM,CAAS;IAGf,eAAe,CAAS;IAGxB,QAAQ,CAAa;CAC5B,CAAA;AAxBY,8CAAiB;AAEtB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;gDACd;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;+CACf;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;gDACd;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;+CACf;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAc,EAAE,CAAC;;yDACP;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,YAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACb;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,YAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;mDACC;4BAvBhB,iBAAiB;IAD7B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,oBAAoB,EAAE,EAAE,CAAC;GACzD,iBAAiB,CAwB7B","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Order } from './order.model';\nimport { number } from 'zod';\nimport { Shop } from './shop.model';\nimport { Rider } from './rider.model';\nimport { SettlementType } from '../../../utilities/enum';\nimport { User } from './user.model';\nimport { Admin } from './admin.model';\n\n@modelOptions({ schemaOptions: { collection: 'financeSettlements' } })\nexport class FinanceSettlement extends TimeStamps {\n\t@prop({ ref: () => Order, index: true })\n\tpublic order?: Ref<Order>;\n\n\t@prop({ ref: () => Shop, index: true })\n\tpublic shop?: Ref<Shop>;\n\n\t@prop({ ref: () => Rider, index: true })\n\tpublic rider?: Ref<Rider>;\n\n\t@prop({ ref: () => User, index: true })\n\tpublic user?: Ref<User>;\n\n\t@prop({ type: String, enum: SettlementType })\n\tpublic settlementType: SettlementType;\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\t@prop({ ref: () => Admin })\n\tpublic settleBy: Ref<Admin>;\n}\n"]}
1
+ {"version":3,"file":"finance-settlement.model.js","sourceRoot":"/","sources":["libraries/mongo/models/finance-settlement.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,+CAAsC;AACtC,6CAAoC;AACpC,+CAAsC;AACtC,kDAAyD;AACzD,6CAAoC;AACpC,+CAAsC;AAG/B,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,2BAAU;IAEzC,KAAK,CAAc;IAGnB,IAAI,CAAa;IAGjB,KAAK,CAAc;IAGnB,IAAI,CAAa;IAGjB,cAAc,CAAiB;IAG/B,MAAM,CAAS;IAGf,eAAe,CAAS;IAGxB,QAAQ,CAAa;CAC5B,CAAA;AAxBY,8CAAiB;AAEtB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;gDACd;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;+CACf;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;gDACd;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;+CACf;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAc,EAAE,CAAC;;yDACP;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACb;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;mDACC;4BAvBhB,iBAAiB;IAD7B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,oBAAoB,EAAE,EAAE,CAAC;GACzD,iBAAiB,CAwB7B","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Order } from './order.model';\nimport { Shop } from './shop.model';\nimport { Rider } from './rider.model';\nimport { SettlementType } from '../../../utilities/enum';\nimport { User } from './user.model';\nimport { Admin } from './admin.model';\n\n@modelOptions({ schemaOptions: { collection: 'financeSettlements' } })\nexport class FinanceSettlement extends TimeStamps {\n\t@prop({ ref: () => Order, index: true })\n\tpublic order?: Ref<Order>;\n\n\t@prop({ ref: () => Shop, index: true })\n\tpublic shop?: Ref<Shop>;\n\n\t@prop({ ref: () => Rider, index: true })\n\tpublic rider?: Ref<Rider>;\n\n\t@prop({ ref: () => User, index: true })\n\tpublic user?: Ref<User>;\n\n\t@prop({ type: String, enum: SettlementType })\n\tpublic settlementType: SettlementType;\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\t@prop({ ref: () => Admin })\n\tpublic settleBy: Ref<Admin>;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/core",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",