@samoa-house-lib/shl-types 1.10.3 → 1.10.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/types.ts +5 -7
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.10.3",
2
+ "version": "1.10.5",
3
3
  "name": "@samoa-house-lib/shl-types",
4
4
  "description": "Shared Types & Constants",
5
5
  "main": "src/index.ts",
package/src/types.ts CHANGED
@@ -50,20 +50,18 @@ export const nameSchema = z.string()
50
50
  .brand("SamoaHouseLibraryName")
51
51
 
52
52
  export const titleSchema = z.string()
53
- .max(200)
53
+ .max(300)
54
54
  .brand("SamoaHouseLibraryTitle")
55
55
 
56
56
  export const termsSchema = z.union([
57
57
  z.literal("D"),
58
58
  z.literal("R")
59
59
  ])
60
- .optional()
61
60
  .brand("SamoaHouseLibraryTerms")
61
+ .optional()
62
62
 
63
63
  export const infoSchema = z.string()
64
- .max(200)
65
- .optional()
66
- .nullable()
64
+ .max(300)
67
65
  .brand("SamoaHouseLibraryInfo")
68
66
 
69
67
  export const recipientSchema = z.string()
@@ -110,8 +108,8 @@ export const addBookRequest = z.object({
110
108
  book_type: textTypeSchema.optional(),
111
109
  publisher: nameSchema.optional().nullable(),
112
110
  date_published: dateSchema.optional().nullable(),
113
- notes: infoSchema,
114
- special_conditions: infoSchema,
111
+ notes: infoSchema.optional().nullable(),
112
+ special_conditions: infoSchema.optional().nullable(),
115
113
  condition: conditionSchema.optional(),
116
114
  deaccessioned: z.boolean().default(false)
117
115
  })