@lyxa.ai/core 1.0.215 → 1.0.216
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/embedded/product-snap.model.d.ts +1 -12
- package/dist/libraries/mongo/models/embedded/product-snap.model.js +0 -51
- package/dist/libraries/mongo/models/embedded/product-snap.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ProductNutrition } from './product-nutrition.model';
|
|
1
|
+
import { ProductType } from '../../../../utilities/enum';
|
|
3
2
|
export declare class ProductSnap {
|
|
4
3
|
name: string;
|
|
5
4
|
barcode?: string;
|
|
@@ -7,15 +6,5 @@ export declare class ProductSnap {
|
|
|
7
6
|
logo?: string;
|
|
8
7
|
images?: string[];
|
|
9
8
|
description?: string;
|
|
10
|
-
isNutritionEnabled?: boolean;
|
|
11
|
-
nutritionPackSize?: number;
|
|
12
|
-
nutritionPackSizeUnit?: string;
|
|
13
|
-
nutritions?: ProductNutrition[];
|
|
14
|
-
dietaryTypes?: ProductDietaryType[];
|
|
15
|
-
storedTemperature?: number;
|
|
16
9
|
isDrinkIncluded?: boolean;
|
|
17
|
-
isLargeItem?: boolean;
|
|
18
|
-
isPreOrderEnabled?: boolean;
|
|
19
|
-
numberOfPreparingHours?: number;
|
|
20
|
-
note?: string;
|
|
21
10
|
}
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.ProductSnap = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const enum_1 = require("../../../../utilities/enum");
|
|
15
|
-
const product_nutrition_model_1 = require("./product-nutrition.model");
|
|
16
15
|
class ProductSnap {
|
|
17
16
|
name;
|
|
18
17
|
barcode;
|
|
@@ -20,17 +19,7 @@ class ProductSnap {
|
|
|
20
19
|
logo;
|
|
21
20
|
images;
|
|
22
21
|
description;
|
|
23
|
-
isNutritionEnabled;
|
|
24
|
-
nutritionPackSize;
|
|
25
|
-
nutritionPackSizeUnit;
|
|
26
|
-
nutritions;
|
|
27
|
-
dietaryTypes;
|
|
28
|
-
storedTemperature;
|
|
29
22
|
isDrinkIncluded;
|
|
30
|
-
isLargeItem;
|
|
31
|
-
isPreOrderEnabled;
|
|
32
|
-
numberOfPreparingHours;
|
|
33
|
-
note;
|
|
34
23
|
}
|
|
35
24
|
exports.ProductSnap = ProductSnap;
|
|
36
25
|
__decorate([
|
|
@@ -57,48 +46,8 @@ __decorate([
|
|
|
57
46
|
(0, typegoose_1.prop)({ type: String }),
|
|
58
47
|
__metadata("design:type", String)
|
|
59
48
|
], ProductSnap.prototype, "description", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
62
|
-
__metadata("design:type", Boolean)
|
|
63
|
-
], ProductSnap.prototype, "isNutritionEnabled", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typegoose_1.prop)({ type: Number }),
|
|
66
|
-
__metadata("design:type", Number)
|
|
67
|
-
], ProductSnap.prototype, "nutritionPackSize", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typegoose_1.prop)({ type: String }),
|
|
70
|
-
__metadata("design:type", String)
|
|
71
|
-
], ProductSnap.prototype, "nutritionPackSizeUnit", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typegoose_1.prop)({ type: [product_nutrition_model_1.ProductNutrition], default: [] }),
|
|
74
|
-
__metadata("design:type", Array)
|
|
75
|
-
], ProductSnap.prototype, "nutritions", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typegoose_1.prop)({ type: [String], enum: enum_1.ProductDietaryType, default: [] }),
|
|
78
|
-
__metadata("design:type", Array)
|
|
79
|
-
], ProductSnap.prototype, "dietaryTypes", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typegoose_1.prop)({ type: Number }),
|
|
82
|
-
__metadata("design:type", Number)
|
|
83
|
-
], ProductSnap.prototype, "storedTemperature", void 0);
|
|
84
49
|
__decorate([
|
|
85
50
|
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
86
51
|
__metadata("design:type", Boolean)
|
|
87
52
|
], ProductSnap.prototype, "isDrinkIncluded", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
90
|
-
__metadata("design:type", Boolean)
|
|
91
|
-
], ProductSnap.prototype, "isLargeItem", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
94
|
-
__metadata("design:type", Boolean)
|
|
95
|
-
], ProductSnap.prototype, "isPreOrderEnabled", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, typegoose_1.prop)({ type: Number }),
|
|
98
|
-
__metadata("design:type", Number)
|
|
99
|
-
], ProductSnap.prototype, "numberOfPreparingHours", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
(0, typegoose_1.prop)({ type: String }),
|
|
102
|
-
__metadata("design:type", String)
|
|
103
|
-
], ProductSnap.prototype, "note", void 0);
|
|
104
53
|
//# sourceMappingURL=product-snap.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-snap.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/product-snap.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"product-snap.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/product-snap.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAyD;AAEzD,MAAa,WAAW;IAEhB,IAAI,CAAU;IAGd,OAAO,CAAU;IAGjB,WAAW,CAAe;IAG1B,IAAI,CAAU;IAGd,MAAM,CAAY;IAGlB,WAAW,CAAU;IAGrB,eAAe,CAAW;CACjC;AArBD,kCAqBC;AAnBO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACC;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAW,EAAE,CAAC;;gDACT;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACF;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;2CACb;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACK;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;oDACP","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { ProductType } from '../../../../utilities/enum';\n\nexport class ProductSnap {\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ type: String })\n\tpublic barcode?: string;\n\n\t@prop({ type: String, enum: ProductType })\n\tpublic productType?: ProductType;\n\n\t@prop({ type: String })\n\tpublic logo?: string;\n\n\t@prop({ type: [String], default: [] })\n\tpublic images?: string[];\n\n\t@prop({ type: String })\n\tpublic description?: string;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isDrinkIncluded?: boolean;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED