@homespot-sdk/core 0.0.346 → 0.0.348
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 +102 -557
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +126 -598
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +5 -10
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +13 -43
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +5 -10
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +28 -94
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +95 -284
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +304 -845
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +99 -425
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/schemas.gen.js
CHANGED
|
@@ -2901,100 +2901,49 @@ export const StageCardsResponseSchema = {
|
|
|
2901
2901
|
},
|
|
2902
2902
|
required: ['data', 'members'],
|
|
2903
2903
|
};
|
|
2904
|
-
export const
|
|
2904
|
+
export const BucketSchema = {
|
|
2905
2905
|
type: 'object',
|
|
2906
2906
|
properties: {
|
|
2907
|
-
|
|
2908
|
-
type: 'string',
|
|
2909
|
-
format: 'uuid',
|
|
2910
|
-
},
|
|
2911
|
-
name: {
|
|
2912
|
-
type: 'string',
|
|
2913
|
-
},
|
|
2914
|
-
won: {
|
|
2915
|
-
type: 'integer',
|
|
2916
|
-
format: 'int64',
|
|
2917
|
-
},
|
|
2918
|
-
lost: {
|
|
2907
|
+
count: {
|
|
2919
2908
|
type: 'integer',
|
|
2920
2909
|
format: 'int64',
|
|
2921
2910
|
},
|
|
2922
|
-
|
|
2911
|
+
value: {
|
|
2923
2912
|
type: 'number',
|
|
2924
|
-
format: 'double',
|
|
2925
|
-
},
|
|
2926
|
-
},
|
|
2927
|
-
required: ['boardId', 'lost', 'name', 'winRatePct', 'won'],
|
|
2928
|
-
};
|
|
2929
|
-
export const MemberWinRateSchema = {
|
|
2930
|
-
type: 'object',
|
|
2931
|
-
properties: {
|
|
2932
|
-
memberId: {
|
|
2933
|
-
type: 'string',
|
|
2934
|
-
format: 'uuid',
|
|
2935
|
-
},
|
|
2936
|
-
won: {
|
|
2937
|
-
type: 'integer',
|
|
2938
|
-
format: 'int64',
|
|
2939
|
-
},
|
|
2940
|
-
lost: {
|
|
2941
|
-
type: 'integer',
|
|
2942
|
-
format: 'int64',
|
|
2943
2913
|
},
|
|
2944
|
-
|
|
2914
|
+
commission: {
|
|
2945
2915
|
type: 'number',
|
|
2946
|
-
format: 'double',
|
|
2947
2916
|
},
|
|
2948
2917
|
},
|
|
2949
|
-
required: ['
|
|
2918
|
+
required: ['commission', 'count', 'value'],
|
|
2950
2919
|
};
|
|
2951
|
-
export const
|
|
2920
|
+
export const PipelineCommissionResponseSchema = {
|
|
2952
2921
|
type: 'object',
|
|
2953
2922
|
properties: {
|
|
2954
|
-
|
|
2923
|
+
from: {
|
|
2955
2924
|
type: 'string',
|
|
2925
|
+
format: 'date',
|
|
2956
2926
|
},
|
|
2957
|
-
|
|
2927
|
+
to: {
|
|
2958
2928
|
type: 'string',
|
|
2959
|
-
format: 'date
|
|
2960
|
-
},
|
|
2961
|
-
data: {
|
|
2962
|
-
$ref: '#/components/schemas/WinRateStats',
|
|
2929
|
+
format: 'date',
|
|
2963
2930
|
},
|
|
2964
|
-
},
|
|
2965
|
-
required: ['computedAt', 'data', 'period'],
|
|
2966
|
-
};
|
|
2967
|
-
export const WinRateStatsSchema = {
|
|
2968
|
-
type: 'object',
|
|
2969
|
-
properties: {
|
|
2970
2931
|
won: {
|
|
2971
|
-
|
|
2972
|
-
format: 'int64',
|
|
2932
|
+
$ref: '#/components/schemas/Bucket',
|
|
2973
2933
|
},
|
|
2974
2934
|
lost: {
|
|
2975
|
-
|
|
2976
|
-
format: 'int64',
|
|
2977
|
-
},
|
|
2978
|
-
winRatePct: {
|
|
2979
|
-
type: 'number',
|
|
2980
|
-
format: 'double',
|
|
2935
|
+
$ref: '#/components/schemas/Bucket',
|
|
2981
2936
|
},
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
items: {
|
|
2985
|
-
$ref: '#/components/schemas/BoardWinRate',
|
|
2986
|
-
},
|
|
2937
|
+
pending: {
|
|
2938
|
+
$ref: '#/components/schemas/Bucket',
|
|
2987
2939
|
},
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
items: {
|
|
2991
|
-
$ref: '#/components/schemas/MemberWinRate',
|
|
2992
|
-
},
|
|
2940
|
+
total: {
|
|
2941
|
+
$ref: '#/components/schemas/Bucket',
|
|
2993
2942
|
},
|
|
2994
2943
|
},
|
|
2995
|
-
required: ['
|
|
2944
|
+
required: ['from', 'lost', 'pending', 'to', 'total', 'won'],
|
|
2996
2945
|
};
|
|
2997
|
-
export const
|
|
2946
|
+
export const BoardStatsResponseSchema = {
|
|
2998
2947
|
type: 'object',
|
|
2999
2948
|
properties: {
|
|
3000
2949
|
boardId: {
|
|
@@ -3004,660 +2953,239 @@ export const StageVelocitySchema = {
|
|
|
3004
2953
|
boardName: {
|
|
3005
2954
|
type: 'string',
|
|
3006
2955
|
},
|
|
3007
|
-
|
|
3008
|
-
type: 'string',
|
|
3009
|
-
format: 'uuid',
|
|
3010
|
-
},
|
|
3011
|
-
stageName: {
|
|
2956
|
+
from: {
|
|
3012
2957
|
type: 'string',
|
|
2958
|
+
format: 'date',
|
|
3013
2959
|
},
|
|
3014
|
-
|
|
3015
|
-
type: 'integer',
|
|
3016
|
-
format: 'int32',
|
|
3017
|
-
},
|
|
3018
|
-
avgDaysInStage: {
|
|
3019
|
-
type: 'number',
|
|
3020
|
-
format: 'double',
|
|
3021
|
-
},
|
|
3022
|
-
samples: {
|
|
3023
|
-
type: 'integer',
|
|
3024
|
-
format: 'int64',
|
|
3025
|
-
description: 'Completed stays measured',
|
|
3026
|
-
},
|
|
3027
|
-
},
|
|
3028
|
-
required: [
|
|
3029
|
-
'avgDaysInStage',
|
|
3030
|
-
'boardId',
|
|
3031
|
-
'boardName',
|
|
3032
|
-
'position',
|
|
3033
|
-
'samples',
|
|
3034
|
-
'stageId',
|
|
3035
|
-
'stageName',
|
|
3036
|
-
],
|
|
3037
|
-
};
|
|
3038
|
-
export const StatsEnvelopeTaskVelocityStatsSchema = {
|
|
3039
|
-
type: 'object',
|
|
3040
|
-
properties: {
|
|
3041
|
-
period: {
|
|
2960
|
+
to: {
|
|
3042
2961
|
type: 'string',
|
|
2962
|
+
format: 'date',
|
|
3043
2963
|
},
|
|
3044
|
-
|
|
2964
|
+
granularity: {
|
|
3045
2965
|
type: 'string',
|
|
3046
|
-
|
|
2966
|
+
enum: ['DAY', 'WEEK', 'MONTH'],
|
|
3047
2967
|
},
|
|
3048
|
-
|
|
3049
|
-
$ref: '#/components/schemas/TaskVelocityStats',
|
|
3050
|
-
},
|
|
3051
|
-
},
|
|
3052
|
-
required: ['computedAt', 'data', 'period'],
|
|
3053
|
-
};
|
|
3054
|
-
export const TaskVelocityStatsSchema = {
|
|
3055
|
-
type: 'object',
|
|
3056
|
-
properties: {
|
|
3057
|
-
stages: {
|
|
2968
|
+
buckets: {
|
|
3058
2969
|
type: 'array',
|
|
3059
2970
|
items: {
|
|
3060
|
-
|
|
2971
|
+
type: 'string',
|
|
2972
|
+
format: 'date',
|
|
3061
2973
|
},
|
|
3062
2974
|
},
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
};
|
|
3066
|
-
export const BoardFunnelSchema = {
|
|
3067
|
-
type: 'object',
|
|
3068
|
-
properties: {
|
|
3069
|
-
boardId: {
|
|
3070
|
-
type: 'string',
|
|
3071
|
-
format: 'uuid',
|
|
3072
|
-
},
|
|
3073
|
-
name: {
|
|
3074
|
-
type: 'string',
|
|
3075
|
-
},
|
|
3076
|
-
kind: {
|
|
3077
|
-
type: 'string',
|
|
2975
|
+
outcomes: {
|
|
2976
|
+
$ref: '#/components/schemas/Outcomes',
|
|
3078
2977
|
},
|
|
3079
2978
|
stages: {
|
|
3080
2979
|
type: 'array',
|
|
3081
2980
|
items: {
|
|
3082
|
-
$ref: '#/components/schemas/
|
|
2981
|
+
$ref: '#/components/schemas/StageStats',
|
|
3083
2982
|
},
|
|
3084
2983
|
},
|
|
3085
2984
|
},
|
|
3086
|
-
required: [
|
|
2985
|
+
required: [
|
|
2986
|
+
'boardId',
|
|
2987
|
+
'boardName',
|
|
2988
|
+
'buckets',
|
|
2989
|
+
'from',
|
|
2990
|
+
'granularity',
|
|
2991
|
+
'outcomes',
|
|
2992
|
+
'stages',
|
|
2993
|
+
'to',
|
|
2994
|
+
],
|
|
3087
2995
|
};
|
|
3088
|
-
export const
|
|
2996
|
+
export const OutcomeBucketSchema = {
|
|
3089
2997
|
type: 'object',
|
|
3090
2998
|
properties: {
|
|
3091
|
-
|
|
3092
|
-
type: 'string',
|
|
3093
|
-
format: 'uuid',
|
|
3094
|
-
},
|
|
3095
|
-
name: {
|
|
3096
|
-
type: 'string',
|
|
3097
|
-
},
|
|
3098
|
-
position: {
|
|
3099
|
-
type: 'integer',
|
|
3100
|
-
format: 'int32',
|
|
3101
|
-
},
|
|
3102
|
-
openTasks: {
|
|
2999
|
+
count: {
|
|
3103
3000
|
type: 'integer',
|
|
3104
3001
|
format: 'int64',
|
|
3105
3002
|
},
|
|
3106
|
-
|
|
3003
|
+
share: {
|
|
3107
3004
|
type: 'number',
|
|
3005
|
+
format: 'double',
|
|
3108
3006
|
},
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
};
|
|
3112
|
-
export const StatsEnvelopeTaskFunnelStatsSchema = {
|
|
3113
|
-
type: 'object',
|
|
3114
|
-
properties: {
|
|
3115
|
-
period: {
|
|
3116
|
-
type: 'string',
|
|
3117
|
-
},
|
|
3118
|
-
computedAt: {
|
|
3119
|
-
type: 'string',
|
|
3120
|
-
format: 'date-time',
|
|
3121
|
-
},
|
|
3122
|
-
data: {
|
|
3123
|
-
$ref: '#/components/schemas/TaskFunnelStats',
|
|
3124
|
-
},
|
|
3125
|
-
},
|
|
3126
|
-
required: ['computedAt', 'data', 'period'],
|
|
3127
|
-
};
|
|
3128
|
-
export const TaskFunnelStatsSchema = {
|
|
3129
|
-
type: 'object',
|
|
3130
|
-
properties: {
|
|
3131
|
-
boards: {
|
|
3132
|
-
type: 'array',
|
|
3133
|
-
items: {
|
|
3134
|
-
$ref: '#/components/schemas/BoardFunnel',
|
|
3135
|
-
},
|
|
3007
|
+
value: {
|
|
3008
|
+
type: 'number',
|
|
3136
3009
|
},
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
};
|
|
3140
|
-
export const DealTypePriceSchema = {
|
|
3141
|
-
type: 'object',
|
|
3142
|
-
properties: {
|
|
3143
|
-
listingType: {
|
|
3144
|
-
type: 'string',
|
|
3145
|
-
enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
|
|
3010
|
+
commission: {
|
|
3011
|
+
type: 'number',
|
|
3146
3012
|
},
|
|
3147
|
-
|
|
3013
|
+
spark: {
|
|
3148
3014
|
type: 'array',
|
|
3149
3015
|
items: {
|
|
3150
|
-
|
|
3016
|
+
type: 'integer',
|
|
3017
|
+
format: 'int64',
|
|
3151
3018
|
},
|
|
3152
3019
|
},
|
|
3153
3020
|
},
|
|
3021
|
+
required: ['commission', 'count', 'share', 'spark', 'value'],
|
|
3154
3022
|
};
|
|
3155
|
-
export const
|
|
3156
|
-
type: 'object',
|
|
3157
|
-
properties: {
|
|
3158
|
-
location: {
|
|
3159
|
-
$ref: '#/components/schemas/LocationResponse',
|
|
3160
|
-
},
|
|
3161
|
-
count: {
|
|
3162
|
-
type: 'integer',
|
|
3163
|
-
format: 'int64',
|
|
3164
|
-
},
|
|
3165
|
-
},
|
|
3166
|
-
};
|
|
3167
|
-
export const SliceSchema = {
|
|
3023
|
+
export const OutcomesSchema = {
|
|
3168
3024
|
type: 'object',
|
|
3169
3025
|
properties: {
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
},
|
|
3173
|
-
count: {
|
|
3174
|
-
type: 'integer',
|
|
3175
|
-
format: 'int64',
|
|
3176
|
-
},
|
|
3177
|
-
},
|
|
3178
|
-
required: ['count', 'key'],
|
|
3179
|
-
};
|
|
3180
|
-
export const StatsEnvelopeSupplyStatsSchema = {
|
|
3181
|
-
type: 'object',
|
|
3182
|
-
properties: {
|
|
3183
|
-
period: {
|
|
3184
|
-
type: 'string',
|
|
3185
|
-
},
|
|
3186
|
-
computedAt: {
|
|
3187
|
-
type: 'string',
|
|
3188
|
-
format: 'date-time',
|
|
3189
|
-
},
|
|
3190
|
-
data: {
|
|
3191
|
-
$ref: '#/components/schemas/SupplyStats',
|
|
3192
|
-
},
|
|
3193
|
-
},
|
|
3194
|
-
required: ['computedAt', 'data', 'period'],
|
|
3195
|
-
};
|
|
3196
|
-
export const SupplyStatsSchema = {
|
|
3197
|
-
type: 'object',
|
|
3198
|
-
properties: {
|
|
3199
|
-
activeListings: {
|
|
3200
|
-
type: 'integer',
|
|
3201
|
-
format: 'int64',
|
|
3202
|
-
},
|
|
3203
|
-
byListingType: {
|
|
3204
|
-
type: 'array',
|
|
3205
|
-
items: {
|
|
3206
|
-
$ref: '#/components/schemas/Slice',
|
|
3207
|
-
},
|
|
3026
|
+
won: {
|
|
3027
|
+
$ref: '#/components/schemas/OutcomeBucket',
|
|
3208
3028
|
},
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
items: {
|
|
3212
|
-
$ref: '#/components/schemas/Slice',
|
|
3213
|
-
},
|
|
3029
|
+
lost: {
|
|
3030
|
+
$ref: '#/components/schemas/OutcomeBucket',
|
|
3214
3031
|
},
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
items: {
|
|
3218
|
-
$ref: '#/components/schemas/DealTypePrice',
|
|
3219
|
-
},
|
|
3032
|
+
pending: {
|
|
3033
|
+
$ref: '#/components/schemas/OutcomeBucket',
|
|
3220
3034
|
},
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
items: {
|
|
3224
|
-
$ref: '#/components/schemas/LocationCount',
|
|
3225
|
-
},
|
|
3035
|
+
total: {
|
|
3036
|
+
$ref: '#/components/schemas/OutcomeBucket',
|
|
3226
3037
|
},
|
|
3227
3038
|
},
|
|
3039
|
+
required: ['lost', 'pending', 'total', 'won'],
|
|
3228
3040
|
};
|
|
3229
|
-
export const
|
|
3041
|
+
export const StageStatsSchema = {
|
|
3230
3042
|
type: 'object',
|
|
3231
3043
|
properties: {
|
|
3232
|
-
|
|
3233
|
-
type: 'integer',
|
|
3234
|
-
format: 'int64',
|
|
3235
|
-
},
|
|
3236
|
-
externalId: {
|
|
3044
|
+
stageId: {
|
|
3237
3045
|
type: 'string',
|
|
3238
3046
|
format: 'uuid',
|
|
3239
3047
|
},
|
|
3240
|
-
|
|
3048
|
+
name: {
|
|
3241
3049
|
type: 'string',
|
|
3242
3050
|
},
|
|
3243
|
-
|
|
3244
|
-
type: 'string',
|
|
3245
|
-
format: 'date',
|
|
3246
|
-
},
|
|
3247
|
-
},
|
|
3248
|
-
};
|
|
3249
|
-
export const ExpiringPlatformListingSchema = {
|
|
3250
|
-
type: 'object',
|
|
3251
|
-
properties: {
|
|
3252
|
-
platform: {
|
|
3051
|
+
color: {
|
|
3253
3052
|
type: 'string',
|
|
3254
|
-
enum: ['SS', 'MY_HOME'],
|
|
3255
3053
|
},
|
|
3256
|
-
|
|
3054
|
+
position: {
|
|
3257
3055
|
type: 'integer',
|
|
3258
|
-
format: '
|
|
3259
|
-
},
|
|
3260
|
-
propertyTitle: {
|
|
3261
|
-
type: 'string',
|
|
3262
|
-
},
|
|
3263
|
-
expiresAt: {
|
|
3264
|
-
type: 'string',
|
|
3265
|
-
format: 'date',
|
|
3266
|
-
},
|
|
3267
|
-
},
|
|
3268
|
-
};
|
|
3269
|
-
export const ListingTypeAggSchema = {
|
|
3270
|
-
type: 'object',
|
|
3271
|
-
properties: {
|
|
3272
|
-
listingType: {
|
|
3273
|
-
type: 'string',
|
|
3274
|
-
enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
|
|
3056
|
+
format: 'int32',
|
|
3275
3057
|
},
|
|
3276
|
-
|
|
3058
|
+
openCount: {
|
|
3277
3059
|
type: 'integer',
|
|
3278
3060
|
format: 'int64',
|
|
3279
3061
|
},
|
|
3280
|
-
|
|
3062
|
+
value: {
|
|
3281
3063
|
type: 'number',
|
|
3282
3064
|
},
|
|
3283
|
-
|
|
3065
|
+
commission: {
|
|
3284
3066
|
type: 'number',
|
|
3285
3067
|
},
|
|
3286
|
-
|
|
3287
|
-
};
|
|
3288
|
-
export const PortfolioStatsSchema = {
|
|
3289
|
-
type: 'object',
|
|
3290
|
-
properties: {
|
|
3291
|
-
propertiesByState: {
|
|
3292
|
-
type: 'array',
|
|
3293
|
-
items: {
|
|
3294
|
-
$ref: '#/components/schemas/Slice',
|
|
3295
|
-
},
|
|
3296
|
-
},
|
|
3297
|
-
listings: {
|
|
3298
|
-
type: 'array',
|
|
3299
|
-
items: {
|
|
3300
|
-
$ref: '#/components/schemas/ListingTypeAgg',
|
|
3301
|
-
},
|
|
3302
|
-
},
|
|
3303
|
-
expiringAgreementsCount: {
|
|
3068
|
+
avgAgeSeconds: {
|
|
3304
3069
|
type: 'integer',
|
|
3305
3070
|
format: 'int64',
|
|
3306
3071
|
},
|
|
3307
|
-
expiringAgreements: {
|
|
3308
|
-
type: 'array',
|
|
3309
|
-
items: {
|
|
3310
|
-
$ref: '#/components/schemas/ExpiringAgreement',
|
|
3311
|
-
},
|
|
3312
|
-
},
|
|
3313
|
-
expiringPlatformCount: {
|
|
3314
|
-
type: 'integer',
|
|
3315
|
-
format: 'int64',
|
|
3316
|
-
},
|
|
3317
|
-
expiringPlatformListings: {
|
|
3318
|
-
type: 'array',
|
|
3319
|
-
items: {
|
|
3320
|
-
$ref: '#/components/schemas/ExpiringPlatformListing',
|
|
3321
|
-
},
|
|
3322
|
-
},
|
|
3323
3072
|
},
|
|
3324
3073
|
required: [
|
|
3325
|
-
'
|
|
3326
|
-
'
|
|
3327
|
-
'
|
|
3328
|
-
'
|
|
3329
|
-
'
|
|
3330
|
-
'
|
|
3074
|
+
'color',
|
|
3075
|
+
'commission',
|
|
3076
|
+
'name',
|
|
3077
|
+
'openCount',
|
|
3078
|
+
'position',
|
|
3079
|
+
'stageId',
|
|
3080
|
+
'value',
|
|
3331
3081
|
],
|
|
3332
3082
|
};
|
|
3333
|
-
export const
|
|
3083
|
+
export const ContactSegmentsResponseSchema = {
|
|
3334
3084
|
type: 'object',
|
|
3335
3085
|
properties: {
|
|
3336
|
-
|
|
3086
|
+
from: {
|
|
3337
3087
|
type: 'string',
|
|
3088
|
+
format: 'date',
|
|
3338
3089
|
},
|
|
3339
|
-
|
|
3090
|
+
to: {
|
|
3340
3091
|
type: 'string',
|
|
3341
|
-
format: 'date
|
|
3342
|
-
},
|
|
3343
|
-
data: {
|
|
3344
|
-
$ref: '#/components/schemas/PortfolioStats',
|
|
3345
|
-
},
|
|
3346
|
-
},
|
|
3347
|
-
required: ['computedAt', 'data', 'period'],
|
|
3348
|
-
};
|
|
3349
|
-
export const PipelineStatsSchema = {
|
|
3350
|
-
type: 'object',
|
|
3351
|
-
properties: {
|
|
3352
|
-
total: {
|
|
3353
|
-
type: 'integer',
|
|
3354
|
-
format: 'int64',
|
|
3355
|
-
},
|
|
3356
|
-
unassigned: {
|
|
3357
|
-
type: 'integer',
|
|
3358
|
-
format: 'int64',
|
|
3359
|
-
},
|
|
3360
|
-
newContactsTrend: {
|
|
3361
|
-
type: 'array',
|
|
3362
|
-
items: {
|
|
3363
|
-
$ref: '#/components/schemas/TrendPoint',
|
|
3364
|
-
},
|
|
3092
|
+
format: 'date',
|
|
3365
3093
|
},
|
|
3366
|
-
|
|
3094
|
+
segments: {
|
|
3367
3095
|
type: 'array',
|
|
3368
3096
|
items: {
|
|
3369
|
-
$ref: '#/components/schemas/
|
|
3097
|
+
$ref: '#/components/schemas/Segment',
|
|
3370
3098
|
},
|
|
3371
3099
|
},
|
|
3372
|
-
|
|
3373
|
-
required: ['newContactsTrend', 'sourceAttribution', 'total', 'unassigned'],
|
|
3374
|
-
};
|
|
3375
|
-
export const StatsEnvelopePipelineStatsSchema = {
|
|
3376
|
-
type: 'object',
|
|
3377
|
-
properties: {
|
|
3378
|
-
period: {
|
|
3379
|
-
type: 'string',
|
|
3380
|
-
},
|
|
3381
|
-
computedAt: {
|
|
3382
|
-
type: 'string',
|
|
3383
|
-
format: 'date-time',
|
|
3384
|
-
},
|
|
3385
|
-
data: {
|
|
3386
|
-
$ref: '#/components/schemas/PipelineStats',
|
|
3387
|
-
},
|
|
3388
|
-
},
|
|
3389
|
-
required: ['computedAt', 'data', 'period'],
|
|
3390
|
-
};
|
|
3391
|
-
export const TrendPointSchema = {
|
|
3392
|
-
type: 'object',
|
|
3393
|
-
properties: {
|
|
3394
|
-
date: {
|
|
3395
|
-
type: 'string',
|
|
3396
|
-
format: 'date',
|
|
3397
|
-
},
|
|
3398
|
-
count: {
|
|
3100
|
+
total: {
|
|
3399
3101
|
type: 'integer',
|
|
3400
3102
|
format: 'int64',
|
|
3401
3103
|
},
|
|
3402
3104
|
},
|
|
3105
|
+
required: ['from', 'segments', 'to', 'total'],
|
|
3403
3106
|
};
|
|
3404
|
-
export const
|
|
3107
|
+
export const SegmentSchema = {
|
|
3405
3108
|
type: 'object',
|
|
3406
3109
|
properties: {
|
|
3407
|
-
|
|
3408
|
-
type: 'array',
|
|
3409
|
-
items: {
|
|
3410
|
-
$ref: '#/components/schemas/Row',
|
|
3411
|
-
},
|
|
3412
|
-
},
|
|
3413
|
-
},
|
|
3414
|
-
required: ['rows'],
|
|
3415
|
-
};
|
|
3416
|
-
export const RowSchema = {
|
|
3417
|
-
type: 'object',
|
|
3418
|
-
properties: {
|
|
3419
|
-
memberId: {
|
|
3420
|
-
type: 'string',
|
|
3421
|
-
format: 'uuid',
|
|
3422
|
-
},
|
|
3423
|
-
firstName: {
|
|
3424
|
-
type: 'string',
|
|
3425
|
-
},
|
|
3426
|
-
lastName: {
|
|
3427
|
-
type: 'string',
|
|
3428
|
-
},
|
|
3429
|
-
photo: {
|
|
3110
|
+
kind: {
|
|
3430
3111
|
type: 'string',
|
|
3112
|
+
enum: ['LISTER_ONLY', 'SEEKER_ONLY', 'BOTH', 'NEITHER'],
|
|
3431
3113
|
},
|
|
3432
|
-
|
|
3433
|
-
type: 'integer',
|
|
3434
|
-
format: 'int64',
|
|
3435
|
-
},
|
|
3436
|
-
wonValue: {
|
|
3437
|
-
type: 'number',
|
|
3438
|
-
},
|
|
3439
|
-
commission: {
|
|
3440
|
-
type: 'number',
|
|
3441
|
-
description: 'Fixed amount, or rate/factor × task value (null-value tasks skipped)',
|
|
3442
|
-
},
|
|
3443
|
-
recommendationsSent: {
|
|
3444
|
-
type: 'integer',
|
|
3445
|
-
format: 'int64',
|
|
3446
|
-
},
|
|
3447
|
-
recommendationsRated: {
|
|
3114
|
+
count: {
|
|
3448
3115
|
type: 'integer',
|
|
3449
3116
|
format: 'int64',
|
|
3450
3117
|
},
|
|
3451
|
-
|
|
3118
|
+
share: {
|
|
3452
3119
|
type: 'number',
|
|
3453
3120
|
format: 'double',
|
|
3454
3121
|
},
|
|
3455
3122
|
},
|
|
3456
|
-
required: [
|
|
3457
|
-
'commission',
|
|
3458
|
-
'firstName',
|
|
3459
|
-
'lastName',
|
|
3460
|
-
'likeRatePct',
|
|
3461
|
-
'memberId',
|
|
3462
|
-
'photo',
|
|
3463
|
-
'recommendationsRated',
|
|
3464
|
-
'recommendationsSent',
|
|
3465
|
-
'tasksWon',
|
|
3466
|
-
'wonValue',
|
|
3467
|
-
],
|
|
3468
|
-
};
|
|
3469
|
-
export const StatsEnvelopeLeaderboardStatsSchema = {
|
|
3470
|
-
type: 'object',
|
|
3471
|
-
properties: {
|
|
3472
|
-
period: {
|
|
3473
|
-
type: 'string',
|
|
3474
|
-
},
|
|
3475
|
-
computedAt: {
|
|
3476
|
-
type: 'string',
|
|
3477
|
-
format: 'date-time',
|
|
3478
|
-
},
|
|
3479
|
-
data: {
|
|
3480
|
-
$ref: '#/components/schemas/LeaderboardStats',
|
|
3481
|
-
},
|
|
3482
|
-
},
|
|
3483
|
-
required: ['computedAt', 'data', 'period'],
|
|
3123
|
+
required: ['count', 'kind', 'share'],
|
|
3484
3124
|
};
|
|
3485
|
-
export const
|
|
3125
|
+
export const ChannelSeriesSchema = {
|
|
3486
3126
|
type: 'object',
|
|
3487
3127
|
properties: {
|
|
3488
|
-
|
|
3489
|
-
type: 'string',
|
|
3490
|
-
format: 'uuid',
|
|
3491
|
-
},
|
|
3492
|
-
contactId: {
|
|
3493
|
-
type: 'integer',
|
|
3494
|
-
format: 'int64',
|
|
3495
|
-
},
|
|
3496
|
-
firstName: {
|
|
3128
|
+
channel: {
|
|
3497
3129
|
type: 'string',
|
|
3130
|
+
enum: [
|
|
3131
|
+
'MY_HOME',
|
|
3132
|
+
'SS',
|
|
3133
|
+
'HOME_SPOT',
|
|
3134
|
+
'AGENCY_MEMBER',
|
|
3135
|
+
'FACEBOOK',
|
|
3136
|
+
'INSTAGRAM',
|
|
3137
|
+
'WHATSAPP',
|
|
3138
|
+
'UNKNOWN',
|
|
3139
|
+
],
|
|
3498
3140
|
},
|
|
3499
|
-
|
|
3500
|
-
type: 'string',
|
|
3501
|
-
},
|
|
3502
|
-
channelType: {
|
|
3503
|
-
type: 'string',
|
|
3504
|
-
enum: ['FACEBOOK', 'INSTAGRAM', 'WHATSAPP'],
|
|
3505
|
-
},
|
|
3506
|
-
lastMessagePreview: {
|
|
3507
|
-
type: 'string',
|
|
3508
|
-
},
|
|
3509
|
-
lastInboundAt: {
|
|
3510
|
-
type: 'string',
|
|
3511
|
-
format: 'date-time',
|
|
3512
|
-
},
|
|
3513
|
-
unreadCount: {
|
|
3514
|
-
type: 'integer',
|
|
3515
|
-
format: 'int32',
|
|
3516
|
-
},
|
|
3517
|
-
reachable: {
|
|
3518
|
-
type: 'boolean',
|
|
3519
|
-
},
|
|
3520
|
-
},
|
|
3521
|
-
required: [
|
|
3522
|
-
'channelType',
|
|
3523
|
-
'contactId',
|
|
3524
|
-
'conversationId',
|
|
3525
|
-
'lastInboundAt',
|
|
3526
|
-
'lastMessagePreview',
|
|
3527
|
-
'reachable',
|
|
3528
|
-
'unreadCount',
|
|
3529
|
-
],
|
|
3530
|
-
};
|
|
3531
|
-
export const InboxStatsSchema = {
|
|
3532
|
-
type: 'object',
|
|
3533
|
-
properties: {
|
|
3534
|
-
openConversations: {
|
|
3535
|
-
type: 'integer',
|
|
3536
|
-
format: 'int64',
|
|
3537
|
-
},
|
|
3538
|
-
unreadMessages: {
|
|
3539
|
-
type: 'integer',
|
|
3540
|
-
format: 'int64',
|
|
3541
|
-
},
|
|
3542
|
-
newConversations: {
|
|
3543
|
-
type: 'integer',
|
|
3544
|
-
format: 'int64',
|
|
3545
|
-
},
|
|
3546
|
-
awaitingReplyCount: {
|
|
3547
|
-
type: 'integer',
|
|
3548
|
-
format: 'int64',
|
|
3549
|
-
},
|
|
3550
|
-
awaitingUnreachableCount: {
|
|
3551
|
-
type: 'integer',
|
|
3552
|
-
format: 'int64',
|
|
3553
|
-
},
|
|
3554
|
-
awaitingReply: {
|
|
3141
|
+
points: {
|
|
3555
3142
|
type: 'array',
|
|
3556
3143
|
items: {
|
|
3557
|
-
|
|
3144
|
+
type: 'integer',
|
|
3145
|
+
format: 'int64',
|
|
3558
3146
|
},
|
|
3559
3147
|
},
|
|
3560
|
-
|
|
3148
|
+
total: {
|
|
3561
3149
|
type: 'integer',
|
|
3562
3150
|
format: 'int64',
|
|
3563
3151
|
},
|
|
3564
|
-
inboundByChannel: {
|
|
3565
|
-
type: 'array',
|
|
3566
|
-
items: {
|
|
3567
|
-
$ref: '#/components/schemas/Slice',
|
|
3568
|
-
},
|
|
3569
|
-
},
|
|
3570
3152
|
},
|
|
3571
|
-
required: [
|
|
3572
|
-
'awaitingReply',
|
|
3573
|
-
'awaitingReplyCount',
|
|
3574
|
-
'awaitingUnreachableCount',
|
|
3575
|
-
'inboundByChannel',
|
|
3576
|
-
'medianResponseSeconds',
|
|
3577
|
-
'newConversations',
|
|
3578
|
-
'openConversations',
|
|
3579
|
-
'unreadMessages',
|
|
3580
|
-
],
|
|
3153
|
+
required: ['channel', 'points', 'total'],
|
|
3581
3154
|
};
|
|
3582
|
-
export const
|
|
3155
|
+
export const ContactAcquisitionResponseSchema = {
|
|
3583
3156
|
type: 'object',
|
|
3584
3157
|
properties: {
|
|
3585
|
-
|
|
3158
|
+
from: {
|
|
3586
3159
|
type: 'string',
|
|
3160
|
+
format: 'date',
|
|
3587
3161
|
},
|
|
3588
|
-
|
|
3162
|
+
to: {
|
|
3589
3163
|
type: 'string',
|
|
3590
|
-
format: 'date
|
|
3591
|
-
},
|
|
3592
|
-
data: {
|
|
3593
|
-
$ref: '#/components/schemas/InboxStats',
|
|
3164
|
+
format: 'date',
|
|
3594
3165
|
},
|
|
3595
|
-
|
|
3596
|
-
required: ['computedAt', 'data', 'period'],
|
|
3597
|
-
};
|
|
3598
|
-
export const DealTypeBudgetSchema = {
|
|
3599
|
-
type: 'object',
|
|
3600
|
-
properties: {
|
|
3601
|
-
listingType: {
|
|
3166
|
+
granularity: {
|
|
3602
3167
|
type: 'string',
|
|
3603
|
-
enum: ['
|
|
3168
|
+
enum: ['DAY', 'WEEK', 'MONTH'],
|
|
3604
3169
|
},
|
|
3605
3170
|
buckets: {
|
|
3606
3171
|
type: 'array',
|
|
3607
3172
|
items: {
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
},
|
|
3611
|
-
},
|
|
3612
|
-
};
|
|
3613
|
-
export const DemandStatsSchema = {
|
|
3614
|
-
type: 'object',
|
|
3615
|
-
properties: {
|
|
3616
|
-
activeInterests: {
|
|
3617
|
-
type: 'integer',
|
|
3618
|
-
format: 'int64',
|
|
3619
|
-
},
|
|
3620
|
-
byListingType: {
|
|
3621
|
-
type: 'array',
|
|
3622
|
-
items: {
|
|
3623
|
-
$ref: '#/components/schemas/Slice',
|
|
3624
|
-
},
|
|
3625
|
-
},
|
|
3626
|
-
byPropertyType: {
|
|
3627
|
-
type: 'array',
|
|
3628
|
-
items: {
|
|
3629
|
-
$ref: '#/components/schemas/Slice',
|
|
3630
|
-
},
|
|
3631
|
-
},
|
|
3632
|
-
budgetByDealType: {
|
|
3633
|
-
type: 'array',
|
|
3634
|
-
items: {
|
|
3635
|
-
$ref: '#/components/schemas/DealTypeBudget',
|
|
3173
|
+
type: 'string',
|
|
3174
|
+
format: 'date',
|
|
3636
3175
|
},
|
|
3637
3176
|
},
|
|
3638
|
-
|
|
3177
|
+
series: {
|
|
3639
3178
|
type: 'array',
|
|
3640
3179
|
items: {
|
|
3641
|
-
$ref: '#/components/schemas/
|
|
3180
|
+
$ref: '#/components/schemas/ChannelSeries',
|
|
3642
3181
|
},
|
|
3643
3182
|
},
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
type: 'object',
|
|
3648
|
-
properties: {
|
|
3649
|
-
period: {
|
|
3650
|
-
type: 'string',
|
|
3651
|
-
},
|
|
3652
|
-
computedAt: {
|
|
3653
|
-
type: 'string',
|
|
3654
|
-
format: 'date-time',
|
|
3655
|
-
},
|
|
3656
|
-
data: {
|
|
3657
|
-
$ref: '#/components/schemas/DemandStats',
|
|
3183
|
+
total: {
|
|
3184
|
+
type: 'integer',
|
|
3185
|
+
format: 'int64',
|
|
3658
3186
|
},
|
|
3659
3187
|
},
|
|
3660
|
-
required: ['
|
|
3188
|
+
required: ['buckets', 'from', 'granularity', 'series', 'to', 'total'],
|
|
3661
3189
|
};
|
|
3662
3190
|
export const PageMetadataSchema = {
|
|
3663
3191
|
type: 'object',
|