@lyxa.ai/types 1.1.2 → 1.1.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/README.md CHANGED
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.1.2
25
+ Version: 1.1.4
26
26
 
27
27
  ## Dependencies
28
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.1.2",
3
+ "version": "1.1.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",
@@ -4,9 +4,9 @@ exports.UserAddressFrontendSchema = void 0;
4
4
  const global_validation_1 = require("./global-validation");
5
5
  const zod_1 = require("zod");
6
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 }),
7
+ addressLabel: global_validation_1.ZodValidation.string('Address Label', { maxLength: 20, isTrimmed: true }),
8
+ apartment: global_validation_1.ZodValidation.string('Apt/Suite/Floor', { maxLength: 30, isTrimmed: true }),
9
+ buildingName: global_validation_1.ZodValidation.string('Building Name', { maxLength: 30, isTrimmed: true }),
10
10
  deliveryOption: global_validation_1.ZodValidation.string('Delivery Option').optional(),
11
11
  instructions: global_validation_1.ZodValidation.string('Instructions', { maxLength: 250 }).optional(),
12
12
  });
@@ -1 +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
+ {"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,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC;IACrF,SAAS,EAAE,iCAAa,CAAC,MAAM,CAAC,iBAAiB,EAAE,EAAC,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC;IACpF,YAAY,EAAE,iCAAa,CAAC,MAAM,CAAC,eAAe,EAAE,EAAC,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC;IACrF,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, isTrimmed: true}),\n\tapartment: ZodValidation.string('Apt/Suite/Floor', {maxLength: 30, isTrimmed: true}),\n\tbuildingName: ZodValidation.string('Building Name', {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>;"]}