@lyxa.ai/core 1.1.8 → 1.1.9
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/shop-search-fields.model.d.ts +10 -5
- package/dist/libraries/mongo/models/embedded/shop-search-fields.model.js +24 -6
- package/dist/libraries/mongo/models/embedded/shop-search-fields.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,7 +1,12 @@
|
|
|
1
|
+
export declare class SearchFields {
|
|
2
|
+
autocomplete?: string;
|
|
3
|
+
fulltext?: string;
|
|
4
|
+
}
|
|
1
5
|
export declare class ShopSearchFields {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
name?: SearchFields;
|
|
7
|
+
products?: SearchFields[];
|
|
8
|
+
tags?: SearchFields[];
|
|
9
|
+
parentCategories?: SearchFields[];
|
|
10
|
+
subCategories?: SearchFields[];
|
|
11
|
+
brands?: SearchFields[];
|
|
7
12
|
}
|
|
@@ -9,9 +9,23 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ShopSearchFields = void 0;
|
|
12
|
+
exports.ShopSearchFields = exports.SearchFields = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
class SearchFields {
|
|
15
|
+
autocomplete;
|
|
16
|
+
fulltext;
|
|
17
|
+
}
|
|
18
|
+
exports.SearchFields = SearchFields;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typegoose_1.prop)({ type: [String] }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], SearchFields.prototype, "autocomplete", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typegoose_1.prop)({ type: [String] }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], SearchFields.prototype, "fulltext", void 0);
|
|
14
27
|
class ShopSearchFields {
|
|
28
|
+
name;
|
|
15
29
|
products;
|
|
16
30
|
tags;
|
|
17
31
|
parentCategories;
|
|
@@ -20,23 +34,27 @@ class ShopSearchFields {
|
|
|
20
34
|
}
|
|
21
35
|
exports.ShopSearchFields = ShopSearchFields;
|
|
22
36
|
__decorate([
|
|
23
|
-
(0, typegoose_1.prop)({ type:
|
|
37
|
+
(0, typegoose_1.prop)({ type: SearchFields }),
|
|
38
|
+
__metadata("design:type", SearchFields)
|
|
39
|
+
], ShopSearchFields.prototype, "name", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typegoose_1.prop)({ type: [SearchFields] }),
|
|
24
42
|
__metadata("design:type", Array)
|
|
25
43
|
], ShopSearchFields.prototype, "products", void 0);
|
|
26
44
|
__decorate([
|
|
27
|
-
(0, typegoose_1.prop)({ type: [
|
|
45
|
+
(0, typegoose_1.prop)({ type: [SearchFields] }),
|
|
28
46
|
__metadata("design:type", Array)
|
|
29
47
|
], ShopSearchFields.prototype, "tags", void 0);
|
|
30
48
|
__decorate([
|
|
31
|
-
(0, typegoose_1.prop)({ type: [
|
|
49
|
+
(0, typegoose_1.prop)({ type: [SearchFields] }),
|
|
32
50
|
__metadata("design:type", Array)
|
|
33
51
|
], ShopSearchFields.prototype, "parentCategories", void 0);
|
|
34
52
|
__decorate([
|
|
35
|
-
(0, typegoose_1.prop)({ type: [
|
|
53
|
+
(0, typegoose_1.prop)({ type: [SearchFields] }),
|
|
36
54
|
__metadata("design:type", Array)
|
|
37
55
|
], ShopSearchFields.prototype, "subCategories", void 0);
|
|
38
56
|
__decorate([
|
|
39
|
-
(0, typegoose_1.prop)({ type: [
|
|
57
|
+
(0, typegoose_1.prop)({ type: [SearchFields] }),
|
|
40
58
|
__metadata("design:type", Array)
|
|
41
59
|
], ShopSearchFields.prototype, "brands", void 0);
|
|
42
60
|
//# sourceMappingURL=shop-search-fields.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shop-search-fields.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/shop-search-fields.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;
|
|
1
|
+
{"version":3,"file":"shop-search-fields.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/shop-search-fields.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,MAAa,YAAY;IAEjB,YAAY,CAAU;IAGtB,QAAQ,CAAU;CACzB;AAND,oCAMC;AAJO;IADH,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;kDACC;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;8CACA;AAE1B,MAAa,gBAAgB;IAErB,IAAI,CAAgB;IAGpB,QAAQ,CAAkB;IAG1B,IAAI,CAAkB;IAGnB,gBAAgB,CAAkB;IAGlC,aAAa,CAAkB;IAGlC,MAAM,CAAkB;CAC/B;AAlBD,4CAkBC;AAhBO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACf,YAAY;8CAAC;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;;kDACE;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;;8CACF;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;;0DACU;AAGlC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;;uDACO;AAGlC;IADH,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;;gDACH","sourcesContent":["import { prop } from '@typegoose/typegoose';\nexport class SearchFields {\n @prop({ type: [String] })\n\tpublic autocomplete?: string;\n\n\t@prop({ type: [String] })\n\tpublic fulltext?: string; \n}\nexport class ShopSearchFields {\n\t@prop({ type: SearchFields })\n\tpublic name?: SearchFields;\n\n\t@prop({ type: [SearchFields] })\n\tpublic products?: SearchFields[];\n\n\t@prop({ type: [SearchFields] })\n\tpublic tags?: SearchFields[]; \n\n @prop({ type: [SearchFields] })\n public parentCategories?: SearchFields[]; \n\n @prop({ type: [SearchFields] })\n public subCategories?: SearchFields[]; \n\n @prop({ type: [SearchFields] })\n\tpublic brands?: SearchFields[]; \n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED