@lyxa.ai/core 1.4.243 → 1.4.245

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 { Zone } from './zone.model';
2
2
  import { Shop } from './shop.model';
3
3
  import { Vendor } from './vendor.model';
4
4
  import { Product } from './product.model';
5
+ import { Category } from './category.model';
5
6
  import { ProductBrand } from './product-brand.model';
6
7
  import { ServicePackage } from './service-package.model';
7
8
  import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
@@ -15,6 +16,7 @@ export declare class UserAppSectionSetting extends TimeStamps {
15
16
  sortingOrder?: number;
16
17
  customizedShops?: Ref<Shop>[];
17
18
  customizedProductBrands?: Ref<ProductBrand>[];
19
+ shopParentCategories?: Ref<Category>[];
18
20
  customizedItems?: Ref<Product>[];
19
21
  customizedVendors?: Ref<Vendor>[];
20
22
  customizedServicePackages?: Ref<ServicePackage>[];
@@ -14,6 +14,7 @@ const zone_model_1 = require("./zone.model");
14
14
  const shop_model_1 = require("./shop.model");
15
15
  const vendor_model_1 = require("./vendor.model");
16
16
  const product_model_1 = require("./product.model");
17
+ const category_model_1 = require("./category.model");
17
18
  const sorting_order_hooks_1 = require("../utilities/sorting-order.hooks");
18
19
  const _1 = require(".");
19
20
  const product_brand_model_1 = require("./product-brand.model");
@@ -29,6 +30,7 @@ let UserAppSectionSetting = class UserAppSectionSetting extends defaultClasses_1
29
30
  sortingOrder;
30
31
  customizedShops;
31
32
  customizedProductBrands;
33
+ shopParentCategories;
32
34
  customizedItems;
33
35
  customizedVendors;
34
36
  customizedServicePackages;
@@ -63,6 +65,10 @@ __decorate([
63
65
  (0, typegoose_1.prop)({ ref: () => product_brand_model_1.ProductBrand }),
64
66
  __metadata("design:type", Array)
65
67
  ], UserAppSectionSetting.prototype, "customizedProductBrands", void 0);
68
+ __decorate([
69
+ (0, typegoose_1.prop)({ ref: () => category_model_1.Category }),
70
+ __metadata("design:type", Array)
71
+ ], UserAppSectionSetting.prototype, "shopParentCategories", void 0);
66
72
  __decorate([
67
73
  (0, typegoose_1.prop)({ ref: () => product_model_1.Product }),
68
74
  __metadata("design:type", Array)
@@ -1 +1 @@
1
- {"version":3,"file":"user-app-section-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/user-app-section-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAAoC;AACpC,6CAAoC;AACpC,iDAAwC;AACxC,mDAA0C;AAC1C,0EAG0C;AAC1C,wBAA+C;AAC/C,+DAAqD;AACrD,mEAAyD;AACzD,4EAAqE;AACrE,oDAAoE;AACpE,kDAA6F;AAoBtF,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,2BAAU;IAE7C,QAAQ,CAA0B;IAGlC,OAAO,CAAsB;IAG7B,KAAK,CAAU;IAGf,MAAM,CAAU;IAGhB,YAAY,CAAU;IAGtB,eAAe,CAAe;IAG9B,uBAAuB,CAAuB;IAG9C,eAAe,CAAkB;IAGjC,iBAAiB,CAAiB;IAGlC,yBAAyB,CAAyB;IAGlD,YAAY,CAAe;CAClC,CAAA;AAjCY,sDAAqB;AAE1B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,6BAAsB,EAAE,CAAC;;uDAC5B;AAGlC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAkB,EAAE,CAAC;;sDAC7B;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;qDACtC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2DACM;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;8DACW;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;;sEACmB;AAG9C;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,uBAAO,EAAE,CAAC;;8DACW;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;gEACa;AAGlC;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,sCAAc,EAAE,CAAC;;wEACqB;AAGlD;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;2DACQ;gCAhCtB,qBAAqB;IAlBjC,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE;YACd,UAAU,EAAE,uBAAuB;SACnC;KACD,CAAC;IACD,IAAA,eAAG,EAAwB,MAAM,EAAE,KAAK,WAAW,IAAI;QACvD,MAAM,uDAAiC,CAAC,IAAI,CAAC,IAAI,EAAE,6BAA0B,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAE5G,IAAI,EAAE,CAAC;IACR,CAAC,CAAC;IACD,IAAA,eAAG,EACH,kBAAkB,EAClB,KAAK,WAAoD,IAAI;QAC5D,MAAM,yDAAmC,CAAC,IAAI,CAAC,IAAI,EAAE,6BAA0B,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;QAE/F,IAAI,EAAE,CAAC;IACR,CAAC,CACD;GACY,qBAAqB,CAiCjC","sourcesContent":["import { Query } from 'mongoose';\nimport { Zone } from './zone.model';\nimport { Shop } from './shop.model';\nimport { Vendor } from './vendor.model';\nimport { Product } from './product.model';\nimport {\n\thandlePreSaveForSortingWithStatus,\n\thandlePreUpdateForSortingWithStatus,\n} from '../utilities/sorting-order.hooks';\nimport { UserAppSectionSettingModel } from '.';\nimport { ProductBrand } from './product-brand.model';\nimport { ServicePackage } from './service-package.model';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { modelOptions, pre, prop, Ref } from '@typegoose/typegoose';\nimport { Status, UserAppSectionItemType, UserAppSectionType } from '../../../utilities/enum';\n\n@modelOptions({\n\tschemaOptions: {\n\t\tcollection: 'userAppSectionSetting',\n\t},\n})\n@pre<UserAppSectionSetting>('save', async function (next) {\n\tawait handlePreSaveForSortingWithStatus.call(this, UserAppSectionSettingModel, { itemType: this.itemType });\n\n\tnext();\n})\n@pre<UserAppSectionSetting>(\n\t'findOneAndUpdate',\n\tasync function (this: Query<any, UserAppSectionSetting>, next) {\n\t\tawait handlePreUpdateForSortingWithStatus.call(this, UserAppSectionSettingModel, ['itemType']);\n\n\t\tnext();\n\t}\n)\nexport class UserAppSectionSetting extends TimeStamps {\n\t@prop({ required: true, type: String, enum: UserAppSectionItemType })\n\tpublic itemType!: UserAppSectionItemType;\n\n\t@prop({ required: true, type: String, enum: UserAppSectionType })\n\tpublic section!: UserAppSectionType;\n\n\t@prop({ required: true, type: String })\n\tpublic alias!: string;\n\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status?: Status;\n\n\t@prop({ type: Number })\n\tpublic sortingOrder?: number;\n\n\t@prop({ ref: () => Shop })\n\tpublic customizedShops?: Ref<Shop>[];\n\n\t@prop({ ref: () => ProductBrand })\n\tpublic customizedProductBrands?: Ref<ProductBrand>[];\n\n\t@prop({ ref: () => Product })\n\tpublic customizedItems?: Ref<Product>[];\n\n\t@prop({ ref: () => Vendor })\n\tpublic customizedVendors?: Ref<Vendor>[];\n\n\t@prop({ ref: () => ServicePackage })\n\tpublic customizedServicePackages?: Ref<ServicePackage>[];\n\n\t@prop({ ref: () => Zone })\n\tpublic visibleZones?: Ref<Zone>[];\n}\n"]}
1
+ {"version":3,"file":"user-app-section-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/user-app-section-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAAoC;AACpC,6CAAoC;AACpC,iDAAwC;AACxC,mDAA0C;AAC1C,qDAA4C;AAC5C,0EAG0C;AAC1C,wBAA+C;AAC/C,+DAAqD;AACrD,mEAAyD;AACzD,4EAAqE;AACrE,oDAAoE;AACpE,kDAA6F;AAoBtF,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,2BAAU;IAE7C,QAAQ,CAA0B;IAGlC,OAAO,CAAsB;IAG7B,KAAK,CAAU;IAGf,MAAM,CAAU;IAGhB,YAAY,CAAU;IAGtB,eAAe,CAAe;IAG9B,uBAAuB,CAAuB;IAG9C,oBAAoB,CAAmB;IAGvC,eAAe,CAAkB;IAGjC,iBAAiB,CAAiB;IAGlC,yBAAyB,CAAyB;IAGlD,YAAY,CAAe;CAClC,CAAA;AApCY,sDAAqB;AAE1B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,6BAAsB,EAAE,CAAC;;uDAC5B;AAGlC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAkB,EAAE,CAAC;;sDAC7B;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;qDACtC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2DACM;AAGtB;I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.model';\nimport { Shop } from './shop.model';\nimport { Vendor } from './vendor.model';\nimport { Product } from './product.model';\nimport { Category } from './category.model';\nimport {\n\thandlePreSaveForSortingWithStatus,\n\thandlePreUpdateForSortingWithStatus,\n} from '../utilities/sorting-order.hooks';\nimport { UserAppSectionSettingModel } from '.';\nimport { ProductBrand } from './product-brand.model';\nimport { ServicePackage } from './service-package.model';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { modelOptions, pre, prop, Ref } from '@typegoose/typegoose';\nimport { Status, UserAppSectionItemType, UserAppSectionType } from '../../../utilities/enum';\n\n@modelOptions({\n\tschemaOptions: {\n\t\tcollection: 'userAppSectionSetting',\n\t},\n})\n@pre<UserAppSectionSetting>('save', async function (next) {\n\tawait handlePreSaveForSortingWithStatus.call(this, UserAppSectionSettingModel, { itemType: this.itemType });\n\n\tnext();\n})\n@pre<UserAppSectionSetting>(\n\t'findOneAndUpdate',\n\tasync function (this: Query<any, UserAppSectionSetting>, next) {\n\t\tawait handlePreUpdateForSortingWithStatus.call(this, UserAppSectionSettingModel, ['itemType']);\n\n\t\tnext();\n\t}\n)\nexport class UserAppSectionSetting extends TimeStamps {\n\t@prop({ required: true, type: String, enum: UserAppSectionItemType })\n\tpublic itemType!: UserAppSectionItemType;\n\n\t@prop({ required: true, type: String, enum: UserAppSectionType })\n\tpublic section!: UserAppSectionType;\n\n\t@prop({ required: true, type: String })\n\tpublic alias!: string;\n\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status?: Status;\n\n\t@prop({ type: Number })\n\tpublic sortingOrder?: number;\n\n\t@prop({ ref: () => Shop })\n\tpublic customizedShops?: Ref<Shop>[];\n\n\t@prop({ ref: () => ProductBrand })\n\tpublic customizedProductBrands?: Ref<ProductBrand>[];\n\n\t@prop({ ref: () => Category })\n\tpublic shopParentCategories?: Ref<Category>[];\n\n\t@prop({ ref: () => Product })\n\tpublic customizedItems?: Ref<Product>[];\n\n\t@prop({ ref: () => Vendor })\n\tpublic customizedVendors?: Ref<Vendor>[];\n\n\t@prop({ ref: () => ServicePackage })\n\tpublic customizedServicePackages?: Ref<ServicePackage>[];\n\n\t@prop({ ref: () => Zone })\n\tpublic visibleZones?: 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.243
25
+ Version: 1.4.245
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.243",
3
+ "version": "1.4.245",
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.243",
3
+ "version": "1.4.245",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",