@homespot-sdk/core 0.0.344 → 0.0.345

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.
@@ -220,15 +220,15 @@ export const RenameTaskRequestSchema = {
220
220
  },
221
221
  required: ['title'],
222
222
  };
223
- export const MoveTaskRequestSchema = {
223
+ export const TaskPriorityRequestSchema = {
224
224
  type: 'object',
225
225
  properties: {
226
- targetStageId: {
226
+ priority: {
227
227
  type: 'string',
228
- format: 'uuid',
228
+ enum: ['LOW', 'MEDIUM', 'HIGH', 'CRITICAL'],
229
229
  },
230
230
  },
231
- required: ['targetStageId'],
231
+ required: ['priority'],
232
232
  };
233
233
  export const MarkTaskLostRequestSchema = {
234
234
  type: 'object',
@@ -939,6 +939,11 @@ export const OpenTaskRequestSchema = {
939
939
  format: 'uuid',
940
940
  description: 'Defaults to the acting member',
941
941
  },
942
+ priority: {
943
+ type: 'string',
944
+ description: 'Defaults to MEDIUM',
945
+ enum: ['LOW', 'MEDIUM', 'HIGH', 'CRITICAL'],
946
+ },
942
947
  },
943
948
  required: ['boardId', 'title'],
944
949
  };
@@ -1818,6 +1823,31 @@ export const AdminProvisionResponseSchema = {
1818
1823
  },
1819
1824
  },
1820
1825
  };
1826
+ export const PositionTaskRequestSchema = {
1827
+ type: 'object',
1828
+ properties: {
1829
+ targetStageId: {
1830
+ type: 'string',
1831
+ format: 'uuid',
1832
+ },
1833
+ afterTaskId: {
1834
+ type: 'string',
1835
+ format: 'uuid',
1836
+ description: 'The card this one was dropped below; null = top of the stage',
1837
+ },
1838
+ },
1839
+ required: ['targetStageId'],
1840
+ };
1841
+ export const TaskPositionResponseSchema = {
1842
+ type: 'object',
1843
+ properties: {
1844
+ rank: {
1845
+ type: 'string',
1846
+ description: 'Fractional index of the card within its stage',
1847
+ example: 'a1V',
1848
+ },
1849
+ },
1850
+ };
1821
1851
  export const OrganizationSummaryViewResponseSchema = {
1822
1852
  type: 'object',
1823
1853
  properties: {
@@ -1988,28 +2018,6 @@ export const CursorPageCommentViewSchema = {
1988
2018
  },
1989
2019
  },
1990
2020
  };
1991
- export const AssignedToResponseSchema = {
1992
- type: 'object',
1993
- properties: {
1994
- memberId: {
1995
- type: 'string',
1996
- format: 'uuid',
1997
- },
1998
- firstName: {
1999
- type: 'string',
2000
- },
2001
- lastName: {
2002
- type: 'string',
2003
- },
2004
- photo: {
2005
- type: 'string',
2006
- },
2007
- email: {
2008
- type: 'string',
2009
- },
2010
- },
2011
- required: ['email', 'firstName', 'lastName', 'memberId'],
2012
- };
2013
2021
  export const ContactLinkSchema = {
2014
2022
  type: 'object',
2015
2023
  properties: {
@@ -2192,6 +2200,31 @@ export const LocationResponseSchema = {
2192
2200
  },
2193
2201
  required: ['id', 'names'],
2194
2202
  };
2203
+ export const MemberPeekResponseSchema = {
2204
+ type: 'object',
2205
+ properties: {
2206
+ memberId: {
2207
+ type: 'string',
2208
+ format: 'uuid',
2209
+ },
2210
+ firstName: {
2211
+ type: 'string',
2212
+ },
2213
+ lastName: {
2214
+ type: 'string',
2215
+ },
2216
+ photo: {
2217
+ type: 'string',
2218
+ },
2219
+ phone: {
2220
+ type: 'string',
2221
+ },
2222
+ email: {
2223
+ type: 'string',
2224
+ },
2225
+ },
2226
+ required: ['email', 'firstName', 'lastName', 'memberId'],
2227
+ };
2195
2228
  export const PropertyLinkSchema = {
2196
2229
  type: 'object',
2197
2230
  properties: {
@@ -2273,6 +2306,10 @@ export const TaskDetailResponseSchema = {
2273
2306
  stageColor: {
2274
2307
  type: 'string',
2275
2308
  },
2309
+ rank: {
2310
+ type: 'string',
2311
+ description: 'Fractional index within the stage',
2312
+ },
2276
2313
  stageEnteredAt: {
2277
2314
  type: 'string',
2278
2315
  format: 'date-time',
@@ -2280,6 +2317,10 @@ export const TaskDetailResponseSchema = {
2280
2317
  title: {
2281
2318
  type: 'string',
2282
2319
  },
2320
+ priority: {
2321
+ type: 'string',
2322
+ enum: ['LOW', 'MEDIUM', 'HIGH', 'CRITICAL'],
2323
+ },
2283
2324
  description: {
2284
2325
  type: 'string',
2285
2326
  },
@@ -2298,7 +2339,7 @@ export const TaskDetailResponseSchema = {
2298
2339
  format: 'date',
2299
2340
  },
2300
2341
  owner: {
2301
- $ref: '#/components/schemas/AssignedToResponse',
2342
+ $ref: '#/components/schemas/MemberPeekResponse',
2302
2343
  },
2303
2344
  outcome: {
2304
2345
  type: 'string',
@@ -2339,7 +2380,7 @@ export const TaskDetailResponseSchema = {
2339
2380
  participants: {
2340
2381
  type: 'array',
2341
2382
  items: {
2342
- $ref: '#/components/schemas/AssignedToResponse',
2383
+ $ref: '#/components/schemas/MemberPeekResponse',
2343
2384
  },
2344
2385
  },
2345
2386
  interests: {
@@ -2375,7 +2416,9 @@ export const TaskDetailResponseSchema = {
2375
2416
  'createdAt',
2376
2417
  'interests',
2377
2418
  'participants',
2419
+ 'priority',
2378
2420
  'properties',
2421
+ 'rank',
2379
2422
  'stageColor',
2380
2423
  'stageEnteredAt',
2381
2424
  'stageId',
@@ -2517,7 +2560,7 @@ export const ContactTaskResponseSchema = {
2517
2560
  'title',
2518
2561
  ],
2519
2562
  };
2520
- export const BoardGridResponseSchema = {
2563
+ export const BoardCardsResponseSchema = {
2521
2564
  type: 'object',
2522
2565
  properties: {
2523
2566
  boardId: {
@@ -2534,6 +2577,12 @@ export const BoardGridResponseSchema = {
2534
2577
  archived: {
2535
2578
  type: 'boolean',
2536
2579
  },
2580
+ members: {
2581
+ type: 'array',
2582
+ items: {
2583
+ $ref: '#/components/schemas/MemberPeekResponse',
2584
+ },
2585
+ },
2537
2586
  columns: {
2538
2587
  type: 'array',
2539
2588
  items: {
@@ -2541,9 +2590,64 @@ export const BoardGridResponseSchema = {
2541
2590
  },
2542
2591
  },
2543
2592
  },
2544
- required: ['archived', 'boardId', 'columns', 'name'],
2593
+ required: ['archived', 'boardId', 'columns', 'members', 'name'],
2545
2594
  };
2546
- export const CardSchema = {
2595
+ export const ColumnSchema = {
2596
+ type: 'object',
2597
+ properties: {
2598
+ stageId: {
2599
+ type: 'string',
2600
+ format: 'uuid',
2601
+ },
2602
+ name: {
2603
+ type: 'string',
2604
+ },
2605
+ color: {
2606
+ type: 'string',
2607
+ },
2608
+ position: {
2609
+ type: 'integer',
2610
+ format: 'int32',
2611
+ },
2612
+ totalTasks: {
2613
+ type: 'integer',
2614
+ format: 'int64',
2615
+ },
2616
+ totalValue: {
2617
+ type: 'number',
2618
+ },
2619
+ cards: {
2620
+ $ref: '#/components/schemas/CursorPageTaskCardResponse',
2621
+ },
2622
+ },
2623
+ required: [
2624
+ 'cards',
2625
+ 'color',
2626
+ 'name',
2627
+ 'position',
2628
+ 'stageId',
2629
+ 'totalTasks',
2630
+ 'totalValue',
2631
+ ],
2632
+ };
2633
+ export const CursorPageTaskCardResponseSchema = {
2634
+ type: 'object',
2635
+ properties: {
2636
+ items: {
2637
+ type: 'array',
2638
+ items: {
2639
+ $ref: '#/components/schemas/TaskCardResponse',
2640
+ },
2641
+ },
2642
+ nextCursor: {
2643
+ type: 'string',
2644
+ },
2645
+ hasNext: {
2646
+ type: 'boolean',
2647
+ },
2648
+ },
2649
+ };
2650
+ export const TaskCardResponseSchema = {
2547
2651
  type: 'object',
2548
2652
  properties: {
2549
2653
  taskId: {
@@ -2553,9 +2657,31 @@ export const CardSchema = {
2553
2657
  title: {
2554
2658
  type: 'string',
2555
2659
  },
2660
+ hasDescription: {
2661
+ type: 'boolean',
2662
+ },
2663
+ commentCount: {
2664
+ type: 'integer',
2665
+ format: 'int32',
2666
+ },
2667
+ contactCount: {
2668
+ type: 'integer',
2669
+ format: 'int32',
2670
+ },
2671
+ priority: {
2672
+ type: 'string',
2673
+ enum: ['LOW', 'MEDIUM', 'HIGH', 'CRITICAL'],
2674
+ },
2556
2675
  value: {
2557
2676
  type: 'number',
2558
2677
  },
2678
+ commissionType: {
2679
+ type: 'string',
2680
+ enum: ['NOT_SET', 'FIXED', 'PERCENTAGE', 'MONTHS_OF_RENT'],
2681
+ },
2682
+ commissionValue: {
2683
+ type: 'number',
2684
+ },
2559
2685
  ownerId: {
2560
2686
  type: 'string',
2561
2687
  format: 'uuid',
@@ -2578,6 +2704,27 @@ export const CardSchema = {
2578
2704
  type: 'string',
2579
2705
  format: 'uuid',
2580
2706
  },
2707
+ primaryContent: {
2708
+ oneOf: [
2709
+ {
2710
+ $ref: '#/components/schemas/TaskContentInterest',
2711
+ },
2712
+ {
2713
+ $ref: '#/components/schemas/TaskContentProperty',
2714
+ },
2715
+ ],
2716
+ },
2717
+ participants: {
2718
+ type: 'array',
2719
+ items: {
2720
+ type: 'string',
2721
+ format: 'uuid',
2722
+ },
2723
+ },
2724
+ rank: {
2725
+ 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
+ },
2581
2728
  stageEnteredAt: {
2582
2729
  type: 'string',
2583
2730
  format: 'date-time',
@@ -2597,71 +2744,156 @@ export const CardSchema = {
2597
2744
  hasLeftoverOpenTodos: {
2598
2745
  type: 'boolean',
2599
2746
  },
2747
+ expectedCloseDate: {
2748
+ type: 'string',
2749
+ format: 'date',
2750
+ },
2600
2751
  },
2601
2752
  required: [
2753
+ 'commentCount',
2754
+ 'contactCount',
2602
2755
  'daysInStage',
2756
+ 'hasDescription',
2603
2757
  'hasLeftoverOpenTodos',
2604
2758
  'openTodos',
2759
+ 'participants',
2760
+ 'priority',
2761
+ 'rank',
2605
2762
  'stageEnteredAt',
2606
2763
  'taskId',
2607
2764
  'title',
2608
2765
  'totalTodos',
2609
2766
  ],
2610
2767
  };
2611
- export const ColumnSchema = {
2612
- type: 'object',
2613
- properties: {
2614
- stageId: {
2615
- type: 'string',
2616
- format: 'uuid',
2617
- },
2618
- name: {
2619
- type: 'string',
2768
+ export const TaskContentSchema = {
2769
+ discriminator: {
2770
+ propertyName: 'type',
2771
+ mapping: {
2772
+ PROPERTY: '#/components/schemas/TaskContentProperty',
2773
+ INTEREST: '#/components/schemas/TaskContentInterest',
2620
2774
  },
2621
- color: {
2775
+ },
2776
+ properties: {
2777
+ type: {
2622
2778
  type: 'string',
2623
2779
  },
2624
- position: {
2625
- type: 'integer',
2626
- format: 'int32',
2780
+ },
2781
+ required: ['type'],
2782
+ };
2783
+ export const TaskContentInterestSchema = {
2784
+ allOf: [
2785
+ {
2786
+ $ref: '#/components/schemas/TaskContent',
2627
2787
  },
2628
- totalTasks: {
2629
- type: 'integer',
2630
- format: 'int64',
2788
+ {
2789
+ type: 'object',
2790
+ properties: {
2791
+ id: {
2792
+ type: 'integer',
2793
+ format: 'int64',
2794
+ },
2795
+ title: {
2796
+ type: 'string',
2797
+ },
2798
+ listingType: {
2799
+ type: 'string',
2800
+ enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
2801
+ },
2802
+ propertyTypes: {
2803
+ type: 'array',
2804
+ items: {
2805
+ type: 'string',
2806
+ enum: [
2807
+ 'HOUSE',
2808
+ 'TOWN_HOUSE',
2809
+ 'COUNTRY_HOUSE',
2810
+ 'VILLA',
2811
+ 'COTTAGE',
2812
+ 'APARTMENT',
2813
+ 'DUPLEX',
2814
+ 'TRIPLEX',
2815
+ 'SEMI_BASEMENT',
2816
+ 'ATTIC',
2817
+ 'AGRICULTURAL_LAND',
2818
+ 'RESIDENTIAL_LAND',
2819
+ 'HOTEL_ROOM',
2820
+ 'MOTEL_ROOM',
2821
+ 'CO_LIVING_SPACE',
2822
+ 'OFFICE',
2823
+ 'COMMERCIAL_SPACE',
2824
+ 'CO_WORKING_SPACE',
2825
+ 'WAREHOUSE',
2826
+ 'GARAGE',
2827
+ ],
2828
+ },
2829
+ },
2830
+ },
2631
2831
  },
2632
- totalValue: {
2633
- type: 'number',
2832
+ ],
2833
+ required: ['id', 'listingType', 'propertyTypes'],
2834
+ };
2835
+ export const TaskContentPropertySchema = {
2836
+ allOf: [
2837
+ {
2838
+ $ref: '#/components/schemas/TaskContent',
2634
2839
  },
2635
- cards: {
2636
- $ref: '#/components/schemas/CursorPageCard',
2840
+ {
2841
+ type: 'object',
2842
+ properties: {
2843
+ id: {
2844
+ type: 'integer',
2845
+ format: 'int64',
2846
+ },
2847
+ photo: {
2848
+ type: 'string',
2849
+ },
2850
+ title: {
2851
+ type: 'string',
2852
+ },
2853
+ type: {
2854
+ type: 'string',
2855
+ enum: [
2856
+ 'HOUSE',
2857
+ 'TOWN_HOUSE',
2858
+ '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
+ },
2637
2879
  },
2638
- },
2639
- required: [
2640
- 'cards',
2641
- 'color',
2642
- 'name',
2643
- 'position',
2644
- 'stageId',
2645
- 'totalTasks',
2646
- 'totalValue',
2647
2880
  ],
2881
+ required: ['id', 'type'],
2648
2882
  };
2649
- export const CursorPageCardSchema = {
2883
+ export const StageCardsResponseSchema = {
2650
2884
  type: 'object',
2651
2885
  properties: {
2652
- items: {
2886
+ members: {
2653
2887
  type: 'array',
2654
2888
  items: {
2655
- $ref: '#/components/schemas/Card',
2889
+ $ref: '#/components/schemas/MemberPeekResponse',
2656
2890
  },
2657
2891
  },
2658
- nextCursor: {
2659
- type: 'string',
2660
- },
2661
- hasNext: {
2662
- type: 'boolean',
2892
+ data: {
2893
+ $ref: '#/components/schemas/CursorPageTaskCardResponse',
2663
2894
  },
2664
2895
  },
2896
+ required: ['data', 'members'],
2665
2897
  };
2666
2898
  export const ClosedTaskResponseSchema = {
2667
2899
  type: 'object',
@@ -5235,7 +5467,7 @@ export const ListingGridResponseSchema = {
5235
5467
  ],
5236
5468
  },
5237
5469
  assignedTo: {
5238
- $ref: '#/components/schemas/AssignedToResponse',
5470
+ $ref: '#/components/schemas/MemberPeekResponse',
5239
5471
  },
5240
5472
  propertyType: {
5241
5473
  type: 'string',
@@ -5472,7 +5704,7 @@ export const InterestGridResponseSchema = {
5472
5704
  ],
5473
5705
  },
5474
5706
  assignedTo: {
5475
- $ref: '#/components/schemas/AssignedToResponse',
5707
+ $ref: '#/components/schemas/MemberPeekResponse',
5476
5708
  },
5477
5709
  createdBy: {
5478
5710
  type: 'string',
@@ -5828,7 +6060,7 @@ export const ContactGridResponseSchema = {
5828
6060
  format: 'uuid',
5829
6061
  },
5830
6062
  assignedTo: {
5831
- $ref: '#/components/schemas/AssignedToResponse',
6063
+ $ref: '#/components/schemas/MemberPeekResponse',
5832
6064
  },
5833
6065
  title: {
5834
6066
  type: 'string',
@@ -6307,7 +6539,7 @@ export const ContactLookupResponseSchema = {
6307
6539
  format: 'int64',
6308
6540
  },
6309
6541
  assignedTo: {
6310
- $ref: '#/components/schemas/AssignedToResponse',
6542
+ $ref: '#/components/schemas/MemberPeekResponse',
6311
6543
  },
6312
6544
  personalDetails: {
6313
6545
  oneOf: [