@hapl/api-queries 0.2.13 → 0.2.14--canary.134.eee23e4.0
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/CHANGELOG.md +0 -12
- package/dist/api-queries.cjs.development.js +3352 -1636
- package/dist/api-queries.cjs.development.js.map +1 -1
- package/dist/api-queries.cjs.production.min.js +1 -1
- package/dist/api-queries.cjs.production.min.js.map +1 -1
- package/dist/api-queries.esm.js +3352 -1636
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/buyer/closeBuyer/index.d.ts +37 -0
- package/dist/clients/v1/api/buyer/findBuyerById/index.d.ts +33 -0
- package/dist/clients/v1/api/buyer/findBuyerStatuses/index.d.ts +36 -0
- package/dist/clients/v1/api/buyer/findBuyerUniquePhones/index.d.ts +23 -0
- package/dist/clients/v1/api/buyer/findBuyers/index.d.ts +15 -2
- package/dist/clients/v1/api/buyer/resetBuyerStatusTimer/index.d.ts +29 -0
- package/dist/clients/v1/api/buyer/shareBuyer/index.d.ts +33 -0
- package/dist/clients/v1/api/buyer/updateBuyer/index.d.ts +38 -0
- package/dist/clients/v1/api/call/createCallComment/index.d.ts +33 -0
- package/dist/clients/v1/api/call/findCallById/index.d.ts +29 -0
- package/dist/clients/v1/api/callTask/callCallTask.d.ts +29 -0
- package/dist/clients/v1/api/callTask/closeCallTask.d.ts +35 -0
- package/dist/clients/v1/api/callTask/findCallQualityAssessors.d.ts +35 -0
- package/dist/clients/v1/api/callTask/findCallTaskById.d.ts +29 -0
- package/dist/clients/v1/api/callTask/findCallTasks.d.ts +9 -3
- package/dist/clients/v1/api/callTask/updateCallTask.d.ts +24 -0
- package/dist/clients/v1/api/comment/findComments/index.d.ts +41 -0
- package/dist/clients/v1/api/deal/findDealExpertStatistics/index.d.ts +39 -0
- package/dist/clients/v1/api/index.d.ts +34 -7
- package/dist/clients/v1/api/messenger/findMessengerInviteLinks/index.d.ts +31 -0
- package/dist/clients/v1/api/motivationCalculator/createMotivationCalculatorRequest/index.d.ts +37 -0
- package/dist/clients/v1/api/motivationGlossary/findMotivationStatus/index.d.ts +29 -0
- package/dist/clients/v1/api/motivationStatus/findMotivationStatus/index.d.ts +35 -0
- package/dist/clients/v1/api/payslip/findPayslipById.d.ts +29 -0
- package/dist/clients/v1/api/payslip/findPayslips.d.ts +56 -0
- package/dist/clients/v1/api/payslip/updatePayslip.d.ts +35 -0
- package/dist/clients/v1/api/realty/findRealtyPriceHistory/index.d.ts +39 -0
- package/dist/clients/v1/api/serviceRequest/buyer/findBuyerRejectionReasonStatistic/index.d.ts +36 -0
- package/dist/clients/v1/api/serviceRequest/buyer/findBuyerStatusStatistic/index.d.ts +40 -0
- package/dist/clients/v1/api/serviceRequest/createServiceRequestSellerReport/index.d.ts +31 -0
- package/dist/clients/v1/api/serviceRequest/findServiceRequestCategoryById/index.d.ts +44 -0
- package/dist/clients/v1/dictionaries/CallTask.d.ts +4 -0
- package/dist/clients/v1/index.d.ts +27 -0
- package/dist/clients/v1/types/Buyer.d.ts +6 -0
- package/dist/clients/v1/types/BuyerStatusHistory.d.ts +11 -0
- package/dist/clients/v1/types/Call.d.ts +2 -2
- package/dist/clients/v1/types/CallTask.d.ts +5 -0
- package/dist/clients/v1/types/Comment.d.ts +11 -0
- package/dist/clients/v1/types/Motivation.d.ts +58 -0
- package/dist/clients/v1/types/Payslip.d.ts +61 -0
- package/dist/clients/v1/types/PriceHistory.d.ts +9 -0
- package/dist/clients/v1/types/index.d.ts +6 -1
- package/package.json +1 -1
- package/src/clients/v1/api/buyer/closeBuyer/index.ts +47 -0
- package/src/clients/v1/api/buyer/findBuyerById/index.ts +48 -0
- package/src/clients/v1/api/buyer/findBuyerStatuses/index.ts +61 -0
- package/src/clients/v1/api/buyer/findBuyerUniquePhones/index.ts +51 -0
- package/src/clients/v1/api/buyer/findBuyers/index.ts +17 -2
- package/src/clients/v1/api/buyer/resetBuyerStatusTimer/index.ts +42 -0
- package/src/clients/v1/api/buyer/shareBuyer/index.ts +40 -0
- package/src/clients/v1/api/buyer/updateBuyer/index.ts +48 -0
- package/src/clients/v1/api/call/createCallComment/index.ts +41 -0
- package/src/clients/v1/api/call/findCallById/index.ts +39 -0
- package/src/clients/v1/api/callTask/callCallTask.ts +46 -0
- package/src/clients/v1/api/callTask/closeCallTask.ts +45 -0
- package/src/clients/v1/api/callTask/findCallQualityAssessors.ts +59 -0
- package/src/clients/v1/api/callTask/findCallTaskById.ts +39 -0
- package/src/clients/v1/api/callTask/findCallTasks.ts +6 -3
- package/src/clients/v1/api/callTask/updateCallTask.ts +49 -0
- package/src/clients/v1/api/comment/findComments/index.ts +54 -0
- package/src/clients/v1/api/deal/findDealExpertStatistics/index.ts +43 -0
- package/src/clients/v1/api/index.ts +37 -7
- package/src/clients/v1/api/messenger/findMessengerInviteLinks/index.ts +40 -0
- package/src/clients/v1/api/motivationCalculator/createMotivationCalculatorRequest/index.ts +48 -0
- package/src/clients/v1/api/motivationGlossary/findMotivationStatus/index.ts +38 -0
- package/src/clients/v1/api/motivationStatus/findMotivationStatus/index.ts +47 -0
- package/src/clients/v1/api/payslip/findPayslipById.ts +39 -0
- package/src/clients/v1/api/payslip/findPayslips.ts +53 -0
- package/src/clients/v1/api/payslip/updatePayslip.ts +45 -0
- package/src/clients/v1/api/realty/findRealtyPriceHistory/index.ts +43 -0
- package/src/clients/v1/api/serviceRequest/buyer/findBuyerRejectionReasonStatistic/index.ts +44 -0
- package/src/clients/v1/api/serviceRequest/buyer/findBuyerStatusStatistic/index.ts +48 -0
- package/src/clients/v1/api/serviceRequest/createServiceRequestSellerReport/index.ts +42 -0
- package/src/clients/v1/api/serviceRequest/findServiceRequestCategoryById/index.ts +48 -0
- package/src/clients/v1/dictionaries/CallTask.ts +4 -0
- package/src/clients/v1/index.ts +223 -5
- package/src/clients/v1/types/Buyer.ts +7 -0
- package/src/clients/v1/types/BuyerStatusHistory.ts +12 -0
- package/src/clients/v1/types/Call.ts +2 -2
- package/src/clients/v1/types/CallTask.ts +5 -0
- package/src/clients/v1/types/Comment.ts +10 -0
- package/src/clients/v1/types/Motivation.ts +64 -0
- package/src/clients/v1/types/Payslip.ts +62 -0
- package/src/clients/v1/types/PriceHistory.ts +7 -0
- package/src/clients/v1/types/index.ts +6 -1
package/src/clients/v1/index.ts
CHANGED
|
@@ -58,6 +58,10 @@ export class Api {
|
|
|
58
58
|
return api.callbackBuyerRequest({ urlParams, headers, baseURL: await this.baseURL });
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
+
closeBuyer = async (urlParams: api.CloseBuyerUrlParams, body: api.CloseBuyerBody, headers: api.CloseBuyerHeaders) => {
|
|
62
|
+
return api.closeBuyerRequest({ urlParams, body, headers, baseURL: await this.baseURL });
|
|
63
|
+
};
|
|
64
|
+
|
|
61
65
|
countBuyers = async (params: api.CountBuyersParams, headers: api.CountBuyersHeaders) => {
|
|
62
66
|
return api.countBuyersRequest({ params, headers, baseURL: await this.baseURL });
|
|
63
67
|
};
|
|
@@ -70,12 +74,63 @@ export class Api {
|
|
|
70
74
|
return api.findBuyerClosingReasonRequest({ headers, baseURL: await this.baseURL });
|
|
71
75
|
};
|
|
72
76
|
|
|
77
|
+
findBuyerStatuses = async (
|
|
78
|
+
urlParams: api.FindBuyerStatusesUrlParams,
|
|
79
|
+
params: api.FindBuyerStatusesParams,
|
|
80
|
+
headers: api.FindBuyerStatusesHeaders
|
|
81
|
+
) => {
|
|
82
|
+
return api.findBuyerStatusesRequest({ headers, params, urlParams, baseURL: await this.baseURL });
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
findBuyerUniquePhones = async (headers: api.FindBuyerUniquePhonesHeaders) => {
|
|
86
|
+
return api.findBuyerUniquePhonesRequest({ headers, baseURL: await this.baseURL });
|
|
87
|
+
};
|
|
88
|
+
|
|
73
89
|
findBuyers = async (params: api.FindBuyersParams, headers: api.FindBuyersHeaders) => {
|
|
74
90
|
return api.findBuyersRequest({ params, headers, baseURL: await this.baseURL });
|
|
75
91
|
};
|
|
76
92
|
|
|
93
|
+
findBuyerById = async (
|
|
94
|
+
urlParams: api.FindBuyerByIdUrlParams,
|
|
95
|
+
params: api.FindBuyerByIdParams,
|
|
96
|
+
headers: api.FindBuyerByIdHeaders
|
|
97
|
+
) => {
|
|
98
|
+
return api.findBuyerByIdRequest({ urlParams, params, headers, baseURL: await this.baseURL });
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
resetBuyerStatusTimer = async (
|
|
102
|
+
urlParams: api.ResetBuyerStatusTimerUrlParams,
|
|
103
|
+
headers: api.ResetBuyerStatusTimerHeaders
|
|
104
|
+
) => {
|
|
105
|
+
return api.resetBuyerStatusTimerRequest({ urlParams, headers, baseURL: await this.baseURL });
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
shareBuyer = async (urlParams: api.ShareBuyerUrlParams, body: api.ShareBuyerBody, headers: api.ShareBuyerHeaders) => {
|
|
109
|
+
return api.shareBuyerRequest({ urlParams, body, headers, baseURL: await this.baseURL });
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
updateBuyer = async (
|
|
113
|
+
urlParams: api.UpdateBuyerUrlParams,
|
|
114
|
+
body: api.UpdateBuyerBody,
|
|
115
|
+
headers: api.UpdateBuyerHeaders
|
|
116
|
+
) => {
|
|
117
|
+
return api.updateBuyerRequest({ urlParams, body, headers, baseURL: await this.baseURL });
|
|
118
|
+
};
|
|
119
|
+
|
|
77
120
|
// call
|
|
78
121
|
|
|
122
|
+
createCallComment = async (
|
|
123
|
+
urlParams: api.CreateCallCommentUrlParams,
|
|
124
|
+
body: api.CreateCallCommentBody,
|
|
125
|
+
headers: api.CreateCallCommentHeaders
|
|
126
|
+
) => {
|
|
127
|
+
return api.createCallCommentRequest({ urlParams, body, headers, baseURL: await this.baseURL });
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
findCallById = async (urlParams: api.FindCallByIdUrlParams, headers: api.FindCallByIdHeaders) => {
|
|
131
|
+
return api.findCallByIdRequest({ urlParams, headers, baseURL: await this.baseURL });
|
|
132
|
+
};
|
|
133
|
+
|
|
79
134
|
findCalls = async (params: api.FindCallsParams, headers: api.FindCallsHeaders) => {
|
|
80
135
|
return api.findCallsRequest({ params, headers, baseURL: await this.baseURL });
|
|
81
136
|
};
|
|
@@ -115,14 +170,51 @@ export class Api {
|
|
|
115
170
|
|
|
116
171
|
// call task
|
|
117
172
|
|
|
173
|
+
callCallTask = async (urlParams: api.CallCallTaskUrlParams, headers?: api.CreateCallTaskHeaders) => {
|
|
174
|
+
return api.callCallTaskRequest({ urlParams, headers, baseURL: await this.baseURL });
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
closeCallTask = async (
|
|
178
|
+
urlParams: api.CallCallTaskUrlParams,
|
|
179
|
+
body: api.CloseCallTaskBody,
|
|
180
|
+
headers?: api.CreateCallTaskHeaders
|
|
181
|
+
) => {
|
|
182
|
+
return api.closeCallTaskRequest({ urlParams, body, headers, baseURL: await this.baseURL });
|
|
183
|
+
};
|
|
184
|
+
|
|
118
185
|
createCallTask = async (body: api.CreateCallTaskBody, headers?: api.CreateCallTaskHeaders) => {
|
|
119
186
|
return api.createCallTaskRequest({ body, headers, baseURL: await this.baseURL });
|
|
120
187
|
};
|
|
121
188
|
|
|
189
|
+
findCallQualityAssessors = async (
|
|
190
|
+
params: api.FindCallQualityAssessorsParams,
|
|
191
|
+
headers: api.FindCallQualityAssessorsHeaders
|
|
192
|
+
) => {
|
|
193
|
+
return api.findCallQualityAssessorsRequest({ params, headers, baseURL: await this.baseURL });
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
findCallTaskById = async (urlParams: api.FindCallByIdUrlParams, headers: api.FindCallTaskByIdHeaders) => {
|
|
197
|
+
return api.findCallTaskByIdRequest({ urlParams, headers, baseURL: await this.baseURL });
|
|
198
|
+
};
|
|
199
|
+
|
|
122
200
|
findCallTasks = async (params: api.FindCallTasksParams, headers: api.FindCallTasksHeaders) => {
|
|
123
201
|
return api.findCallTasksRequest({ params, headers, baseURL: await this.baseURL });
|
|
124
202
|
};
|
|
125
203
|
|
|
204
|
+
updateCallTask = async (
|
|
205
|
+
urlParams: api.UpdateCallTaskUrlParams,
|
|
206
|
+
body: api.UpdateCallTaskBody,
|
|
207
|
+
headers: api.FindCallTasksHeaders
|
|
208
|
+
) => {
|
|
209
|
+
return api.updateCallTaskRequest({ urlParams, body, headers, baseURL: await this.baseURL });
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
// comment
|
|
213
|
+
|
|
214
|
+
findComments = async (params: api.FindCommentsParams, headers: api.FindCommentsHeaders) => {
|
|
215
|
+
return api.findCommentsRequest({ params, headers, baseURL: await this.baseURL });
|
|
216
|
+
};
|
|
217
|
+
|
|
126
218
|
// contract
|
|
127
219
|
|
|
128
220
|
approveContract = async (
|
|
@@ -258,6 +350,14 @@ export class Api {
|
|
|
258
350
|
return api.findDealCategorizedFilesRequest({ urlParams, params, headers, baseURL: await this.baseURL });
|
|
259
351
|
};
|
|
260
352
|
|
|
353
|
+
findDealExpertStatistics = async (
|
|
354
|
+
urlParams: api.FindDealExpertStatisticsUrlParams,
|
|
355
|
+
params: api.FindDealExpertStatisticsParams,
|
|
356
|
+
headers: api.FindDealExpertStatisticsHeaders
|
|
357
|
+
) => {
|
|
358
|
+
return api.findDealExpertStatisticsRequest({ urlParams, params, headers, baseURL: await this.baseURL });
|
|
359
|
+
};
|
|
360
|
+
|
|
261
361
|
findDeals = async (params: api.FindDealsParams, headers: api.FindDealsHeaders) => {
|
|
262
362
|
return api.findDealsRequest({ params, headers, baseURL: await this.baseURL });
|
|
263
363
|
};
|
|
@@ -459,6 +559,49 @@ export class Api {
|
|
|
459
559
|
return api.updateInternalCrossSaleRequest({ urlParams, body, headers, baseURL: await this.baseURL });
|
|
460
560
|
};
|
|
461
561
|
|
|
562
|
+
// motivation status
|
|
563
|
+
|
|
564
|
+
findMessengerInviteLinks = async (
|
|
565
|
+
urlParams: api.FindMessengerInviteLinksUrlParams,
|
|
566
|
+
headers: api.FindMessengerInviteLinksHeaders
|
|
567
|
+
) => {
|
|
568
|
+
return api.findMessengerInviteLinksRequest({ urlParams, headers, baseURL: await this.baseURL });
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
createMotivationCalculatorRequest = async (
|
|
572
|
+
body: api.CreateMotivationCalculatorRequestBody,
|
|
573
|
+
headers: api.CreateMotivationCalculatorRequestHeaders
|
|
574
|
+
) => {
|
|
575
|
+
return api.createMotivationCalculatorRequest({ body, headers, baseURL: await this.baseURL });
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
// motivation status
|
|
579
|
+
|
|
580
|
+
findMotivationStatus = async (
|
|
581
|
+
urlParams: api.FindMotivationStatusUrlParams,
|
|
582
|
+
headers: api.FindMotivationStatusHeaders
|
|
583
|
+
) => {
|
|
584
|
+
return api.findMotivationStatusRequest({ urlParams, headers, baseURL: await this.baseURL });
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
// payslip
|
|
588
|
+
|
|
589
|
+
findPayslips = async (params: api.FindPayslipsParams, headers: api.FindPayslipsHeaders) => {
|
|
590
|
+
return api.findPayslipsRequest({ params, headers, baseURL: await this.baseURL });
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
findPayslipById = async (urlParams: api.FindPayslipByIdUrlParams, headers: api.FindPayslipByIdHeaders) => {
|
|
594
|
+
return api.findPayslipByIdRequest({ urlParams, headers, baseURL: await this.baseURL });
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
updatePayslip = async (
|
|
598
|
+
urlParams: api.UpdatePayslipUrlParams,
|
|
599
|
+
body: api.UpdatePayslipBody,
|
|
600
|
+
headers: api.UpdatePayslipHeaders
|
|
601
|
+
) => {
|
|
602
|
+
return api.updatePayslipRequest({ urlParams, body, headers, baseURL: await this.baseURL });
|
|
603
|
+
};
|
|
604
|
+
|
|
462
605
|
// phoneBookContact
|
|
463
606
|
|
|
464
607
|
createPhoneBookContact = async (body: api.CreatePhoneBookContactBody, headers: api.CreatePhoneBookContactHeaders) => {
|
|
@@ -513,6 +656,10 @@ export class Api {
|
|
|
513
656
|
|
|
514
657
|
// realty
|
|
515
658
|
|
|
659
|
+
findRealtyPriceHistory = async (params: api.FindRealtyPriceHistoryParams) => {
|
|
660
|
+
return api.findRealtyPriceHistoryRequest({ params, baseURL: await this.baseURL });
|
|
661
|
+
};
|
|
662
|
+
|
|
516
663
|
findSimilarRealtyIdsById = async (urlParams: api.FindSimilarRealtyIdsByIdUrlParams) => {
|
|
517
664
|
return api.findSimilarRealtyIdsById({ urlParams, baseURL: await this.baseURL });
|
|
518
665
|
};
|
|
@@ -531,6 +678,27 @@ export class Api {
|
|
|
531
678
|
return api.approveCloseServiceRequestRequest({ urlParams, body, headers, baseURL: await this.baseURL });
|
|
532
679
|
};
|
|
533
680
|
|
|
681
|
+
findBuyerRejectionReasonStatistic = async (
|
|
682
|
+
urlParams: api.FindBuyerRejectionReasonStatisticUrlParams,
|
|
683
|
+
params: api.FindBuyerRejectionReasonStatisticParams,
|
|
684
|
+
headers: api.FindBuyerRejectionReasonStatisticHeaders
|
|
685
|
+
) => {
|
|
686
|
+
return api.findBuyerRejectionReasonStatisticRequest({
|
|
687
|
+
urlParams,
|
|
688
|
+
params,
|
|
689
|
+
headers,
|
|
690
|
+
baseURL: await this.baseURL,
|
|
691
|
+
});
|
|
692
|
+
};
|
|
693
|
+
|
|
694
|
+
findBuyerStatusStatistic = async (
|
|
695
|
+
urlParams: api.FindBuyerStatusStatisticUrlParams,
|
|
696
|
+
params: api.FindBuyerStatusStatisticParams,
|
|
697
|
+
headers: api.FindBuyerStatusStatisticHeaders
|
|
698
|
+
) => {
|
|
699
|
+
return api.findBuyerStatusStatisticRequest({ urlParams, params, headers, baseURL: await this.baseURL });
|
|
700
|
+
};
|
|
701
|
+
|
|
534
702
|
callbackServiceRequest = async (
|
|
535
703
|
urlParams: api.CallbackServiceRequestUrlParams,
|
|
536
704
|
headers: api.CallbackServiceRequestHeaders
|
|
@@ -583,7 +751,25 @@ export class Api {
|
|
|
583
751
|
body: api.CreateServiceRequestCategorizedFileBody,
|
|
584
752
|
headers: api.CreateServiceRequestCategorizedFileHeaders
|
|
585
753
|
) => {
|
|
586
|
-
return api.createServiceRequestCategorizedFileRequest({
|
|
754
|
+
return api.createServiceRequestCategorizedFileRequest({
|
|
755
|
+
urlParams,
|
|
756
|
+
body,
|
|
757
|
+
headers,
|
|
758
|
+
baseURL: await this.baseURL,
|
|
759
|
+
});
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
createServiceRequestSellerReport = async (
|
|
763
|
+
urlParams: api.CreateServiceRequestSellerReportUrlParams,
|
|
764
|
+
body: api.CreateServiceRequestSellerReportBody,
|
|
765
|
+
headers: api.CreateServiceRequestSellerReportHeaders
|
|
766
|
+
) => {
|
|
767
|
+
return api.createServiceRequestSellerReportRequest({
|
|
768
|
+
urlParams,
|
|
769
|
+
body,
|
|
770
|
+
headers,
|
|
771
|
+
baseURL: await this.baseURL,
|
|
772
|
+
});
|
|
587
773
|
};
|
|
588
774
|
|
|
589
775
|
deferServiceRequest = async (body: api.DeferServiceRequestBody, headers: api.DeferServiceRequestHeaders) => {
|
|
@@ -677,7 +863,25 @@ export class Api {
|
|
|
677
863
|
params: api.FindServiceRequestCategorizedFilesParams,
|
|
678
864
|
headers: api.FindServiceRequestCategorizedFilesHeaders
|
|
679
865
|
) => {
|
|
680
|
-
return api.findServiceRequestCategorizedFilesRequest({
|
|
866
|
+
return api.findServiceRequestCategorizedFilesRequest({
|
|
867
|
+
urlParams,
|
|
868
|
+
params,
|
|
869
|
+
headers,
|
|
870
|
+
baseURL: await this.baseURL,
|
|
871
|
+
});
|
|
872
|
+
};
|
|
873
|
+
|
|
874
|
+
findServiceRequestCategoryById = async (
|
|
875
|
+
urlParams: api.FindServiceRequestCategoryByIdUrlParams,
|
|
876
|
+
headers: api.FindServiceRequestCategoryByIdHeaders,
|
|
877
|
+
params?: api.FindServiceRequestCategoryByIdParams
|
|
878
|
+
) => {
|
|
879
|
+
return api.findServiceRequestCategoryByIdRequest({
|
|
880
|
+
urlParams,
|
|
881
|
+
params,
|
|
882
|
+
headers,
|
|
883
|
+
baseURL: await this.baseURL,
|
|
884
|
+
});
|
|
681
885
|
};
|
|
682
886
|
|
|
683
887
|
findServiceRequestCategorizedFileCreatedDate = async (
|
|
@@ -703,7 +907,12 @@ export class Api {
|
|
|
703
907
|
params: api.FindServiceRequestSellerReportsParams,
|
|
704
908
|
headers: api.FindServiceRequestSellerReportsHeaders
|
|
705
909
|
) => {
|
|
706
|
-
return api.findServiceRequestSellerReportsRequest({
|
|
910
|
+
return api.findServiceRequestSellerReportsRequest({
|
|
911
|
+
urlParams,
|
|
912
|
+
params,
|
|
913
|
+
headers,
|
|
914
|
+
baseURL: await this.baseURL,
|
|
915
|
+
});
|
|
707
916
|
};
|
|
708
917
|
|
|
709
918
|
publishServiceRequest = async (
|
|
@@ -738,7 +947,11 @@ export class Api {
|
|
|
738
947
|
urlParams: api.StartServiceRequestModerationForOldRealtyUrlParams,
|
|
739
948
|
headers: api.StartServiceRequestModerationForOldRealtyHeaders
|
|
740
949
|
) => {
|
|
741
|
-
return api.startServiceRequestModerationForOldRealtyRequest({
|
|
950
|
+
return api.startServiceRequestModerationForOldRealtyRequest({
|
|
951
|
+
urlParams,
|
|
952
|
+
headers,
|
|
953
|
+
baseURL: await this.baseURL,
|
|
954
|
+
});
|
|
742
955
|
};
|
|
743
956
|
|
|
744
957
|
transferServiceRequest = async (
|
|
@@ -849,7 +1062,12 @@ export class Api {
|
|
|
849
1062
|
params?: api.FindValuationByServiceRequestIdParams,
|
|
850
1063
|
headers?: api.FindValuationByServiceRequestIdHeaders
|
|
851
1064
|
) => {
|
|
852
|
-
return api.findValuationByServiceRequestIdRequest({
|
|
1065
|
+
return api.findValuationByServiceRequestIdRequest({
|
|
1066
|
+
urlParams,
|
|
1067
|
+
params,
|
|
1068
|
+
headers,
|
|
1069
|
+
baseURL: await this.baseURL,
|
|
1070
|
+
});
|
|
853
1071
|
};
|
|
854
1072
|
|
|
855
1073
|
findValuationNewsByServiceRequestId = async (
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ServiceRequest } from './ServiceRequest';
|
|
2
2
|
import { User } from './User';
|
|
3
|
+
import { Call } from './Call';
|
|
3
4
|
|
|
4
5
|
export enum BuyerStatus {
|
|
5
6
|
Incoming = 'incoming',
|
|
@@ -51,4 +52,10 @@ export type Buyer = {
|
|
|
51
52
|
source?: string;
|
|
52
53
|
statusDeadlineAt?: string;
|
|
53
54
|
updatedAt?: string;
|
|
55
|
+
calls: Call[];
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export type BuyerPhone = {
|
|
59
|
+
name: string;
|
|
60
|
+
phone: string;
|
|
54
61
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BuyerStatus, BuyerRealtyShowStatus } from './Buyer';
|
|
2
|
+
|
|
3
|
+
export type BuyerStatusHistory = {
|
|
4
|
+
id: number;
|
|
5
|
+
status: BuyerStatus;
|
|
6
|
+
changedAt: string;
|
|
7
|
+
deadlineAt: string;
|
|
8
|
+
realtyShowData: {
|
|
9
|
+
status: BuyerRealtyShowStatus;
|
|
10
|
+
scheduledAt: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -13,12 +13,12 @@ export enum CallDefaultTelephony {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export type Call = {
|
|
16
|
-
callTask
|
|
16
|
+
callTask?: Partial<CallTask> & { id: number };
|
|
17
17
|
createdAt: string;
|
|
18
18
|
duration: number;
|
|
19
19
|
extId: string;
|
|
20
20
|
from: { id: number; number: string };
|
|
21
|
-
hasComments
|
|
21
|
+
hasComments?: boolean;
|
|
22
22
|
id: number;
|
|
23
23
|
inProgress: boolean;
|
|
24
24
|
redirectCount: number;
|
|
@@ -21,7 +21,12 @@ export enum CallTaskStatus {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export enum CallTaskReason {
|
|
24
|
+
HasOwnRealtor = 'has_own_realtor',
|
|
25
|
+
Rent = 'rent',
|
|
26
|
+
NewComplex = 'new_complex',
|
|
27
|
+
Error = 'error',
|
|
24
28
|
WrongGeo = 'wrong_geo',
|
|
29
|
+
QualityAssurance = 'quality_assurance',
|
|
25
30
|
Double = 'double',
|
|
26
31
|
Agent = 'agent',
|
|
27
32
|
BuyingOrSellingPart = 'buying_or_selling_part',
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export type MotivationSellMinCommission = {
|
|
2
|
+
categoryName: string;
|
|
3
|
+
minPrice: number;
|
|
4
|
+
minCommissionPercent: number;
|
|
5
|
+
recommendedCommissionPercent: number;
|
|
6
|
+
minCommissionAmount: number;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type MotivationCommonMinCommission = {
|
|
10
|
+
categoryName: string;
|
|
11
|
+
minPrice: number;
|
|
12
|
+
minCommission: number;
|
|
13
|
+
minCommissionUnit: string;
|
|
14
|
+
legalDiligencePrice: number;
|
|
15
|
+
totalMinCommission: number;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type MotivationMinCommission = {
|
|
19
|
+
sell: Array<MotivationSellMinCommission>;
|
|
20
|
+
buySecondary: Array<MotivationCommonMinCommission>;
|
|
21
|
+
legalSupport: Array<MotivationCommonMinCommission>;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type MotivationStep = {
|
|
25
|
+
name: string;
|
|
26
|
+
val: number;
|
|
27
|
+
bonus: number;
|
|
28
|
+
bonusTrainee?: number;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export enum MotivationServiceTypeValues {
|
|
32
|
+
Sell = 'sell',
|
|
33
|
+
BuySecondary = 'buy_secondary',
|
|
34
|
+
BuyNew = 'buy_new',
|
|
35
|
+
LegalSupport = 'legal_support',
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type ExpertBonusCalculatingData = {
|
|
39
|
+
stepName: string;
|
|
40
|
+
commissionPart: number;
|
|
41
|
+
bonusPercent: number;
|
|
42
|
+
bonus: number;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export type MotivationCommission = {
|
|
46
|
+
minCommission: number;
|
|
47
|
+
recommendedCommission: number;
|
|
48
|
+
commission: number;
|
|
49
|
+
lowCommissionBonusFine: number;
|
|
50
|
+
additionalHighCommissionBonus: number;
|
|
51
|
+
additionalBonusOver2M: number;
|
|
52
|
+
expertBonusBySteps: number;
|
|
53
|
+
expertBonusPercentBySteps: number;
|
|
54
|
+
expertBonus: number;
|
|
55
|
+
expertBonusPercent: number;
|
|
56
|
+
expertBonusPercentCalculation: ExpertBonusCalculatingData[];
|
|
57
|
+
legalDiligencePrice?: number;
|
|
58
|
+
mentorLowCommissionBonusFine?: number;
|
|
59
|
+
mentorAdditionalHighCommissionBonus?: number;
|
|
60
|
+
mentorBonus?: number;
|
|
61
|
+
mentorBonusPercent?: number;
|
|
62
|
+
mentorBonusBySteps?: number;
|
|
63
|
+
mentorBonusPercentBySteps?: number;
|
|
64
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export type PayslipLevel = {
|
|
2
|
+
number: number;
|
|
3
|
+
revenue: number;
|
|
4
|
+
percent?: number;
|
|
5
|
+
baseCommissionSum?: number;
|
|
6
|
+
bonus?: number;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type Payslip = {
|
|
10
|
+
serviceRequestId: number;
|
|
11
|
+
advanceDate?: string;
|
|
12
|
+
allRelevantDeals?: number[];
|
|
13
|
+
baseBonusAll?: number;
|
|
14
|
+
baseBonusPercentAll?: number;
|
|
15
|
+
baseComission?: number;
|
|
16
|
+
basePercent?: number;
|
|
17
|
+
chargesComissionAboveTargetPercentAll?: number;
|
|
18
|
+
chargesComissionBelowMinimumAll?: number;
|
|
19
|
+
chargesComissionBelowTargetPercentAll?: number;
|
|
20
|
+
closingDate?: string;
|
|
21
|
+
comissionAboveTargetPercent?: number;
|
|
22
|
+
comissionBelowMinimum?: number;
|
|
23
|
+
comissionBelowTargetPercent?: number;
|
|
24
|
+
createdAt?: string;
|
|
25
|
+
curatorId?: number;
|
|
26
|
+
dealDate?: string;
|
|
27
|
+
dealId?: number;
|
|
28
|
+
dealStatus?: string;
|
|
29
|
+
dealType?: string;
|
|
30
|
+
effectiveBonusAll?: number;
|
|
31
|
+
effectiveBonusPercentAll?: number;
|
|
32
|
+
effectivePercent?: number;
|
|
33
|
+
expectedExpertPayoutDate?: string;
|
|
34
|
+
extraPercent?: number;
|
|
35
|
+
finalBonus?: number;
|
|
36
|
+
finalPrice?: number;
|
|
37
|
+
financeAdjustment?: number;
|
|
38
|
+
financeComment?: string;
|
|
39
|
+
formalId?: string;
|
|
40
|
+
grossRevenue4MAll?: number;
|
|
41
|
+
ifAmnesty?: boolean;
|
|
42
|
+
ifBelowMinimum?: boolean;
|
|
43
|
+
ifFinalNotification?: boolean;
|
|
44
|
+
lawyerId?: number;
|
|
45
|
+
legalCharges?: number;
|
|
46
|
+
levels?: Array<PayslipLevel>;
|
|
47
|
+
mentorId?: number;
|
|
48
|
+
minNetComission?: number;
|
|
49
|
+
negativeAdjustmentFact?: number;
|
|
50
|
+
netComission?: number;
|
|
51
|
+
partnerCommission?: number;
|
|
52
|
+
payslipMeta?: {
|
|
53
|
+
createdAt: string;
|
|
54
|
+
updatedAt?: string;
|
|
55
|
+
};
|
|
56
|
+
plannedCommission?: number;
|
|
57
|
+
signedAt?: string;
|
|
58
|
+
supervisorId?: number;
|
|
59
|
+
targetPercentFrom?: number;
|
|
60
|
+
targetPercentTo?: number;
|
|
61
|
+
traineeAdjustmentFact?: number;
|
|
62
|
+
};
|
|
@@ -5,9 +5,11 @@ export * from './AvailableFunds';
|
|
|
5
5
|
export * from './Bill';
|
|
6
6
|
export * from './Buyer';
|
|
7
7
|
export * from './BuyerClosingReason';
|
|
8
|
+
export * from './BuyerStatusHistory';
|
|
8
9
|
export * from './Call';
|
|
9
10
|
export * from './CallProxy';
|
|
10
11
|
export * from './CallTask';
|
|
12
|
+
export * from './Comment';
|
|
11
13
|
export * from './Contact';
|
|
12
14
|
export * from './Contract';
|
|
13
15
|
export * from './ContractDocument';
|
|
@@ -24,16 +26,19 @@ export * from './GalleryImage';
|
|
|
24
26
|
export * from './Image';
|
|
25
27
|
export * from './Income';
|
|
26
28
|
export * from './InternalCrossSale';
|
|
29
|
+
export * from './Motivation';
|
|
30
|
+
export * from './Payslip';
|
|
27
31
|
export * from './PhoneBookContact';
|
|
28
32
|
export * from './PhotoOrder';
|
|
33
|
+
export * from './PriceHistory';
|
|
29
34
|
export * from './PriceHistoryAnalytics';
|
|
30
35
|
export * from './Realty';
|
|
31
36
|
export * from './RealtyOffer';
|
|
32
37
|
export * from './ServiceRequest';
|
|
33
38
|
export * from './ServiceRequestActivity';
|
|
39
|
+
export * from './ServiceRequestCategorizedFile';
|
|
34
40
|
export * from './ServiceRequestSellerReport';
|
|
35
41
|
export * from './ServiceRequestShortInfo';
|
|
36
|
-
export * from './ServiceRequestCategorizedFile';
|
|
37
42
|
export * from './Shape';
|
|
38
43
|
export * from './SoldStatistic';
|
|
39
44
|
export * from './Task';
|