@hapl/api-queries 0.2.14 → 0.2.15--canary.134.247c9c3.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 -24
- package/dist/api-queries.cjs.development.js +6283 -4255
- 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 +6283 -4255
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/bill/createBill/index.d.ts +0 -2
- 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 +39 -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/findMotivationGlossary/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/chat/findChatsByServiceRequestId/index.d.ts +28 -0
- package/dist/clients/v1/api/serviceRequest/chat/message/findChatMessageByServiceRequestId/index.d.ts +43 -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/api/serviceRequest/restoreServiceRequest/index.d.ts +28 -0
- package/dist/clients/v1/api/slack/createCianRating/index.d.ts +29 -0
- package/dist/clients/v1/api/task/findTasks/index.d.ts +4 -0
- package/dist/clients/v1/api/user/findUsers/index.d.ts +2 -0
- package/dist/clients/v1/dictionaries/Bill.d.ts +1 -1
- package/dist/clients/v1/dictionaries/CallTask.d.ts +4 -0
- package/dist/clients/v1/index.d.ts +32 -0
- package/dist/clients/v1/types/Bill.d.ts +1 -3
- 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/Message.d.ts +20 -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 +7 -1
- package/package.json +1 -1
- package/src/clients/v1/api/bill/createBill/index.ts +0 -2
- 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 +42 -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/findMotivationGlossary/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/chat/findChatsByServiceRequestId/index.ts +37 -0
- package/src/clients/v1/api/serviceRequest/chat/message/findChatMessageByServiceRequestId/index.ts +59 -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/api/serviceRequest/restoreServiceRequest/index.ts +41 -0
- package/src/clients/v1/api/slack/createCianRating/index.ts +34 -0
- package/src/clients/v1/api/task/findTasks/index.ts +1 -0
- package/src/clients/v1/api/user/findUsers/index.ts +2 -0
- package/src/clients/v1/dictionaries/Bill.ts +1 -1
- package/src/clients/v1/dictionaries/CallTask.ts +4 -0
- package/src/clients/v1/index.ts +257 -5
- package/src/clients/v1/types/Bill.ts +1 -3
- 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/Message.ts +20 -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 +7 -1
|
@@ -20,8 +20,6 @@ export declare type CreateBillBody = {
|
|
|
20
20
|
services: Required<Bill>['services'];
|
|
21
21
|
dealId?: Required<Bill>['dealId'];
|
|
22
22
|
contractId?: Required<Bill>['contractId'];
|
|
23
|
-
acceptanceAgreementDate?: Required<Bill>['acceptanceAgreementDate'];
|
|
24
|
-
acceptanceAgreementNumber?: Required<Bill>['acceptanceAgreementNumber'];
|
|
25
23
|
};
|
|
26
24
|
export declare type CreateBillData = AxiosResponse<ResultData>;
|
|
27
25
|
export declare type CreateBillError = AxiosError<ResultError>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { Buyer } from '../../../types';
|
|
3
|
+
declare type SuccessData = {
|
|
4
|
+
success: true;
|
|
5
|
+
data: Buyer;
|
|
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 CloseBuyerUrlParams = {
|
|
16
|
+
id: number;
|
|
17
|
+
};
|
|
18
|
+
export declare type CloseBuyerHeaders = {
|
|
19
|
+
'x-auth-hc': string;
|
|
20
|
+
};
|
|
21
|
+
export declare type CloseBuyerBody = {
|
|
22
|
+
closingQuestionaryAnswers?: Array<{
|
|
23
|
+
questionId: string;
|
|
24
|
+
answerId: string;
|
|
25
|
+
comment?: string;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
export declare type CloseBuyerData = AxiosResponse<ResultData>;
|
|
29
|
+
export declare type CloseBuyerError = AxiosError<ResultError>;
|
|
30
|
+
export declare type CloseBuyerConfig = {
|
|
31
|
+
baseURL?: string;
|
|
32
|
+
urlParams: CloseBuyerUrlParams;
|
|
33
|
+
headers: CloseBuyerHeaders;
|
|
34
|
+
body: CloseBuyerBody;
|
|
35
|
+
};
|
|
36
|
+
export declare function closeBuyerRequest({ baseURL, urlParams, body, headers, }: CloseBuyerConfig): Promise<CloseBuyerData>;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { Buyer } from '../../../types';
|
|
3
|
+
declare type SuccessData = {
|
|
4
|
+
success: true;
|
|
5
|
+
data: Buyer;
|
|
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 FindBuyerByIdUrlParams = {
|
|
16
|
+
id: number;
|
|
17
|
+
};
|
|
18
|
+
export declare type FindBuyerByIdParams = {
|
|
19
|
+
include?: Array<'sharing.fromExpert'>;
|
|
20
|
+
};
|
|
21
|
+
export declare type FindBuyerByIdHeaders = {
|
|
22
|
+
'x-auth-hc': string;
|
|
23
|
+
};
|
|
24
|
+
export declare type FindBuyerByIdData = AxiosResponse<ResultData>;
|
|
25
|
+
export declare type FindBuyerByIdError = AxiosError<ResultError>;
|
|
26
|
+
export declare type FindBuyerByIdConfig = {
|
|
27
|
+
baseURL?: string;
|
|
28
|
+
urlParams: FindBuyerByIdUrlParams;
|
|
29
|
+
headers: FindBuyerByIdHeaders;
|
|
30
|
+
params: FindBuyerByIdParams;
|
|
31
|
+
};
|
|
32
|
+
export declare function findBuyerByIdRequest({ baseURL, urlParams, headers, params, }: FindBuyerByIdConfig): Promise<FindBuyerByIdData>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { BuyerStatusHistory } from '../../../types';
|
|
3
|
+
declare type ResultData = {
|
|
4
|
+
ids: number[];
|
|
5
|
+
byId: Record<string, BuyerStatusHistory>;
|
|
6
|
+
meta: {
|
|
7
|
+
total: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
declare type ResultError = string;
|
|
11
|
+
export declare type FindBuyerStatusesHeaders = {
|
|
12
|
+
'x-auth-hc': string;
|
|
13
|
+
};
|
|
14
|
+
export declare type FindBuyerStatusesParams = {
|
|
15
|
+
limits?: {
|
|
16
|
+
page?: number;
|
|
17
|
+
count?: number | 'all';
|
|
18
|
+
};
|
|
19
|
+
sorting?: {
|
|
20
|
+
type: 'changedAt' | 'deadlineAt';
|
|
21
|
+
direction: 'asc' | 'desc';
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare type FindBuyerStatusesData = AxiosResponse<ResultData>;
|
|
25
|
+
export declare type FindBuyerStatusesError = AxiosError<ResultError>;
|
|
26
|
+
export declare type FindBuyerStatusesUrlParams = {
|
|
27
|
+
id: number;
|
|
28
|
+
};
|
|
29
|
+
export declare type FindBuyerStatusesConfig = {
|
|
30
|
+
baseURL?: string;
|
|
31
|
+
headers: FindBuyerStatusesHeaders;
|
|
32
|
+
urlParams: FindBuyerStatusesUrlParams;
|
|
33
|
+
params: FindBuyerStatusesParams;
|
|
34
|
+
};
|
|
35
|
+
export declare function findBuyerStatusesRequest({ baseURL, urlParams, headers, params, }: FindBuyerStatusesConfig): Promise<FindBuyerStatusesData>;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { BuyerPhone } from '../../../types';
|
|
3
|
+
declare type ResultData = {
|
|
4
|
+
ids: string[];
|
|
5
|
+
byId: Record<string, BuyerPhone & {
|
|
6
|
+
_id: string;
|
|
7
|
+
}>;
|
|
8
|
+
meta: {
|
|
9
|
+
total: number;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
declare type ResultError = string;
|
|
13
|
+
export declare type FindBuyerUniquePhonesHeaders = {
|
|
14
|
+
'x-auth-hc': string;
|
|
15
|
+
};
|
|
16
|
+
export declare type FindBuyerUniquePhonesData = AxiosResponse<ResultData>;
|
|
17
|
+
export declare type FindBuyerUniquePhonesError = AxiosError<ResultError>;
|
|
18
|
+
export declare type FindBuyerUniquePhonesConfig = {
|
|
19
|
+
baseURL?: string;
|
|
20
|
+
headers: FindBuyerUniquePhonesHeaders;
|
|
21
|
+
};
|
|
22
|
+
export declare function findBuyerUniquePhonesRequest({ baseURL, headers, }: FindBuyerUniquePhonesConfig): Promise<FindBuyerUniquePhonesData>;
|
|
23
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
-
import { Buyer } from '../../../types';
|
|
2
|
+
import { Buyer, BuyerStatus } from '../../../types';
|
|
3
3
|
declare type ResultData = {
|
|
4
4
|
ids: number[];
|
|
5
5
|
byId: Record<string, Buyer>;
|
|
@@ -13,9 +13,22 @@ export declare type FindBuyersHeaders = {
|
|
|
13
13
|
};
|
|
14
14
|
export declare type FindBuyersParams = {
|
|
15
15
|
filter?: {
|
|
16
|
-
'serviceRequest.curator.groupLead.id'?: number | 'null' | 'notnull';
|
|
17
16
|
'serviceRequest.id'?: number;
|
|
17
|
+
'serviceRequest.realty.address.fullAddress'?: string;
|
|
18
|
+
'serviceRequest.curator.groupLead.id'?: number | 'null' | 'notnull';
|
|
18
19
|
query?: string;
|
|
20
|
+
'serviceRequest.curator.id'?: string;
|
|
21
|
+
status?: BuyerStatus | BuyerStatus[];
|
|
22
|
+
id?: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
statusDeadlineAt?: {
|
|
25
|
+
from?: string;
|
|
26
|
+
to?: string;
|
|
27
|
+
} | 'notnull';
|
|
28
|
+
createdAt?: {
|
|
29
|
+
from?: string;
|
|
30
|
+
to?: string;
|
|
31
|
+
};
|
|
19
32
|
};
|
|
20
33
|
limits?: {
|
|
21
34
|
page?: number;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { Buyer } from '../../../types';
|
|
3
|
+
declare type SuccessData = {
|
|
4
|
+
success: true;
|
|
5
|
+
data: Buyer;
|
|
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 ResetBuyerStatusTimerUrlParams = {
|
|
16
|
+
id: number;
|
|
17
|
+
};
|
|
18
|
+
export declare type ResetBuyerStatusTimerHeaders = {
|
|
19
|
+
'x-auth-hc': string;
|
|
20
|
+
};
|
|
21
|
+
export declare type ResetBuyerStatusTimerData = AxiosResponse<ResultData>;
|
|
22
|
+
export declare type ResetBuyerStatusTimerError = AxiosError<ResultError>;
|
|
23
|
+
export declare type ResetBuyerStatusTimerConfig = {
|
|
24
|
+
baseURL?: string;
|
|
25
|
+
urlParams: ResetBuyerStatusTimerUrlParams;
|
|
26
|
+
headers: ResetBuyerStatusTimerHeaders;
|
|
27
|
+
};
|
|
28
|
+
export declare function resetBuyerStatusTimerRequest({ baseURL, urlParams, headers, }: ResetBuyerStatusTimerConfig): Promise<ResetBuyerStatusTimerData>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
declare type SuccessData = {
|
|
3
|
+
success: true;
|
|
4
|
+
data: null;
|
|
5
|
+
};
|
|
6
|
+
declare type ErrorData = {
|
|
7
|
+
success: false;
|
|
8
|
+
data: {
|
|
9
|
+
error: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
declare type ResultData = SuccessData['data'];
|
|
13
|
+
declare type ResultError = ErrorData['data']['error'];
|
|
14
|
+
export declare type ShareBuyerUrlParams = {
|
|
15
|
+
id: number;
|
|
16
|
+
};
|
|
17
|
+
export declare type ShareBuyerHeaders = {
|
|
18
|
+
'x-auth-hc': string;
|
|
19
|
+
};
|
|
20
|
+
export declare type ShareBuyerBody = {
|
|
21
|
+
serviceRequestId: number;
|
|
22
|
+
comment?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare type ShareBuyerData = AxiosResponse<ResultData>;
|
|
25
|
+
export declare type ShareBuyerError = AxiosError<ResultError>;
|
|
26
|
+
export declare type ShareBuyerConfig = {
|
|
27
|
+
baseURL?: string;
|
|
28
|
+
urlParams: ShareBuyerUrlParams;
|
|
29
|
+
headers: ShareBuyerHeaders;
|
|
30
|
+
body: ShareBuyerBody;
|
|
31
|
+
};
|
|
32
|
+
export declare function shareBuyerRequest({ baseURL, urlParams, body, headers, }: ShareBuyerConfig): Promise<ShareBuyerData>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { Buyer, BuyerStatus } from '../../../types';
|
|
3
|
+
declare type SuccessData = {
|
|
4
|
+
success: true;
|
|
5
|
+
data: Buyer;
|
|
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 UpdateBuyerUrlParams = {
|
|
16
|
+
id: number;
|
|
17
|
+
};
|
|
18
|
+
export declare type UpdateBuyerHeaders = {
|
|
19
|
+
'x-auth-hc': string;
|
|
20
|
+
};
|
|
21
|
+
export declare type UpdateBuyerData = AxiosResponse<ResultData>;
|
|
22
|
+
export declare type UpdateBuyerError = AxiosError<ResultError>;
|
|
23
|
+
export declare type UpdateBuyerBody = {
|
|
24
|
+
name?: string;
|
|
25
|
+
status?: BuyerStatus;
|
|
26
|
+
comment?: string;
|
|
27
|
+
realtyShow?: {
|
|
28
|
+
scheduledAt: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare type UpdateBuyerConfig = {
|
|
32
|
+
baseURL?: string;
|
|
33
|
+
urlParams: UpdateBuyerUrlParams;
|
|
34
|
+
headers: UpdateBuyerHeaders;
|
|
35
|
+
body: UpdateBuyerBody;
|
|
36
|
+
};
|
|
37
|
+
export declare function updateBuyerRequest({ baseURL, body, urlParams, headers, }: UpdateBuyerConfig): Promise<UpdateBuyerData>;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { Call } from '../../../types';
|
|
3
|
+
declare type SuccessData = {
|
|
4
|
+
success: true;
|
|
5
|
+
data: Call;
|
|
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 CreateCallCommentHeaders = {
|
|
16
|
+
'x-auth-hc': string;
|
|
17
|
+
};
|
|
18
|
+
export declare type CreateCallCommentUrlParams = {
|
|
19
|
+
id: number;
|
|
20
|
+
};
|
|
21
|
+
export declare type CreateCallCommentBody = {
|
|
22
|
+
comment: string;
|
|
23
|
+
};
|
|
24
|
+
export declare type CreateCallCommentData = AxiosResponse<ResultData>;
|
|
25
|
+
export declare type CreateCallCommentError = AxiosError<ResultError>;
|
|
26
|
+
export declare type CreateCallCommentConfig = {
|
|
27
|
+
baseURL?: string;
|
|
28
|
+
headers: CreateCallCommentHeaders;
|
|
29
|
+
body: CreateCallCommentBody;
|
|
30
|
+
urlParams: CreateCallCommentUrlParams;
|
|
31
|
+
};
|
|
32
|
+
export declare function createCallCommentRequest({ baseURL, body, headers, urlParams, }: CreateCallCommentConfig): Promise<CreateCallCommentData>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { Call } from '../../../types';
|
|
3
|
+
declare type SuccessData = {
|
|
4
|
+
success: true;
|
|
5
|
+
data: Call;
|
|
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 FindCallByIdUrlParams = {
|
|
16
|
+
id: number;
|
|
17
|
+
};
|
|
18
|
+
export declare type FindCallByIdHeaders = {
|
|
19
|
+
'x-auth-hc': string;
|
|
20
|
+
};
|
|
21
|
+
export declare type FindCallByIdData = AxiosResponse<ResultData>;
|
|
22
|
+
export declare type FindCallByIdError = AxiosError<ResultError>;
|
|
23
|
+
export declare type FindCallByIdConfig = {
|
|
24
|
+
baseURL?: string;
|
|
25
|
+
urlParams: FindCallByIdUrlParams;
|
|
26
|
+
headers: FindCallByIdHeaders;
|
|
27
|
+
};
|
|
28
|
+
export declare function findCallByIdRequest({ baseURL, urlParams, headers, }: FindCallByIdConfig): Promise<FindCallByIdData>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { Call } from '../../types';
|
|
3
|
+
declare type SuccessData = {
|
|
4
|
+
success: true;
|
|
5
|
+
data: Call;
|
|
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 CallCallTaskHeaders = {
|
|
16
|
+
'x-auth-hc'?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare type CallCallTaskUrlParams = {
|
|
19
|
+
id: number;
|
|
20
|
+
};
|
|
21
|
+
export declare type CallCallTaskData = AxiosResponse<ResultData>;
|
|
22
|
+
export declare type CallCallTaskError = AxiosError<ResultError>;
|
|
23
|
+
export declare type CallCallTaskConfig = {
|
|
24
|
+
baseURL?: string;
|
|
25
|
+
headers?: CallCallTaskHeaders;
|
|
26
|
+
urlParams: CallCallTaskUrlParams;
|
|
27
|
+
};
|
|
28
|
+
export declare function callCallTaskRequest({ baseURL, urlParams, headers, }: CallCallTaskConfig): Promise<CallCallTaskData>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { CallTask } from '../../types';
|
|
3
|
+
declare type SuccessData = {
|
|
4
|
+
success: true;
|
|
5
|
+
data: CallTask;
|
|
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 CloseCallTaskHeaders = {
|
|
16
|
+
'x-auth-hc'?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare type CloseCallTaskUrlParams = {
|
|
19
|
+
id: number;
|
|
20
|
+
};
|
|
21
|
+
export declare type CloseCallTaskBody = {
|
|
22
|
+
tags?: string[];
|
|
23
|
+
closingReason?: string;
|
|
24
|
+
comment?: string;
|
|
25
|
+
};
|
|
26
|
+
export declare type CloseCallTaskData = AxiosResponse<ResultData>;
|
|
27
|
+
export declare type CloseCallTaskError = AxiosError<ResultError>;
|
|
28
|
+
export declare type CloseCallTaskConfig = {
|
|
29
|
+
baseURL?: string;
|
|
30
|
+
headers?: CloseCallTaskHeaders;
|
|
31
|
+
urlParams: CloseCallTaskUrlParams;
|
|
32
|
+
body: CloseCallTaskBody;
|
|
33
|
+
};
|
|
34
|
+
export declare function closeCallTaskRequest({ baseURL, urlParams, headers, body, }: CloseCallTaskConfig): Promise<CloseCallTaskData>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { Call } from '../../types';
|
|
3
|
+
declare type ResultData = {
|
|
4
|
+
ids: number[];
|
|
5
|
+
byId: Record<string, Call>;
|
|
6
|
+
meta: {
|
|
7
|
+
total: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
declare type ResultError = string;
|
|
11
|
+
export declare type FindCallQualityAssessorsHeaders = {
|
|
12
|
+
'x-auth-hc': string;
|
|
13
|
+
};
|
|
14
|
+
export declare type FindCallQualityAssessorsParams = {
|
|
15
|
+
filter?: {
|
|
16
|
+
'to.number'?: string;
|
|
17
|
+
};
|
|
18
|
+
limits?: {
|
|
19
|
+
page?: number;
|
|
20
|
+
count: number | 'all';
|
|
21
|
+
};
|
|
22
|
+
sorting?: {
|
|
23
|
+
direction: 'asc' | 'desc';
|
|
24
|
+
type: 'createdAt';
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare type FindCallQualityAssessorsData = AxiosResponse<ResultData>;
|
|
28
|
+
export declare type FindCallQualityAssessorsError = AxiosError<ResultError>;
|
|
29
|
+
export declare type FindCallQualityAssessorsConfig = {
|
|
30
|
+
baseURL?: string;
|
|
31
|
+
headers: FindCallQualityAssessorsHeaders;
|
|
32
|
+
params: FindCallQualityAssessorsParams;
|
|
33
|
+
};
|
|
34
|
+
export declare function findCallQualityAssessorsRequest({ baseURL, headers, params, }: FindCallQualityAssessorsConfig): Promise<FindCallQualityAssessorsData>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { CallTask } from '../../types';
|
|
3
|
+
declare type SuccessData = {
|
|
4
|
+
success: true;
|
|
5
|
+
data: CallTask;
|
|
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 FindCallTaskByIdUrlParams = {
|
|
16
|
+
id: number;
|
|
17
|
+
};
|
|
18
|
+
export declare type FindCallTaskByIdHeaders = {
|
|
19
|
+
'x-auth-hc': string;
|
|
20
|
+
};
|
|
21
|
+
export declare type FindCallTaskByIdData = AxiosResponse<ResultData>;
|
|
22
|
+
export declare type FindCallTaskByIdError = AxiosError<ResultError>;
|
|
23
|
+
export declare type FindCallTaskByIdConfig = {
|
|
24
|
+
baseURL?: string;
|
|
25
|
+
urlParams: FindCallTaskByIdUrlParams;
|
|
26
|
+
headers: FindCallTaskByIdHeaders;
|
|
27
|
+
};
|
|
28
|
+
export declare function findCallTaskByIdRequest({ baseURL, urlParams, headers, }: FindCallTaskByIdConfig): Promise<FindCallTaskByIdData>;
|
|
29
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
-
import { CallTask, CallTaskStatus } from '../../types';
|
|
2
|
+
import { CallTask, CallTaskStatus, CallTaskTriggeredByEvent } from '../../types';
|
|
3
3
|
declare type Data = Partial<CallTask> & Required<Pick<CallTask, 'id' | 'status' | 'createdAt'>>;
|
|
4
4
|
declare type ResultData = {
|
|
5
5
|
ids: number[];
|
|
@@ -14,11 +14,17 @@ export declare type FindCallTasksHeaders = {
|
|
|
14
14
|
};
|
|
15
15
|
export declare type FindCallTasksParams = {
|
|
16
16
|
filter?: {
|
|
17
|
-
'serviceRequest.
|
|
18
|
-
|
|
17
|
+
'serviceRequest.id'?: string;
|
|
18
|
+
createdAt?: string | {
|
|
19
|
+
from: string;
|
|
20
|
+
to: string;
|
|
21
|
+
};
|
|
22
|
+
hasAccessTags?: string[];
|
|
23
|
+
hasNoAccessTags?: string[];
|
|
19
24
|
id?: number | number[];
|
|
20
25
|
qualityAssurance?: boolean;
|
|
21
26
|
status?: CallTaskStatus | CallTaskStatus[];
|
|
27
|
+
triggeredByEvent?: CallTaskTriggeredByEvent;
|
|
22
28
|
};
|
|
23
29
|
limits?: {
|
|
24
30
|
page?: number;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { CallTask } from '../../types';
|
|
3
|
+
declare type ResultData = CallTask;
|
|
4
|
+
declare type ResultError = string;
|
|
5
|
+
export declare type UpdateCallTaskHeaders = {
|
|
6
|
+
'x-auth-hc'?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type UpdateCallTaskUrlParams = {
|
|
9
|
+
id: number;
|
|
10
|
+
};
|
|
11
|
+
export declare type UpdateCallTaskBody = Partial<CallTask> & {
|
|
12
|
+
comment?: string;
|
|
13
|
+
actualAt?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare type UpdateCallTaskData = AxiosResponse<ResultData>;
|
|
16
|
+
export declare type UpdateCallTaskError = AxiosError<ResultError>;
|
|
17
|
+
export declare type UpdateCallTaskConfig = {
|
|
18
|
+
baseURL?: string;
|
|
19
|
+
headers?: UpdateCallTaskHeaders;
|
|
20
|
+
body: UpdateCallTaskBody;
|
|
21
|
+
urlParams: UpdateCallTaskUrlParams;
|
|
22
|
+
};
|
|
23
|
+
export declare function updateCallTaskRequest({ baseURL, urlParams, body, headers, }: UpdateCallTaskConfig): Promise<UpdateCallTaskData>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { Comment } from '../../../types';
|
|
3
|
+
declare type ErrorData = {
|
|
4
|
+
success: false;
|
|
5
|
+
data: {
|
|
6
|
+
error: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare type ResultData = {
|
|
10
|
+
ids: number[];
|
|
11
|
+
byId: Record<string, Comment>;
|
|
12
|
+
meta: {
|
|
13
|
+
total: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
declare type ResultError = ErrorData['data']['error'];
|
|
17
|
+
export declare type FindCommentsParams = {
|
|
18
|
+
filter?: {
|
|
19
|
+
'call.id'?: string;
|
|
20
|
+
};
|
|
21
|
+
sorting?: {
|
|
22
|
+
type: 'createdAt';
|
|
23
|
+
direction: 'asc' | 'desc';
|
|
24
|
+
};
|
|
25
|
+
limits?: {
|
|
26
|
+
page?: number;
|
|
27
|
+
count?: number | 'all';
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare type FindCommentsHeaders = {
|
|
31
|
+
'x-auth-hc': string;
|
|
32
|
+
};
|
|
33
|
+
export declare type FindCommentsData = AxiosResponse<ResultData>;
|
|
34
|
+
export declare type FindCommentsError = AxiosError<ResultError>;
|
|
35
|
+
export declare type FindCommentsConfig = {
|
|
36
|
+
baseURL?: string;
|
|
37
|
+
params: FindCommentsParams;
|
|
38
|
+
headers: FindCommentsHeaders;
|
|
39
|
+
};
|
|
40
|
+
export declare function findCommentsRequest({ baseURL, headers, params }: FindCommentsConfig): Promise<FindCommentsData>;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
declare type SuccessData = {
|
|
3
|
+
success: true;
|
|
4
|
+
data: {
|
|
5
|
+
month: string;
|
|
6
|
+
count: number;
|
|
7
|
+
commission: number;
|
|
8
|
+
}[];
|
|
9
|
+
};
|
|
10
|
+
declare type ErrorData = {
|
|
11
|
+
success: false;
|
|
12
|
+
data: {
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
declare type ResultData = SuccessData['data'];
|
|
17
|
+
declare type ResultError = ErrorData['data']['error'];
|
|
18
|
+
export declare type FindDealExpertStatisticsParams = {
|
|
19
|
+
filter?: {
|
|
20
|
+
from: string;
|
|
21
|
+
to: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare type FindDealExpertStatisticsUrlParams = {
|
|
25
|
+
id: number;
|
|
26
|
+
};
|
|
27
|
+
export declare type FindDealExpertStatisticsHeaders = {
|
|
28
|
+
'x-auth-hc': string;
|
|
29
|
+
};
|
|
30
|
+
export declare type FindDealExpertStatisticsData = AxiosResponse<ResultData>;
|
|
31
|
+
export declare type FindDealExpertStatisticsError = AxiosError<ResultError>;
|
|
32
|
+
export declare type FindDealExpertStatisticsConfig = {
|
|
33
|
+
baseURL?: string;
|
|
34
|
+
headers: FindDealExpertStatisticsHeaders;
|
|
35
|
+
params: FindDealExpertStatisticsParams;
|
|
36
|
+
urlParams: FindDealExpertStatisticsUrlParams;
|
|
37
|
+
};
|
|
38
|
+
export declare function findDealExpertStatisticsRequest({ baseURL, headers, params, urlParams, }: FindDealExpertStatisticsConfig): Promise<FindDealExpertStatisticsData>;
|
|
39
|
+
export {};
|