@homespot-sdk/core 0.0.345 → 0.0.347

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.
Files changed (61) hide show
  1. package/dist/property/schemas.gen.d.ts +4 -0
  2. package/dist/property/schemas.gen.d.ts.map +1 -1
  3. package/dist/property/schemas.gen.js +4 -0
  4. package/dist/property/schemas.gen.js.map +1 -1
  5. package/dist/property/types.gen.d.ts +1 -0
  6. package/dist/property/types.gen.d.ts.map +1 -1
  7. package/dist/property/zod.gen.d.ts +3 -0
  8. package/dist/property/zod.gen.d.ts.map +1 -1
  9. package/dist/property/zod.gen.js +8 -0
  10. package/dist/property/zod.gen.js.map +1 -1
  11. package/dist/registration/schemas.gen.d.ts +4 -0
  12. package/dist/registration/schemas.gen.d.ts.map +1 -1
  13. package/dist/registration/schemas.gen.js +4 -0
  14. package/dist/registration/schemas.gen.js.map +1 -1
  15. package/dist/registration/types.gen.d.ts +1 -0
  16. package/dist/registration/types.gen.d.ts.map +1 -1
  17. package/dist/registration/zod.gen.d.ts +3 -0
  18. package/dist/registration/zod.gen.d.ts.map +1 -1
  19. package/dist/registration/zod.gen.js +8 -0
  20. package/dist/registration/zod.gen.js.map +1 -1
  21. package/dist/rem/index.d.ts +2 -2
  22. package/dist/rem/index.d.ts.map +1 -1
  23. package/dist/rem/index.js +1 -1
  24. package/dist/rem/index.js.map +1 -1
  25. package/dist/rem/schemas.gen.d.ts +151 -865
  26. package/dist/rem/schemas.gen.d.ts.map +1 -1
  27. package/dist/rem/schemas.gen.js +124 -880
  28. package/dist/rem/schemas.gen.js.map +1 -1
  29. package/dist/rem/sdk.gen.d.ts +6 -18
  30. package/dist/rem/sdk.gen.d.ts.map +1 -1
  31. package/dist/rem/sdk.gen.js +20 -96
  32. package/dist/rem/sdk.gen.js.map +1 -1
  33. package/dist/rem/transformers.gen.d.ts +4 -12
  34. package/dist/rem/transformers.gen.d.ts.map +1 -1
  35. package/dist/rem/transformers.gen.js +24 -113
  36. package/dist/rem/transformers.gen.js.map +1 -1
  37. package/dist/rem/types.gen.d.ts +100 -480
  38. package/dist/rem/types.gen.d.ts.map +1 -1
  39. package/dist/rem/zod.gen.d.ts +1244 -2109
  40. package/dist/rem/zod.gen.d.ts.map +1 -1
  41. package/dist/rem/zod.gen.js +140 -660
  42. package/dist/rem/zod.gen.js.map +1 -1
  43. package/dist/utils/index.d.ts +2 -2
  44. package/dist/utils/index.d.ts.map +1 -1
  45. package/dist/utils/index.js +1 -1
  46. package/dist/utils/index.js.map +1 -1
  47. package/dist/utils/schemas.gen.d.ts +27 -0
  48. package/dist/utils/schemas.gen.d.ts.map +1 -1
  49. package/dist/utils/schemas.gen.js +27 -0
  50. package/dist/utils/schemas.gen.js.map +1 -1
  51. package/dist/utils/sdk.gen.d.ts +2 -2
  52. package/dist/utils/sdk.gen.d.ts.map +1 -1
  53. package/dist/utils/sdk.gen.js +1 -4
  54. package/dist/utils/sdk.gen.js.map +1 -1
  55. package/dist/utils/types.gen.d.ts +26 -12
  56. package/dist/utils/types.gen.d.ts.map +1 -1
  57. package/dist/utils/zod.gen.d.ts +27 -8
  58. package/dist/utils/zod.gen.d.ts.map +1 -1
  59. package/dist/utils/zod.gen.js +70 -7
  60. package/dist/utils/zod.gen.js.map +1 -1
  61. package/package.json +1 -1
@@ -513,6 +513,10 @@ export const LocationTargetRequestSchema = {
513
513
  type: 'integer',
514
514
  format: 'int64',
515
515
  },
516
+ parentId: {
517
+ type: 'integer',
518
+ format: 'int64',
519
+ },
516
520
  type: {
517
521
  type: 'string',
518
522
  enum: ['REGION', 'DISTRICT', 'SUBDISTRICT', 'STREET'],
@@ -681,15 +685,6 @@ export const RecolorStageRequestSchema = {
681
685
  },
682
686
  required: ['color'],
683
687
  };
684
- export const DeactivateStageRequestSchema = {
685
- type: 'object',
686
- properties: {
687
- migrateToStageId: {
688
- type: 'string',
689
- format: 'uuid',
690
- },
691
- },
692
- };
693
688
  export const ReorderStagesRequestSchema = {
694
689
  type: 'object',
695
690
  properties: {
@@ -703,21 +698,6 @@ export const ReorderStagesRequestSchema = {
703
698
  },
704
699
  required: ['stageIds'],
705
700
  };
706
- export const SetTaskSettingsRequestSchema = {
707
- type: 'object',
708
- properties: {
709
- defaultBoardId: {
710
- type: 'string',
711
- format: 'uuid',
712
- },
713
- defaultStageId: {
714
- type: 'string',
715
- format: 'uuid',
716
- description: 'Active stage of the default board; null = entry stage at use time',
717
- },
718
- },
719
- required: ['defaultBoardId'],
720
- };
721
701
  export const AddressRequestSchema = {
722
702
  type: 'object',
723
703
  properties: {
@@ -2308,7 +2288,6 @@ export const TaskDetailResponseSchema = {
2308
2288
  },
2309
2289
  rank: {
2310
2290
  type: 'string',
2311
- description: 'Fractional index within the stage',
2312
2291
  },
2313
2292
  stageEnteredAt: {
2314
2293
  type: 'string',
@@ -2574,9 +2553,6 @@ export const BoardCardsResponseSchema = {
2574
2553
  type: 'string',
2575
2554
  enum: ['OWNER', 'SEEKER'],
2576
2555
  },
2577
- archived: {
2578
- type: 'boolean',
2579
- },
2580
2556
  members: {
2581
2557
  type: 'array',
2582
2558
  items: {
@@ -2590,7 +2566,7 @@ export const BoardCardsResponseSchema = {
2590
2566
  },
2591
2567
  },
2592
2568
  },
2593
- required: ['archived', 'boardId', 'columns', 'members', 'name'],
2569
+ required: ['boardId', 'columns', 'members', 'name'],
2594
2570
  };
2595
2571
  export const ColumnSchema = {
2596
2572
  type: 'object',
@@ -2654,6 +2630,13 @@ export const TaskCardResponseSchema = {
2654
2630
  type: 'string',
2655
2631
  format: 'uuid',
2656
2632
  },
2633
+ stageId: {
2634
+ type: 'string',
2635
+ format: 'uuid',
2636
+ },
2637
+ stageName: {
2638
+ type: 'string',
2639
+ },
2657
2640
  title: {
2658
2641
  type: 'string',
2659
2642
  },
@@ -2723,7 +2706,6 @@ export const TaskCardResponseSchema = {
2723
2706
  },
2724
2707
  rank: {
2725
2708
  type: 'string',
2726
- description: "Fractional index within the stage. Cards arrive in this order; holding every neighbour's key is what lets the client compute a drop target locally and render the reorder before the PATCH returns.",
2727
2709
  },
2728
2710
  stageEnteredAt: {
2729
2711
  type: 'string',
@@ -2748,6 +2730,28 @@ export const TaskCardResponseSchema = {
2748
2730
  type: 'string',
2749
2731
  format: 'date',
2750
2732
  },
2733
+ outcome: {
2734
+ type: 'string',
2735
+ enum: ['WON', 'LOST'],
2736
+ },
2737
+ lostReason: {
2738
+ type: 'string',
2739
+ enum: [
2740
+ 'NOT_WORKING_WITH_AGENTS',
2741
+ 'NOT_RESPONDING',
2742
+ 'ALREADY_SOLD',
2743
+ 'COULD_NOT_NEGOTIATE_PRICE',
2744
+ 'CHOSE_ANOTHER_AGENCY',
2745
+ 'CHANGED_PLANS',
2746
+ 'OUT_OF_BUDGET',
2747
+ 'SPAM',
2748
+ 'OTHER',
2749
+ ],
2750
+ },
2751
+ closedAt: {
2752
+ type: 'string',
2753
+ format: 'date-time',
2754
+ },
2751
2755
  },
2752
2756
  required: [
2753
2757
  'commentCount',
@@ -2760,6 +2764,8 @@ export const TaskCardResponseSchema = {
2760
2764
  'priority',
2761
2765
  'rank',
2762
2766
  'stageEnteredAt',
2767
+ 'stageId',
2768
+ 'stageName',
2763
2769
  'taskId',
2764
2770
  'title',
2765
2771
  'totalTodos',
@@ -2856,901 +2862,168 @@ export const TaskContentPropertySchema = {
2856
2862
  'HOUSE',
2857
2863
  'TOWN_HOUSE',
2858
2864
  'COUNTRY_HOUSE',
2859
- 'VILLA',
2860
- 'COTTAGE',
2861
- 'APARTMENT',
2862
- 'DUPLEX',
2863
- 'TRIPLEX',
2864
- 'SEMI_BASEMENT',
2865
- 'ATTIC',
2866
- 'AGRICULTURAL_LAND',
2867
- 'RESIDENTIAL_LAND',
2868
- 'HOTEL_ROOM',
2869
- 'MOTEL_ROOM',
2870
- 'CO_LIVING_SPACE',
2871
- 'OFFICE',
2872
- 'COMMERCIAL_SPACE',
2873
- 'CO_WORKING_SPACE',
2874
- 'WAREHOUSE',
2875
- 'GARAGE',
2876
- ],
2877
- },
2878
- },
2879
- },
2880
- ],
2881
- required: ['id', 'type'],
2882
- };
2883
- export const StageCardsResponseSchema = {
2884
- type: 'object',
2885
- properties: {
2886
- members: {
2887
- type: 'array',
2888
- items: {
2889
- $ref: '#/components/schemas/MemberPeekResponse',
2890
- },
2891
- },
2892
- data: {
2893
- $ref: '#/components/schemas/CursorPageTaskCardResponse',
2894
- },
2895
- },
2896
- required: ['data', 'members'],
2897
- };
2898
- export const ClosedTaskResponseSchema = {
2899
- type: 'object',
2900
- properties: {
2901
- taskId: {
2902
- type: 'string',
2903
- format: 'uuid',
2904
- },
2905
- title: {
2906
- type: 'string',
2907
- },
2908
- value: {
2909
- type: 'number',
2910
- },
2911
- ownerId: {
2912
- type: 'string',
2913
- format: 'uuid',
2914
- },
2915
- primaryContactId: {
2916
- type: 'integer',
2917
- format: 'int64',
2918
- },
2919
- primaryContact: {
2920
- oneOf: [
2921
- {
2922
- $ref: '#/components/schemas/ContactPersonalDetailsRestricted',
2923
- },
2924
- {
2925
- $ref: '#/components/schemas/ContactPersonalDetailsVisible',
2926
- },
2927
- ],
2928
- },
2929
- contactAssignedTo: {
2930
- type: 'string',
2931
- format: 'uuid',
2932
- },
2933
- outcome: {
2934
- type: 'string',
2935
- enum: ['WON', 'LOST'],
2936
- },
2937
- lostReason: {
2938
- type: 'string',
2939
- enum: [
2940
- 'NOT_WORKING_WITH_AGENTS',
2941
- 'NOT_RESPONDING',
2942
- 'ALREADY_SOLD',
2943
- 'COULD_NOT_NEGOTIATE_PRICE',
2944
- 'CHOSE_ANOTHER_AGENCY',
2945
- 'CHANGED_PLANS',
2946
- 'OUT_OF_BUDGET',
2947
- 'SPAM',
2948
- 'OTHER',
2949
- ],
2950
- },
2951
- closedAt: {
2952
- type: 'string',
2953
- format: 'date-time',
2954
- },
2955
- stageName: {
2956
- type: 'string',
2957
- description: 'Stage the task closed from',
2958
- },
2959
- },
2960
- required: ['closedAt', 'outcome', 'stageName', 'taskId', 'title'],
2961
- };
2962
- export const PageMetadataSchema = {
2963
- type: 'object',
2964
- properties: {
2965
- size: {
2966
- type: 'integer',
2967
- format: 'int64',
2968
- },
2969
- number: {
2970
- type: 'integer',
2971
- format: 'int64',
2972
- },
2973
- totalElements: {
2974
- type: 'integer',
2975
- format: 'int64',
2976
- },
2977
- totalPages: {
2978
- type: 'integer',
2979
- format: 'int64',
2980
- },
2981
- },
2982
- };
2983
- export const PagedModelClosedTaskResponseSchema = {
2984
- type: 'object',
2985
- properties: {
2986
- content: {
2987
- type: 'array',
2988
- items: {
2989
- $ref: '#/components/schemas/ClosedTaskResponse',
2990
- },
2991
- },
2992
- page: {
2993
- $ref: '#/components/schemas/PageMetadata',
2994
- },
2995
- },
2996
- };
2997
- export const BoardWinRateSchema = {
2998
- type: 'object',
2999
- properties: {
3000
- boardId: {
3001
- type: 'string',
3002
- format: 'uuid',
3003
- },
3004
- name: {
3005
- type: 'string',
3006
- },
3007
- won: {
3008
- type: 'integer',
3009
- format: 'int64',
3010
- },
3011
- lost: {
3012
- type: 'integer',
3013
- format: 'int64',
3014
- },
3015
- winRatePct: {
3016
- type: 'number',
3017
- format: 'double',
3018
- },
3019
- },
3020
- required: ['boardId', 'lost', 'name', 'winRatePct', 'won'],
3021
- };
3022
- export const MemberWinRateSchema = {
3023
- type: 'object',
3024
- properties: {
3025
- memberId: {
3026
- type: 'string',
3027
- format: 'uuid',
3028
- },
3029
- won: {
3030
- type: 'integer',
3031
- format: 'int64',
3032
- },
3033
- lost: {
3034
- type: 'integer',
3035
- format: 'int64',
3036
- },
3037
- winRatePct: {
3038
- type: 'number',
3039
- format: 'double',
3040
- },
3041
- },
3042
- required: ['lost', 'memberId', 'winRatePct', 'won'],
3043
- };
3044
- export const StatsEnvelopeWinRateStatsSchema = {
3045
- type: 'object',
3046
- properties: {
3047
- period: {
3048
- type: 'string',
3049
- },
3050
- computedAt: {
3051
- type: 'string',
3052
- format: 'date-time',
3053
- },
3054
- data: {
3055
- $ref: '#/components/schemas/WinRateStats',
3056
- },
3057
- },
3058
- required: ['computedAt', 'data', 'period'],
3059
- };
3060
- export const WinRateStatsSchema = {
3061
- type: 'object',
3062
- properties: {
3063
- won: {
3064
- type: 'integer',
3065
- format: 'int64',
3066
- },
3067
- lost: {
3068
- type: 'integer',
3069
- format: 'int64',
3070
- },
3071
- winRatePct: {
3072
- type: 'number',
3073
- format: 'double',
3074
- },
3075
- boards: {
3076
- type: 'array',
3077
- items: {
3078
- $ref: '#/components/schemas/BoardWinRate',
3079
- },
3080
- },
3081
- members: {
3082
- type: 'array',
3083
- items: {
3084
- $ref: '#/components/schemas/MemberWinRate',
3085
- },
3086
- },
3087
- },
3088
- required: ['boards', 'lost', 'members', 'winRatePct', 'won'],
3089
- };
3090
- export const StageVelocitySchema = {
3091
- type: 'object',
3092
- properties: {
3093
- boardId: {
3094
- type: 'string',
3095
- format: 'uuid',
3096
- },
3097
- boardName: {
3098
- type: 'string',
3099
- },
3100
- stageId: {
3101
- type: 'string',
3102
- format: 'uuid',
3103
- },
3104
- stageName: {
3105
- type: 'string',
3106
- },
3107
- position: {
3108
- type: 'integer',
3109
- format: 'int32',
3110
- },
3111
- avgDaysInStage: {
3112
- type: 'number',
3113
- format: 'double',
3114
- },
3115
- samples: {
3116
- type: 'integer',
3117
- format: 'int64',
3118
- description: 'Completed stays measured',
3119
- },
3120
- },
3121
- required: [
3122
- 'avgDaysInStage',
3123
- 'boardId',
3124
- 'boardName',
3125
- 'position',
3126
- 'samples',
3127
- 'stageId',
3128
- 'stageName',
3129
- ],
3130
- };
3131
- export const StatsEnvelopeTaskVelocityStatsSchema = {
3132
- type: 'object',
3133
- properties: {
3134
- period: {
3135
- type: 'string',
3136
- },
3137
- computedAt: {
3138
- type: 'string',
3139
- format: 'date-time',
3140
- },
3141
- data: {
3142
- $ref: '#/components/schemas/TaskVelocityStats',
3143
- },
3144
- },
3145
- required: ['computedAt', 'data', 'period'],
3146
- };
3147
- export const TaskVelocityStatsSchema = {
3148
- type: 'object',
3149
- properties: {
3150
- stages: {
3151
- type: 'array',
3152
- items: {
3153
- $ref: '#/components/schemas/StageVelocity',
3154
- },
3155
- },
3156
- },
3157
- required: ['stages'],
3158
- };
3159
- export const BoardFunnelSchema = {
3160
- type: 'object',
3161
- properties: {
3162
- boardId: {
3163
- type: 'string',
3164
- format: 'uuid',
3165
- },
3166
- name: {
3167
- type: 'string',
3168
- },
3169
- kind: {
3170
- type: 'string',
3171
- },
3172
- stages: {
3173
- type: 'array',
3174
- items: {
3175
- $ref: '#/components/schemas/StageSlice',
3176
- },
3177
- },
3178
- },
3179
- required: ['boardId', 'name', 'stages'],
3180
- };
3181
- export const StageSliceSchema = {
3182
- type: 'object',
3183
- properties: {
3184
- stageId: {
3185
- type: 'string',
3186
- format: 'uuid',
3187
- },
3188
- name: {
3189
- type: 'string',
3190
- },
3191
- position: {
3192
- type: 'integer',
3193
- format: 'int32',
3194
- },
3195
- openTasks: {
3196
- type: 'integer',
3197
- format: 'int64',
3198
- },
3199
- openValue: {
3200
- type: 'number',
3201
- },
3202
- },
3203
- required: ['name', 'openTasks', 'openValue', 'position', 'stageId'],
3204
- };
3205
- export const StatsEnvelopeTaskFunnelStatsSchema = {
3206
- type: 'object',
3207
- properties: {
3208
- period: {
3209
- type: 'string',
3210
- },
3211
- computedAt: {
3212
- type: 'string',
3213
- format: 'date-time',
3214
- },
3215
- data: {
3216
- $ref: '#/components/schemas/TaskFunnelStats',
3217
- },
3218
- },
3219
- required: ['computedAt', 'data', 'period'],
3220
- };
3221
- export const TaskFunnelStatsSchema = {
3222
- type: 'object',
3223
- properties: {
3224
- boards: {
3225
- type: 'array',
3226
- items: {
3227
- $ref: '#/components/schemas/BoardFunnel',
3228
- },
3229
- },
3230
- },
3231
- required: ['boards'],
3232
- };
3233
- export const DealTypePriceSchema = {
3234
- type: 'object',
3235
- properties: {
3236
- listingType: {
3237
- type: 'string',
3238
- enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
3239
- },
3240
- buckets: {
3241
- type: 'array',
3242
- items: {
3243
- $ref: '#/components/schemas/Slice',
3244
- },
3245
- },
3246
- },
3247
- };
3248
- export const LocationCountSchema = {
3249
- type: 'object',
3250
- properties: {
3251
- location: {
3252
- $ref: '#/components/schemas/LocationResponse',
3253
- },
3254
- count: {
3255
- type: 'integer',
3256
- format: 'int64',
3257
- },
3258
- },
3259
- };
3260
- export const SliceSchema = {
3261
- type: 'object',
3262
- properties: {
3263
- key: {
3264
- type: 'string',
3265
- },
3266
- count: {
3267
- type: 'integer',
3268
- format: 'int64',
3269
- },
3270
- },
3271
- required: ['count', 'key'],
3272
- };
3273
- export const StatsEnvelopeSupplyStatsSchema = {
3274
- type: 'object',
3275
- properties: {
3276
- period: {
3277
- type: 'string',
3278
- },
3279
- computedAt: {
3280
- type: 'string',
3281
- format: 'date-time',
3282
- },
3283
- data: {
3284
- $ref: '#/components/schemas/SupplyStats',
3285
- },
3286
- },
3287
- required: ['computedAt', 'data', 'period'],
3288
- };
3289
- export const SupplyStatsSchema = {
3290
- type: 'object',
3291
- properties: {
3292
- activeListings: {
3293
- type: 'integer',
3294
- format: 'int64',
3295
- },
3296
- byListingType: {
3297
- type: 'array',
3298
- items: {
3299
- $ref: '#/components/schemas/Slice',
3300
- },
3301
- },
3302
- byPropertyType: {
3303
- type: 'array',
3304
- items: {
3305
- $ref: '#/components/schemas/Slice',
3306
- },
3307
- },
3308
- priceByDealType: {
3309
- type: 'array',
3310
- items: {
3311
- $ref: '#/components/schemas/DealTypePrice',
3312
- },
3313
- },
3314
- topDistricts: {
3315
- type: 'array',
3316
- items: {
3317
- $ref: '#/components/schemas/LocationCount',
3318
- },
3319
- },
3320
- },
3321
- };
3322
- export const ExpiringAgreementSchema = {
3323
- type: 'object',
3324
- properties: {
3325
- propertyId: {
3326
- type: 'integer',
3327
- format: 'int64',
3328
- },
3329
- externalId: {
3330
- type: 'string',
3331
- format: 'uuid',
3332
- },
3333
- title: {
3334
- type: 'string',
3335
- },
3336
- expiresAt: {
3337
- type: 'string',
3338
- format: 'date',
3339
- },
3340
- },
3341
- };
3342
- export const ExpiringPlatformListingSchema = {
3343
- type: 'object',
3344
- properties: {
3345
- platform: {
3346
- type: 'string',
3347
- enum: ['SS', 'MY_HOME'],
3348
- },
3349
- platformId: {
3350
- type: 'integer',
3351
- format: 'int64',
3352
- },
3353
- propertyTitle: {
3354
- type: 'string',
3355
- },
3356
- expiresAt: {
3357
- type: 'string',
3358
- format: 'date',
3359
- },
3360
- },
3361
- };
3362
- export const ListingTypeAggSchema = {
3363
- type: 'object',
3364
- properties: {
3365
- listingType: {
3366
- type: 'string',
3367
- enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
3368
- },
3369
- count: {
3370
- type: 'integer',
3371
- format: 'int64',
3372
- },
3373
- pipelineValue: {
3374
- type: 'number',
3375
- },
3376
- estimatedCommission: {
3377
- type: 'number',
3378
- },
3379
- },
3380
- };
3381
- export const PortfolioStatsSchema = {
3382
- type: 'object',
3383
- properties: {
3384
- propertiesByState: {
3385
- type: 'array',
3386
- items: {
3387
- $ref: '#/components/schemas/Slice',
3388
- },
3389
- },
3390
- listings: {
3391
- type: 'array',
3392
- items: {
3393
- $ref: '#/components/schemas/ListingTypeAgg',
3394
- },
3395
- },
3396
- expiringAgreementsCount: {
3397
- type: 'integer',
3398
- format: 'int64',
3399
- },
3400
- expiringAgreements: {
3401
- type: 'array',
3402
- items: {
3403
- $ref: '#/components/schemas/ExpiringAgreement',
3404
- },
3405
- },
3406
- expiringPlatformCount: {
3407
- type: 'integer',
3408
- format: 'int64',
3409
- },
3410
- expiringPlatformListings: {
3411
- type: 'array',
3412
- items: {
3413
- $ref: '#/components/schemas/ExpiringPlatformListing',
2865
+ 'VILLA',
2866
+ 'COTTAGE',
2867
+ 'APARTMENT',
2868
+ 'DUPLEX',
2869
+ 'TRIPLEX',
2870
+ 'SEMI_BASEMENT',
2871
+ 'ATTIC',
2872
+ 'AGRICULTURAL_LAND',
2873
+ 'RESIDENTIAL_LAND',
2874
+ 'HOTEL_ROOM',
2875
+ 'MOTEL_ROOM',
2876
+ 'CO_LIVING_SPACE',
2877
+ 'OFFICE',
2878
+ 'COMMERCIAL_SPACE',
2879
+ 'CO_WORKING_SPACE',
2880
+ 'WAREHOUSE',
2881
+ 'GARAGE',
2882
+ ],
2883
+ },
3414
2884
  },
3415
2885
  },
3416
- },
3417
- required: [
3418
- 'expiringAgreements',
3419
- 'expiringAgreementsCount',
3420
- 'expiringPlatformCount',
3421
- 'expiringPlatformListings',
3422
- 'listings',
3423
- 'propertiesByState',
3424
2886
  ],
2887
+ required: ['id', 'type'],
3425
2888
  };
3426
- export const StatsEnvelopePortfolioStatsSchema = {
3427
- type: 'object',
3428
- properties: {
3429
- period: {
3430
- type: 'string',
3431
- },
3432
- computedAt: {
3433
- type: 'string',
3434
- format: 'date-time',
3435
- },
3436
- data: {
3437
- $ref: '#/components/schemas/PortfolioStats',
3438
- },
3439
- },
3440
- required: ['computedAt', 'data', 'period'],
3441
- };
3442
- export const PipelineStatsSchema = {
2889
+ export const StageCardsResponseSchema = {
3443
2890
  type: 'object',
3444
2891
  properties: {
3445
- total: {
3446
- type: 'integer',
3447
- format: 'int64',
3448
- },
3449
- unassigned: {
3450
- type: 'integer',
3451
- format: 'int64',
3452
- },
3453
- newContactsTrend: {
3454
- type: 'array',
3455
- items: {
3456
- $ref: '#/components/schemas/TrendPoint',
3457
- },
3458
- },
3459
- sourceAttribution: {
2892
+ members: {
3460
2893
  type: 'array',
3461
2894
  items: {
3462
- $ref: '#/components/schemas/Slice',
2895
+ $ref: '#/components/schemas/MemberPeekResponse',
3463
2896
  },
3464
2897
  },
3465
- },
3466
- required: ['newContactsTrend', 'sourceAttribution', 'total', 'unassigned'],
3467
- };
3468
- export const StatsEnvelopePipelineStatsSchema = {
3469
- type: 'object',
3470
- properties: {
3471
- period: {
3472
- type: 'string',
3473
- },
3474
- computedAt: {
3475
- type: 'string',
3476
- format: 'date-time',
3477
- },
3478
2898
  data: {
3479
- $ref: '#/components/schemas/PipelineStats',
2899
+ $ref: '#/components/schemas/CursorPageTaskCardResponse',
3480
2900
  },
3481
2901
  },
3482
- required: ['computedAt', 'data', 'period'],
2902
+ required: ['data', 'members'],
3483
2903
  };
3484
- export const TrendPointSchema = {
2904
+ export const BucketSchema = {
3485
2905
  type: 'object',
3486
2906
  properties: {
3487
- date: {
3488
- type: 'string',
3489
- format: 'date',
3490
- },
3491
2907
  count: {
3492
2908
  type: 'integer',
3493
2909
  format: 'int64',
3494
2910
  },
3495
- },
3496
- };
3497
- export const LeaderboardStatsSchema = {
3498
- type: 'object',
3499
- properties: {
3500
- rows: {
3501
- type: 'array',
3502
- items: {
3503
- $ref: '#/components/schemas/Row',
3504
- },
3505
- },
3506
- },
3507
- required: ['rows'],
3508
- };
3509
- export const RowSchema = {
3510
- type: 'object',
3511
- properties: {
3512
- memberId: {
3513
- type: 'string',
3514
- format: 'uuid',
3515
- },
3516
- firstName: {
3517
- type: 'string',
3518
- },
3519
- lastName: {
3520
- type: 'string',
3521
- },
3522
- photo: {
3523
- type: 'string',
3524
- },
3525
- tasksWon: {
3526
- type: 'integer',
3527
- format: 'int64',
3528
- },
3529
- wonValue: {
2911
+ value: {
3530
2912
  type: 'number',
3531
2913
  },
3532
2914
  commission: {
3533
2915
  type: 'number',
3534
- description: 'Fixed amount, or rate/factor × task value (null-value tasks skipped)',
3535
- },
3536
- recommendationsSent: {
3537
- type: 'integer',
3538
- format: 'int64',
3539
- },
3540
- recommendationsRated: {
3541
- type: 'integer',
3542
- format: 'int64',
3543
- },
3544
- likeRatePct: {
3545
- type: 'number',
3546
- format: 'double',
3547
- },
3548
- },
3549
- required: [
3550
- 'commission',
3551
- 'firstName',
3552
- 'lastName',
3553
- 'likeRatePct',
3554
- 'memberId',
3555
- 'photo',
3556
- 'recommendationsRated',
3557
- 'recommendationsSent',
3558
- 'tasksWon',
3559
- 'wonValue',
3560
- ],
3561
- };
3562
- export const StatsEnvelopeLeaderboardStatsSchema = {
3563
- type: 'object',
3564
- properties: {
3565
- period: {
3566
- type: 'string',
3567
- },
3568
- computedAt: {
3569
- type: 'string',
3570
- format: 'date-time',
3571
- },
3572
- data: {
3573
- $ref: '#/components/schemas/LeaderboardStats',
3574
2916
  },
3575
2917
  },
3576
- required: ['computedAt', 'data', 'period'],
3577
2918
  };
3578
- export const AwaitingConversationSchema = {
2919
+ export const PipelineCommissionResponseSchema = {
3579
2920
  type: 'object',
3580
2921
  properties: {
3581
- conversationId: {
3582
- type: 'string',
3583
- format: 'uuid',
3584
- },
3585
- contactId: {
3586
- type: 'integer',
3587
- format: 'int64',
3588
- },
3589
- firstName: {
3590
- type: 'string',
3591
- },
3592
- lastName: {
2922
+ from: {
3593
2923
  type: 'string',
2924
+ format: 'date',
3594
2925
  },
3595
- channelType: {
2926
+ to: {
3596
2927
  type: 'string',
3597
- enum: ['FACEBOOK', 'INSTAGRAM', 'WHATSAPP'],
2928
+ format: 'date',
3598
2929
  },
3599
- lastMessagePreview: {
3600
- type: 'string',
2930
+ won: {
2931
+ $ref: '#/components/schemas/Bucket',
3601
2932
  },
3602
- lastInboundAt: {
3603
- type: 'string',
3604
- format: 'date-time',
2933
+ lost: {
2934
+ $ref: '#/components/schemas/Bucket',
3605
2935
  },
3606
- unreadCount: {
3607
- type: 'integer',
3608
- format: 'int32',
2936
+ pending: {
2937
+ $ref: '#/components/schemas/Bucket',
3609
2938
  },
3610
- reachable: {
3611
- type: 'boolean',
2939
+ total: {
2940
+ $ref: '#/components/schemas/Bucket',
3612
2941
  },
3613
2942
  },
3614
- required: [
3615
- 'channelType',
3616
- 'contactId',
3617
- 'conversationId',
3618
- 'lastInboundAt',
3619
- 'lastMessagePreview',
3620
- 'reachable',
3621
- 'unreadCount',
3622
- ],
3623
2943
  };
3624
- export const InboxStatsSchema = {
2944
+ export const ChannelSeriesSchema = {
3625
2945
  type: 'object',
3626
2946
  properties: {
3627
- openConversations: {
3628
- type: 'integer',
3629
- format: 'int64',
3630
- },
3631
- unreadMessages: {
3632
- type: 'integer',
3633
- format: 'int64',
3634
- },
3635
- newConversations: {
3636
- type: 'integer',
3637
- format: 'int64',
3638
- },
3639
- awaitingReplyCount: {
3640
- type: 'integer',
3641
- format: 'int64',
3642
- },
3643
- awaitingUnreachableCount: {
3644
- type: 'integer',
3645
- format: 'int64',
2947
+ channel: {
2948
+ type: 'string',
2949
+ enum: [
2950
+ 'MY_HOME',
2951
+ 'SS',
2952
+ 'HOME_SPOT',
2953
+ 'AGENCY_MEMBER',
2954
+ 'FACEBOOK',
2955
+ 'INSTAGRAM',
2956
+ 'WHATSAPP',
2957
+ 'UNKNOWN',
2958
+ ],
3646
2959
  },
3647
- awaitingReply: {
2960
+ points: {
3648
2961
  type: 'array',
3649
2962
  items: {
3650
- $ref: '#/components/schemas/AwaitingConversation',
2963
+ type: 'integer',
2964
+ format: 'int64',
3651
2965
  },
3652
2966
  },
3653
- medianResponseSeconds: {
2967
+ total: {
3654
2968
  type: 'integer',
3655
2969
  format: 'int64',
3656
2970
  },
3657
- inboundByChannel: {
3658
- type: 'array',
3659
- items: {
3660
- $ref: '#/components/schemas/Slice',
3661
- },
3662
- },
3663
2971
  },
3664
- required: [
3665
- 'awaitingReply',
3666
- 'awaitingReplyCount',
3667
- 'awaitingUnreachableCount',
3668
- 'inboundByChannel',
3669
- 'medianResponseSeconds',
3670
- 'newConversations',
3671
- 'openConversations',
3672
- 'unreadMessages',
3673
- ],
3674
2972
  };
3675
- export const StatsEnvelopeInboxStatsSchema = {
2973
+ export const ContactAcquisitionResponseSchema = {
3676
2974
  type: 'object',
3677
2975
  properties: {
3678
- period: {
2976
+ from: {
3679
2977
  type: 'string',
2978
+ format: 'date',
3680
2979
  },
3681
- computedAt: {
2980
+ to: {
3682
2981
  type: 'string',
3683
- format: 'date-time',
3684
- },
3685
- data: {
3686
- $ref: '#/components/schemas/InboxStats',
2982
+ format: 'date',
3687
2983
  },
3688
- },
3689
- required: ['computedAt', 'data', 'period'],
3690
- };
3691
- export const DealTypeBudgetSchema = {
3692
- type: 'object',
3693
- properties: {
3694
- listingType: {
2984
+ granularity: {
3695
2985
  type: 'string',
3696
- enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
2986
+ enum: ['DAY', 'WEEK', 'MONTH'],
3697
2987
  },
3698
2988
  buckets: {
3699
2989
  type: 'array',
3700
2990
  items: {
3701
- $ref: '#/components/schemas/Slice',
3702
- },
3703
- },
3704
- },
3705
- };
3706
- export const DemandStatsSchema = {
3707
- type: 'object',
3708
- properties: {
3709
- activeInterests: {
3710
- type: 'integer',
3711
- format: 'int64',
3712
- },
3713
- byListingType: {
3714
- type: 'array',
3715
- items: {
3716
- $ref: '#/components/schemas/Slice',
3717
- },
3718
- },
3719
- byPropertyType: {
3720
- type: 'array',
3721
- items: {
3722
- $ref: '#/components/schemas/Slice',
2991
+ type: 'string',
2992
+ format: 'date',
3723
2993
  },
3724
2994
  },
3725
- budgetByDealType: {
2995
+ series: {
3726
2996
  type: 'array',
3727
2997
  items: {
3728
- $ref: '#/components/schemas/DealTypeBudget',
2998
+ $ref: '#/components/schemas/ChannelSeries',
3729
2999
  },
3730
3000
  },
3731
- topDistricts: {
3732
- type: 'array',
3733
- items: {
3734
- $ref: '#/components/schemas/LocationCount',
3735
- },
3001
+ total: {
3002
+ type: 'integer',
3003
+ format: 'int64',
3736
3004
  },
3737
3005
  },
3738
3006
  };
3739
- export const StatsEnvelopeDemandStatsSchema = {
3007
+ export const PageMetadataSchema = {
3740
3008
  type: 'object',
3741
3009
  properties: {
3742
- period: {
3743
- type: 'string',
3010
+ size: {
3011
+ type: 'integer',
3012
+ format: 'int64',
3744
3013
  },
3745
- computedAt: {
3746
- type: 'string',
3747
- format: 'date-time',
3014
+ number: {
3015
+ type: 'integer',
3016
+ format: 'int64',
3748
3017
  },
3749
- data: {
3750
- $ref: '#/components/schemas/DemandStats',
3018
+ totalElements: {
3019
+ type: 'integer',
3020
+ format: 'int64',
3021
+ },
3022
+ totalPages: {
3023
+ type: 'integer',
3024
+ format: 'int64',
3751
3025
  },
3752
3026
  },
3753
- required: ['computedAt', 'data', 'period'],
3754
3027
  };
3755
3028
  export const PagedModelRoleResponseSchema = {
3756
3029
  type: 'object',
@@ -6568,9 +5841,6 @@ export const BoardSummaryResponseSchema = {
6568
5841
  name: {
6569
5842
  type: 'string',
6570
5843
  },
6571
- archived: {
6572
- type: 'boolean',
6573
- },
6574
5844
  stages: {
6575
5845
  type: 'array',
6576
5846
  items: {
@@ -6578,7 +5848,7 @@ export const BoardSummaryResponseSchema = {
6578
5848
  },
6579
5849
  },
6580
5850
  },
6581
- required: ['archived', 'boardId', 'name', 'stages'],
5851
+ required: ['boardId', 'name', 'stages'],
6582
5852
  };
6583
5853
  export const StageSummaryResponseSchema = {
6584
5854
  type: 'object',
@@ -6614,9 +5884,6 @@ export const BoardResponseSchema = {
6614
5884
  name: {
6615
5885
  type: 'string',
6616
5886
  },
6617
- archived: {
6618
- type: 'boolean',
6619
- },
6620
5887
  stages: {
6621
5888
  type: 'array',
6622
5889
  items: {
@@ -6628,7 +5895,7 @@ export const BoardResponseSchema = {
6628
5895
  format: 'date-time',
6629
5896
  },
6630
5897
  },
6631
- required: ['archived', 'boardId', 'createdAt', 'name', 'stages'],
5898
+ required: ['boardId', 'createdAt', 'name', 'stages'],
6632
5899
  };
6633
5900
  export const StageResponseSchema = {
6634
5901
  type: 'object',
@@ -6647,9 +5914,6 @@ export const StageResponseSchema = {
6647
5914
  type: 'integer',
6648
5915
  format: 'int32',
6649
5916
  },
6650
- active: {
6651
- type: 'boolean',
6652
- },
6653
5917
  todoTemplates: {
6654
5918
  type: 'array',
6655
5919
  items: {
@@ -6657,14 +5921,7 @@ export const StageResponseSchema = {
6657
5921
  },
6658
5922
  },
6659
5923
  },
6660
- required: [
6661
- 'active',
6662
- 'color',
6663
- 'name',
6664
- 'position',
6665
- 'stageId',
6666
- 'todoTemplates',
6667
- ],
5924
+ required: ['color', 'name', 'position', 'stageId', 'todoTemplates'],
6668
5925
  };
6669
5926
  export const TodoTemplateResponseSchema = {
6670
5927
  type: 'object',
@@ -6683,19 +5940,6 @@ export const TodoTemplateResponseSchema = {
6683
5940
  },
6684
5941
  required: ['position', 'templateId', 'title'],
6685
5942
  };
6686
- export const TaskSettingsResponseSchema = {
6687
- type: 'object',
6688
- properties: {
6689
- defaultBoardId: {
6690
- type: 'string',
6691
- format: 'uuid',
6692
- },
6693
- defaultStageId: {
6694
- type: 'string',
6695
- format: 'uuid',
6696
- },
6697
- },
6698
- };
6699
5943
  export const AddressViewResponseSchema = {
6700
5944
  type: 'object',
6701
5945
  properties: {