@lyxa.ai/core 1.4.237 → 1.4.238

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,6 +1,7 @@
1
1
  import { Ref } from '@typegoose/typegoose';
2
2
  import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
3
3
  import { Status, UserAppSectionItemType, UserAppSectionType } from '../../../utilities/enum';
4
+ import { ProductBrand } from '.';
4
5
  import { Shop } from './shop.model';
5
6
  import { Product } from './product.model';
6
7
  import { Zone } from './zone.model';
@@ -13,6 +14,7 @@ export declare class UserAppSectionSetting extends TimeStamps {
13
14
  status?: Status;
14
15
  sortingOrder?: number;
15
16
  customizedShops?: Ref<Shop>[];
17
+ customizedProductBrands?: Ref<ProductBrand>[];
16
18
  customizedItems?: Ref<Product>[];
17
19
  customizedVendors?: Ref<Vendor>[];
18
20
  customizedServicePackages?: Ref<ServicePackage>[];
@@ -27,6 +27,7 @@ let UserAppSectionSetting = class UserAppSectionSetting extends defaultClasses_1
27
27
  status;
28
28
  sortingOrder;
29
29
  customizedShops;
30
+ customizedProductBrands;
30
31
  customizedItems;
31
32
  customizedVendors;
32
33
  customizedServicePackages;
@@ -57,6 +58,10 @@ __decorate([
57
58
  (0, typegoose_1.prop)({ ref: () => shop_model_1.Shop }),
58
59
  __metadata("design:type", Array)
59
60
  ], UserAppSectionSetting.prototype, "customizedShops", void 0);
61
+ __decorate([
62
+ (0, typegoose_1.prop)({ ref: () => _1.ProductBrand }),
63
+ __metadata("design:type", Array)
64
+ ], UserAppSectionSetting.prototype, "customizedProductBrands", void 0);
60
65
  __decorate([
61
66
  (0, typegoose_1.prop)({ ref: () => product_model_1.Product }),
62
67
  __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":";;;;;;;;;;;;AAAA,oDAAqF;AACrF,4EAAqE;AACrE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AM,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;gCA7BtB,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,CA8BjC","sourcesContent":["import { Index, modelOptions, pre, prop, Ref, Severity } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Status, UserAppSectionItemType, UserAppSectionType } from '../../../utilities/enum';\nimport { UserAppSectionSettingModel } from '.';\nimport { Query } from 'mongoose';\nimport {\n\thandlePreSaveForSortingWithStatus,\n\thandlePreUpdateForSortingWithStatus,\n} from '../utilities/sorting-order.hooks';\nimport { Shop } from './shop.model';\nimport { Product } from './product.model';\nimport { Zone } from './zone.model';\nimport { ServicePackage } from './service-package.model';\nimport { Vendor } from './vendor.model';\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: () => 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":";;;;;;;;;;;;AAAA,oDAAqF;AACrF,4EAAqE;AACrE,kDAA6F;AAC7F,wBAA6D;AAE7D,0EAG0C;AAC1C,6CAAoC;AACpC,mDAA0C;AAC1C,6CAAoC;AACpC,mEAAyD;AACzD,iDAAwC;AAoBjC,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;IAG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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 { Index, modelOptions, pre, prop, Ref, Severity } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Status, UserAppSectionItemType, UserAppSectionType } from '../../../utilities/enum';\nimport { ProductBrand, UserAppSectionSettingModel } from '.';\nimport { Query } from 'mongoose';\nimport {\n\thandlePreSaveForSortingWithStatus,\n\thandlePreUpdateForSortingWithStatus,\n} from '../utilities/sorting-order.hooks';\nimport { Shop } from './shop.model';\nimport { Product } from './product.model';\nimport { Zone } from './zone.model';\nimport { ServicePackage } from './service-package.model';\nimport { Vendor } from './vendor.model';\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"]}
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.4.237
25
+ Version: 1.4.238
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.237",
3
+ "version": "1.4.238",
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.237",
3
+ "version": "1.4.238",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",