@homespot-sdk/validators 0.0.645 → 0.0.700
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.d.ts +339 -277
- package/dist/index.js +142 -14
- package/package.json +4 -4
- package/src/index.ts +142 -14
package/dist/index.js
CHANGED
|
@@ -16,15 +16,24 @@ const RolesRequest = zod_1.z
|
|
|
16
16
|
'ROLE_WRITE',
|
|
17
17
|
'MEMBER_READ',
|
|
18
18
|
'MEMBER_WRITE',
|
|
19
|
+
'LEAD_READ',
|
|
20
|
+
'LEAD_WRITE',
|
|
21
|
+
'LEAD_READ_ALL',
|
|
22
|
+
'LEAD_WRITE_ALL',
|
|
19
23
|
])),
|
|
20
24
|
})
|
|
25
|
+
.strict()
|
|
26
|
+
.passthrough();
|
|
27
|
+
const AssignRoleRequest = zod_1.z
|
|
28
|
+
.object({ roleId: zod_1.z.number().int() })
|
|
29
|
+
.strict()
|
|
21
30
|
.passthrough();
|
|
22
|
-
const AssignRoleRequest = zod_1.z.object({ roleId: zod_1.z.number().int() }).passthrough();
|
|
23
31
|
const BatchAssignRoleRequest = zod_1.z
|
|
24
32
|
.object({
|
|
25
33
|
roleId: zod_1.z.number().int(),
|
|
26
34
|
memberIds: zod_1.z.array(zod_1.z.string().uuid()).min(1),
|
|
27
35
|
})
|
|
36
|
+
.strict()
|
|
28
37
|
.passthrough();
|
|
29
38
|
const ChangeStatusRequest = zod_1.z
|
|
30
39
|
.object({
|
|
@@ -37,12 +46,20 @@ const ChangeStatusRequest = zod_1.z
|
|
|
37
46
|
'LOST',
|
|
38
47
|
]),
|
|
39
48
|
})
|
|
49
|
+
.strict()
|
|
50
|
+
.passthrough();
|
|
51
|
+
const SourceRequest = zod_1.z
|
|
52
|
+
.object({ sourceUrl: zod_1.z.string().min(1) })
|
|
53
|
+
.strict()
|
|
54
|
+
.passthrough();
|
|
55
|
+
const UpdateNoteRequest = zod_1.z
|
|
56
|
+
.object({ note: zod_1.z.string().min(1) })
|
|
57
|
+
.strict()
|
|
40
58
|
.passthrough();
|
|
41
|
-
const SourceRequest = zod_1.z.object({ sourceUrl: zod_1.z.string().min(1) }).passthrough();
|
|
42
|
-
const UpdateNoteRequest = zod_1.z.object({ note: zod_1.z.string().min(1) }).passthrough();
|
|
43
59
|
const PriceRangeRequest = zod_1.z
|
|
44
60
|
.object({ min: zod_1.z.number(), max: zod_1.z.number() })
|
|
45
61
|
.partial()
|
|
62
|
+
.strict()
|
|
46
63
|
.passthrough();
|
|
47
64
|
const LocationRefRequest = zod_1.z
|
|
48
65
|
.object({
|
|
@@ -52,6 +69,7 @@ const LocationRefRequest = zod_1.z
|
|
|
52
69
|
streetId: zod_1.z.number().int(),
|
|
53
70
|
})
|
|
54
71
|
.partial()
|
|
72
|
+
.strict()
|
|
55
73
|
.passthrough();
|
|
56
74
|
const LeadIntentRequest = zod_1.z
|
|
57
75
|
.object({
|
|
@@ -84,6 +102,7 @@ const LeadIntentRequest = zod_1.z
|
|
|
84
102
|
area: zod_1.z.number().optional(),
|
|
85
103
|
numberOfRooms: zod_1.z.number().int().optional(),
|
|
86
104
|
})
|
|
105
|
+
.strict()
|
|
87
106
|
.passthrough();
|
|
88
107
|
const ContactInfoRequest = zod_1.z
|
|
89
108
|
.object({
|
|
@@ -92,9 +111,11 @@ const ContactInfoRequest = zod_1.z
|
|
|
92
111
|
email: zod_1.z.string().email().optional(),
|
|
93
112
|
phone: zod_1.z.string().min(1),
|
|
94
113
|
})
|
|
114
|
+
.strict()
|
|
95
115
|
.passthrough();
|
|
96
116
|
const AssignToMemberRequest = zod_1.z
|
|
97
117
|
.object({ memberId: zod_1.z.string().uuid() })
|
|
118
|
+
.strict()
|
|
98
119
|
.passthrough();
|
|
99
120
|
const AddressRequest = zod_1.z
|
|
100
121
|
.object({
|
|
@@ -104,6 +125,7 @@ const AddressRequest = zod_1.z
|
|
|
104
125
|
subdistrict: zod_1.z.string().min(0).max(100),
|
|
105
126
|
street: zod_1.z.string().min(0).max(255),
|
|
106
127
|
})
|
|
128
|
+
.strict()
|
|
107
129
|
.passthrough();
|
|
108
130
|
const CreateAgencyRequest = zod_1.z
|
|
109
131
|
.object({
|
|
@@ -115,6 +137,7 @@ const CreateAgencyRequest = zod_1.z
|
|
|
115
137
|
address: AddressRequest,
|
|
116
138
|
yearSince: zod_1.z.number().int(),
|
|
117
139
|
})
|
|
140
|
+
.strict()
|
|
118
141
|
.passthrough();
|
|
119
142
|
const SocialMediaRequest = zod_1.z
|
|
120
143
|
.object({
|
|
@@ -127,9 +150,11 @@ const SocialMediaRequest = zod_1.z
|
|
|
127
150
|
]),
|
|
128
151
|
url: zod_1.z.string().optional(),
|
|
129
152
|
})
|
|
153
|
+
.strict()
|
|
130
154
|
.passthrough();
|
|
131
155
|
const SocialMediasRequest = zod_1.z
|
|
132
156
|
.object({ data: zod_1.z.array(SocialMediaRequest).min(1).max(5) })
|
|
157
|
+
.strict()
|
|
133
158
|
.passthrough();
|
|
134
159
|
const CreateLeadRequest = zod_1.z
|
|
135
160
|
.object({
|
|
@@ -137,12 +162,15 @@ const CreateLeadRequest = zod_1.z
|
|
|
137
162
|
note: zod_1.z.string().min(0).max(500).optional(),
|
|
138
163
|
sourceUrl: zod_1.z.string().optional(),
|
|
139
164
|
})
|
|
165
|
+
.strict()
|
|
140
166
|
.passthrough();
|
|
141
167
|
const InvitationDetailsRequest = zod_1.z
|
|
142
168
|
.object({ email: zod_1.z.string().email(), roleId: zod_1.z.number().int() })
|
|
169
|
+
.strict()
|
|
143
170
|
.passthrough();
|
|
144
171
|
const InviteMemberRequest = zod_1.z
|
|
145
172
|
.object({ emails: zod_1.z.array(InvitationDetailsRequest).min(1) })
|
|
173
|
+
.strict()
|
|
146
174
|
.passthrough();
|
|
147
175
|
const PhotoRequest = zod_1.z
|
|
148
176
|
.object({
|
|
@@ -151,16 +179,20 @@ const PhotoRequest = zod_1.z
|
|
|
151
179
|
width: zod_1.z.number().int().gte(10).lte(11000),
|
|
152
180
|
height: zod_1.z.number().int().gte(10).lte(11000).optional(),
|
|
153
181
|
})
|
|
182
|
+
.strict()
|
|
154
183
|
.passthrough();
|
|
155
|
-
const IdResponse = zod_1.z.object({ id: zod_1.z.string() }).passthrough();
|
|
184
|
+
const IdResponse = zod_1.z.object({ id: zod_1.z.string() }).strict().passthrough();
|
|
156
185
|
const PresignedUrlResponse = zod_1.z
|
|
157
186
|
.object({ originalName: zod_1.z.string(), key: zod_1.z.string(), url: zod_1.z.string() })
|
|
187
|
+
.strict()
|
|
158
188
|
.passthrough();
|
|
159
189
|
const PresignedUrlsResponse = zod_1.z
|
|
160
190
|
.object({ data: zod_1.z.array(PresignedUrlResponse) })
|
|
191
|
+
.strict()
|
|
161
192
|
.passthrough();
|
|
162
193
|
const UploadAcknowledgmentResponse = zod_1.z
|
|
163
194
|
.object({ success: zod_1.z.array(zod_1.z.string()), fail: zod_1.z.array(zod_1.z.string()) })
|
|
195
|
+
.strict()
|
|
164
196
|
.passthrough();
|
|
165
197
|
const OrganizationSummaryViewResponse = zod_1.z
|
|
166
198
|
.object({
|
|
@@ -179,18 +211,25 @@ const OrganizationSummaryViewResponse = zod_1.z
|
|
|
179
211
|
'ROLE_WRITE',
|
|
180
212
|
'MEMBER_READ',
|
|
181
213
|
'MEMBER_WRITE',
|
|
214
|
+
'LEAD_READ',
|
|
215
|
+
'LEAD_WRITE',
|
|
216
|
+
'LEAD_READ_ALL',
|
|
217
|
+
'LEAD_WRITE_ALL',
|
|
182
218
|
])),
|
|
183
219
|
status: zod_1.z.enum(['NEW', 'ACTIVE', 'PAYMENT_FAILED', 'INACTIVE']),
|
|
184
220
|
})
|
|
221
|
+
.strict()
|
|
185
222
|
.passthrough();
|
|
186
223
|
const UserSummaryViewResponse = zod_1.z
|
|
187
224
|
.object({ email: zod_1.z.string(), firstName: zod_1.z.string(), lastName: zod_1.z.string() })
|
|
225
|
+
.strict()
|
|
188
226
|
.passthrough();
|
|
189
227
|
const UserContextViewResponse = zod_1.z
|
|
190
228
|
.object({
|
|
191
229
|
user: UserSummaryViewResponse,
|
|
192
230
|
organizations: zod_1.z.array(OrganizationSummaryViewResponse),
|
|
193
231
|
})
|
|
232
|
+
.strict()
|
|
194
233
|
.passthrough();
|
|
195
234
|
const RoleResponse = zod_1.z
|
|
196
235
|
.object({
|
|
@@ -205,23 +244,30 @@ const RoleResponse = zod_1.z
|
|
|
205
244
|
'ROLE_WRITE',
|
|
206
245
|
'MEMBER_READ',
|
|
207
246
|
'MEMBER_WRITE',
|
|
247
|
+
'LEAD_READ',
|
|
248
|
+
'LEAD_WRITE',
|
|
249
|
+
'LEAD_READ_ALL',
|
|
250
|
+
'LEAD_WRITE_ALL',
|
|
208
251
|
])),
|
|
209
252
|
})
|
|
253
|
+
.strict()
|
|
210
254
|
.passthrough();
|
|
211
255
|
const SortObject = zod_1.z
|
|
212
|
-
.object({ empty: zod_1.z.boolean(),
|
|
256
|
+
.object({ empty: zod_1.z.boolean(), unsorted: zod_1.z.boolean(), sorted: zod_1.z.boolean() })
|
|
213
257
|
.partial()
|
|
258
|
+
.strict()
|
|
214
259
|
.passthrough();
|
|
215
260
|
const PageableObject = zod_1.z
|
|
216
261
|
.object({
|
|
217
262
|
offset: zod_1.z.number().int(),
|
|
218
|
-
sort: SortObject,
|
|
219
263
|
paged: zod_1.z.boolean(),
|
|
220
264
|
pageNumber: zod_1.z.number().int(),
|
|
221
265
|
pageSize: zod_1.z.number().int(),
|
|
266
|
+
sort: SortObject,
|
|
222
267
|
unpaged: zod_1.z.boolean(),
|
|
223
268
|
})
|
|
224
269
|
.partial()
|
|
270
|
+
.strict()
|
|
225
271
|
.passthrough();
|
|
226
272
|
const PageRoleResponse = zod_1.z
|
|
227
273
|
.object({
|
|
@@ -232,12 +278,13 @@ const PageRoleResponse = zod_1.z
|
|
|
232
278
|
number: zod_1.z.number().int(),
|
|
233
279
|
first: zod_1.z.boolean(),
|
|
234
280
|
last: zod_1.z.boolean(),
|
|
235
|
-
sort: SortObject,
|
|
236
281
|
numberOfElements: zod_1.z.number().int(),
|
|
237
282
|
pageable: PageableObject,
|
|
283
|
+
sort: SortObject,
|
|
238
284
|
empty: zod_1.z.boolean(),
|
|
239
285
|
})
|
|
240
286
|
.partial()
|
|
287
|
+
.strict()
|
|
241
288
|
.passthrough();
|
|
242
289
|
const InvitationDetailsResponse = zod_1.z
|
|
243
290
|
.object({
|
|
@@ -248,6 +295,7 @@ const InvitationDetailsResponse = zod_1.z
|
|
|
248
295
|
agencyName: zod_1.z.string(),
|
|
249
296
|
agencyLogo: zod_1.z.string().optional(),
|
|
250
297
|
})
|
|
298
|
+
.strict()
|
|
251
299
|
.passthrough();
|
|
252
300
|
const AgencySummaryResponse = zod_1.z
|
|
253
301
|
.object({
|
|
@@ -263,6 +311,7 @@ const AgencySummaryResponse = zod_1.z
|
|
|
263
311
|
status: zod_1.z.enum(['NEW', 'ACTIVE', 'PAYMENT_FAILED', 'INACTIVE']),
|
|
264
312
|
logo: zod_1.z.string().optional(),
|
|
265
313
|
})
|
|
314
|
+
.strict()
|
|
266
315
|
.passthrough();
|
|
267
316
|
const PageMetadata = zod_1.z
|
|
268
317
|
.object({
|
|
@@ -272,10 +321,12 @@ const PageMetadata = zod_1.z
|
|
|
272
321
|
totalPages: zod_1.z.number().int(),
|
|
273
322
|
})
|
|
274
323
|
.partial()
|
|
324
|
+
.strict()
|
|
275
325
|
.passthrough();
|
|
276
326
|
const PagedModelAgencySummaryResponse = zod_1.z
|
|
277
327
|
.object({ content: zod_1.z.array(AgencySummaryResponse), page: PageMetadata })
|
|
278
328
|
.partial()
|
|
329
|
+
.strict()
|
|
279
330
|
.passthrough();
|
|
280
331
|
const PermissionResponse = zod_1.z
|
|
281
332
|
.object({
|
|
@@ -287,6 +338,10 @@ const PermissionResponse = zod_1.z
|
|
|
287
338
|
'ROLE_WRITE',
|
|
288
339
|
'MEMBER_READ',
|
|
289
340
|
'MEMBER_WRITE',
|
|
341
|
+
'LEAD_READ',
|
|
342
|
+
'LEAD_WRITE',
|
|
343
|
+
'LEAD_READ_ALL',
|
|
344
|
+
'LEAD_WRITE_ALL',
|
|
290
345
|
]),
|
|
291
346
|
implied: zod_1.z.array(zod_1.z.enum([
|
|
292
347
|
'AGENCY_WRITE',
|
|
@@ -296,14 +351,20 @@ const PermissionResponse = zod_1.z
|
|
|
296
351
|
'ROLE_WRITE',
|
|
297
352
|
'MEMBER_READ',
|
|
298
353
|
'MEMBER_WRITE',
|
|
354
|
+
'LEAD_READ',
|
|
355
|
+
'LEAD_WRITE',
|
|
356
|
+
'LEAD_READ_ALL',
|
|
357
|
+
'LEAD_WRITE_ALL',
|
|
299
358
|
])),
|
|
300
359
|
})
|
|
360
|
+
.strict()
|
|
301
361
|
.passthrough();
|
|
302
362
|
const GroupedPermissionsResponse = zod_1.z
|
|
303
363
|
.object({
|
|
304
|
-
group: zod_1.z.enum(['AGENCY', 'INVITATION', 'ROLE', 'MEMBER']),
|
|
364
|
+
group: zod_1.z.enum(['AGENCY', 'INVITATION', 'ROLE', 'MEMBER', 'LEAD']),
|
|
305
365
|
permissions: zod_1.z.array(PermissionResponse),
|
|
306
366
|
})
|
|
367
|
+
.strict()
|
|
307
368
|
.passthrough();
|
|
308
369
|
const MemberViewResponse = zod_1.z
|
|
309
370
|
.object({
|
|
@@ -316,10 +377,12 @@ const MemberViewResponse = zod_1.z
|
|
|
316
377
|
roleName: zod_1.z.string(),
|
|
317
378
|
joinedAt: zod_1.z.string().datetime({ offset: true }),
|
|
318
379
|
})
|
|
380
|
+
.strict()
|
|
319
381
|
.passthrough();
|
|
320
382
|
const PagedModelMemberViewResponse = zod_1.z
|
|
321
383
|
.object({ content: zod_1.z.array(MemberViewResponse), page: PageMetadata })
|
|
322
384
|
.partial()
|
|
385
|
+
.strict()
|
|
323
386
|
.passthrough();
|
|
324
387
|
const IntentResponse = zod_1.z
|
|
325
388
|
.object({
|
|
@@ -356,6 +419,7 @@ const IntentResponse = zod_1.z
|
|
|
356
419
|
area: zod_1.z.number().optional(),
|
|
357
420
|
numberOfRooms: zod_1.z.number().int().optional(),
|
|
358
421
|
})
|
|
422
|
+
.strict()
|
|
359
423
|
.passthrough();
|
|
360
424
|
const LeadProjectionResponse = zod_1.z
|
|
361
425
|
.object({
|
|
@@ -380,6 +444,7 @@ const LeadProjectionResponse = zod_1.z
|
|
|
380
444
|
isListing: zod_1.z.boolean(),
|
|
381
445
|
intents: zod_1.z.array(IntentResponse).optional(),
|
|
382
446
|
})
|
|
447
|
+
.strict()
|
|
383
448
|
.passthrough();
|
|
384
449
|
const PageLeadProjectionResponse = zod_1.z
|
|
385
450
|
.object({
|
|
@@ -390,12 +455,13 @@ const PageLeadProjectionResponse = zod_1.z
|
|
|
390
455
|
number: zod_1.z.number().int(),
|
|
391
456
|
first: zod_1.z.boolean(),
|
|
392
457
|
last: zod_1.z.boolean(),
|
|
393
|
-
sort: SortObject,
|
|
394
458
|
numberOfElements: zod_1.z.number().int(),
|
|
395
459
|
pageable: PageableObject,
|
|
460
|
+
sort: SortObject,
|
|
396
461
|
empty: zod_1.z.boolean(),
|
|
397
462
|
})
|
|
398
463
|
.partial()
|
|
464
|
+
.strict()
|
|
399
465
|
.passthrough();
|
|
400
466
|
const InvitationViewResponse = zod_1.z
|
|
401
467
|
.object({
|
|
@@ -407,10 +473,12 @@ const InvitationViewResponse = zod_1.z
|
|
|
407
473
|
acceptedAt: zod_1.z.string().datetime({ offset: true }).optional(),
|
|
408
474
|
acceptedBy: zod_1.z.string().optional(),
|
|
409
475
|
})
|
|
476
|
+
.strict()
|
|
410
477
|
.passthrough();
|
|
411
478
|
const PagedModelInvitationViewResponse = zod_1.z
|
|
412
479
|
.object({ content: zod_1.z.array(InvitationViewResponse), page: PageMetadata })
|
|
413
480
|
.partial()
|
|
481
|
+
.strict()
|
|
414
482
|
.passthrough();
|
|
415
483
|
const AddressViewResponse = zod_1.z
|
|
416
484
|
.object({
|
|
@@ -420,6 +488,7 @@ const AddressViewResponse = zod_1.z
|
|
|
420
488
|
subdistrict: zod_1.z.string(),
|
|
421
489
|
street: zod_1.z.string(),
|
|
422
490
|
})
|
|
491
|
+
.strict()
|
|
423
492
|
.passthrough();
|
|
424
493
|
const AgencyProfileResponse = zod_1.z
|
|
425
494
|
.object({
|
|
@@ -431,6 +500,7 @@ const AgencyProfileResponse = zod_1.z
|
|
|
431
500
|
address: AddressViewResponse,
|
|
432
501
|
yearSince: zod_1.z.number().int(),
|
|
433
502
|
})
|
|
503
|
+
.strict()
|
|
434
504
|
.passthrough();
|
|
435
505
|
exports.schemas = {
|
|
436
506
|
RolesRequest,
|
|
@@ -678,12 +748,12 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
678
748
|
.optional(),
|
|
679
749
|
},
|
|
680
750
|
{
|
|
681
|
-
name: '
|
|
751
|
+
name: 'isSearching',
|
|
682
752
|
type: 'Query',
|
|
683
753
|
schema: zod_1.z.boolean().optional(),
|
|
684
754
|
},
|
|
685
755
|
{
|
|
686
|
-
name: '
|
|
756
|
+
name: 'isListing',
|
|
687
757
|
type: 'Query',
|
|
688
758
|
schema: zod_1.z.boolean().optional(),
|
|
689
759
|
},
|
|
@@ -761,7 +831,10 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
761
831
|
{
|
|
762
832
|
name: 'body',
|
|
763
833
|
type: 'Body',
|
|
764
|
-
schema: zod_1.z
|
|
834
|
+
schema: zod_1.z
|
|
835
|
+
.object({ memberId: zod_1.z.string().uuid() })
|
|
836
|
+
.strict()
|
|
837
|
+
.passthrough(),
|
|
765
838
|
},
|
|
766
839
|
{
|
|
767
840
|
name: 'leadId',
|
|
@@ -842,7 +915,10 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
842
915
|
{
|
|
843
916
|
name: 'body',
|
|
844
917
|
type: 'Body',
|
|
845
|
-
schema: zod_1.z
|
|
918
|
+
schema: zod_1.z
|
|
919
|
+
.object({ note: zod_1.z.string().min(1) })
|
|
920
|
+
.strict()
|
|
921
|
+
.passthrough(),
|
|
846
922
|
},
|
|
847
923
|
{
|
|
848
924
|
name: 'leadId',
|
|
@@ -863,6 +939,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
863
939
|
type: 'Body',
|
|
864
940
|
schema: zod_1.z
|
|
865
941
|
.object({ sourceUrl: zod_1.z.string().min(1) })
|
|
942
|
+
.strict()
|
|
866
943
|
.passthrough(),
|
|
867
944
|
},
|
|
868
945
|
{
|
|
@@ -892,6 +969,54 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
892
969
|
],
|
|
893
970
|
response: zod_1.z.void(),
|
|
894
971
|
},
|
|
972
|
+
{
|
|
973
|
+
method: 'get',
|
|
974
|
+
path: '/lead/my',
|
|
975
|
+
alias: 'searchMyLeads',
|
|
976
|
+
requestFormat: 'json',
|
|
977
|
+
parameters: [
|
|
978
|
+
{
|
|
979
|
+
name: 'status',
|
|
980
|
+
type: 'Query',
|
|
981
|
+
schema: zod_1.z
|
|
982
|
+
.enum([
|
|
983
|
+
'NEW',
|
|
984
|
+
'ATTEMPTED_CONTACT',
|
|
985
|
+
'CONTACTED',
|
|
986
|
+
'DISQUALIFIED',
|
|
987
|
+
'CONVERTED',
|
|
988
|
+
'LOST',
|
|
989
|
+
])
|
|
990
|
+
.optional(),
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
name: 'isSearching',
|
|
994
|
+
type: 'Query',
|
|
995
|
+
schema: zod_1.z.boolean().optional(),
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
name: 'isListing',
|
|
999
|
+
type: 'Query',
|
|
1000
|
+
schema: zod_1.z.boolean().optional(),
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
name: 'page',
|
|
1004
|
+
type: 'Query',
|
|
1005
|
+
schema: zod_1.z.number().int().gte(0).optional().default(0),
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
name: 'size',
|
|
1009
|
+
type: 'Query',
|
|
1010
|
+
schema: zod_1.z.number().int().gte(1).optional().default(20),
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
name: 'sort',
|
|
1014
|
+
type: 'Query',
|
|
1015
|
+
schema: zod_1.z.array(zod_1.z.string()).optional(),
|
|
1016
|
+
},
|
|
1017
|
+
],
|
|
1018
|
+
response: zod_1.z.void(),
|
|
1019
|
+
},
|
|
895
1020
|
{
|
|
896
1021
|
method: 'get',
|
|
897
1022
|
path: '/member',
|
|
@@ -933,7 +1058,10 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
933
1058
|
{
|
|
934
1059
|
name: 'body',
|
|
935
1060
|
type: 'Body',
|
|
936
|
-
schema: zod_1.z
|
|
1061
|
+
schema: zod_1.z
|
|
1062
|
+
.object({ roleId: zod_1.z.number().int() })
|
|
1063
|
+
.strict()
|
|
1064
|
+
.passthrough(),
|
|
937
1065
|
},
|
|
938
1066
|
{
|
|
939
1067
|
name: 'memberId',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homespot-sdk/validators",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.700",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "src/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"build": "tsc"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"zod": "^3.
|
|
14
|
+
"zod": "^3.24.1"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"zod": "^3.
|
|
17
|
+
"zod": "^3.24.1",
|
|
18
18
|
"@zodios/core": "^10.9.6"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"typescript": "^5.
|
|
21
|
+
"typescript": "^5.7.0"
|
|
22
22
|
}
|
|
23
23
|
}
|