@lyxa.ai/core 1.1.1 → 1.1.3
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/validation/index.d.ts +1 -0
- package/dist/types/utilities/validation/index.js +1 -0
- package/dist/types/utilities/validation/index.js.map +1 -1
- package/dist/types/utilities/validation/validation-for-frontend.d.ts +22 -0
- package/dist/types/utilities/validation/validation-for-frontend.js +13 -0
- package/dist/types/utilities/validation/validation-for-frontend.js.map +1 -0
- package/dist/utilities/validation/index.d.ts +1 -0
- package/dist/utilities/validation/index.js +1 -0
- package/dist/utilities/validation/index.js.map +1 -1
- package/dist/utilities/validation/validation-for-frontend.d.ts +22 -0
- package/dist/utilities/validation/validation-for-frontend.js +13 -0
- package/dist/utilities/validation/validation-for-frontend.js.map +1 -0
- package/package.json +63 -63
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./common-validation"), exports);
|
|
18
18
|
__exportStar(require("./global-validation"), exports);
|
|
19
|
+
__exportStar(require("./validation-for-frontend"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["utilities/validation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,sDAAoC","sourcesContent":["export * from './common-validation';\nexport * from './global-validation';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["utilities/validation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,sDAAoC;AACpC,4DAA0C","sourcesContent":["export * from './common-validation';\nexport * from './global-validation';\nexport * from './validation-for-frontend';\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DTO } from './global-validation';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const UserAddressFrontendSchema: z.ZodObject<{
|
|
4
|
+
addressLabel: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
5
|
+
apartment: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
6
|
+
buildingName: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
7
|
+
deliveryOption: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
8
|
+
instructions: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
addressLabel: string;
|
|
11
|
+
apartment: string;
|
|
12
|
+
buildingName: string;
|
|
13
|
+
deliveryOption?: string | undefined;
|
|
14
|
+
instructions?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
addressLabel: string;
|
|
17
|
+
apartment: string;
|
|
18
|
+
buildingName: string;
|
|
19
|
+
deliveryOption?: string | undefined;
|
|
20
|
+
instructions?: string | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
export type UserAddressFrontendDTO = DTO<typeof UserAddressFrontendSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserAddressFrontendSchema = void 0;
|
|
4
|
+
const global_validation_1 = require("./global-validation");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
exports.UserAddressFrontendSchema = zod_1.z.object({
|
|
7
|
+
addressLabel: global_validation_1.ZodValidation.string('Address Label', { minLength: 1, maxLength: 20, isTrimmed: true }),
|
|
8
|
+
apartment: global_validation_1.ZodValidation.string('Apt/Suite/Floor', { minLength: 1, maxLength: 30, isTrimmed: true }),
|
|
9
|
+
buildingName: global_validation_1.ZodValidation.string('Building Name', { minLength: 1, maxLength: 30, isTrimmed: true }),
|
|
10
|
+
deliveryOption: global_validation_1.ZodValidation.string('Delivery Option').optional(),
|
|
11
|
+
instructions: global_validation_1.ZodValidation.string('Instructions', { maxLength: 250 }).optional(),
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=validation-for-frontend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation-for-frontend.js","sourceRoot":"/","sources":["utilities/validation/validation-for-frontend.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AACzD,6BAAwB;AAEX,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,YAAY,EAAE,iCAAa,CAAC,MAAM,CAAC,eAAe,EAAE,EAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC;IACnG,SAAS,EAAE,iCAAa,CAAC,MAAM,CAAC,iBAAiB,EAAE,EAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC;IAClG,YAAY,EAAE,iCAAa,CAAC,MAAM,CAAC,eAAe,EAAE,EAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC;IACnG,cAAc,EAAE,iCAAa,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IAClE,YAAY,EAAE,iCAAa,CAAC,MAAM,CAAC,cAAc,EAAE,EAAC,SAAS,EAAE,GAAG,EAAC,CAAC,CAAC,QAAQ,EAAE;CAC/E,CAAC,CAAC","sourcesContent":["import { DTO, ZodValidation } from './global-validation';\nimport { z } from 'zod';\n\nexport const UserAddressFrontendSchema = z.object({\n\taddressLabel: ZodValidation.string('Address Label', {minLength: 1, maxLength: 20, isTrimmed: true}),\n\tapartment: ZodValidation.string('Apt/Suite/Floor', {minLength: 1, maxLength: 30, isTrimmed: true}),\n\tbuildingName: ZodValidation.string('Building Name', {minLength: 1, maxLength: 30, isTrimmed: true}),\n\tdeliveryOption: ZodValidation.string('Delivery Option').optional(),\n\tinstructions: ZodValidation.string('Instructions', {maxLength: 250}).optional(),\n});\nexport type UserAddressFrontendDTO = DTO<typeof UserAddressFrontendSchema>;"]}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./common-validation"), exports);
|
|
18
18
|
__exportStar(require("./global-validation"), exports);
|
|
19
|
+
__exportStar(require("./validation-for-frontend"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["utilities/validation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,sDAAoC","sourcesContent":["export * from './common-validation';\nexport * from './global-validation';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["utilities/validation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,sDAAoC;AACpC,4DAA0C","sourcesContent":["export * from './common-validation';\nexport * from './global-validation';\nexport * from './validation-for-frontend';\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DTO } from './global-validation';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const UserAddressFrontendSchema: z.ZodObject<{
|
|
4
|
+
addressLabel: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
5
|
+
apartment: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
6
|
+
buildingName: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
7
|
+
deliveryOption: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
8
|
+
instructions: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
addressLabel: string;
|
|
11
|
+
apartment: string;
|
|
12
|
+
buildingName: string;
|
|
13
|
+
deliveryOption?: string | undefined;
|
|
14
|
+
instructions?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
addressLabel: string;
|
|
17
|
+
apartment: string;
|
|
18
|
+
buildingName: string;
|
|
19
|
+
deliveryOption?: string | undefined;
|
|
20
|
+
instructions?: string | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
export type UserAddressFrontendDTO = DTO<typeof UserAddressFrontendSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserAddressFrontendSchema = void 0;
|
|
4
|
+
const global_validation_1 = require("./global-validation");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
exports.UserAddressFrontendSchema = zod_1.z.object({
|
|
7
|
+
addressLabel: global_validation_1.ZodValidation.string('Address Label', { minLength: 1, maxLength: 20, isTrimmed: true }),
|
|
8
|
+
apartment: global_validation_1.ZodValidation.string('Apt/Suite/Floor', { minLength: 1, maxLength: 30, isTrimmed: true }),
|
|
9
|
+
buildingName: global_validation_1.ZodValidation.string('Building Name', { minLength: 1, maxLength: 30, isTrimmed: true }),
|
|
10
|
+
deliveryOption: global_validation_1.ZodValidation.string('Delivery Option').optional(),
|
|
11
|
+
instructions: global_validation_1.ZodValidation.string('Instructions', { maxLength: 250 }).optional(),
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=validation-for-frontend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation-for-frontend.js","sourceRoot":"/","sources":["utilities/validation/validation-for-frontend.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AACzD,6BAAwB;AAEX,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,YAAY,EAAE,iCAAa,CAAC,MAAM,CAAC,eAAe,EAAE,EAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC;IACnG,SAAS,EAAE,iCAAa,CAAC,MAAM,CAAC,iBAAiB,EAAE,EAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC;IAClG,YAAY,EAAE,iCAAa,CAAC,MAAM,CAAC,eAAe,EAAE,EAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC;IACnG,cAAc,EAAE,iCAAa,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IAClE,YAAY,EAAE,iCAAa,CAAC,MAAM,CAAC,cAAc,EAAE,EAAC,SAAS,EAAE,GAAG,EAAC,CAAC,CAAC,QAAQ,EAAE;CAC/E,CAAC,CAAC","sourcesContent":["import { DTO, ZodValidation } from './global-validation';\nimport { z } from 'zod';\n\nexport const UserAddressFrontendSchema = z.object({\n\taddressLabel: ZodValidation.string('Address Label', {minLength: 1, maxLength: 20, isTrimmed: true}),\n\tapartment: ZodValidation.string('Apt/Suite/Floor', {minLength: 1, maxLength: 30, isTrimmed: true}),\n\tbuildingName: ZodValidation.string('Building Name', {minLength: 1, maxLength: 30, isTrimmed: true}),\n\tdeliveryOption: ZodValidation.string('Delivery Option').optional(),\n\tinstructions: ZodValidation.string('Instructions', {maxLength: 250}).optional(),\n});\nexport type UserAddressFrontendDTO = DTO<typeof UserAddressFrontendSchema>;"]}
|
package/package.json
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
2
|
+
"name": "@lyxa.ai/core",
|
|
3
|
+
"version": "1.1.3",
|
|
4
|
+
"description": "The Core system of the Lyxa services.",
|
|
5
|
+
"author": "elie <42282499+Internalizable@users.noreply.github.com>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/**/*"
|
|
9
|
+
],
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"types": "dist/index.d.ts",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "node build.js",
|
|
14
|
+
"clean": "rimraf dist",
|
|
15
|
+
"start": "npx ts-node src/index.ts",
|
|
16
|
+
"publish:types": "cd dist/types && npm publish",
|
|
17
|
+
"publish:core": "npm publish --ignore-scripts",
|
|
18
|
+
"release": "npm run build && npm run publish:types && npm run publish:core"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"@trpc/client": "^11.4.3",
|
|
22
|
+
"@trpc/server": "^11.4.3"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@google-cloud/secret-manager": "^5.6.0",
|
|
26
|
+
"@mapbox/polyline": "^1.2.1",
|
|
27
|
+
"@typegoose/typegoose": "^12.10.1",
|
|
28
|
+
"@types/amqplib": "^0.10.7",
|
|
29
|
+
"@types/node": "^22.10.2",
|
|
30
|
+
"@types/twilio": "^3.19.3",
|
|
31
|
+
"amqplib": "^0.10.5",
|
|
32
|
+
"bcryptjs": "^3.0.2",
|
|
33
|
+
"bullmq": "^5.56.0",
|
|
34
|
+
"dayjs": "^1.11.13",
|
|
35
|
+
"firebase": "^11.1.0",
|
|
36
|
+
"firebase-admin": "^13.0.1",
|
|
37
|
+
"ioredis": "^5.4.1",
|
|
38
|
+
"jsonwebtoken": "^9.0.2",
|
|
39
|
+
"libphonenumber-js": "^1.12.8",
|
|
40
|
+
"mime-types": "^3.0.1",
|
|
41
|
+
"moment": "^2.30.1",
|
|
42
|
+
"mongoose": "^8.13.0",
|
|
43
|
+
"nanoid": "^5.1.5",
|
|
44
|
+
"pino": "9.5.0",
|
|
45
|
+
"pino-mongodb": "4.3.0",
|
|
46
|
+
"pino-pretty": "13.0.0",
|
|
47
|
+
"sharp": "^0.33.5",
|
|
48
|
+
"shortid": "^2.2.16",
|
|
49
|
+
"slugify": "^1.6.6",
|
|
50
|
+
"twilio": "^5.4.0",
|
|
51
|
+
"typedi": "^0.10.0",
|
|
52
|
+
"typescript": "^5.7.2",
|
|
53
|
+
"ws": "^8.18.3",
|
|
54
|
+
"zod": "^3.24.1"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@trpc/client": "^11.4.3",
|
|
58
|
+
"@trpc/server": "^11.4.3",
|
|
59
|
+
"@types/mapbox__polyline": "^1.0.5",
|
|
60
|
+
"@types/mime-types": "^2.1.4",
|
|
61
|
+
"@types/shortid": "^2.2.0",
|
|
62
|
+
"@types/ws": "^8.18.1",
|
|
63
|
+
"prettier": "3.5.3"
|
|
64
|
+
}
|
|
65
65
|
}
|