@lyxa.ai/core 1.4.237 → 1.4.239

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 +1 @@
1
- {"version":3,"file":"product-brand.model.js","sourceRoot":"/","sources":["libraries/mongo/models/product-brand.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiE;AACjE,4EAAqE;AACrE,kDAAqE;AAI9D,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,2BAAU;IAEjC,IAAI,CAAU;IAGd,SAAS,CAAoB;IAG7B,QAAQ,CAAU;CAC5B,CAAA;AATY,oCAAY;AAEd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;;0CAC7C;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,uBAAgB,EAAE,CAAC;;+CACjB;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACE;uBARhB,YAAY;IAFxB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,eAAe,EAAE,EAAE,CAAC;IAChE,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;GACtE,YAAY,CASxB","sourcesContent":["import { Index, modelOptions, prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { ItemType, ProductBrandType } from '../../../utilities/enum';\n\n@modelOptions({ schemaOptions: { collection: 'productBrands' } })\n@Index({ name: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\nexport class ProductBrand extends TimeStamps {\n @prop({ required: true, type: String, trim: true, maxlength: 50 })\n public name!: string;\n\n @prop({ type: () => String, enum: ProductBrandType })\n public brandType?: ProductBrandType;\n\n @prop({ type: String })\n public imageUrl?: string;\n}\n"]}
1
+ {"version":3,"file":"product-brand.model.js","sourceRoot":"/","sources":["libraries/mongo/models/product-brand.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,4EAAqE;AACrE,kDAA2D;AAIpD,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,2BAAU;IAEjC,IAAI,CAAU;IAGd,SAAS,CAAoB;IAG7B,QAAQ,CAAU;CAC5B,CAAA;AATY,oCAAY;AAEd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;;0CAC7C;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,uBAAgB,EAAE,CAAC;;+CACjB;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACE;uBARhB,YAAY;IAFxB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,eAAe,EAAE,EAAE,CAAC;IAChE,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;GACtE,YAAY,CASxB","sourcesContent":["import { Index, modelOptions, pre, prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { ProductBrandType } from '../../../utilities/enum';\n\n@modelOptions({ schemaOptions: { collection: 'productBrands' } })\n@Index({ name: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\nexport class ProductBrand extends TimeStamps {\n @prop({ required: true, type: String, trim: true, maxlength: 50 })\n public name!: string;\n\n @prop({ type: () => String, enum: ProductBrandType })\n public brandType?: ProductBrandType;\n\n @prop({ type: String })\n public imageUrl?: string;\n}\n"]}
@@ -1,11 +1,12 @@
1
- import { Ref } from '@typegoose/typegoose';
2
- import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
3
- import { Status, UserAppSectionItemType, UserAppSectionType } from '../../../utilities/enum';
1
+ import { Zone } from './zone.model';
4
2
  import { Shop } from './shop.model';
3
+ import { Vendor } from './vendor.model';
5
4
  import { Product } from './product.model';
6
- import { Zone } from './zone.model';
5
+ import { ProductBrand } from './product-brand.model';
7
6
  import { ServicePackage } from './service-package.model';
8
- import { Vendor } from './vendor.model';
7
+ import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
8
+ import { Ref } from '@typegoose/typegoose';
9
+ import { Status, UserAppSectionItemType, UserAppSectionType } from '../../../utilities/enum';
9
10
  export declare class UserAppSectionSetting extends TimeStamps {
10
11
  itemType: UserAppSectionItemType;
11
12
  section: UserAppSectionType;
@@ -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>[];
@@ -10,16 +10,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UserAppSectionSetting = void 0;
13
- const typegoose_1 = require("@typegoose/typegoose");
14
- const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
15
- const enum_1 = require("../../../utilities/enum");
16
- const _1 = require(".");
17
- const sorting_order_hooks_1 = require("../utilities/sorting-order.hooks");
13
+ const zone_model_1 = require("./zone.model");
18
14
  const shop_model_1 = require("./shop.model");
15
+ const vendor_model_1 = require("./vendor.model");
19
16
  const product_model_1 = require("./product.model");
20
- const zone_model_1 = require("./zone.model");
17
+ const sorting_order_hooks_1 = require("../utilities/sorting-order.hooks");
18
+ const _1 = require(".");
19
+ const product_brand_model_1 = require("./product-brand.model");
21
20
  const service_package_model_1 = require("./service-package.model");
22
- const vendor_model_1 = require("./vendor.model");
21
+ const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
22
+ const typegoose_1 = require("@typegoose/typegoose");
23
+ const enum_1 = require("../../../utilities/enum");
23
24
  let UserAppSectionSetting = class UserAppSectionSetting extends defaultClasses_1.TimeStamps {
24
25
  itemType;
25
26
  section;
@@ -27,6 +28,7 @@ let UserAppSectionSetting = class UserAppSectionSetting extends defaultClasses_1
27
28
  status;
28
29
  sortingOrder;
29
30
  customizedShops;
31
+ customizedProductBrands;
30
32
  customizedItems;
31
33
  customizedVendors;
32
34
  customizedServicePackages;
@@ -57,6 +59,10 @@ __decorate([
57
59
  (0, typegoose_1.prop)({ ref: () => shop_model_1.Shop }),
58
60
  __metadata("design:type", Array)
59
61
  ], UserAppSectionSetting.prototype, "customizedShops", void 0);
62
+ __decorate([
63
+ (0, typegoose_1.prop)({ ref: () => product_brand_model_1.ProductBrand }),
64
+ __metadata("design:type", Array)
65
+ ], UserAppSectionSetting.prototype, "customizedProductBrands", void 0);
60
66
  __decorate([
61
67
  (0, typegoose_1.prop)({ ref: () => product_model_1.Product }),
62
68
  __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,kDAA6F;AAC7F,wBAA+C;AAE/C,0EAG0C;AAC1C,6CAAoC;AACpC,mDAA0C;AAC1C,6CAAoC;AACpC,mEAAyD;AACzD,iDAAwC;AAoBjC,I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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":";;;;;;;;;;;;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,CA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,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"]}
@@ -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.239
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.239",
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.239",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",