@lyxa.ai/core 1.1.1 → 1.1.2

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.
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.1.1
25
+ Version: 1.1.2
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
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,2 +1,3 @@
1
1
  export * from './common-validation';
2
2
  export * from './global-validation';
3
+ export * from './validation-for-frontend';
@@ -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', { maxLength: 20 }),
8
+ apartment: global_validation_1.ZodValidation.string('Apt/Suite/Floor', { maxLength: 30 }),
9
+ buildingName: global_validation_1.ZodValidation.string('Building Name', { maxLength: 30 }),
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,EAAE,EAAC,CAAC;IACpE,SAAS,EAAE,iCAAa,CAAC,MAAM,CAAC,iBAAiB,EAAE,EAAC,SAAS,EAAE,EAAE,EAAC,CAAC;IACnE,YAAY,EAAE,iCAAa,CAAC,MAAM,CAAC,eAAe,EAAE,EAAC,SAAS,EAAE,EAAE,EAAC,CAAC;IACpE,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', {maxLength: 20}),\n\tapartment: ZodValidation.string('Apt/Suite/Floor', {maxLength: 30}),\n\tbuildingName: ZodValidation.string('Building Name', {maxLength: 30}),\n\tdeliveryOption: ZodValidation.string('Delivery Option').optional(),\n\tinstructions: ZodValidation.string('Instructions', {maxLength: 250}).optional(),\n});\nexport type UserAddressFrontendDTO = DTO<typeof UserAddressFrontendSchema>;"]}
@@ -1,2 +1,3 @@
1
1
  export * from './common-validation';
2
2
  export * from './global-validation';
3
+ export * from './validation-for-frontend';
@@ -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', { maxLength: 20 }),
8
+ apartment: global_validation_1.ZodValidation.string('Apt/Suite/Floor', { maxLength: 30 }),
9
+ buildingName: global_validation_1.ZodValidation.string('Building Name', { maxLength: 30 }),
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,EAAE,EAAC,CAAC;IACpE,SAAS,EAAE,iCAAa,CAAC,MAAM,CAAC,iBAAiB,EAAE,EAAC,SAAS,EAAE,EAAE,EAAC,CAAC;IACnE,YAAY,EAAE,iCAAa,CAAC,MAAM,CAAC,eAAe,EAAE,EAAC,SAAS,EAAE,EAAE,EAAC,CAAC;IACpE,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', {maxLength: 20}),\n\tapartment: ZodValidation.string('Apt/Suite/Floor', {maxLength: 30}),\n\tbuildingName: ZodValidation.string('Building Name', {maxLength: 30}),\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
- "name": "@lyxa.ai/core",
3
- "version": "1.1.1",
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
- }
2
+ "name": "@lyxa.ai/core",
3
+ "version": "1.1.2",
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
  }