@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.
Files changed (93) hide show
  1. package/dist/api-queries.cjs.development.js +7 -2
  2. package/dist/api-queries.cjs.development.js.map +1 -1
  3. package/dist/api-queries.cjs.production.min.js +1 -1
  4. package/dist/api-queries.cjs.production.min.js.map +1 -1
  5. package/dist/api-queries.esm.js +7 -2
  6. package/dist/api-queries.esm.js.map +1 -1
  7. package/dist/clients/v1/api/serviceRequest/{approveCloseServiceRequest/index.d.ts → approveCloseServiceRequest.d.ts} +1 -1
  8. package/dist/clients/v1/api/serviceRequest/{callbackServiceRequest/index.d.ts → callbackServiceRequest.d.ts} +1 -1
  9. package/dist/clients/v1/api/serviceRequest/{closeServiceRequest/index.d.ts → closeServiceRequest.d.ts} +1 -1
  10. package/dist/clients/v1/api/serviceRequest/{createInvestSellServiceRequest/index.d.ts → createInvestSellServiceRequest.d.ts} +1 -1
  11. package/dist/clients/v1/api/serviceRequest/{createServiceRequest/index.d.ts → createServiceRequest.d.ts} +2 -2
  12. package/dist/clients/v1/api/serviceRequest/{createServiceRequestActivity/index.d.ts → createServiceRequestActivity.d.ts} +1 -1
  13. package/dist/clients/v1/api/serviceRequest/{createServiceRequestByCrossSaleId/index.d.ts → createServiceRequestByCrossSaleId.d.ts} +1 -1
  14. package/dist/clients/v1/api/serviceRequest/{createServiceRequestCategorizedFile/index.d.ts → createServiceRequestCategorizedFile.d.ts} +1 -1
  15. package/dist/clients/v1/api/serviceRequest/{createServiceRequestFeedback/index.d.ts → createServiceRequestFeedback.d.ts} +1 -1
  16. package/dist/clients/v1/api/serviceRequest/{createServiceRequestSellerReport/index.d.ts → createServiceRequestSellerReport.d.ts} +1 -1
  17. package/dist/clients/v1/api/serviceRequest/{depublishServiceRequest/index.d.ts → depublishServiceRequest.d.ts} +3 -2
  18. package/dist/clients/v1/api/serviceRequest/{disapproveCloseServiceRequest/index.d.ts → disapproveCloseServiceRequest.d.ts} +1 -1
  19. package/dist/clients/v1/api/serviceRequest/{findChatMessageByServiceRequestId/index.d.ts → findChatMessageByServiceRequestId.d.ts} +1 -1
  20. package/dist/clients/v1/api/serviceRequest/{findPriceHistoryAnalyticsById/index.d.ts → findPriceHistoryAnalyticsById.d.ts} +1 -1
  21. package/dist/clients/v1/api/serviceRequest/{findServiceRequestActivities/index.d.ts → findServiceRequestActivities.d.ts} +1 -1
  22. package/dist/clients/v1/api/serviceRequest/{findServiceRequestById/index.d.ts → findServiceRequestById.d.ts} +1 -1
  23. package/dist/clients/v1/api/serviceRequest/{findServiceRequestCategorizedFileCreatedDate/index.d.ts → findServiceRequestCategorizedFileCreatedDate.d.ts} +1 -1
  24. package/dist/clients/v1/api/serviceRequest/{findServiceRequestCategorizedFiles/index.d.ts → findServiceRequestCategorizedFiles.d.ts} +1 -1
  25. package/dist/clients/v1/api/serviceRequest/{findServiceRequestCategoryById/index.d.ts → findServiceRequestCategoryById.d.ts} +1 -1
  26. package/dist/clients/v1/api/serviceRequest/{findServiceRequestDuplicates/index.d.ts → findServiceRequestDuplicates.d.ts} +1 -1
  27. package/dist/clients/v1/api/serviceRequest/{findServiceRequestSellerReports/index.d.ts → findServiceRequestSellerReports.d.ts} +1 -1
  28. package/dist/clients/v1/api/serviceRequest/{findServiceRequestShortInfo/index.d.ts → findServiceRequestShortInfo.d.ts} +1 -1
  29. package/dist/clients/v1/api/serviceRequest/{findServiceRequestShortInfoByDealId/index.d.ts → findServiceRequestShortInfoByDealId.d.ts} +1 -1
  30. package/dist/clients/v1/api/serviceRequest/{findServiceRequestShortInfoById/index.d.ts → findServiceRequestShortInfoById.d.ts} +1 -1
  31. package/dist/clients/v1/api/serviceRequest/{findServiceRequests/index.d.ts → findServiceRequests.d.ts} +1 -1
  32. package/dist/clients/v1/api/serviceRequest/{updateServiceRequest/index.d.ts → updateServiceRequest.d.ts} +1 -1
  33. package/dist/clients/v1/dictionaries/ServiceRequest.d.ts +5 -1
  34. package/dist/clients/v1/types/ServiceRequest.d.ts +6 -1
  35. package/package.json +1 -1
  36. package/src/clients/v1/api/serviceRequest/{approveCloseServiceRequest/index.ts → approveCloseServiceRequest.ts} +1 -1
  37. package/src/clients/v1/api/serviceRequest/{callbackServiceRequest/index.ts → callbackServiceRequest.ts} +1 -1
  38. package/src/clients/v1/api/serviceRequest/{closeServiceRequest/index.ts → closeServiceRequest.ts} +1 -1
  39. package/src/clients/v1/api/serviceRequest/{createInvestSellServiceRequest/index.ts → createInvestSellServiceRequest.ts} +1 -1
  40. package/src/clients/v1/api/serviceRequest/{createServiceRequest/index.ts → createServiceRequest.ts} +2 -2
  41. package/src/clients/v1/api/serviceRequest/{createServiceRequestActivity/index.ts → createServiceRequestActivity.ts} +1 -1
  42. package/src/clients/v1/api/serviceRequest/{createServiceRequestByCrossSaleId/index.ts → createServiceRequestByCrossSaleId.ts} +1 -1
  43. package/src/clients/v1/api/serviceRequest/{createServiceRequestCategorizedFile/index.ts → createServiceRequestCategorizedFile.ts} +1 -1
  44. package/src/clients/v1/api/serviceRequest/{createServiceRequestFeedback/index.ts → createServiceRequestFeedback.ts} +1 -1
  45. package/src/clients/v1/api/serviceRequest/{createServiceRequestSellerReport/index.ts → createServiceRequestSellerReport.ts} +1 -1
  46. package/src/clients/v1/api/serviceRequest/{depublishServiceRequest/index.ts → depublishServiceRequest.ts} +5 -1
  47. package/src/clients/v1/api/serviceRequest/{disapproveCloseServiceRequest/index.ts → disapproveCloseServiceRequest.ts} +1 -1
  48. package/src/clients/v1/api/serviceRequest/{findChatMessageByServiceRequestId/index.ts → findChatMessageByServiceRequestId.ts} +1 -1
  49. package/src/clients/v1/api/serviceRequest/{findPriceHistoryAnalyticsById/index.ts → findPriceHistoryAnalyticsById.ts} +1 -1
  50. package/src/clients/v1/api/serviceRequest/{findServiceRequestActivities/index.ts → findServiceRequestActivities.ts} +1 -1
  51. package/src/clients/v1/api/serviceRequest/{findServiceRequestById/index.ts → findServiceRequestById.ts} +1 -1
  52. package/src/clients/v1/api/serviceRequest/{findServiceRequestCategorizedFileCreatedDate/index.ts → findServiceRequestCategorizedFileCreatedDate.ts} +1 -1
  53. package/src/clients/v1/api/serviceRequest/{findServiceRequestCategorizedFiles/index.ts → findServiceRequestCategorizedFiles.ts} +1 -1
  54. package/src/clients/v1/api/serviceRequest/{findServiceRequestCategoryById/index.ts → findServiceRequestCategoryById.ts} +1 -1
  55. package/src/clients/v1/api/serviceRequest/{findServiceRequestDuplicates/index.ts → findServiceRequestDuplicates.ts} +1 -1
  56. package/src/clients/v1/api/serviceRequest/{findServiceRequestSellerReports/index.ts → findServiceRequestSellerReports.ts} +1 -1
  57. package/src/clients/v1/api/serviceRequest/{findServiceRequestShortInfo/index.ts → findServiceRequestShortInfo.ts} +1 -6
  58. package/src/clients/v1/api/serviceRequest/{findServiceRequestShortInfoByDealId/index.ts → findServiceRequestShortInfoByDealId.ts} +1 -1
  59. package/src/clients/v1/api/serviceRequest/{findServiceRequestShortInfoById/index.ts → findServiceRequestShortInfoById.ts} +1 -1
  60. package/src/clients/v1/api/serviceRequest/{findServiceRequests/index.ts → findServiceRequests.ts} +1 -1
  61. package/src/clients/v1/api/serviceRequest/{updateServiceRequest/index.ts → updateServiceRequest.ts} +1 -1
  62. package/src/clients/v1/dictionaries/ServiceRequest.ts +7 -1
  63. package/src/clients/v1/types/ServiceRequest.ts +8 -1
  64. /package/dist/clients/v1/api/serviceRequest/{completeServiceRequestModeration/index.d.ts → completeServiceRequestModeration.d.ts} +0 -0
  65. /package/dist/clients/v1/api/serviceRequest/{createServiceRequestReview/index.d.ts → createServiceRequestReview.d.ts} +0 -0
  66. /package/dist/clients/v1/api/serviceRequest/{deferServiceRequest/index.d.ts → deferServiceRequest.d.ts} +0 -0
  67. /package/dist/clients/v1/api/serviceRequest/{deleteServiceRequestCategorizedFile/index.d.ts → deleteServiceRequestCategorizedFile.d.ts} +0 -0
  68. /package/dist/clients/v1/api/serviceRequest/{deleteServiceRequestReportForSeller/index.d.ts → deleteServiceRequestReportForSeller.d.ts} +0 -0
  69. /package/dist/clients/v1/api/serviceRequest/{findChatsByServiceRequestId/index.d.ts → findChatsByServiceRequestId.d.ts} +0 -0
  70. /package/dist/clients/v1/api/serviceRequest/{findServiceRequestDiscountEfficiencyPercent/index.d.ts → findServiceRequestDiscountEfficiencyPercent.d.ts} +0 -0
  71. /package/dist/clients/v1/api/serviceRequest/{findServiceRequestStatisticsById/index.d.ts → findServiceRequestStatisticsById.d.ts} +0 -0
  72. /package/dist/clients/v1/api/serviceRequest/{publishServiceRequest/index.d.ts → publishServiceRequest.d.ts} +0 -0
  73. /package/dist/clients/v1/api/serviceRequest/{restoreServiceRequest/index.d.ts → restoreServiceRequest.d.ts} +0 -0
  74. /package/dist/clients/v1/api/serviceRequest/{returnDeferredServiceRequest/index.d.ts → returnDeferredServiceRequest.d.ts} +0 -0
  75. /package/dist/clients/v1/api/serviceRequest/{sendServiceRequestToModeration/index.d.ts → sendServiceRequestToModeration.d.ts} +0 -0
  76. /package/dist/clients/v1/api/serviceRequest/{startServiceRequestModeration/index.d.ts → startServiceRequestModeration.d.ts} +0 -0
  77. /package/dist/clients/v1/api/serviceRequest/{startServiceRequestModerationForOldRealty/index.d.ts → startServiceRequestModerationForOldRealty.d.ts} +0 -0
  78. /package/dist/clients/v1/api/serviceRequest/{transferServiceRequest/index.d.ts → transferServiceRequest.d.ts} +0 -0
  79. /package/src/clients/v1/api/serviceRequest/{completeServiceRequestModeration/index.ts → completeServiceRequestModeration.ts} +0 -0
  80. /package/src/clients/v1/api/serviceRequest/{createServiceRequestReview/index.ts → createServiceRequestReview.ts} +0 -0
  81. /package/src/clients/v1/api/serviceRequest/{deferServiceRequest/index.ts → deferServiceRequest.ts} +0 -0
  82. /package/src/clients/v1/api/serviceRequest/{deleteServiceRequestCategorizedFile/index.ts → deleteServiceRequestCategorizedFile.ts} +0 -0
  83. /package/src/clients/v1/api/serviceRequest/{deleteServiceRequestReportForSeller/index.ts → deleteServiceRequestReportForSeller.ts} +0 -0
  84. /package/src/clients/v1/api/serviceRequest/{findChatsByServiceRequestId/index.ts → findChatsByServiceRequestId.ts} +0 -0
  85. /package/src/clients/v1/api/serviceRequest/{findServiceRequestDiscountEfficiencyPercent/index.tsx → findServiceRequestDiscountEfficiencyPercent.ts} +0 -0
  86. /package/src/clients/v1/api/serviceRequest/{findServiceRequestStatisticsById/index.ts → findServiceRequestStatisticsById.ts} +0 -0
  87. /package/src/clients/v1/api/serviceRequest/{publishServiceRequest/index.ts → publishServiceRequest.ts} +0 -0
  88. /package/src/clients/v1/api/serviceRequest/{restoreServiceRequest/index.ts → restoreServiceRequest.ts} +0 -0
  89. /package/src/clients/v1/api/serviceRequest/{returnDeferredServiceRequest/index.ts → returnDeferredServiceRequest.ts} +0 -0
  90. /package/src/clients/v1/api/serviceRequest/{sendServiceRequestToModeration/index.ts → sendServiceRequestToModeration.ts} +0 -0
  91. /package/src/clients/v1/api/serviceRequest/{startServiceRequestModeration/index.ts → startServiceRequestModeration.ts} +0 -0
  92. /package/src/clients/v1/api/serviceRequest/{startServiceRequestModerationForOldRealty/index.ts → startServiceRequestModerationForOldRealty.ts} +0 -0
  93. /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 } from '../../../types';
2
+ import { ServiceRequest } from '../../types';
3
3
  declare type SuccessData = {
4
4
  success: true;
5
5
  data: Partial<ServiceRequest> & Required<Pick<ServiceRequest, 'id'>>;
@@ -1,5 +1,5 @@
1
1
  import { AxiosResponse, AxiosError } from 'axios';
2
- import { Call } from '../../../types';
2
+ import { Call } from '../../types';
3
3
  declare type SuccessData = {
4
4
  success: true;
5
5
  data: Partial<Call> & Required<Pick<Call, 'id'>>;
@@ -1,5 +1,5 @@
1
1
  import { AxiosResponse, AxiosError } from 'axios';
2
- import { ServiceRequest, ServiceRequestCategorizedFileCategory } from '../../../types';
2
+ import { ServiceRequest, ServiceRequestCategorizedFileCategory } from '../../types';
3
3
  declare type SuccessData = {
4
4
  success: true;
5
5
  data: Partial<ServiceRequest> & {
@@ -1,5 +1,5 @@
1
1
  import { AxiosResponse, AxiosError } from 'axios';
2
- import { ServiceRequest } from '../../../types';
2
+ import { ServiceRequest } from '../../types';
3
3
  declare type ErrorData = {
4
4
  success: false;
5
5
  data: {
@@ -1,6 +1,6 @@
1
1
  import { AxiosResponse, AxiosError } from 'axios';
2
- import { CallTask, ServiceRequest, Task, User } from '../../../types';
3
- import { RealtyType } from '../../../../v2/types';
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 '../../../types';
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 { ServiceRequest } from '../../../types';
2
+ import { ServiceRequest } 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 { ServiceRequestCategorizedFile, ServiceRequestCategorizedFileCategory } from '../../../types';
2
+ import { ServiceRequestCategorizedFile, ServiceRequestCategorizedFileCategory } from '../../types';
3
3
  declare type SuccessData = {
4
4
  success: true;
5
5
  data: ServiceRequestCategorizedFile;
@@ -1,5 +1,5 @@
1
1
  import { AxiosResponse, AxiosError } from 'axios';
2
- import { ServiceRequestFeedbackCategory } from '../../../types';
2
+ import { ServiceRequestFeedbackCategory } 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 { ServiceRequestSellerReport } from '../../../types';
2
+ import { ServiceRequestSellerReport } from '../../types';
3
3
  declare type SuccessData = {
4
4
  success: true;
5
5
  data: ServiceRequestSellerReport;
@@ -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: string;
18
- isEnabled: boolean;
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 { ServiceRequest } from '../../../types';
2
+ import { ServiceRequest } from '../../types';
3
3
  declare type SuccessData = {
4
4
  success: true;
5
5
  data: Partial<ServiceRequest> & Required<Pick<ServiceRequest, 'id'>>;
@@ -1,5 +1,5 @@
1
1
  import { AxiosResponse, AxiosError } from 'axios';
2
- import { Message } from '../../../types';
2
+ import { Message } 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 { PriceHistoryAnalytics } from '../../../types';
2
+ import { PriceHistoryAnalytics } from '../../types';
3
3
  declare type ResultData = {
4
4
  ids: string[];
5
5
  byId: Record<string, PriceHistoryAnalytics & {
@@ -1,5 +1,5 @@
1
1
  import { AxiosResponse, AxiosError } from 'axios';
2
- import { ServiceRequestActivity, ServiceRequestActivityType } from '../../../types';
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 { ServiceRequest } from '../../../types';
2
+ import { ServiceRequest } from '../../types';
3
3
  declare type SuccessData = {
4
4
  success: true;
5
5
  data: ServiceRequest;
@@ -1,5 +1,5 @@
1
1
  import { AxiosResponse, AxiosError } from 'axios';
2
- import { DealCategorizedFileCategory, ServiceRequestCategorizedFileCategory } from '../../../types';
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 '../../../types';
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 } from '../../../types';
2
+ import { ServiceRequestCategory } from '../../types';
3
3
  declare type SuccessData = {
4
4
  success: true;
5
5
  data: {
@@ -1,5 +1,5 @@
1
1
  import { AxiosResponse, AxiosError } from 'axios';
2
- import { ServiceRequest, Realty, User } from '../../../types';
2
+ import { ServiceRequest, Realty, User } 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 { ServiceRequestSellerReport } from '../../../types';
2
+ import { ServiceRequestSellerReport } 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 { ServiceRequestCategory, ServiceRequestShortInfo, ServiceRequestStatus, ServiceRequestType } from '../../../types';
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 '../../../types';
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 '../../../types';
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 '../../../types';
2
+ import { ServiceRequest, ServiceRequestCategory, 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, RealtyType, File } from '../../../types';
2
+ import { ServiceRequest, RealtyType, File } from '../../types';
3
3
  declare type SuccessData = {
4
4
  success: true;
5
5
  data: ServiceRequest;
@@ -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
  {
2
- "version": "0.2.48",
2
+ "version": "0.2.49",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -1,5 +1,5 @@
1
1
  import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
2
- import { ServiceRequest } from '../../../types';
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 '../../../types';
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 } };
@@ -1,5 +1,5 @@
1
1
  import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
2
- import { ServiceRequest, ServiceRequestCategorizedFileCategory } from '../../../types';
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 '../../../types';
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 } };
@@ -1,6 +1,6 @@
1
1
  import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
2
- import { CallTask, ServiceRequest, Task, User } from '../../../types';
3
- import { RealtyType } from '../../../../v2/types';
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 '../../../types';
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 '../../../types';
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 '../../../types';
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 '../../../types';
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 '../../../types';
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 = { depublishReason: string; isEnabled: boolean };
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 '../../../types';
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 '../../../types';
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 '../../../types';
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 '../../../types';
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 '../../../types';
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 '../../../types';
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 '../../../types';
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 '../../../types';
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 '../../../types';
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 '../../../types';
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 } };
@@ -1,5 +1,5 @@
1
1
  import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
2
- import { ServiceRequest, Realty, User } from '../../../types';
2
+ import { ServiceRequest, Realty, User } from '../../types';
3
3
 
4
4
  type SuccessData = {
5
5
  success: true;
@@ -1,5 +1,5 @@
1
1
  import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
2
- import { ServiceRequest, Realty, User } from '../../../types';
2
+ import { ServiceRequest, Realty, User } from '../../types';
3
3
 
4
4
  type SuccessData = {
5
5
  success: true;
@@ -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 '../../../types';
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 } };
@@ -1,5 +1,5 @@
1
1
  import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
2
- import { ServiceRequest, RealtyType, File } from '../../../types';
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;