@hapl/api-queries 0.2.48 → 0.2.49
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/api-queries.cjs.development.js +7 -2
- 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 +7 -2
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/serviceRequest/{approveCloseServiceRequest/index.d.ts → approveCloseServiceRequest.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{callbackServiceRequest/index.d.ts → callbackServiceRequest.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{closeServiceRequest/index.d.ts → closeServiceRequest.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{createInvestSellServiceRequest/index.d.ts → createInvestSellServiceRequest.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{createServiceRequest/index.d.ts → createServiceRequest.d.ts} +2 -2
- package/dist/clients/v1/api/serviceRequest/{createServiceRequestActivity/index.d.ts → createServiceRequestActivity.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{createServiceRequestByCrossSaleId/index.d.ts → createServiceRequestByCrossSaleId.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{createServiceRequestCategorizedFile/index.d.ts → createServiceRequestCategorizedFile.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{createServiceRequestFeedback/index.d.ts → createServiceRequestFeedback.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{createServiceRequestSellerReport/index.d.ts → createServiceRequestSellerReport.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{depublishServiceRequest/index.d.ts → depublishServiceRequest.d.ts} +3 -2
- package/dist/clients/v1/api/serviceRequest/{disapproveCloseServiceRequest/index.d.ts → disapproveCloseServiceRequest.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{findChatMessageByServiceRequestId/index.d.ts → findChatMessageByServiceRequestId.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{findPriceHistoryAnalyticsById/index.d.ts → findPriceHistoryAnalyticsById.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{findServiceRequestActivities/index.d.ts → findServiceRequestActivities.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{findServiceRequestById/index.d.ts → findServiceRequestById.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{findServiceRequestCategorizedFileCreatedDate/index.d.ts → findServiceRequestCategorizedFileCreatedDate.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{findServiceRequestCategorizedFiles/index.d.ts → findServiceRequestCategorizedFiles.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{findServiceRequestCategoryById/index.d.ts → findServiceRequestCategoryById.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{findServiceRequestDuplicates/index.d.ts → findServiceRequestDuplicates.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{findServiceRequestSellerReports/index.d.ts → findServiceRequestSellerReports.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{findServiceRequestShortInfo/index.d.ts → findServiceRequestShortInfo.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{findServiceRequestShortInfoByDealId/index.d.ts → findServiceRequestShortInfoByDealId.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{findServiceRequestShortInfoById/index.d.ts → findServiceRequestShortInfoById.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{findServiceRequests/index.d.ts → findServiceRequests.d.ts} +1 -1
- package/dist/clients/v1/api/serviceRequest/{updateServiceRequest/index.d.ts → updateServiceRequest.d.ts} +1 -1
- package/dist/clients/v1/dictionaries/ServiceRequest.d.ts +5 -1
- package/dist/clients/v1/types/ServiceRequest.d.ts +6 -1
- package/package.json +1 -1
- package/src/clients/v1/api/serviceRequest/{approveCloseServiceRequest/index.ts → approveCloseServiceRequest.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{callbackServiceRequest/index.ts → callbackServiceRequest.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{closeServiceRequest/index.ts → closeServiceRequest.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{createInvestSellServiceRequest/index.ts → createInvestSellServiceRequest.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{createServiceRequest/index.ts → createServiceRequest.ts} +2 -2
- package/src/clients/v1/api/serviceRequest/{createServiceRequestActivity/index.ts → createServiceRequestActivity.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{createServiceRequestByCrossSaleId/index.ts → createServiceRequestByCrossSaleId.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{createServiceRequestCategorizedFile/index.ts → createServiceRequestCategorizedFile.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{createServiceRequestFeedback/index.ts → createServiceRequestFeedback.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{createServiceRequestSellerReport/index.ts → createServiceRequestSellerReport.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{depublishServiceRequest/index.ts → depublishServiceRequest.ts} +5 -1
- package/src/clients/v1/api/serviceRequest/{disapproveCloseServiceRequest/index.ts → disapproveCloseServiceRequest.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{findChatMessageByServiceRequestId/index.ts → findChatMessageByServiceRequestId.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{findPriceHistoryAnalyticsById/index.ts → findPriceHistoryAnalyticsById.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{findServiceRequestActivities/index.ts → findServiceRequestActivities.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{findServiceRequestById/index.ts → findServiceRequestById.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{findServiceRequestCategorizedFileCreatedDate/index.ts → findServiceRequestCategorizedFileCreatedDate.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{findServiceRequestCategorizedFiles/index.ts → findServiceRequestCategorizedFiles.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{findServiceRequestCategoryById/index.ts → findServiceRequestCategoryById.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{findServiceRequestDuplicates/index.ts → findServiceRequestDuplicates.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{findServiceRequestSellerReports/index.ts → findServiceRequestSellerReports.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{findServiceRequestShortInfo/index.ts → findServiceRequestShortInfo.ts} +1 -6
- package/src/clients/v1/api/serviceRequest/{findServiceRequestShortInfoByDealId/index.ts → findServiceRequestShortInfoByDealId.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{findServiceRequestShortInfoById/index.ts → findServiceRequestShortInfoById.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{findServiceRequests/index.ts → findServiceRequests.ts} +1 -1
- package/src/clients/v1/api/serviceRequest/{updateServiceRequest/index.ts → updateServiceRequest.ts} +1 -1
- package/src/clients/v1/dictionaries/ServiceRequest.ts +7 -1
- package/src/clients/v1/types/ServiceRequest.ts +8 -1
- /package/dist/clients/v1/api/serviceRequest/{completeServiceRequestModeration/index.d.ts → completeServiceRequestModeration.d.ts} +0 -0
- /package/dist/clients/v1/api/serviceRequest/{createServiceRequestReview/index.d.ts → createServiceRequestReview.d.ts} +0 -0
- /package/dist/clients/v1/api/serviceRequest/{deferServiceRequest/index.d.ts → deferServiceRequest.d.ts} +0 -0
- /package/dist/clients/v1/api/serviceRequest/{deleteServiceRequestCategorizedFile/index.d.ts → deleteServiceRequestCategorizedFile.d.ts} +0 -0
- /package/dist/clients/v1/api/serviceRequest/{deleteServiceRequestReportForSeller/index.d.ts → deleteServiceRequestReportForSeller.d.ts} +0 -0
- /package/dist/clients/v1/api/serviceRequest/{findChatsByServiceRequestId/index.d.ts → findChatsByServiceRequestId.d.ts} +0 -0
- /package/dist/clients/v1/api/serviceRequest/{findServiceRequestDiscountEfficiencyPercent/index.d.ts → findServiceRequestDiscountEfficiencyPercent.d.ts} +0 -0
- /package/dist/clients/v1/api/serviceRequest/{findServiceRequestStatisticsById/index.d.ts → findServiceRequestStatisticsById.d.ts} +0 -0
- /package/dist/clients/v1/api/serviceRequest/{publishServiceRequest/index.d.ts → publishServiceRequest.d.ts} +0 -0
- /package/dist/clients/v1/api/serviceRequest/{restoreServiceRequest/index.d.ts → restoreServiceRequest.d.ts} +0 -0
- /package/dist/clients/v1/api/serviceRequest/{returnDeferredServiceRequest/index.d.ts → returnDeferredServiceRequest.d.ts} +0 -0
- /package/dist/clients/v1/api/serviceRequest/{sendServiceRequestToModeration/index.d.ts → sendServiceRequestToModeration.d.ts} +0 -0
- /package/dist/clients/v1/api/serviceRequest/{startServiceRequestModeration/index.d.ts → startServiceRequestModeration.d.ts} +0 -0
- /package/dist/clients/v1/api/serviceRequest/{startServiceRequestModerationForOldRealty/index.d.ts → startServiceRequestModerationForOldRealty.d.ts} +0 -0
- /package/dist/clients/v1/api/serviceRequest/{transferServiceRequest/index.d.ts → transferServiceRequest.d.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{completeServiceRequestModeration/index.ts → completeServiceRequestModeration.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{createServiceRequestReview/index.ts → createServiceRequestReview.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{deferServiceRequest/index.ts → deferServiceRequest.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{deleteServiceRequestCategorizedFile/index.ts → deleteServiceRequestCategorizedFile.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{deleteServiceRequestReportForSeller/index.ts → deleteServiceRequestReportForSeller.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{findChatsByServiceRequestId/index.ts → findChatsByServiceRequestId.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{findServiceRequestDiscountEfficiencyPercent/index.tsx → findServiceRequestDiscountEfficiencyPercent.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{findServiceRequestStatisticsById/index.ts → findServiceRequestStatisticsById.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{publishServiceRequest/index.ts → publishServiceRequest.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{restoreServiceRequest/index.ts → restoreServiceRequest.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{returnDeferredServiceRequest/index.ts → returnDeferredServiceRequest.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{sendServiceRequestToModeration/index.ts → sendServiceRequestToModeration.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{startServiceRequestModeration/index.ts → startServiceRequestModeration.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{startServiceRequestModerationForOldRealty/index.ts → startServiceRequestModerationForOldRealty.ts} +0 -0
- /package/src/clients/v1/api/serviceRequest/{transferServiceRequest/index.ts → transferServiceRequest.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
-
import { ServiceRequest, ServiceRequestCategorizedFileCategory } from '
|
|
2
|
+
import { ServiceRequest, ServiceRequestCategorizedFileCategory } from '../../types';
|
|
3
3
|
declare type SuccessData = {
|
|
4
4
|
success: true;
|
|
5
5
|
data: Partial<ServiceRequest> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
-
import { CallTask, ServiceRequest, Task, User } from '
|
|
3
|
-
import { RealtyType } from '
|
|
2
|
+
import { CallTask, ServiceRequest, Task, User } from '../../types';
|
|
3
|
+
import { RealtyType } from '../../../v2/types';
|
|
4
4
|
declare type ErrorData = {
|
|
5
5
|
success: false;
|
|
6
6
|
data: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
-
import { ServiceRequestActivity, ServiceRequestActivityType } from '
|
|
2
|
+
import { ServiceRequestActivity, ServiceRequestActivityType } from '../../types';
|
|
3
3
|
declare type SuccessData = {
|
|
4
4
|
success: true;
|
|
5
5
|
data: ServiceRequestActivity;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
-
import { ServiceRequestCategorizedFile, ServiceRequestCategorizedFileCategory } from '
|
|
2
|
+
import { ServiceRequestCategorizedFile, ServiceRequestCategorizedFileCategory } from '../../types';
|
|
3
3
|
declare type SuccessData = {
|
|
4
4
|
success: true;
|
|
5
5
|
data: ServiceRequestCategorizedFile;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { ServiceRequest } from '../../types';
|
|
2
3
|
declare type ErrorData = {
|
|
3
4
|
success: false;
|
|
4
5
|
data: {
|
|
@@ -14,8 +15,8 @@ export declare type DepublishServiceRequestUrlParams = {
|
|
|
14
15
|
id: number;
|
|
15
16
|
};
|
|
16
17
|
export declare type DepublishServiceRequestBody = {
|
|
17
|
-
depublishReason:
|
|
18
|
-
|
|
18
|
+
depublishReason: NonNullable<ServiceRequest['depublishReason']>;
|
|
19
|
+
depublishComment?: NonNullable<ServiceRequest['depublishComment']>;
|
|
19
20
|
};
|
|
20
21
|
export declare type DepublishServiceRequestData = AxiosResponse<ResultData>;
|
|
21
22
|
export declare type DepublishServiceRequestError = AxiosError<ResultError>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
-
import { ServiceRequestActivity, ServiceRequestActivityType } from '
|
|
2
|
+
import { ServiceRequestActivity, ServiceRequestActivityType } from '../../types';
|
|
3
3
|
declare type ResultData = {
|
|
4
4
|
ids: number[];
|
|
5
5
|
byId: Record<string, ServiceRequestActivity>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
-
import { DealCategorizedFileCategory, ServiceRequestCategorizedFileCategory } from '
|
|
2
|
+
import { DealCategorizedFileCategory, ServiceRequestCategorizedFileCategory } from '../../types';
|
|
3
3
|
declare type SuccessData = {
|
|
4
4
|
success: true;
|
|
5
5
|
data: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
-
import { ServiceRequestCategorizedFile } from '
|
|
2
|
+
import { ServiceRequestCategorizedFile } from '../../types';
|
|
3
3
|
declare type ResultData = {
|
|
4
4
|
ids: number[];
|
|
5
5
|
byId: Record<string, ServiceRequestCategorizedFile>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
-
import { ServiceRequestCategory, ServiceRequestShortInfo, ServiceRequestStatus, ServiceRequestType } from '
|
|
2
|
+
import { ServiceRequestCategory, ServiceRequestShortInfo, ServiceRequestStatus, ServiceRequestType } from '../../types';
|
|
3
3
|
declare type ErrorData = {
|
|
4
4
|
success: false;
|
|
5
5
|
data: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
-
import { ServiceRequest, Realty, User } from '
|
|
2
|
+
import { ServiceRequest, Realty, User } from '../../types';
|
|
3
3
|
declare type SuccessData = {
|
|
4
4
|
success: true;
|
|
5
5
|
data: Pick<ServiceRequest, 'id' | 'curator' | 'publicationTestPeriodDays' | 'realtyExtId'> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
-
import { ServiceRequest, Realty, User } from '
|
|
2
|
+
import { ServiceRequest, Realty, User } from '../../types';
|
|
3
3
|
declare type SuccessData = {
|
|
4
4
|
success: true;
|
|
5
5
|
data: Pick<ServiceRequest, 'curator' | 'publicationTestPeriodDays' | 'realtyExtId'> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
-
import { ServiceRequest, ServiceRequestCategory, ServiceRequestStatus, ServiceRequestType } from '
|
|
2
|
+
import { ServiceRequest, ServiceRequestCategory, ServiceRequestStatus, ServiceRequestType } from '../../types';
|
|
3
3
|
declare type ErrorData = {
|
|
4
4
|
success: false;
|
|
5
5
|
data: {
|
|
@@ -41,12 +41,16 @@ export declare const ServiceRequestDictionary: {
|
|
|
41
41
|
};
|
|
42
42
|
DepublishReason: {
|
|
43
43
|
temporary_depublish: string;
|
|
44
|
+
forever_depublish: string;
|
|
45
|
+
hard_to_sell_object: string;
|
|
46
|
+
sold_listing: string;
|
|
47
|
+
sold_by_owner: string;
|
|
48
|
+
other: string;
|
|
44
49
|
depublish_on_advance: string;
|
|
45
50
|
client_request: string;
|
|
46
51
|
developer_request: string;
|
|
47
52
|
bad_object: string;
|
|
48
53
|
bad_object_elite: string;
|
|
49
|
-
hard_to_sell_object: string;
|
|
50
54
|
cross_sell: string;
|
|
51
55
|
};
|
|
52
56
|
Source: {
|
|
@@ -46,12 +46,16 @@ export declare enum ServiceRequestInvestType {
|
|
|
46
46
|
}
|
|
47
47
|
export declare enum ServiceRequestDepublishReason {
|
|
48
48
|
TemporaryDepublish = "temporary_depublish",
|
|
49
|
+
ForeverDepublish = "forever_depublish",
|
|
50
|
+
HardToSellObject = "hard_to_sell_object",
|
|
51
|
+
SoldListing = "sold_listing",
|
|
52
|
+
SoldByOwner = "sold_by_owner",
|
|
53
|
+
Other = "other",
|
|
49
54
|
DepublishOnAdvance = "depublish_on_advance",
|
|
50
55
|
ClientRequest = "client_request",
|
|
51
56
|
DeveloperRequest = "developer_request",
|
|
52
57
|
BadObject = "bad_object",
|
|
53
58
|
BadObjectElite = "bad_object_elite",
|
|
54
|
-
HardToSellObject = "hard_to_sell_object",
|
|
55
59
|
CrossSell = "cross_sell"
|
|
56
60
|
}
|
|
57
61
|
export declare enum ServiceRequestSource {
|
|
@@ -114,6 +118,7 @@ export declare type ServiceRequest = {
|
|
|
114
118
|
id: number;
|
|
115
119
|
};
|
|
116
120
|
currentScore?: number;
|
|
121
|
+
depublishComment?: string;
|
|
117
122
|
depublishReason?: ServiceRequestDepublishReason;
|
|
118
123
|
description?: string;
|
|
119
124
|
discountedAt?: string;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { ServiceRequest } from '
|
|
2
|
+
import { ServiceRequest } from '../../types';
|
|
3
3
|
|
|
4
4
|
type SuccessData = { success: true; data: Partial<ServiceRequest> & Required<Pick<ServiceRequest, 'id'>> };
|
|
5
5
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { Call } from '
|
|
2
|
+
import { Call } from '../../types';
|
|
3
3
|
|
|
4
4
|
type SuccessData = { success: true; data: Partial<Call> & Required<Pick<Call, 'id'>> };
|
|
5
5
|
type ErrorData = { success: false; data: { error: string } };
|
package/src/clients/v1/api/serviceRequest/{closeServiceRequest/index.ts → closeServiceRequest.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { ServiceRequest, ServiceRequestCategorizedFileCategory } from '
|
|
2
|
+
import { ServiceRequest, ServiceRequestCategorizedFileCategory } from '../../types';
|
|
3
3
|
|
|
4
4
|
type SuccessData = { success: true; data: Partial<ServiceRequest> & { id: number } };
|
|
5
5
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { ServiceRequest } from '
|
|
2
|
+
import { ServiceRequest } from '../../types';
|
|
3
3
|
|
|
4
4
|
type SuccessData = { success: true; data: Partial<ServiceRequest> & { id: number } };
|
|
5
5
|
type ErrorData = { success: false; data: { error: string } };
|
package/src/clients/v1/api/serviceRequest/{createServiceRequest/index.ts → createServiceRequest.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { CallTask, ServiceRequest, Task, User } from '
|
|
3
|
-
import { RealtyType } from '
|
|
2
|
+
import { CallTask, ServiceRequest, Task, User } from '../../types';
|
|
3
|
+
import { RealtyType } from '../../../v2/types';
|
|
4
4
|
|
|
5
5
|
type SuccessData = { success: true; data: ServiceRequest };
|
|
6
6
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { ServiceRequestActivity, ServiceRequestActivityType } from '
|
|
2
|
+
import { ServiceRequestActivity, ServiceRequestActivityType } from '../../types';
|
|
3
3
|
|
|
4
4
|
type SuccessData = { success: true; data: ServiceRequestActivity };
|
|
5
5
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { ServiceRequest } from '
|
|
2
|
+
import { ServiceRequest } from '../../types';
|
|
3
3
|
|
|
4
4
|
type SuccessData = { success: true; data: ServiceRequest };
|
|
5
5
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { ServiceRequestCategorizedFile, ServiceRequestCategorizedFileCategory } from '
|
|
2
|
+
import { ServiceRequestCategorizedFile, ServiceRequestCategorizedFileCategory } from '../../types';
|
|
3
3
|
|
|
4
4
|
type SuccessData = { success: true; data: ServiceRequestCategorizedFile };
|
|
5
5
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { ServiceRequestFeedbackCategory } from '
|
|
2
|
+
import { ServiceRequestFeedbackCategory } from '../../types';
|
|
3
3
|
|
|
4
4
|
type SuccessData = { success: true };
|
|
5
5
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { ServiceRequestSellerReport } from '
|
|
2
|
+
import { ServiceRequestSellerReport } from '../../types';
|
|
3
3
|
|
|
4
4
|
type SuccessData = { success: true; data: ServiceRequestSellerReport };
|
|
5
5
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
+
import { ServiceRequest } from '../../types';
|
|
2
3
|
|
|
3
4
|
type SuccessData = { success: true };
|
|
4
5
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -8,7 +9,10 @@ type ResultError = ErrorData['data']['error'];
|
|
|
8
9
|
|
|
9
10
|
export type DepublishServiceRequestHeaders = { 'x-auth-hc': string };
|
|
10
11
|
export type DepublishServiceRequestUrlParams = { id: number };
|
|
11
|
-
export type DepublishServiceRequestBody = {
|
|
12
|
+
export type DepublishServiceRequestBody = {
|
|
13
|
+
depublishReason: NonNullable<ServiceRequest['depublishReason']>;
|
|
14
|
+
depublishComment?: NonNullable<ServiceRequest['depublishComment']>;
|
|
15
|
+
};
|
|
12
16
|
export type DepublishServiceRequestData = AxiosResponse<ResultData>;
|
|
13
17
|
export type DepublishServiceRequestError = AxiosError<ResultError>;
|
|
14
18
|
export type DepublishServiceRequestConfig = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { ServiceRequest } from '
|
|
2
|
+
import { ServiceRequest } from '../../types';
|
|
3
3
|
|
|
4
4
|
type SuccessData = { success: true; data: Partial<ServiceRequest> & Required<Pick<ServiceRequest, 'id'>> };
|
|
5
5
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
2
|
import qs from 'qs';
|
|
3
|
-
import { Message } from '
|
|
3
|
+
import { Message } from '../../types';
|
|
4
4
|
|
|
5
5
|
type SuccessData = { success: true; data: Message[]; pageParams: { page: number; length: number } };
|
|
6
6
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
2
|
import { nanoid } from 'nanoid';
|
|
3
|
-
import { PriceHistoryAnalytics } from '
|
|
3
|
+
import { PriceHistoryAnalytics } from '../../types';
|
|
4
4
|
|
|
5
5
|
type SuccessData = { success: true; data: PriceHistoryAnalytics[] };
|
|
6
6
|
type ErrorData = { success: false; data: Record<'error' | 'message', string> };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
2
|
import qs from 'qs';
|
|
3
|
-
import { ServiceRequestActivity, ServiceRequestActivityType } from '
|
|
3
|
+
import { ServiceRequestActivity, ServiceRequestActivityType } from '../../types';
|
|
4
4
|
|
|
5
5
|
type SuccessData = { success: true; data: ServiceRequestActivity[]; pageParams: { page: number; length: number } };
|
|
6
6
|
type ErrorData = { success: false; data: Record<'error' | 'message', string> };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { ServiceRequest } from '
|
|
2
|
+
import { ServiceRequest } from '../../types';
|
|
3
3
|
|
|
4
4
|
type SuccessData = { success: true; data: ServiceRequest };
|
|
5
5
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { DealCategorizedFileCategory, ServiceRequestCategorizedFileCategory } from '
|
|
2
|
+
import { DealCategorizedFileCategory, ServiceRequestCategorizedFileCategory } from '../../types';
|
|
3
3
|
|
|
4
4
|
type SuccessData = { success: true; data: string };
|
|
5
5
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
2
|
import qs from 'qs';
|
|
3
|
-
import { ServiceRequestCategorizedFile } from '
|
|
3
|
+
import { ServiceRequestCategorizedFile } from '../../types';
|
|
4
4
|
|
|
5
5
|
type SuccessData = {
|
|
6
6
|
success: true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
2
|
import qs from 'qs';
|
|
3
|
-
import { ServiceRequestCategory } from '
|
|
3
|
+
import { ServiceRequestCategory } from '../../types';
|
|
4
4
|
|
|
5
5
|
type SuccessData = { success: true; data: { category: ServiceRequestCategory; movedAt: string }[] };
|
|
6
6
|
type ErrorData = { success: false; data: Record<'error' | 'message', string> };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { ServiceRequest, Realty, User } from '
|
|
2
|
+
import { ServiceRequest, Realty, User } from '../../types';
|
|
3
3
|
|
|
4
4
|
type SuccessData = { success: true; data: Array<Partial<ServiceRequest> & { id: number }> };
|
|
5
5
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { ServiceRequestSellerReport } from '
|
|
2
|
+
import { ServiceRequestSellerReport } from '../../types';
|
|
3
3
|
import qs from 'qs';
|
|
4
4
|
|
|
5
5
|
type SuccessData = { success: true; data: ServiceRequestSellerReport[]; pageParams: { page: number; length: number } };
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
2
|
import qs from 'qs';
|
|
3
|
-
import {
|
|
4
|
-
ServiceRequestCategory,
|
|
5
|
-
ServiceRequestShortInfo,
|
|
6
|
-
ServiceRequestStatus,
|
|
7
|
-
ServiceRequestType,
|
|
8
|
-
} from '../../../types';
|
|
3
|
+
import { ServiceRequestCategory, ServiceRequestShortInfo, ServiceRequestStatus, ServiceRequestType } from '../../types';
|
|
9
4
|
|
|
10
5
|
type SuccessData = { success: true; data: ServiceRequestShortInfo[]; pageParams: { page: number; length: number } };
|
|
11
6
|
type ErrorData = { success: false; data: { error: string } };
|
package/src/clients/v1/api/serviceRequest/{findServiceRequests/index.ts → findServiceRequests.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
2
|
import qs from 'qs';
|
|
3
|
-
import { ServiceRequest, ServiceRequestCategory, ServiceRequestStatus, ServiceRequestType } from '
|
|
3
|
+
import { ServiceRequest, ServiceRequestCategory, ServiceRequestStatus, ServiceRequestType } from '../../types';
|
|
4
4
|
|
|
5
5
|
type SuccessData = { success: true; data: ServiceRequest[]; pageParams: { page: number; length: number } };
|
|
6
6
|
type ErrorData = { success: false; data: { error: string } };
|
package/src/clients/v1/api/serviceRequest/{updateServiceRequest/index.ts → updateServiceRequest.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
-
import { ServiceRequest, RealtyType, File } from '
|
|
2
|
+
import { ServiceRequest, RealtyType, File } from '../../types';
|
|
3
3
|
|
|
4
4
|
type SuccessData = { success: true; data: ServiceRequest };
|
|
5
5
|
type ErrorData = { success: false; data: { error: string } };
|
|
@@ -50,12 +50,18 @@ export const ServiceRequestDictionary = {
|
|
|
50
50
|
},
|
|
51
51
|
DepublishReason: {
|
|
52
52
|
[ServiceRequestDepublishReason.TemporaryDepublish]: 'Временное снятие объекта',
|
|
53
|
+
[ServiceRequestDepublishReason.ForeverDepublish]: 'Снятие объекта навсегда',
|
|
54
|
+
[ServiceRequestDepublishReason.HardToSellObject]: '“Сложный“ в реализации объект',
|
|
55
|
+
[ServiceRequestDepublishReason.SoldListing]: 'Продан листинг',
|
|
56
|
+
[ServiceRequestDepublishReason.SoldByOwner]: 'Продан собственником самостоятельно',
|
|
57
|
+
[ServiceRequestDepublishReason.Other]: 'Другое',
|
|
58
|
+
|
|
59
|
+
// легаси значения, которые больше не используются, но оставлены для обратной совместимости
|
|
53
60
|
[ServiceRequestDepublishReason.DepublishOnAdvance]: 'Снятие объекта на время аванса',
|
|
54
61
|
[ServiceRequestDepublishReason.ClientRequest]: 'Просьба клиента убрать объект из рекламы',
|
|
55
62
|
[ServiceRequestDepublishReason.DeveloperRequest]: 'Запрет застройщика на размещение рекламы',
|
|
56
63
|
[ServiceRequestDepublishReason.BadObject]: 'Неликвидный объект, требуется работа с клиентом',
|
|
57
64
|
[ServiceRequestDepublishReason.BadObjectElite]: 'Неликвидный элитный объект',
|
|
58
|
-
[ServiceRequestDepublishReason.HardToSellObject]: '“Сложный“ в реализации объект',
|
|
59
65
|
[ServiceRequestDepublishReason.CrossSell]: 'Кросспродажи',
|
|
60
66
|
},
|
|
61
67
|
Source: {
|
|
@@ -52,12 +52,18 @@ export enum ServiceRequestInvestType {
|
|
|
52
52
|
|
|
53
53
|
export enum ServiceRequestDepublishReason {
|
|
54
54
|
TemporaryDepublish = 'temporary_depublish',
|
|
55
|
+
ForeverDepublish = 'forever_depublish',
|
|
56
|
+
HardToSellObject = 'hard_to_sell_object',
|
|
57
|
+
SoldListing = 'sold_listing',
|
|
58
|
+
SoldByOwner = 'sold_by_owner',
|
|
59
|
+
Other = 'other',
|
|
60
|
+
|
|
61
|
+
// легаси значения, которые больше не используются, но оставлены для обратной совместимости
|
|
55
62
|
DepublishOnAdvance = 'depublish_on_advance',
|
|
56
63
|
ClientRequest = 'client_request',
|
|
57
64
|
DeveloperRequest = 'developer_request',
|
|
58
65
|
BadObject = 'bad_object',
|
|
59
66
|
BadObjectElite = 'bad_object_elite',
|
|
60
|
-
HardToSellObject = 'hard_to_sell_object',
|
|
61
67
|
CrossSell = 'cross_sell',
|
|
62
68
|
}
|
|
63
69
|
|
|
@@ -112,6 +118,7 @@ export type ServiceRequest = {
|
|
|
112
118
|
closingReason?: string;
|
|
113
119
|
contract?: Partial<Contract> & { id: number };
|
|
114
120
|
currentScore?: number;
|
|
121
|
+
depublishComment?: string;
|
|
115
122
|
depublishReason?: ServiceRequestDepublishReason;
|
|
116
123
|
description?: string;
|
|
117
124
|
discountedAt?: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|