@homespot-sdk/core 1.0.7 → 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/sdk.gen.d.ts +5 -1
- package/dist/property/sdk.gen.d.ts.map +1 -1
- package/dist/property/sdk.gen.js +10 -1
- package/dist/property/sdk.gen.js.map +1 -1
- package/dist/property/transformers.gen.d.ts +2 -1
- package/dist/property/transformers.gen.d.ts.map +1 -1
- package/dist/property/transformers.gen.js +4 -0
- package/dist/property/transformers.gen.js.map +1 -1
- package/dist/property/types.gen.d.ts +15 -0
- package/dist/property/types.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.d.ts +31 -0
- package/dist/property/zod.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.js +11 -0
- 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 -58
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +313 -68
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +8 -1
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +28 -1
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +5 -1
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +49 -7
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +154 -21
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +849 -107
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +230 -25
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/schemas.gen.js
CHANGED
|
@@ -3413,7 +3413,24 @@ export const TodoItemSchema = {
|
|
|
3413
3413
|
},
|
|
3414
3414
|
required: ['fromTemplate', 'position', 'title', 'todoId'],
|
|
3415
3415
|
};
|
|
3416
|
-
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 = {
|
|
3417
3434
|
type: 'object',
|
|
3418
3435
|
properties: {
|
|
3419
3436
|
taskId: {
|
|
@@ -3552,8 +3569,9 @@ export const ContactTaskCardResponseSchema = {
|
|
|
3552
3569
|
stageColor: {
|
|
3553
3570
|
type: 'string',
|
|
3554
3571
|
},
|
|
3555
|
-
|
|
3556
|
-
type: '
|
|
3572
|
+
createdAt: {
|
|
3573
|
+
type: 'string',
|
|
3574
|
+
format: 'date-time',
|
|
3557
3575
|
},
|
|
3558
3576
|
},
|
|
3559
3577
|
required: [
|
|
@@ -3561,12 +3579,12 @@ export const ContactTaskCardResponseSchema = {
|
|
|
3561
3579
|
'boardName',
|
|
3562
3580
|
'commentCount',
|
|
3563
3581
|
'contactCount',
|
|
3582
|
+
'createdAt',
|
|
3564
3583
|
'daysInStage',
|
|
3565
3584
|
'hasDescription',
|
|
3566
3585
|
'hasLeftoverOpenTodos',
|
|
3567
3586
|
'openTodos',
|
|
3568
3587
|
'participants',
|
|
3569
|
-
'primary',
|
|
3570
3588
|
'priority',
|
|
3571
3589
|
'rank',
|
|
3572
3590
|
'stageColor',
|
|
@@ -3578,7 +3596,7 @@ export const ContactTaskCardResponseSchema = {
|
|
|
3578
3596
|
'totalTodos',
|
|
3579
3597
|
],
|
|
3580
3598
|
};
|
|
3581
|
-
export const
|
|
3599
|
+
export const MemberTasksResponseSchema = {
|
|
3582
3600
|
type: 'object',
|
|
3583
3601
|
properties: {
|
|
3584
3602
|
members: {
|
|
@@ -3587,14 +3605,11 @@ export const ContactTasksResponseSchema = {
|
|
|
3587
3605
|
$ref: '#/components/schemas/MemberPeekResponse',
|
|
3588
3606
|
},
|
|
3589
3607
|
},
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
items: {
|
|
3593
|
-
$ref: '#/components/schemas/ContactTaskCardResponse',
|
|
3594
|
-
},
|
|
3608
|
+
data: {
|
|
3609
|
+
$ref: '#/components/schemas/CursorPageMemberTaskCardResponse',
|
|
3595
3610
|
},
|
|
3596
3611
|
},
|
|
3597
|
-
required: ['
|
|
3612
|
+
required: ['data', 'members'],
|
|
3598
3613
|
};
|
|
3599
3614
|
export const TaskCardResponseSchema = {
|
|
3600
3615
|
type: 'object',
|
|
@@ -3859,6 +3874,189 @@ export const TaskContentPropertySchema = {
|
|
|
3859
3874
|
],
|
|
3860
3875
|
required: ['id', 'type'],
|
|
3861
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
|
+
};
|
|
3862
4060
|
export const BoardCardsResponseSchema = {
|
|
3863
4061
|
type: 'object',
|
|
3864
4062
|
properties: {
|
|
@@ -4469,6 +4667,110 @@ export const StageStatsSchema = {
|
|
|
4469
4667
|
'value',
|
|
4470
4668
|
],
|
|
4471
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
|
+
};
|
|
4472
4774
|
export const ContactSegmentsResponseSchema = {
|
|
4473
4775
|
type: 'object',
|
|
4474
4776
|
properties: {
|
|
@@ -6901,63 +7203,6 @@ export const UnreadCountSchema = {
|
|
|
6901
7203
|
},
|
|
6902
7204
|
required: ['count'],
|
|
6903
7205
|
};
|
|
6904
|
-
export const MemberViewResponseSchema = {
|
|
6905
|
-
type: 'object',
|
|
6906
|
-
properties: {
|
|
6907
|
-
userId: {
|
|
6908
|
-
type: 'string',
|
|
6909
|
-
},
|
|
6910
|
-
memberId: {
|
|
6911
|
-
type: 'string',
|
|
6912
|
-
format: 'uuid',
|
|
6913
|
-
},
|
|
6914
|
-
firstName: {
|
|
6915
|
-
type: 'string',
|
|
6916
|
-
},
|
|
6917
|
-
lastName: {
|
|
6918
|
-
type: 'string',
|
|
6919
|
-
},
|
|
6920
|
-
profilePictureUrl: {
|
|
6921
|
-
type: 'string',
|
|
6922
|
-
},
|
|
6923
|
-
phone: {
|
|
6924
|
-
type: 'string',
|
|
6925
|
-
},
|
|
6926
|
-
email: {
|
|
6927
|
-
type: 'string',
|
|
6928
|
-
},
|
|
6929
|
-
roleId: {
|
|
6930
|
-
type: 'integer',
|
|
6931
|
-
format: 'int32',
|
|
6932
|
-
},
|
|
6933
|
-
roleName: {
|
|
6934
|
-
type: 'string',
|
|
6935
|
-
},
|
|
6936
|
-
joinedAt: {
|
|
6937
|
-
type: 'string',
|
|
6938
|
-
format: 'date-time',
|
|
6939
|
-
},
|
|
6940
|
-
status: {
|
|
6941
|
-
type: 'string',
|
|
6942
|
-
description: 'ACTIVE, or INACTIVE for a removed member',
|
|
6943
|
-
},
|
|
6944
|
-
removedAt: {
|
|
6945
|
-
type: 'string',
|
|
6946
|
-
format: 'date-time',
|
|
6947
|
-
},
|
|
6948
|
-
},
|
|
6949
|
-
required: [
|
|
6950
|
-
'email',
|
|
6951
|
-
'firstName',
|
|
6952
|
-
'joinedAt',
|
|
6953
|
-
'lastName',
|
|
6954
|
-
'memberId',
|
|
6955
|
-
'roleId',
|
|
6956
|
-
'roleName',
|
|
6957
|
-
'status',
|
|
6958
|
-
'userId',
|
|
6959
|
-
],
|
|
6960
|
-
};
|
|
6961
7206
|
export const PageableSchema = {
|
|
6962
7207
|
type: 'object',
|
|
6963
7208
|
properties: {
|