@homespot-sdk/core 0.0.339 → 0.0.341
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/rem/index.d.ts +2 -2
- package/dist/rem/index.d.ts.map +1 -1
- package/dist/rem/index.js +1 -1
- package/dist/rem/index.js.map +1 -1
- package/dist/rem/schemas.gen.d.ts +1427 -467
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +1567 -637
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +71 -18
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +406 -33
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +11 -3
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +126 -35
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +1292 -256
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +6095 -5504
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +1702 -1088
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/zod.gen.js
CHANGED
|
@@ -63,6 +63,48 @@ export const zVerifyEmailRequest = z.object({
|
|
|
63
63
|
export const zUpdateEmailRequest = z.object({
|
|
64
64
|
email: z.email().min(1),
|
|
65
65
|
});
|
|
66
|
+
export const zCommentBodyRequest = z.object({
|
|
67
|
+
body: z.string().min(0).max(4000),
|
|
68
|
+
});
|
|
69
|
+
export const zSetTaskValueRequest = z.object({
|
|
70
|
+
value: z.optional(z.number()),
|
|
71
|
+
});
|
|
72
|
+
export const zTransferTaskRequest = z.object({
|
|
73
|
+
targetBoardId: z.uuid(),
|
|
74
|
+
targetStageId: z.uuid(),
|
|
75
|
+
});
|
|
76
|
+
export const zRenameTaskRequest = z.object({
|
|
77
|
+
title: z.string(),
|
|
78
|
+
});
|
|
79
|
+
export const zMoveTaskRequest = z.object({
|
|
80
|
+
targetStageId: z.uuid(),
|
|
81
|
+
});
|
|
82
|
+
export const zMarkTaskLostRequest = z.object({
|
|
83
|
+
reason: z.enum([
|
|
84
|
+
'NOT_WORKING_WITH_AGENTS',
|
|
85
|
+
'NOT_RESPONDING',
|
|
86
|
+
'ALREADY_SOLD',
|
|
87
|
+
'COULD_NOT_NEGOTIATE_PRICE',
|
|
88
|
+
'CHOSE_ANOTHER_AGENCY',
|
|
89
|
+
'CHANGED_PLANS',
|
|
90
|
+
'OUT_OF_BUDGET',
|
|
91
|
+
'SPAM',
|
|
92
|
+
'OTHER',
|
|
93
|
+
]),
|
|
94
|
+
});
|
|
95
|
+
export const zSetExpectedCloseDateRequest = z.object({
|
|
96
|
+
expectedCloseDate: z.optional(z.iso.date()),
|
|
97
|
+
});
|
|
98
|
+
export const zDescribeTaskRequest = z.object({
|
|
99
|
+
description: z.optional(z.string()),
|
|
100
|
+
});
|
|
101
|
+
export const zSetTaskCommissionRequest = z.object({
|
|
102
|
+
type: z.enum(['NOT_SET', 'FIXED', 'PERCENTAGE', 'MONTHS_OF_RENT']),
|
|
103
|
+
value: z.optional(z.number()),
|
|
104
|
+
});
|
|
105
|
+
export const zRenameTodoRequest = z.object({
|
|
106
|
+
title: z.string(),
|
|
107
|
+
});
|
|
66
108
|
export const zRolesRequest = z.object({
|
|
67
109
|
name: z.string().min(1),
|
|
68
110
|
description: z.string().min(1),
|
|
@@ -76,6 +118,9 @@ export const zRolesRequest = z.object({
|
|
|
76
118
|
'MANAGE_CONTACT',
|
|
77
119
|
'MANAGE_ANY_CONTACT',
|
|
78
120
|
'ASSIGN_CONTACT',
|
|
121
|
+
'MANAGE_BOARD',
|
|
122
|
+
'MANAGE_DEAL',
|
|
123
|
+
'DELETE_DEAL',
|
|
79
124
|
])),
|
|
80
125
|
});
|
|
81
126
|
export const zAssignRoleRequest = z.object({
|
|
@@ -214,9 +259,6 @@ export const zRecommendListingRequest = z.object({
|
|
|
214
259
|
externalPropertyId: z.uuid(),
|
|
215
260
|
externalListingId: z.uuid(),
|
|
216
261
|
});
|
|
217
|
-
export const zCommentBodyRequest = z.object({
|
|
218
|
-
body: z.string().min(0).max(4000),
|
|
219
|
-
});
|
|
220
262
|
export const zPhoneRequest = z.object({
|
|
221
263
|
phoneNumber: z.string().min(1).max(20),
|
|
222
264
|
});
|
|
@@ -233,42 +275,6 @@ export const zUpdateContactDetailsRequest = z.object({
|
|
|
233
275
|
contactMethods: z.optional(z.array(z.enum(['WHATSAPP', 'VIBER', 'PHONE_CALL']))),
|
|
234
276
|
favoriteContactMethod: z.optional(z.enum(['WHATSAPP', 'VIBER', 'PHONE_CALL'])),
|
|
235
277
|
nullifyFavoriteContactMethod: z.optional(z.boolean()),
|
|
236
|
-
status: z.optional(z.enum([
|
|
237
|
-
'NEW',
|
|
238
|
-
'ON_HOLD',
|
|
239
|
-
'COLD',
|
|
240
|
-
'WARM',
|
|
241
|
-
'HOT',
|
|
242
|
-
'WAITING_PAYMENT',
|
|
243
|
-
'LOST',
|
|
244
|
-
'WON',
|
|
245
|
-
])),
|
|
246
|
-
priority: z.optional(z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW'])),
|
|
247
|
-
});
|
|
248
|
-
export const zReopenRequest = z.object({
|
|
249
|
-
status: z.optional(z.enum([
|
|
250
|
-
'NEW',
|
|
251
|
-
'ON_HOLD',
|
|
252
|
-
'COLD',
|
|
253
|
-
'WARM',
|
|
254
|
-
'HOT',
|
|
255
|
-
'WAITING_PAYMENT',
|
|
256
|
-
'LOST',
|
|
257
|
-
'WON',
|
|
258
|
-
])),
|
|
259
|
-
});
|
|
260
|
-
export const zRecordLostContactRequest = z.object({
|
|
261
|
-
reason: z.enum([
|
|
262
|
-
'NOT_WORKING_WITH_AGENTS',
|
|
263
|
-
'NOT_RESPONDING',
|
|
264
|
-
'ALREADY_SOLD',
|
|
265
|
-
'COULD_NOT_NEGOTIATE_PRICE',
|
|
266
|
-
'CHOSE_ANOTHER_AGENCY',
|
|
267
|
-
'CHANGED_PLANS',
|
|
268
|
-
'OUT_OF_BUDGET',
|
|
269
|
-
'SPAM',
|
|
270
|
-
'OTHER',
|
|
271
|
-
]),
|
|
272
278
|
});
|
|
273
279
|
export const zReassignMemberRequest = z.object({
|
|
274
280
|
memberId: z.uuid(),
|
|
@@ -291,6 +297,25 @@ export const zContactMergeRequest = z.object({
|
|
|
291
297
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
292
298
|
}),
|
|
293
299
|
});
|
|
300
|
+
export const zRenameRequest = z.object({
|
|
301
|
+
name: z.string(),
|
|
302
|
+
});
|
|
303
|
+
export const zReorderTodoTemplatesRequest = z.object({
|
|
304
|
+
templateIds: z.array(z.uuid()),
|
|
305
|
+
});
|
|
306
|
+
export const zRecolorStageRequest = z.object({
|
|
307
|
+
color: z.string(),
|
|
308
|
+
});
|
|
309
|
+
export const zDeactivateStageRequest = z.object({
|
|
310
|
+
migrateToStageId: z.optional(z.uuid()),
|
|
311
|
+
});
|
|
312
|
+
export const zReorderStagesRequest = z.object({
|
|
313
|
+
stageIds: z.array(z.uuid()),
|
|
314
|
+
});
|
|
315
|
+
export const zSetTaskSettingsRequest = z.object({
|
|
316
|
+
defaultBoardId: z.uuid(),
|
|
317
|
+
defaultStageId: z.optional(z.uuid()),
|
|
318
|
+
});
|
|
294
319
|
export const zAddressRequest = z.object({
|
|
295
320
|
country: z.string().min(0).max(100),
|
|
296
321
|
city: z.string().min(0).max(100),
|
|
@@ -344,6 +369,70 @@ export const zTransferFundsRequest = z.object({
|
|
|
344
369
|
export const zDepositFundsRequest = z.object({
|
|
345
370
|
amount: z.number(),
|
|
346
371
|
});
|
|
372
|
+
export const zConnectLinkResponse = z.object({
|
|
373
|
+
link: z.optional(z.string()),
|
|
374
|
+
expiresAt: z.optional(z.iso.datetime()),
|
|
375
|
+
});
|
|
376
|
+
export const zIdResponseUuid = z.object({
|
|
377
|
+
id: z.uuid(),
|
|
378
|
+
});
|
|
379
|
+
export const zOpenTaskRequest = z.object({
|
|
380
|
+
boardId: z.uuid(),
|
|
381
|
+
stageId: z.optional(z.uuid()),
|
|
382
|
+
title: z.string(),
|
|
383
|
+
contactIds: z.optional(z
|
|
384
|
+
.array(z.coerce
|
|
385
|
+
.bigint()
|
|
386
|
+
.min(BigInt('-9223372036854775808'), {
|
|
387
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
388
|
+
})
|
|
389
|
+
.max(BigInt('9223372036854775807'), {
|
|
390
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
391
|
+
}))
|
|
392
|
+
.min(0)
|
|
393
|
+
.max(20)),
|
|
394
|
+
ownerId: z.optional(z.uuid()),
|
|
395
|
+
});
|
|
396
|
+
export const zLinkPropertyRequest = z.object({
|
|
397
|
+
contactId: z.coerce
|
|
398
|
+
.bigint()
|
|
399
|
+
.min(BigInt('-9223372036854775808'), {
|
|
400
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
401
|
+
})
|
|
402
|
+
.max(BigInt('9223372036854775807'), {
|
|
403
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
404
|
+
}),
|
|
405
|
+
propertyId: z.coerce
|
|
406
|
+
.bigint()
|
|
407
|
+
.min(BigInt('-9223372036854775808'), {
|
|
408
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
409
|
+
})
|
|
410
|
+
.max(BigInt('9223372036854775807'), {
|
|
411
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
412
|
+
}),
|
|
413
|
+
});
|
|
414
|
+
export const zLinkInterestRequest = z.object({
|
|
415
|
+
contactId: z.coerce
|
|
416
|
+
.bigint()
|
|
417
|
+
.min(BigInt('-9223372036854775808'), {
|
|
418
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
419
|
+
})
|
|
420
|
+
.max(BigInt('9223372036854775807'), {
|
|
421
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
422
|
+
}),
|
|
423
|
+
interestId: z.coerce
|
|
424
|
+
.bigint()
|
|
425
|
+
.min(BigInt('-9223372036854775808'), {
|
|
426
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
427
|
+
})
|
|
428
|
+
.max(BigInt('9223372036854775807'), {
|
|
429
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
430
|
+
}),
|
|
431
|
+
});
|
|
432
|
+
export const zCreateAdHocTodoRequest = z.object({
|
|
433
|
+
taskId: z.uuid(),
|
|
434
|
+
title: z.string(),
|
|
435
|
+
});
|
|
347
436
|
export const zSubscriptionAddressRequest = z.object({
|
|
348
437
|
country: z.string().min(0).max(100),
|
|
349
438
|
city: z.string().min(0).max(100),
|
|
@@ -485,6 +574,9 @@ export const zAgencyPrincipalDto = z.object({
|
|
|
485
574
|
'MANAGE_CONTACT',
|
|
486
575
|
'MANAGE_ANY_CONTACT',
|
|
487
576
|
'ASSIGN_CONTACT',
|
|
577
|
+
'MANAGE_BOARD',
|
|
578
|
+
'MANAGE_DEAL',
|
|
579
|
+
'DELETE_DEAL',
|
|
488
580
|
]))),
|
|
489
581
|
isActive: z.optional(z.boolean()),
|
|
490
582
|
isOwner: z.optional(z.boolean()),
|
|
@@ -508,9 +600,6 @@ export const zProblemDetail = z.object({
|
|
|
508
600
|
instance: z.optional(z.url()),
|
|
509
601
|
properties: z.optional(z.record(z.string(), z.unknown())),
|
|
510
602
|
});
|
|
511
|
-
export const zIdResponseUuid = z.object({
|
|
512
|
-
id: z.uuid(),
|
|
513
|
-
});
|
|
514
603
|
export const zAddDealRequest = z.object({
|
|
515
604
|
type: z.string(),
|
|
516
605
|
});
|
|
@@ -542,7 +631,6 @@ export const zOnboardClientRequest = z.object({
|
|
|
542
631
|
phoneNumber: z.string().min(1).max(20),
|
|
543
632
|
contactMethods: z.array(z.enum(['WHATSAPP', 'VIBER', 'PHONE_CALL'])),
|
|
544
633
|
favoriteContactMethod: z.optional(z.enum(['WHATSAPP', 'VIBER', 'PHONE_CALL'])),
|
|
545
|
-
priority: z.optional(z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW'])),
|
|
546
634
|
});
|
|
547
635
|
export const zIdResponseLong = z.object({
|
|
548
636
|
id: z.coerce
|
|
@@ -589,6 +677,23 @@ export const zOnboardFromSourceRequest = z.object({
|
|
|
589
677
|
sourceLink: z.string(),
|
|
590
678
|
phone: z.string().min(1),
|
|
591
679
|
});
|
|
680
|
+
export const zStageSpecRequest = z.object({
|
|
681
|
+
name: z.string(),
|
|
682
|
+
color: z.string(),
|
|
683
|
+
});
|
|
684
|
+
export const zCreateBoardRequest = z.object({
|
|
685
|
+
kind: z.optional(z.enum(['OWNER', 'SEEKER'])),
|
|
686
|
+
name: z.string(),
|
|
687
|
+
stages: z.optional(z.array(zStageSpecRequest).min(0).max(30)),
|
|
688
|
+
});
|
|
689
|
+
export const zAddStageRequest = z.object({
|
|
690
|
+
name: z.string(),
|
|
691
|
+
color: z.string(),
|
|
692
|
+
});
|
|
693
|
+
export const zAddTodoTemplateRequest = z.object({
|
|
694
|
+
title: z.string(),
|
|
695
|
+
applyToTasksInStage: z.boolean(),
|
|
696
|
+
});
|
|
592
697
|
export const zProvisionAgencyRequest = z.object({
|
|
593
698
|
ownerUserId: z.string(),
|
|
594
699
|
name: z.string(),
|
|
@@ -662,6 +767,9 @@ export const zOrganizationSummaryViewResponse = z.object({
|
|
|
662
767
|
'MANAGE_CONTACT',
|
|
663
768
|
'MANAGE_ANY_CONTACT',
|
|
664
769
|
'ASSIGN_CONTACT',
|
|
770
|
+
'MANAGE_BOARD',
|
|
771
|
+
'MANAGE_DEAL',
|
|
772
|
+
'DELETE_DEAL',
|
|
665
773
|
])),
|
|
666
774
|
status: z.enum([
|
|
667
775
|
'NEW',
|
|
@@ -682,35 +790,72 @@ export const zUserContextViewResponse = z.object({
|
|
|
682
790
|
user: zUserSummaryViewResponse,
|
|
683
791
|
organizations: z.array(zOrganizationSummaryViewResponse),
|
|
684
792
|
});
|
|
685
|
-
export const
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
});
|
|
689
|
-
export const zLocationResponse = z.object({
|
|
690
|
-
id: z.coerce
|
|
793
|
+
export const zCommentView = z.object({
|
|
794
|
+
id: z.uuid(),
|
|
795
|
+
contactId: z.optional(z.coerce
|
|
691
796
|
.bigint()
|
|
692
797
|
.min(BigInt('-9223372036854775808'), {
|
|
693
798
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
694
799
|
})
|
|
695
800
|
.max(BigInt('9223372036854775807'), {
|
|
696
801
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
697
|
-
}),
|
|
698
|
-
|
|
802
|
+
})),
|
|
803
|
+
taskId: z.optional(z.uuid()),
|
|
804
|
+
authorId: z.uuid(),
|
|
805
|
+
authorFirstName: z.string(),
|
|
806
|
+
authorLastName: z.string(),
|
|
807
|
+
profilePictureUrl: z.optional(z.string()),
|
|
808
|
+
body: z.string(),
|
|
809
|
+
createdAt: z.iso.datetime(),
|
|
810
|
+
editedAt: z.optional(z.iso.datetime()),
|
|
699
811
|
});
|
|
700
|
-
export const
|
|
701
|
-
|
|
702
|
-
|
|
812
|
+
export const zCursorPageCommentView = z.object({
|
|
813
|
+
items: z.optional(z.array(zCommentView)),
|
|
814
|
+
nextCursor: z.optional(z.string()),
|
|
815
|
+
hasNext: z.optional(z.boolean()),
|
|
816
|
+
});
|
|
817
|
+
export const zContactPersonalDetails = z.unknown();
|
|
818
|
+
export const zContactPersonalDetailsRestricted = z.object({
|
|
819
|
+
requires: z.optional(z.array(z.enum([
|
|
820
|
+
'MANAGE_AGENCY',
|
|
821
|
+
'MANAGE_ROLE',
|
|
822
|
+
'MANAGE_MEMBER',
|
|
823
|
+
'CREATE_DELETE_MEMBER',
|
|
824
|
+
'CREATE_CONTACT',
|
|
825
|
+
'DELETE_CONTACT',
|
|
826
|
+
'MANAGE_CONTACT',
|
|
827
|
+
'MANAGE_ANY_CONTACT',
|
|
828
|
+
'ASSIGN_CONTACT',
|
|
829
|
+
'MANAGE_BOARD',
|
|
830
|
+
'MANAGE_DEAL',
|
|
831
|
+
'DELETE_DEAL',
|
|
832
|
+
]))),
|
|
833
|
+
status: z.enum(['RESTRICTED']),
|
|
834
|
+
});
|
|
835
|
+
export const zContactPersonalDetailsVisible = z.object({
|
|
836
|
+
phoneNumber: z.optional(z.string()),
|
|
837
|
+
fullName: z.optional(z.string()),
|
|
838
|
+
email: z.optional(z.string()),
|
|
839
|
+
status: z.enum(['VISIBLE']),
|
|
840
|
+
});
|
|
841
|
+
export const zContactLink = z.object({
|
|
842
|
+
contactId: z.coerce
|
|
703
843
|
.bigint()
|
|
704
844
|
.min(BigInt('-9223372036854775808'), {
|
|
705
845
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
706
846
|
})
|
|
707
847
|
.max(BigInt('9223372036854775807'), {
|
|
708
848
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
709
|
-
})
|
|
849
|
+
}),
|
|
850
|
+
primary: z.boolean(),
|
|
851
|
+
personalDetails: z.union([
|
|
852
|
+
zContactPersonalDetailsRestricted,
|
|
853
|
+
zContactPersonalDetailsVisible,
|
|
854
|
+
]),
|
|
855
|
+
contactAssignedTo: z.optional(z.uuid()),
|
|
710
856
|
});
|
|
711
|
-
export const
|
|
712
|
-
|
|
713
|
-
count: z.coerce
|
|
857
|
+
export const zInterestLink = z.object({
|
|
858
|
+
interestId: z.coerce
|
|
714
859
|
.bigint()
|
|
715
860
|
.min(BigInt('-9223372036854775808'), {
|
|
716
861
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -718,59 +863,132 @@ export const zSlice = z.object({
|
|
|
718
863
|
.max(BigInt('9223372036854775807'), {
|
|
719
864
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
720
865
|
}),
|
|
721
|
-
|
|
722
|
-
export const zDealTypePrice = z.object({
|
|
723
|
-
listingType: z.optional(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'])),
|
|
724
|
-
buckets: z.optional(z.array(zSlice)),
|
|
725
|
-
});
|
|
726
|
-
export const zSupplyStats = z.object({
|
|
727
|
-
activeListings: z.optional(z.coerce
|
|
866
|
+
contactId: z.coerce
|
|
728
867
|
.bigint()
|
|
729
868
|
.min(BigInt('-9223372036854775808'), {
|
|
730
869
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
731
870
|
})
|
|
732
871
|
.max(BigInt('9223372036854775807'), {
|
|
733
872
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
734
|
-
})
|
|
735
|
-
|
|
736
|
-
byPropertyType: z.optional(z.array(zSlice)),
|
|
737
|
-
priceByDealType: z.optional(z.array(zDealTypePrice)),
|
|
738
|
-
topDistricts: z.optional(z.array(zLocationCount)),
|
|
873
|
+
}),
|
|
874
|
+
title: z.optional(z.string()),
|
|
739
875
|
});
|
|
740
|
-
export const
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
876
|
+
export const zParticipant = z.object({
|
|
877
|
+
memberId: z.uuid(),
|
|
878
|
+
firstName: z.optional(z.string()),
|
|
879
|
+
lastName: z.optional(z.string()),
|
|
880
|
+
photo: z.optional(z.string()),
|
|
881
|
+
owner: z.boolean(),
|
|
744
882
|
});
|
|
745
|
-
export const
|
|
746
|
-
propertyId: z.
|
|
883
|
+
export const zPropertyLink = z.object({
|
|
884
|
+
propertyId: z.coerce
|
|
747
885
|
.bigint()
|
|
748
886
|
.min(BigInt('-9223372036854775808'), {
|
|
749
887
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
750
888
|
})
|
|
751
889
|
.max(BigInt('9223372036854775807'), {
|
|
752
890
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
753
|
-
})
|
|
754
|
-
|
|
755
|
-
title: z.optional(z.string()),
|
|
756
|
-
expiresAt: z.optional(z.iso.date()),
|
|
757
|
-
});
|
|
758
|
-
export const zExpiringPlatformListing = z.object({
|
|
759
|
-
platform: z.optional(z.enum(['SS', 'MY_HOME'])),
|
|
760
|
-
platformId: z.optional(z.coerce
|
|
891
|
+
}),
|
|
892
|
+
contactId: z.coerce
|
|
761
893
|
.bigint()
|
|
762
894
|
.min(BigInt('-9223372036854775808'), {
|
|
763
895
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
764
896
|
})
|
|
765
897
|
.max(BigInt('9223372036854775807'), {
|
|
766
898
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
767
|
-
})
|
|
768
|
-
|
|
769
|
-
expiresAt: z.optional(z.iso.date()),
|
|
899
|
+
}),
|
|
900
|
+
title: z.optional(z.string()),
|
|
770
901
|
});
|
|
771
|
-
export const
|
|
772
|
-
|
|
773
|
-
|
|
902
|
+
export const zTimelineEntry = z.object({
|
|
903
|
+
fromStageId: z.optional(z.uuid()),
|
|
904
|
+
fromStageName: z.optional(z.string()),
|
|
905
|
+
toStageId: z.optional(z.uuid()),
|
|
906
|
+
toStageName: z.optional(z.string()),
|
|
907
|
+
boardChanged: z.boolean(),
|
|
908
|
+
outcome: z.optional(z.enum(['WON', 'LOST'])),
|
|
909
|
+
movedBy: z.optional(z.uuid()),
|
|
910
|
+
occurredAt: z.iso.datetime(),
|
|
911
|
+
});
|
|
912
|
+
export const zTodoItem = z.object({
|
|
913
|
+
todoId: z.uuid(),
|
|
914
|
+
title: z.string(),
|
|
915
|
+
position: z
|
|
916
|
+
.int()
|
|
917
|
+
.min(-2147483648, {
|
|
918
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
919
|
+
})
|
|
920
|
+
.max(2147483647, {
|
|
921
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
922
|
+
}),
|
|
923
|
+
fromTemplate: z.boolean(),
|
|
924
|
+
completedAt: z.optional(z.iso.datetime()),
|
|
925
|
+
completedBy: z.optional(z.uuid()),
|
|
926
|
+
});
|
|
927
|
+
export const zTodoGroup = z.object({
|
|
928
|
+
kind: z.enum(['CURRENT_STAGE', 'LEFTOVER', 'AD_HOC']),
|
|
929
|
+
stageId: z.optional(z.uuid()),
|
|
930
|
+
stageName: z.optional(z.string()),
|
|
931
|
+
todos: z.array(zTodoItem),
|
|
932
|
+
});
|
|
933
|
+
export const zTaskDetailResponse = z.object({
|
|
934
|
+
taskId: z.uuid(),
|
|
935
|
+
boardId: z.uuid(),
|
|
936
|
+
boardName: z.string(),
|
|
937
|
+
stageId: z.uuid(),
|
|
938
|
+
stageName: z.string(),
|
|
939
|
+
stageColor: z.string(),
|
|
940
|
+
stageEnteredAt: z.iso.datetime(),
|
|
941
|
+
title: z.string(),
|
|
942
|
+
description: z.optional(z.string()),
|
|
943
|
+
value: z.optional(z.number()),
|
|
944
|
+
commissionType: z.enum([
|
|
945
|
+
'NOT_SET',
|
|
946
|
+
'FIXED',
|
|
947
|
+
'PERCENTAGE',
|
|
948
|
+
'MONTHS_OF_RENT',
|
|
949
|
+
]),
|
|
950
|
+
commissionValue: z.optional(z.number()),
|
|
951
|
+
expectedCloseDate: z.optional(z.iso.date()),
|
|
952
|
+
ownerId: z.optional(z.uuid()),
|
|
953
|
+
outcome: z.optional(z.enum(['WON', 'LOST'])),
|
|
954
|
+
lostReason: z.optional(z.enum([
|
|
955
|
+
'NOT_WORKING_WITH_AGENTS',
|
|
956
|
+
'NOT_RESPONDING',
|
|
957
|
+
'ALREADY_SOLD',
|
|
958
|
+
'COULD_NOT_NEGOTIATE_PRICE',
|
|
959
|
+
'CHOSE_ANOTHER_AGENCY',
|
|
960
|
+
'CHANGED_PLANS',
|
|
961
|
+
'OUT_OF_BUDGET',
|
|
962
|
+
'SPAM',
|
|
963
|
+
'OTHER',
|
|
964
|
+
])),
|
|
965
|
+
closedAt: z.optional(z.iso.datetime()),
|
|
966
|
+
createdBy: z.optional(z.uuid()),
|
|
967
|
+
createdAt: z.iso.datetime(),
|
|
968
|
+
contacts: z.array(zContactLink),
|
|
969
|
+
participants: z.array(zParticipant),
|
|
970
|
+
interests: z.array(zInterestLink),
|
|
971
|
+
properties: z.array(zPropertyLink),
|
|
972
|
+
todoGroups: z.array(zTodoGroup),
|
|
973
|
+
timeline: z.array(zTimelineEntry),
|
|
974
|
+
});
|
|
975
|
+
export const zContactTaskResponse = z.object({
|
|
976
|
+
taskId: z.uuid(),
|
|
977
|
+
title: z.string(),
|
|
978
|
+
boardId: z.uuid(),
|
|
979
|
+
boardName: z.string(),
|
|
980
|
+
stageId: z.uuid(),
|
|
981
|
+
stageName: z.string(),
|
|
982
|
+
outcome: z.optional(z.enum(['WON', 'LOST'])),
|
|
983
|
+
value: z.optional(z.number()),
|
|
984
|
+
primary: z.boolean(),
|
|
985
|
+
});
|
|
986
|
+
export const zCard = z.object({
|
|
987
|
+
taskId: z.uuid(),
|
|
988
|
+
title: z.string(),
|
|
989
|
+
value: z.optional(z.number()),
|
|
990
|
+
ownerId: z.optional(z.uuid()),
|
|
991
|
+
primaryContactId: z.optional(z.coerce
|
|
774
992
|
.bigint()
|
|
775
993
|
.min(BigInt('-9223372036854775808'), {
|
|
776
994
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -778,13 +996,13 @@ export const zListingTypeAgg = z.object({
|
|
|
778
996
|
.max(BigInt('9223372036854775807'), {
|
|
779
997
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
780
998
|
})),
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
999
|
+
primaryContact: z.optional(z.union([
|
|
1000
|
+
zContactPersonalDetailsRestricted,
|
|
1001
|
+
zContactPersonalDetailsVisible,
|
|
1002
|
+
])),
|
|
1003
|
+
contactAssignedTo: z.optional(z.uuid()),
|
|
1004
|
+
stageEnteredAt: z.iso.datetime(),
|
|
1005
|
+
daysInStage: z.coerce
|
|
788
1006
|
.bigint()
|
|
789
1007
|
.min(BigInt('-9223372036854775808'), {
|
|
790
1008
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -792,8 +1010,7 @@ export const zPortfolioStats = z.object({
|
|
|
792
1010
|
.max(BigInt('9223372036854775807'), {
|
|
793
1011
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
794
1012
|
}),
|
|
795
|
-
|
|
796
|
-
expiringPlatformCount: z.coerce
|
|
1013
|
+
openTodos: z.coerce
|
|
797
1014
|
.bigint()
|
|
798
1015
|
.min(BigInt('-9223372036854775808'), {
|
|
799
1016
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -801,16 +1018,57 @@ export const zPortfolioStats = z.object({
|
|
|
801
1018
|
.max(BigInt('9223372036854775807'), {
|
|
802
1019
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
803
1020
|
}),
|
|
804
|
-
|
|
1021
|
+
totalTodos: z.coerce
|
|
1022
|
+
.bigint()
|
|
1023
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1024
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1025
|
+
})
|
|
1026
|
+
.max(BigInt('9223372036854775807'), {
|
|
1027
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1028
|
+
}),
|
|
1029
|
+
hasLeftoverOpenTodos: z.boolean(),
|
|
805
1030
|
});
|
|
806
|
-
export const
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
1031
|
+
export const zCursorPageCard = z.object({
|
|
1032
|
+
items: z.optional(z.array(zCard)),
|
|
1033
|
+
nextCursor: z.optional(z.string()),
|
|
1034
|
+
hasNext: z.optional(z.boolean()),
|
|
810
1035
|
});
|
|
811
|
-
export const
|
|
812
|
-
|
|
813
|
-
|
|
1036
|
+
export const zColumn = z.object({
|
|
1037
|
+
stageId: z.uuid(),
|
|
1038
|
+
name: z.string(),
|
|
1039
|
+
color: z.string(),
|
|
1040
|
+
position: z
|
|
1041
|
+
.int()
|
|
1042
|
+
.min(-2147483648, {
|
|
1043
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1044
|
+
})
|
|
1045
|
+
.max(2147483647, {
|
|
1046
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1047
|
+
}),
|
|
1048
|
+
totalTasks: z.coerce
|
|
1049
|
+
.bigint()
|
|
1050
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1051
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1052
|
+
})
|
|
1053
|
+
.max(BigInt('9223372036854775807'), {
|
|
1054
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1055
|
+
}),
|
|
1056
|
+
totalValue: z.number(),
|
|
1057
|
+
cards: zCursorPageCard,
|
|
1058
|
+
});
|
|
1059
|
+
export const zBoardGridResponse = z.object({
|
|
1060
|
+
boardId: z.uuid(),
|
|
1061
|
+
name: z.string(),
|
|
1062
|
+
kind: z.optional(z.enum(['OWNER', 'SEEKER'])),
|
|
1063
|
+
archived: z.boolean(),
|
|
1064
|
+
columns: z.array(zColumn),
|
|
1065
|
+
});
|
|
1066
|
+
export const zClosedTaskResponse = z.object({
|
|
1067
|
+
taskId: z.uuid(),
|
|
1068
|
+
title: z.string(),
|
|
1069
|
+
value: z.optional(z.number()),
|
|
1070
|
+
ownerId: z.optional(z.uuid()),
|
|
1071
|
+
primaryContactId: z.optional(z.coerce
|
|
814
1072
|
.bigint()
|
|
815
1073
|
.min(BigInt('-9223372036854775808'), {
|
|
816
1074
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -818,49 +1076,68 @@ export const zTrendPoint = z.object({
|
|
|
818
1076
|
.max(BigInt('9223372036854775807'), {
|
|
819
1077
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
820
1078
|
})),
|
|
1079
|
+
primaryContact: z.optional(z.union([
|
|
1080
|
+
zContactPersonalDetailsRestricted,
|
|
1081
|
+
zContactPersonalDetailsVisible,
|
|
1082
|
+
])),
|
|
1083
|
+
contactAssignedTo: z.optional(z.uuid()),
|
|
1084
|
+
outcome: z.enum(['WON', 'LOST']),
|
|
1085
|
+
lostReason: z.optional(z.enum([
|
|
1086
|
+
'NOT_WORKING_WITH_AGENTS',
|
|
1087
|
+
'NOT_RESPONDING',
|
|
1088
|
+
'ALREADY_SOLD',
|
|
1089
|
+
'COULD_NOT_NEGOTIATE_PRICE',
|
|
1090
|
+
'CHOSE_ANOTHER_AGENCY',
|
|
1091
|
+
'CHANGED_PLANS',
|
|
1092
|
+
'OUT_OF_BUDGET',
|
|
1093
|
+
'SPAM',
|
|
1094
|
+
'OTHER',
|
|
1095
|
+
])),
|
|
1096
|
+
closedAt: z.iso.datetime(),
|
|
1097
|
+
stageName: z.string(),
|
|
821
1098
|
});
|
|
822
|
-
export const
|
|
823
|
-
|
|
1099
|
+
export const zPageMetadata = z.object({
|
|
1100
|
+
size: z.optional(z.coerce
|
|
824
1101
|
.bigint()
|
|
825
1102
|
.min(BigInt('-9223372036854775808'), {
|
|
826
1103
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
827
1104
|
})
|
|
828
1105
|
.max(BigInt('9223372036854775807'), {
|
|
829
1106
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
830
|
-
}),
|
|
831
|
-
|
|
1107
|
+
})),
|
|
1108
|
+
number: z.optional(z.coerce
|
|
832
1109
|
.bigint()
|
|
833
1110
|
.min(BigInt('-9223372036854775808'), {
|
|
834
1111
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
835
1112
|
})
|
|
836
1113
|
.max(BigInt('9223372036854775807'), {
|
|
837
1114
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
838
|
-
}),
|
|
839
|
-
|
|
840
|
-
unassigned: z.coerce
|
|
1115
|
+
})),
|
|
1116
|
+
totalElements: z.optional(z.coerce
|
|
841
1117
|
.bigint()
|
|
842
1118
|
.min(BigInt('-9223372036854775808'), {
|
|
843
1119
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
844
1120
|
})
|
|
845
1121
|
.max(BigInt('9223372036854775807'), {
|
|
846
1122
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
847
|
-
}),
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
1123
|
+
})),
|
|
1124
|
+
totalPages: z.optional(z.coerce
|
|
1125
|
+
.bigint()
|
|
1126
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1127
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1128
|
+
})
|
|
1129
|
+
.max(BigInt('9223372036854775807'), {
|
|
1130
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1131
|
+
})),
|
|
852
1132
|
});
|
|
853
|
-
export const
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
data: zPipelineStats,
|
|
1133
|
+
export const zPagedModelClosedTaskResponse = z.object({
|
|
1134
|
+
content: z.optional(z.array(zClosedTaskResponse)),
|
|
1135
|
+
page: z.optional(zPageMetadata),
|
|
857
1136
|
});
|
|
858
|
-
export const
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
photo: z.string(),
|
|
863
|
-
contactsAssigned: z.coerce
|
|
1137
|
+
export const zBoardWinRate = z.object({
|
|
1138
|
+
boardId: z.uuid(),
|
|
1139
|
+
name: z.string(),
|
|
1140
|
+
won: z.coerce
|
|
864
1141
|
.bigint()
|
|
865
1142
|
.min(BigInt('-9223372036854775808'), {
|
|
866
1143
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -868,7 +1145,7 @@ export const zRow = z.object({
|
|
|
868
1145
|
.max(BigInt('9223372036854775807'), {
|
|
869
1146
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
870
1147
|
}),
|
|
871
|
-
|
|
1148
|
+
lost: z.coerce
|
|
872
1149
|
.bigint()
|
|
873
1150
|
.min(BigInt('-9223372036854775808'), {
|
|
874
1151
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -876,8 +1153,11 @@ export const zRow = z.object({
|
|
|
876
1153
|
.max(BigInt('9223372036854775807'), {
|
|
877
1154
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
878
1155
|
}),
|
|
879
|
-
|
|
880
|
-
|
|
1156
|
+
winRatePct: z.number(),
|
|
1157
|
+
});
|
|
1158
|
+
export const zMemberWinRate = z.object({
|
|
1159
|
+
memberId: z.uuid(),
|
|
1160
|
+
won: z.coerce
|
|
881
1161
|
.bigint()
|
|
882
1162
|
.min(BigInt('-9223372036854775808'), {
|
|
883
1163
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -885,7 +1165,7 @@ export const zRow = z.object({
|
|
|
885
1165
|
.max(BigInt('9223372036854775807'), {
|
|
886
1166
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
887
1167
|
}),
|
|
888
|
-
|
|
1168
|
+
lost: z.coerce
|
|
889
1169
|
.bigint()
|
|
890
1170
|
.min(BigInt('-9223372036854775808'), {
|
|
891
1171
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -893,19 +1173,10 @@ export const zRow = z.object({
|
|
|
893
1173
|
.max(BigInt('9223372036854775807'), {
|
|
894
1174
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
895
1175
|
}),
|
|
896
|
-
|
|
1176
|
+
winRatePct: z.number(),
|
|
897
1177
|
});
|
|
898
|
-
export const
|
|
899
|
-
|
|
900
|
-
});
|
|
901
|
-
export const zStatsEnvelopeLeaderboardStats = z.object({
|
|
902
|
-
period: z.string(),
|
|
903
|
-
computedAt: z.iso.datetime(),
|
|
904
|
-
data: zLeaderboardStats,
|
|
905
|
-
});
|
|
906
|
-
export const zAwaitingConversation = z.object({
|
|
907
|
-
conversationId: z.uuid(),
|
|
908
|
-
contactId: z.coerce
|
|
1178
|
+
export const zWinRateStats = z.object({
|
|
1179
|
+
won: z.coerce
|
|
909
1180
|
.bigint()
|
|
910
1181
|
.min(BigInt('-9223372036854775808'), {
|
|
911
1182
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -913,12 +1184,29 @@ export const zAwaitingConversation = z.object({
|
|
|
913
1184
|
.max(BigInt('9223372036854775807'), {
|
|
914
1185
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
915
1186
|
}),
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
1187
|
+
lost: z.coerce
|
|
1188
|
+
.bigint()
|
|
1189
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1190
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1191
|
+
})
|
|
1192
|
+
.max(BigInt('9223372036854775807'), {
|
|
1193
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1194
|
+
}),
|
|
1195
|
+
winRatePct: z.number(),
|
|
1196
|
+
boards: z.array(zBoardWinRate),
|
|
1197
|
+
members: z.array(zMemberWinRate),
|
|
1198
|
+
});
|
|
1199
|
+
export const zStatsEnvelopeWinRateStats = z.object({
|
|
1200
|
+
period: z.string(),
|
|
1201
|
+
computedAt: z.iso.datetime(),
|
|
1202
|
+
data: zWinRateStats,
|
|
1203
|
+
});
|
|
1204
|
+
export const zStageVelocity = z.object({
|
|
1205
|
+
boardId: z.uuid(),
|
|
1206
|
+
boardName: z.string(),
|
|
1207
|
+
stageId: z.uuid(),
|
|
1208
|
+
stageName: z.string(),
|
|
1209
|
+
position: z
|
|
922
1210
|
.int()
|
|
923
1211
|
.min(-2147483648, {
|
|
924
1212
|
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
@@ -926,10 +1214,8 @@ export const zAwaitingConversation = z.object({
|
|
|
926
1214
|
.max(2147483647, {
|
|
927
1215
|
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
928
1216
|
}),
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
export const zInboxStats = z.object({
|
|
932
|
-
openConversations: z.coerce
|
|
1217
|
+
avgDaysInStage: z.number(),
|
|
1218
|
+
samples: z.coerce
|
|
933
1219
|
.bigint()
|
|
934
1220
|
.min(BigInt('-9223372036854775808'), {
|
|
935
1221
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -937,15 +1223,27 @@ export const zInboxStats = z.object({
|
|
|
937
1223
|
.max(BigInt('9223372036854775807'), {
|
|
938
1224
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
939
1225
|
}),
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
1226
|
+
});
|
|
1227
|
+
export const zTaskVelocityStats = z.object({
|
|
1228
|
+
stages: z.array(zStageVelocity),
|
|
1229
|
+
});
|
|
1230
|
+
export const zStatsEnvelopeTaskVelocityStats = z.object({
|
|
1231
|
+
period: z.string(),
|
|
1232
|
+
computedAt: z.iso.datetime(),
|
|
1233
|
+
data: zTaskVelocityStats,
|
|
1234
|
+
});
|
|
1235
|
+
export const zStageSlice = z.object({
|
|
1236
|
+
stageId: z.uuid(),
|
|
1237
|
+
name: z.string(),
|
|
1238
|
+
position: z
|
|
1239
|
+
.int()
|
|
1240
|
+
.min(-2147483648, {
|
|
1241
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
944
1242
|
})
|
|
945
|
-
.max(
|
|
946
|
-
error: 'Invalid value: Expected
|
|
1243
|
+
.max(2147483647, {
|
|
1244
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
947
1245
|
}),
|
|
948
|
-
|
|
1246
|
+
openTasks: z.coerce
|
|
949
1247
|
.bigint()
|
|
950
1248
|
.min(BigInt('-9223372036854775808'), {
|
|
951
1249
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -953,7 +1251,28 @@ export const zInboxStats = z.object({
|
|
|
953
1251
|
.max(BigInt('9223372036854775807'), {
|
|
954
1252
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
955
1253
|
}),
|
|
956
|
-
|
|
1254
|
+
openValue: z.number(),
|
|
1255
|
+
});
|
|
1256
|
+
export const zBoardFunnel = z.object({
|
|
1257
|
+
boardId: z.uuid(),
|
|
1258
|
+
name: z.string(),
|
|
1259
|
+
kind: z.optional(z.string()),
|
|
1260
|
+
stages: z.array(zStageSlice),
|
|
1261
|
+
});
|
|
1262
|
+
export const zTaskFunnelStats = z.object({
|
|
1263
|
+
boards: z.array(zBoardFunnel),
|
|
1264
|
+
});
|
|
1265
|
+
export const zStatsEnvelopeTaskFunnelStats = z.object({
|
|
1266
|
+
period: z.string(),
|
|
1267
|
+
computedAt: z.iso.datetime(),
|
|
1268
|
+
data: zTaskFunnelStats,
|
|
1269
|
+
});
|
|
1270
|
+
export const zLangTextResponse = z.object({
|
|
1271
|
+
language: z.enum(['ka', 'en', 'ru']),
|
|
1272
|
+
text: z.string(),
|
|
1273
|
+
});
|
|
1274
|
+
export const zLocationResponse = z.object({
|
|
1275
|
+
id: z.coerce
|
|
957
1276
|
.bigint()
|
|
958
1277
|
.min(BigInt('-9223372036854775808'), {
|
|
959
1278
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -961,16 +1280,22 @@ export const zInboxStats = z.object({
|
|
|
961
1280
|
.max(BigInt('9223372036854775807'), {
|
|
962
1281
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
963
1282
|
}),
|
|
964
|
-
|
|
1283
|
+
names: z.array(zLangTextResponse),
|
|
1284
|
+
});
|
|
1285
|
+
export const zLocationCount = z.object({
|
|
1286
|
+
location: z.optional(zLocationResponse),
|
|
1287
|
+
count: z.optional(z.coerce
|
|
965
1288
|
.bigint()
|
|
966
1289
|
.min(BigInt('-9223372036854775808'), {
|
|
967
1290
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
968
1291
|
})
|
|
969
1292
|
.max(BigInt('9223372036854775807'), {
|
|
970
1293
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
971
|
-
}),
|
|
972
|
-
|
|
973
|
-
|
|
1294
|
+
})),
|
|
1295
|
+
});
|
|
1296
|
+
export const zSlice = z.object({
|
|
1297
|
+
key: z.string(),
|
|
1298
|
+
count: z.coerce
|
|
974
1299
|
.bigint()
|
|
975
1300
|
.min(BigInt('-9223372036854775808'), {
|
|
976
1301
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -978,19 +1303,13 @@ export const zInboxStats = z.object({
|
|
|
978
1303
|
.max(BigInt('9223372036854775807'), {
|
|
979
1304
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
980
1305
|
}),
|
|
981
|
-
inboundByChannel: z.array(zSlice),
|
|
982
|
-
});
|
|
983
|
-
export const zStatsEnvelopeInboxStats = z.object({
|
|
984
|
-
period: z.string(),
|
|
985
|
-
computedAt: z.iso.datetime(),
|
|
986
|
-
data: zInboxStats,
|
|
987
1306
|
});
|
|
988
|
-
export const
|
|
1307
|
+
export const zDealTypePrice = z.object({
|
|
989
1308
|
listingType: z.optional(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'])),
|
|
990
1309
|
buckets: z.optional(z.array(zSlice)),
|
|
991
1310
|
});
|
|
992
|
-
export const
|
|
993
|
-
|
|
1311
|
+
export const zSupplyStats = z.object({
|
|
1312
|
+
activeListings: z.optional(z.coerce
|
|
994
1313
|
.bigint()
|
|
995
1314
|
.min(BigInt('-9223372036854775808'), {
|
|
996
1315
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -1000,16 +1319,16 @@ export const zDemandStats = z.object({
|
|
|
1000
1319
|
})),
|
|
1001
1320
|
byListingType: z.optional(z.array(zSlice)),
|
|
1002
1321
|
byPropertyType: z.optional(z.array(zSlice)),
|
|
1003
|
-
|
|
1322
|
+
priceByDealType: z.optional(z.array(zDealTypePrice)),
|
|
1004
1323
|
topDistricts: z.optional(z.array(zLocationCount)),
|
|
1005
1324
|
});
|
|
1006
|
-
export const
|
|
1325
|
+
export const zStatsEnvelopeSupplyStats = z.object({
|
|
1007
1326
|
period: z.string(),
|
|
1008
1327
|
computedAt: z.iso.datetime(),
|
|
1009
|
-
data:
|
|
1328
|
+
data: zSupplyStats,
|
|
1010
1329
|
});
|
|
1011
|
-
export const
|
|
1012
|
-
|
|
1330
|
+
export const zExpiringAgreement = z.object({
|
|
1331
|
+
propertyId: z.optional(z.coerce
|
|
1013
1332
|
.bigint()
|
|
1014
1333
|
.min(BigInt('-9223372036854775808'), {
|
|
1015
1334
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -1017,7 +1336,13 @@ export const zPageMetadata = z.object({
|
|
|
1017
1336
|
.max(BigInt('9223372036854775807'), {
|
|
1018
1337
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1019
1338
|
})),
|
|
1020
|
-
|
|
1339
|
+
externalId: z.optional(z.uuid()),
|
|
1340
|
+
title: z.optional(z.string()),
|
|
1341
|
+
expiresAt: z.optional(z.iso.date()),
|
|
1342
|
+
});
|
|
1343
|
+
export const zExpiringPlatformListing = z.object({
|
|
1344
|
+
platform: z.optional(z.enum(['SS', 'MY_HOME'])),
|
|
1345
|
+
platformId: z.optional(z.coerce
|
|
1021
1346
|
.bigint()
|
|
1022
1347
|
.min(BigInt('-9223372036854775808'), {
|
|
1023
1348
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -1025,7 +1350,12 @@ export const zPageMetadata = z.object({
|
|
|
1025
1350
|
.max(BigInt('9223372036854775807'), {
|
|
1026
1351
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1027
1352
|
})),
|
|
1028
|
-
|
|
1353
|
+
propertyTitle: z.optional(z.string()),
|
|
1354
|
+
expiresAt: z.optional(z.iso.date()),
|
|
1355
|
+
});
|
|
1356
|
+
export const zListingTypeAgg = z.object({
|
|
1357
|
+
listingType: z.optional(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'])),
|
|
1358
|
+
count: z.optional(z.coerce
|
|
1029
1359
|
.bigint()
|
|
1030
1360
|
.min(BigInt('-9223372036854775808'), {
|
|
1031
1361
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -1033,43 +1363,249 @@ export const zPageMetadata = z.object({
|
|
|
1033
1363
|
.max(BigInt('9223372036854775807'), {
|
|
1034
1364
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1035
1365
|
})),
|
|
1036
|
-
|
|
1366
|
+
pipelineValue: z.optional(z.number()),
|
|
1367
|
+
estimatedCommission: z.optional(z.number()),
|
|
1368
|
+
});
|
|
1369
|
+
export const zPortfolioStats = z.object({
|
|
1370
|
+
propertiesByState: z.array(zSlice),
|
|
1371
|
+
listings: z.array(zListingTypeAgg),
|
|
1372
|
+
expiringAgreementsCount: z.coerce
|
|
1037
1373
|
.bigint()
|
|
1038
1374
|
.min(BigInt('-9223372036854775808'), {
|
|
1039
1375
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1040
1376
|
})
|
|
1041
1377
|
.max(BigInt('9223372036854775807'), {
|
|
1042
1378
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1043
|
-
})
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
.
|
|
1048
|
-
|
|
1049
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1379
|
+
}),
|
|
1380
|
+
expiringAgreements: z.array(zExpiringAgreement),
|
|
1381
|
+
expiringPlatformCount: z.coerce
|
|
1382
|
+
.bigint()
|
|
1383
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1384
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1050
1385
|
})
|
|
1051
|
-
.max(
|
|
1052
|
-
error: 'Invalid value: Expected
|
|
1386
|
+
.max(BigInt('9223372036854775807'), {
|
|
1387
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1053
1388
|
}),
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
'
|
|
1066
|
-
'
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1389
|
+
expiringPlatformListings: z.array(zExpiringPlatformListing),
|
|
1390
|
+
});
|
|
1391
|
+
export const zStatsEnvelopePortfolioStats = z.object({
|
|
1392
|
+
period: z.string(),
|
|
1393
|
+
computedAt: z.iso.datetime(),
|
|
1394
|
+
data: zPortfolioStats,
|
|
1395
|
+
});
|
|
1396
|
+
export const zTrendPoint = z.object({
|
|
1397
|
+
date: z.optional(z.iso.date()),
|
|
1398
|
+
count: z.optional(z.coerce
|
|
1399
|
+
.bigint()
|
|
1400
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1401
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1402
|
+
})
|
|
1403
|
+
.max(BigInt('9223372036854775807'), {
|
|
1404
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1405
|
+
})),
|
|
1406
|
+
});
|
|
1407
|
+
export const zPipelineStats = z.object({
|
|
1408
|
+
total: z.coerce
|
|
1409
|
+
.bigint()
|
|
1410
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1411
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1412
|
+
})
|
|
1413
|
+
.max(BigInt('9223372036854775807'), {
|
|
1414
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1415
|
+
}),
|
|
1416
|
+
unassigned: z.coerce
|
|
1417
|
+
.bigint()
|
|
1418
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1419
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1420
|
+
})
|
|
1421
|
+
.max(BigInt('9223372036854775807'), {
|
|
1422
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1423
|
+
}),
|
|
1424
|
+
newContactsTrend: z.array(zTrendPoint),
|
|
1425
|
+
sourceAttribution: z.array(zSlice),
|
|
1426
|
+
});
|
|
1427
|
+
export const zStatsEnvelopePipelineStats = z.object({
|
|
1428
|
+
period: z.string(),
|
|
1429
|
+
computedAt: z.iso.datetime(),
|
|
1430
|
+
data: zPipelineStats,
|
|
1431
|
+
});
|
|
1432
|
+
export const zRow = z.object({
|
|
1433
|
+
memberId: z.uuid(),
|
|
1434
|
+
firstName: z.string(),
|
|
1435
|
+
lastName: z.string(),
|
|
1436
|
+
photo: z.string(),
|
|
1437
|
+
tasksWon: z.coerce
|
|
1438
|
+
.bigint()
|
|
1439
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1440
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1441
|
+
})
|
|
1442
|
+
.max(BigInt('9223372036854775807'), {
|
|
1443
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1444
|
+
}),
|
|
1445
|
+
wonValue: z.number(),
|
|
1446
|
+
commission: z.number(),
|
|
1447
|
+
recommendationsSent: z.coerce
|
|
1448
|
+
.bigint()
|
|
1449
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1450
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1451
|
+
})
|
|
1452
|
+
.max(BigInt('9223372036854775807'), {
|
|
1453
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1454
|
+
}),
|
|
1455
|
+
recommendationsRated: z.coerce
|
|
1456
|
+
.bigint()
|
|
1457
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1458
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1459
|
+
})
|
|
1460
|
+
.max(BigInt('9223372036854775807'), {
|
|
1461
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1462
|
+
}),
|
|
1463
|
+
likeRatePct: z.number(),
|
|
1464
|
+
});
|
|
1465
|
+
export const zLeaderboardStats = z.object({
|
|
1466
|
+
rows: z.array(zRow),
|
|
1467
|
+
});
|
|
1468
|
+
export const zStatsEnvelopeLeaderboardStats = z.object({
|
|
1469
|
+
period: z.string(),
|
|
1470
|
+
computedAt: z.iso.datetime(),
|
|
1471
|
+
data: zLeaderboardStats,
|
|
1472
|
+
});
|
|
1473
|
+
export const zAwaitingConversation = z.object({
|
|
1474
|
+
conversationId: z.uuid(),
|
|
1475
|
+
contactId: z.coerce
|
|
1476
|
+
.bigint()
|
|
1477
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1478
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1479
|
+
})
|
|
1480
|
+
.max(BigInt('9223372036854775807'), {
|
|
1481
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1482
|
+
}),
|
|
1483
|
+
firstName: z.optional(z.string()),
|
|
1484
|
+
lastName: z.optional(z.string()),
|
|
1485
|
+
channelType: z.enum(['FACEBOOK', 'INSTAGRAM', 'WHATSAPP']),
|
|
1486
|
+
lastMessagePreview: z.string(),
|
|
1487
|
+
lastInboundAt: z.iso.datetime(),
|
|
1488
|
+
unreadCount: z
|
|
1489
|
+
.int()
|
|
1490
|
+
.min(-2147483648, {
|
|
1491
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1492
|
+
})
|
|
1493
|
+
.max(2147483647, {
|
|
1494
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1495
|
+
}),
|
|
1496
|
+
reachable: z.boolean(),
|
|
1497
|
+
});
|
|
1498
|
+
export const zInboxStats = z.object({
|
|
1499
|
+
openConversations: z.coerce
|
|
1500
|
+
.bigint()
|
|
1501
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1502
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1503
|
+
})
|
|
1504
|
+
.max(BigInt('9223372036854775807'), {
|
|
1505
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1506
|
+
}),
|
|
1507
|
+
unreadMessages: z.coerce
|
|
1508
|
+
.bigint()
|
|
1509
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1510
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1511
|
+
})
|
|
1512
|
+
.max(BigInt('9223372036854775807'), {
|
|
1513
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1514
|
+
}),
|
|
1515
|
+
newConversations: z.coerce
|
|
1516
|
+
.bigint()
|
|
1517
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1518
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1519
|
+
})
|
|
1520
|
+
.max(BigInt('9223372036854775807'), {
|
|
1521
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1522
|
+
}),
|
|
1523
|
+
awaitingReplyCount: z.coerce
|
|
1524
|
+
.bigint()
|
|
1525
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1526
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1527
|
+
})
|
|
1528
|
+
.max(BigInt('9223372036854775807'), {
|
|
1529
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1530
|
+
}),
|
|
1531
|
+
awaitingUnreachableCount: z.coerce
|
|
1532
|
+
.bigint()
|
|
1533
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1534
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1535
|
+
})
|
|
1536
|
+
.max(BigInt('9223372036854775807'), {
|
|
1537
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1538
|
+
}),
|
|
1539
|
+
awaitingReply: z.array(zAwaitingConversation),
|
|
1540
|
+
medianResponseSeconds: z.coerce
|
|
1541
|
+
.bigint()
|
|
1542
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1543
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1544
|
+
})
|
|
1545
|
+
.max(BigInt('9223372036854775807'), {
|
|
1546
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1547
|
+
}),
|
|
1548
|
+
inboundByChannel: z.array(zSlice),
|
|
1549
|
+
});
|
|
1550
|
+
export const zStatsEnvelopeInboxStats = z.object({
|
|
1551
|
+
period: z.string(),
|
|
1552
|
+
computedAt: z.iso.datetime(),
|
|
1553
|
+
data: zInboxStats,
|
|
1554
|
+
});
|
|
1555
|
+
export const zDealTypeBudget = z.object({
|
|
1556
|
+
listingType: z.optional(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'])),
|
|
1557
|
+
buckets: z.optional(z.array(zSlice)),
|
|
1558
|
+
});
|
|
1559
|
+
export const zDemandStats = z.object({
|
|
1560
|
+
activeInterests: z.optional(z.coerce
|
|
1561
|
+
.bigint()
|
|
1562
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1563
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1564
|
+
})
|
|
1565
|
+
.max(BigInt('9223372036854775807'), {
|
|
1566
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1567
|
+
})),
|
|
1568
|
+
byListingType: z.optional(z.array(zSlice)),
|
|
1569
|
+
byPropertyType: z.optional(z.array(zSlice)),
|
|
1570
|
+
budgetByDealType: z.optional(z.array(zDealTypeBudget)),
|
|
1571
|
+
topDistricts: z.optional(z.array(zLocationCount)),
|
|
1572
|
+
});
|
|
1573
|
+
export const zStatsEnvelopeDemandStats = z.object({
|
|
1574
|
+
period: z.string(),
|
|
1575
|
+
computedAt: z.iso.datetime(),
|
|
1576
|
+
data: zDemandStats,
|
|
1577
|
+
});
|
|
1578
|
+
export const zRoleResponse = z.object({
|
|
1579
|
+
id: z
|
|
1580
|
+
.int()
|
|
1581
|
+
.min(-2147483648, {
|
|
1582
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1583
|
+
})
|
|
1584
|
+
.max(2147483647, {
|
|
1585
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1586
|
+
}),
|
|
1587
|
+
name: z.string(),
|
|
1588
|
+
isSystem: z.optional(z.boolean()),
|
|
1589
|
+
isOwner: z.optional(z.boolean()),
|
|
1590
|
+
description: z.string(),
|
|
1591
|
+
permissions: z.array(z.enum([
|
|
1592
|
+
'MANAGE_AGENCY',
|
|
1593
|
+
'MANAGE_ROLE',
|
|
1594
|
+
'MANAGE_MEMBER',
|
|
1595
|
+
'CREATE_DELETE_MEMBER',
|
|
1596
|
+
'CREATE_CONTACT',
|
|
1597
|
+
'DELETE_CONTACT',
|
|
1598
|
+
'MANAGE_CONTACT',
|
|
1599
|
+
'MANAGE_ANY_CONTACT',
|
|
1600
|
+
'ASSIGN_CONTACT',
|
|
1601
|
+
'MANAGE_BOARD',
|
|
1602
|
+
'MANAGE_DEAL',
|
|
1603
|
+
'DELETE_DEAL',
|
|
1604
|
+
])),
|
|
1605
|
+
});
|
|
1606
|
+
export const zPagedModelRoleResponse = z.object({
|
|
1607
|
+
content: z.optional(z.array(zRoleResponse)),
|
|
1608
|
+
page: z.optional(zPageMetadata),
|
|
1073
1609
|
});
|
|
1074
1610
|
export const zAddressResponse = z.object({
|
|
1075
1611
|
region: zLocationResponse,
|
|
@@ -1286,10 +1822,13 @@ export const zPermissionResponse = z.object({
|
|
|
1286
1822
|
'MANAGE_CONTACT',
|
|
1287
1823
|
'MANAGE_ANY_CONTACT',
|
|
1288
1824
|
'ASSIGN_CONTACT',
|
|
1825
|
+
'MANAGE_BOARD',
|
|
1826
|
+
'MANAGE_DEAL',
|
|
1827
|
+
'DELETE_DEAL',
|
|
1289
1828
|
]),
|
|
1290
1829
|
});
|
|
1291
1830
|
export const zGroupedPermissionsResponse = z.object({
|
|
1292
|
-
group: z.enum(['AGENCY', 'ROLE', 'MEMBER', 'CONTACT']),
|
|
1831
|
+
group: z.enum(['AGENCY', 'ROLE', 'MEMBER', 'CONTACT', 'BOARD', 'DEAL']),
|
|
1293
1832
|
permissions: z.array(zPermissionResponse),
|
|
1294
1833
|
});
|
|
1295
1834
|
export const zListingContactResponseUuid = z.object({
|
|
@@ -1591,27 +2130,6 @@ export const zPropertyPageResponse = z.object({
|
|
|
1591
2130
|
updatedAt: z.iso.datetime(),
|
|
1592
2131
|
closeReason: z.optional(zPropertyCloseReasonResponse),
|
|
1593
2132
|
});
|
|
1594
|
-
export const zContactPersonalDetails = z.unknown();
|
|
1595
|
-
export const zContactPersonalDetailsRestricted = z.object({
|
|
1596
|
-
requires: z.optional(z.array(z.enum([
|
|
1597
|
-
'MANAGE_AGENCY',
|
|
1598
|
-
'MANAGE_ROLE',
|
|
1599
|
-
'MANAGE_MEMBER',
|
|
1600
|
-
'CREATE_DELETE_MEMBER',
|
|
1601
|
-
'CREATE_CONTACT',
|
|
1602
|
-
'DELETE_CONTACT',
|
|
1603
|
-
'MANAGE_CONTACT',
|
|
1604
|
-
'MANAGE_ANY_CONTACT',
|
|
1605
|
-
'ASSIGN_CONTACT',
|
|
1606
|
-
]))),
|
|
1607
|
-
status: z.enum(['RESTRICTED']),
|
|
1608
|
-
});
|
|
1609
|
-
export const zContactPersonalDetailsVisible = z.object({
|
|
1610
|
-
phoneNumber: z.optional(z.string()),
|
|
1611
|
-
fullName: z.optional(z.string()),
|
|
1612
|
-
email: z.optional(z.string()),
|
|
1613
|
-
status: z.enum(['VISIBLE']),
|
|
1614
|
-
});
|
|
1615
2133
|
export const zListingOwnerContactResponse = z.object({
|
|
1616
2134
|
contactId: z.coerce
|
|
1617
2135
|
.bigint()
|
|
@@ -1713,6 +2231,17 @@ export const zNewSeekerRating = z.object({
|
|
|
1713
2231
|
notePreview: z.optional(z.string()),
|
|
1714
2232
|
kind: z.enum(['NEW_SEEKER_RATING']),
|
|
1715
2233
|
});
|
|
2234
|
+
export const zTaskId = z.object({
|
|
2235
|
+
value: z.optional(z.uuid()),
|
|
2236
|
+
});
|
|
2237
|
+
export const zTaskCommented = z.object({
|
|
2238
|
+
commentId: z.optional(zCommentId),
|
|
2239
|
+
taskId: z.optional(zTaskId),
|
|
2240
|
+
authorId: z.optional(zMemberId),
|
|
2241
|
+
author: z.optional(z.string()),
|
|
2242
|
+
commentSnippet: z.optional(z.string()),
|
|
2243
|
+
kind: z.enum(['TASK_COMMENTED']),
|
|
2244
|
+
});
|
|
1716
2245
|
export const zNotificationView = z.object({
|
|
1717
2246
|
id: z.uuid(),
|
|
1718
2247
|
seq: z.coerce
|
|
@@ -1725,6 +2254,7 @@ export const zNotificationView = z.object({
|
|
|
1725
2254
|
}),
|
|
1726
2255
|
type: z.enum([
|
|
1727
2256
|
'AGENT_COMMENTED',
|
|
2257
|
+
'TASK_COMMENTED',
|
|
1728
2258
|
'EXTERNAL_LISTING_EXPIRED',
|
|
1729
2259
|
'LISTING_EXPIRED',
|
|
1730
2260
|
'NEW_SEEKER_RATING',
|
|
@@ -1738,6 +2268,7 @@ export const zNotificationView = z.object({
|
|
|
1738
2268
|
zListingExpired,
|
|
1739
2269
|
zNewMessage,
|
|
1740
2270
|
zNewSeekerRating,
|
|
2271
|
+
zTaskCommented,
|
|
1741
2272
|
]),
|
|
1742
2273
|
createdAt: z.iso.datetime(),
|
|
1743
2274
|
read: z.boolean(),
|
|
@@ -2205,31 +2736,8 @@ export const zCursorPageMessageView = z.object({
|
|
|
2205
2736
|
nextCursor: z.optional(z.string()),
|
|
2206
2737
|
hasNext: z.optional(z.boolean()),
|
|
2207
2738
|
});
|
|
2208
|
-
export const
|
|
2209
|
-
id: z.
|
|
2210
|
-
contactId: z.coerce
|
|
2211
|
-
.bigint()
|
|
2212
|
-
.min(BigInt('-9223372036854775808'), {
|
|
2213
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
2214
|
-
})
|
|
2215
|
-
.max(BigInt('9223372036854775807'), {
|
|
2216
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
2217
|
-
}),
|
|
2218
|
-
authorId: z.uuid(),
|
|
2219
|
-
authorFirstName: z.string(),
|
|
2220
|
-
authorLastName: z.string(),
|
|
2221
|
-
profilePictureUrl: z.optional(z.string()),
|
|
2222
|
-
body: z.string(),
|
|
2223
|
-
createdAt: z.iso.datetime(),
|
|
2224
|
-
editedAt: z.optional(z.iso.datetime()),
|
|
2225
|
-
});
|
|
2226
|
-
export const zCursorPageCommentView = z.object({
|
|
2227
|
-
items: z.optional(z.array(zCommentView)),
|
|
2228
|
-
nextCursor: z.optional(z.string()),
|
|
2229
|
-
hasNext: z.optional(z.boolean()),
|
|
2230
|
-
});
|
|
2231
|
-
export const zContactGridResponse = z.object({
|
|
2232
|
-
id: z.coerce
|
|
2739
|
+
export const zContactGridResponse = z.object({
|
|
2740
|
+
id: z.coerce
|
|
2233
2741
|
.bigint()
|
|
2234
2742
|
.min(BigInt('-9223372036854775808'), {
|
|
2235
2743
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -2240,17 +2748,6 @@ export const zContactGridResponse = z.object({
|
|
|
2240
2748
|
createdBy: z.optional(z.uuid()),
|
|
2241
2749
|
assignedTo: z.optional(zAssignedToResponse),
|
|
2242
2750
|
title: z.optional(z.string()),
|
|
2243
|
-
status: z.enum([
|
|
2244
|
-
'NEW',
|
|
2245
|
-
'ON_HOLD',
|
|
2246
|
-
'COLD',
|
|
2247
|
-
'WARM',
|
|
2248
|
-
'HOT',
|
|
2249
|
-
'WAITING_PAYMENT',
|
|
2250
|
-
'LOST',
|
|
2251
|
-
'WON',
|
|
2252
|
-
]),
|
|
2253
|
-
priority: z.optional(z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW'])),
|
|
2254
2751
|
personalDetails: z.union([
|
|
2255
2752
|
zContactPersonalDetailsRestricted,
|
|
2256
2753
|
zContactPersonalDetailsVisible,
|
|
@@ -2298,6 +2795,9 @@ export const zContactInfoRestricted = z.object({
|
|
|
2298
2795
|
'MANAGE_CONTACT',
|
|
2299
2796
|
'MANAGE_ANY_CONTACT',
|
|
2300
2797
|
'ASSIGN_CONTACT',
|
|
2798
|
+
'MANAGE_BOARD',
|
|
2799
|
+
'MANAGE_DEAL',
|
|
2800
|
+
'DELETE_DEAL',
|
|
2301
2801
|
]))),
|
|
2302
2802
|
status: z.enum(['RESTRICTED']),
|
|
2303
2803
|
});
|
|
@@ -2400,21 +2900,11 @@ export const zClient360Response = z.object({
|
|
|
2400
2900
|
communicationPreference: z.optional(zCommunicationPreferenceResponse),
|
|
2401
2901
|
isSearching: z.boolean(),
|
|
2402
2902
|
isListing: z.boolean(),
|
|
2403
|
-
priority: z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW']),
|
|
2404
|
-
status: z.enum([
|
|
2405
|
-
'NEW',
|
|
2406
|
-
'ON_HOLD',
|
|
2407
|
-
'COLD',
|
|
2408
|
-
'WARM',
|
|
2409
|
-
'HOT',
|
|
2410
|
-
'WAITING_PAYMENT',
|
|
2411
|
-
'LOST',
|
|
2412
|
-
'WON',
|
|
2413
|
-
]),
|
|
2414
2903
|
createdAt: z.iso.datetime(),
|
|
2415
2904
|
updatedAt: z.iso.datetime(),
|
|
2416
2905
|
interests: z.array(zContactInterestResponse),
|
|
2417
2906
|
properties: z.array(zContactPropertyResponse),
|
|
2907
|
+
tasks: z.array(zContactTaskResponse),
|
|
2418
2908
|
});
|
|
2419
2909
|
export const zAssignedAgent = z.object({
|
|
2420
2910
|
memberId: z.uuid(),
|
|
@@ -2432,7 +2922,6 @@ export const zDuplicateContactInfo = z.object({
|
|
|
2432
2922
|
.max(BigInt('9223372036854775807'), {
|
|
2433
2923
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
2434
2924
|
}),
|
|
2435
|
-
isActive: z.boolean(),
|
|
2436
2925
|
firstName: z.optional(z.string()),
|
|
2437
2926
|
lastName: z.optional(z.string()),
|
|
2438
2927
|
gender: z.optional(z.enum(['MALE', 'FEMALE', 'UNKNOWN'])),
|
|
@@ -2446,48 +2935,11 @@ export const zPhoneDuplicateCheckResponse = z.object({
|
|
|
2446
2935
|
policy: z.enum(['ALLOW', 'WARN', 'PREVENT']),
|
|
2447
2936
|
matches: z.array(zDuplicateContactInfo),
|
|
2448
2937
|
});
|
|
2449
|
-
export const
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
type: z.string(),
|
|
2455
|
-
});
|
|
2456
|
-
export const zInterestPreview = zPreview.and(z.object({
|
|
2457
|
-
interestId: z.coerce
|
|
2458
|
-
.bigint()
|
|
2459
|
-
.min(BigInt('-9223372036854775808'), {
|
|
2460
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
2461
|
-
})
|
|
2462
|
-
.max(BigInt('9223372036854775807'), {
|
|
2463
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
2464
|
-
}),
|
|
2465
|
-
listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
|
|
2466
|
-
propertyTypes: z.array(z.enum([
|
|
2467
|
-
'HOUSE',
|
|
2468
|
-
'TOWN_HOUSE',
|
|
2469
|
-
'COUNTRY_HOUSE',
|
|
2470
|
-
'VILLA',
|
|
2471
|
-
'COTTAGE',
|
|
2472
|
-
'APARTMENT',
|
|
2473
|
-
'DUPLEX',
|
|
2474
|
-
'TRIPLEX',
|
|
2475
|
-
'SEMI_BASEMENT',
|
|
2476
|
-
'ATTIC',
|
|
2477
|
-
'AGRICULTURAL_LAND',
|
|
2478
|
-
'RESIDENTIAL_LAND',
|
|
2479
|
-
'HOTEL_ROOM',
|
|
2480
|
-
'MOTEL_ROOM',
|
|
2481
|
-
'CO_LIVING_SPACE',
|
|
2482
|
-
'OFFICE',
|
|
2483
|
-
'COMMERCIAL_SPACE',
|
|
2484
|
-
'CO_WORKING_SPACE',
|
|
2485
|
-
'WAREHOUSE',
|
|
2486
|
-
'GARAGE',
|
|
2487
|
-
])),
|
|
2488
|
-
budget: z.optional(zRangeBigDecimal),
|
|
2489
|
-
primaryLocation: z.optional(zLocationResponse),
|
|
2490
|
-
recommendationCount: z
|
|
2938
|
+
export const zStageSummaryResponse = z.object({
|
|
2939
|
+
stageId: z.uuid(),
|
|
2940
|
+
name: z.string(),
|
|
2941
|
+
color: z.string(),
|
|
2942
|
+
position: z
|
|
2491
2943
|
.int()
|
|
2492
2944
|
.min(-2147483648, {
|
|
2493
2945
|
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
@@ -2495,109 +2947,52 @@ export const zInterestPreview = zPreview.and(z.object({
|
|
|
2495
2947
|
.max(2147483647, {
|
|
2496
2948
|
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
2497
2949
|
}),
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
'
|
|
2513
|
-
'VILLA',
|
|
2514
|
-
'COTTAGE',
|
|
2515
|
-
'APARTMENT',
|
|
2516
|
-
'DUPLEX',
|
|
2517
|
-
'TRIPLEX',
|
|
2518
|
-
'SEMI_BASEMENT',
|
|
2519
|
-
'ATTIC',
|
|
2520
|
-
'AGRICULTURAL_LAND',
|
|
2521
|
-
'RESIDENTIAL_LAND',
|
|
2522
|
-
'HOTEL_ROOM',
|
|
2523
|
-
'MOTEL_ROOM',
|
|
2524
|
-
'CO_LIVING_SPACE',
|
|
2525
|
-
'OFFICE',
|
|
2526
|
-
'COMMERCIAL_SPACE',
|
|
2527
|
-
'CO_WORKING_SPACE',
|
|
2528
|
-
'WAREHOUSE',
|
|
2529
|
-
'GARAGE',
|
|
2530
|
-
]),
|
|
2531
|
-
state: z.enum([
|
|
2532
|
-
'IN_REGISTRATION',
|
|
2533
|
-
'UNLISTED',
|
|
2534
|
-
'LISTED_INTERNALLY',
|
|
2535
|
-
'LISTED',
|
|
2536
|
-
'CLOSED',
|
|
2537
|
-
]),
|
|
2538
|
-
title: z.optional(z.string()),
|
|
2539
|
-
coverUrl: z.optional(z.string()),
|
|
2540
|
-
listingTypes: z.array(zListingTypePrice),
|
|
2541
|
-
type: z.literal('PROPERTY'),
|
|
2542
|
-
}));
|
|
2543
|
-
export const zCard = z.object({
|
|
2544
|
-
contactId: z.coerce
|
|
2545
|
-
.bigint()
|
|
2546
|
-
.min(BigInt('-9223372036854775808'), {
|
|
2547
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
2950
|
+
});
|
|
2951
|
+
export const zBoardSummaryResponse = z.object({
|
|
2952
|
+
boardId: z.uuid(),
|
|
2953
|
+
kind: z.optional(z.enum(['OWNER', 'SEEKER'])),
|
|
2954
|
+
name: z.string(),
|
|
2955
|
+
archived: z.boolean(),
|
|
2956
|
+
stages: z.array(zStageSummaryResponse),
|
|
2957
|
+
});
|
|
2958
|
+
export const zTodoTemplateResponse = z.object({
|
|
2959
|
+
templateId: z.uuid(),
|
|
2960
|
+
title: z.string(),
|
|
2961
|
+
position: z
|
|
2962
|
+
.int()
|
|
2963
|
+
.min(-2147483648, {
|
|
2964
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
2548
2965
|
})
|
|
2549
|
-
.max(
|
|
2550
|
-
error: 'Invalid value: Expected
|
|
2966
|
+
.max(2147483647, {
|
|
2967
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
2551
2968
|
}),
|
|
2552
|
-
personalDetails: z.union([
|
|
2553
|
-
zContactPersonalDetailsRestricted,
|
|
2554
|
-
zContactPersonalDetailsVisible,
|
|
2555
|
-
]),
|
|
2556
|
-
priority: z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW']),
|
|
2557
|
-
status: z.enum([
|
|
2558
|
-
'NEW',
|
|
2559
|
-
'ON_HOLD',
|
|
2560
|
-
'COLD',
|
|
2561
|
-
'WARM',
|
|
2562
|
-
'HOT',
|
|
2563
|
-
'WAITING_PAYMENT',
|
|
2564
|
-
'LOST',
|
|
2565
|
-
'WON',
|
|
2566
|
-
]),
|
|
2567
|
-
assignedTo: z.optional(zAssignedToResponse),
|
|
2568
|
-
totalCommission: z.number(),
|
|
2569
|
-
updatedAt: z.iso.datetime(),
|
|
2570
|
-
preview: z.optional(z.union([zInterestPreview, zPropertyPreview])),
|
|
2571
|
-
});
|
|
2572
|
-
export const zCursorPageCard = z.object({
|
|
2573
|
-
items: z.optional(z.array(zCard)),
|
|
2574
|
-
nextCursor: z.optional(z.string()),
|
|
2575
|
-
hasNext: z.optional(z.boolean()),
|
|
2576
2969
|
});
|
|
2577
|
-
export const
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
'
|
|
2585
|
-
'LOST',
|
|
2586
|
-
'WON',
|
|
2587
|
-
]),
|
|
2588
|
-
totalCommission: z.number(),
|
|
2589
|
-
totalContacts: z.coerce
|
|
2590
|
-
.bigint()
|
|
2591
|
-
.min(BigInt('-9223372036854775808'), {
|
|
2592
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
2970
|
+
export const zStageResponse = z.object({
|
|
2971
|
+
stageId: z.uuid(),
|
|
2972
|
+
name: z.string(),
|
|
2973
|
+
color: z.string(),
|
|
2974
|
+
position: z
|
|
2975
|
+
.int()
|
|
2976
|
+
.min(-2147483648, {
|
|
2977
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
2593
2978
|
})
|
|
2594
|
-
.max(
|
|
2595
|
-
error: 'Invalid value: Expected
|
|
2979
|
+
.max(2147483647, {
|
|
2980
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
2596
2981
|
}),
|
|
2597
|
-
|
|
2982
|
+
active: z.boolean(),
|
|
2983
|
+
todoTemplates: z.array(zTodoTemplateResponse),
|
|
2598
2984
|
});
|
|
2599
|
-
export const
|
|
2600
|
-
|
|
2985
|
+
export const zBoardResponse = z.object({
|
|
2986
|
+
boardId: z.uuid(),
|
|
2987
|
+
kind: z.optional(z.enum(['OWNER', 'SEEKER'])),
|
|
2988
|
+
name: z.string(),
|
|
2989
|
+
archived: z.boolean(),
|
|
2990
|
+
stages: z.array(zStageResponse),
|
|
2991
|
+
createdAt: z.iso.datetime(),
|
|
2992
|
+
});
|
|
2993
|
+
export const zTaskSettingsResponse = z.object({
|
|
2994
|
+
defaultBoardId: z.optional(z.uuid()),
|
|
2995
|
+
defaultStageId: z.optional(z.uuid()),
|
|
2601
2996
|
});
|
|
2602
2997
|
export const zAddressViewResponse = z.object({
|
|
2603
2998
|
country: z.string(),
|
|
@@ -2749,45 +3144,81 @@ export const zPutUserMeEmailRequestData = z.object({
|
|
|
2749
3144
|
path: z.optional(z.never()),
|
|
2750
3145
|
query: z.optional(z.never()),
|
|
2751
3146
|
});
|
|
2752
|
-
export const
|
|
3147
|
+
export const zDeleteTasksByTaskIdCommentsByCommentIdData = z.object({
|
|
2753
3148
|
body: z.optional(z.never()),
|
|
2754
3149
|
path: z.object({
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
3150
|
+
taskId: z.uuid(),
|
|
3151
|
+
commentId: z.uuid(),
|
|
3152
|
+
}),
|
|
3153
|
+
query: z.optional(z.never()),
|
|
3154
|
+
});
|
|
3155
|
+
export const zPutTasksByTaskIdCommentsByCommentIdData = z.object({
|
|
3156
|
+
body: zCommentBodyRequest,
|
|
3157
|
+
path: z.object({
|
|
3158
|
+
taskId: z.uuid(),
|
|
3159
|
+
commentId: z.uuid(),
|
|
3160
|
+
}),
|
|
3161
|
+
query: z.optional(z.never()),
|
|
3162
|
+
});
|
|
3163
|
+
export const zPutTaskByTaskIdWonData = z.object({
|
|
3164
|
+
body: z.optional(z.never()),
|
|
3165
|
+
path: z.object({
|
|
3166
|
+
taskId: z.uuid(),
|
|
2763
3167
|
}),
|
|
2764
3168
|
query: z.optional(z.never()),
|
|
2765
3169
|
});
|
|
2766
3170
|
/**
|
|
2767
3171
|
* No Content
|
|
2768
3172
|
*/
|
|
2769
|
-
export const
|
|
2770
|
-
export const
|
|
2771
|
-
body:
|
|
3173
|
+
export const zPutTaskByTaskIdWonResponse = z.void();
|
|
3174
|
+
export const zPutTaskByTaskIdValueData = z.object({
|
|
3175
|
+
body: zSetTaskValueRequest,
|
|
2772
3176
|
path: z.object({
|
|
2773
|
-
|
|
2774
|
-
.int()
|
|
2775
|
-
.min(-2147483648, {
|
|
2776
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
2777
|
-
})
|
|
2778
|
-
.max(2147483647, {
|
|
2779
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
2780
|
-
}),
|
|
3177
|
+
taskId: z.uuid(),
|
|
2781
3178
|
}),
|
|
2782
3179
|
query: z.optional(z.never()),
|
|
2783
3180
|
});
|
|
2784
3181
|
/**
|
|
2785
3182
|
* No Content
|
|
2786
3183
|
*/
|
|
2787
|
-
export const
|
|
2788
|
-
export const
|
|
2789
|
-
body:
|
|
3184
|
+
export const zPutTaskByTaskIdValueResponse = z.void();
|
|
3185
|
+
export const zPutTaskByTaskIdTransferData = z.object({
|
|
3186
|
+
body: zTransferTaskRequest,
|
|
3187
|
+
path: z.object({
|
|
3188
|
+
taskId: z.uuid(),
|
|
3189
|
+
}),
|
|
3190
|
+
query: z.optional(z.never()),
|
|
3191
|
+
});
|
|
3192
|
+
/**
|
|
3193
|
+
* No Content
|
|
3194
|
+
*/
|
|
3195
|
+
export const zPutTaskByTaskIdTransferResponse = z.void();
|
|
3196
|
+
export const zPutTaskByTaskIdReopenData = z.object({
|
|
3197
|
+
body: z.optional(z.never()),
|
|
3198
|
+
path: z.object({
|
|
3199
|
+
taskId: z.uuid(),
|
|
3200
|
+
}),
|
|
3201
|
+
query: z.optional(z.never()),
|
|
3202
|
+
});
|
|
3203
|
+
/**
|
|
3204
|
+
* No Content
|
|
3205
|
+
*/
|
|
3206
|
+
export const zPutTaskByTaskIdReopenResponse = z.void();
|
|
3207
|
+
export const zPutTaskByTaskIdRenameData = z.object({
|
|
3208
|
+
body: zRenameTaskRequest,
|
|
3209
|
+
path: z.object({
|
|
3210
|
+
taskId: z.uuid(),
|
|
3211
|
+
}),
|
|
3212
|
+
query: z.optional(z.never()),
|
|
3213
|
+
});
|
|
3214
|
+
/**
|
|
3215
|
+
* No Content
|
|
3216
|
+
*/
|
|
3217
|
+
export const zPutTaskByTaskIdRenameResponse = z.void();
|
|
3218
|
+
export const zPutTaskByTaskIdOwnerByMemberIdData = z.object({
|
|
3219
|
+
body: z.optional(z.never()),
|
|
2790
3220
|
path: z.object({
|
|
3221
|
+
taskId: z.uuid(),
|
|
2791
3222
|
memberId: z.uuid(),
|
|
2792
3223
|
}),
|
|
2793
3224
|
query: z.optional(z.never()),
|
|
@@ -2795,52 +3226,55 @@ export const zPutMemberByMemberIdRoleData = z.object({
|
|
|
2795
3226
|
/**
|
|
2796
3227
|
* No Content
|
|
2797
3228
|
*/
|
|
2798
|
-
export const
|
|
2799
|
-
export const
|
|
2800
|
-
body:
|
|
2801
|
-
path: z.
|
|
3229
|
+
export const zPutTaskByTaskIdOwnerByMemberIdResponse = z.void();
|
|
3230
|
+
export const zPutTaskByTaskIdMoveData = z.object({
|
|
3231
|
+
body: zMoveTaskRequest,
|
|
3232
|
+
path: z.object({
|
|
3233
|
+
taskId: z.uuid(),
|
|
3234
|
+
}),
|
|
2802
3235
|
query: z.optional(z.never()),
|
|
2803
3236
|
});
|
|
2804
3237
|
/**
|
|
2805
3238
|
* No Content
|
|
2806
3239
|
*/
|
|
2807
|
-
export const
|
|
2808
|
-
export const
|
|
2809
|
-
body:
|
|
3240
|
+
export const zPutTaskByTaskIdMoveResponse = z.void();
|
|
3241
|
+
export const zPutTaskByTaskIdLostData = z.object({
|
|
3242
|
+
body: zMarkTaskLostRequest,
|
|
2810
3243
|
path: z.object({
|
|
2811
|
-
|
|
3244
|
+
taskId: z.uuid(),
|
|
2812
3245
|
}),
|
|
2813
3246
|
query: z.optional(z.never()),
|
|
2814
3247
|
});
|
|
2815
3248
|
/**
|
|
2816
3249
|
* No Content
|
|
2817
3250
|
*/
|
|
2818
|
-
export const
|
|
2819
|
-
export const
|
|
2820
|
-
body:
|
|
3251
|
+
export const zPutTaskByTaskIdLostResponse = z.void();
|
|
3252
|
+
export const zPutTaskByTaskIdExpectedCloseDateData = z.object({
|
|
3253
|
+
body: zSetExpectedCloseDateRequest,
|
|
2821
3254
|
path: z.object({
|
|
2822
|
-
|
|
3255
|
+
taskId: z.uuid(),
|
|
2823
3256
|
}),
|
|
2824
3257
|
query: z.optional(z.never()),
|
|
2825
3258
|
});
|
|
2826
3259
|
/**
|
|
2827
3260
|
* No Content
|
|
2828
3261
|
*/
|
|
2829
|
-
export const
|
|
2830
|
-
export const
|
|
2831
|
-
body:
|
|
3262
|
+
export const zPutTaskByTaskIdExpectedCloseDateResponse = z.void();
|
|
3263
|
+
export const zPutTaskByTaskIdDescriptionData = z.object({
|
|
3264
|
+
body: zDescribeTaskRequest,
|
|
2832
3265
|
path: z.object({
|
|
2833
|
-
|
|
3266
|
+
taskId: z.uuid(),
|
|
2834
3267
|
}),
|
|
2835
3268
|
query: z.optional(z.never()),
|
|
2836
3269
|
});
|
|
2837
3270
|
/**
|
|
2838
3271
|
* No Content
|
|
2839
3272
|
*/
|
|
2840
|
-
export const
|
|
2841
|
-
export const
|
|
2842
|
-
body:
|
|
3273
|
+
export const zPutTaskByTaskIdDescriptionResponse = z.void();
|
|
3274
|
+
export const zPutTaskByTaskIdContactByContactIdPrimaryData = z.object({
|
|
3275
|
+
body: z.optional(z.never()),
|
|
2843
3276
|
path: z.object({
|
|
3277
|
+
taskId: z.uuid(),
|
|
2844
3278
|
contactId: z.coerce
|
|
2845
3279
|
.bigint()
|
|
2846
3280
|
.min(BigInt('-9223372036854775808'), {
|
|
@@ -2849,42 +3283,193 @@ export const zPutContactsByContactIdPropertiesByPropertyIdListingsByListingIdPri
|
|
|
2849
3283
|
.max(BigInt('9223372036854775807'), {
|
|
2850
3284
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
2851
3285
|
}),
|
|
2852
|
-
propertyId: z.coerce
|
|
2853
|
-
.bigint()
|
|
2854
|
-
.min(BigInt('-9223372036854775808'), {
|
|
2855
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
2856
|
-
})
|
|
2857
|
-
.max(BigInt('9223372036854775807'), {
|
|
2858
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
2859
|
-
}),
|
|
2860
|
-
listingId: z.coerce
|
|
2861
|
-
.bigint()
|
|
2862
|
-
.min(BigInt('-9223372036854775808'), {
|
|
2863
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
2864
|
-
})
|
|
2865
|
-
.max(BigInt('9223372036854775807'), {
|
|
2866
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
2867
|
-
}),
|
|
2868
3286
|
}),
|
|
2869
3287
|
query: z.optional(z.never()),
|
|
2870
3288
|
});
|
|
2871
3289
|
/**
|
|
2872
3290
|
* No Content
|
|
2873
3291
|
*/
|
|
2874
|
-
export const
|
|
2875
|
-
export const
|
|
2876
|
-
body:
|
|
3292
|
+
export const zPutTaskByTaskIdContactByContactIdPrimaryResponse = z.void();
|
|
3293
|
+
export const zPutTaskByTaskIdCommissionData = z.object({
|
|
3294
|
+
body: zSetTaskCommissionRequest,
|
|
2877
3295
|
path: z.object({
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
3296
|
+
taskId: z.uuid(),
|
|
3297
|
+
}),
|
|
3298
|
+
query: z.optional(z.never()),
|
|
3299
|
+
});
|
|
3300
|
+
/**
|
|
3301
|
+
* No Content
|
|
3302
|
+
*/
|
|
3303
|
+
export const zPutTaskByTaskIdCommissionResponse = z.void();
|
|
3304
|
+
export const zPutTaskTodoByTodoIdReopenData = z.object({
|
|
3305
|
+
body: z.optional(z.never()),
|
|
3306
|
+
path: z.object({
|
|
3307
|
+
todoId: z.uuid(),
|
|
3308
|
+
}),
|
|
3309
|
+
query: z.optional(z.never()),
|
|
3310
|
+
});
|
|
3311
|
+
/**
|
|
3312
|
+
* No Content
|
|
3313
|
+
*/
|
|
3314
|
+
export const zPutTaskTodoByTodoIdReopenResponse = z.void();
|
|
3315
|
+
export const zPutTaskTodoByTodoIdRenameData = z.object({
|
|
3316
|
+
body: zRenameTodoRequest,
|
|
3317
|
+
path: z.object({
|
|
3318
|
+
todoId: z.uuid(),
|
|
3319
|
+
}),
|
|
3320
|
+
query: z.optional(z.never()),
|
|
3321
|
+
});
|
|
3322
|
+
/**
|
|
3323
|
+
* No Content
|
|
3324
|
+
*/
|
|
3325
|
+
export const zPutTaskTodoByTodoIdRenameResponse = z.void();
|
|
3326
|
+
export const zPutTaskTodoByTodoIdCompleteData = z.object({
|
|
3327
|
+
body: z.optional(z.never()),
|
|
3328
|
+
path: z.object({
|
|
3329
|
+
todoId: z.uuid(),
|
|
3330
|
+
}),
|
|
3331
|
+
query: z.optional(z.never()),
|
|
3332
|
+
});
|
|
3333
|
+
/**
|
|
3334
|
+
* No Content
|
|
3335
|
+
*/
|
|
3336
|
+
export const zPutTaskTodoByTodoIdCompleteResponse = z.void();
|
|
3337
|
+
export const zDeleteRolesByRoleIdData = z.object({
|
|
3338
|
+
body: z.optional(z.never()),
|
|
3339
|
+
path: z.object({
|
|
3340
|
+
roleId: z
|
|
3341
|
+
.int()
|
|
3342
|
+
.min(-2147483648, {
|
|
3343
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
3344
|
+
})
|
|
3345
|
+
.max(2147483647, {
|
|
3346
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
3347
|
+
}),
|
|
3348
|
+
}),
|
|
3349
|
+
query: z.optional(z.never()),
|
|
3350
|
+
});
|
|
3351
|
+
/**
|
|
3352
|
+
* No Content
|
|
3353
|
+
*/
|
|
3354
|
+
export const zDeleteRolesByRoleIdResponse = z.void();
|
|
3355
|
+
export const zPutRolesByRoleIdData = z.object({
|
|
3356
|
+
body: zRolesRequest,
|
|
3357
|
+
path: z.object({
|
|
3358
|
+
roleId: z
|
|
3359
|
+
.int()
|
|
3360
|
+
.min(-2147483648, {
|
|
3361
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
3362
|
+
})
|
|
3363
|
+
.max(2147483647, {
|
|
3364
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
3365
|
+
}),
|
|
3366
|
+
}),
|
|
3367
|
+
query: z.optional(z.never()),
|
|
3368
|
+
});
|
|
3369
|
+
/**
|
|
3370
|
+
* No Content
|
|
3371
|
+
*/
|
|
3372
|
+
export const zPutRolesByRoleIdResponse = z.void();
|
|
3373
|
+
export const zPutMemberByMemberIdRoleData = z.object({
|
|
3374
|
+
body: zAssignRoleRequest,
|
|
3375
|
+
path: z.object({
|
|
3376
|
+
memberId: z.uuid(),
|
|
3377
|
+
}),
|
|
3378
|
+
query: z.optional(z.never()),
|
|
3379
|
+
});
|
|
3380
|
+
/**
|
|
3381
|
+
* No Content
|
|
3382
|
+
*/
|
|
3383
|
+
export const zPutMemberByMemberIdRoleResponse = z.void();
|
|
3384
|
+
export const zPutMemberRoleData = z.object({
|
|
3385
|
+
body: zBatchAssignRoleRequest,
|
|
3386
|
+
path: z.optional(z.never()),
|
|
3387
|
+
query: z.optional(z.never()),
|
|
3388
|
+
});
|
|
3389
|
+
/**
|
|
3390
|
+
* No Content
|
|
3391
|
+
*/
|
|
3392
|
+
export const zPutMemberRoleResponse = z.void();
|
|
3393
|
+
export const zPutMeetingsByMeetingIdData = z.object({
|
|
3394
|
+
body: zUpdateMeetingRequest,
|
|
3395
|
+
path: z.object({
|
|
3396
|
+
meetingId: z.uuid(),
|
|
3397
|
+
}),
|
|
3398
|
+
query: z.optional(z.never()),
|
|
3399
|
+
});
|
|
3400
|
+
/**
|
|
3401
|
+
* No Content
|
|
3402
|
+
*/
|
|
3403
|
+
export const zPutMeetingsByMeetingIdResponse = z.void();
|
|
3404
|
+
export const zPutMeetingsByMeetingIdRescheduleData = z.object({
|
|
3405
|
+
body: zRescheduleRequest,
|
|
3406
|
+
path: z.object({
|
|
3407
|
+
meetingId: z.uuid(),
|
|
3408
|
+
}),
|
|
3409
|
+
query: z.optional(z.never()),
|
|
3410
|
+
});
|
|
3411
|
+
/**
|
|
3412
|
+
* No Content
|
|
3413
|
+
*/
|
|
3414
|
+
export const zPutMeetingsByMeetingIdRescheduleResponse = z.void();
|
|
3415
|
+
export const zPutMeetingsByMeetingIdCancelData = z.object({
|
|
3416
|
+
body: z.optional(z.never()),
|
|
3417
|
+
path: z.object({
|
|
3418
|
+
meetingId: z.uuid(),
|
|
3419
|
+
}),
|
|
3420
|
+
query: z.optional(z.never()),
|
|
3421
|
+
});
|
|
3422
|
+
/**
|
|
3423
|
+
* No Content
|
|
3424
|
+
*/
|
|
3425
|
+
export const zPutMeetingsByMeetingIdCancelResponse = z.void();
|
|
3426
|
+
export const zPutContactsByContactIdPropertiesByPropertyIdListingsByListingIdPriceData = z.object({
|
|
3427
|
+
body: zUpdateListingPriceRequest,
|
|
3428
|
+
path: z.object({
|
|
3429
|
+
contactId: z.coerce
|
|
3430
|
+
.bigint()
|
|
3431
|
+
.min(BigInt('-9223372036854775808'), {
|
|
3432
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
3433
|
+
})
|
|
3434
|
+
.max(BigInt('9223372036854775807'), {
|
|
3435
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
3436
|
+
}),
|
|
3437
|
+
propertyId: z.coerce
|
|
3438
|
+
.bigint()
|
|
3439
|
+
.min(BigInt('-9223372036854775808'), {
|
|
3440
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
3441
|
+
})
|
|
3442
|
+
.max(BigInt('9223372036854775807'), {
|
|
3443
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
3444
|
+
}),
|
|
3445
|
+
listingId: z.coerce
|
|
3446
|
+
.bigint()
|
|
3447
|
+
.min(BigInt('-9223372036854775808'), {
|
|
3448
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
3449
|
+
})
|
|
3450
|
+
.max(BigInt('9223372036854775807'), {
|
|
3451
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
3452
|
+
}),
|
|
3453
|
+
}),
|
|
3454
|
+
query: z.optional(z.never()),
|
|
3455
|
+
});
|
|
3456
|
+
/**
|
|
3457
|
+
* No Content
|
|
3458
|
+
*/
|
|
3459
|
+
export const zPutContactsByContactIdPropertiesByPropertyIdListingsByListingIdPriceResponse = z.void();
|
|
3460
|
+
export const zPutContactsByContactIdPropertiesByPropertyIdAgreementData = z.object({
|
|
3461
|
+
body: zAgreementRequest,
|
|
3462
|
+
path: z.object({
|
|
3463
|
+
contactId: z.coerce
|
|
3464
|
+
.bigint()
|
|
3465
|
+
.min(BigInt('-9223372036854775808'), {
|
|
3466
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
3467
|
+
})
|
|
3468
|
+
.max(BigInt('9223372036854775807'), {
|
|
3469
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
3470
|
+
}),
|
|
3471
|
+
propertyId: z.coerce
|
|
3472
|
+
.bigint()
|
|
2888
3473
|
.min(BigInt('-9223372036854775808'), {
|
|
2889
3474
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
2890
3475
|
})
|
|
@@ -3226,8 +3811,8 @@ export const zPutContactByContactIdUpdateContactDetailsData = z.object({
|
|
|
3226
3811
|
* No Content
|
|
3227
3812
|
*/
|
|
3228
3813
|
export const zPutContactByContactIdUpdateContactDetailsResponse = z.void();
|
|
3229
|
-
export const
|
|
3230
|
-
body:
|
|
3814
|
+
export const zPutContactByContactIdAssignmentData = z.object({
|
|
3815
|
+
body: zReassignMemberRequest,
|
|
3231
3816
|
path: z.object({
|
|
3232
3817
|
contactId: z.coerce
|
|
3233
3818
|
.bigint()
|
|
@@ -3243,143 +3828,206 @@ export const zPutContactByContactIdReopenData = z.object({
|
|
|
3243
3828
|
/**
|
|
3244
3829
|
* No Content
|
|
3245
3830
|
*/
|
|
3246
|
-
export const
|
|
3247
|
-
export const
|
|
3248
|
-
body:
|
|
3249
|
-
path: z.
|
|
3250
|
-
contactId: z.coerce
|
|
3251
|
-
.bigint()
|
|
3252
|
-
.min(BigInt('-9223372036854775808'), {
|
|
3253
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
3254
|
-
})
|
|
3255
|
-
.max(BigInt('9223372036854775807'), {
|
|
3256
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
3257
|
-
}),
|
|
3258
|
-
}),
|
|
3831
|
+
export const zPutContactByContactIdAssignmentResponse = z.void();
|
|
3832
|
+
export const zPutContactMergeData = z.object({
|
|
3833
|
+
body: zContactMergeRequest,
|
|
3834
|
+
path: z.optional(z.never()),
|
|
3259
3835
|
query: z.optional(z.never()),
|
|
3260
3836
|
});
|
|
3261
3837
|
/**
|
|
3262
3838
|
* No Content
|
|
3263
3839
|
*/
|
|
3264
|
-
export const
|
|
3265
|
-
export const
|
|
3840
|
+
export const zPutContactMergeResponse = z.void();
|
|
3841
|
+
export const zPutBoardByBoardIdUnarchiveData = z.object({
|
|
3266
3842
|
body: z.optional(z.never()),
|
|
3267
3843
|
path: z.object({
|
|
3268
|
-
|
|
3269
|
-
.bigint()
|
|
3270
|
-
.min(BigInt('-9223372036854775808'), {
|
|
3271
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
3272
|
-
})
|
|
3273
|
-
.max(BigInt('9223372036854775807'), {
|
|
3274
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
3275
|
-
}),
|
|
3844
|
+
boardId: z.uuid(),
|
|
3276
3845
|
}),
|
|
3277
3846
|
query: z.optional(z.never()),
|
|
3278
3847
|
});
|
|
3279
3848
|
/**
|
|
3280
3849
|
* No Content
|
|
3281
3850
|
*/
|
|
3282
|
-
export const
|
|
3283
|
-
export const
|
|
3284
|
-
body:
|
|
3851
|
+
export const zPutBoardByBoardIdUnarchiveResponse = z.void();
|
|
3852
|
+
export const zPutBoardByBoardIdStageByStageIdTemplateByTemplateIdRenameData = z.object({
|
|
3853
|
+
body: zRenameRequest,
|
|
3285
3854
|
path: z.object({
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
3290
|
-
})
|
|
3291
|
-
.max(BigInt('9223372036854775807'), {
|
|
3292
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
3293
|
-
}),
|
|
3855
|
+
boardId: z.uuid(),
|
|
3856
|
+
stageId: z.uuid(),
|
|
3857
|
+
templateId: z.uuid(),
|
|
3294
3858
|
}),
|
|
3295
3859
|
query: z.optional(z.never()),
|
|
3296
3860
|
});
|
|
3297
3861
|
/**
|
|
3298
3862
|
* No Content
|
|
3299
3863
|
*/
|
|
3300
|
-
export const
|
|
3301
|
-
export const
|
|
3302
|
-
body:
|
|
3864
|
+
export const zPutBoardByBoardIdStageByStageIdTemplateByTemplateIdRenameResponse = z.void();
|
|
3865
|
+
export const zPutBoardByBoardIdStageByStageIdTemplateOrderData = z.object({
|
|
3866
|
+
body: zReorderTodoTemplatesRequest,
|
|
3303
3867
|
path: z.object({
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
.min(BigInt('-9223372036854775808'), {
|
|
3307
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
3308
|
-
})
|
|
3309
|
-
.max(BigInt('9223372036854775807'), {
|
|
3310
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
3311
|
-
}),
|
|
3868
|
+
boardId: z.uuid(),
|
|
3869
|
+
stageId: z.uuid(),
|
|
3312
3870
|
}),
|
|
3313
3871
|
query: z.optional(z.never()),
|
|
3314
3872
|
});
|
|
3315
3873
|
/**
|
|
3316
3874
|
* No Content
|
|
3317
3875
|
*/
|
|
3318
|
-
export const
|
|
3319
|
-
export const
|
|
3320
|
-
body:
|
|
3321
|
-
path: z.
|
|
3876
|
+
export const zPutBoardByBoardIdStageByStageIdTemplateOrderResponse = z.void();
|
|
3877
|
+
export const zPutBoardByBoardIdStageByStageIdRenameData = z.object({
|
|
3878
|
+
body: zRenameRequest,
|
|
3879
|
+
path: z.object({
|
|
3880
|
+
boardId: z.uuid(),
|
|
3881
|
+
stageId: z.uuid(),
|
|
3882
|
+
}),
|
|
3322
3883
|
query: z.optional(z.never()),
|
|
3323
3884
|
});
|
|
3324
3885
|
/**
|
|
3325
3886
|
* No Content
|
|
3326
3887
|
*/
|
|
3327
|
-
export const
|
|
3328
|
-
export const
|
|
3329
|
-
body:
|
|
3888
|
+
export const zPutBoardByBoardIdStageByStageIdRenameResponse = z.void();
|
|
3889
|
+
export const zPutBoardByBoardIdStageByStageIdRecolorData = z.object({
|
|
3890
|
+
body: zRecolorStageRequest,
|
|
3330
3891
|
path: z.object({
|
|
3331
|
-
|
|
3892
|
+
boardId: z.uuid(),
|
|
3893
|
+
stageId: z.uuid(),
|
|
3332
3894
|
}),
|
|
3333
3895
|
query: z.optional(z.never()),
|
|
3334
3896
|
});
|
|
3335
3897
|
/**
|
|
3336
3898
|
* No Content
|
|
3337
3899
|
*/
|
|
3338
|
-
export const
|
|
3339
|
-
export const
|
|
3900
|
+
export const zPutBoardByBoardIdStageByStageIdRecolorResponse = z.void();
|
|
3901
|
+
export const zPutBoardByBoardIdStageByStageIdReactivateData = z.object({
|
|
3340
3902
|
body: z.optional(z.never()),
|
|
3341
3903
|
path: z.object({
|
|
3342
|
-
|
|
3904
|
+
boardId: z.uuid(),
|
|
3905
|
+
stageId: z.uuid(),
|
|
3343
3906
|
}),
|
|
3344
3907
|
query: z.optional(z.never()),
|
|
3345
3908
|
});
|
|
3346
3909
|
/**
|
|
3347
3910
|
* No Content
|
|
3348
3911
|
*/
|
|
3349
|
-
export const
|
|
3350
|
-
export const
|
|
3351
|
-
body:
|
|
3352
|
-
path: z.
|
|
3912
|
+
export const zPutBoardByBoardIdStageByStageIdReactivateResponse = z.void();
|
|
3913
|
+
export const zPutBoardByBoardIdStageByStageIdDeactivateData = z.object({
|
|
3914
|
+
body: z.optional(zDeactivateStageRequest),
|
|
3915
|
+
path: z.object({
|
|
3916
|
+
boardId: z.uuid(),
|
|
3917
|
+
stageId: z.uuid(),
|
|
3918
|
+
}),
|
|
3353
3919
|
query: z.optional(z.never()),
|
|
3354
3920
|
});
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3921
|
+
/**
|
|
3922
|
+
* No Content
|
|
3923
|
+
*/
|
|
3924
|
+
export const zPutBoardByBoardIdStageByStageIdDeactivateResponse = z.void();
|
|
3925
|
+
export const zPutBoardByBoardIdStageOrderData = z.object({
|
|
3926
|
+
body: zReorderStagesRequest,
|
|
3927
|
+
path: z.object({
|
|
3928
|
+
boardId: z.uuid(),
|
|
3929
|
+
}),
|
|
3358
3930
|
query: z.optional(z.never()),
|
|
3359
3931
|
});
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3932
|
+
/**
|
|
3933
|
+
* No Content
|
|
3934
|
+
*/
|
|
3935
|
+
export const zPutBoardByBoardIdStageOrderResponse = z.void();
|
|
3936
|
+
export const zPutBoardByBoardIdRenameData = z.object({
|
|
3937
|
+
body: zRenameRequest,
|
|
3938
|
+
path: z.object({
|
|
3939
|
+
boardId: z.uuid(),
|
|
3940
|
+
}),
|
|
3363
3941
|
query: z.optional(z.never()),
|
|
3364
3942
|
});
|
|
3365
|
-
|
|
3943
|
+
/**
|
|
3944
|
+
* No Content
|
|
3945
|
+
*/
|
|
3946
|
+
export const zPutBoardByBoardIdRenameResponse = z.void();
|
|
3947
|
+
export const zPutBoardByBoardIdArchiveData = z.object({
|
|
3366
3948
|
body: z.optional(z.never()),
|
|
3367
|
-
path: z.
|
|
3949
|
+
path: z.object({
|
|
3950
|
+
boardId: z.uuid(),
|
|
3951
|
+
}),
|
|
3368
3952
|
query: z.optional(z.never()),
|
|
3369
3953
|
});
|
|
3370
3954
|
/**
|
|
3371
3955
|
* No Content
|
|
3372
3956
|
*/
|
|
3373
|
-
export const
|
|
3374
|
-
export const
|
|
3375
|
-
body:
|
|
3957
|
+
export const zPutBoardByBoardIdArchiveResponse = z.void();
|
|
3958
|
+
export const zGetBoardSettingsData = z.object({
|
|
3959
|
+
body: z.optional(z.never()),
|
|
3376
3960
|
path: z.optional(z.never()),
|
|
3377
3961
|
query: z.optional(z.never()),
|
|
3378
3962
|
});
|
|
3379
3963
|
/**
|
|
3380
3964
|
* OK
|
|
3381
3965
|
*/
|
|
3382
|
-
export const
|
|
3966
|
+
export const zGetBoardSettingsResponse = zTaskSettingsResponse;
|
|
3967
|
+
export const zPutBoardSettingsData = z.object({
|
|
3968
|
+
body: zSetTaskSettingsRequest,
|
|
3969
|
+
path: z.optional(z.never()),
|
|
3970
|
+
query: z.optional(z.never()),
|
|
3971
|
+
});
|
|
3972
|
+
/**
|
|
3973
|
+
* No Content
|
|
3974
|
+
*/
|
|
3975
|
+
export const zPutBoardSettingsResponse = z.void();
|
|
3976
|
+
export const zPutAgencyByAgencyIdDetailsData = z.object({
|
|
3977
|
+
body: zCreateAgencyRequest,
|
|
3978
|
+
path: z.object({
|
|
3979
|
+
agencyId: z.uuid(),
|
|
3980
|
+
}),
|
|
3981
|
+
query: z.optional(z.never()),
|
|
3982
|
+
});
|
|
3983
|
+
/**
|
|
3984
|
+
* No Content
|
|
3985
|
+
*/
|
|
3986
|
+
export const zPutAgencyByAgencyIdDetailsResponse = z.void();
|
|
3987
|
+
export const zPutAgencyByAgencyIdActivateData = z.object({
|
|
3988
|
+
body: z.optional(z.never()),
|
|
3989
|
+
path: z.object({
|
|
3990
|
+
agencyId: z.uuid(),
|
|
3991
|
+
}),
|
|
3992
|
+
query: z.optional(z.never()),
|
|
3993
|
+
});
|
|
3994
|
+
/**
|
|
3995
|
+
* No Content
|
|
3996
|
+
*/
|
|
3997
|
+
export const zPutAgencyByAgencyIdActivateResponse = z.void();
|
|
3998
|
+
export const zPutAgencySettingsInfoData = z.object({
|
|
3999
|
+
body: zUpdateAgencyInfoRequest,
|
|
4000
|
+
path: z.optional(z.never()),
|
|
4001
|
+
query: z.optional(z.never()),
|
|
4002
|
+
});
|
|
4003
|
+
export const zPutAgencySettingsDuplicatePhonePolicyData = z.object({
|
|
4004
|
+
body: z.enum(['ALLOW', 'WARN', 'PREVENT']),
|
|
4005
|
+
path: z.optional(z.never()),
|
|
4006
|
+
query: z.optional(z.never()),
|
|
4007
|
+
});
|
|
4008
|
+
export const zPutAgencySettingsContactAssignPolicyData = z.object({
|
|
4009
|
+
body: z.enum(['MANUAL', 'ROUND_ROBIN', 'SMART']),
|
|
4010
|
+
path: z.optional(z.never()),
|
|
4011
|
+
query: z.optional(z.never()),
|
|
4012
|
+
});
|
|
4013
|
+
export const zPostWhitelabelData = z.object({
|
|
4014
|
+
body: z.optional(z.never()),
|
|
4015
|
+
path: z.optional(z.never()),
|
|
4016
|
+
query: z.optional(z.never()),
|
|
4017
|
+
});
|
|
4018
|
+
/**
|
|
4019
|
+
* No Content
|
|
4020
|
+
*/
|
|
4021
|
+
export const zPostWhitelabelResponse = z.void();
|
|
4022
|
+
export const zPostWhitelabelPresignedUrlsData = z.object({
|
|
4023
|
+
body: zPhotoRequest,
|
|
4024
|
+
path: z.optional(z.never()),
|
|
4025
|
+
query: z.optional(z.never()),
|
|
4026
|
+
});
|
|
4027
|
+
/**
|
|
4028
|
+
* OK
|
|
4029
|
+
*/
|
|
4030
|
+
export const zPostWhitelabelPresignedUrlsResponse = zPresignedUrlsResponse;
|
|
3383
4031
|
export const zPostWhitelabelPresignedUrlsNotifyLogoData = z.object({
|
|
3384
4032
|
body: zPhotoRequest,
|
|
3385
4033
|
path: z.optional(z.never()),
|
|
@@ -3434,6 +4082,152 @@ export const zPostWalletDepositData = z.object({
|
|
|
3434
4082
|
* No Content
|
|
3435
4083
|
*/
|
|
3436
4084
|
export const zPostWalletDepositResponse = z.void();
|
|
4085
|
+
export const zPostTelegramConnectLinkData = z.object({
|
|
4086
|
+
body: z.optional(z.never()),
|
|
4087
|
+
path: z.optional(z.never()),
|
|
4088
|
+
query: z.optional(z.never()),
|
|
4089
|
+
});
|
|
4090
|
+
/**
|
|
4091
|
+
* OK
|
|
4092
|
+
*/
|
|
4093
|
+
export const zPostTelegramConnectLinkResponse = zConnectLinkResponse;
|
|
4094
|
+
export const zGetTasksByTaskIdCommentsData = z.object({
|
|
4095
|
+
body: z.optional(z.never()),
|
|
4096
|
+
path: z.object({
|
|
4097
|
+
taskId: z.uuid(),
|
|
4098
|
+
}),
|
|
4099
|
+
query: z.optional(z.object({
|
|
4100
|
+
onlyMine: z.optional(z.boolean()),
|
|
4101
|
+
cursor: z.optional(z.string()),
|
|
4102
|
+
limit: z
|
|
4103
|
+
.optional(z
|
|
4104
|
+
.int()
|
|
4105
|
+
.min(-2147483648, {
|
|
4106
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
4107
|
+
})
|
|
4108
|
+
.max(2147483647, {
|
|
4109
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
4110
|
+
}))
|
|
4111
|
+
.default(10),
|
|
4112
|
+
})),
|
|
4113
|
+
});
|
|
4114
|
+
/**
|
|
4115
|
+
* OK
|
|
4116
|
+
*/
|
|
4117
|
+
export const zGetTasksByTaskIdCommentsResponse = zCursorPageCommentView;
|
|
4118
|
+
export const zPostTasksByTaskIdCommentsData = z.object({
|
|
4119
|
+
body: zCommentBodyRequest,
|
|
4120
|
+
path: z.object({
|
|
4121
|
+
taskId: z.uuid(),
|
|
4122
|
+
}),
|
|
4123
|
+
query: z.optional(z.never()),
|
|
4124
|
+
});
|
|
4125
|
+
/**
|
|
4126
|
+
* OK
|
|
4127
|
+
*/
|
|
4128
|
+
export const zPostTasksByTaskIdCommentsResponse = zIdResponseUuid;
|
|
4129
|
+
export const zPostTaskData = z.object({
|
|
4130
|
+
body: zOpenTaskRequest,
|
|
4131
|
+
path: z.optional(z.never()),
|
|
4132
|
+
query: z.optional(z.never()),
|
|
4133
|
+
});
|
|
4134
|
+
/**
|
|
4135
|
+
* Created
|
|
4136
|
+
*/
|
|
4137
|
+
export const zPostTaskResponse = zIdResponseUuid;
|
|
4138
|
+
export const zPostTaskByTaskIdPropertyData = z.object({
|
|
4139
|
+
body: zLinkPropertyRequest,
|
|
4140
|
+
path: z.object({
|
|
4141
|
+
taskId: z.uuid(),
|
|
4142
|
+
}),
|
|
4143
|
+
query: z.optional(z.never()),
|
|
4144
|
+
});
|
|
4145
|
+
/**
|
|
4146
|
+
* No Content
|
|
4147
|
+
*/
|
|
4148
|
+
export const zPostTaskByTaskIdPropertyResponse = z.void();
|
|
4149
|
+
export const zDeleteTaskByTaskIdParticipantByMemberIdData = z.object({
|
|
4150
|
+
body: z.optional(z.never()),
|
|
4151
|
+
path: z.object({
|
|
4152
|
+
taskId: z.uuid(),
|
|
4153
|
+
memberId: z.uuid(),
|
|
4154
|
+
}),
|
|
4155
|
+
query: z.optional(z.never()),
|
|
4156
|
+
});
|
|
4157
|
+
/**
|
|
4158
|
+
* No Content
|
|
4159
|
+
*/
|
|
4160
|
+
export const zDeleteTaskByTaskIdParticipantByMemberIdResponse = z.void();
|
|
4161
|
+
export const zPostTaskByTaskIdParticipantByMemberIdData = z.object({
|
|
4162
|
+
body: z.optional(z.never()),
|
|
4163
|
+
path: z.object({
|
|
4164
|
+
taskId: z.uuid(),
|
|
4165
|
+
memberId: z.uuid(),
|
|
4166
|
+
}),
|
|
4167
|
+
query: z.optional(z.never()),
|
|
4168
|
+
});
|
|
4169
|
+
/**
|
|
4170
|
+
* No Content
|
|
4171
|
+
*/
|
|
4172
|
+
export const zPostTaskByTaskIdParticipantByMemberIdResponse = z.void();
|
|
4173
|
+
export const zPostTaskByTaskIdInterestData = z.object({
|
|
4174
|
+
body: zLinkInterestRequest,
|
|
4175
|
+
path: z.object({
|
|
4176
|
+
taskId: z.uuid(),
|
|
4177
|
+
}),
|
|
4178
|
+
query: z.optional(z.never()),
|
|
4179
|
+
});
|
|
4180
|
+
/**
|
|
4181
|
+
* No Content
|
|
4182
|
+
*/
|
|
4183
|
+
export const zPostTaskByTaskIdInterestResponse = z.void();
|
|
4184
|
+
export const zDeleteTaskByTaskIdContactByContactIdData = z.object({
|
|
4185
|
+
body: z.optional(z.never()),
|
|
4186
|
+
path: z.object({
|
|
4187
|
+
taskId: z.uuid(),
|
|
4188
|
+
contactId: z.coerce
|
|
4189
|
+
.bigint()
|
|
4190
|
+
.min(BigInt('-9223372036854775808'), {
|
|
4191
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4192
|
+
})
|
|
4193
|
+
.max(BigInt('9223372036854775807'), {
|
|
4194
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4195
|
+
}),
|
|
4196
|
+
}),
|
|
4197
|
+
query: z.optional(z.never()),
|
|
4198
|
+
});
|
|
4199
|
+
/**
|
|
4200
|
+
* No Content
|
|
4201
|
+
*/
|
|
4202
|
+
export const zDeleteTaskByTaskIdContactByContactIdResponse = z.void();
|
|
4203
|
+
export const zPostTaskByTaskIdContactByContactIdData = z.object({
|
|
4204
|
+
body: z.optional(z.never()),
|
|
4205
|
+
path: z.object({
|
|
4206
|
+
taskId: z.uuid(),
|
|
4207
|
+
contactId: z.coerce
|
|
4208
|
+
.bigint()
|
|
4209
|
+
.min(BigInt('-9223372036854775808'), {
|
|
4210
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4211
|
+
})
|
|
4212
|
+
.max(BigInt('9223372036854775807'), {
|
|
4213
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4214
|
+
}),
|
|
4215
|
+
}),
|
|
4216
|
+
query: z.optional(z.never()),
|
|
4217
|
+
});
|
|
4218
|
+
/**
|
|
4219
|
+
* No Content
|
|
4220
|
+
*/
|
|
4221
|
+
export const zPostTaskByTaskIdContactByContactIdResponse = z.void();
|
|
4222
|
+
export const zPostTaskTodoData = z.object({
|
|
4223
|
+
body: zCreateAdHocTodoRequest,
|
|
4224
|
+
path: z.optional(z.never()),
|
|
4225
|
+
query: z.optional(z.never()),
|
|
4226
|
+
});
|
|
4227
|
+
/**
|
|
4228
|
+
* Created
|
|
4229
|
+
*/
|
|
4230
|
+
export const zPostTaskTodoResponse = zIdResponseUuid;
|
|
3437
4231
|
export const zDeleteSubscriptionsData = z.object({
|
|
3438
4232
|
body: z.optional(z.never()),
|
|
3439
4233
|
path: z.optional(z.never()),
|
|
@@ -3474,6 +4268,14 @@ export const zPostRolesData = z.object({
|
|
|
3474
4268
|
* Created
|
|
3475
4269
|
*/
|
|
3476
4270
|
export const zPostRolesResponse = zIdResponseInteger;
|
|
4271
|
+
export const zPostPublicWebhooksTelegramData = z.object({
|
|
4272
|
+
body: z.string(),
|
|
4273
|
+
path: z.optional(z.never()),
|
|
4274
|
+
query: z.optional(z.never()),
|
|
4275
|
+
headers: z.optional(z.object({
|
|
4276
|
+
'X-Telegram-Bot-Api-Secret-Token': z.optional(z.string()),
|
|
4277
|
+
})),
|
|
4278
|
+
});
|
|
3477
4279
|
export const zGetPublicWebhooksMetaWaData = z.object({
|
|
3478
4280
|
body: z.optional(z.never()),
|
|
3479
4281
|
path: z.optional(z.never()),
|
|
@@ -4137,19 +4939,9 @@ export const zGetContactData = z.object({
|
|
|
4137
4939
|
body: z.optional(z.never()),
|
|
4138
4940
|
path: z.optional(z.never()),
|
|
4139
4941
|
query: z.optional(z.object({
|
|
4140
|
-
statuses: z.optional(z.array(z.enum([
|
|
4141
|
-
'NEW',
|
|
4142
|
-
'ON_HOLD',
|
|
4143
|
-
'COLD',
|
|
4144
|
-
'WARM',
|
|
4145
|
-
'HOT',
|
|
4146
|
-
'WAITING_PAYMENT',
|
|
4147
|
-
'LOST',
|
|
4148
|
-
'WON',
|
|
4149
|
-
]))),
|
|
4150
|
-
priorities: z.optional(z.array(z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW']))),
|
|
4151
4942
|
isSearching: z.optional(z.boolean()),
|
|
4152
4943
|
isListing: z.optional(z.boolean()),
|
|
4944
|
+
hasOpenTask: z.optional(z.boolean()),
|
|
4153
4945
|
assignedTo: z.optional(z.array(z.string())),
|
|
4154
4946
|
createdBy: z.optional(z.uuid()),
|
|
4155
4947
|
contactName: z.optional(z.string()),
|
|
@@ -4168,82 +4960,6 @@ export const zGetContactData = z.object({
|
|
|
4168
4960
|
contactGenders: z.optional(z.array(z.enum(['MALE', 'FEMALE', 'UNKNOWN']))),
|
|
4169
4961
|
createdFrom: z.optional(z.iso.date()),
|
|
4170
4962
|
createdTo: z.optional(z.iso.date()),
|
|
4171
|
-
listingTypes: z.optional(z.array(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']))),
|
|
4172
|
-
propertyTypes: z.optional(z.array(z.enum([
|
|
4173
|
-
'HOUSE',
|
|
4174
|
-
'TOWN_HOUSE',
|
|
4175
|
-
'COUNTRY_HOUSE',
|
|
4176
|
-
'VILLA',
|
|
4177
|
-
'COTTAGE',
|
|
4178
|
-
'APARTMENT',
|
|
4179
|
-
'DUPLEX',
|
|
4180
|
-
'TRIPLEX',
|
|
4181
|
-
'SEMI_BASEMENT',
|
|
4182
|
-
'ATTIC',
|
|
4183
|
-
'AGRICULTURAL_LAND',
|
|
4184
|
-
'RESIDENTIAL_LAND',
|
|
4185
|
-
'HOTEL_ROOM',
|
|
4186
|
-
'MOTEL_ROOM',
|
|
4187
|
-
'CO_LIVING_SPACE',
|
|
4188
|
-
'OFFICE',
|
|
4189
|
-
'COMMERCIAL_SPACE',
|
|
4190
|
-
'CO_WORKING_SPACE',
|
|
4191
|
-
'WAREHOUSE',
|
|
4192
|
-
'GARAGE',
|
|
4193
|
-
]))),
|
|
4194
|
-
regionId: z.optional(z.coerce
|
|
4195
|
-
.bigint()
|
|
4196
|
-
.min(BigInt('-9223372036854775808'), {
|
|
4197
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4198
|
-
})
|
|
4199
|
-
.max(BigInt('9223372036854775807'), {
|
|
4200
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4201
|
-
})),
|
|
4202
|
-
districtId: z.optional(z.coerce
|
|
4203
|
-
.bigint()
|
|
4204
|
-
.min(BigInt('-9223372036854775808'), {
|
|
4205
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4206
|
-
})
|
|
4207
|
-
.max(BigInt('9223372036854775807'), {
|
|
4208
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4209
|
-
})),
|
|
4210
|
-
subDistrictId: z.optional(z.coerce
|
|
4211
|
-
.bigint()
|
|
4212
|
-
.min(BigInt('-9223372036854775808'), {
|
|
4213
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4214
|
-
})
|
|
4215
|
-
.max(BigInt('9223372036854775807'), {
|
|
4216
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4217
|
-
})),
|
|
4218
|
-
streetId: z.optional(z.coerce
|
|
4219
|
-
.bigint()
|
|
4220
|
-
.min(BigInt('-9223372036854775808'), {
|
|
4221
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4222
|
-
})
|
|
4223
|
-
.max(BigInt('9223372036854775807'), {
|
|
4224
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4225
|
-
})),
|
|
4226
|
-
priceMin: z.optional(z.number()),
|
|
4227
|
-
priceMax: z.optional(z.number()),
|
|
4228
|
-
areaMin: z.optional(z.number()),
|
|
4229
|
-
areaMax: z.optional(z.number()),
|
|
4230
|
-
roomsMin: z.optional(z
|
|
4231
|
-
.int()
|
|
4232
|
-
.min(-2147483648, {
|
|
4233
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
4234
|
-
})
|
|
4235
|
-
.max(2147483647, {
|
|
4236
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
4237
|
-
})),
|
|
4238
|
-
roomsMax: z.optional(z
|
|
4239
|
-
.int()
|
|
4240
|
-
.min(-2147483648, {
|
|
4241
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
4242
|
-
})
|
|
4243
|
-
.max(2147483647, {
|
|
4244
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
4245
|
-
})),
|
|
4246
|
-
includeArchived: z.optional(z.boolean()).default(false),
|
|
4247
4963
|
page: z.optional(z.int().gte(0)).default(0),
|
|
4248
4964
|
size: z.optional(z.int().gte(1)).default(20),
|
|
4249
4965
|
sort: z.optional(z.array(z.string())),
|
|
@@ -4315,13 +5031,54 @@ export const zPostContactSourceData = z.object({
|
|
|
4315
5031
|
* Created
|
|
4316
5032
|
*/
|
|
4317
5033
|
export const zPostContactSourceResponse = zIdResponseLong;
|
|
4318
|
-
export const
|
|
4319
|
-
body:
|
|
5034
|
+
export const zGetBoardData = z.object({
|
|
5035
|
+
body: z.optional(z.never()),
|
|
4320
5036
|
path: z.optional(z.never()),
|
|
4321
5037
|
query: z.optional(z.never()),
|
|
4322
5038
|
});
|
|
4323
5039
|
/**
|
|
4324
|
-
*
|
|
5040
|
+
* OK
|
|
5041
|
+
*/
|
|
5042
|
+
export const zGetBoardResponse = z.array(zBoardSummaryResponse);
|
|
5043
|
+
export const zPostBoardData = z.object({
|
|
5044
|
+
body: zCreateBoardRequest,
|
|
5045
|
+
path: z.optional(z.never()),
|
|
5046
|
+
query: z.optional(z.never()),
|
|
5047
|
+
});
|
|
5048
|
+
/**
|
|
5049
|
+
* Created
|
|
5050
|
+
*/
|
|
5051
|
+
export const zPostBoardResponse = zIdResponseUuid;
|
|
5052
|
+
export const zPostBoardByBoardIdStageData = z.object({
|
|
5053
|
+
body: zAddStageRequest,
|
|
5054
|
+
path: z.object({
|
|
5055
|
+
boardId: z.uuid(),
|
|
5056
|
+
}),
|
|
5057
|
+
query: z.optional(z.never()),
|
|
5058
|
+
});
|
|
5059
|
+
/**
|
|
5060
|
+
* Created
|
|
5061
|
+
*/
|
|
5062
|
+
export const zPostBoardByBoardIdStageResponse = zIdResponseUuid;
|
|
5063
|
+
export const zPostBoardByBoardIdStageByStageIdTemplateData = z.object({
|
|
5064
|
+
body: zAddTodoTemplateRequest,
|
|
5065
|
+
path: z.object({
|
|
5066
|
+
boardId: z.uuid(),
|
|
5067
|
+
stageId: z.uuid(),
|
|
5068
|
+
}),
|
|
5069
|
+
query: z.optional(z.never()),
|
|
5070
|
+
});
|
|
5071
|
+
/**
|
|
5072
|
+
* Created
|
|
5073
|
+
*/
|
|
5074
|
+
export const zPostBoardByBoardIdStageByStageIdTemplateResponse = zIdResponseUuid;
|
|
5075
|
+
export const zPostApiAdminSubscriptionsProvisionData = z.object({
|
|
5076
|
+
body: zProvisionAgencyRequest,
|
|
5077
|
+
path: z.optional(z.never()),
|
|
5078
|
+
query: z.optional(z.never()),
|
|
5079
|
+
});
|
|
5080
|
+
/**
|
|
5081
|
+
* Created
|
|
4325
5082
|
*/
|
|
4326
5083
|
export const zPostApiAdminSubscriptionsProvisionResponse = zAdminProvisionResponse;
|
|
4327
5084
|
export const zGetAgencyData = z.object({
|
|
@@ -4351,6 +5108,128 @@ export const zGetUserMeData = z.object({
|
|
|
4351
5108
|
* OK
|
|
4352
5109
|
*/
|
|
4353
5110
|
export const zGetUserMeResponse = zUserContextViewResponse;
|
|
5111
|
+
export const zDeleteTaskByTaskIdData = z.object({
|
|
5112
|
+
body: z.optional(z.never()),
|
|
5113
|
+
path: z.object({
|
|
5114
|
+
taskId: z.uuid(),
|
|
5115
|
+
}),
|
|
5116
|
+
query: z.optional(z.never()),
|
|
5117
|
+
});
|
|
5118
|
+
/**
|
|
5119
|
+
* No Content
|
|
5120
|
+
*/
|
|
5121
|
+
export const zDeleteTaskByTaskIdResponse = z.void();
|
|
5122
|
+
export const zGetTaskByTaskIdData = z.object({
|
|
5123
|
+
body: z.optional(z.never()),
|
|
5124
|
+
path: z.object({
|
|
5125
|
+
taskId: z.uuid(),
|
|
5126
|
+
}),
|
|
5127
|
+
query: z.optional(z.never()),
|
|
5128
|
+
});
|
|
5129
|
+
/**
|
|
5130
|
+
* OK
|
|
5131
|
+
*/
|
|
5132
|
+
export const zGetTaskByTaskIdResponse = zTaskDetailResponse;
|
|
5133
|
+
export const zGetTaskByContactByContactIdData = z.object({
|
|
5134
|
+
body: z.optional(z.never()),
|
|
5135
|
+
path: z.object({
|
|
5136
|
+
contactId: z.coerce
|
|
5137
|
+
.bigint()
|
|
5138
|
+
.min(BigInt('-9223372036854775808'), {
|
|
5139
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5140
|
+
})
|
|
5141
|
+
.max(BigInt('9223372036854775807'), {
|
|
5142
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5143
|
+
}),
|
|
5144
|
+
}),
|
|
5145
|
+
query: z.optional(z.never()),
|
|
5146
|
+
});
|
|
5147
|
+
/**
|
|
5148
|
+
* OK
|
|
5149
|
+
*/
|
|
5150
|
+
export const zGetTaskByContactByContactIdResponse = z.array(zContactTaskResponse);
|
|
5151
|
+
export const zGetTaskBoardByBoardIdData = z.object({
|
|
5152
|
+
body: z.optional(z.never()),
|
|
5153
|
+
path: z.object({
|
|
5154
|
+
boardId: z.uuid(),
|
|
5155
|
+
}),
|
|
5156
|
+
query: z.optional(z.never()),
|
|
5157
|
+
});
|
|
5158
|
+
/**
|
|
5159
|
+
* OK
|
|
5160
|
+
*/
|
|
5161
|
+
export const zGetTaskBoardByBoardIdResponse = zBoardGridResponse;
|
|
5162
|
+
export const zGetTaskBoardByBoardIdStageByStageIdCardsData = z.object({
|
|
5163
|
+
body: z.optional(z.never()),
|
|
5164
|
+
path: z.object({
|
|
5165
|
+
boardId: z.uuid(),
|
|
5166
|
+
stageId: z.uuid(),
|
|
5167
|
+
}),
|
|
5168
|
+
query: z.optional(z.object({
|
|
5169
|
+
cursor: z.optional(z.string()),
|
|
5170
|
+
limit: z
|
|
5171
|
+
.optional(z
|
|
5172
|
+
.int()
|
|
5173
|
+
.min(-2147483648, {
|
|
5174
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
5175
|
+
})
|
|
5176
|
+
.max(2147483647, {
|
|
5177
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
5178
|
+
}))
|
|
5179
|
+
.default(20),
|
|
5180
|
+
})),
|
|
5181
|
+
});
|
|
5182
|
+
/**
|
|
5183
|
+
* OK
|
|
5184
|
+
*/
|
|
5185
|
+
export const zGetTaskBoardByBoardIdStageByStageIdCardsResponse = zCursorPageCard;
|
|
5186
|
+
export const zGetTaskBoardByBoardIdClosedData = z.object({
|
|
5187
|
+
body: z.optional(z.never()),
|
|
5188
|
+
path: z.object({
|
|
5189
|
+
boardId: z.uuid(),
|
|
5190
|
+
}),
|
|
5191
|
+
query: z.optional(z.object({
|
|
5192
|
+
outcome: z.optional(z.enum(['WON', 'LOST'])),
|
|
5193
|
+
page: z.optional(z.int().gte(0)).default(0),
|
|
5194
|
+
size: z.optional(z.int().gte(1)).default(20),
|
|
5195
|
+
sort: z.optional(z.array(z.string())),
|
|
5196
|
+
})),
|
|
5197
|
+
});
|
|
5198
|
+
/**
|
|
5199
|
+
* OK
|
|
5200
|
+
*/
|
|
5201
|
+
export const zGetTaskBoardByBoardIdClosedResponse = zPagedModelClosedTaskResponse;
|
|
5202
|
+
export const zGetStatisticsWinRateData = z.object({
|
|
5203
|
+
body: z.optional(z.never()),
|
|
5204
|
+
path: z.optional(z.never()),
|
|
5205
|
+
query: z.optional(z.object({
|
|
5206
|
+
period: z.optional(z.string()).default('30d'),
|
|
5207
|
+
})),
|
|
5208
|
+
});
|
|
5209
|
+
/**
|
|
5210
|
+
* OK
|
|
5211
|
+
*/
|
|
5212
|
+
export const zGetStatisticsWinRateResponse = zStatsEnvelopeWinRateStats;
|
|
5213
|
+
export const zGetStatisticsTaskVelocityData = z.object({
|
|
5214
|
+
body: z.optional(z.never()),
|
|
5215
|
+
path: z.optional(z.never()),
|
|
5216
|
+
query: z.optional(z.object({
|
|
5217
|
+
period: z.optional(z.string()).default('90d'),
|
|
5218
|
+
})),
|
|
5219
|
+
});
|
|
5220
|
+
/**
|
|
5221
|
+
* OK
|
|
5222
|
+
*/
|
|
5223
|
+
export const zGetStatisticsTaskVelocityResponse = zStatsEnvelopeTaskVelocityStats;
|
|
5224
|
+
export const zGetStatisticsTaskFunnelData = z.object({
|
|
5225
|
+
body: z.optional(z.never()),
|
|
5226
|
+
path: z.optional(z.never()),
|
|
5227
|
+
query: z.optional(z.never()),
|
|
5228
|
+
});
|
|
5229
|
+
/**
|
|
5230
|
+
* OK
|
|
5231
|
+
*/
|
|
5232
|
+
export const zGetStatisticsTaskFunnelResponse = zStatsEnvelopeTaskFunnelStats;
|
|
4354
5233
|
export const zGetStatisticsSupplyData = z.object({
|
|
4355
5234
|
body: z.optional(z.never()),
|
|
4356
5235
|
path: z.optional(z.never()),
|
|
@@ -4705,6 +5584,9 @@ export const zGetMemberData = z.object({
|
|
|
4705
5584
|
'MANAGE_CONTACT',
|
|
4706
5585
|
'MANAGE_ANY_CONTACT',
|
|
4707
5586
|
'ASSIGN_CONTACT',
|
|
5587
|
+
'MANAGE_BOARD',
|
|
5588
|
+
'MANAGE_DEAL',
|
|
5589
|
+
'DELETE_DEAL',
|
|
4708
5590
|
])),
|
|
4709
5591
|
sort: z.optional(z.array(z.string())).default(['firstName,ASC']),
|
|
4710
5592
|
})),
|
|
@@ -5328,383 +6210,128 @@ export const zGetConversationsByConversationIdUpdatesData = z.object({
|
|
|
5328
6210
|
.default(BigInt(0)),
|
|
5329
6211
|
limit: z
|
|
5330
6212
|
.optional(z
|
|
5331
|
-
.int()
|
|
5332
|
-
.min(-2147483648, {
|
|
5333
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
5334
|
-
})
|
|
5335
|
-
.max(2147483647, {
|
|
5336
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
5337
|
-
}))
|
|
5338
|
-
.default(50),
|
|
5339
|
-
})),
|
|
5340
|
-
});
|
|
5341
|
-
/**
|
|
5342
|
-
* OK
|
|
5343
|
-
*/
|
|
5344
|
-
export const zGetConversationsByConversationIdUpdatesResponse = zThreadUpdates;
|
|
5345
|
-
export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsData = z.object({
|
|
5346
|
-
body: z.optional(z.never()),
|
|
5347
|
-
path: z.object({
|
|
5348
|
-
contactId: z.coerce
|
|
5349
|
-
.bigint()
|
|
5350
|
-
.min(BigInt('-9223372036854775808'), {
|
|
5351
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5352
|
-
})
|
|
5353
|
-
.max(BigInt('9223372036854775807'), {
|
|
5354
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5355
|
-
}),
|
|
5356
|
-
interestId: z.coerce
|
|
5357
|
-
.bigint()
|
|
5358
|
-
.min(BigInt('-9223372036854775808'), {
|
|
5359
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5360
|
-
})
|
|
5361
|
-
.max(BigInt('9223372036854775807'), {
|
|
5362
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5363
|
-
}),
|
|
5364
|
-
}),
|
|
5365
|
-
query: z.optional(z.never()),
|
|
5366
|
-
});
|
|
5367
|
-
/**
|
|
5368
|
-
* OK
|
|
5369
|
-
*/
|
|
5370
|
-
export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsResponse = z.array(zRecommendationDecisionResponse);
|
|
5371
|
-
export const zDeleteContactByContactIdData = z.object({
|
|
5372
|
-
body: z.optional(z.never()),
|
|
5373
|
-
path: z.object({
|
|
5374
|
-
contactId: z.coerce
|
|
5375
|
-
.bigint()
|
|
5376
|
-
.min(BigInt('-9223372036854775808'), {
|
|
5377
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5378
|
-
})
|
|
5379
|
-
.max(BigInt('9223372036854775807'), {
|
|
5380
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5381
|
-
}),
|
|
5382
|
-
}),
|
|
5383
|
-
query: z.optional(z.never()),
|
|
5384
|
-
});
|
|
5385
|
-
/**
|
|
5386
|
-
* No Content
|
|
5387
|
-
*/
|
|
5388
|
-
export const zDeleteContactByContactIdResponse = z.void();
|
|
5389
|
-
export const zGetContactByContactIdData = z.object({
|
|
5390
|
-
body: z.optional(z.never()),
|
|
5391
|
-
path: z.object({
|
|
5392
|
-
contactId: z.coerce
|
|
5393
|
-
.bigint()
|
|
5394
|
-
.min(BigInt('-9223372036854775808'), {
|
|
5395
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5396
|
-
})
|
|
5397
|
-
.max(BigInt('9223372036854775807'), {
|
|
5398
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5399
|
-
}),
|
|
5400
|
-
}),
|
|
5401
|
-
query: z.optional(z.never()),
|
|
5402
|
-
});
|
|
5403
|
-
/**
|
|
5404
|
-
* OK
|
|
5405
|
-
*/
|
|
5406
|
-
export const zGetContactByContactIdResponse = zContactGridResponse;
|
|
5407
|
-
export const zGetContactByContactId360Data = z.object({
|
|
5408
|
-
body: z.optional(z.never()),
|
|
5409
|
-
path: z.object({
|
|
5410
|
-
contactId: z.coerce
|
|
5411
|
-
.bigint()
|
|
5412
|
-
.min(BigInt('-9223372036854775808'), {
|
|
5413
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5414
|
-
})
|
|
5415
|
-
.max(BigInt('9223372036854775807'), {
|
|
5416
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5417
|
-
}),
|
|
5418
|
-
}),
|
|
5419
|
-
query: z.optional(z.never()),
|
|
5420
|
-
});
|
|
5421
|
-
/**
|
|
5422
|
-
* OK
|
|
5423
|
-
*/
|
|
5424
|
-
export const zGetContactByContactId360Response = zClient360Response;
|
|
5425
|
-
export const zGetContactPhoneCheckerData = z.object({
|
|
5426
|
-
body: z.optional(z.never()),
|
|
5427
|
-
path: z.optional(z.never()),
|
|
5428
|
-
query: z.object({
|
|
5429
|
-
phone: z.string().regex(/\d{6,20}/),
|
|
5430
|
-
}),
|
|
5431
|
-
});
|
|
5432
|
-
/**
|
|
5433
|
-
* OK
|
|
5434
|
-
*/
|
|
5435
|
-
export const zGetContactPhoneCheckerResponse = zPhoneDuplicateCheckResponse;
|
|
5436
|
-
export const zGetContactGroupsData = z.object({
|
|
5437
|
-
body: z.optional(z.never()),
|
|
5438
|
-
path: z.optional(z.never()),
|
|
5439
|
-
query: z.object({
|
|
5440
|
-
groupBy: z.enum([
|
|
5441
|
-
'ASSIGNED_TO',
|
|
5442
|
-
'CREATED_BY',
|
|
5443
|
-
'PRIORITY',
|
|
5444
|
-
'STATUS',
|
|
5445
|
-
'SOURCE_TYPE',
|
|
5446
|
-
'IS_SEARCHING',
|
|
5447
|
-
'IS_LISTING',
|
|
5448
|
-
'CREATED_AT_DAY',
|
|
5449
|
-
'CREATED_AT_WEEK',
|
|
5450
|
-
'CREATED_AT_MONTH',
|
|
5451
|
-
]),
|
|
5452
|
-
statuses: z.optional(z.array(z.enum([
|
|
5453
|
-
'NEW',
|
|
5454
|
-
'ON_HOLD',
|
|
5455
|
-
'COLD',
|
|
5456
|
-
'WARM',
|
|
5457
|
-
'HOT',
|
|
5458
|
-
'WAITING_PAYMENT',
|
|
5459
|
-
'LOST',
|
|
5460
|
-
'WON',
|
|
5461
|
-
]))),
|
|
5462
|
-
priorities: z.optional(z.array(z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW']))),
|
|
5463
|
-
isSearching: z.optional(z.boolean()),
|
|
5464
|
-
isListing: z.optional(z.boolean()),
|
|
5465
|
-
assignedTo: z.optional(z.array(z.string())),
|
|
5466
|
-
createdBy: z.optional(z.uuid()),
|
|
5467
|
-
contactName: z.optional(z.string()),
|
|
5468
|
-
contactPhone: z.optional(z.string()),
|
|
5469
|
-
contactEmail: z.optional(z.string()),
|
|
5470
|
-
sourceTypes: z.optional(z.array(z.enum([
|
|
5471
|
-
'MY_HOME',
|
|
5472
|
-
'SS',
|
|
5473
|
-
'HOME_SPOT',
|
|
5474
|
-
'AGENCY_MEMBER',
|
|
5475
|
-
'FACEBOOK',
|
|
5476
|
-
'INSTAGRAM',
|
|
5477
|
-
'WHATSAPP',
|
|
5478
|
-
'UNKNOWN',
|
|
5479
|
-
]))),
|
|
5480
|
-
contactGenders: z.optional(z.array(z.enum(['MALE', 'FEMALE', 'UNKNOWN']))),
|
|
5481
|
-
createdFrom: z.optional(z.iso.date()),
|
|
5482
|
-
createdTo: z.optional(z.iso.date()),
|
|
5483
|
-
listingTypes: z.optional(z.array(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']))),
|
|
5484
|
-
propertyTypes: z.optional(z.array(z.enum([
|
|
5485
|
-
'HOUSE',
|
|
5486
|
-
'TOWN_HOUSE',
|
|
5487
|
-
'COUNTRY_HOUSE',
|
|
5488
|
-
'VILLA',
|
|
5489
|
-
'COTTAGE',
|
|
5490
|
-
'APARTMENT',
|
|
5491
|
-
'DUPLEX',
|
|
5492
|
-
'TRIPLEX',
|
|
5493
|
-
'SEMI_BASEMENT',
|
|
5494
|
-
'ATTIC',
|
|
5495
|
-
'AGRICULTURAL_LAND',
|
|
5496
|
-
'RESIDENTIAL_LAND',
|
|
5497
|
-
'HOTEL_ROOM',
|
|
5498
|
-
'MOTEL_ROOM',
|
|
5499
|
-
'CO_LIVING_SPACE',
|
|
5500
|
-
'OFFICE',
|
|
5501
|
-
'COMMERCIAL_SPACE',
|
|
5502
|
-
'CO_WORKING_SPACE',
|
|
5503
|
-
'WAREHOUSE',
|
|
5504
|
-
'GARAGE',
|
|
5505
|
-
]))),
|
|
5506
|
-
regionId: z.optional(z.coerce
|
|
5507
|
-
.bigint()
|
|
5508
|
-
.min(BigInt('-9223372036854775808'), {
|
|
5509
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5510
|
-
})
|
|
5511
|
-
.max(BigInt('9223372036854775807'), {
|
|
5512
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5513
|
-
})),
|
|
5514
|
-
districtId: z.optional(z.coerce
|
|
5515
|
-
.bigint()
|
|
5516
|
-
.min(BigInt('-9223372036854775808'), {
|
|
5517
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5518
|
-
})
|
|
5519
|
-
.max(BigInt('9223372036854775807'), {
|
|
5520
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5521
|
-
})),
|
|
5522
|
-
subDistrictId: z.optional(z.coerce
|
|
5523
|
-
.bigint()
|
|
5524
|
-
.min(BigInt('-9223372036854775808'), {
|
|
5525
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5526
|
-
})
|
|
5527
|
-
.max(BigInt('9223372036854775807'), {
|
|
5528
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5529
|
-
})),
|
|
5530
|
-
streetId: z.optional(z.coerce
|
|
5531
|
-
.bigint()
|
|
5532
|
-
.min(BigInt('-9223372036854775808'), {
|
|
5533
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5534
|
-
})
|
|
5535
|
-
.max(BigInt('9223372036854775807'), {
|
|
5536
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5537
|
-
})),
|
|
5538
|
-
priceMin: z.optional(z.number()),
|
|
5539
|
-
priceMax: z.optional(z.number()),
|
|
5540
|
-
areaMin: z.optional(z.number()),
|
|
5541
|
-
areaMax: z.optional(z.number()),
|
|
5542
|
-
roomsMin: z.optional(z
|
|
5543
|
-
.int()
|
|
5544
|
-
.min(-2147483648, {
|
|
5545
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
5546
|
-
})
|
|
5547
|
-
.max(2147483647, {
|
|
5548
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
5549
|
-
})),
|
|
5550
|
-
roomsMax: z.optional(z
|
|
5551
|
-
.int()
|
|
5552
|
-
.min(-2147483648, {
|
|
5553
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
5554
|
-
})
|
|
5555
|
-
.max(2147483647, {
|
|
5556
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
5557
|
-
})),
|
|
5558
|
-
}),
|
|
5559
|
-
});
|
|
5560
|
-
/**
|
|
5561
|
-
* OK
|
|
5562
|
-
*/
|
|
5563
|
-
export const zGetContactGroupsResponse = z.array(zGroupCount);
|
|
5564
|
-
export const zGetContactBoardData = z.object({
|
|
5565
|
-
body: z.optional(z.never()),
|
|
5566
|
-
path: z.optional(z.never()),
|
|
5567
|
-
query: z.optional(z.object({
|
|
5568
|
-
statuses: z.optional(z.array(z.enum([
|
|
5569
|
-
'NEW',
|
|
5570
|
-
'ON_HOLD',
|
|
5571
|
-
'COLD',
|
|
5572
|
-
'WARM',
|
|
5573
|
-
'HOT',
|
|
5574
|
-
'WAITING_PAYMENT',
|
|
5575
|
-
'LOST',
|
|
5576
|
-
'WON',
|
|
5577
|
-
]))),
|
|
5578
|
-
priorities: z.optional(z.array(z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW']))),
|
|
5579
|
-
isSearching: z.optional(z.boolean()),
|
|
5580
|
-
isListing: z.optional(z.boolean()),
|
|
5581
|
-
assignedTo: z.optional(z.array(z.string())),
|
|
5582
|
-
createdBy: z.optional(z.uuid()),
|
|
5583
|
-
contactName: z.optional(z.string()),
|
|
5584
|
-
contactPhone: z.optional(z.string()),
|
|
5585
|
-
contactEmail: z.optional(z.string()),
|
|
5586
|
-
sourceTypes: z.optional(z.array(z.enum([
|
|
5587
|
-
'MY_HOME',
|
|
5588
|
-
'SS',
|
|
5589
|
-
'HOME_SPOT',
|
|
5590
|
-
'AGENCY_MEMBER',
|
|
5591
|
-
'FACEBOOK',
|
|
5592
|
-
'INSTAGRAM',
|
|
5593
|
-
'WHATSAPP',
|
|
5594
|
-
'UNKNOWN',
|
|
5595
|
-
]))),
|
|
5596
|
-
contactGenders: z.optional(z.array(z.enum(['MALE', 'FEMALE', 'UNKNOWN']))),
|
|
5597
|
-
createdFrom: z.optional(z.iso.date()),
|
|
5598
|
-
createdTo: z.optional(z.iso.date()),
|
|
5599
|
-
listingTypes: z.optional(z.array(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']))),
|
|
5600
|
-
propertyTypes: z.optional(z.array(z.enum([
|
|
5601
|
-
'HOUSE',
|
|
5602
|
-
'TOWN_HOUSE',
|
|
5603
|
-
'COUNTRY_HOUSE',
|
|
5604
|
-
'VILLA',
|
|
5605
|
-
'COTTAGE',
|
|
5606
|
-
'APARTMENT',
|
|
5607
|
-
'DUPLEX',
|
|
5608
|
-
'TRIPLEX',
|
|
5609
|
-
'SEMI_BASEMENT',
|
|
5610
|
-
'ATTIC',
|
|
5611
|
-
'AGRICULTURAL_LAND',
|
|
5612
|
-
'RESIDENTIAL_LAND',
|
|
5613
|
-
'HOTEL_ROOM',
|
|
5614
|
-
'MOTEL_ROOM',
|
|
5615
|
-
'CO_LIVING_SPACE',
|
|
5616
|
-
'OFFICE',
|
|
5617
|
-
'COMMERCIAL_SPACE',
|
|
5618
|
-
'CO_WORKING_SPACE',
|
|
5619
|
-
'WAREHOUSE',
|
|
5620
|
-
'GARAGE',
|
|
5621
|
-
]))),
|
|
5622
|
-
regionId: z.optional(z.coerce
|
|
6213
|
+
.int()
|
|
6214
|
+
.min(-2147483648, {
|
|
6215
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
6216
|
+
})
|
|
6217
|
+
.max(2147483647, {
|
|
6218
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
6219
|
+
}))
|
|
6220
|
+
.default(50),
|
|
6221
|
+
})),
|
|
6222
|
+
});
|
|
6223
|
+
/**
|
|
6224
|
+
* OK
|
|
6225
|
+
*/
|
|
6226
|
+
export const zGetConversationsByConversationIdUpdatesResponse = zThreadUpdates;
|
|
6227
|
+
export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsData = z.object({
|
|
6228
|
+
body: z.optional(z.never()),
|
|
6229
|
+
path: z.object({
|
|
6230
|
+
contactId: z.coerce
|
|
5623
6231
|
.bigint()
|
|
5624
6232
|
.min(BigInt('-9223372036854775808'), {
|
|
5625
6233
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5626
6234
|
})
|
|
5627
6235
|
.max(BigInt('9223372036854775807'), {
|
|
5628
6236
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5629
|
-
})
|
|
5630
|
-
|
|
6237
|
+
}),
|
|
6238
|
+
interestId: z.coerce
|
|
5631
6239
|
.bigint()
|
|
5632
6240
|
.min(BigInt('-9223372036854775808'), {
|
|
5633
6241
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5634
6242
|
})
|
|
5635
6243
|
.max(BigInt('9223372036854775807'), {
|
|
5636
6244
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5637
|
-
})
|
|
5638
|
-
|
|
6245
|
+
}),
|
|
6246
|
+
}),
|
|
6247
|
+
query: z.optional(z.never()),
|
|
6248
|
+
});
|
|
6249
|
+
/**
|
|
6250
|
+
* OK
|
|
6251
|
+
*/
|
|
6252
|
+
export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsResponse = z.array(zRecommendationDecisionResponse);
|
|
6253
|
+
export const zDeleteContactByContactIdData = z.object({
|
|
6254
|
+
body: z.optional(z.never()),
|
|
6255
|
+
path: z.object({
|
|
6256
|
+
contactId: z.coerce
|
|
5639
6257
|
.bigint()
|
|
5640
6258
|
.min(BigInt('-9223372036854775808'), {
|
|
5641
6259
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5642
6260
|
})
|
|
5643
6261
|
.max(BigInt('9223372036854775807'), {
|
|
5644
6262
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5645
|
-
})
|
|
5646
|
-
|
|
6263
|
+
}),
|
|
6264
|
+
}),
|
|
6265
|
+
query: z.optional(z.never()),
|
|
6266
|
+
});
|
|
6267
|
+
/**
|
|
6268
|
+
* No Content
|
|
6269
|
+
*/
|
|
6270
|
+
export const zDeleteContactByContactIdResponse = z.void();
|
|
6271
|
+
export const zGetContactByContactIdData = z.object({
|
|
6272
|
+
body: z.optional(z.never()),
|
|
6273
|
+
path: z.object({
|
|
6274
|
+
contactId: z.coerce
|
|
5647
6275
|
.bigint()
|
|
5648
6276
|
.min(BigInt('-9223372036854775808'), {
|
|
5649
6277
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5650
6278
|
})
|
|
5651
6279
|
.max(BigInt('9223372036854775807'), {
|
|
5652
6280
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5653
|
-
})
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
areaMin: z.optional(z.number()),
|
|
5657
|
-
areaMax: z.optional(z.number()),
|
|
5658
|
-
roomsMin: z.optional(z
|
|
5659
|
-
.int()
|
|
5660
|
-
.min(-2147483648, {
|
|
5661
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
5662
|
-
})
|
|
5663
|
-
.max(2147483647, {
|
|
5664
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
5665
|
-
})),
|
|
5666
|
-
roomsMax: z.optional(z
|
|
5667
|
-
.int()
|
|
5668
|
-
.min(-2147483648, {
|
|
5669
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
5670
|
-
})
|
|
5671
|
-
.max(2147483647, {
|
|
5672
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
5673
|
-
})),
|
|
5674
|
-
})),
|
|
6281
|
+
}),
|
|
6282
|
+
}),
|
|
6283
|
+
query: z.optional(z.never()),
|
|
5675
6284
|
});
|
|
5676
6285
|
/**
|
|
5677
6286
|
* OK
|
|
5678
6287
|
*/
|
|
5679
|
-
export const
|
|
5680
|
-
export const
|
|
6288
|
+
export const zGetContactByContactIdResponse = zContactGridResponse;
|
|
6289
|
+
export const zGetContactByContactId360Data = z.object({
|
|
5681
6290
|
body: z.optional(z.never()),
|
|
5682
6291
|
path: z.object({
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
'
|
|
5686
|
-
'
|
|
5687
|
-
|
|
5688
|
-
'
|
|
5689
|
-
'
|
|
5690
|
-
|
|
5691
|
-
'WON',
|
|
5692
|
-
]),
|
|
6292
|
+
contactId: z.coerce
|
|
6293
|
+
.bigint()
|
|
6294
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6295
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6296
|
+
})
|
|
6297
|
+
.max(BigInt('9223372036854775807'), {
|
|
6298
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6299
|
+
}),
|
|
5693
6300
|
}),
|
|
5694
|
-
query: z.optional(z.
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
6301
|
+
query: z.optional(z.never()),
|
|
6302
|
+
});
|
|
6303
|
+
/**
|
|
6304
|
+
* OK
|
|
6305
|
+
*/
|
|
6306
|
+
export const zGetContactByContactId360Response = zClient360Response;
|
|
6307
|
+
export const zGetContactPhoneCheckerData = z.object({
|
|
6308
|
+
body: z.optional(z.never()),
|
|
6309
|
+
path: z.optional(z.never()),
|
|
6310
|
+
query: z.object({
|
|
6311
|
+
phone: z.string().regex(/\d{6,20}/),
|
|
6312
|
+
}),
|
|
6313
|
+
});
|
|
6314
|
+
/**
|
|
6315
|
+
* OK
|
|
6316
|
+
*/
|
|
6317
|
+
export const zGetContactPhoneCheckerResponse = zPhoneDuplicateCheckResponse;
|
|
6318
|
+
export const zGetContactGroupsData = z.object({
|
|
6319
|
+
body: z.optional(z.never()),
|
|
6320
|
+
path: z.optional(z.never()),
|
|
6321
|
+
query: z.object({
|
|
6322
|
+
groupBy: z.enum([
|
|
6323
|
+
'ASSIGNED_TO',
|
|
6324
|
+
'CREATED_BY',
|
|
6325
|
+
'SOURCE_TYPE',
|
|
6326
|
+
'IS_SEARCHING',
|
|
6327
|
+
'IS_LISTING',
|
|
6328
|
+
'CREATED_AT_DAY',
|
|
6329
|
+
'CREATED_AT_WEEK',
|
|
6330
|
+
'CREATED_AT_MONTH',
|
|
6331
|
+
]),
|
|
5706
6332
|
isSearching: z.optional(z.boolean()),
|
|
5707
6333
|
isListing: z.optional(z.boolean()),
|
|
6334
|
+
hasOpenTask: z.optional(z.boolean()),
|
|
5708
6335
|
assignedTo: z.optional(z.array(z.string())),
|
|
5709
6336
|
createdBy: z.optional(z.uuid()),
|
|
5710
6337
|
contactName: z.optional(z.string()),
|
|
@@ -5723,98 +6350,23 @@ export const zGetContactBoardByStatusCardsData = z.object({
|
|
|
5723
6350
|
contactGenders: z.optional(z.array(z.enum(['MALE', 'FEMALE', 'UNKNOWN']))),
|
|
5724
6351
|
createdFrom: z.optional(z.iso.date()),
|
|
5725
6352
|
createdTo: z.optional(z.iso.date()),
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
'AGRICULTURAL_LAND',
|
|
5739
|
-
'RESIDENTIAL_LAND',
|
|
5740
|
-
'HOTEL_ROOM',
|
|
5741
|
-
'MOTEL_ROOM',
|
|
5742
|
-
'CO_LIVING_SPACE',
|
|
5743
|
-
'OFFICE',
|
|
5744
|
-
'COMMERCIAL_SPACE',
|
|
5745
|
-
'CO_WORKING_SPACE',
|
|
5746
|
-
'WAREHOUSE',
|
|
5747
|
-
'GARAGE',
|
|
5748
|
-
]))),
|
|
5749
|
-
regionId: z.optional(z.coerce
|
|
5750
|
-
.bigint()
|
|
5751
|
-
.min(BigInt('-9223372036854775808'), {
|
|
5752
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5753
|
-
})
|
|
5754
|
-
.max(BigInt('9223372036854775807'), {
|
|
5755
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5756
|
-
})),
|
|
5757
|
-
districtId: z.optional(z.coerce
|
|
5758
|
-
.bigint()
|
|
5759
|
-
.min(BigInt('-9223372036854775808'), {
|
|
5760
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5761
|
-
})
|
|
5762
|
-
.max(BigInt('9223372036854775807'), {
|
|
5763
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5764
|
-
})),
|
|
5765
|
-
subDistrictId: z.optional(z.coerce
|
|
5766
|
-
.bigint()
|
|
5767
|
-
.min(BigInt('-9223372036854775808'), {
|
|
5768
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5769
|
-
})
|
|
5770
|
-
.max(BigInt('9223372036854775807'), {
|
|
5771
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5772
|
-
})),
|
|
5773
|
-
streetId: z.optional(z.coerce
|
|
5774
|
-
.bigint()
|
|
5775
|
-
.min(BigInt('-9223372036854775808'), {
|
|
5776
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5777
|
-
})
|
|
5778
|
-
.max(BigInt('9223372036854775807'), {
|
|
5779
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5780
|
-
})),
|
|
5781
|
-
priceMin: z.optional(z.number()),
|
|
5782
|
-
priceMax: z.optional(z.number()),
|
|
5783
|
-
areaMin: z.optional(z.number()),
|
|
5784
|
-
areaMax: z.optional(z.number()),
|
|
5785
|
-
roomsMin: z.optional(z
|
|
5786
|
-
.int()
|
|
5787
|
-
.min(-2147483648, {
|
|
5788
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
5789
|
-
})
|
|
5790
|
-
.max(2147483647, {
|
|
5791
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
5792
|
-
})),
|
|
5793
|
-
roomsMax: z.optional(z
|
|
5794
|
-
.int()
|
|
5795
|
-
.min(-2147483648, {
|
|
5796
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
5797
|
-
})
|
|
5798
|
-
.max(2147483647, {
|
|
5799
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
5800
|
-
})),
|
|
5801
|
-
cursor: z.optional(z.string()),
|
|
5802
|
-
limit: z
|
|
5803
|
-
.optional(z
|
|
5804
|
-
.int()
|
|
5805
|
-
.min(-2147483648, {
|
|
5806
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
5807
|
-
})
|
|
5808
|
-
.max(2147483647, {
|
|
5809
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
5810
|
-
}))
|
|
5811
|
-
.default(20),
|
|
5812
|
-
})),
|
|
6353
|
+
}),
|
|
6354
|
+
});
|
|
6355
|
+
/**
|
|
6356
|
+
* OK
|
|
6357
|
+
*/
|
|
6358
|
+
export const zGetContactGroupsResponse = z.array(zGroupCount);
|
|
6359
|
+
export const zGetBoardByBoardIdData = z.object({
|
|
6360
|
+
body: z.optional(z.never()),
|
|
6361
|
+
path: z.object({
|
|
6362
|
+
boardId: z.uuid(),
|
|
6363
|
+
}),
|
|
6364
|
+
query: z.optional(z.never()),
|
|
5813
6365
|
});
|
|
5814
6366
|
/**
|
|
5815
6367
|
* OK
|
|
5816
6368
|
*/
|
|
5817
|
-
export const
|
|
6369
|
+
export const zGetBoardByBoardIdResponse = zBoardResponse;
|
|
5818
6370
|
export const zGetAgencyByAgencyIdOwnerData = z.object({
|
|
5819
6371
|
body: z.optional(z.never()),
|
|
5820
6372
|
path: z.object({
|
|
@@ -5857,6 +6409,55 @@ export const zGetAgencyFeaturedMembersData = z.object({
|
|
|
5857
6409
|
* OK
|
|
5858
6410
|
*/
|
|
5859
6411
|
export const zGetAgencyFeaturedMembersResponse = z.array(zMemberCurationView);
|
|
6412
|
+
export const zDeleteTaskByTaskIdPropertyByPropertyIdData = z.object({
|
|
6413
|
+
body: z.optional(z.never()),
|
|
6414
|
+
path: z.object({
|
|
6415
|
+
taskId: z.uuid(),
|
|
6416
|
+
propertyId: z.coerce
|
|
6417
|
+
.bigint()
|
|
6418
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6419
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6420
|
+
})
|
|
6421
|
+
.max(BigInt('9223372036854775807'), {
|
|
6422
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6423
|
+
}),
|
|
6424
|
+
}),
|
|
6425
|
+
query: z.optional(z.never()),
|
|
6426
|
+
});
|
|
6427
|
+
/**
|
|
6428
|
+
* No Content
|
|
6429
|
+
*/
|
|
6430
|
+
export const zDeleteTaskByTaskIdPropertyByPropertyIdResponse = z.void();
|
|
6431
|
+
export const zDeleteTaskByTaskIdInterestByInterestIdData = z.object({
|
|
6432
|
+
body: z.optional(z.never()),
|
|
6433
|
+
path: z.object({
|
|
6434
|
+
taskId: z.uuid(),
|
|
6435
|
+
interestId: z.coerce
|
|
6436
|
+
.bigint()
|
|
6437
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6438
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6439
|
+
})
|
|
6440
|
+
.max(BigInt('9223372036854775807'), {
|
|
6441
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6442
|
+
}),
|
|
6443
|
+
}),
|
|
6444
|
+
query: z.optional(z.never()),
|
|
6445
|
+
});
|
|
6446
|
+
/**
|
|
6447
|
+
* No Content
|
|
6448
|
+
*/
|
|
6449
|
+
export const zDeleteTaskByTaskIdInterestByInterestIdResponse = z.void();
|
|
6450
|
+
export const zDeleteTaskTodoByTodoIdData = z.object({
|
|
6451
|
+
body: z.optional(z.never()),
|
|
6452
|
+
path: z.object({
|
|
6453
|
+
todoId: z.uuid(),
|
|
6454
|
+
}),
|
|
6455
|
+
query: z.optional(z.never()),
|
|
6456
|
+
});
|
|
6457
|
+
/**
|
|
6458
|
+
* No Content
|
|
6459
|
+
*/
|
|
6460
|
+
export const zDeleteTaskTodoByTodoIdResponse = z.void();
|
|
5860
6461
|
export const zDeleteOauthGoogleData = z.object({
|
|
5861
6462
|
body: z.optional(z.never()),
|
|
5862
6463
|
path: z.optional(z.never()),
|
|
@@ -5947,4 +6548,17 @@ export const zDeleteContactsByContactIdInterestsByInterestIdListingsByExternalLi
|
|
|
5947
6548
|
* No Content
|
|
5948
6549
|
*/
|
|
5949
6550
|
export const zDeleteContactsByContactIdInterestsByInterestIdListingsByExternalListingIdResponse = z.void();
|
|
6551
|
+
export const zDeleteBoardByBoardIdStageByStageIdTemplateByTemplateIdData = z.object({
|
|
6552
|
+
body: z.optional(z.never()),
|
|
6553
|
+
path: z.object({
|
|
6554
|
+
boardId: z.uuid(),
|
|
6555
|
+
stageId: z.uuid(),
|
|
6556
|
+
templateId: z.uuid(),
|
|
6557
|
+
}),
|
|
6558
|
+
query: z.optional(z.never()),
|
|
6559
|
+
});
|
|
6560
|
+
/**
|
|
6561
|
+
* No Content
|
|
6562
|
+
*/
|
|
6563
|
+
export const zDeleteBoardByBoardIdStageByStageIdTemplateByTemplateIdResponse = z.void();
|
|
5950
6564
|
//# sourceMappingURL=zod.gen.js.map
|