@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.
Files changed (92) hide show
  1. package/CHANGELOG.md +0 -12
  2. package/dist/api-queries.cjs.development.js +3352 -1636
  3. package/dist/api-queries.cjs.development.js.map +1 -1
  4. package/dist/api-queries.cjs.production.min.js +1 -1
  5. package/dist/api-queries.cjs.production.min.js.map +1 -1
  6. package/dist/api-queries.esm.js +3352 -1636
  7. package/dist/api-queries.esm.js.map +1 -1
  8. package/dist/clients/v1/api/buyer/closeBuyer/index.d.ts +37 -0
  9. package/dist/clients/v1/api/buyer/findBuyerById/index.d.ts +33 -0
  10. package/dist/clients/v1/api/buyer/findBuyerStatuses/index.d.ts +36 -0
  11. package/dist/clients/v1/api/buyer/findBuyerUniquePhones/index.d.ts +23 -0
  12. package/dist/clients/v1/api/buyer/findBuyers/index.d.ts +15 -2
  13. package/dist/clients/v1/api/buyer/resetBuyerStatusTimer/index.d.ts +29 -0
  14. package/dist/clients/v1/api/buyer/shareBuyer/index.d.ts +33 -0
  15. package/dist/clients/v1/api/buyer/updateBuyer/index.d.ts +38 -0
  16. package/dist/clients/v1/api/call/createCallComment/index.d.ts +33 -0
  17. package/dist/clients/v1/api/call/findCallById/index.d.ts +29 -0
  18. package/dist/clients/v1/api/callTask/callCallTask.d.ts +29 -0
  19. package/dist/clients/v1/api/callTask/closeCallTask.d.ts +35 -0
  20. package/dist/clients/v1/api/callTask/findCallQualityAssessors.d.ts +35 -0
  21. package/dist/clients/v1/api/callTask/findCallTaskById.d.ts +29 -0
  22. package/dist/clients/v1/api/callTask/findCallTasks.d.ts +9 -3
  23. package/dist/clients/v1/api/callTask/updateCallTask.d.ts +24 -0
  24. package/dist/clients/v1/api/comment/findComments/index.d.ts +41 -0
  25. package/dist/clients/v1/api/deal/findDealExpertStatistics/index.d.ts +39 -0
  26. package/dist/clients/v1/api/index.d.ts +34 -7
  27. package/dist/clients/v1/api/messenger/findMessengerInviteLinks/index.d.ts +31 -0
  28. package/dist/clients/v1/api/motivationCalculator/createMotivationCalculatorRequest/index.d.ts +37 -0
  29. package/dist/clients/v1/api/motivationGlossary/findMotivationStatus/index.d.ts +29 -0
  30. package/dist/clients/v1/api/motivationStatus/findMotivationStatus/index.d.ts +35 -0
  31. package/dist/clients/v1/api/payslip/findPayslipById.d.ts +29 -0
  32. package/dist/clients/v1/api/payslip/findPayslips.d.ts +56 -0
  33. package/dist/clients/v1/api/payslip/updatePayslip.d.ts +35 -0
  34. package/dist/clients/v1/api/realty/findRealtyPriceHistory/index.d.ts +39 -0
  35. package/dist/clients/v1/api/serviceRequest/buyer/findBuyerRejectionReasonStatistic/index.d.ts +36 -0
  36. package/dist/clients/v1/api/serviceRequest/buyer/findBuyerStatusStatistic/index.d.ts +40 -0
  37. package/dist/clients/v1/api/serviceRequest/createServiceRequestSellerReport/index.d.ts +31 -0
  38. package/dist/clients/v1/api/serviceRequest/findServiceRequestCategoryById/index.d.ts +44 -0
  39. package/dist/clients/v1/dictionaries/CallTask.d.ts +4 -0
  40. package/dist/clients/v1/index.d.ts +27 -0
  41. package/dist/clients/v1/types/Buyer.d.ts +6 -0
  42. package/dist/clients/v1/types/BuyerStatusHistory.d.ts +11 -0
  43. package/dist/clients/v1/types/Call.d.ts +2 -2
  44. package/dist/clients/v1/types/CallTask.d.ts +5 -0
  45. package/dist/clients/v1/types/Comment.d.ts +11 -0
  46. package/dist/clients/v1/types/Motivation.d.ts +58 -0
  47. package/dist/clients/v1/types/Payslip.d.ts +61 -0
  48. package/dist/clients/v1/types/PriceHistory.d.ts +9 -0
  49. package/dist/clients/v1/types/index.d.ts +6 -1
  50. package/package.json +1 -1
  51. package/src/clients/v1/api/buyer/closeBuyer/index.ts +47 -0
  52. package/src/clients/v1/api/buyer/findBuyerById/index.ts +48 -0
  53. package/src/clients/v1/api/buyer/findBuyerStatuses/index.ts +61 -0
  54. package/src/clients/v1/api/buyer/findBuyerUniquePhones/index.ts +51 -0
  55. package/src/clients/v1/api/buyer/findBuyers/index.ts +17 -2
  56. package/src/clients/v1/api/buyer/resetBuyerStatusTimer/index.ts +42 -0
  57. package/src/clients/v1/api/buyer/shareBuyer/index.ts +40 -0
  58. package/src/clients/v1/api/buyer/updateBuyer/index.ts +48 -0
  59. package/src/clients/v1/api/call/createCallComment/index.ts +41 -0
  60. package/src/clients/v1/api/call/findCallById/index.ts +39 -0
  61. package/src/clients/v1/api/callTask/callCallTask.ts +46 -0
  62. package/src/clients/v1/api/callTask/closeCallTask.ts +45 -0
  63. package/src/clients/v1/api/callTask/findCallQualityAssessors.ts +59 -0
  64. package/src/clients/v1/api/callTask/findCallTaskById.ts +39 -0
  65. package/src/clients/v1/api/callTask/findCallTasks.ts +6 -3
  66. package/src/clients/v1/api/callTask/updateCallTask.ts +49 -0
  67. package/src/clients/v1/api/comment/findComments/index.ts +54 -0
  68. package/src/clients/v1/api/deal/findDealExpertStatistics/index.ts +43 -0
  69. package/src/clients/v1/api/index.ts +37 -7
  70. package/src/clients/v1/api/messenger/findMessengerInviteLinks/index.ts +40 -0
  71. package/src/clients/v1/api/motivationCalculator/createMotivationCalculatorRequest/index.ts +48 -0
  72. package/src/clients/v1/api/motivationGlossary/findMotivationStatus/index.ts +38 -0
  73. package/src/clients/v1/api/motivationStatus/findMotivationStatus/index.ts +47 -0
  74. package/src/clients/v1/api/payslip/findPayslipById.ts +39 -0
  75. package/src/clients/v1/api/payslip/findPayslips.ts +53 -0
  76. package/src/clients/v1/api/payslip/updatePayslip.ts +45 -0
  77. package/src/clients/v1/api/realty/findRealtyPriceHistory/index.ts +43 -0
  78. package/src/clients/v1/api/serviceRequest/buyer/findBuyerRejectionReasonStatistic/index.ts +44 -0
  79. package/src/clients/v1/api/serviceRequest/buyer/findBuyerStatusStatistic/index.ts +48 -0
  80. package/src/clients/v1/api/serviceRequest/createServiceRequestSellerReport/index.ts +42 -0
  81. package/src/clients/v1/api/serviceRequest/findServiceRequestCategoryById/index.ts +48 -0
  82. package/src/clients/v1/dictionaries/CallTask.ts +4 -0
  83. package/src/clients/v1/index.ts +223 -5
  84. package/src/clients/v1/types/Buyer.ts +7 -0
  85. package/src/clients/v1/types/BuyerStatusHistory.ts +12 -0
  86. package/src/clients/v1/types/Call.ts +2 -2
  87. package/src/clients/v1/types/CallTask.ts +5 -0
  88. package/src/clients/v1/types/Comment.ts +10 -0
  89. package/src/clients/v1/types/Motivation.ts +64 -0
  90. package/src/clients/v1/types/Payslip.ts +62 -0
  91. package/src/clients/v1/types/PriceHistory.ts +7 -0
  92. package/src/clients/v1/types/index.ts +6 -1
@@ -8,10 +8,19 @@ export * from './availableFunds/deleteAvailableFunds';
8
8
  export * from './bill/createBill';
9
9
  export * from './bill/findBills';
10
10
  export * from './buyer/callbackBuyer';
11
+ export * from './buyer/closeBuyer';
11
12
  export * from './buyer/countBuyers';
12
13
  export * from './buyer/createBuyer';
13
14
  export * from './buyer/findBuyerClosingReason';
15
+ export * from './buyer/findBuyerStatuses';
16
+ export * from './buyer/findBuyerUniquePhones';
14
17
  export * from './buyer/findBuyers';
18
+ export * from './buyer/findBuyerById';
19
+ export * from './buyer/resetBuyerStatusTimer';
20
+ export * from './buyer/shareBuyer';
21
+ export * from './buyer/updateBuyer';
22
+ export * from './call/createCallComment';
23
+ export * from './call/findCallById';
15
24
  export * from './call/findCalls';
16
25
  export * from './call/findFirstSuccessOutgoingCalls';
17
26
  export * from './call/markupCall';
@@ -20,8 +29,14 @@ export * from './call/setProxyPhone';
20
29
  export * from './callCenter/finishOperatorWork';
21
30
  export * from './callCenter/getOperatorStatus';
22
31
  export * from './callCenter/startOperatorWork';
32
+ export * from './callTask/callCallTask';
33
+ export * from './callTask/closeCallTask';
23
34
  export * from './callTask/createCallTask';
35
+ export * from './callTask/findCallQualityAssessors';
36
+ export * from './callTask/findCallTaskById';
24
37
  export * from './callTask/findCallTasks';
38
+ export * from './callTask/updateCallTask';
39
+ export * from './comment/findComments';
25
40
  export * from './contract/approveContract';
26
41
  export * from './contract/createContract';
27
42
  export * from './contract/createContractLegalDocument';
@@ -42,6 +57,7 @@ export * from './deal/createDealCategorizedFile';
42
57
  export * from './deal/createDealInvestPrepayment';
43
58
  export * from './deal/deleteDealCategorizedFile';
44
59
  export * from './deal/findDealCategorizedFiles';
60
+ export * from './deal/findDealExpertStatistics';
45
61
  export * from './deal/findDeals';
46
62
  export * from './deal/setDealDoneState';
47
63
  export * from './deal/setDealPrepaymentState';
@@ -74,6 +90,12 @@ export * from './internalCrossSale/createInternalCrossSale';
74
90
  export * from './internalCrossSale/findInternalCrossSaleInfo';
75
91
  export * from './internalCrossSale/findInternalCrossSales';
76
92
  export * from './internalCrossSale/updateInternalCrossSale';
93
+ export * from './messenger/findMessengerInviteLinks';
94
+ export * from './motivationCalculator/createMotivationCalculatorRequest';
95
+ export * from './motivationStatus/findMotivationStatus';
96
+ export * from './payslip/findPayslips';
97
+ export * from './payslip/findPayslipById';
98
+ export * from './payslip/updatePayslip';
77
99
  export * from './phoneBookContact/createPhoneBookContact';
78
100
  export * from './phoneBookContact/deletePhoneBookContact';
79
101
  export * from './phoneBookContact/findPhoneBookContacts';
@@ -82,39 +104,44 @@ export * from './photoOrder/createPhotoOrder';
82
104
  export * from './photoOrder/findPhotoOrders';
83
105
  export * from './photoOrder/sendPhotoOrderFeedback';
84
106
  export * from './photoOrder/terminatePhotoOrder';
107
+ export * from './realty/findRealtyPriceHistory';
85
108
  export * from './realty/findSimilarRealtyIdsById';
86
109
  export * from './realty/subscribeToRealtyUpdates';
87
110
  export * from './serviceRequest/approveCloseServiceRequest';
111
+ export * from './serviceRequest/buyer/findBuyerRejectionReasonStatistic';
112
+ export * from './serviceRequest/buyer/findBuyerStatusStatistic';
88
113
  export * from './serviceRequest/callbackServiceRequest';
89
114
  export * from './serviceRequest/closeServiceRequest';
90
115
  export * from './serviceRequest/completeServiceRequestModeration';
91
116
  export * from './serviceRequest/createInvestSellServiceRequest';
92
117
  export * from './serviceRequest/createServiceRequest';
93
- export * from './serviceRequest/createServiceRequestByCrossSaleId';
94
118
  export * from './serviceRequest/createServiceRequestActivity';
119
+ export * from './serviceRequest/createServiceRequestByCrossSaleId';
95
120
  export * from './serviceRequest/createServiceRequestCategorizedFile';
121
+ export * from './serviceRequest/createServiceRequestSellerReport';
96
122
  export * from './serviceRequest/deferServiceRequest';
97
123
  export * from './serviceRequest/deleteServiceRequestCategorizedFile';
98
124
  export * from './serviceRequest/deleteServiceRequestReportForSeller';
125
+ export * from './serviceRequest/depublishServiceRequest';
99
126
  export * from './serviceRequest/disapproveCloseServiceRequest';
127
+ export * from './serviceRequest/findPriceHistoryAnalyticsById';
100
128
  export * from './serviceRequest/findServiceRequestActivities';
101
129
  export * from './serviceRequest/findServiceRequestById';
130
+ export * from './serviceRequest/findServiceRequestCategorizedFileCreatedDate';
131
+ export * from './serviceRequest/findServiceRequestCategorizedFiles';
132
+ export * from './serviceRequest/findServiceRequestCategoryById';
102
133
  export * from './serviceRequest/findServiceRequestDuplicates';
103
- export * from './serviceRequest/findServiceRequests';
104
134
  export * from './serviceRequest/findServiceRequestSellerReports';
105
135
  export * from './serviceRequest/findServiceRequestShortInfo';
106
136
  export * from './serviceRequest/findServiceRequestShortInfoByDealId';
107
137
  export * from './serviceRequest/findServiceRequestShortInfoById';
108
138
  export * from './serviceRequest/findServiceRequestStatisticsById';
109
- export * from './serviceRequest/findServiceRequestCategorizedFiles';
110
- export * from './serviceRequest/findServiceRequestCategorizedFileCreatedDate';
111
- export * from './serviceRequest/findPriceHistoryAnalyticsById';
139
+ export * from './serviceRequest/findServiceRequests';
140
+ export * from './serviceRequest/publishServiceRequest';
112
141
  export * from './serviceRequest/returnDeferredServiceRequest';
113
142
  export * from './serviceRequest/sendServiceRequestToModeration';
114
143
  export * from './serviceRequest/startServiceRequestModeration';
115
144
  export * from './serviceRequest/startServiceRequestModerationForOldRealty';
116
- export * from './serviceRequest/publishServiceRequest';
117
- export * from './serviceRequest/depublishServiceRequest';
118
145
  export * from './serviceRequest/transferServiceRequest';
119
146
  export * from './serviceRequest/updateServiceRequest';
120
147
  export * from './soldStatistic/findSoldStatistic';
@@ -0,0 +1,31 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ declare type SuccessData = {
3
+ success: true;
4
+ data: {
5
+ type: 'telegram';
6
+ uri: string;
7
+ }[];
8
+ };
9
+ declare type ErrorData = {
10
+ success: false;
11
+ data: {
12
+ error: string;
13
+ };
14
+ };
15
+ declare type ResultData = SuccessData['data'];
16
+ declare type ResultError = ErrorData['data']['error'];
17
+ export declare type FindMessengerInviteLinksHeaders = {
18
+ 'x-auth-hc': string;
19
+ };
20
+ export declare type FindMessengerInviteLinksUrlParams = {
21
+ id: number;
22
+ };
23
+ export declare type FindMessengerInviteLinksData = AxiosResponse<ResultData>;
24
+ export declare type FindMessengerInviteLinksError = AxiosError<ResultError>;
25
+ export declare type FindMessengerInviteLinksConfig = {
26
+ baseURL?: string;
27
+ headers: FindMessengerInviteLinksHeaders;
28
+ urlParams: FindMessengerInviteLinksUrlParams;
29
+ };
30
+ export declare function findMessengerInviteLinksRequest({ baseURL, urlParams, headers, }: FindMessengerInviteLinksConfig): Promise<FindMessengerInviteLinksData>;
31
+ export {};
@@ -0,0 +1,37 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ import { MotivationCommission, MotivationServiceTypeValues } from '../../../types';
3
+ declare type SuccessData = {
4
+ success: true;
5
+ data: MotivationCommission;
6
+ };
7
+ declare type ErrorData = {
8
+ success: false;
9
+ data: {
10
+ error: string;
11
+ };
12
+ };
13
+ declare type ResultData = SuccessData['data'];
14
+ declare type ResultError = ErrorData['data']['error'];
15
+ export declare type CreateMotivationCalculatorRequestHeaders = {
16
+ 'x-auth-hc': string;
17
+ };
18
+ export declare type CreateMotivationCalculatorRequestBody = {
19
+ serviceType: MotivationServiceTypeValues;
20
+ price: number;
21
+ commission: number;
22
+ val: number;
23
+ partnerCommission?: number;
24
+ developerCommission?: number;
25
+ legalDiligenceCount?: number;
26
+ isLowCommissionBonusFineByROP?: boolean;
27
+ isTrainee?: boolean;
28
+ };
29
+ export declare type CreateMotivationCalculatorRequestData = AxiosResponse<ResultData>;
30
+ export declare type CreateMotivationCalculatorRequestError = AxiosError<ResultError>;
31
+ export declare type CreateMotivationCalculatorRequestConfig = {
32
+ baseURL?: string;
33
+ body: CreateMotivationCalculatorRequestBody;
34
+ headers: CreateMotivationCalculatorRequestHeaders;
35
+ };
36
+ export declare function createMotivationCalculatorRequest({ baseURL, body, headers, }: CreateMotivationCalculatorRequestConfig): Promise<CreateMotivationCalculatorRequestData>;
37
+ export {};
@@ -0,0 +1,29 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ import { MotivationMinCommission, MotivationStep } from '../../../types';
3
+ declare type SuccessData = {
4
+ success: true;
5
+ data: {
6
+ minCommission: MotivationMinCommission;
7
+ highCommissionBonusPercent: number;
8
+ steps: MotivationStep[];
9
+ };
10
+ };
11
+ declare type ErrorData = {
12
+ success: false;
13
+ data: {
14
+ error: string;
15
+ };
16
+ };
17
+ declare type ResultData = SuccessData['data'];
18
+ declare type ResultError = ErrorData['data']['error'];
19
+ export declare type FindMotivationStatusHeaders = {
20
+ 'x-auth-hc': string;
21
+ };
22
+ export declare type FindMotivationStatusData = AxiosResponse<ResultData>;
23
+ export declare type FindMotivationStatusError = AxiosError<ResultError>;
24
+ export declare type FindMotivationStatusConfig = {
25
+ baseURL?: string;
26
+ headers: FindMotivationStatusHeaders;
27
+ };
28
+ export declare function findMotivationStatusRequest({ baseURL, headers, }: FindMotivationStatusConfig): Promise<FindMotivationStatusData>;
29
+ export {};
@@ -0,0 +1,35 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ declare type SuccessData = {
3
+ success: true;
4
+ data: {
5
+ count: number;
6
+ val: number;
7
+ step: string;
8
+ bonus: number;
9
+ nextBonus?: number;
10
+ neededVal?: number;
11
+ };
12
+ };
13
+ declare type ErrorData = {
14
+ success: false;
15
+ data: {
16
+ error: string;
17
+ };
18
+ };
19
+ declare type ResultData = SuccessData['data'];
20
+ declare type ResultError = ErrorData['data']['error'];
21
+ export declare type FindMotivationStatusHeaders = {
22
+ 'x-auth-hc': string;
23
+ };
24
+ export declare type FindMotivationStatusUrlParams = {
25
+ id: number;
26
+ };
27
+ export declare type FindMotivationStatusData = AxiosResponse<ResultData>;
28
+ export declare type FindMotivationStatusError = AxiosError<ResultError>;
29
+ export declare type FindMotivationStatusConfig = {
30
+ baseURL?: string;
31
+ headers: FindMotivationStatusHeaders;
32
+ urlParams: FindMotivationStatusUrlParams;
33
+ };
34
+ export declare function findMotivationStatusRequest({ baseURL, urlParams, headers, }: FindMotivationStatusConfig): Promise<FindMotivationStatusData>;
35
+ export {};
@@ -0,0 +1,29 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ import { Payslip } from '../../types';
3
+ declare type SuccessData = {
4
+ success: true;
5
+ data: Payslip;
6
+ };
7
+ declare type ErrorData = {
8
+ success: false;
9
+ data: {
10
+ error: string;
11
+ };
12
+ };
13
+ declare type ResultData = SuccessData['data'];
14
+ declare type ResultError = ErrorData['data']['error'];
15
+ export declare type FindPayslipByIdUrlParams = {
16
+ id: number;
17
+ };
18
+ export declare type FindPayslipByIdHeaders = {
19
+ 'x-auth-hc': string;
20
+ };
21
+ export declare type FindPayslipByIdData = AxiosResponse<ResultData>;
22
+ export declare type FindPayslipByIdError = AxiosError<ResultError>;
23
+ export declare type FindPayslipByIdConfig = {
24
+ baseURL?: string;
25
+ urlParams: FindPayslipByIdUrlParams;
26
+ headers: FindPayslipByIdHeaders;
27
+ };
28
+ export declare function findPayslipByIdRequest({ baseURL, urlParams, headers, }: FindPayslipByIdConfig): Promise<FindPayslipByIdData>;
29
+ export {};
@@ -0,0 +1,56 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ import { Payslip } from '../../types';
3
+ declare type SuccessData = {
4
+ success: true;
5
+ data: Payslip[];
6
+ pageParams: {
7
+ page: number;
8
+ length: number;
9
+ };
10
+ };
11
+ declare type ErrorData = {
12
+ success: false;
13
+ data: {
14
+ error: string;
15
+ };
16
+ };
17
+ declare type ResultData = {
18
+ data: SuccessData['data'];
19
+ meta: {
20
+ total: number;
21
+ };
22
+ };
23
+ declare type ResultError = ErrorData['data']['error'];
24
+ export declare type FindPayslipsParams = {
25
+ filter?: {
26
+ dealId?: string | string[];
27
+ 'serviceRequest.id'?: string | string[];
28
+ 'serviceRequest.contract.formalId'?: string;
29
+ 'serviceRequest.curator.id'?: string;
30
+ 'serviceRequest.curator.supervisor.id'?: string;
31
+ closingDate?: string | {
32
+ from?: string;
33
+ to?: string;
34
+ };
35
+ };
36
+ sorting?: {
37
+ type: 'closingDate';
38
+ direction: 'asc' | 'desc';
39
+ };
40
+ limits?: {
41
+ page?: number;
42
+ count?: number | 'all';
43
+ };
44
+ };
45
+ export declare type FindPayslipsHeaders = {
46
+ 'x-auth-hc': string;
47
+ };
48
+ export declare type FindPayslipsData = AxiosResponse<ResultData>;
49
+ export declare type FindPayslipsError = AxiosError<ResultError>;
50
+ export declare type FindPayslipsConfig = {
51
+ baseURL?: string;
52
+ params: FindPayslipsParams;
53
+ headers: FindPayslipsHeaders;
54
+ };
55
+ export declare function findPayslipsRequest({ baseURL, headers, params }: FindPayslipsConfig): Promise<FindPayslipsData>;
56
+ export {};
@@ -0,0 +1,35 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ import { Payslip } from '../../types';
3
+ declare type SuccessData = {
4
+ success: true;
5
+ data: Payslip;
6
+ };
7
+ declare type ErrorData = {
8
+ success: false;
9
+ data: {
10
+ error: string;
11
+ };
12
+ };
13
+ declare type ResultData = SuccessData['data'];
14
+ declare type ResultError = ErrorData['data']['error'];
15
+ export declare type UpdatePayslipHeaders = {
16
+ 'x-auth-hc': string;
17
+ };
18
+ export declare type UpdatePayslipUrlParams = {
19
+ id: number;
20
+ };
21
+ export declare type UpdatePayslipBody = {
22
+ financeAdjustment?: string;
23
+ financeComment?: string;
24
+ ifFinalNotification: boolean;
25
+ };
26
+ export declare type UpdatePayslipData = AxiosResponse<ResultData>;
27
+ export declare type UpdatePayslipError = AxiosError<ResultError>;
28
+ export declare type UpdatePayslipConfig = {
29
+ baseURL?: string;
30
+ body: UpdatePayslipBody;
31
+ urlParams: UpdatePayslipUrlParams;
32
+ headers: UpdatePayslipHeaders;
33
+ };
34
+ export declare function updatePayslipRequest({ baseURL, urlParams, body, headers, }: UpdatePayslipConfig): Promise<UpdatePayslipData>;
35
+ export {};
@@ -0,0 +1,39 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ import { PriceHistory } from '../../../types';
3
+ declare type SuccessData = {
4
+ success: true;
5
+ data: PriceHistory[];
6
+ };
7
+ declare type ErrorData = {
8
+ success: false;
9
+ data: {
10
+ error: string;
11
+ };
12
+ };
13
+ declare type ResultData = SuccessData['data'];
14
+ declare type ResultError = ErrorData['data']['error'];
15
+ export declare type FindRealtyPriceHistoryParams = {
16
+ filter?: {
17
+ realtyId?: number | number[];
18
+ dateCreated?: {
19
+ from?: string;
20
+ to?: string;
21
+ };
22
+ };
23
+ limits?: {
24
+ page?: number;
25
+ count?: number | 'all';
26
+ };
27
+ sorting?: {
28
+ type?: 'id' | 'realtyId' | 'dateCreated';
29
+ direction?: 'asc' | 'desc';
30
+ };
31
+ };
32
+ export declare type FindRealtyPriceHistoryData = AxiosResponse<ResultData>;
33
+ export declare type FindRealtyPriceHistoryError = AxiosError<ResultError>;
34
+ export declare type FindRealtyPriceHistoryConfig = {
35
+ baseURL?: string;
36
+ params: FindRealtyPriceHistoryParams;
37
+ };
38
+ export declare function findRealtyPriceHistoryRequest({ baseURL, params, }: FindRealtyPriceHistoryConfig): Promise<FindRealtyPriceHistoryData>;
39
+ export {};
@@ -0,0 +1,36 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ declare type SuccessData = {
3
+ success: true;
4
+ data: {
5
+ text: string;
6
+ count: number;
7
+ }[];
8
+ };
9
+ declare type ErrorData = {
10
+ success: false;
11
+ data: {
12
+ error: string;
13
+ };
14
+ };
15
+ declare type ResultData = SuccessData['data'];
16
+ declare type ResultError = ErrorData['data']['error'];
17
+ export declare type FindBuyerRejectionReasonStatisticUrlParams = {
18
+ id: number;
19
+ };
20
+ export declare type FindBuyerRejectionReasonStatisticParams = {
21
+ from?: string;
22
+ to?: string;
23
+ };
24
+ export declare type FindBuyerRejectionReasonStatisticHeaders = {
25
+ 'x-auth-hc': string;
26
+ };
27
+ export declare type FindBuyerRejectionReasonStatisticData = AxiosResponse<ResultData>;
28
+ export declare type FindBuyerRejectionReasonStatisticError = AxiosError<ResultError>;
29
+ export declare type FindBuyerRejectionReasonStatisticConfig = {
30
+ baseURL?: string;
31
+ urlParams: FindBuyerRejectionReasonStatisticUrlParams;
32
+ params: FindBuyerRejectionReasonStatisticParams;
33
+ headers: FindBuyerRejectionReasonStatisticHeaders;
34
+ };
35
+ export declare function findBuyerRejectionReasonStatisticRequest({ baseURL, urlParams, params, headers, }: FindBuyerRejectionReasonStatisticConfig): Promise<FindBuyerRejectionReasonStatisticData>;
36
+ export {};
@@ -0,0 +1,40 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ import { BuyerStatus } from '../../../../types';
3
+ declare type SuccessData = {
4
+ success: true;
5
+ data: {
6
+ status: BuyerStatus;
7
+ values: {
8
+ buyerId: number;
9
+ count: number;
10
+ }[];
11
+ }[];
12
+ };
13
+ declare type ErrorData = {
14
+ success: false;
15
+ data: {
16
+ error: string;
17
+ };
18
+ };
19
+ declare type ResultData = SuccessData['data'];
20
+ declare type ResultError = ErrorData['data']['error'];
21
+ export declare type FindBuyerStatusStatisticUrlParams = {
22
+ id: number;
23
+ };
24
+ export declare type FindBuyerStatusStatisticParams = {
25
+ from?: string;
26
+ to?: string;
27
+ };
28
+ export declare type FindBuyerStatusStatisticHeaders = {
29
+ 'x-auth-hc': string;
30
+ };
31
+ export declare type FindBuyerStatusStatisticData = AxiosResponse<ResultData>;
32
+ export declare type FindBuyerStatusStatisticError = AxiosError<ResultError>;
33
+ export declare type FindBuyerStatusStatisticConfig = {
34
+ baseURL?: string;
35
+ urlParams: FindBuyerStatusStatisticUrlParams;
36
+ params: FindBuyerStatusStatisticParams;
37
+ headers: FindBuyerStatusStatisticHeaders;
38
+ };
39
+ export declare function findBuyerStatusStatisticRequest({ baseURL, urlParams, params, headers, }: FindBuyerStatusStatisticConfig): Promise<FindBuyerStatusStatisticData>;
40
+ export {};
@@ -0,0 +1,31 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ import { ServiceRequestSellerReport } from '../../../types';
3
+ declare type SuccessData = {
4
+ success: true;
5
+ data: ServiceRequestSellerReport;
6
+ };
7
+ declare type ErrorData = {
8
+ success: false;
9
+ data: {
10
+ error: string;
11
+ };
12
+ };
13
+ declare type ResultData = SuccessData['data'];
14
+ declare type ResultError = ErrorData['data']['error'];
15
+ export declare type CreateServiceRequestSellerReportHeaders = {
16
+ 'x-auth-hc': string;
17
+ };
18
+ export declare type CreateServiceRequestSellerReportUrlParams = {
19
+ id: number;
20
+ };
21
+ export declare type CreateServiceRequestSellerReportBody = Partial<ServiceRequestSellerReport>;
22
+ export declare type CreateServiceRequestSellerReportData = AxiosResponse<ResultData>;
23
+ export declare type CreateServiceRequestSellerReportError = AxiosError<ResultError>;
24
+ export declare type CreateServiceRequestSellerReportConfig = {
25
+ baseURL?: string;
26
+ headers: CreateServiceRequestSellerReportHeaders;
27
+ body: CreateServiceRequestSellerReportBody;
28
+ urlParams: CreateServiceRequestSellerReportUrlParams;
29
+ };
30
+ export declare function createServiceRequestSellerReportRequest({ baseURL, body, headers, urlParams, }: CreateServiceRequestSellerReportConfig): Promise<CreateServiceRequestSellerReportData>;
31
+ export {};
@@ -0,0 +1,44 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ import { ServiceRequestCategory } from '../../../types';
3
+ declare type SuccessData = {
4
+ success: true;
5
+ data: {
6
+ category: ServiceRequestCategory;
7
+ movedAt: string;
8
+ }[];
9
+ };
10
+ declare type ErrorData = {
11
+ success: false;
12
+ data: Record<'error' | 'message', string>;
13
+ };
14
+ declare type ResultData = SuccessData['data'];
15
+ declare type ResultError = ErrorData['data']['error'];
16
+ export declare type FindServiceRequestCategoryByIdHeaders = {
17
+ 'x-auth-hc': string;
18
+ };
19
+ export declare type FindServiceRequestCategoryByIdUrlParams = {
20
+ id: number;
21
+ };
22
+ export declare type FindServiceRequestCategoryByIdParams = {
23
+ filter?: {
24
+ category?: ServiceRequestCategory;
25
+ };
26
+ limits?: {
27
+ page?: number;
28
+ count: number | 'all';
29
+ };
30
+ sorting?: {
31
+ direction: 'asc' | 'desc';
32
+ type: 'createdAt';
33
+ };
34
+ };
35
+ export declare type FindServiceRequestCategoryByIdData = AxiosResponse<ResultData>;
36
+ export declare type FindServiceRequestCategoryByIdError = AxiosError<ResultError>;
37
+ export declare type FindServiceRequestCategoryByIdConfig = {
38
+ baseURL?: string;
39
+ params?: FindServiceRequestCategoryByIdParams;
40
+ urlParams: FindServiceRequestCategoryByIdUrlParams;
41
+ headers: FindServiceRequestCategoryByIdHeaders;
42
+ };
43
+ export declare function findServiceRequestCategoryByIdRequest({ baseURL, headers, urlParams, params, }: FindServiceRequestCategoryByIdConfig): Promise<FindServiceRequestCategoryByIdData>;
44
+ export {};
@@ -36,6 +36,10 @@ export declare const CallTaskDictionary: {
36
36
  complaint: string;
37
37
  commercial: string;
38
38
  test: string;
39
+ has_own_realtor: string;
40
+ rent: string;
41
+ new_complex: string;
42
+ quality_assurance: string;
39
43
  other: string;
40
44
  };
41
45
  ColdReason: {