@lyxa.ai/core 1.3.211 → 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.
- package/dist/libraries/mongo/models/gallery.model.d.ts +1 -0
- package/dist/libraries/mongo/models/gallery.model.js +5 -0
- package/dist/libraries/mongo/models/gallery.model.js.map +1 -1
- package/dist/libraries/mongo/models/product-stock-tracker.model.js +1 -1
- package/dist/libraries/mongo/models/product-stock-tracker.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -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;IA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IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wCACtD;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"]}
|
|
@@ -24,7 +24,7 @@ __decorate([
|
|
|
24
24
|
exports.ProductStockTracker = ProductStockTracker = __decorate([
|
|
25
25
|
(0, typegoose_1.modelOptions)({
|
|
26
26
|
schemaOptions: {
|
|
27
|
-
collection: '
|
|
27
|
+
collection: 'productStockTracks',
|
|
28
28
|
toJSON: { virtuals: true },
|
|
29
29
|
toObject: { virtuals: true },
|
|
30
30
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-stock-tracker.model.js","sourceRoot":"/","sources":["libraries/mongo/models/product-stock-tracker.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,mDAA0C;AASnC,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,2BAAU;IAE3C,UAAU,CAAiB;CAClC,CAAA;AAHY,kDAAmB;AAExB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,uBAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;uDACR;8BAFtB,mBAAmB;IAP/B,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE;YACd,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"product-stock-tracker.model.js","sourceRoot":"/","sources":["libraries/mongo/models/product-stock-tracker.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,mDAA0C;AASnC,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,2BAAU;IAE3C,UAAU,CAAiB;CAClC,CAAA;AAHY,kDAAmB;AAExB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,uBAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;uDACR;8BAFtB,mBAAmB;IAP/B,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE;YACd,UAAU,EAAE,oBAAoB;YAChC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC1B,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;SAC5B;KACD,CAAC;GACW,mBAAmB,CAG/B","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Product } from './product.model';\n\n@modelOptions({\n\tschemaOptions: {\n\t\tcollection: 'productStockTracks',\n\t\ttoJSON: { virtuals: true },\n\t\ttoObject: { virtuals: true },\n\t},\n})\nexport class ProductStockTracker extends TimeStamps {\n\t@prop({ ref: () => Product, default: [] })\n\tpublic productIds: Ref<Product>[];\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED