@homespot-sdk/core 0.0.352 → 0.0.355

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.
@@ -191,10 +191,9 @@ export type AddressRequest = {
191
191
  subdistrict: string;
192
192
  street: string;
193
193
  };
194
- export type CreateAgencyRequest = {
194
+ export type AmendAgencyDetailsRequest = {
195
195
  name: string;
196
196
  email: string;
197
- seats: number;
198
197
  subdomain: string;
199
198
  phone: string;
200
199
  address: AddressRequest;
@@ -287,6 +286,20 @@ export type SubscriptionCheckoutResponse = {
287
286
  agencyId?: string;
288
287
  subscriptionId?: string;
289
288
  };
289
+ export type ChangePlanRequest = {
290
+ plan: 'STARTER' | 'PRO' | 'ENTERPRISE';
291
+ billingCycle: 'MONTHLY' | 'ANNUAL';
292
+ };
293
+ export type CheckoutRequest = {
294
+ /**
295
+ * Required only when starting a new subscription
296
+ */
297
+ plan?: 'STARTER' | 'PRO' | 'ENTERPRISE';
298
+ /**
299
+ * Required only when starting a new subscription
300
+ */
301
+ billingCycle?: 'MONTHLY' | 'ANNUAL';
302
+ };
290
303
  export type IdResponseInteger = {
291
304
  id: number;
292
305
  };
@@ -310,7 +323,7 @@ export type ConnectWhatsAppRequest = {
310
323
  export type OauthConnectionResponse = {
311
324
  agencyId: string;
312
325
  userId: string;
313
- provider: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
326
+ provider: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
314
327
  status: 'ACTIVE' | 'REVOKED';
315
328
  pagePicture?: string;
316
329
  pageName?: string;
@@ -602,6 +615,15 @@ export type MemberPeekResponse = {
602
615
  phone?: string;
603
616
  email: string;
604
617
  };
618
+ export type Participant = {
619
+ memberId: string;
620
+ firstName: string;
621
+ lastName: string;
622
+ photo?: string;
623
+ phone?: string;
624
+ email: string;
625
+ owner: boolean;
626
+ };
605
627
  export type PropertyLink = {
606
628
  propertyId: number;
607
629
  contactId: number;
@@ -627,14 +649,13 @@ export type TaskDetailResponse = {
627
649
  commissionType: 'NOT_SET' | 'FIXED' | 'PERCENTAGE' | 'MONTHS_OF_RENT';
628
650
  commissionValue?: number;
629
651
  expectedCloseDate?: Date;
630
- owner?: MemberPeekResponse;
631
652
  outcome?: 'WON' | 'LOST';
632
653
  lostReason?: 'NOT_WORKING_WITH_AGENTS' | 'NOT_RESPONDING' | 'ALREADY_SOLD' | 'COULD_NOT_NEGOTIATE_PRICE' | 'CHOSE_ANOTHER_AGENCY' | 'CHANGED_PLANS' | 'OUT_OF_BUDGET' | 'SPAM' | 'OTHER';
633
654
  closedAt?: Date;
634
655
  createdBy?: string;
635
656
  createdAt: Date;
636
657
  contacts: Array<ContactLink>;
637
- participants: Array<MemberPeekResponse>;
658
+ participants: Array<Participant>;
638
659
  interests: Array<InterestLink>;
639
660
  properties: Array<PropertyLink>;
640
661
  todoGroups: Array<TodoGroup>;
@@ -745,6 +766,60 @@ export type StageCardsResponse = {
745
766
  members: Array<MemberPeekResponse>;
746
767
  data: CursorPageTaskCardResponse;
747
768
  };
769
+ export type SubscriptionResponse = {
770
+ subscriptionId: string;
771
+ plan: 'STARTER' | 'PRO' | 'ENTERPRISE';
772
+ billingCycle: 'MONTHLY' | 'ANNUAL';
773
+ /**
774
+ * Per-cycle price in minor units (tetri)
775
+ */
776
+ priceMinorUnits: number;
777
+ currency: string;
778
+ seats: number;
779
+ monthlyContactLimit: number;
780
+ trialDays: number;
781
+ status: 'PENDING' | 'TRIALING' | 'ACTIVE' | 'PAST_DUE' | 'CANCELLED' | 'EXPIRED';
782
+ /**
783
+ * Whether the agency is currently entitled to the workspace
784
+ */
785
+ live: boolean;
786
+ trialEndsAt?: Date;
787
+ paidThroughAt?: Date;
788
+ /**
789
+ * When the current entitlement ends, before grace; null while pending or once expired
790
+ */
791
+ accessEndsAt?: Date;
792
+ pastDueSince?: Date;
793
+ lastChargedAt?: Date;
794
+ createdAt: Date;
795
+ activatedAt?: Date;
796
+ cancelledAt?: Date;
797
+ /**
798
+ * When the most recently issued checkout link stops being payable
799
+ */
800
+ checkoutExpiresAt?: Date;
801
+ };
802
+ export type PaymentResponse = {
803
+ id: string;
804
+ subscriptionId: string;
805
+ flittPaymentId: string;
806
+ flittOrderId: string;
807
+ /**
808
+ * Flitt's verdict: approved / declined / reversed / expired …
809
+ */
810
+ orderStatus: string;
811
+ tranType?: string;
812
+ /**
813
+ * What the platform did with it
814
+ */
815
+ outcome: 'APPLIED' | 'TRIAL_STARTED' | 'DUPLICATE' | 'NOT_APPLIED_CANCELLED' | 'REJECTED_AMOUNT' | 'REJECTED_CURRENCY' | 'IGNORED_TRANSACTION_TYPE' | 'DECLINED' | 'REVERSED' | 'REVERSAL_IGNORED' | 'RECORDED';
816
+ amountMinorUnits?: number;
817
+ currency?: string;
818
+ responseCode?: string;
819
+ responseDescription?: string;
820
+ orderTime?: Date;
821
+ receivedAt: Date;
822
+ };
748
823
  export type Bucket = {
749
824
  count: number;
750
825
  value: number;
@@ -803,7 +878,7 @@ export type Segment = {
803
878
  share: number;
804
879
  };
805
880
  export type ChannelSeries = {
806
- channel: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN';
881
+ channel: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'UNKNOWN';
807
882
  points: Array<number>;
808
883
  total: number;
809
884
  };
@@ -1095,7 +1170,7 @@ export type ContactAssigned = {
1095
1170
  contactName?: string;
1096
1171
  from?: MemberId;
1097
1172
  by?: MemberId;
1098
- source?: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN';
1173
+ source?: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'UNKNOWN';
1099
1174
  kind: 'CONTACT_ASSIGNED';
1100
1175
  };
1101
1176
  export type ContactId = {
@@ -1122,7 +1197,7 @@ export type MemberId = {
1122
1197
  export type NewMessage = {
1123
1198
  contactId?: ContactId;
1124
1199
  conversationId?: ConversationId;
1125
- channelType?: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
1200
+ channelType?: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
1126
1201
  preview?: string;
1127
1202
  displayName?: string;
1128
1203
  kind: 'NEW_MESSAGE';
@@ -1145,15 +1220,39 @@ export type NotificationFeed = {
1145
1220
  export type NotificationView = {
1146
1221
  id: string;
1147
1222
  seq: number;
1148
- type: 'AGENT_COMMENTED' | 'TASK_COMMENTED' | 'EXTERNAL_LISTING_EXPIRED' | 'LISTING_EXPIRED' | 'NEW_SEEKER_RATING' | 'NEW_MESSAGE' | 'CONTACT_ASSIGNED';
1223
+ type: 'AGENT_COMMENTED' | 'TASK_COMMENTED' | 'EXTERNAL_LISTING_EXPIRED' | 'LISTING_EXPIRED' | 'NEW_SEEKER_RATING' | 'NEW_MESSAGE' | 'CONTACT_ASSIGNED' | 'SUBSCRIPTION_PAYMENT_FAILED' | 'SUBSCRIPTION_ENDING' | 'SUBSCRIPTION_EXPIRED' | 'SUBSCRIPTION_PAYMENT_REVERSED';
1149
1224
  targetId?: string;
1150
- payload: AgentCommented | ContactAssigned | ListingExpired | NewMessage | NewSeekerRating | TaskCommented;
1225
+ payload: AgentCommented | ContactAssigned | ListingExpired | NewMessage | NewSeekerRating | SubscriptionEnding | SubscriptionExpired | SubscriptionPaymentFailed | SubscriptionPaymentReversed | TaskCommented;
1151
1226
  createdAt: Date;
1152
1227
  read: boolean;
1153
1228
  };
1154
1229
  export type PropertyId = {
1155
1230
  value?: number;
1156
1231
  };
1232
+ export type SubscriptionEnding = {
1233
+ subscriptionId?: SubscriptionId;
1234
+ status?: 'PENDING' | 'TRIALING' | 'ACTIVE' | 'PAST_DUE' | 'CANCELLED' | 'EXPIRED';
1235
+ endsAt?: Date;
1236
+ kind: 'SUBSCRIPTION_ENDING';
1237
+ };
1238
+ export type SubscriptionExpired = {
1239
+ subscriptionId?: SubscriptionId;
1240
+ kind: 'SUBSCRIPTION_EXPIRED';
1241
+ };
1242
+ export type SubscriptionId = {
1243
+ value?: string;
1244
+ };
1245
+ export type SubscriptionPaymentFailed = {
1246
+ subscriptionId?: SubscriptionId;
1247
+ reason?: string;
1248
+ accessUntil?: Date;
1249
+ kind: 'SUBSCRIPTION_PAYMENT_FAILED';
1250
+ };
1251
+ export type SubscriptionPaymentReversed = {
1252
+ subscriptionId?: SubscriptionId;
1253
+ paymentId?: string;
1254
+ kind: 'SUBSCRIPTION_PAYMENT_REVERSED';
1255
+ };
1157
1256
  export type TaskCommented = {
1158
1257
  commentId?: CommentId;
1159
1258
  taskId?: TaskId;
@@ -1179,6 +1278,11 @@ export type MemberViewResponse = {
1179
1278
  roleId: number;
1180
1279
  roleName: string;
1181
1280
  joinedAt: Date;
1281
+ /**
1282
+ * ACTIVE, or INACTIVE for a removed member
1283
+ */
1284
+ status: string;
1285
+ removedAt?: Date;
1182
1286
  };
1183
1287
  export type Pageable = {
1184
1288
  page?: number;
@@ -1296,6 +1400,7 @@ export type AreaRange = {
1296
1400
  };
1297
1401
  export type InterestGridResponse = {
1298
1402
  interestId: number;
1403
+ title: string;
1299
1404
  contactId?: number;
1300
1405
  personalDetails: ContactPersonalDetailsRestricted | ContactPersonalDetailsVisible;
1301
1406
  assignedTo?: MemberPeekResponse;
@@ -1338,7 +1443,7 @@ export type InboxResponse = {
1338
1443
  unreadCount?: number;
1339
1444
  lastMessagePreview?: string;
1340
1445
  direction?: 'INBOUND' | 'OUTBOUND';
1341
- channelType?: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
1446
+ channelType?: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
1342
1447
  contactId?: number;
1343
1448
  isReachable?: boolean;
1344
1449
  windowExpiresAt?: Date;
@@ -1356,6 +1461,8 @@ export type Image = {
1356
1461
  export type MessageContent = ({
1357
1462
  kind: 'TEXT';
1358
1463
  } & Text) | ({
1464
+ kind: 'IMAGE';
1465
+ } & Image) | ({
1359
1466
  kind: 'UNSUPPORTED';
1360
1467
  } & Unsupported);
1361
1468
  export type MessageView = {
@@ -1385,6 +1492,7 @@ export type ThreadUpdates = {
1385
1492
  hasMore?: boolean;
1386
1493
  };
1387
1494
  export type Unsupported = {
1495
+ mediaType?: string;
1388
1496
  kind: 'UNSUPPORTED';
1389
1497
  };
1390
1498
  export type CursorPageMessageView = {
@@ -1399,7 +1507,7 @@ export type ContactGridResponse = {
1399
1507
  title?: string;
1400
1508
  personalDetails: ContactPersonalDetailsRestricted | ContactPersonalDetailsVisible;
1401
1509
  gender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
1402
- sourceType?: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN';
1510
+ sourceType?: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'UNKNOWN';
1403
1511
  sourceLink?: string;
1404
1512
  isSearching: boolean;
1405
1513
  isListing: boolean;
@@ -1470,7 +1578,7 @@ export type ContactPropertyResponse = {
1470
1578
  listings: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
1471
1579
  };
1472
1580
  export type SourceResponse = {
1473
- sourceType: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN';
1581
+ sourceType: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'UNKNOWN';
1474
1582
  sourceLink?: string;
1475
1583
  };
1476
1584
  export type AssignedAgent = {
@@ -2493,7 +2601,7 @@ export type PutBoardByBoardIdRenameResponses = {
2493
2601
  };
2494
2602
  export type PutBoardByBoardIdRenameResponse = PutBoardByBoardIdRenameResponses[keyof PutBoardByBoardIdRenameResponses];
2495
2603
  export type PutAgencyByAgencyIdDetailsData = {
2496
- body: CreateAgencyRequest;
2604
+ body: AmendAgencyDetailsRequest;
2497
2605
  path: {
2498
2606
  agencyId: string;
2499
2607
  };
@@ -2507,21 +2615,6 @@ export type PutAgencyByAgencyIdDetailsResponses = {
2507
2615
  204: void;
2508
2616
  };
2509
2617
  export type PutAgencyByAgencyIdDetailsResponse = PutAgencyByAgencyIdDetailsResponses[keyof PutAgencyByAgencyIdDetailsResponses];
2510
- export type PutAgencyByAgencyIdActivateData = {
2511
- body?: never;
2512
- path: {
2513
- agencyId: string;
2514
- };
2515
- query?: never;
2516
- url: '/agency/{agencyId}/activate';
2517
- };
2518
- export type PutAgencyByAgencyIdActivateResponses = {
2519
- /**
2520
- * No Content
2521
- */
2522
- 204: void;
2523
- };
2524
- export type PutAgencyByAgencyIdActivateResponse = PutAgencyByAgencyIdActivateResponses[keyof PutAgencyByAgencyIdActivateResponses];
2525
2618
  export type PutAgencySettingsInfoData = {
2526
2619
  body: UpdateAgencyInfoRequest;
2527
2620
  path?: never;
@@ -2855,6 +2948,51 @@ export type PostSubscriptionsResponses = {
2855
2948
  201: SubscriptionCheckoutResponse;
2856
2949
  };
2857
2950
  export type PostSubscriptionsResponse = PostSubscriptionsResponses[keyof PostSubscriptionsResponses];
2951
+ export type PostSubscriptionsByAgencyIdResumeData = {
2952
+ body?: never;
2953
+ path: {
2954
+ agencyId: string;
2955
+ };
2956
+ query?: never;
2957
+ url: '/subscriptions/{agencyId}/resume';
2958
+ };
2959
+ export type PostSubscriptionsByAgencyIdResumeResponses = {
2960
+ /**
2961
+ * No Content
2962
+ */
2963
+ 204: void;
2964
+ };
2965
+ export type PostSubscriptionsByAgencyIdResumeResponse = PostSubscriptionsByAgencyIdResumeResponses[keyof PostSubscriptionsByAgencyIdResumeResponses];
2966
+ export type PostSubscriptionsByAgencyIdPlanData = {
2967
+ body: ChangePlanRequest;
2968
+ path: {
2969
+ agencyId: string;
2970
+ };
2971
+ query?: never;
2972
+ url: '/subscriptions/{agencyId}/plan';
2973
+ };
2974
+ export type PostSubscriptionsByAgencyIdPlanResponses = {
2975
+ /**
2976
+ * Created
2977
+ */
2978
+ 201: SubscriptionCheckoutResponse;
2979
+ };
2980
+ export type PostSubscriptionsByAgencyIdPlanResponse = PostSubscriptionsByAgencyIdPlanResponses[keyof PostSubscriptionsByAgencyIdPlanResponses];
2981
+ export type PostSubscriptionsByAgencyIdCheckoutData = {
2982
+ body?: CheckoutRequest;
2983
+ path: {
2984
+ agencyId: string;
2985
+ };
2986
+ query?: never;
2987
+ url: '/subscriptions/{agencyId}/checkout';
2988
+ };
2989
+ export type PostSubscriptionsByAgencyIdCheckoutResponses = {
2990
+ /**
2991
+ * Created
2992
+ */
2993
+ 201: SubscriptionCheckoutResponse;
2994
+ };
2995
+ export type PostSubscriptionsByAgencyIdCheckoutResponse = PostSubscriptionsByAgencyIdCheckoutResponses[keyof PostSubscriptionsByAgencyIdCheckoutResponses];
2858
2996
  export type GetRolesData = {
2859
2997
  body?: never;
2860
2998
  path?: never;
@@ -2894,6 +3032,21 @@ export type PostRolesResponses = {
2894
3032
  201: IdResponseInteger;
2895
3033
  };
2896
3034
  export type PostRolesResponse = PostRolesResponses[keyof PostRolesResponses];
3035
+ export type PostPublicWebhooksTiktokData = {
3036
+ body: string;
3037
+ headers?: {
3038
+ 'Tiktok-Signature'?: string;
3039
+ };
3040
+ path?: never;
3041
+ query?: never;
3042
+ url: '/public/webhooks/tiktok';
3043
+ };
3044
+ export type PostPublicWebhooksTiktokResponses = {
3045
+ /**
3046
+ * OK
3047
+ */
3048
+ 200: unknown;
3049
+ };
2897
3050
  export type PostPublicWebhooksTelegramData = {
2898
3051
  body: string;
2899
3052
  headers?: {
@@ -3569,7 +3722,8 @@ export type GetContactData = {
3569
3722
  contactName?: string;
3570
3723
  contactPhone?: string;
3571
3724
  contactEmail?: string;
3572
- sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN'>;
3725
+ title?: string;
3726
+ sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'UNKNOWN'>;
3573
3727
  contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
3574
3728
  createdFrom?: Date;
3575
3729
  createdTo?: Date;
@@ -3721,32 +3875,6 @@ export type PostApiAdminSubscriptionsProvisionResponses = {
3721
3875
  201: AdminProvisionResponse;
3722
3876
  };
3723
3877
  export type PostApiAdminSubscriptionsProvisionResponse = PostApiAdminSubscriptionsProvisionResponses[keyof PostApiAdminSubscriptionsProvisionResponses];
3724
- export type GetAgencyData = {
3725
- body?: never;
3726
- path?: never;
3727
- query?: never;
3728
- url: '/agency';
3729
- };
3730
- export type GetAgencyResponses = {
3731
- /**
3732
- * OK
3733
- */
3734
- 200: AgencyProfileResponse;
3735
- };
3736
- export type GetAgencyResponse = GetAgencyResponses[keyof GetAgencyResponses];
3737
- export type PostAgencyData = {
3738
- body: CreateAgencyRequest;
3739
- path?: never;
3740
- query?: never;
3741
- url: '/agency';
3742
- };
3743
- export type PostAgencyResponses = {
3744
- /**
3745
- * Created
3746
- */
3747
- 201: IdResponseUuid;
3748
- };
3749
- export type PostAgencyResponse = PostAgencyResponses[keyof PostAgencyResponses];
3750
3878
  export type PatchTaskByTaskIdPositionData = {
3751
3879
  body: PositionTaskRequest;
3752
3880
  path: {
@@ -3863,6 +3991,51 @@ export type GetTaskBoardByBoardIdCardsResponses = {
3863
3991
  200: StageCardsResponse;
3864
3992
  };
3865
3993
  export type GetTaskBoardByBoardIdCardsResponse = GetTaskBoardByBoardIdCardsResponses[keyof GetTaskBoardByBoardIdCardsResponses];
3994
+ export type DeleteSubscriptionsByAgencyIdData = {
3995
+ body?: never;
3996
+ path: {
3997
+ agencyId: string;
3998
+ };
3999
+ query?: never;
4000
+ url: '/subscriptions/{agencyId}';
4001
+ };
4002
+ export type DeleteSubscriptionsByAgencyIdResponses = {
4003
+ /**
4004
+ * No Content
4005
+ */
4006
+ 204: void;
4007
+ };
4008
+ export type DeleteSubscriptionsByAgencyIdResponse = DeleteSubscriptionsByAgencyIdResponses[keyof DeleteSubscriptionsByAgencyIdResponses];
4009
+ export type GetSubscriptionsByAgencyIdData = {
4010
+ body?: never;
4011
+ path: {
4012
+ agencyId: string;
4013
+ };
4014
+ query?: never;
4015
+ url: '/subscriptions/{agencyId}';
4016
+ };
4017
+ export type GetSubscriptionsByAgencyIdResponses = {
4018
+ /**
4019
+ * OK
4020
+ */
4021
+ 200: SubscriptionResponse;
4022
+ };
4023
+ export type GetSubscriptionsByAgencyIdResponse = GetSubscriptionsByAgencyIdResponses[keyof GetSubscriptionsByAgencyIdResponses];
4024
+ export type GetSubscriptionsByAgencyIdPaymentsData = {
4025
+ body?: never;
4026
+ path: {
4027
+ agencyId: string;
4028
+ };
4029
+ query?: never;
4030
+ url: '/subscriptions/{agencyId}/payments';
4031
+ };
4032
+ export type GetSubscriptionsByAgencyIdPaymentsResponses = {
4033
+ /**
4034
+ * OK
4035
+ */
4036
+ 200: Array<PaymentResponse>;
4037
+ };
4038
+ export type GetSubscriptionsByAgencyIdPaymentsResponse = GetSubscriptionsByAgencyIdPaymentsResponses[keyof GetSubscriptionsByAgencyIdPaymentsResponses];
3866
4039
  export type GetStatsPipelineCommissionData = {
3867
4040
  body?: never;
3868
4041
  path?: never;
@@ -3996,22 +4169,24 @@ export type GetPublicPermissionsResponses = {
3996
4169
  200: Array<GroupedPermissionsResponse>;
3997
4170
  };
3998
4171
  export type GetPublicPermissionsResponse = GetPublicPermissionsResponses[keyof GetPublicPermissionsResponses];
3999
- export type GetPublicOauthGoogleCallbackData = {
4172
+ export type GetPublicOauthCallbackData = {
4000
4173
  body?: never;
4001
4174
  path?: never;
4002
- query: {
4003
- code: string;
4004
- state: string;
4175
+ query?: {
4176
+ code?: string;
4177
+ state?: string;
4178
+ error?: string;
4179
+ error_description?: string;
4005
4180
  };
4006
- url: '/public/oauth/google/callback';
4181
+ url: '/public/oauth/callback';
4007
4182
  };
4008
- export type GetPublicOauthGoogleCallbackResponses = {
4183
+ export type GetPublicOauthCallbackResponses = {
4009
4184
  /**
4010
4185
  * OK
4011
4186
  */
4012
4187
  200: unknown;
4013
4188
  };
4014
- export type GetPublicOauthCallbackData = {
4189
+ export type GetPublicOauthTiktokAccountCallbackData = {
4015
4190
  body?: never;
4016
4191
  path?: never;
4017
4192
  query?: {
@@ -4020,9 +4195,24 @@ export type GetPublicOauthCallbackData = {
4020
4195
  error?: string;
4021
4196
  error_description?: string;
4022
4197
  };
4023
- url: '/public/oauth/callback';
4198
+ url: '/public/oauth/tiktok/account/callback';
4024
4199
  };
4025
- export type GetPublicOauthCallbackResponses = {
4200
+ export type GetPublicOauthTiktokAccountCallbackResponses = {
4201
+ /**
4202
+ * OK
4203
+ */
4204
+ 200: unknown;
4205
+ };
4206
+ export type GetPublicOauthGoogleCallbackData = {
4207
+ body?: never;
4208
+ path?: never;
4209
+ query: {
4210
+ code: string;
4211
+ state: string;
4212
+ };
4213
+ url: '/public/oauth/google/callback';
4214
+ };
4215
+ export type GetPublicOauthGoogleCallbackResponses = {
4026
4216
  /**
4027
4217
  * OK
4028
4218
  */
@@ -4164,7 +4354,7 @@ export type GetOauthResponse = GetOauthResponses[keyof GetOauthResponses];
4164
4354
  export type DeleteOauthByChannelData = {
4165
4355
  body?: never;
4166
4356
  path: {
4167
- channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
4357
+ channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
4168
4358
  };
4169
4359
  query?: never;
4170
4360
  url: '/oauth/{channel}';
@@ -4178,7 +4368,7 @@ export type DeleteOauthByChannelResponses = {
4178
4368
  export type GetOauthByChannelData = {
4179
4369
  body?: never;
4180
4370
  path: {
4181
- channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
4371
+ channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
4182
4372
  };
4183
4373
  query?: never;
4184
4374
  url: '/oauth/{channel}';
@@ -4193,7 +4383,7 @@ export type GetOauthByChannelResponse = GetOauthByChannelResponses[keyof GetOaut
4193
4383
  export type GetOauthByChannelAuthorizeData = {
4194
4384
  body?: never;
4195
4385
  path: {
4196
- channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
4386
+ channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
4197
4387
  };
4198
4388
  query?: never;
4199
4389
  url: '/oauth/{channel}/authorize';
@@ -4287,6 +4477,7 @@ export type GetMemberData = {
4287
4477
  query?: {
4288
4478
  roleId?: number;
4289
4479
  permission?: 'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT' | 'MANAGE_BOARD' | 'MANAGE_DEAL' | 'DELETE_DEAL';
4480
+ includeRemoved?: boolean;
4290
4481
  /**
4291
4482
  * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
4292
4483
  */
@@ -4347,6 +4538,7 @@ export type GetListingData = {
4347
4538
  agreementExpiresFrom?: Date;
4348
4539
  agreementExpiresTo?: Date;
4349
4540
  propertyTypes?: Array<'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE'>;
4541
+ title?: string;
4350
4542
  listingTypes?: Array<string>;
4351
4543
  commissionTypes?: Array<string>;
4352
4544
  contactId?: number;
@@ -4354,7 +4546,7 @@ export type GetListingData = {
4354
4546
  contactPhone?: string;
4355
4547
  assignedTo?: Array<string>;
4356
4548
  locationType?: 'REGION' | 'DISTRICT' | 'SUBDISTRICT' | 'STREET';
4357
- locationId?: number;
4549
+ locationId?: string;
4358
4550
  priceMin?: number;
4359
4551
  priceMax?: number;
4360
4552
  createdFrom?: Date;
@@ -4412,6 +4604,7 @@ export type GetListingGroupsData = {
4412
4604
  agreementExpiresFrom?: Date;
4413
4605
  agreementExpiresTo?: Date;
4414
4606
  propertyTypes?: Array<'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE'>;
4607
+ title?: string;
4415
4608
  listingTypes?: Array<string>;
4416
4609
  commissionTypes?: Array<string>;
4417
4610
  contactId?: number;
@@ -4419,7 +4612,7 @@ export type GetListingGroupsData = {
4419
4612
  contactPhone?: string;
4420
4613
  assignedTo?: Array<string>;
4421
4614
  locationType?: 'REGION' | 'DISTRICT' | 'SUBDISTRICT' | 'STREET';
4422
- locationId?: number;
4615
+ locationId?: string;
4423
4616
  priceMin?: number;
4424
4617
  priceMax?: number;
4425
4618
  createdFrom?: Date;
@@ -4447,13 +4640,14 @@ export type GetInterestData = {
4447
4640
  statuses?: Array<'UNPUBLISHED' | 'PUBLISHED' | 'CLOSED'>;
4448
4641
  listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
4449
4642
  propertyTypes?: Array<'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE'>;
4643
+ title?: string;
4450
4644
  contactId?: number;
4451
4645
  contactName?: string;
4452
4646
  contactPhone?: string;
4453
4647
  assignedTo?: Array<string>;
4454
4648
  createdBy?: string;
4455
4649
  locationType?: 'REGION' | 'DISTRICT' | 'SUBDISTRICT' | 'STREET';
4456
- locationId?: number;
4650
+ locationId?: string;
4457
4651
  priceMin?: number;
4458
4652
  priceMax?: number;
4459
4653
  bedroomsMin?: number;
@@ -4511,13 +4705,14 @@ export type GetInterestGroupsData = {
4511
4705
  statuses?: Array<'UNPUBLISHED' | 'PUBLISHED' | 'CLOSED'>;
4512
4706
  listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
4513
4707
  propertyTypes?: Array<'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE'>;
4708
+ title?: string;
4514
4709
  contactId?: number;
4515
4710
  contactName?: string;
4516
4711
  contactPhone?: string;
4517
4712
  assignedTo?: Array<string>;
4518
4713
  createdBy?: string;
4519
4714
  locationType?: 'REGION' | 'DISTRICT' | 'SUBDISTRICT' | 'STREET';
4520
- locationId?: number;
4715
+ locationId?: string;
4521
4716
  priceMin?: number;
4522
4717
  priceMax?: number;
4523
4718
  bedroomsMin?: number;
@@ -4714,7 +4909,8 @@ export type GetContactGroupsData = {
4714
4909
  contactName?: string;
4715
4910
  contactPhone?: string;
4716
4911
  contactEmail?: string;
4717
- sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN'>;
4912
+ title?: string;
4913
+ sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'UNKNOWN'>;
4718
4914
  contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
4719
4915
  createdFrom?: Date;
4720
4916
  createdTo?: Date;
@@ -4761,6 +4957,19 @@ export type GetBoardByBoardIdResponses = {
4761
4957
  200: BoardResponse;
4762
4958
  };
4763
4959
  export type GetBoardByBoardIdResponse = GetBoardByBoardIdResponses[keyof GetBoardByBoardIdResponses];
4960
+ export type GetAgencyData = {
4961
+ body?: never;
4962
+ path?: never;
4963
+ query?: never;
4964
+ url: '/agency';
4965
+ };
4966
+ export type GetAgencyResponses = {
4967
+ /**
4968
+ * OK
4969
+ */
4970
+ 200: AgencyProfileResponse;
4971
+ };
4972
+ export type GetAgencyResponse = GetAgencyResponses[keyof GetAgencyResponses];
4764
4973
  export type GetAgencyByAgencyIdOwnerData = {
4765
4974
  body?: never;
4766
4975
  path: {