@lyxa.ai/core 1.4.256 → 1.4.257

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.
@@ -6,4 +6,7 @@ export declare class ProductSearchFields {
6
6
  name?: AutoFullTextSearchFields;
7
7
  parentCategories?: AutoFullTextSearchFields;
8
8
  subCategories?: AutoFullTextSearchFields;
9
+ nameArabic?: AutoFullTextSearchFields;
10
+ parentCategoriesArabic?: AutoFullTextSearchFields;
11
+ subCategoriesArabic?: AutoFullTextSearchFields;
9
12
  }
@@ -28,6 +28,9 @@ class ProductSearchFields {
28
28
  name;
29
29
  parentCategories;
30
30
  subCategories;
31
+ nameArabic;
32
+ parentCategoriesArabic;
33
+ subCategoriesArabic;
31
34
  }
32
35
  exports.ProductSearchFields = ProductSearchFields;
33
36
  __decorate([
@@ -42,4 +45,16 @@ __decorate([
42
45
  (0, typegoose_1.prop)({ type: AutoFullTextSearchFields }),
43
46
  __metadata("design:type", AutoFullTextSearchFields)
44
47
  ], ProductSearchFields.prototype, "subCategories", void 0);
48
+ __decorate([
49
+ (0, typegoose_1.prop)({ type: AutoFullTextSearchFields }),
50
+ __metadata("design:type", AutoFullTextSearchFields)
51
+ ], ProductSearchFields.prototype, "nameArabic", void 0);
52
+ __decorate([
53
+ (0, typegoose_1.prop)({ type: AutoFullTextSearchFields }),
54
+ __metadata("design:type", AutoFullTextSearchFields)
55
+ ], ProductSearchFields.prototype, "parentCategoriesArabic", void 0);
56
+ __decorate([
57
+ (0, typegoose_1.prop)({ type: AutoFullTextSearchFields }),
58
+ __metadata("design:type", AutoFullTextSearchFields)
59
+ ], ProductSearchFields.prototype, "subCategoriesArabic", void 0);
45
60
  //# sourceMappingURL=product-search-fields.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-search-fields.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/product-search-fields.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAG5C,MAAa,wBAAwB;IAE7B,YAAY,CAAY;IAGxB,QAAQ,CAAY;CAC3B;AAND,4DAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;8DACM;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;0DACE;AAG5B,MAAa,mBAAmB;IAExB,IAAI,CAA4B;IAGhC,gBAAgB,CAA4B;IAG5C,aAAa,CAA4B;CAChD;AATD,kDASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;8BAC3B,wBAAwB;iDAAC;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;8BACf,wBAAwB;6DAAC;AAG5C;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;8BAClB,wBAAwB;0DAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { Address } from '../shared/address.model';\n\nexport class AutoFullTextSearchFields {\n\t@prop({ type: [String] })\n\tpublic autocomplete?: string[];\n\n\t@prop({ type: [String] })\n\tpublic fulltext?: string[];\n}\n\nexport class ProductSearchFields {\n\t@prop({ type: AutoFullTextSearchFields })\n\tpublic name?: AutoFullTextSearchFields;\n\n\t@prop({ type: AutoFullTextSearchFields })\n\tpublic parentCategories?: AutoFullTextSearchFields;\n\n\t@prop({ type: AutoFullTextSearchFields })\n\tpublic subCategories?: AutoFullTextSearchFields;\n}\n"]}
1
+ {"version":3,"file":"product-search-fields.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/product-search-fields.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,wBAAwB;IAE7B,YAAY,CAAY;IAGxB,QAAQ,CAAY;CAC3B;AAND,4DAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;8DACM;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;0DACE;AAG5B,MAAa,mBAAmB;IAQxB,IAAI,CAA4B;IAGhC,gBAAgB,CAA4B;IAG5C,aAAa,CAA4B;IAUzC,UAAU,CAA4B;IAGtC,sBAAsB,CAA4B;IAGlD,mBAAmB,CAA4B;CACtD;AA/BD,kDA+BC;AAvBO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;8BAC3B,wBAAwB;iDAAC;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;8BACf,wBAAwB;6DAAC;AAG5C;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;8BAClB,wBAAwB;0DAAC;AAUzC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;8BACrB,wBAAwB;uDAAC;AAGtC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;8BACT,wBAAwB;mEAAC;AAGlD;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;8BACZ,wBAAwB;gEAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class AutoFullTextSearchFields {\n\t@prop({ type: [String] })\n\tpublic autocomplete?: string[];\n\n\t@prop({ type: [String] })\n\tpublic fulltext?: string[];\n}\n\nexport class ProductSearchFields {\n\t/**\n\t * English + Arabizi (Latin-script Arabic) variants.\n\t * e.g. fulltext: [\"Chicken Shawarma\", \"shawarma\", \"shawerma\", \"shawrma\"]\n\t * Analyzed with lucene.standard — same script family, so they share this field.\n\t * Fields that support Arabzi: name, parentCategories, subCategories\n\t */\n\t@prop({ type: AutoFullTextSearchFields })\n\tpublic name?: AutoFullTextSearchFields;\n\n\t@prop({ type: AutoFullTextSearchFields })\n\tpublic parentCategories?: AutoFullTextSearchFields;\n\n\t@prop({ type: AutoFullTextSearchFields })\n\tpublic subCategories?: AutoFullTextSearchFields;\n\n\t/**\n\t * Arabic-script variant only.\n\t * e.g. fulltext: [\"شاورما دجاج\"]\n\t * Analyzed with lucene.arabic — handles alef normalization, \"ال\" stripping,\n\t * and diacritic folding, which lucene.standard does not do correctly for Arabic.\n\t * Fields that support Arabzi: nameArabic, parentCategoriesArabic, subCategoriesArabic\n\t */\n\t@prop({ type: AutoFullTextSearchFields })\n\tpublic nameArabic?: AutoFullTextSearchFields;\n\n\t@prop({ type: AutoFullTextSearchFields })\n\tpublic parentCategoriesArabic?: AutoFullTextSearchFields;\n\n\t@prop({ type: AutoFullTextSearchFields })\n\tpublic subCategoriesArabic?: AutoFullTextSearchFields;\n}\n"]}
@@ -5,9 +5,9 @@ interface AuthOptions {
5
5
  autoRefresh?: boolean;
6
6
  }
7
7
  export declare function createAuthenticatedProcedure(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
8
+ req: import("http").IncomingMessage;
8
9
  res: import("http").ServerResponse<import("http").IncomingMessage>;
9
10
  tokenType: TokenType | undefined;
10
- req: import("http").IncomingMessage;
11
11
  requestId: string | undefined;
12
12
  entity: import("../context").EntityContext | undefined;
13
13
  usedRefreshToken: boolean | undefined;
@@ -4,9 +4,9 @@ interface RoleProtectedOptions {
4
4
  allowedRoles: string[];
5
5
  }
6
6
  export declare function createRoleProtectedProcedure(options: RoleProtectedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
7
+ req: import("http").IncomingMessage;
7
8
  res: import("http").ServerResponse<import("http").IncomingMessage>;
8
9
  tokenType: import("../../auth").TokenType | undefined;
9
- req: import("http").IncomingMessage;
10
10
  requestId: string | undefined;
11
11
  entity: import("../context").EntityContext | undefined;
12
12
  usedRefreshToken: boolean | undefined;
@@ -3,9 +3,9 @@ interface PhoneVerifiedOptions {
3
3
  entityTypes: AuthEntityType[];
4
4
  }
5
5
  export declare function createPhoneVerifiedProcedure(options: PhoneVerifiedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
6
+ req: import("http").IncomingMessage;
6
7
  res: import("http").ServerResponse<import("http").IncomingMessage>;
7
8
  tokenType: import("../../auth").TokenType | undefined;
8
- req: import("http").IncomingMessage;
9
9
  requestId: string | undefined;
10
10
  entity: import("../context").EntityContext | undefined;
11
11
  usedRefreshToken: boolean | undefined;
@@ -5,9 +5,9 @@ interface AuthOptions {
5
5
  autoRefresh?: boolean;
6
6
  }
7
7
  export declare function publicUserDecoder(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
8
+ req: import("http").IncomingMessage;
8
9
  res: import("http").ServerResponse<import("http").IncomingMessage>;
9
10
  tokenType: TokenType | undefined;
10
- req: import("http").IncomingMessage;
11
11
  requestId: string | undefined;
12
12
  entity: import("../context").EntityContext | undefined;
13
13
  usedRefreshToken: boolean | undefined;
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.4.256
25
+ Version: 1.4.257
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.256",
3
+ "version": "1.4.257",
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",
@@ -26,8 +26,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
26
26
  searchFields?: string[] | undefined;
27
27
  } | undefined;
28
28
  sort?: Record<string, 1 | -1> | undefined;
29
- select?: Record<string, 0 | 1> | undefined;
30
29
  populate?: any;
30
+ select?: Record<string, 0 | 1> | undefined;
31
31
  query?: Record<string, any> | undefined;
32
32
  }, {
33
33
  search?: {
@@ -36,8 +36,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
36
36
  } | undefined;
37
37
  sort?: Record<string, 1 | -1> | undefined;
38
38
  size?: number | undefined;
39
- select?: Record<string, 0 | 1> | undefined;
40
39
  populate?: any;
40
+ select?: Record<string, 0 | 1> | undefined;
41
41
  query?: Record<string, any> | undefined;
42
42
  page?: number | undefined;
43
43
  }>>;
@@ -735,12 +735,12 @@ export declare const GetByIdInputSchema: z.ZodObject<{
735
735
  populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
736
736
  }, "strip", z.ZodTypeAny, {
737
737
  _id: import("mongoose").Types.ObjectId;
738
- select?: Record<string, 0 | 1> | undefined;
739
738
  populate?: any;
739
+ select?: Record<string, 0 | 1> | undefined;
740
740
  }, {
741
741
  _id: string | import("mongoose").Types.ObjectId;
742
- select?: Record<string, 0 | 1> | undefined;
743
742
  populate?: any;
743
+ select?: Record<string, 0 | 1> | undefined;
744
744
  }>;
745
745
  export type GetByIdInputDTO = DTO<typeof GetByIdInputSchema>;
746
746
  export declare const GetProductByIdInputSchema: z.ZodObject<{
@@ -753,12 +753,12 @@ export declare const GetProductByIdInputSchema: z.ZodObject<{
753
753
  _id: import("mongoose").Types.ObjectId;
754
754
  withAttributeHiddenItems: boolean;
755
755
  withAddonsHiddenItems: boolean;
756
- select?: Record<string, 0 | 1> | undefined;
757
756
  populate?: any;
757
+ select?: Record<string, 0 | 1> | undefined;
758
758
  }, {
759
759
  _id: string | import("mongoose").Types.ObjectId;
760
- select?: Record<string, 0 | 1> | undefined;
761
760
  populate?: any;
761
+ select?: Record<string, 0 | 1> | undefined;
762
762
  withAttributeHiddenItems?: boolean | undefined;
763
763
  withAddonsHiddenItems?: boolean | undefined;
764
764
  }>;
@@ -772,15 +772,15 @@ export declare const GetOrderByIdInputSchema: z.ZodObject<{
772
772
  userOrderCompletionScope: z.ZodOptional<z.ZodNativeEnum<typeof UserOrderCompletionScope>>;
773
773
  }, "strip", z.ZodTypeAny, {
774
774
  _id: import("mongoose").Types.ObjectId;
775
- select?: Record<string, 0 | 1> | undefined;
776
775
  populate?: any;
776
+ select?: Record<string, 0 | 1> | undefined;
777
777
  groupByCategories?: boolean | undefined;
778
778
  getParentCategory?: boolean | undefined;
779
779
  userOrderCompletionScope?: UserOrderCompletionScope | undefined;
780
780
  }, {
781
781
  _id: string | import("mongoose").Types.ObjectId;
782
- select?: Record<string, 0 | 1> | undefined;
783
782
  populate?: any;
783
+ select?: Record<string, 0 | 1> | undefined;
784
784
  groupByCategories?: boolean | undefined;
785
785
  getParentCategory?: boolean | undefined;
786
786
  userOrderCompletionScope?: UserOrderCompletionScope | undefined;
@@ -790,11 +790,11 @@ export declare const GetByTokenInputSchema: z.ZodOptional<z.ZodObject<{
790
790
  select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
791
791
  populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
792
792
  }, "strip", z.ZodTypeAny, {
793
- select?: Record<string, 0 | 1> | undefined;
794
793
  populate?: any;
795
- }, {
796
794
  select?: Record<string, 0 | 1> | undefined;
795
+ }, {
797
796
  populate?: any;
797
+ select?: Record<string, 0 | 1> | undefined;
798
798
  }>>;
799
799
  export type GetByTokenInputDTO = DTO<typeof GetByTokenInputSchema>;
800
800
  export declare const GetOneQuerySchema: z.ZodObject<{
@@ -802,12 +802,12 @@ export declare const GetOneQuerySchema: z.ZodObject<{
802
802
  select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
803
803
  populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
804
804
  }, "strip", z.ZodTypeAny, {
805
- select?: Record<string, 0 | 1> | undefined;
806
805
  populate?: any;
806
+ select?: Record<string, 0 | 1> | undefined;
807
807
  query?: Record<string, any> | undefined;
808
808
  }, {
809
- select?: Record<string, 0 | 1> | undefined;
810
809
  populate?: any;
810
+ select?: Record<string, 0 | 1> | undefined;
811
811
  query?: Record<string, any> | undefined;
812
812
  }>;
813
813
  export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/core",
3
- "version": "1.4.256",
3
+ "version": "1.4.257",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",