@homespot-sdk/core 1.0.6 → 1.0.8
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/property/index.d.ts +2 -2
- package/dist/property/index.d.ts.map +1 -1
- package/dist/property/index.js +1 -1
- package/dist/property/index.js.map +1 -1
- package/dist/property/schemas.gen.d.ts +0 -36
- package/dist/property/schemas.gen.d.ts.map +1 -1
- package/dist/property/schemas.gen.js +0 -67
- package/dist/property/schemas.gen.js.map +1 -1
- package/dist/property/sdk.gen.d.ts +5 -5
- package/dist/property/sdk.gen.d.ts.map +1 -1
- package/dist/property/sdk.gen.js +10 -10
- package/dist/property/sdk.gen.js.map +1 -1
- package/dist/property/transformers.gen.d.ts +2 -2
- package/dist/property/transformers.gen.d.ts.map +1 -1
- package/dist/property/transformers.gen.js +4 -8
- package/dist/property/transformers.gen.js.map +1 -1
- package/dist/property/types.gen.d.ts +15 -26
- package/dist/property/types.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.d.ts +31 -154
- package/dist/property/zod.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.js +11 -43
- package/dist/property/zod.gen.js.map +1 -1
- 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 +261 -88
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +313 -98
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +10 -31
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +30 -66
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +5 -4
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +49 -25
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +156 -129
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +781 -169
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +232 -105
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/schemas.gen.js
CHANGED
|
@@ -351,24 +351,6 @@ export const AssignRoleRequestSchema = {
|
|
|
351
351
|
},
|
|
352
352
|
required: ['roleId'],
|
|
353
353
|
};
|
|
354
|
-
export const BatchAssignRoleRequestSchema = {
|
|
355
|
-
type: 'object',
|
|
356
|
-
properties: {
|
|
357
|
-
roleId: {
|
|
358
|
-
type: 'integer',
|
|
359
|
-
format: 'int32',
|
|
360
|
-
},
|
|
361
|
-
memberIds: {
|
|
362
|
-
type: 'array',
|
|
363
|
-
items: {
|
|
364
|
-
type: 'string',
|
|
365
|
-
format: 'uuid',
|
|
366
|
-
},
|
|
367
|
-
minItems: 1,
|
|
368
|
-
},
|
|
369
|
-
},
|
|
370
|
-
required: ['memberIds', 'roleId'],
|
|
371
|
-
};
|
|
372
354
|
export const UpdateMeetingRequestSchema = {
|
|
373
355
|
type: 'object',
|
|
374
356
|
properties: {
|
|
@@ -965,18 +947,6 @@ export const WhitelabelImageResponseSchema = {
|
|
|
965
947
|
},
|
|
966
948
|
required: ['id', 'url'],
|
|
967
949
|
};
|
|
968
|
-
export const ConnectLinkResponseSchema = {
|
|
969
|
-
type: 'object',
|
|
970
|
-
properties: {
|
|
971
|
-
link: {
|
|
972
|
-
type: 'string',
|
|
973
|
-
},
|
|
974
|
-
expiresAt: {
|
|
975
|
-
type: 'string',
|
|
976
|
-
format: 'date-time',
|
|
977
|
-
},
|
|
978
|
-
},
|
|
979
|
-
};
|
|
980
950
|
export const IdResponseUUIDSchema = {
|
|
981
951
|
type: 'object',
|
|
982
952
|
properties: {
|
|
@@ -3443,7 +3413,24 @@ export const TodoItemSchema = {
|
|
|
3443
3413
|
},
|
|
3444
3414
|
required: ['fromTemplate', 'position', 'title', 'todoId'],
|
|
3445
3415
|
};
|
|
3446
|
-
export const
|
|
3416
|
+
export const CursorPageMemberTaskCardResponseSchema = {
|
|
3417
|
+
type: 'object',
|
|
3418
|
+
properties: {
|
|
3419
|
+
items: {
|
|
3420
|
+
type: 'array',
|
|
3421
|
+
items: {
|
|
3422
|
+
$ref: '#/components/schemas/MemberTaskCardResponse',
|
|
3423
|
+
},
|
|
3424
|
+
},
|
|
3425
|
+
nextCursor: {
|
|
3426
|
+
type: 'string',
|
|
3427
|
+
},
|
|
3428
|
+
hasNext: {
|
|
3429
|
+
type: 'boolean',
|
|
3430
|
+
},
|
|
3431
|
+
},
|
|
3432
|
+
};
|
|
3433
|
+
export const MemberTaskCardResponseSchema = {
|
|
3447
3434
|
type: 'object',
|
|
3448
3435
|
properties: {
|
|
3449
3436
|
taskId: {
|
|
@@ -3582,8 +3569,9 @@ export const ContactTaskCardResponseSchema = {
|
|
|
3582
3569
|
stageColor: {
|
|
3583
3570
|
type: 'string',
|
|
3584
3571
|
},
|
|
3585
|
-
|
|
3586
|
-
type: '
|
|
3572
|
+
createdAt: {
|
|
3573
|
+
type: 'string',
|
|
3574
|
+
format: 'date-time',
|
|
3587
3575
|
},
|
|
3588
3576
|
},
|
|
3589
3577
|
required: [
|
|
@@ -3591,12 +3579,12 @@ export const ContactTaskCardResponseSchema = {
|
|
|
3591
3579
|
'boardName',
|
|
3592
3580
|
'commentCount',
|
|
3593
3581
|
'contactCount',
|
|
3582
|
+
'createdAt',
|
|
3594
3583
|
'daysInStage',
|
|
3595
3584
|
'hasDescription',
|
|
3596
3585
|
'hasLeftoverOpenTodos',
|
|
3597
3586
|
'openTodos',
|
|
3598
3587
|
'participants',
|
|
3599
|
-
'primary',
|
|
3600
3588
|
'priority',
|
|
3601
3589
|
'rank',
|
|
3602
3590
|
'stageColor',
|
|
@@ -3608,7 +3596,7 @@ export const ContactTaskCardResponseSchema = {
|
|
|
3608
3596
|
'totalTodos',
|
|
3609
3597
|
],
|
|
3610
3598
|
};
|
|
3611
|
-
export const
|
|
3599
|
+
export const MemberTasksResponseSchema = {
|
|
3612
3600
|
type: 'object',
|
|
3613
3601
|
properties: {
|
|
3614
3602
|
members: {
|
|
@@ -3617,14 +3605,11 @@ export const ContactTasksResponseSchema = {
|
|
|
3617
3605
|
$ref: '#/components/schemas/MemberPeekResponse',
|
|
3618
3606
|
},
|
|
3619
3607
|
},
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
items: {
|
|
3623
|
-
$ref: '#/components/schemas/ContactTaskCardResponse',
|
|
3624
|
-
},
|
|
3608
|
+
data: {
|
|
3609
|
+
$ref: '#/components/schemas/CursorPageMemberTaskCardResponse',
|
|
3625
3610
|
},
|
|
3626
3611
|
},
|
|
3627
|
-
required: ['
|
|
3612
|
+
required: ['data', 'members'],
|
|
3628
3613
|
};
|
|
3629
3614
|
export const TaskCardResponseSchema = {
|
|
3630
3615
|
type: 'object',
|
|
@@ -3889,6 +3874,189 @@ export const TaskContentPropertySchema = {
|
|
|
3889
3874
|
],
|
|
3890
3875
|
required: ['id', 'type'],
|
|
3891
3876
|
};
|
|
3877
|
+
export const ContactTaskCardResponseSchema = {
|
|
3878
|
+
type: 'object',
|
|
3879
|
+
properties: {
|
|
3880
|
+
taskId: {
|
|
3881
|
+
type: 'string',
|
|
3882
|
+
format: 'uuid',
|
|
3883
|
+
},
|
|
3884
|
+
stageId: {
|
|
3885
|
+
type: 'string',
|
|
3886
|
+
format: 'uuid',
|
|
3887
|
+
},
|
|
3888
|
+
stageName: {
|
|
3889
|
+
type: 'string',
|
|
3890
|
+
},
|
|
3891
|
+
title: {
|
|
3892
|
+
type: 'string',
|
|
3893
|
+
},
|
|
3894
|
+
hasDescription: {
|
|
3895
|
+
type: 'boolean',
|
|
3896
|
+
},
|
|
3897
|
+
commentCount: {
|
|
3898
|
+
type: 'integer',
|
|
3899
|
+
format: 'int32',
|
|
3900
|
+
},
|
|
3901
|
+
contactCount: {
|
|
3902
|
+
type: 'integer',
|
|
3903
|
+
format: 'int32',
|
|
3904
|
+
},
|
|
3905
|
+
priority: {
|
|
3906
|
+
type: 'string',
|
|
3907
|
+
enum: ['LOW', 'MEDIUM', 'HIGH', 'CRITICAL'],
|
|
3908
|
+
},
|
|
3909
|
+
value: {
|
|
3910
|
+
type: 'number',
|
|
3911
|
+
},
|
|
3912
|
+
commissionType: {
|
|
3913
|
+
type: 'string',
|
|
3914
|
+
enum: ['NOT_SET', 'FIXED', 'PERCENTAGE', 'MONTHS_OF_RENT'],
|
|
3915
|
+
},
|
|
3916
|
+
commissionValue: {
|
|
3917
|
+
type: 'number',
|
|
3918
|
+
},
|
|
3919
|
+
ownerId: {
|
|
3920
|
+
type: 'string',
|
|
3921
|
+
format: 'uuid',
|
|
3922
|
+
},
|
|
3923
|
+
primaryContactId: {
|
|
3924
|
+
type: 'integer',
|
|
3925
|
+
format: 'int64',
|
|
3926
|
+
},
|
|
3927
|
+
primaryContact: {
|
|
3928
|
+
oneOf: [
|
|
3929
|
+
{
|
|
3930
|
+
$ref: '#/components/schemas/ContactPersonalDetailsRestricted',
|
|
3931
|
+
},
|
|
3932
|
+
{
|
|
3933
|
+
$ref: '#/components/schemas/ContactPersonalDetailsVisible',
|
|
3934
|
+
},
|
|
3935
|
+
],
|
|
3936
|
+
},
|
|
3937
|
+
contactAssignedTo: {
|
|
3938
|
+
type: 'string',
|
|
3939
|
+
format: 'uuid',
|
|
3940
|
+
},
|
|
3941
|
+
primaryContent: {
|
|
3942
|
+
oneOf: [
|
|
3943
|
+
{
|
|
3944
|
+
$ref: '#/components/schemas/TaskContentInterest',
|
|
3945
|
+
},
|
|
3946
|
+
{
|
|
3947
|
+
$ref: '#/components/schemas/TaskContentProperty',
|
|
3948
|
+
},
|
|
3949
|
+
],
|
|
3950
|
+
},
|
|
3951
|
+
participants: {
|
|
3952
|
+
type: 'array',
|
|
3953
|
+
items: {
|
|
3954
|
+
type: 'string',
|
|
3955
|
+
format: 'uuid',
|
|
3956
|
+
},
|
|
3957
|
+
},
|
|
3958
|
+
rank: {
|
|
3959
|
+
type: 'string',
|
|
3960
|
+
},
|
|
3961
|
+
stageEnteredAt: {
|
|
3962
|
+
type: 'string',
|
|
3963
|
+
format: 'date-time',
|
|
3964
|
+
},
|
|
3965
|
+
daysInStage: {
|
|
3966
|
+
type: 'integer',
|
|
3967
|
+
format: 'int64',
|
|
3968
|
+
},
|
|
3969
|
+
openTodos: {
|
|
3970
|
+
type: 'integer',
|
|
3971
|
+
format: 'int64',
|
|
3972
|
+
},
|
|
3973
|
+
totalTodos: {
|
|
3974
|
+
type: 'integer',
|
|
3975
|
+
format: 'int64',
|
|
3976
|
+
},
|
|
3977
|
+
hasLeftoverOpenTodos: {
|
|
3978
|
+
type: 'boolean',
|
|
3979
|
+
},
|
|
3980
|
+
expectedCloseDate: {
|
|
3981
|
+
type: 'string',
|
|
3982
|
+
format: 'date',
|
|
3983
|
+
},
|
|
3984
|
+
outcome: {
|
|
3985
|
+
type: 'string',
|
|
3986
|
+
enum: ['WON', 'LOST'],
|
|
3987
|
+
},
|
|
3988
|
+
lostReason: {
|
|
3989
|
+
type: 'string',
|
|
3990
|
+
enum: [
|
|
3991
|
+
'NOT_WORKING_WITH_AGENTS',
|
|
3992
|
+
'NOT_RESPONDING',
|
|
3993
|
+
'ALREADY_SOLD',
|
|
3994
|
+
'COULD_NOT_NEGOTIATE_PRICE',
|
|
3995
|
+
'CHOSE_ANOTHER_AGENCY',
|
|
3996
|
+
'CHANGED_PLANS',
|
|
3997
|
+
'OUT_OF_BUDGET',
|
|
3998
|
+
'SPAM',
|
|
3999
|
+
'OTHER',
|
|
4000
|
+
],
|
|
4001
|
+
},
|
|
4002
|
+
closedAt: {
|
|
4003
|
+
type: 'string',
|
|
4004
|
+
format: 'date-time',
|
|
4005
|
+
},
|
|
4006
|
+
boardId: {
|
|
4007
|
+
type: 'string',
|
|
4008
|
+
format: 'uuid',
|
|
4009
|
+
},
|
|
4010
|
+
boardName: {
|
|
4011
|
+
type: 'string',
|
|
4012
|
+
},
|
|
4013
|
+
stageColor: {
|
|
4014
|
+
type: 'string',
|
|
4015
|
+
},
|
|
4016
|
+
primary: {
|
|
4017
|
+
type: 'boolean',
|
|
4018
|
+
},
|
|
4019
|
+
},
|
|
4020
|
+
required: [
|
|
4021
|
+
'boardId',
|
|
4022
|
+
'boardName',
|
|
4023
|
+
'commentCount',
|
|
4024
|
+
'contactCount',
|
|
4025
|
+
'daysInStage',
|
|
4026
|
+
'hasDescription',
|
|
4027
|
+
'hasLeftoverOpenTodos',
|
|
4028
|
+
'openTodos',
|
|
4029
|
+
'participants',
|
|
4030
|
+
'primary',
|
|
4031
|
+
'priority',
|
|
4032
|
+
'rank',
|
|
4033
|
+
'stageColor',
|
|
4034
|
+
'stageEnteredAt',
|
|
4035
|
+
'stageId',
|
|
4036
|
+
'stageName',
|
|
4037
|
+
'taskId',
|
|
4038
|
+
'title',
|
|
4039
|
+
'totalTodos',
|
|
4040
|
+
],
|
|
4041
|
+
};
|
|
4042
|
+
export const ContactTasksResponseSchema = {
|
|
4043
|
+
type: 'object',
|
|
4044
|
+
properties: {
|
|
4045
|
+
members: {
|
|
4046
|
+
type: 'array',
|
|
4047
|
+
items: {
|
|
4048
|
+
$ref: '#/components/schemas/MemberPeekResponse',
|
|
4049
|
+
},
|
|
4050
|
+
},
|
|
4051
|
+
items: {
|
|
4052
|
+
type: 'array',
|
|
4053
|
+
items: {
|
|
4054
|
+
$ref: '#/components/schemas/ContactTaskCardResponse',
|
|
4055
|
+
},
|
|
4056
|
+
},
|
|
4057
|
+
},
|
|
4058
|
+
required: ['items', 'members'],
|
|
4059
|
+
};
|
|
3892
4060
|
export const BoardCardsResponseSchema = {
|
|
3893
4061
|
type: 'object',
|
|
3894
4062
|
properties: {
|
|
@@ -4499,6 +4667,110 @@ export const StageStatsSchema = {
|
|
|
4499
4667
|
'value',
|
|
4500
4668
|
],
|
|
4501
4669
|
};
|
|
4670
|
+
export const MemberStatsResponseSchema = {
|
|
4671
|
+
type: 'object',
|
|
4672
|
+
properties: {
|
|
4673
|
+
member: {
|
|
4674
|
+
$ref: '#/components/schemas/MemberViewResponse',
|
|
4675
|
+
},
|
|
4676
|
+
workload: {
|
|
4677
|
+
$ref: '#/components/schemas/Workload',
|
|
4678
|
+
},
|
|
4679
|
+
outcomes: {
|
|
4680
|
+
$ref: '#/components/schemas/PipelineCommissionResponse',
|
|
4681
|
+
},
|
|
4682
|
+
},
|
|
4683
|
+
required: ['member', 'outcomes', 'workload'],
|
|
4684
|
+
};
|
|
4685
|
+
export const MemberViewResponseSchema = {
|
|
4686
|
+
type: 'object',
|
|
4687
|
+
properties: {
|
|
4688
|
+
userId: {
|
|
4689
|
+
type: 'string',
|
|
4690
|
+
},
|
|
4691
|
+
memberId: {
|
|
4692
|
+
type: 'string',
|
|
4693
|
+
format: 'uuid',
|
|
4694
|
+
},
|
|
4695
|
+
firstName: {
|
|
4696
|
+
type: 'string',
|
|
4697
|
+
},
|
|
4698
|
+
lastName: {
|
|
4699
|
+
type: 'string',
|
|
4700
|
+
},
|
|
4701
|
+
profilePictureUrl: {
|
|
4702
|
+
type: 'string',
|
|
4703
|
+
},
|
|
4704
|
+
phone: {
|
|
4705
|
+
type: 'string',
|
|
4706
|
+
},
|
|
4707
|
+
email: {
|
|
4708
|
+
type: 'string',
|
|
4709
|
+
},
|
|
4710
|
+
roleId: {
|
|
4711
|
+
type: 'integer',
|
|
4712
|
+
format: 'int32',
|
|
4713
|
+
},
|
|
4714
|
+
roleName: {
|
|
4715
|
+
type: 'string',
|
|
4716
|
+
},
|
|
4717
|
+
joinedAt: {
|
|
4718
|
+
type: 'string',
|
|
4719
|
+
format: 'date-time',
|
|
4720
|
+
},
|
|
4721
|
+
status: {
|
|
4722
|
+
type: 'string',
|
|
4723
|
+
description: 'ACTIVE, or INACTIVE for a removed member',
|
|
4724
|
+
},
|
|
4725
|
+
removedAt: {
|
|
4726
|
+
type: 'string',
|
|
4727
|
+
format: 'date-time',
|
|
4728
|
+
},
|
|
4729
|
+
isOwner: {
|
|
4730
|
+
type: 'boolean',
|
|
4731
|
+
description: "The agency's owner, who can't be removed or given a role",
|
|
4732
|
+
},
|
|
4733
|
+
isSeatLocked: {
|
|
4734
|
+
type: 'boolean',
|
|
4735
|
+
description: "Past the seats the agency's plan has after a downgrade: locked out until the owner upgrades or removes a member",
|
|
4736
|
+
},
|
|
4737
|
+
},
|
|
4738
|
+
required: [
|
|
4739
|
+
'email',
|
|
4740
|
+
'firstName',
|
|
4741
|
+
'isOwner',
|
|
4742
|
+
'isSeatLocked',
|
|
4743
|
+
'joinedAt',
|
|
4744
|
+
'lastName',
|
|
4745
|
+
'memberId',
|
|
4746
|
+
'roleId',
|
|
4747
|
+
'roleName',
|
|
4748
|
+
'status',
|
|
4749
|
+
'userId',
|
|
4750
|
+
],
|
|
4751
|
+
};
|
|
4752
|
+
export const WorkloadSchema = {
|
|
4753
|
+
type: 'object',
|
|
4754
|
+
properties: {
|
|
4755
|
+
assignedContacts: {
|
|
4756
|
+
type: 'integer',
|
|
4757
|
+
format: 'int64',
|
|
4758
|
+
},
|
|
4759
|
+
openTasks: {
|
|
4760
|
+
type: 'integer',
|
|
4761
|
+
format: 'int64',
|
|
4762
|
+
},
|
|
4763
|
+
openTasksIncludingParticipating: {
|
|
4764
|
+
type: 'integer',
|
|
4765
|
+
format: 'int64',
|
|
4766
|
+
},
|
|
4767
|
+
},
|
|
4768
|
+
required: [
|
|
4769
|
+
'assignedContacts',
|
|
4770
|
+
'openTasks',
|
|
4771
|
+
'openTasksIncludingParticipating',
|
|
4772
|
+
],
|
|
4773
|
+
};
|
|
4502
4774
|
export const ContactSegmentsResponseSchema = {
|
|
4503
4775
|
type: 'object',
|
|
4504
4776
|
properties: {
|
|
@@ -6931,63 +7203,6 @@ export const UnreadCountSchema = {
|
|
|
6931
7203
|
},
|
|
6932
7204
|
required: ['count'],
|
|
6933
7205
|
};
|
|
6934
|
-
export const MemberViewResponseSchema = {
|
|
6935
|
-
type: 'object',
|
|
6936
|
-
properties: {
|
|
6937
|
-
userId: {
|
|
6938
|
-
type: 'string',
|
|
6939
|
-
},
|
|
6940
|
-
memberId: {
|
|
6941
|
-
type: 'string',
|
|
6942
|
-
format: 'uuid',
|
|
6943
|
-
},
|
|
6944
|
-
firstName: {
|
|
6945
|
-
type: 'string',
|
|
6946
|
-
},
|
|
6947
|
-
lastName: {
|
|
6948
|
-
type: 'string',
|
|
6949
|
-
},
|
|
6950
|
-
profilePictureUrl: {
|
|
6951
|
-
type: 'string',
|
|
6952
|
-
},
|
|
6953
|
-
phone: {
|
|
6954
|
-
type: 'string',
|
|
6955
|
-
},
|
|
6956
|
-
email: {
|
|
6957
|
-
type: 'string',
|
|
6958
|
-
},
|
|
6959
|
-
roleId: {
|
|
6960
|
-
type: 'integer',
|
|
6961
|
-
format: 'int32',
|
|
6962
|
-
},
|
|
6963
|
-
roleName: {
|
|
6964
|
-
type: 'string',
|
|
6965
|
-
},
|
|
6966
|
-
joinedAt: {
|
|
6967
|
-
type: 'string',
|
|
6968
|
-
format: 'date-time',
|
|
6969
|
-
},
|
|
6970
|
-
status: {
|
|
6971
|
-
type: 'string',
|
|
6972
|
-
description: 'ACTIVE, or INACTIVE for a removed member',
|
|
6973
|
-
},
|
|
6974
|
-
removedAt: {
|
|
6975
|
-
type: 'string',
|
|
6976
|
-
format: 'date-time',
|
|
6977
|
-
},
|
|
6978
|
-
},
|
|
6979
|
-
required: [
|
|
6980
|
-
'email',
|
|
6981
|
-
'firstName',
|
|
6982
|
-
'joinedAt',
|
|
6983
|
-
'lastName',
|
|
6984
|
-
'memberId',
|
|
6985
|
-
'roleId',
|
|
6986
|
-
'roleName',
|
|
6987
|
-
'status',
|
|
6988
|
-
'userId',
|
|
6989
|
-
],
|
|
6990
|
-
};
|
|
6991
7206
|
export const PageableSchema = {
|
|
6992
7207
|
type: 'object',
|
|
6993
7208
|
properties: {
|