@homespot-sdk/core 0.0.323 → 0.0.324

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.
@@ -123,6 +123,9 @@ export const zRescheduleRequest = z.object({
123
123
  start: z.iso.datetime(),
124
124
  durationMinutes: z.optional(z.int().gte(15).lte(480)),
125
125
  });
126
+ export const zUpdateListingPriceRequest = z.object({
127
+ price: z.number(),
128
+ });
126
129
  export const zAgreementRequest = z.object({
127
130
  type: z.enum(['EXCLUSIVE', 'NON_EXCLUSIVE']),
128
131
  expiresAt: z.optional(z.iso.date()),
@@ -329,6 +332,27 @@ export const zTransferFundsRequest = z.object({
329
332
  export const zDepositFundsRequest = z.object({
330
333
  amount: z.number(),
331
334
  });
335
+ export const zSubscriptionAddressRequest = z.object({
336
+ country: z.string().min(0).max(100),
337
+ city: z.string().min(0).max(100),
338
+ district: z.string().min(0).max(100),
339
+ subdistrict: z.string().min(0).max(100),
340
+ street: z.string().min(0).max(255),
341
+ });
342
+ export const zSubscribeRequest = z.object({
343
+ plan: z.enum(['STARTER', 'PRO', 'ENTERPRISE']),
344
+ billingCycle: z.enum(['MONTHLY', 'ANNUAL']),
345
+ name: z.string(),
346
+ email: z.email(),
347
+ phone: z.string(),
348
+ subdomain: z.string(),
349
+ address: zSubscriptionAddressRequest,
350
+ });
351
+ export const zSubscriptionCheckoutResponse = z.object({
352
+ checkoutUrl: z.optional(z.string()),
353
+ agencyId: z.optional(z.uuid()),
354
+ subscriptionId: z.optional(z.uuid()),
355
+ });
332
356
  export const zIdResponseInteger = z.object({
333
357
  id: z
334
358
  .int()
@@ -483,6 +507,10 @@ export const zProblemDetail = z.object({
483
507
  export const zIdResponseUuid = z.object({
484
508
  id: z.uuid(),
485
509
  });
510
+ export const zCreateListingRequest = z.object({
511
+ listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
512
+ askingPrice: z.number(),
513
+ });
486
514
  export const zAddDealRequest = z.object({
487
515
  listingId: z.coerce
488
516
  .bigint()
@@ -502,6 +530,18 @@ export const zAddDealRequest = z.object({
502
530
  amount: z.optional(z.number()),
503
531
  factor: z.optional(z.number()),
504
532
  });
533
+ export const zCloseListingRequest = z.object({
534
+ withdrawExternal: z.optional(z.boolean()),
535
+ });
536
+ export const zClosePropertyRequest = z.object({
537
+ reason: z.enum([
538
+ 'DEAL_CLOSED',
539
+ 'OWNER_WITHDREW',
540
+ 'MANDATE_EXPIRED',
541
+ 'OTHER',
542
+ ]),
543
+ withdrawExternal: z.optional(z.boolean()),
544
+ });
505
545
  export const zInterestId = z.object({
506
546
  value: z.optional(z.coerce
507
547
  .bigint()
@@ -1880,6 +1920,10 @@ export const zPagedModelContactGridResponse = z.object({
1880
1920
  content: z.optional(z.array(zContactGridResponse)),
1881
1921
  page: z.optional(zPageMetadata),
1882
1922
  });
1923
+ export const zActiveItemsResult = z.object({
1924
+ propertyIds: z.optional(z.array(zPropertyId)),
1925
+ interestIds: z.optional(z.array(zInterestId)),
1926
+ });
1883
1927
  export const zAgreementResponse = z.object({
1884
1928
  agreement: z.enum(['EXCLUSIVE', 'NON_EXCLUSIVE']),
1885
1929
  expiryDate: z.optional(z.iso.date()),
@@ -2277,6 +2321,40 @@ export const zPutMeetingsByMeetingIdCancelData = z.object({
2277
2321
  * No Content
2278
2322
  */
2279
2323
  export const zPutMeetingsByMeetingIdCancelResponse = z.void();
2324
+ export const zPutContactsByContactIdPropertiesByPropertyIdListingsByListingIdPriceData = z.object({
2325
+ body: zUpdateListingPriceRequest,
2326
+ path: z.object({
2327
+ contactId: z.coerce
2328
+ .bigint()
2329
+ .min(BigInt('-9223372036854775808'), {
2330
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2331
+ })
2332
+ .max(BigInt('9223372036854775807'), {
2333
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2334
+ }),
2335
+ propertyId: z.coerce
2336
+ .bigint()
2337
+ .min(BigInt('-9223372036854775808'), {
2338
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2339
+ })
2340
+ .max(BigInt('9223372036854775807'), {
2341
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2342
+ }),
2343
+ listingId: z.coerce
2344
+ .bigint()
2345
+ .min(BigInt('-9223372036854775808'), {
2346
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2347
+ })
2348
+ .max(BigInt('9223372036854775807'), {
2349
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2350
+ }),
2351
+ }),
2352
+ query: z.optional(z.never()),
2353
+ });
2354
+ /**
2355
+ * No Content
2356
+ */
2357
+ export const zPutContactsByContactIdPropertiesByPropertyIdListingsByListingIdPriceResponse = z.void();
2280
2358
  export const zPutContactsByContactIdPropertiesByPropertyIdAgreementData = z.object({
2281
2359
  body: zAgreementRequest,
2282
2360
  path: z.object({
@@ -2595,6 +2673,24 @@ export const zPutContactByContactIdUpdateContactDetailsData = z.object({
2595
2673
  * No Content
2596
2674
  */
2597
2675
  export const zPutContactByContactIdUpdateContactDetailsResponse = z.void();
2676
+ export const zPutContactByContactIdReopenData = z.object({
2677
+ body: z.optional(z.never()),
2678
+ path: z.object({
2679
+ contactId: z.coerce
2680
+ .bigint()
2681
+ .min(BigInt('-9223372036854775808'), {
2682
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2683
+ })
2684
+ .max(BigInt('9223372036854775807'), {
2685
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2686
+ }),
2687
+ }),
2688
+ query: z.optional(z.never()),
2689
+ });
2690
+ /**
2691
+ * No Content
2692
+ */
2693
+ export const zPutContactByContactIdReopenResponse = z.void();
2598
2694
  export const zPutContactByContactIdLostData = z.object({
2599
2695
  body: zRecordLostContactRequest,
2600
2696
  path: z.object({
@@ -2767,6 +2863,24 @@ export const zPostWalletDepositData = z.object({
2767
2863
  * No Content
2768
2864
  */
2769
2865
  export const zPostWalletDepositResponse = z.void();
2866
+ export const zDeleteSubscriptionsData = z.object({
2867
+ body: z.optional(z.never()),
2868
+ path: z.optional(z.never()),
2869
+ query: z.optional(z.never()),
2870
+ });
2871
+ /**
2872
+ * No Content
2873
+ */
2874
+ export const zDeleteSubscriptionsResponse = z.void();
2875
+ export const zPostSubscriptionsData = z.object({
2876
+ body: zSubscribeRequest,
2877
+ path: z.optional(z.never()),
2878
+ query: z.optional(z.never()),
2879
+ });
2880
+ /**
2881
+ * Created
2882
+ */
2883
+ export const zPostSubscriptionsResponse = zSubscriptionCheckoutResponse;
2770
2884
  export const zGetRolesData = z.object({
2771
2885
  body: z.optional(z.never()),
2772
2886
  path: z.optional(z.never()),
@@ -2852,6 +2966,11 @@ export const zPostPublicWebhooksMetaFbData = z.object({
2852
2966
  'X-Hub-Signature-256': z.optional(z.string()),
2853
2967
  })),
2854
2968
  });
2969
+ export const zPostPublicWebhooksFlittData = z.object({
2970
+ body: z.record(z.string(), z.unknown()),
2971
+ path: z.optional(z.never()),
2972
+ query: z.optional(z.never()),
2973
+ });
2855
2974
  export const zPostPublicRecomendationsByTokenItemsByItemIdRateData = z.object({
2856
2975
  body: zRateRecommendationItemRequest,
2857
2976
  path: z.object({
@@ -3053,6 +3172,92 @@ export const zPostConversationsByConversationIdMessagesData = z.object({
3053
3172
  * Message persisted and sent
3054
3173
  */
3055
3174
  export const zPostConversationsByConversationIdMessagesResponse = zIdResponseUuid;
3175
+ export const zPostContactsByContactIdPropertiesByPropertyIdReopenData = z.object({
3176
+ body: z.optional(z.never()),
3177
+ path: z.object({
3178
+ contactId: z.coerce
3179
+ .bigint()
3180
+ .min(BigInt('-9223372036854775808'), {
3181
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3182
+ })
3183
+ .max(BigInt('9223372036854775807'), {
3184
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3185
+ }),
3186
+ propertyId: z.coerce
3187
+ .bigint()
3188
+ .min(BigInt('-9223372036854775808'), {
3189
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3190
+ })
3191
+ .max(BigInt('9223372036854775807'), {
3192
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3193
+ }),
3194
+ }),
3195
+ query: z.optional(z.never()),
3196
+ });
3197
+ /**
3198
+ * No Content
3199
+ */
3200
+ export const zPostContactsByContactIdPropertiesByPropertyIdReopenResponse = z.void();
3201
+ export const zPostContactsByContactIdPropertiesByPropertyIdListingsData = z.object({
3202
+ body: zCreateListingRequest,
3203
+ path: z.object({
3204
+ contactId: z.coerce
3205
+ .bigint()
3206
+ .min(BigInt('-9223372036854775808'), {
3207
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3208
+ })
3209
+ .max(BigInt('9223372036854775807'), {
3210
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3211
+ }),
3212
+ propertyId: z.coerce
3213
+ .bigint()
3214
+ .min(BigInt('-9223372036854775808'), {
3215
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3216
+ })
3217
+ .max(BigInt('9223372036854775807'), {
3218
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3219
+ }),
3220
+ }),
3221
+ query: z.optional(z.never()),
3222
+ });
3223
+ /**
3224
+ * Created
3225
+ */
3226
+ export const zPostContactsByContactIdPropertiesByPropertyIdListingsResponse = zIdResponseUuid;
3227
+ export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdReopenData = z.object({
3228
+ body: z.optional(z.never()),
3229
+ path: z.object({
3230
+ contactId: z.coerce
3231
+ .bigint()
3232
+ .min(BigInt('-9223372036854775808'), {
3233
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3234
+ })
3235
+ .max(BigInt('9223372036854775807'), {
3236
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3237
+ }),
3238
+ propertyId: z.coerce
3239
+ .bigint()
3240
+ .min(BigInt('-9223372036854775808'), {
3241
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3242
+ })
3243
+ .max(BigInt('9223372036854775807'), {
3244
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3245
+ }),
3246
+ listingId: z.coerce
3247
+ .bigint()
3248
+ .min(BigInt('-9223372036854775808'), {
3249
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3250
+ })
3251
+ .max(BigInt('9223372036854775807'), {
3252
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3253
+ }),
3254
+ }),
3255
+ query: z.optional(z.never()),
3256
+ });
3257
+ /**
3258
+ * No Content
3259
+ */
3260
+ export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdReopenResponse = z.void();
3056
3261
  export const zDeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealData = z.object({
3057
3262
  body: z.optional(z.never()),
3058
3263
  path: z.object({
@@ -3121,6 +3326,66 @@ export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdDe
3121
3326
  * No Content
3122
3327
  */
3123
3328
  export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponse = z.void();
3329
+ export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdCloseData = z.object({
3330
+ body: zCloseListingRequest,
3331
+ path: z.object({
3332
+ contactId: z.coerce
3333
+ .bigint()
3334
+ .min(BigInt('-9223372036854775808'), {
3335
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3336
+ })
3337
+ .max(BigInt('9223372036854775807'), {
3338
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3339
+ }),
3340
+ propertyId: z.coerce
3341
+ .bigint()
3342
+ .min(BigInt('-9223372036854775808'), {
3343
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3344
+ })
3345
+ .max(BigInt('9223372036854775807'), {
3346
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3347
+ }),
3348
+ listingId: z.coerce
3349
+ .bigint()
3350
+ .min(BigInt('-9223372036854775808'), {
3351
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3352
+ })
3353
+ .max(BigInt('9223372036854775807'), {
3354
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3355
+ }),
3356
+ }),
3357
+ query: z.optional(z.never()),
3358
+ });
3359
+ /**
3360
+ * No Content
3361
+ */
3362
+ export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdCloseResponse = z.void();
3363
+ export const zPostContactsByContactIdPropertiesByPropertyIdCloseData = z.object({
3364
+ body: zClosePropertyRequest,
3365
+ path: z.object({
3366
+ contactId: z.coerce
3367
+ .bigint()
3368
+ .min(BigInt('-9223372036854775808'), {
3369
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3370
+ })
3371
+ .max(BigInt('9223372036854775807'), {
3372
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3373
+ }),
3374
+ propertyId: z.coerce
3375
+ .bigint()
3376
+ .min(BigInt('-9223372036854775808'), {
3377
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3378
+ })
3379
+ .max(BigInt('9223372036854775807'), {
3380
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3381
+ }),
3382
+ }),
3383
+ query: z.optional(z.never()),
3384
+ });
3385
+ /**
3386
+ * No Content
3387
+ */
3388
+ export const zPostContactsByContactIdPropertiesByPropertyIdCloseResponse = z.void();
3124
3389
  export const zPostContactsByContactIdInterestsData = z.object({
3125
3390
  body: zCaptureInterestRequest,
3126
3391
  path: z.object({
@@ -4114,6 +4379,24 @@ export const zGetContactByContactIdData = z.object({
4114
4379
  * OK
4115
4380
  */
4116
4381
  export const zGetContactByContactIdResponse = zContactGridResponse;
4382
+ export const zGetContactByContactIdOpenItemsData = z.object({
4383
+ body: z.optional(z.never()),
4384
+ path: z.object({
4385
+ contactId: z.coerce
4386
+ .bigint()
4387
+ .min(BigInt('-9223372036854775808'), {
4388
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
4389
+ })
4390
+ .max(BigInt('9223372036854775807'), {
4391
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
4392
+ }),
4393
+ }),
4394
+ query: z.optional(z.never()),
4395
+ });
4396
+ /**
4397
+ * OK
4398
+ */
4399
+ export const zGetContactByContactIdOpenItemsResponse = zActiveItemsResult;
4117
4400
  export const zGetContactByContactId360Data = z.object({
4118
4401
  body: z.optional(z.never()),
4119
4402
  path: z.object({
@@ -4340,6 +4623,42 @@ export const zDeleteConversationsByConversationIdPresenceData = z.object({
4340
4623
  * No Content
4341
4624
  */
4342
4625
  export const zDeleteConversationsByConversationIdPresenceResponse = z.void();
4626
+ export const zDeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdData = z.object({
4627
+ body: z.optional(z.never()),
4628
+ path: z.object({
4629
+ contactId: z.coerce
4630
+ .bigint()
4631
+ .min(BigInt('-9223372036854775808'), {
4632
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
4633
+ })
4634
+ .max(BigInt('9223372036854775807'), {
4635
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
4636
+ }),
4637
+ propertyId: z.coerce
4638
+ .bigint()
4639
+ .min(BigInt('-9223372036854775808'), {
4640
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
4641
+ })
4642
+ .max(BigInt('9223372036854775807'), {
4643
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
4644
+ }),
4645
+ listingId: z.coerce
4646
+ .bigint()
4647
+ .min(BigInt('-9223372036854775808'), {
4648
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
4649
+ })
4650
+ .max(BigInt('9223372036854775807'), {
4651
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
4652
+ }),
4653
+ }),
4654
+ query: z.optional(z.object({
4655
+ withdrawExternal: z.optional(z.boolean()).default(false),
4656
+ })),
4657
+ });
4658
+ /**
4659
+ * No Content
4660
+ */
4661
+ export const zDeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdResponse = z.void();
4343
4662
  export const zDeleteContactsByContactIdInterestsByInterestIdItemsByItemIdData = z.object({
4344
4663
  body: z.optional(z.never()),
4345
4664
  path: z.object({