@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.
@@ -1,7 +1,12 @@
1
+ export declare class SearchFields {
2
+ autocomplete?: string;
3
+ fulltext?: string;
4
+ }
1
5
  export declare class ShopSearchFields {
2
- products?: string[];
3
- tags?: string[];
4
- parentCategories?: string[];
5
- subCategories?: string[];
6
- brands?: string[];
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: [String] }),
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: [String] }),
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: [String] }),
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: [String] }),
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: [String] }),
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;AAE5C,MAAa,gBAAgB;IAErB,QAAQ,CAAY;IAGpB,IAAI,CAAY;IAGb,gBAAgB,CAAY;IAG5B,aAAa,CAAY;IAG5B,MAAM,CAAY;CACzB;AAfD,4CAeC;AAbO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;kDACE;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;8CACF;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;0DACU;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;uDACO;AAG5B;IADH,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;gDACH","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class ShopSearchFields {\n\t@prop({ type: [String] })\n\tpublic products?: string[];\n\n\t@prop({ type: [String] })\n\tpublic tags?: string[]; \n\n @prop({ type: [String] })\n public parentCategories?: string[]; \n\n @prop({ type: [String] })\n public subCategories?: string[]; \n\n @prop({ type: [String] })\n\tpublic brands?: string[]; \n}\n"]}
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"]}
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.1.8
25
+ Version: 1.1.9
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
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.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",