@hapl/api-queries 0.2.96 → 0.2.97--canary.222.2c0ac0d.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/dist/api-queries.cjs.development.js +741 -637
- 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 +741 -637
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/index.d.ts +2 -0
- package/dist/clients/v1/api/photoOrder/createPhotoOrder/index.d.ts +2 -3
- package/dist/clients/v1/api/photoOrder/findPhotoOrderCategoryDictionary/index.d.ts +25 -0
- package/dist/clients/v1/api/serviceRequest/updateServiceRequestPhotoOrder.d.ts +34 -0
- package/dist/clients/v1/dictionaries/PhotoOrder.d.ts +1 -14
- package/dist/clients/v1/dictionaries/User.d.ts +1 -0
- package/dist/clients/v1/index.d.ts +2 -0
- package/dist/clients/v1/types/PhotoOrder.d.ts +13 -9
- package/dist/clients/v1/types/User.d.ts +2 -1
- package/package.json +1 -1
- package/src/clients/v1/api/index.ts +2 -0
- package/src/clients/v1/api/photoOrder/createPhotoOrder/index.ts +2 -3
- package/src/clients/v1/api/photoOrder/findPhotoOrderCategoryDictionary/index.ts +39 -0
- package/src/clients/v1/api/serviceRequest/updateServiceRequestPhotoOrder.ts +45 -0
- package/src/clients/v1/dictionaries/PhotoOrder.ts +1 -14
- package/src/clients/v1/dictionaries/User.ts +1 -0
- package/src/clients/v1/index.ts +12 -0
- package/src/clients/v1/types/PhotoOrder.ts +14 -10
- package/src/clients/v1/types/User.ts +1 -0
|
@@ -154,6 +154,7 @@ export * from './photoOrder/findPhotoOrders';
|
|
|
154
154
|
export * from './photoOrder/sendPhotoOrderFeedback';
|
|
155
155
|
export * from './photoOrder/terminatePhotoOrder';
|
|
156
156
|
export * from './photoOrder/completePhotoOrder';
|
|
157
|
+
export * from './photoOrder/findPhotoOrderCategoryDictionary';
|
|
157
158
|
export * from './realty/findRealtyDuplicate';
|
|
158
159
|
export * from './realty/findRealtyPriceHistory';
|
|
159
160
|
export * from './realty/findSimilarRealtyIdsById';
|
|
@@ -207,6 +208,7 @@ export * from './serviceRequest/transferServiceRequest';
|
|
|
207
208
|
export * from './serviceRequest/updateServiceRequest';
|
|
208
209
|
export * from './serviceRequest/updateServiceRequestPersonalAssistant';
|
|
209
210
|
export * from './serviceRequest/updateServiceRequestPlanDraw';
|
|
211
|
+
export * from './serviceRequest/updateServiceRequestPhotoOrder';
|
|
210
212
|
export * from './slack/createCianRating';
|
|
211
213
|
export * from './soldStatistic/findSoldStatistic';
|
|
212
214
|
export * from './stats/findMarkupCalls';
|
|
@@ -20,9 +20,8 @@ export declare type CreatePhotoOrderBody = {
|
|
|
20
20
|
serviceRequestId: NonNullable<PhotoOrder['serviceRequestId']>;
|
|
21
21
|
addressId: NonNullable<PhotoOrder['addressId']>;
|
|
22
22
|
scheduledAt: NonNullable<PhotoOrder['scheduledAt']>;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
hasAccessToFlat: NonNullable<PhotoOrder['hasAccessToFlat']>;
|
|
23
|
+
contact: NonNullable<PhotoOrder['contact']>;
|
|
24
|
+
category: NonNullable<PhotoOrder['category']>;
|
|
26
25
|
comment?: PhotoOrder['comment'];
|
|
27
26
|
internalUser?: {
|
|
28
27
|
id: number;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { PhotoOrderCategoryDictionary } from '../../../types';
|
|
3
|
+
declare type SuccessData = {
|
|
4
|
+
success: true;
|
|
5
|
+
data: PhotoOrderCategoryDictionary;
|
|
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 FindPhotoOrderCategoryDictionaryHeaders = {
|
|
16
|
+
'x-auth-hc': string;
|
|
17
|
+
};
|
|
18
|
+
export declare type FindPhotoOrderCategoryDictionaryData = AxiosResponse<ResultData>;
|
|
19
|
+
export declare type FindPhotoOrderCategoryDictionaryError = AxiosError<ResultError>;
|
|
20
|
+
export declare type FindPhotoOrderCategoryDictionaryConfig = {
|
|
21
|
+
baseURL?: string;
|
|
22
|
+
headers: FindPhotoOrderCategoryDictionaryHeaders;
|
|
23
|
+
};
|
|
24
|
+
export declare function findPhotoOrderCategoryDictionaryRequest({ baseURL, headers, }: FindPhotoOrderCategoryDictionaryConfig): Promise<FindPhotoOrderCategoryDictionaryData>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosError } from 'axios';
|
|
2
|
+
import { ServiceRequest, MoneyAmount } from '../../types';
|
|
3
|
+
declare type SuccessData = {
|
|
4
|
+
success: true;
|
|
5
|
+
data: ServiceRequest;
|
|
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 UpdateServiceRequestPhotoOrderUrlParams = {
|
|
16
|
+
srId: number;
|
|
17
|
+
};
|
|
18
|
+
export declare type UpdateServiceRequestPhotoOrderHeaders = {
|
|
19
|
+
'x-auth-hc': string;
|
|
20
|
+
};
|
|
21
|
+
export declare type UpdateServiceRequestPhotoOrderBody = {
|
|
22
|
+
category: string;
|
|
23
|
+
sum: MoneyAmount;
|
|
24
|
+
};
|
|
25
|
+
export declare type UpdateServiceRequestPhotoOrderData = AxiosResponse<ResultData>;
|
|
26
|
+
export declare type UpdateServiceRequestPhotoOrderError = AxiosError<ResultError>;
|
|
27
|
+
export declare type UpdateServiceRequestPhotoOrderConfig = {
|
|
28
|
+
baseURL?: string;
|
|
29
|
+
urlParams: UpdateServiceRequestPhotoOrderUrlParams;
|
|
30
|
+
headers: UpdateServiceRequestPhotoOrderHeaders;
|
|
31
|
+
body: UpdateServiceRequestPhotoOrderBody;
|
|
32
|
+
};
|
|
33
|
+
export declare function updateServiceRequestPhotoOrderRequest({ baseURL, urlParams, body, headers, }: UpdateServiceRequestPhotoOrderConfig): Promise<UpdateServiceRequestPhotoOrderData>;
|
|
34
|
+
export {};
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import { PhotoOrderStatus
|
|
1
|
+
import { PhotoOrderStatus } from '../types';
|
|
2
2
|
export declare const PhotoOrderDictionary: {
|
|
3
3
|
Status: {
|
|
4
|
-
aborted: string;
|
|
5
4
|
created: string;
|
|
6
|
-
creation_failed: string;
|
|
7
|
-
epic_fail: string;
|
|
8
|
-
execution_failed: string;
|
|
9
|
-
init: string;
|
|
10
|
-
photographer_found: string;
|
|
11
|
-
photographer_not_found: string;
|
|
12
5
|
success: string;
|
|
13
6
|
terminated: string;
|
|
14
7
|
};
|
|
15
|
-
Renovation: {
|
|
16
|
-
author: string;
|
|
17
|
-
cosmetic: string;
|
|
18
|
-
euro: string;
|
|
19
|
-
none: string;
|
|
20
|
-
};
|
|
21
8
|
};
|
|
@@ -158,6 +158,7 @@ export declare class Api {
|
|
|
158
158
|
sendPhotoOrderFeedback: (urlParams: api.SendPhotoOrderFeedbackUrlParams, headers: api.SendPhotoOrderFeedbackHeaders) => Promise<api.SendPhotoOrderFeedbackData>;
|
|
159
159
|
completePhotoOrder: (urlParams: api.CompletePhotoOrderUrlParams, headers: api.CompletePhotoOrderHeaders) => Promise<api.CompletePhotoOrderData>;
|
|
160
160
|
terminatePhotoOrder: (urlParams: api.TerminatePhotoOrderUrlParams, headers: api.TerminatePhotoOrderHeaders) => Promise<api.TerminatePhotoOrderData>;
|
|
161
|
+
findPhotoOrderCategoryDictionary: (headers: api.FindPhotoOrderCategoryDictionaryHeaders) => Promise<api.FindPhotoOrderCategoryDictionaryData>;
|
|
161
162
|
findRealtyDuplicate: (params: api.FindRealtyDuplicateParams, headers: api.FindRealtyDuplicateHeaders) => Promise<api.FindRealtyDuplicateData>;
|
|
162
163
|
findRealtyPriceHistory: (params: api.FindRealtyPriceHistoryParams, headers: api.FindRealtyPriceHistoryHeaders) => Promise<api.FindRealtyPriceHistoryData>;
|
|
163
164
|
findSimilarRealtyIdsById: (urlParams: api.FindSimilarRealtyIdsByIdUrlParams) => Promise<api.FindSimilarRealtyIdsByIdData>;
|
|
@@ -211,6 +212,7 @@ export declare class Api {
|
|
|
211
212
|
updateServiceRequest: (urlParams: api.UpdateServiceRequestUrlParams, body: api.UpdateServiceRequestBody, headers: api.UpdateServiceRequestHeaders) => Promise<api.UpdateServiceRequestData>;
|
|
212
213
|
updateServiceRequestPersonalAssistant: (urlParams: api.UpdateServiceRequestPersonalAssistantUrlParams, body: api.UpdateServiceRequestPersonalAssistantBody, headers: api.UpdateServiceRequestPersonalAssistantHeaders) => Promise<api.UpdateServiceRequestPersonalAssistantData>;
|
|
213
214
|
updateServiceRequestPlanDraw: (urlParams: api.UpdateServiceRequestPlanDrawUrlParams, body: api.UpdateServiceRequestPlanDrawBody, headers: api.UpdateServiceRequestPlanDrawHeaders) => Promise<api.UpdateServiceRequestPlanDrawData>;
|
|
215
|
+
updateServiceRequestPhotoOrder: (urlParams: api.UpdateServiceRequestPhotoOrderUrlParams, body: api.UpdateServiceRequestPhotoOrderBody, headers: api.UpdateServiceRequestPhotoOrderHeaders) => Promise<api.UpdateServiceRequestPhotoOrderData>;
|
|
214
216
|
createCianRating: (body: api.CreateCianRatingBody, headers: api.CreateCianRatingHeaders) => Promise<api.CreateCianRatingData>;
|
|
215
217
|
findSoldStatistic: (headers?: api.FindSoldStatisticHeaders | undefined) => Promise<api.FindSoldStatisticData>;
|
|
216
218
|
findMarkupCalls: (params: api.FindMarkupCallsParams, headers: api.FindMarkupCallsHeaders) => Promise<api.FindMarkupCallsData>;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { User } from './User';
|
|
2
|
+
export declare type PhotoOrderCategoryDictionary = {
|
|
3
|
+
field: string;
|
|
4
|
+
nullable: boolean;
|
|
5
|
+
values: Array<{
|
|
6
|
+
code: string;
|
|
7
|
+
distance: string;
|
|
8
|
+
performer: string;
|
|
9
|
+
price: number;
|
|
10
|
+
type: string;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
2
13
|
export declare enum PhotoOrderStatus {
|
|
3
14
|
Aborted = "aborted",
|
|
4
15
|
Created = "created",
|
|
@@ -11,12 +22,6 @@ export declare enum PhotoOrderStatus {
|
|
|
11
22
|
Success = "success",
|
|
12
23
|
Terminated = "terminated"
|
|
13
24
|
}
|
|
14
|
-
export declare enum PhotoOrderRenovation {
|
|
15
|
-
Author = "author",
|
|
16
|
-
Cosmetic = "cosmetic",
|
|
17
|
-
Euro = "euro",
|
|
18
|
-
None = "none"
|
|
19
|
-
}
|
|
20
25
|
export declare enum PhotoOrderTypes {
|
|
21
26
|
Internal = "internal",
|
|
22
27
|
External = "external"
|
|
@@ -24,14 +29,13 @@ export declare enum PhotoOrderTypes {
|
|
|
24
29
|
export declare type PhotoOrder = {
|
|
25
30
|
type: PhotoOrderTypes;
|
|
26
31
|
addressId: number;
|
|
27
|
-
|
|
28
|
-
hasAccessToFlat: boolean;
|
|
32
|
+
contact: string;
|
|
29
33
|
id: string;
|
|
30
34
|
isOutCKAD: boolean;
|
|
31
|
-
renovation: PhotoOrderRenovation;
|
|
32
35
|
scheduledAt: string;
|
|
33
36
|
serviceRequestId: number;
|
|
34
37
|
status: PhotoOrderStatus;
|
|
38
|
+
category: string;
|
|
35
39
|
internalUser?: Partial<User> & {
|
|
36
40
|
id: number;
|
|
37
41
|
};
|
|
@@ -83,7 +83,8 @@ export declare enum UserRole {
|
|
|
83
83
|
PersonalAssistantSecondLevel = "personal_assistant_2",
|
|
84
84
|
PersonalAssistantThirdLevel = "personal_assistant_3",
|
|
85
85
|
PortfolioCoordinator = "portfolio_coordinator",
|
|
86
|
-
ExpoCoordinator = "expo_coordinator"
|
|
86
|
+
ExpoCoordinator = "expo_coordinator",
|
|
87
|
+
PhotoCoordinator = "photo_coordinator"
|
|
87
88
|
}
|
|
88
89
|
export declare enum UserFiredType {
|
|
89
90
|
Fired = "fired",
|
package/package.json
CHANGED
|
@@ -185,6 +185,7 @@ export * from './photoOrder/findPhotoOrders';
|
|
|
185
185
|
export * from './photoOrder/sendPhotoOrderFeedback';
|
|
186
186
|
export * from './photoOrder/terminatePhotoOrder';
|
|
187
187
|
export * from './photoOrder/completePhotoOrder';
|
|
188
|
+
export * from './photoOrder/findPhotoOrderCategoryDictionary';
|
|
188
189
|
|
|
189
190
|
export * from './realty/findRealtyDuplicate';
|
|
190
191
|
export * from './realty/findRealtyPriceHistory';
|
|
@@ -241,6 +242,7 @@ export * from './serviceRequest/transferServiceRequest';
|
|
|
241
242
|
export * from './serviceRequest/updateServiceRequest';
|
|
242
243
|
export * from './serviceRequest/updateServiceRequestPersonalAssistant';
|
|
243
244
|
export * from './serviceRequest/updateServiceRequestPlanDraw';
|
|
245
|
+
export * from './serviceRequest/updateServiceRequestPhotoOrder';
|
|
244
246
|
|
|
245
247
|
export * from './slack/createCianRating';
|
|
246
248
|
|
|
@@ -13,9 +13,8 @@ export type CreatePhotoOrderBody = {
|
|
|
13
13
|
serviceRequestId: NonNullable<PhotoOrder['serviceRequestId']>;
|
|
14
14
|
addressId: NonNullable<PhotoOrder['addressId']>;
|
|
15
15
|
scheduledAt: NonNullable<PhotoOrder['scheduledAt']>;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
hasAccessToFlat: NonNullable<PhotoOrder['hasAccessToFlat']>;
|
|
16
|
+
contact: NonNullable<PhotoOrder['contact']>;
|
|
17
|
+
category: NonNullable<PhotoOrder['category']>;
|
|
19
18
|
comment?: PhotoOrder['comment'];
|
|
20
19
|
internalUser?: { id: number };
|
|
21
20
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
+
import { PhotoOrderCategoryDictionary } from '../../../types';
|
|
3
|
+
|
|
4
|
+
type SuccessData = { success: true; data: PhotoOrderCategoryDictionary };
|
|
5
|
+
type ErrorData = { success: false; data: { error: string } };
|
|
6
|
+
|
|
7
|
+
type ResultData = SuccessData['data'];
|
|
8
|
+
type ResultError = ErrorData['data']['error'];
|
|
9
|
+
|
|
10
|
+
export type FindPhotoOrderCategoryDictionaryHeaders = { 'x-auth-hc': string };
|
|
11
|
+
export type FindPhotoOrderCategoryDictionaryData = AxiosResponse<ResultData>;
|
|
12
|
+
export type FindPhotoOrderCategoryDictionaryError = AxiosError<ResultError>;
|
|
13
|
+
export type FindPhotoOrderCategoryDictionaryConfig = {
|
|
14
|
+
baseURL?: string;
|
|
15
|
+
headers: FindPhotoOrderCategoryDictionaryHeaders;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export function findPhotoOrderCategoryDictionaryRequest({
|
|
19
|
+
baseURL = 'https://clients.homeapp.ru',
|
|
20
|
+
headers,
|
|
21
|
+
}: FindPhotoOrderCategoryDictionaryConfig) {
|
|
22
|
+
return axios
|
|
23
|
+
.get('/api/dictionary/order-photos', {
|
|
24
|
+
baseURL,
|
|
25
|
+
headers: { Accept: 'application/json', ...headers },
|
|
26
|
+
transformResponse: [
|
|
27
|
+
...(axios.defaults.transformResponse as AxiosResponseTransformer[]),
|
|
28
|
+
(data: SuccessData | ErrorData): ResultData | ResultError => {
|
|
29
|
+
if (!data.success) return data.data.error;
|
|
30
|
+
|
|
31
|
+
return data.data;
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
})
|
|
35
|
+
.then((res: FindPhotoOrderCategoryDictionaryData) => res)
|
|
36
|
+
.catch((err: FindPhotoOrderCategoryDictionaryError) => {
|
|
37
|
+
throw err;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
|
|
2
|
+
import { ServiceRequest, MoneyAmount } from '../../types';
|
|
3
|
+
|
|
4
|
+
type SuccessData = { success: true; data: ServiceRequest };
|
|
5
|
+
type ErrorData = { success: false; data: { error: string } };
|
|
6
|
+
|
|
7
|
+
type ResultData = SuccessData['data'];
|
|
8
|
+
type ResultError = ErrorData['data']['error'];
|
|
9
|
+
|
|
10
|
+
export type UpdateServiceRequestPhotoOrderUrlParams = { srId: number };
|
|
11
|
+
export type UpdateServiceRequestPhotoOrderHeaders = { 'x-auth-hc': string };
|
|
12
|
+
export type UpdateServiceRequestPhotoOrderBody = {
|
|
13
|
+
category: string;
|
|
14
|
+
sum: MoneyAmount;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type UpdateServiceRequestPhotoOrderData = AxiosResponse<ResultData>;
|
|
18
|
+
export type UpdateServiceRequestPhotoOrderError = AxiosError<ResultError>;
|
|
19
|
+
export type UpdateServiceRequestPhotoOrderConfig = {
|
|
20
|
+
baseURL?: string;
|
|
21
|
+
urlParams: UpdateServiceRequestPhotoOrderUrlParams;
|
|
22
|
+
headers: UpdateServiceRequestPhotoOrderHeaders;
|
|
23
|
+
body: UpdateServiceRequestPhotoOrderBody;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export function updateServiceRequestPhotoOrderRequest({
|
|
27
|
+
baseURL = 'https://clients.homeapp.ru',
|
|
28
|
+
urlParams,
|
|
29
|
+
body,
|
|
30
|
+
headers,
|
|
31
|
+
}: UpdateServiceRequestPhotoOrderConfig) {
|
|
32
|
+
return axios
|
|
33
|
+
.post(`/api/service-request/photo-order/${urlParams.srId}`, body, {
|
|
34
|
+
baseURL,
|
|
35
|
+
headers: { Accept: 'application/json', 'Content-Type': 'application/json', ...headers },
|
|
36
|
+
transformResponse: [
|
|
37
|
+
...(axios.defaults.transformResponse as AxiosResponseTransformer[]),
|
|
38
|
+
(data: SuccessData | ErrorData): ResultData | ResultError => (data.success ? data.data : data.data.error),
|
|
39
|
+
],
|
|
40
|
+
})
|
|
41
|
+
.then((res: UpdateServiceRequestPhotoOrderData) => res)
|
|
42
|
+
.catch((err: UpdateServiceRequestPhotoOrderError) => {
|
|
43
|
+
throw err;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
import { PhotoOrderStatus
|
|
1
|
+
import { PhotoOrderStatus } from '../types';
|
|
2
2
|
|
|
3
3
|
export const PhotoOrderDictionary = {
|
|
4
4
|
Status: {
|
|
5
|
-
[PhotoOrderStatus.Aborted]: 'Заявка не выполнена по вине заказчика',
|
|
6
5
|
[PhotoOrderStatus.Created]: 'Заявка создана',
|
|
7
|
-
[PhotoOrderStatus.CreationFailed]: 'Ошибка при создании во внешней системе',
|
|
8
|
-
[PhotoOrderStatus.EpicFail]: 'Сервис отменил выполнение',
|
|
9
|
-
[PhotoOrderStatus.ExecutionFailed]: 'Заявка не выполнена',
|
|
10
|
-
[PhotoOrderStatus.Init]: 'Заявка инициализирована',
|
|
11
|
-
[PhotoOrderStatus.PhotographerFound]: 'Фотограф найден',
|
|
12
|
-
[PhotoOrderStatus.PhotographerNotFound]: 'Фотограф не найден',
|
|
13
6
|
[PhotoOrderStatus.Success]: 'Заявка выполнена',
|
|
14
7
|
[PhotoOrderStatus.Terminated]: 'Заявка отменена',
|
|
15
8
|
},
|
|
16
|
-
Renovation: {
|
|
17
|
-
[PhotoOrderRenovation.Author]: 'Авторский',
|
|
18
|
-
[PhotoOrderRenovation.Cosmetic]: 'Косметический',
|
|
19
|
-
[PhotoOrderRenovation.Euro]: 'Евро',
|
|
20
|
-
[PhotoOrderRenovation.None]: 'Без ремонта',
|
|
21
|
-
},
|
|
22
9
|
};
|
|
@@ -103,6 +103,7 @@ export const UserDictionary = {
|
|
|
103
103
|
[UserRole.PersonalAssistantThirdLevel]: 'ПА-3',
|
|
104
104
|
[UserRole.PortfolioCoordinator]: 'Координатор набор портфеля',
|
|
105
105
|
[UserRole.ExpoCoordinator]: 'Координатор экспозиция',
|
|
106
|
+
[UserRole.PhotoCoordinator]: 'Работа с фото',
|
|
106
107
|
},
|
|
107
108
|
FiredType: {
|
|
108
109
|
[UserFiredType.Fired]: 'Уволен',
|
package/src/clients/v1/index.ts
CHANGED
|
@@ -959,6 +959,10 @@ export class Api {
|
|
|
959
959
|
return api.terminatePhotoOrderRequest({ urlParams, headers, baseURL: await this.baseURL });
|
|
960
960
|
};
|
|
961
961
|
|
|
962
|
+
findPhotoOrderCategoryDictionary = async (headers: api.FindPhotoOrderCategoryDictionaryHeaders) => {
|
|
963
|
+
return api.findPhotoOrderCategoryDictionaryRequest({ headers, baseURL: await this.baseURL });
|
|
964
|
+
};
|
|
965
|
+
|
|
962
966
|
// realty
|
|
963
967
|
|
|
964
968
|
findRealtyDuplicate = async (params: api.FindRealtyDuplicateParams, headers: api.FindRealtyDuplicateHeaders) => {
|
|
@@ -1374,6 +1378,14 @@ export class Api {
|
|
|
1374
1378
|
return api.updateServiceRequestPlanDrawRequest({ urlParams, body, headers, baseURL: await this.baseURL });
|
|
1375
1379
|
};
|
|
1376
1380
|
|
|
1381
|
+
updateServiceRequestPhotoOrder = async (
|
|
1382
|
+
urlParams: api.UpdateServiceRequestPhotoOrderUrlParams,
|
|
1383
|
+
body: api.UpdateServiceRequestPhotoOrderBody,
|
|
1384
|
+
headers: api.UpdateServiceRequestPhotoOrderHeaders
|
|
1385
|
+
) => {
|
|
1386
|
+
return api.updateServiceRequestPhotoOrderRequest({ urlParams, body, headers, baseURL: await this.baseURL });
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1377
1389
|
// slack
|
|
1378
1390
|
|
|
1379
1391
|
createCianRating = async (body: api.CreateCianRatingBody, headers: api.CreateCianRatingHeaders) => {
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { User } from './User';
|
|
2
2
|
|
|
3
|
+
export type PhotoOrderCategoryDictionary = {
|
|
4
|
+
field: string;
|
|
5
|
+
nullable: boolean;
|
|
6
|
+
values: Array<{
|
|
7
|
+
code: string;
|
|
8
|
+
distance: string;
|
|
9
|
+
performer: string;
|
|
10
|
+
price: number;
|
|
11
|
+
type: string;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
14
|
+
|
|
3
15
|
export enum PhotoOrderStatus {
|
|
4
16
|
Aborted = 'aborted',
|
|
5
17
|
Created = 'created',
|
|
@@ -13,13 +25,6 @@ export enum PhotoOrderStatus {
|
|
|
13
25
|
Terminated = 'terminated',
|
|
14
26
|
}
|
|
15
27
|
|
|
16
|
-
export enum PhotoOrderRenovation {
|
|
17
|
-
Author = 'author',
|
|
18
|
-
Cosmetic = 'cosmetic',
|
|
19
|
-
Euro = 'euro',
|
|
20
|
-
None = 'none',
|
|
21
|
-
}
|
|
22
|
-
|
|
23
28
|
export enum PhotoOrderTypes {
|
|
24
29
|
Internal = 'internal',
|
|
25
30
|
External = 'external',
|
|
@@ -28,14 +33,13 @@ export enum PhotoOrderTypes {
|
|
|
28
33
|
export type PhotoOrder = {
|
|
29
34
|
type: PhotoOrderTypes;
|
|
30
35
|
addressId: number;
|
|
31
|
-
|
|
32
|
-
hasAccessToFlat: boolean;
|
|
36
|
+
contact: string;
|
|
33
37
|
id: string;
|
|
34
38
|
isOutCKAD: boolean;
|
|
35
|
-
renovation: PhotoOrderRenovation;
|
|
36
39
|
scheduledAt: string;
|
|
37
40
|
serviceRequestId: number;
|
|
38
41
|
status: PhotoOrderStatus;
|
|
42
|
+
category: string;
|
|
39
43
|
|
|
40
44
|
internalUser?: Partial<User> & { id: number };
|
|
41
45
|
comment?: string;
|