@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.
@@ -729,7 +729,7 @@ export const AddressRequestSchema = {
729
729
  },
730
730
  required: ['city', 'country', 'district', 'street', 'subdistrict'],
731
731
  };
732
- export const CreateAgencyRequestSchema = {
732
+ export const AmendAgencyDetailsRequestSchema = {
733
733
  type: 'object',
734
734
  properties: {
735
735
  name: {
@@ -739,10 +739,6 @@ export const CreateAgencyRequestSchema = {
739
739
  type: 'string',
740
740
  format: 'email',
741
741
  },
742
- seats: {
743
- type: 'integer',
744
- format: 'int32',
745
- },
746
742
  subdomain: {
747
743
  type: 'string',
748
744
  },
@@ -753,7 +749,7 @@ export const CreateAgencyRequestSchema = {
753
749
  $ref: '#/components/schemas/AddressRequest',
754
750
  },
755
751
  },
756
- required: ['address', 'email', 'name', 'phone', 'seats', 'subdomain'],
752
+ required: ['address', 'email', 'name', 'phone', 'subdomain'],
757
753
  };
758
754
  export const UpdateAgencyInfoRequestSchema = {
759
755
  type: 'object',
@@ -1053,6 +1049,35 @@ export const SubscriptionCheckoutResponseSchema = {
1053
1049
  },
1054
1050
  },
1055
1051
  };
1052
+ export const ChangePlanRequestSchema = {
1053
+ type: 'object',
1054
+ properties: {
1055
+ plan: {
1056
+ type: 'string',
1057
+ enum: ['STARTER', 'PRO', 'ENTERPRISE'],
1058
+ },
1059
+ billingCycle: {
1060
+ type: 'string',
1061
+ enum: ['MONTHLY', 'ANNUAL'],
1062
+ },
1063
+ },
1064
+ required: ['billingCycle', 'plan'],
1065
+ };
1066
+ export const CheckoutRequestSchema = {
1067
+ type: 'object',
1068
+ properties: {
1069
+ plan: {
1070
+ type: 'string',
1071
+ description: 'Required only when starting a new subscription',
1072
+ enum: ['STARTER', 'PRO', 'ENTERPRISE'],
1073
+ },
1074
+ billingCycle: {
1075
+ type: 'string',
1076
+ description: 'Required only when starting a new subscription',
1077
+ enum: ['MONTHLY', 'ANNUAL'],
1078
+ },
1079
+ },
1080
+ };
1056
1081
  export const IdResponseIntegerSchema = {
1057
1082
  type: 'object',
1058
1083
  properties: {
@@ -1137,7 +1162,7 @@ export const OauthConnectionResponseSchema = {
1137
1162
  },
1138
1163
  provider: {
1139
1164
  type: 'string',
1140
- enum: ['FACEBOOK', 'INSTAGRAM', 'WHATSAPP'],
1165
+ enum: ['FACEBOOK', 'INSTAGRAM', 'WHATSAPP', 'TIKTOK'],
1141
1166
  },
1142
1167
  status: {
1143
1168
  type: 'string',
@@ -2266,6 +2291,34 @@ export const MemberPeekResponseSchema = {
2266
2291
  },
2267
2292
  required: ['email', 'firstName', 'lastName', 'memberId'],
2268
2293
  };
2294
+ export const ParticipantSchema = {
2295
+ type: 'object',
2296
+ properties: {
2297
+ memberId: {
2298
+ type: 'string',
2299
+ format: 'uuid',
2300
+ },
2301
+ firstName: {
2302
+ type: 'string',
2303
+ },
2304
+ lastName: {
2305
+ type: 'string',
2306
+ },
2307
+ photo: {
2308
+ type: 'string',
2309
+ },
2310
+ phone: {
2311
+ type: 'string',
2312
+ },
2313
+ email: {
2314
+ type: 'string',
2315
+ },
2316
+ owner: {
2317
+ type: 'boolean',
2318
+ },
2319
+ },
2320
+ required: ['email', 'firstName', 'lastName', 'memberId', 'owner'],
2321
+ };
2269
2322
  export const PropertyLinkSchema = {
2270
2323
  type: 'object',
2271
2324
  properties: {
@@ -2378,9 +2431,6 @@ export const TaskDetailResponseSchema = {
2378
2431
  type: 'string',
2379
2432
  format: 'date',
2380
2433
  },
2381
- owner: {
2382
- $ref: '#/components/schemas/MemberPeekResponse',
2383
- },
2384
2434
  outcome: {
2385
2435
  type: 'string',
2386
2436
  enum: ['WON', 'LOST'],
@@ -2420,7 +2470,7 @@ export const TaskDetailResponseSchema = {
2420
2470
  participants: {
2421
2471
  type: 'array',
2422
2472
  items: {
2423
- $ref: '#/components/schemas/MemberPeekResponse',
2473
+ $ref: '#/components/schemas/Participant',
2424
2474
  },
2425
2475
  },
2426
2476
  interests: {
@@ -2962,6 +3012,182 @@ export const StageCardsResponseSchema = {
2962
3012
  },
2963
3013
  required: ['data', 'members'],
2964
3014
  };
3015
+ export const SubscriptionResponseSchema = {
3016
+ type: 'object',
3017
+ properties: {
3018
+ subscriptionId: {
3019
+ type: 'string',
3020
+ format: 'uuid',
3021
+ },
3022
+ plan: {
3023
+ type: 'string',
3024
+ enum: ['STARTER', 'PRO', 'ENTERPRISE'],
3025
+ },
3026
+ billingCycle: {
3027
+ type: 'string',
3028
+ enum: ['MONTHLY', 'ANNUAL'],
3029
+ },
3030
+ priceMinorUnits: {
3031
+ type: 'integer',
3032
+ format: 'int64',
3033
+ description: 'Per-cycle price in minor units (tetri)',
3034
+ },
3035
+ currency: {
3036
+ type: 'string',
3037
+ },
3038
+ seats: {
3039
+ type: 'integer',
3040
+ format: 'int32',
3041
+ },
3042
+ monthlyContactLimit: {
3043
+ type: 'integer',
3044
+ format: 'int32',
3045
+ },
3046
+ trialDays: {
3047
+ type: 'integer',
3048
+ format: 'int32',
3049
+ },
3050
+ status: {
3051
+ type: 'string',
3052
+ enum: [
3053
+ 'PENDING',
3054
+ 'TRIALING',
3055
+ 'ACTIVE',
3056
+ 'PAST_DUE',
3057
+ 'CANCELLED',
3058
+ 'EXPIRED',
3059
+ ],
3060
+ },
3061
+ live: {
3062
+ type: 'boolean',
3063
+ description: 'Whether the agency is currently entitled to the workspace',
3064
+ },
3065
+ trialEndsAt: {
3066
+ type: 'string',
3067
+ format: 'date-time',
3068
+ },
3069
+ paidThroughAt: {
3070
+ type: 'string',
3071
+ format: 'date-time',
3072
+ },
3073
+ accessEndsAt: {
3074
+ type: 'string',
3075
+ format: 'date-time',
3076
+ description: 'When the current entitlement ends, before grace; null while pending or once expired',
3077
+ },
3078
+ pastDueSince: {
3079
+ type: 'string',
3080
+ format: 'date-time',
3081
+ },
3082
+ lastChargedAt: {
3083
+ type: 'string',
3084
+ format: 'date-time',
3085
+ },
3086
+ createdAt: {
3087
+ type: 'string',
3088
+ format: 'date-time',
3089
+ },
3090
+ activatedAt: {
3091
+ type: 'string',
3092
+ format: 'date-time',
3093
+ },
3094
+ cancelledAt: {
3095
+ type: 'string',
3096
+ format: 'date-time',
3097
+ },
3098
+ checkoutExpiresAt: {
3099
+ type: 'string',
3100
+ format: 'date-time',
3101
+ description: 'When the most recently issued checkout link stops being payable',
3102
+ },
3103
+ },
3104
+ required: [
3105
+ 'billingCycle',
3106
+ 'createdAt',
3107
+ 'currency',
3108
+ 'live',
3109
+ 'monthlyContactLimit',
3110
+ 'plan',
3111
+ 'priceMinorUnits',
3112
+ 'seats',
3113
+ 'status',
3114
+ 'subscriptionId',
3115
+ 'trialDays',
3116
+ ],
3117
+ };
3118
+ export const PaymentResponseSchema = {
3119
+ type: 'object',
3120
+ properties: {
3121
+ id: {
3122
+ type: 'string',
3123
+ format: 'uuid',
3124
+ },
3125
+ subscriptionId: {
3126
+ type: 'string',
3127
+ format: 'uuid',
3128
+ },
3129
+ flittPaymentId: {
3130
+ type: 'string',
3131
+ },
3132
+ flittOrderId: {
3133
+ type: 'string',
3134
+ },
3135
+ orderStatus: {
3136
+ type: 'string',
3137
+ description: "Flitt's verdict: approved / declined / reversed / expired …",
3138
+ },
3139
+ tranType: {
3140
+ type: 'string',
3141
+ },
3142
+ outcome: {
3143
+ type: 'string',
3144
+ description: 'What the platform did with it',
3145
+ enum: [
3146
+ 'APPLIED',
3147
+ 'TRIAL_STARTED',
3148
+ 'DUPLICATE',
3149
+ 'NOT_APPLIED_CANCELLED',
3150
+ 'REJECTED_AMOUNT',
3151
+ 'REJECTED_CURRENCY',
3152
+ 'IGNORED_TRANSACTION_TYPE',
3153
+ 'DECLINED',
3154
+ 'REVERSED',
3155
+ 'REVERSAL_IGNORED',
3156
+ 'RECORDED',
3157
+ ],
3158
+ },
3159
+ amountMinorUnits: {
3160
+ type: 'integer',
3161
+ format: 'int64',
3162
+ },
3163
+ currency: {
3164
+ type: 'string',
3165
+ },
3166
+ responseCode: {
3167
+ type: 'string',
3168
+ },
3169
+ responseDescription: {
3170
+ type: 'string',
3171
+ },
3172
+ orderTime: {
3173
+ type: 'string',
3174
+ format: 'date-time',
3175
+ },
3176
+ receivedAt: {
3177
+ type: 'string',
3178
+ format: 'date-time',
3179
+ },
3180
+ },
3181
+ required: [
3182
+ 'flittOrderId',
3183
+ 'flittPaymentId',
3184
+ 'id',
3185
+ 'orderStatus',
3186
+ 'outcome',
3187
+ 'receivedAt',
3188
+ 'subscriptionId',
3189
+ ],
3190
+ };
2965
3191
  export const BucketSchema = {
2966
3192
  type: 'object',
2967
3193
  properties: {
@@ -3196,6 +3422,7 @@ export const ChannelSeriesSchema = {
3196
3422
  'FACEBOOK',
3197
3423
  'INSTAGRAM',
3198
3424
  'WHATSAPP',
3425
+ 'TIKTOK',
3199
3426
  'UNKNOWN',
3200
3427
  ],
3201
3428
  },
@@ -4387,6 +4614,7 @@ export const ContactAssignedSchema = {
4387
4614
  'FACEBOOK',
4388
4615
  'INSTAGRAM',
4389
4616
  'WHATSAPP',
4617
+ 'TIKTOK',
4390
4618
  'UNKNOWN',
4391
4619
  ],
4392
4620
  },
@@ -4473,7 +4701,7 @@ export const NewMessageSchema = {
4473
4701
  },
4474
4702
  channelType: {
4475
4703
  type: 'string',
4476
- enum: ['FACEBOOK', 'INSTAGRAM', 'WHATSAPP'],
4704
+ enum: ['FACEBOOK', 'INSTAGRAM', 'WHATSAPP', 'TIKTOK'],
4477
4705
  },
4478
4706
  preview: {
4479
4707
  type: 'string',
@@ -4529,6 +4757,10 @@ export const NotificationContentSchema = {
4529
4757
  NEW_SEEKER_RATING: '#/components/schemas/NewSeekerRating',
4530
4758
  NEW_MESSAGE: '#/components/schemas/NewMessage',
4531
4759
  CONTACT_ASSIGNED: '#/components/schemas/ContactAssigned',
4760
+ SUBSCRIPTION_PAYMENT_FAILED: '#/components/schemas/SubscriptionPaymentFailed',
4761
+ SUBSCRIPTION_ENDING: '#/components/schemas/SubscriptionEnding',
4762
+ SUBSCRIPTION_EXPIRED: '#/components/schemas/SubscriptionExpired',
4763
+ SUBSCRIPTION_PAYMENT_REVERSED: '#/components/schemas/SubscriptionPaymentReversed',
4532
4764
  },
4533
4765
  },
4534
4766
  required: ['kind'],
@@ -4567,6 +4799,10 @@ export const NotificationViewSchema = {
4567
4799
  'NEW_SEEKER_RATING',
4568
4800
  'NEW_MESSAGE',
4569
4801
  'CONTACT_ASSIGNED',
4802
+ 'SUBSCRIPTION_PAYMENT_FAILED',
4803
+ 'SUBSCRIPTION_ENDING',
4804
+ 'SUBSCRIPTION_EXPIRED',
4805
+ 'SUBSCRIPTION_PAYMENT_REVERSED',
4570
4806
  ],
4571
4807
  },
4572
4808
  targetId: {
@@ -4589,6 +4825,18 @@ export const NotificationViewSchema = {
4589
4825
  {
4590
4826
  $ref: '#/components/schemas/NewSeekerRating',
4591
4827
  },
4828
+ {
4829
+ $ref: '#/components/schemas/SubscriptionEnding',
4830
+ },
4831
+ {
4832
+ $ref: '#/components/schemas/SubscriptionExpired',
4833
+ },
4834
+ {
4835
+ $ref: '#/components/schemas/SubscriptionPaymentFailed',
4836
+ },
4837
+ {
4838
+ $ref: '#/components/schemas/SubscriptionPaymentReversed',
4839
+ },
4592
4840
  {
4593
4841
  $ref: '#/components/schemas/TaskCommented',
4594
4842
  },
@@ -4613,6 +4861,88 @@ export const PropertyIdSchema = {
4613
4861
  },
4614
4862
  },
4615
4863
  };
4864
+ export const SubscriptionEndingSchema = {
4865
+ properties: {
4866
+ subscriptionId: {
4867
+ $ref: '#/components/schemas/SubscriptionId',
4868
+ },
4869
+ status: {
4870
+ type: 'string',
4871
+ enum: [
4872
+ 'PENDING',
4873
+ 'TRIALING',
4874
+ 'ACTIVE',
4875
+ 'PAST_DUE',
4876
+ 'CANCELLED',
4877
+ 'EXPIRED',
4878
+ ],
4879
+ },
4880
+ endsAt: {
4881
+ type: 'string',
4882
+ format: 'date-time',
4883
+ },
4884
+ kind: {
4885
+ type: 'string',
4886
+ enum: ['SUBSCRIPTION_ENDING'],
4887
+ },
4888
+ },
4889
+ required: ['kind'],
4890
+ };
4891
+ export const SubscriptionExpiredSchema = {
4892
+ properties: {
4893
+ subscriptionId: {
4894
+ $ref: '#/components/schemas/SubscriptionId',
4895
+ },
4896
+ kind: {
4897
+ type: 'string',
4898
+ enum: ['SUBSCRIPTION_EXPIRED'],
4899
+ },
4900
+ },
4901
+ required: ['kind'],
4902
+ };
4903
+ export const SubscriptionIdSchema = {
4904
+ type: 'object',
4905
+ properties: {
4906
+ value: {
4907
+ type: 'string',
4908
+ format: 'uuid',
4909
+ },
4910
+ },
4911
+ };
4912
+ export const SubscriptionPaymentFailedSchema = {
4913
+ properties: {
4914
+ subscriptionId: {
4915
+ $ref: '#/components/schemas/SubscriptionId',
4916
+ },
4917
+ reason: {
4918
+ type: 'string',
4919
+ },
4920
+ accessUntil: {
4921
+ type: 'string',
4922
+ format: 'date-time',
4923
+ },
4924
+ kind: {
4925
+ type: 'string',
4926
+ enum: ['SUBSCRIPTION_PAYMENT_FAILED'],
4927
+ },
4928
+ },
4929
+ required: ['kind'],
4930
+ };
4931
+ export const SubscriptionPaymentReversedSchema = {
4932
+ properties: {
4933
+ subscriptionId: {
4934
+ $ref: '#/components/schemas/SubscriptionId',
4935
+ },
4936
+ paymentId: {
4937
+ type: 'string',
4938
+ },
4939
+ kind: {
4940
+ type: 'string',
4941
+ enum: ['SUBSCRIPTION_PAYMENT_REVERSED'],
4942
+ },
4943
+ },
4944
+ required: ['kind'],
4945
+ };
4616
4946
  export const TaskCommentedSchema = {
4617
4947
  properties: {
4618
4948
  commentId: {
@@ -4692,6 +5022,14 @@ export const MemberViewResponseSchema = {
4692
5022
  type: 'string',
4693
5023
  format: 'date-time',
4694
5024
  },
5025
+ status: {
5026
+ type: 'string',
5027
+ description: 'ACTIVE, or INACTIVE for a removed member',
5028
+ },
5029
+ removedAt: {
5030
+ type: 'string',
5031
+ format: 'date-time',
5032
+ },
4695
5033
  },
4696
5034
  required: [
4697
5035
  'email',
@@ -4701,6 +5039,7 @@ export const MemberViewResponseSchema = {
4701
5039
  'memberId',
4702
5040
  'roleId',
4703
5041
  'roleName',
5042
+ 'status',
4704
5043
  'userId',
4705
5044
  ],
4706
5045
  };
@@ -5206,6 +5545,9 @@ export const InterestGridResponseSchema = {
5206
5545
  type: 'integer',
5207
5546
  format: 'int64',
5208
5547
  },
5548
+ title: {
5549
+ type: 'string',
5550
+ },
5209
5551
  contactId: {
5210
5552
  type: 'integer',
5211
5553
  format: 'int64',
@@ -5286,6 +5628,7 @@ export const InterestGridResponseSchema = {
5286
5628
  'personalDetails',
5287
5629
  'propertyTypes',
5288
5630
  'status',
5631
+ 'title',
5289
5632
  ],
5290
5633
  };
5291
5634
  export const MoneySchema = {
@@ -5384,7 +5727,7 @@ export const InboxResponseSchema = {
5384
5727
  },
5385
5728
  channelType: {
5386
5729
  type: 'string',
5387
- enum: ['FACEBOOK', 'INSTAGRAM', 'WHATSAPP'],
5730
+ enum: ['FACEBOOK', 'INSTAGRAM', 'WHATSAPP', 'TIKTOK'],
5388
5731
  },
5389
5732
  contactId: {
5390
5733
  type: 'integer',
@@ -5446,6 +5789,9 @@ export const MessageContentSchema = {
5446
5789
  {
5447
5790
  $ref: '#/components/schemas/Text',
5448
5791
  },
5792
+ {
5793
+ $ref: '#/components/schemas/Image',
5794
+ },
5449
5795
  {
5450
5796
  $ref: '#/components/schemas/Unsupported',
5451
5797
  },
@@ -5541,6 +5887,9 @@ export const ThreadUpdatesSchema = {
5541
5887
  };
5542
5888
  export const UnsupportedSchema = {
5543
5889
  properties: {
5890
+ mediaType: {
5891
+ type: 'string',
5892
+ },
5544
5893
  kind: {
5545
5894
  type: 'string',
5546
5895
  enum: ['UNSUPPORTED'],
@@ -5606,6 +5955,7 @@ export const ContactGridResponseSchema = {
5606
5955
  'FACEBOOK',
5607
5956
  'INSTAGRAM',
5608
5957
  'WHATSAPP',
5958
+ 'TIKTOK',
5609
5959
  'UNKNOWN',
5610
5960
  ],
5611
5961
  },
@@ -5960,6 +6310,7 @@ export const SourceResponseSchema = {
5960
6310
  'FACEBOOK',
5961
6311
  'INSTAGRAM',
5962
6312
  'WHATSAPP',
6313
+ 'TIKTOK',
5963
6314
  'UNKNOWN',
5964
6315
  ],
5965
6316
  },