@homespot-sdk/validators 0.0.615 → 0.0.617
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/index.js +1 -12
- package/package.json +1 -1
- package/src/index.ts +1 -12
- package/tsconfig.json +2 -2
package/dist/index.js
CHANGED
|
@@ -15,11 +15,9 @@ const SocialMediaRequest = zod_1.z
|
|
|
15
15
|
]),
|
|
16
16
|
url: zod_1.z.string().optional(),
|
|
17
17
|
})
|
|
18
|
-
.strict()
|
|
19
18
|
.passthrough();
|
|
20
19
|
const SocialMediasRequest = zod_1.z
|
|
21
20
|
.object({ data: zod_1.z.array(SocialMediaRequest).min(1).max(5) })
|
|
22
|
-
.strict()
|
|
23
21
|
.passthrough();
|
|
24
22
|
const RolesRequest = zod_1.z
|
|
25
23
|
.object({
|
|
@@ -32,7 +30,6 @@ const RolesRequest = zod_1.z
|
|
|
32
30
|
'agents_write',
|
|
33
31
|
])),
|
|
34
32
|
})
|
|
35
|
-
.strict()
|
|
36
33
|
.passthrough();
|
|
37
34
|
const PhotoRequest = zod_1.z
|
|
38
35
|
.object({
|
|
@@ -41,7 +38,6 @@ const PhotoRequest = zod_1.z
|
|
|
41
38
|
width: zod_1.z.number().int().gte(10).lte(11000),
|
|
42
39
|
height: zod_1.z.number().int().gte(10).lte(11000).optional(),
|
|
43
40
|
})
|
|
44
|
-
.strict()
|
|
45
41
|
.passthrough();
|
|
46
42
|
const AddressRequest = zod_1.z
|
|
47
43
|
.object({
|
|
@@ -51,7 +47,6 @@ const AddressRequest = zod_1.z
|
|
|
51
47
|
subdistrict: zod_1.z.string().min(0).max(100),
|
|
52
48
|
street: zod_1.z.string().min(0).max(255),
|
|
53
49
|
})
|
|
54
|
-
.strict()
|
|
55
50
|
.passthrough();
|
|
56
51
|
const CreateAgencyRequest = zod_1.z
|
|
57
52
|
.object({
|
|
@@ -63,24 +58,19 @@ const CreateAgencyRequest = zod_1.z
|
|
|
63
58
|
address: AddressRequest,
|
|
64
59
|
yearSince: zod_1.z.number().int(),
|
|
65
60
|
})
|
|
66
|
-
.strict()
|
|
67
61
|
.passthrough();
|
|
68
62
|
const InviteMemberRequest = zod_1.z
|
|
69
63
|
.object({ emails: zod_1.z.array(zod_1.z.string()).min(1) })
|
|
70
|
-
.strict()
|
|
71
64
|
.passthrough();
|
|
72
65
|
const PresignedUrlResponse = zod_1.z
|
|
73
66
|
.object({ originalName: zod_1.z.string(), key: zod_1.z.string(), url: zod_1.z.string() })
|
|
74
|
-
.strict()
|
|
75
67
|
.passthrough();
|
|
76
68
|
const PresignedUrlsResponse = zod_1.z
|
|
77
69
|
.object({ data: zod_1.z.array(PresignedUrlResponse) })
|
|
78
|
-
.strict()
|
|
79
70
|
.passthrough();
|
|
80
|
-
const IdResponse = zod_1.z.object({ id: zod_1.z.string() }).
|
|
71
|
+
const IdResponse = zod_1.z.object({ id: zod_1.z.string() }).passthrough();
|
|
81
72
|
const UploadAcknowledgmentResponse = zod_1.z
|
|
82
73
|
.object({ success: zod_1.z.array(zod_1.z.string()), fail: zod_1.z.array(zod_1.z.string()) })
|
|
83
|
-
.strict()
|
|
84
74
|
.passthrough();
|
|
85
75
|
const InvitationViewResponse = zod_1.z
|
|
86
76
|
.object({
|
|
@@ -98,7 +88,6 @@ const InvitationViewResponse = zod_1.z
|
|
|
98
88
|
acceptedAt: zod_1.z.string().datetime({ offset: true }).optional(),
|
|
99
89
|
acceptedBy: zod_1.z.string().optional(),
|
|
100
90
|
})
|
|
101
|
-
.strict()
|
|
102
91
|
.passthrough();
|
|
103
92
|
exports.schemas = {
|
|
104
93
|
SocialMediaRequest,
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -12,11 +12,9 @@ const SocialMediaRequest = z
|
|
|
12
12
|
]),
|
|
13
13
|
url: z.string().optional(),
|
|
14
14
|
})
|
|
15
|
-
.strict()
|
|
16
15
|
.passthrough();
|
|
17
16
|
const SocialMediasRequest = z
|
|
18
17
|
.object({ data: z.array(SocialMediaRequest).min(1).max(5) })
|
|
19
|
-
.strict()
|
|
20
18
|
.passthrough();
|
|
21
19
|
const RolesRequest = z
|
|
22
20
|
.object({
|
|
@@ -31,7 +29,6 @@ const RolesRequest = z
|
|
|
31
29
|
])
|
|
32
30
|
),
|
|
33
31
|
})
|
|
34
|
-
.strict()
|
|
35
32
|
.passthrough();
|
|
36
33
|
const PhotoRequest = z
|
|
37
34
|
.object({
|
|
@@ -40,7 +37,6 @@ const PhotoRequest = z
|
|
|
40
37
|
width: z.number().int().gte(10).lte(11000),
|
|
41
38
|
height: z.number().int().gte(10).lte(11000).optional(),
|
|
42
39
|
})
|
|
43
|
-
.strict()
|
|
44
40
|
.passthrough();
|
|
45
41
|
const AddressRequest = z
|
|
46
42
|
.object({
|
|
@@ -50,7 +46,6 @@ const AddressRequest = z
|
|
|
50
46
|
subdistrict: z.string().min(0).max(100),
|
|
51
47
|
street: z.string().min(0).max(255),
|
|
52
48
|
})
|
|
53
|
-
.strict()
|
|
54
49
|
.passthrough();
|
|
55
50
|
const CreateAgencyRequest = z
|
|
56
51
|
.object({
|
|
@@ -62,24 +57,19 @@ const CreateAgencyRequest = z
|
|
|
62
57
|
address: AddressRequest,
|
|
63
58
|
yearSince: z.number().int(),
|
|
64
59
|
})
|
|
65
|
-
.strict()
|
|
66
60
|
.passthrough();
|
|
67
61
|
const InviteMemberRequest = z
|
|
68
62
|
.object({ emails: z.array(z.string()).min(1) })
|
|
69
|
-
.strict()
|
|
70
63
|
.passthrough();
|
|
71
64
|
const PresignedUrlResponse = z
|
|
72
65
|
.object({ originalName: z.string(), key: z.string(), url: z.string() })
|
|
73
|
-
.strict()
|
|
74
66
|
.passthrough();
|
|
75
67
|
const PresignedUrlsResponse = z
|
|
76
68
|
.object({ data: z.array(PresignedUrlResponse) })
|
|
77
|
-
.strict()
|
|
78
69
|
.passthrough();
|
|
79
|
-
const IdResponse = z.object({ id: z.string() }).
|
|
70
|
+
const IdResponse = z.object({ id: z.string() }).passthrough();
|
|
80
71
|
const UploadAcknowledgmentResponse = z
|
|
81
72
|
.object({ success: z.array(z.string()), fail: z.array(z.string()) })
|
|
82
|
-
.strict()
|
|
83
73
|
.passthrough();
|
|
84
74
|
const InvitationViewResponse = z
|
|
85
75
|
.object({
|
|
@@ -97,7 +87,6 @@ const InvitationViewResponse = z
|
|
|
97
87
|
acceptedAt: z.string().datetime({ offset: true }).optional(),
|
|
98
88
|
acceptedBy: z.string().optional(),
|
|
99
89
|
})
|
|
100
|
-
.strict()
|
|
101
90
|
.passthrough();
|
|
102
91
|
|
|
103
92
|
export const schemas = {
|