@lyxa.ai/core 1.4.313-alpha-2 → 1.4.313-alpha-4
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/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/dist/types/utilities/shared/common-methods.d.ts +4 -4
- package/dist/types/utilities/shared/common-methods.js +6 -4
- package/dist/types/utilities/shared/common-methods.js.map +1 -1
- package/dist/utilities/shared/common-methods.d.ts +4 -4
- package/dist/utilities/shared/common-methods.js +6 -4
- package/dist/utilities/shared/common-methods.js.map +1 -1
- package/package.json +1 -1
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/types",
|
|
3
|
-
"version": "1.4.313-alpha-
|
|
3
|
+
"version": "1.4.313-alpha-4",
|
|
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",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProductDietaryType } from '../enum';
|
|
2
2
|
export declare function getGroceryFamilyItemTypes(): Promise<string[]>;
|
|
3
3
|
export declare function getUserAppSearchAbleItemTypes(): Promise<string[]>;
|
|
4
|
-
export declare function isGroceryFamilyItemType(itemType: string): boolean
|
|
5
|
-
export declare function getProductDietariesByItemType(itemType:
|
|
4
|
+
export declare function isGroceryFamilyItemType(itemType: string): Promise<boolean>;
|
|
5
|
+
export declare function getProductDietariesByItemType(itemType: string): Promise<{
|
|
6
6
|
icon: string;
|
|
7
7
|
label: string;
|
|
8
8
|
productDietaryType: ProductDietaryType;
|
|
9
|
-
}[]
|
|
9
|
+
}[]>;
|
|
@@ -33,11 +33,13 @@ async function getUserAppSearchAbleItemTypes() {
|
|
|
33
33
|
.lean();
|
|
34
34
|
return services.map(service => service.name);
|
|
35
35
|
}
|
|
36
|
-
function isGroceryFamilyItemType(itemType) {
|
|
37
|
-
|
|
36
|
+
async function isGroceryFamilyItemType(itemType) {
|
|
37
|
+
const groceryFamilyTypeItemTypes = await getGroceryFamilyItemTypes();
|
|
38
|
+
return groceryFamilyTypeItemTypes.includes(itemType);
|
|
38
39
|
}
|
|
39
|
-
function getProductDietariesByItemType(itemType) {
|
|
40
|
-
|
|
40
|
+
async function getProductDietariesByItemType(itemType) {
|
|
41
|
+
const isItemTypeOfGroceryFamilyType = await isGroceryFamilyItemType(itemType);
|
|
42
|
+
if (isItemTypeOfGroceryFamilyType) {
|
|
41
43
|
return [
|
|
42
44
|
{ icon: '', label: 'Gluten Free', productDietaryType: enum_1.ProductDietaryType.GLUTEN_FREE },
|
|
43
45
|
{ icon: '', label: 'Lactose Free', productDietaryType: enum_1.ProductDietaryType.LACTOSE_FREE },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-methods.js","sourceRoot":"/","sources":["utilities/shared/common-methods.ts"],"names":[],"mappings":";;AAWA,8DAWC;AAED,sEAWC;AAED,
|
|
1
|
+
{"version":3,"file":"common-methods.js","sourceRoot":"/","sources":["utilities/shared/common-methods.ts"],"names":[],"mappings":";;AAWA,8DAWC;AAED,sEAWC;AAED,0DAGC;AAED,sEA8CC;AAxFD,yDAAmE;AACnE,kCAAqG;AAErG,MAAM,yBAAyB,GAAa;IAC3C,eAAQ,CAAC,OAAO;IAChB,eAAQ,CAAC,GAAG;IACZ,eAAQ,CAAC,QAAQ;IACjB,eAAQ,CAAC,WAAW;IACpB,eAAQ,CAAC,MAAM;CACN,CAAC;AAEJ,KAAK,UAAU,yBAAyB;IAC9C,MAAM,QAAQ,GAAG,MAAM,4BAAmB,CAAC,IAAI,CAAC;QAC/C,kBAAkB,EAAE,IAAI;QACxB,SAAS,EAAE,IAAI;QAEf,GAAG,EAAE,CAAC,EAAE,WAAW,EAAE,gCAAyB,CAAC,OAAO,EAAE,iBAAiB,EAA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gBACC,IAAI,EAAE,iFAAiF;gBACvF,KAAK,EAAE,YAAY;gBACnB,kBAAkB,EAAE,yBAAkB,CAAC,UAAU;aACjD;YACD;gBACC,IAAI,EAAE,4EAA4E;gBAClF,KAAK,EAAE,OAAO;gBACd,kBAAkB,EAAE,yBAAkB,CAAC,KAAK;aAC5C;YACD,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,IAAI,EAAE;YACxE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,YAAY,EAAE;SACxF,CAAC;IACH,CAAC;SAAM,CAAC;QACP,OAAO;YACN;gBACC,IAAI,EAAE,iFAAiF;gBACvF,KAAK,EAAE,YAAY;gBACnB,kBAAkB,EAAE,yBAAkB,CAAC,UAAU;aACjD;YACD;gBACC,IAAI,EAAE,4EAA4E;gBAClF,KAAK,EAAE,OAAO;gBACd,kBAAkB,EAAE,yBAAkB,CAAC,KAAK;aAC5C;YACD;gBACC,IAAI,EAAE,iFAAiF;gBACvF,KAAK,EAAE,aAAa;gBACpB,kBAAkB,EAAE,yBAAkB,CAAC,WAAW;aAClD;YACD;gBACC,IAAI,EAAE,sFAAsF;gBAC5F,KAAK,EAAE,SAAS;gBAChB,kBAAkB,EAAE,yBAAkB,CAAC,OAAO;aAC9C;SACD,CAAC;IACH,CAAC;AACF,CAAC","sourcesContent":["import { ServiceControlModel } from '../../libraries/mongo/models';\nimport { ItemType, ProductDietaryType, ServiceControlServiceType, ServiceFamilyType } from '../enum';\n\nconst GROCERY_FAMILY_ITEM_TYPES: string[] = [\n\tItemType.GROCERY,\n\tItemType.PET,\n\tItemType.WELLNESS,\n\tItemType.ELECTRONICS,\n\tItemType.BEAUTY,\n] as const;\n\nexport async function getGroceryFamilyItemTypes() {\n\tconst services = await ServiceControlModel.find({\n\t\tisVisibleToUserApp: true,\n\t\tdeletedAt: null,\n\t\t// $or: [{ serviceType: ServiceControlServiceType.REGULAR }, { isCoffee: true }],\n\t\t$or: [{ serviceType: ServiceControlServiceType.REGULAR, serviceFamilyType: ServiceFamilyType.GROCERY }],\n\t})\n\t\t.select('name')\n\t\t.lean();\n\n\treturn services.map(service => service.name);\n}\n\nexport async function getUserAppSearchAbleItemTypes() {\n\tconst services = await ServiceControlModel.find({\n\t\tisVisibleToUserApp: true,\n\t\tdeletedAt: null,\n\t\t// $or: [{ serviceType: ServiceControlServiceType.REGULAR }, { isCoffee: true }],\n\t\t$or: [{ serviceType: ServiceControlServiceType.REGULAR, isSearchAble: true }],\n\t})\n\t\t.select('name')\n\t\t.lean();\n\n\treturn services.map(service => service.name);\n}\n\nexport async function isGroceryFamilyItemType(itemType: string): Promise<boolean> {\n\tconst groceryFamilyTypeItemTypes = await getGroceryFamilyItemTypes();\n\treturn groceryFamilyTypeItemTypes.includes(itemType);\n}\n\nexport async function getProductDietariesByItemType(\n\titemType: string\n): Promise<{ icon: string; label: string; productDietaryType: ProductDietaryType }[]> {\n\tconst isItemTypeOfGroceryFamilyType = await isGroceryFamilyItemType(itemType);\n\tif (isItemTypeOfGroceryFamilyType) {\n\t\treturn [\n\t\t\t{ icon: '', label: 'Gluten Free', productDietaryType: ProductDietaryType.GLUTEN_FREE },\n\t\t\t{ icon: '', label: 'Lactose Free', productDietaryType: ProductDietaryType.LACTOSE_FREE },\n\t\t\t{ icon: '', label: 'Low Cal', productDietaryType: ProductDietaryType.LOW_CAL },\n\t\t\t{\n\t\t\t\ticon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegetarian.png',\n\t\t\t\tlabel: 'Vegetarian',\n\t\t\t\tproductDietaryType: ProductDietaryType.VEGETARIAN,\n\t\t\t},\n\t\t\t{\n\t\t\t\ticon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegan.png',\n\t\t\t\tlabel: 'Vegan',\n\t\t\t\tproductDietaryType: ProductDietaryType.VEGAN,\n\t\t\t},\n\t\t\t{ icon: '', label: 'Keto', productDietaryType: ProductDietaryType.KETO },\n\t\t\t{ icon: '', label: 'High Protein', productDietaryType: ProductDietaryType.HIGH_PROTEIN },\n\t\t];\n\t} else {\n\t\treturn [\n\t\t\t{\n\t\t\t\ticon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegetarian.png',\n\t\t\t\tlabel: 'Vegeterian',\n\t\t\t\tproductDietaryType: ProductDietaryType.VEGETARIAN,\n\t\t\t},\n\t\t\t{\n\t\t\t\ticon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegan.png',\n\t\t\t\tlabel: 'Vegan',\n\t\t\t\tproductDietaryType: ProductDietaryType.VEGAN,\n\t\t\t},\n\t\t\t{\n\t\t\t\ticon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/glutenFree.png',\n\t\t\t\tlabel: 'Gluten Free',\n\t\t\t\tproductDietaryType: ProductDietaryType.GLUTEN_FREE,\n\t\t\t},\n\t\t\t{\n\t\t\t\ticon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/allergyFriendly.png',\n\t\t\t\tlabel: 'Low Cal',\n\t\t\t\tproductDietaryType: ProductDietaryType.LOW_CAL,\n\t\t\t},\n\t\t];\n\t}\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProductDietaryType } from '../enum';
|
|
2
2
|
export declare function getGroceryFamilyItemTypes(): Promise<string[]>;
|
|
3
3
|
export declare function getUserAppSearchAbleItemTypes(): Promise<string[]>;
|
|
4
|
-
export declare function isGroceryFamilyItemType(itemType: string): boolean
|
|
5
|
-
export declare function getProductDietariesByItemType(itemType:
|
|
4
|
+
export declare function isGroceryFamilyItemType(itemType: string): Promise<boolean>;
|
|
5
|
+
export declare function getProductDietariesByItemType(itemType: string): Promise<{
|
|
6
6
|
icon: string;
|
|
7
7
|
label: string;
|
|
8
8
|
productDietaryType: ProductDietaryType;
|
|
9
|
-
}[]
|
|
9
|
+
}[]>;
|
|
@@ -33,11 +33,13 @@ async function getUserAppSearchAbleItemTypes() {
|
|
|
33
33
|
.lean();
|
|
34
34
|
return services.map(service => service.name);
|
|
35
35
|
}
|
|
36
|
-
function isGroceryFamilyItemType(itemType) {
|
|
37
|
-
|
|
36
|
+
async function isGroceryFamilyItemType(itemType) {
|
|
37
|
+
const groceryFamilyTypeItemTypes = await getGroceryFamilyItemTypes();
|
|
38
|
+
return groceryFamilyTypeItemTypes.includes(itemType);
|
|
38
39
|
}
|
|
39
|
-
function getProductDietariesByItemType(itemType) {
|
|
40
|
-
|
|
40
|
+
async function getProductDietariesByItemType(itemType) {
|
|
41
|
+
const isItemTypeOfGroceryFamilyType = await isGroceryFamilyItemType(itemType);
|
|
42
|
+
if (isItemTypeOfGroceryFamilyType) {
|
|
41
43
|
return [
|
|
42
44
|
{ icon: '', label: 'Gluten Free', productDietaryType: enum_1.ProductDietaryType.GLUTEN_FREE },
|
|
43
45
|
{ icon: '', label: 'Lactose Free', productDietaryType: enum_1.ProductDietaryType.LACTOSE_FREE },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-methods.js","sourceRoot":"/","sources":["utilities/shared/common-methods.ts"],"names":[],"mappings":";;AAWA,8DAWC;AAED,sEAWC;AAED,
|
|
1
|
+
{"version":3,"file":"common-methods.js","sourceRoot":"/","sources":["utilities/shared/common-methods.ts"],"names":[],"mappings":";;AAWA,8DAWC;AAED,sEAWC;AAED,0DAGC;AAED,sEA8CC;AAxFD,yDAAmE;AACnE,kCAAqG;AAErG,MAAM,yBAAyB,GAAa;IAC3C,eAAQ,CAAC,OAAO;IAChB,eAAQ,CAAC,GAAG;IACZ,eAAQ,CAAC,QAAQ;IACjB,eAAQ,CAAC,WAAW;IACpB,eAAQ,CAAC,MAAM;CACN,CAAC;AAEJ,KAAK,UAAU,yBAAyB;IAC9C,MAAM,QAAQ,GAAG,MAAM,4BAAmB,CAAC,IAAI,CAAC;QAC/C,kBAAkB,EAAE,IAAI;QACxB,S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,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,OAAO,EAAE;YAC9E;gBACC,IAAI,EAAE,iFAAiF;gBACvF,KAAK,EAAE,YAAY;gBACnB,kBAAkB,EAAE,yBAAkB,CAAC,UAAU;aACjD;YACD;gBACC,IAAI,EAAE,4EAA4E;gBAClF,KAAK,EAAE,OAAO;gBACd,kBAAkB,EAAE,yBAAkB,CAAC,KAAK;aAC5C;YACD,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,IAAI,EAAE;YACxE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,YAAY,EAAE;SACxF,CAAC;IACH,CAAC;SAAM,CAAC;QACP,OAAO;YACN;gBACC,IAAI,EAAE,iFAAiF;gBACvF,KAAK,EAAE,YAAY;gBACnB,kBAAkB,EAAE,yBAAkB,CAAC,UAAU;aACjD;YACD;gBACC,IAAI,EAAE,4EAA4E;gBAClF,KAAK,EAAE,OAAO;gBACd,kBAAkB,EAAE,yBAAkB,CAAC,KAAK;aAC5C;YACD;gBACC,IAAI,EAAE,iFAAiF;gBACvF,KAAK,EAAE,aAAa;gBACpB,kBAAkB,EAAE,yBAAkB,CAAC,WAAW;aAClD;YACD;gBACC,IAAI,EAAE,sFAAsF;gBAC5F,KAAK,EAAE,SAAS;gBAChB,kBAAkB,EAAE,yBAAkB,CAAC,OAAO;aAC9C;SACD,CAAC;IACH,CAAC;AACF,CAAC","sourcesContent":["import { ServiceControlModel } from '../../libraries/mongo/models';\nimport { ItemType, ProductDietaryType, ServiceControlServiceType, ServiceFamilyType } from '../enum';\n\nconst GROCERY_FAMILY_ITEM_TYPES: string[] = [\n\tItemType.GROCERY,\n\tItemType.PET,\n\tItemType.WELLNESS,\n\tItemType.ELECTRONICS,\n\tItemType.BEAUTY,\n] as const;\n\nexport async function getGroceryFamilyItemTypes() {\n\tconst services = await ServiceControlModel.find({\n\t\tisVisibleToUserApp: true,\n\t\tdeletedAt: null,\n\t\t// $or: [{ serviceType: ServiceControlServiceType.REGULAR }, { isCoffee: true }],\n\t\t$or: [{ serviceType: ServiceControlServiceType.REGULAR, serviceFamilyType: ServiceFamilyType.GROCERY }],\n\t})\n\t\t.select('name')\n\t\t.lean();\n\n\treturn services.map(service => service.name);\n}\n\nexport async function getUserAppSearchAbleItemTypes() {\n\tconst services = await ServiceControlModel.find({\n\t\tisVisibleToUserApp: true,\n\t\tdeletedAt: null,\n\t\t// $or: [{ serviceType: ServiceControlServiceType.REGULAR }, { isCoffee: true }],\n\t\t$or: [{ serviceType: ServiceControlServiceType.REGULAR, isSearchAble: true }],\n\t})\n\t\t.select('name')\n\t\t.lean();\n\n\treturn services.map(service => service.name);\n}\n\nexport async function isGroceryFamilyItemType(itemType: string): Promise<boolean> {\n\tconst groceryFamilyTypeItemTypes = await getGroceryFamilyItemTypes();\n\treturn groceryFamilyTypeItemTypes.includes(itemType);\n}\n\nexport async function getProductDietariesByItemType(\n\titemType: string\n): Promise<{ icon: string; label: string; productDietaryType: ProductDietaryType }[]> {\n\tconst isItemTypeOfGroceryFamilyType = await isGroceryFamilyItemType(itemType);\n\tif (isItemTypeOfGroceryFamilyType) {\n\t\treturn [\n\t\t\t{ icon: '', label: 'Gluten Free', productDietaryType: ProductDietaryType.GLUTEN_FREE },\n\t\t\t{ icon: '', label: 'Lactose Free', productDietaryType: ProductDietaryType.LACTOSE_FREE },\n\t\t\t{ icon: '', label: 'Low Cal', productDietaryType: ProductDietaryType.LOW_CAL },\n\t\t\t{\n\t\t\t\ticon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegetarian.png',\n\t\t\t\tlabel: 'Vegetarian',\n\t\t\t\tproductDietaryType: ProductDietaryType.VEGETARIAN,\n\t\t\t},\n\t\t\t{\n\t\t\t\ticon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegan.png',\n\t\t\t\tlabel: 'Vegan',\n\t\t\t\tproductDietaryType: ProductDietaryType.VEGAN,\n\t\t\t},\n\t\t\t{ icon: '', label: 'Keto', productDietaryType: ProductDietaryType.KETO },\n\t\t\t{ icon: '', label: 'High Protein', productDietaryType: ProductDietaryType.HIGH_PROTEIN },\n\t\t];\n\t} else {\n\t\treturn [\n\t\t\t{\n\t\t\t\ticon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegetarian.png',\n\t\t\t\tlabel: 'Vegeterian',\n\t\t\t\tproductDietaryType: ProductDietaryType.VEGETARIAN,\n\t\t\t},\n\t\t\t{\n\t\t\t\ticon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegan.png',\n\t\t\t\tlabel: 'Vegan',\n\t\t\t\tproductDietaryType: ProductDietaryType.VEGAN,\n\t\t\t},\n\t\t\t{\n\t\t\t\ticon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/glutenFree.png',\n\t\t\t\tlabel: 'Gluten Free',\n\t\t\t\tproductDietaryType: ProductDietaryType.GLUTEN_FREE,\n\t\t\t},\n\t\t\t{\n\t\t\t\ticon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/allergyFriendly.png',\n\t\t\t\tlabel: 'Low Cal',\n\t\t\t\tproductDietaryType: ProductDietaryType.LOW_CAL,\n\t\t\t},\n\t\t];\n\t}\n}\n"]}
|
package/package.json
CHANGED