@lyxa.ai/core 1.3.212 → 1.3.213

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.
@@ -9,4 +9,5 @@ export declare class Gallery extends TimeStamps {
9
9
  logo?: string;
10
10
  category?: Ref<Category>;
11
11
  brand?: string;
12
+ barcode?: string;
12
13
  }
@@ -21,6 +21,7 @@ let Gallery = class Gallery extends defaultClasses_1.TimeStamps {
21
21
  logo;
22
22
  category;
23
23
  brand;
24
+ barcode;
24
25
  };
25
26
  exports.Gallery = Gallery;
26
27
  __decorate([
@@ -47,6 +48,10 @@ __decorate([
47
48
  (0, typegoose_1.prop)({ type: String, maxlength: 50 }),
48
49
  __metadata("design:type", String)
49
50
  ], Gallery.prototype, "brand", void 0);
51
+ __decorate([
52
+ (0, typegoose_1.prop)({ type: String, trim: true, maxlength: 50, unique: true, sparse: true }),
53
+ __metadata("design:type", String)
54
+ ], Gallery.prototype, "barcode", void 0);
50
55
  exports.Gallery = Gallery = __decorate([
51
56
  (0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'galleries' } }),
52
57
  (0, typegoose_1.index)({ title: 'text' })
@@ -1 +1 @@
1
- {"version":3,"file":"gallery.model.js","sourceRoot":"/","sources":["libraries/mongo/models/gallery.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,4EAAqE;AACrE,kDAAoD;AACpD,qDAA4C;AAIrC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,2BAAU;IAE/B,KAAK,CAAU;IAGf,SAAS,CAAa;IAGtB,SAAS,CAAY;IAGrB,IAAI,CAAU;IAGd,QAAQ,CAAiB;IAGzB,KAAK,CAAU;CACtB,CAAA;AAlBY,0BAAO;AAEZ;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;;sCAC9C;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,KAAK,EAAE,CAAC;;0CACrC;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;0CACb;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,yBAAQ,EAAE,CAAC;;yCACE;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;;sCAChB;kBAjBV,OAAO;IAFnB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,CAAC;IAC5D,IAAA,iBAAK,EAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;GACZ,OAAO,CAkBnB","sourcesContent":["import { index, modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { MediaType } from '../../../utilities/enum';\nimport { Category } from './category.model';\n\n@modelOptions({ schemaOptions: { collection: 'galleries' } })\n@index({ title: 'text' })\nexport class Gallery extends TimeStamps {\n\t@prop({ required: true, unique: true, type: String, maxlength: 50 })\n\tpublic title!: string;\n\n\t@prop({ type: String, enum: MediaType, default: MediaType.IMAGE })\n\tpublic mediaType?: MediaType;\n\n\t@prop({ required: true, type: [String] })\n\tpublic mediaUrls!: string[];\n\n\t@prop({ required: true, type: String })\n\tpublic logo?: string;\n\n\t@prop({ ref: () => Category })\n\tpublic category?: Ref<Category>;\n\n\t@prop({ type: String, maxlength: 50 })\n\tpublic brand?: string;\n}\n"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kBApBZ,OAAO;IAFnB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,CAAC;IAC5D,IAAA,iBAAK,EAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;GACZ,OAAO,CAqBnB","sourcesContent":["import { index, modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { MediaType } from '../../../utilities/enum';\nimport { Category } from './category.model';\n\n@modelOptions({ schemaOptions: { collection: 'galleries' } })\n@index({ title: 'text' })\nexport class Gallery extends TimeStamps {\n\t@prop({ required: true, unique: true, type: String, maxlength: 50 })\n\tpublic title!: string;\n\n\t@prop({ type: String, enum: MediaType, default: MediaType.IMAGE })\n\tpublic mediaType?: MediaType;\n\n\t@prop({ required: true, type: [String] })\n\tpublic mediaUrls!: string[];\n\n\t@prop({ required: true, type: String })\n\tpublic logo?: string;\n\n\t@prop({ ref: () => Category })\n\tpublic category?: Ref<Category>;\n\n\t@prop({ type: String, maxlength: 50 })\n\tpublic brand?: string;\n\n\t@prop({ type: String, trim: true, maxlength: 50, unique: true, sparse: true })\n\tpublic barcode?: string;\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.3.212
25
+ Version: 1.3.213
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.3.212",
3
+ "version": "1.3.213",
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.3.212",
3
+ "version": "1.3.213",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",