@homespot-sdk/core 0.0.356 → 0.0.357
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.
- package/dist/rem/index.d.ts +2 -2
- package/dist/rem/index.d.ts.map +1 -1
- package/dist/rem/index.js +1 -1
- package/dist/rem/index.js.map +1 -1
- package/dist/rem/schemas.gen.d.ts +183 -209
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +221 -247
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +11 -11
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +4 -30
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +1 -3
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +0 -43
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +121 -129
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +173 -213
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +119 -157
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/types.gen.d.ts
CHANGED
|
@@ -191,13 +191,6 @@ export type AddressRequest = {
|
|
|
191
191
|
subdistrict: string;
|
|
192
192
|
street: string;
|
|
193
193
|
};
|
|
194
|
-
export type AmendAgencyDetailsRequest = {
|
|
195
|
-
name: string;
|
|
196
|
-
email: string;
|
|
197
|
-
subdomain: string;
|
|
198
|
-
phone: string;
|
|
199
|
-
address: AddressRequest;
|
|
200
|
-
};
|
|
201
194
|
export type UpdateAgencyInfoRequest = {
|
|
202
195
|
name: string;
|
|
203
196
|
email: string;
|
|
@@ -222,13 +215,6 @@ export type UploadAcknowledgmentResponse = {
|
|
|
222
215
|
success: Array<string>;
|
|
223
216
|
fail: Array<string>;
|
|
224
217
|
};
|
|
225
|
-
export type TransferFundsRequest = {
|
|
226
|
-
transferTo: string;
|
|
227
|
-
amount: number;
|
|
228
|
-
};
|
|
229
|
-
export type DepositFundsRequest = {
|
|
230
|
-
amount: number;
|
|
231
|
-
};
|
|
232
218
|
export type ConnectLinkResponse = {
|
|
233
219
|
link?: string;
|
|
234
220
|
expiresAt?: Date;
|
|
@@ -282,9 +268,73 @@ export type SubscriptionAddressRequest = {
|
|
|
282
268
|
street: string;
|
|
283
269
|
};
|
|
284
270
|
export type SubscriptionCheckoutResponse = {
|
|
271
|
+
/**
|
|
272
|
+
* Null when payment is already confirmed; continue onboarding without paying again
|
|
273
|
+
*/
|
|
285
274
|
checkoutUrl?: string;
|
|
286
275
|
agencyId?: string;
|
|
287
276
|
subscriptionId?: string;
|
|
277
|
+
status?: 'PENDING' | 'TRIALING' | 'ACTIVE' | 'PAST_DUE' | 'CANCELLED' | 'EXPIRED' | 'SUPERSEDED';
|
|
278
|
+
};
|
|
279
|
+
export type ProblemDetail = {
|
|
280
|
+
type?: string;
|
|
281
|
+
title?: string;
|
|
282
|
+
status?: number;
|
|
283
|
+
detail?: string;
|
|
284
|
+
instance?: string;
|
|
285
|
+
properties?: {
|
|
286
|
+
[key: string]: unknown;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
export type AgencyRegistrationConflictResponse = {
|
|
290
|
+
type: string;
|
|
291
|
+
title: string;
|
|
292
|
+
status: number;
|
|
293
|
+
detail: string;
|
|
294
|
+
instance: string;
|
|
295
|
+
/**
|
|
296
|
+
* All detected conflicts: NAME is taken, SUBDOMAIN is taken, or OWNER already owns an agency. A retry of the owner's NEW agency is allowed.
|
|
297
|
+
*/
|
|
298
|
+
conflicts: Array<'OWNER' | 'NAME' | 'SUBDOMAIN'>;
|
|
299
|
+
code: 'AGENCY_REGISTRATION_CONFLICT';
|
|
300
|
+
};
|
|
301
|
+
export type ConcurrentModificationResponse = {
|
|
302
|
+
type: string;
|
|
303
|
+
title: string;
|
|
304
|
+
status: number;
|
|
305
|
+
detail: string;
|
|
306
|
+
instance: string;
|
|
307
|
+
code: 'CONCURRENT_MODIFICATION';
|
|
308
|
+
};
|
|
309
|
+
export type DataIntegrityConflictResponse = {
|
|
310
|
+
type: string;
|
|
311
|
+
title: string;
|
|
312
|
+
status: number;
|
|
313
|
+
detail: string;
|
|
314
|
+
instance: string;
|
|
315
|
+
code: 'DATA_INTEGRITY_CONFLICT';
|
|
316
|
+
};
|
|
317
|
+
export type SubscriptionConflictResponse = ({
|
|
318
|
+
code: 'AGENCY_REGISTRATION_CONFLICT';
|
|
319
|
+
} & AgencyRegistrationConflictResponse) | ({
|
|
320
|
+
code: 'SUBSCRIPTION_STATE_CONFLICT';
|
|
321
|
+
} & SubscriptionStateConflictResponse) | ({
|
|
322
|
+
code: 'CONCURRENT_MODIFICATION';
|
|
323
|
+
} & ConcurrentModificationResponse) | ({
|
|
324
|
+
code: 'DATA_INTEGRITY_CONFLICT';
|
|
325
|
+
} & DataIntegrityConflictResponse);
|
|
326
|
+
export type SubscriptionStateConflictResponse = {
|
|
327
|
+
type: string;
|
|
328
|
+
title: string;
|
|
329
|
+
status: number;
|
|
330
|
+
detail: string;
|
|
331
|
+
instance: string;
|
|
332
|
+
subscriptionId: string;
|
|
333
|
+
/**
|
|
334
|
+
* Subscription lifecycle status. The standard problem status field remains the HTTP status code.
|
|
335
|
+
*/
|
|
336
|
+
subscriptionStatus: 'PENDING' | 'TRIALING' | 'ACTIVE' | 'PAST_DUE' | 'CANCELLED' | 'EXPIRED' | 'SUPERSEDED';
|
|
337
|
+
code: 'SUBSCRIPTION_STATE_CONFLICT';
|
|
288
338
|
};
|
|
289
339
|
export type ChangePlanRequest = {
|
|
290
340
|
plan: 'STARTER' | 'PRO' | 'ENTERPRISE';
|
|
@@ -383,16 +433,6 @@ export type AgencyPrincipalDto = {
|
|
|
383
433
|
export type SendMessageRequest = {
|
|
384
434
|
text: string;
|
|
385
435
|
};
|
|
386
|
-
export type ProblemDetail = {
|
|
387
|
-
type?: string;
|
|
388
|
-
title?: string;
|
|
389
|
-
status?: number;
|
|
390
|
-
detail?: string;
|
|
391
|
-
instance?: string;
|
|
392
|
-
properties?: {
|
|
393
|
-
[key: string]: unknown;
|
|
394
|
-
};
|
|
395
|
-
};
|
|
396
436
|
export type StartPropertyRegistrationRequest = {
|
|
397
437
|
propertyType: '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';
|
|
398
438
|
};
|
|
@@ -766,60 +806,6 @@ export type StageCardsResponse = {
|
|
|
766
806
|
members: Array<MemberPeekResponse>;
|
|
767
807
|
data: CursorPageTaskCardResponse;
|
|
768
808
|
};
|
|
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
|
-
};
|
|
823
809
|
export type Bucket = {
|
|
824
810
|
count: number;
|
|
825
811
|
value: number;
|
|
@@ -1231,7 +1217,7 @@ export type PropertyId = {
|
|
|
1231
1217
|
};
|
|
1232
1218
|
export type SubscriptionEnding = {
|
|
1233
1219
|
subscriptionId?: SubscriptionId;
|
|
1234
|
-
status?: 'PENDING' | 'TRIALING' | 'ACTIVE' | 'PAST_DUE' | 'CANCELLED' | 'EXPIRED';
|
|
1220
|
+
status?: 'PENDING' | 'TRIALING' | 'ACTIVE' | 'PAST_DUE' | 'CANCELLED' | 'EXPIRED' | 'SUPERSEDED';
|
|
1235
1221
|
endsAt?: Date;
|
|
1236
1222
|
kind: 'SUBSCRIPTION_ENDING';
|
|
1237
1223
|
};
|
|
@@ -2600,21 +2586,6 @@ export type PutBoardByBoardIdRenameResponses = {
|
|
|
2600
2586
|
204: void;
|
|
2601
2587
|
};
|
|
2602
2588
|
export type PutBoardByBoardIdRenameResponse = PutBoardByBoardIdRenameResponses[keyof PutBoardByBoardIdRenameResponses];
|
|
2603
|
-
export type PutAgencyByAgencyIdDetailsData = {
|
|
2604
|
-
body: AmendAgencyDetailsRequest;
|
|
2605
|
-
path: {
|
|
2606
|
-
agencyId: string;
|
|
2607
|
-
};
|
|
2608
|
-
query?: never;
|
|
2609
|
-
url: '/agency/{agencyId}/details';
|
|
2610
|
-
};
|
|
2611
|
-
export type PutAgencyByAgencyIdDetailsResponses = {
|
|
2612
|
-
/**
|
|
2613
|
-
* No Content
|
|
2614
|
-
*/
|
|
2615
|
-
204: void;
|
|
2616
|
-
};
|
|
2617
|
-
export type PutAgencyByAgencyIdDetailsResponse = PutAgencyByAgencyIdDetailsResponses[keyof PutAgencyByAgencyIdDetailsResponses];
|
|
2618
2589
|
export type PutAgencySettingsInfoData = {
|
|
2619
2590
|
body: UpdateAgencyInfoRequest;
|
|
2620
2591
|
path?: never;
|
|
@@ -2729,32 +2700,6 @@ export type PostWhitelabelActivateResponses = {
|
|
|
2729
2700
|
204: void;
|
|
2730
2701
|
};
|
|
2731
2702
|
export type PostWhitelabelActivateResponse = PostWhitelabelActivateResponses[keyof PostWhitelabelActivateResponses];
|
|
2732
|
-
export type PostWalletTransferData = {
|
|
2733
|
-
body: TransferFundsRequest;
|
|
2734
|
-
path?: never;
|
|
2735
|
-
query?: never;
|
|
2736
|
-
url: '/wallet/transfer';
|
|
2737
|
-
};
|
|
2738
|
-
export type PostWalletTransferResponses = {
|
|
2739
|
-
/**
|
|
2740
|
-
* No Content
|
|
2741
|
-
*/
|
|
2742
|
-
204: void;
|
|
2743
|
-
};
|
|
2744
|
-
export type PostWalletTransferResponse = PostWalletTransferResponses[keyof PostWalletTransferResponses];
|
|
2745
|
-
export type PostWalletDepositData = {
|
|
2746
|
-
body: DepositFundsRequest;
|
|
2747
|
-
path?: never;
|
|
2748
|
-
query?: never;
|
|
2749
|
-
url: '/wallet/deposit';
|
|
2750
|
-
};
|
|
2751
|
-
export type PostWalletDepositResponses = {
|
|
2752
|
-
/**
|
|
2753
|
-
* No Content
|
|
2754
|
-
*/
|
|
2755
|
-
204: void;
|
|
2756
|
-
};
|
|
2757
|
-
export type PostWalletDepositResponse = PostWalletDepositResponses[keyof PostWalletDepositResponses];
|
|
2758
2703
|
export type PostTelegramConnectLinkData = {
|
|
2759
2704
|
body?: never;
|
|
2760
2705
|
path?: never;
|
|
@@ -2928,6 +2873,13 @@ export type DeleteSubscriptionsData = {
|
|
|
2928
2873
|
query?: never;
|
|
2929
2874
|
url: '/subscriptions';
|
|
2930
2875
|
};
|
|
2876
|
+
export type DeleteSubscriptionsErrors = {
|
|
2877
|
+
/**
|
|
2878
|
+
* Registration conflicts, subscription state, or concurrent changes prevent this operation. Inspect code to select the error type.
|
|
2879
|
+
*/
|
|
2880
|
+
409: SubscriptionConflictResponse;
|
|
2881
|
+
};
|
|
2882
|
+
export type DeleteSubscriptionsError = DeleteSubscriptionsErrors[keyof DeleteSubscriptionsErrors];
|
|
2931
2883
|
export type DeleteSubscriptionsResponses = {
|
|
2932
2884
|
/**
|
|
2933
2885
|
* No Content
|
|
@@ -2941,22 +2893,41 @@ export type GetSubscriptionsData = {
|
|
|
2941
2893
|
query?: never;
|
|
2942
2894
|
url: '/subscriptions';
|
|
2943
2895
|
};
|
|
2944
|
-
export type
|
|
2896
|
+
export type GetSubscriptionsErrors = {
|
|
2945
2897
|
/**
|
|
2946
|
-
*
|
|
2898
|
+
* Registration conflicts, subscription state, or concurrent changes prevent this operation. Inspect code to select the error type.
|
|
2947
2899
|
*/
|
|
2948
|
-
|
|
2900
|
+
409: SubscriptionConflictResponse;
|
|
2949
2901
|
};
|
|
2950
|
-
export type
|
|
2902
|
+
export type GetSubscriptionsError = GetSubscriptionsErrors[keyof GetSubscriptionsErrors];
|
|
2951
2903
|
export type PostSubscriptionsData = {
|
|
2952
2904
|
body: SubscribeRequest;
|
|
2953
2905
|
path?: never;
|
|
2954
2906
|
query?: never;
|
|
2955
2907
|
url: '/subscriptions';
|
|
2956
2908
|
};
|
|
2909
|
+
export type PostSubscriptionsErrors = {
|
|
2910
|
+
/**
|
|
2911
|
+
* Malformed request or invalid field values
|
|
2912
|
+
*/
|
|
2913
|
+
400: ProblemDetail;
|
|
2914
|
+
/**
|
|
2915
|
+
* Registration conflicts, subscription state, or concurrent changes prevent this operation. Inspect code to select the error type.
|
|
2916
|
+
*/
|
|
2917
|
+
409: SubscriptionConflictResponse;
|
|
2918
|
+
/**
|
|
2919
|
+
* Payment provider unavailable; retry to recover saved checkout details
|
|
2920
|
+
*/
|
|
2921
|
+
502: ProblemDetail;
|
|
2922
|
+
};
|
|
2923
|
+
export type PostSubscriptionsError = PostSubscriptionsErrors[keyof PostSubscriptionsErrors];
|
|
2957
2924
|
export type PostSubscriptionsResponses = {
|
|
2958
2925
|
/**
|
|
2959
|
-
*
|
|
2926
|
+
* Payment already confirmed; checkoutUrl is null
|
|
2927
|
+
*/
|
|
2928
|
+
200: SubscriptionCheckoutResponse;
|
|
2929
|
+
/**
|
|
2930
|
+
* Checkout available
|
|
2960
2931
|
*/
|
|
2961
2932
|
201: SubscriptionCheckoutResponse;
|
|
2962
2933
|
};
|
|
@@ -2967,6 +2938,13 @@ export type PostSubscriptionsResumeData = {
|
|
|
2967
2938
|
query?: never;
|
|
2968
2939
|
url: '/subscriptions/resume';
|
|
2969
2940
|
};
|
|
2941
|
+
export type PostSubscriptionsResumeErrors = {
|
|
2942
|
+
/**
|
|
2943
|
+
* Registration conflicts, subscription state, or concurrent changes prevent this operation. Inspect code to select the error type.
|
|
2944
|
+
*/
|
|
2945
|
+
409: SubscriptionConflictResponse;
|
|
2946
|
+
};
|
|
2947
|
+
export type PostSubscriptionsResumeError = PostSubscriptionsResumeErrors[keyof PostSubscriptionsResumeErrors];
|
|
2970
2948
|
export type PostSubscriptionsResumeResponses = {
|
|
2971
2949
|
/**
|
|
2972
2950
|
* No Content
|
|
@@ -2980,6 +2958,13 @@ export type PostSubscriptionsPlanData = {
|
|
|
2980
2958
|
query?: never;
|
|
2981
2959
|
url: '/subscriptions/plan';
|
|
2982
2960
|
};
|
|
2961
|
+
export type PostSubscriptionsPlanErrors = {
|
|
2962
|
+
/**
|
|
2963
|
+
* Registration conflicts, subscription state, or concurrent changes prevent this operation. Inspect code to select the error type.
|
|
2964
|
+
*/
|
|
2965
|
+
409: SubscriptionConflictResponse;
|
|
2966
|
+
};
|
|
2967
|
+
export type PostSubscriptionsPlanError = PostSubscriptionsPlanErrors[keyof PostSubscriptionsPlanErrors];
|
|
2983
2968
|
export type PostSubscriptionsPlanResponses = {
|
|
2984
2969
|
/**
|
|
2985
2970
|
* Created
|
|
@@ -2993,6 +2978,13 @@ export type PostSubscriptionsCheckoutData = {
|
|
|
2993
2978
|
query?: never;
|
|
2994
2979
|
url: '/subscriptions/checkout';
|
|
2995
2980
|
};
|
|
2981
|
+
export type PostSubscriptionsCheckoutErrors = {
|
|
2982
|
+
/**
|
|
2983
|
+
* Registration conflicts, subscription state, or concurrent changes prevent this operation. Inspect code to select the error type.
|
|
2984
|
+
*/
|
|
2985
|
+
409: SubscriptionConflictResponse;
|
|
2986
|
+
};
|
|
2987
|
+
export type PostSubscriptionsCheckoutError = PostSubscriptionsCheckoutErrors[keyof PostSubscriptionsCheckoutErrors];
|
|
2996
2988
|
export type PostSubscriptionsCheckoutResponses = {
|
|
2997
2989
|
/**
|
|
2998
2990
|
* Created
|
|
@@ -4004,13 +3996,13 @@ export type GetSubscriptionsPaymentsData = {
|
|
|
4004
3996
|
query?: never;
|
|
4005
3997
|
url: '/subscriptions/payments';
|
|
4006
3998
|
};
|
|
4007
|
-
export type
|
|
3999
|
+
export type GetSubscriptionsPaymentsErrors = {
|
|
4008
4000
|
/**
|
|
4009
|
-
*
|
|
4001
|
+
* Registration conflicts, subscription state, or concurrent changes prevent this operation. Inspect code to select the error type.
|
|
4010
4002
|
*/
|
|
4011
|
-
|
|
4003
|
+
409: SubscriptionConflictResponse;
|
|
4012
4004
|
};
|
|
4013
|
-
export type
|
|
4005
|
+
export type GetSubscriptionsPaymentsError = GetSubscriptionsPaymentsErrors[keyof GetSubscriptionsPaymentsErrors];
|
|
4014
4006
|
export type GetStatsPipelineCommissionData = {
|
|
4015
4007
|
body?: never;
|
|
4016
4008
|
path?: never;
|