@hapl/api-queries 0.1.140 → 0.1.142--canary.69.2037a09.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 +12 -0
- package/dist/api-queries.cjs.development.js +217 -23
- 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 +217 -23
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/buyer/callbackBuyer/index.d.ts +29 -0
- package/dist/clients/v1/api/buyer/findBuyerClosingReason/index.d.ts +21 -0
- package/dist/clients/v1/api/buyer/findBuyers/index.d.ts +3 -1
- package/dist/clients/v1/api/contract/createContractLegalDocument/index.d.ts +29 -0
- package/dist/clients/v1/api/contract/findContractById/index.d.ts +29 -0
- package/dist/clients/v1/api/contract/findContractLegalDocumentById/index.d.ts +29 -0
- package/dist/clients/v1/api/index.d.ts +5 -0
- package/dist/clients/v1/dictionaries/ContractLegalDocument.d.ts +13 -0
- package/dist/clients/v1/dictionaries/index.d.ts +1 -0
- package/dist/clients/v1/index.d.ts +5 -0
- package/dist/clients/v1/types/Buyer.d.ts +10 -0
- package/dist/clients/v1/types/BuyerClosingReason.d.ts +13 -0
- package/dist/clients/v1/types/ContractLegalDocument.d.ts +19 -0
- package/dist/clients/v1/types/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/clients/v1/api/buyer/callbackBuyer/index.ts +42 -0
- package/src/clients/v1/api/buyer/findBuyerClosingReason/index.ts +49 -0
- package/src/clients/v1/api/buyer/findBuyers/index.ts +3 -1
- package/src/clients/v1/api/contract/createContractLegalDocument/index.ts +38 -0
- package/src/clients/v1/api/contract/findContractById/index.ts +39 -0
- package/src/clients/v1/api/contract/findContractLegalDocumentById/index.ts +39 -0
- package/src/clients/v1/api/index.ts +5 -0
- package/src/clients/v1/dictionaries/ContractLegalDocument.ts +14 -0
- package/src/clients/v1/dictionaries/index.ts +1 -0
- package/src/clients/v1/index.ts +26 -0
- package/src/clients/v1/types/Buyer.ts +11 -0
- package/src/clients/v1/types/BuyerClosingReason.ts +14 -0
- package/src/clients/v1/types/ContractLegalDocument.ts +21 -0
- package/src/clients/v1/types/index.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v0.1.141 (Thu Feb 24 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- fix: исправлена неверная сортировка в ручке запроса списка buyer [#67](https://github.com/homeappcorporate/api-queries/pull/67) ([@abd2561024](https://github.com/abd2561024))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Andrey Romashin ([@abd2561024](https://github.com/abd2561024))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v0.1.140 (Tue Feb 22 2022)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
|
@@ -289,6 +289,27 @@ function countBuyersRequest(_ref) {
|
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
+
function callbackBuyerRequest(_ref) {
|
|
293
|
+
var _ref$baseURL = _ref.baseURL,
|
|
294
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
295
|
+
urlParams = _ref.urlParams,
|
|
296
|
+
headers = _ref.headers;
|
|
297
|
+
return axios.post("/api/buyer/callback/" + urlParams.id, {}, {
|
|
298
|
+
baseURL: baseURL,
|
|
299
|
+
headers: _extends({
|
|
300
|
+
Accept: 'application/json',
|
|
301
|
+
'Content-Type': 'application/json'
|
|
302
|
+
}, headers),
|
|
303
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
304
|
+
return data.success ? data.data : data.data.error;
|
|
305
|
+
}])
|
|
306
|
+
}).then(function (res) {
|
|
307
|
+
return res;
|
|
308
|
+
})["catch"](function (err) {
|
|
309
|
+
throw err;
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
|
|
292
313
|
function findBuyersRequest(_ref) {
|
|
293
314
|
var _ref$baseURL = _ref.baseURL,
|
|
294
315
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
@@ -331,6 +352,41 @@ function findBuyersRequest(_ref) {
|
|
|
331
352
|
});
|
|
332
353
|
}
|
|
333
354
|
|
|
355
|
+
function findBuyerClosingReasonRequest(_ref) {
|
|
356
|
+
var _ref$baseURL = _ref.baseURL,
|
|
357
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
358
|
+
headers = _ref.headers;
|
|
359
|
+
return axios.get('/api/buyer/closing-reason', {
|
|
360
|
+
baseURL: baseURL,
|
|
361
|
+
headers: _extends({
|
|
362
|
+
Accept: 'application/json'
|
|
363
|
+
}, headers),
|
|
364
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
365
|
+
if (data.success) {
|
|
366
|
+
var ids = [];
|
|
367
|
+
var byId = {};
|
|
368
|
+
data.data.forEach(function (entity) {
|
|
369
|
+
byId[entity.id] = entity;
|
|
370
|
+
ids.push(entity.id);
|
|
371
|
+
});
|
|
372
|
+
return {
|
|
373
|
+
ids: ids,
|
|
374
|
+
byId: byId,
|
|
375
|
+
meta: {
|
|
376
|
+
total: ids.length
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
return data.data.error;
|
|
382
|
+
}])
|
|
383
|
+
}).then(function (res) {
|
|
384
|
+
return res;
|
|
385
|
+
})["catch"](function (err) {
|
|
386
|
+
throw err;
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
|
|
334
390
|
function findCallsRequest(_ref) {
|
|
335
391
|
var _ref$baseURL = _ref.baseURL,
|
|
336
392
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
@@ -635,6 +691,26 @@ function declineContractRequest(_ref) {
|
|
|
635
691
|
});
|
|
636
692
|
}
|
|
637
693
|
|
|
694
|
+
function findContractByIdRequest(_ref) {
|
|
695
|
+
var _ref$baseURL = _ref.baseURL,
|
|
696
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
697
|
+
urlParams = _ref.urlParams,
|
|
698
|
+
headers = _ref.headers;
|
|
699
|
+
return axios.get("/api/contract/" + urlParams.id, {
|
|
700
|
+
baseURL: baseURL,
|
|
701
|
+
headers: _extends({
|
|
702
|
+
Accept: 'application/json'
|
|
703
|
+
}, headers),
|
|
704
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
705
|
+
return data.success ? data.data : data.data.error;
|
|
706
|
+
}])
|
|
707
|
+
}).then(function (res) {
|
|
708
|
+
return res;
|
|
709
|
+
})["catch"](function (err) {
|
|
710
|
+
throw err;
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
|
|
638
714
|
function findContractsRequest(_ref) {
|
|
639
715
|
var _ref$baseURL = _ref.baseURL,
|
|
640
716
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
@@ -739,6 +815,47 @@ function upgradeContractRequest(_ref) {
|
|
|
739
815
|
});
|
|
740
816
|
}
|
|
741
817
|
|
|
818
|
+
function createContractLegalDocumentRequest(_ref) {
|
|
819
|
+
var _ref$baseURL = _ref.baseURL,
|
|
820
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
821
|
+
urlParams = _ref.urlParams,
|
|
822
|
+
headers = _ref.headers;
|
|
823
|
+
return axios.post("/api/contract/" + urlParams.id + "/legal-document", null, {
|
|
824
|
+
baseURL: baseURL,
|
|
825
|
+
headers: _extends({
|
|
826
|
+
Accept: 'application/json',
|
|
827
|
+
'Content-Type': 'application/json'
|
|
828
|
+
}, headers),
|
|
829
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
830
|
+
return data.success ? data.data : data.data.error;
|
|
831
|
+
}])
|
|
832
|
+
}).then(function (res) {
|
|
833
|
+
return res;
|
|
834
|
+
})["catch"](function (err) {
|
|
835
|
+
throw err;
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
function findContractLegalDocumentByIdRequest(_ref) {
|
|
840
|
+
var _ref$baseURL = _ref.baseURL,
|
|
841
|
+
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
842
|
+
urlParams = _ref.urlParams,
|
|
843
|
+
headers = _ref.headers;
|
|
844
|
+
return axios.get("/api/contract/" + urlParams.id, {
|
|
845
|
+
baseURL: baseURL,
|
|
846
|
+
headers: _extends({
|
|
847
|
+
Accept: 'application/json'
|
|
848
|
+
}, headers),
|
|
849
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
850
|
+
return data.success ? data.data : data.data.error;
|
|
851
|
+
}])
|
|
852
|
+
}).then(function (res) {
|
|
853
|
+
return res;
|
|
854
|
+
})["catch"](function (err) {
|
|
855
|
+
throw err;
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
|
|
742
859
|
function createDealCategorizedFileRequest(_ref) {
|
|
743
860
|
var _ref$baseURL = _ref.baseURL,
|
|
744
861
|
baseURL = _ref$baseURL === void 0 ? 'https://clients.homeapp.ru' : _ref$baseURL,
|
|
@@ -2355,6 +2472,13 @@ var BuyerRealtyShowStatus;
|
|
|
2355
2472
|
BuyerRealtyShowStatus["Complete"] = "complete";
|
|
2356
2473
|
})(BuyerRealtyShowStatus || (BuyerRealtyShowStatus = {}));
|
|
2357
2474
|
|
|
2475
|
+
var BuyerQuestionType;
|
|
2476
|
+
|
|
2477
|
+
(function (BuyerQuestionType) {
|
|
2478
|
+
BuyerQuestionType["RejectionReason"] = "rejection-reason";
|
|
2479
|
+
BuyerQuestionType["AdditionalServices"] = "additional-services";
|
|
2480
|
+
})(BuyerQuestionType || (BuyerQuestionType = {}));
|
|
2481
|
+
|
|
2358
2482
|
var CallType;
|
|
2359
2483
|
|
|
2360
2484
|
(function (CallType) {
|
|
@@ -2506,6 +2630,22 @@ var ContractKind;
|
|
|
2506
2630
|
ContractKind["LegalSupport"] = "legal-support";
|
|
2507
2631
|
})(ContractKind || (ContractKind = {}));
|
|
2508
2632
|
|
|
2633
|
+
var ContractLegalDocumentStatus;
|
|
2634
|
+
|
|
2635
|
+
(function (ContractLegalDocumentStatus) {
|
|
2636
|
+
ContractLegalDocumentStatus["NotRequested"] = "notRequested";
|
|
2637
|
+
ContractLegalDocumentStatus["Requested"] = "requested";
|
|
2638
|
+
ContractLegalDocumentStatus["Ready"] = "ready";
|
|
2639
|
+
ContractLegalDocumentStatus["NotFound"] = "notFound";
|
|
2640
|
+
})(ContractLegalDocumentStatus || (ContractLegalDocumentStatus = {}));
|
|
2641
|
+
|
|
2642
|
+
var ContractLegalDocumentType;
|
|
2643
|
+
|
|
2644
|
+
(function (ContractLegalDocumentType) {
|
|
2645
|
+
ContractLegalDocumentType["Egrn"] = "egrn";
|
|
2646
|
+
ContractLegalDocumentType["OwnershipTransfers"] = "ownershipTransfers";
|
|
2647
|
+
})(ContractLegalDocumentType || (ContractLegalDocumentType = {}));
|
|
2648
|
+
|
|
2509
2649
|
var DealNoLawyerReason;
|
|
2510
2650
|
|
|
2511
2651
|
(function (DealNoLawyerReason) {
|
|
@@ -3065,6 +3205,12 @@ var ContractDictionary = {
|
|
|
3065
3205
|
Kind: (_Kind = {}, _Kind[ContractKind.NotExclusive] = 'Не эксклюзив', _Kind[ContractKind.Exclusive] = 'Эксклюзив', _Kind[ContractKind.OnAdvance] = 'Устный', _Kind[ContractKind.LegalSupport] = 'Cопровождение', _Kind)
|
|
3066
3206
|
};
|
|
3067
3207
|
|
|
3208
|
+
var _Status$2, _Type$3;
|
|
3209
|
+
var ContractLegalDocumentDictionary = {
|
|
3210
|
+
Status: (_Status$2 = {}, _Status$2[ContractLegalDocumentStatus.NotFound] = 'Документ не найден', _Status$2[ContractLegalDocumentStatus.NotRequested] = 'Документ не запрашивался', _Status$2[ContractLegalDocumentStatus.Requested] = 'Документ запрошен', _Status$2[ContractLegalDocumentStatus.Ready] = 'Документ готов', _Status$2),
|
|
3211
|
+
Type: (_Type$3 = {}, _Type$3[ContractLegalDocumentType.Egrn] = 'ЕГРН', _Type$3[ContractLegalDocumentType.OwnershipTransfers] = 'Переход собственности', _Type$3)
|
|
3212
|
+
};
|
|
3213
|
+
|
|
3068
3214
|
var _DealNoLawyerReason, _DealPartnerDealType, _DealStatus;
|
|
3069
3215
|
var DealDictionary = {
|
|
3070
3216
|
DealNoLawyerReason: (_DealNoLawyerReason = {}, _DealNoLawyerReason[DealNoLawyerReason.FromDeveloper] = 'Новостройка от застройщика (не требуется юрист)', _DealNoLawyerReason[DealNoLawyerReason.NoLawyerOffice] = 'Офис без юристов', _DealNoLawyerReason),
|
|
@@ -3083,20 +3229,20 @@ var DealParticipantDictionary = {
|
|
|
3083
3229
|
DealParticipantPosition: (_DealParticipantPosit = {}, _DealParticipantPosit[DealParticipantPosition.Agent] = 'Агент', _DealParticipantPosit[DealParticipantPosition.Lawyer] = 'Юрист', _DealParticipantPosit[DealParticipantPosition.BankEmployee] = 'Сотрудник банка', _DealParticipantPosit[DealParticipantPosition.Relative] = 'Родственник', _DealParticipantPosit[DealParticipantPosition.Seller] = 'Продавец', _DealParticipantPosit[DealParticipantPosition.Other] = 'Другое', _DealParticipantPosit)
|
|
3084
3230
|
};
|
|
3085
3231
|
|
|
3086
|
-
var _Type$
|
|
3232
|
+
var _Type$4, _Category$1;
|
|
3087
3233
|
var FileDictionary = {
|
|
3088
|
-
Type: (_Type$
|
|
3234
|
+
Type: (_Type$4 = {}, _Type$4[FileType.Image] = 'Изображение', _Type$4[FileType.Audio] = 'Аудиозапись', _Type$4[FileType.Video] = 'Видео', _Type$4[FileType.Document] = 'Документ', _Type$4),
|
|
3089
3235
|
Category: (_Category$1 = {}, _Category$1[FileCategory.DeleteReason] = 'Является обоснованием закрытия контракта', _Category$1[FileCategory.EGRN] = 'ЕГРН', _Category$1[FileCategory.OwnershipTransfers] = 'Переходы собственности', _Category$1)
|
|
3090
3236
|
};
|
|
3091
3237
|
|
|
3092
|
-
var _Type$
|
|
3238
|
+
var _Type$5;
|
|
3093
3239
|
var GalleryImageDictionary = {
|
|
3094
|
-
Type: (_Type$
|
|
3240
|
+
Type: (_Type$5 = {}, _Type$5[GalleryImageType.Main] = 'Основная', _Type$5[GalleryImageType.Portrait] = 'Портрет', _Type$5)
|
|
3095
3241
|
};
|
|
3096
3242
|
|
|
3097
|
-
var _Type$
|
|
3243
|
+
var _Type$6, _RenovationType, _Gas, _HouseType, _LandShape, _LandUsageType, _Relief, _Electricity, _Furniture, _Sewerage, _WindowView;
|
|
3098
3244
|
var RealtyDictionary = {
|
|
3099
|
-
Type: (_Type$
|
|
3245
|
+
Type: (_Type$6 = {}, _Type$6[RealtyType.FlatSecondary] = 'Вторичка', _Type$6[RealtyType.FlatNew] = 'Новостройка', _Type$6[RealtyType.House] = 'Дом', _Type$6),
|
|
3100
3246
|
RenovationType: (_RenovationType = {}, _RenovationType[RealtyRenovationType.None] = 'Без ремонта', _RenovationType[RealtyRenovationType.Author] = 'Авторский', _RenovationType[RealtyRenovationType.Cosmetic] = 'Косметический', _RenovationType[RealtyRenovationType.Euro] = 'Евро', _RenovationType[RealtyRenovationType.FineFinishing] = 'Чистовая отделка', _RenovationType[RealtyRenovationType.RoughFinishing] = 'Черновая отделка', _RenovationType),
|
|
3101
3247
|
Gas: (_Gas = {}, _Gas[RealtyGas.None] = 'Нет', _Gas[RealtyGas.Connected] = 'Подключено', _Gas[RealtyGas.Border] = 'По границе', _Gas[RealtyGas.Possible] = 'Возможно', _Gas[RealtyGas.Autonomous] = 'Автономное', _Gas),
|
|
3102
3248
|
HouseType: (_HouseType = {}, _HouseType[RealtyHouseType.Townhouse] = 'Таунхаус', _HouseType[RealtyHouseType.House] = 'Дом', _HouseType[RealtyHouseType.Cottage] = 'Коттедж', _HouseType[RealtyHouseType.Part] = 'Часть дома', _HouseType[RealtyHouseType.Duplex] = 'Дуплекс', _HouseType),
|
|
@@ -3109,20 +3255,20 @@ var RealtyDictionary = {
|
|
|
3109
3255
|
WindowView: (_WindowView = {}, _WindowView[RealtyWindowView.Street] = 'На улицу', _WindowView[RealtyWindowView.Yard] = 'Во двор', _WindowView[RealtyWindowView.Both] = 'В обе стороны', _WindowView)
|
|
3110
3256
|
};
|
|
3111
3257
|
|
|
3112
|
-
var _Category$2, _ModerationStatus, _Status$
|
|
3258
|
+
var _Category$2, _ModerationStatus, _Status$3, _Type$7, _InvestType, _DepublishReason, _Source;
|
|
3113
3259
|
var ServiceRequestDictionary = {
|
|
3114
3260
|
Category: (_Category$2 = {}, _Category$2[ServiceRequestCategory.Depublished] = 'Неликвидный', _Category$2[ServiceRequestCategory.Discounted] = 'Цена снижена', _Category$2[ServiceRequestCategory.Cold] = 'Холодный', _Category$2[ServiceRequestCategory.Warm] = 'Тёплый', _Category$2[ServiceRequestCategory.New] = 'Новый', _Category$2[ServiceRequestCategory.Hot] = 'Горячий', _Category$2),
|
|
3115
3261
|
ModerationStatus: (_ModerationStatus = {}, _ModerationStatus[ServiceRequestModerationStatus.None] = 'Нет', _ModerationStatus[ServiceRequestModerationStatus.Sent] = 'Отправлен', _ModerationStatus[ServiceRequestModerationStatus.Booked] = 'Взят в работу', _ModerationStatus[ServiceRequestModerationStatus.Done] = 'Готов', _ModerationStatus),
|
|
3116
|
-
Status: (_Status$
|
|
3117
|
-
Type: (_Type$
|
|
3262
|
+
Status: (_Status$3 = {}, _Status$3[ServiceRequestStatus.LeadExpert] = 'Лид заведённый экспертом', _Status$3[ServiceRequestStatus.LeadAdv] = 'Лид пришедший с рекламы', _Status$3[ServiceRequestStatus.Booked] = 'Неподтверждённая бронь', _Status$3[ServiceRequestStatus.Approved] = 'Бронь одобренная РОП', _Status$3[ServiceRequestStatus.Declined] = 'Бронь отклонённая РОП', _Status$3[ServiceRequestStatus.Terminated] = 'Контракт расторгнут', _Status$3[ServiceRequestStatus.BookingCanceled] = 'ЗОУ закрыто', _Status$3[ServiceRequestStatus.Prepaid] = 'Получен аванс по сделке', _Status$3[ServiceRequestStatus.DealSigned] = 'Сделка подписана', _Status$3[ServiceRequestStatus.Registered] = 'Документы зарегистрированы', _Status$3[ServiceRequestStatus.DealDone] = 'Сделка закрыта', _Status$3[ServiceRequestStatus.NoPrepayment] = 'Запланирована сделка без аванса', _Status$3[ServiceRequestStatus.PrepaymentPlanned] = 'Запланирован аванс', _Status$3),
|
|
3263
|
+
Type: (_Type$7 = {}, _Type$7[ServiceRequestType.Buy] = 'Покупка', _Type$7[ServiceRequestType.Sell] = 'Продажа', _Type$7),
|
|
3118
3264
|
InvestType: (_InvestType = {}, _InvestType[ServiceRequestInvestType.Buyout] = 'Инвестпроект 1 этапа', _InvestType[ServiceRequestInvestType.Sell] = 'Инвестпроект 2 этапа', _InvestType),
|
|
3119
3265
|
DepublishReason: (_DepublishReason = {}, _DepublishReason[ServiceRequestDepublishReason.TemporaryDepublish] = 'Временное снятие объекта', _DepublishReason[ServiceRequestDepublishReason.DepublishOnAdvance] = 'Снятие объекта на время аванса', _DepublishReason[ServiceRequestDepublishReason.ClientRequest] = 'Просьба клиента убрать объект из рекламы', _DepublishReason[ServiceRequestDepublishReason.DeveloperRequest] = 'Запрет застройщика на размещение рекламы', _DepublishReason[ServiceRequestDepublishReason.BadObject] = 'Неликвидный объект, требуется работа с клиентом', _DepublishReason[ServiceRequestDepublishReason.BadObjectElite] = 'Неликвидный элитный объект', _DepublishReason[ServiceRequestDepublishReason.HardToSellObject] = '“Сложный“ в реализации объект', _DepublishReason[ServiceRequestDepublishReason.CrossSell] = 'Кросспродажи', _DepublishReason),
|
|
3120
3266
|
Source: (_Source = {}, _Source[ServiceRequestSource.Apk] = 'АПК', _Source[ServiceRequestSource.Recommendations] = 'Рекомендации', _Source[ServiceRequestSource.ColdCCMoscow] = 'ХО КЦ Москва', _Source[ServiceRequestSource.ColdCCZelenograd] = 'ХО КЦ Зеленоград', _Source[ServiceRequestSource.ColdCCZhukovsky] = 'ХО КЦ Жуковский', _Source[ServiceRequestSource.Marketing] = 'Маркетинг', _Source[ServiceRequestSource.Test] = 'Тест', _Source[ServiceRequestSource.Other] = 'Другое', _Source)
|
|
3121
3267
|
};
|
|
3122
3268
|
|
|
3123
|
-
var _Type$
|
|
3269
|
+
var _Type$8;
|
|
3124
3270
|
var ServiceRequestActivityDictionary = {
|
|
3125
|
-
Type: (_Type$
|
|
3271
|
+
Type: (_Type$8 = {}, _Type$8[ServiceRequestActivityType.Comment] = 'Комментарий', _Type$8[ServiceRequestActivityType.Edit] = 'Изменения', _Type$8[ServiceRequestActivityType.Transfer] = 'Перевод', _Type$8[ServiceRequestActivityType.Call] = 'Звонок', _Type$8[ServiceRequestActivityType.Task] = 'Задача', _Type$8[ServiceRequestActivityType.Contract] = 'Контракт', _Type$8[ServiceRequestActivityType.PublicationProblem] = 'Ошибка при публикации', _Type$8[ServiceRequestActivityType.MarkedUp] = 'Разметка', _Type$8[ServiceRequestActivityType.Published] = 'Публикация', _Type$8[ServiceRequestActivityType.Republished] = 'Повторная публикация', _Type$8[ServiceRequestActivityType.Depublished] = 'Снятие с публикации', _Type$8[ServiceRequestActivityType.PriceChanged] = 'Изменена цена', _Type$8[ServiceRequestActivityType.RequestPriceDown] = 'Запрос на снижение цены', _Type$8[ServiceRequestActivityType.ContractExpired] = 'Срок контракта истекает', _Type$8[ServiceRequestActivityType.CallTaskCreated] = 'Обращениие создано', _Type$8[ServiceRequestActivityType.RealtyShowScheduled] = 'Показ объекта запланирован', _Type$8[ServiceRequestActivityType.RealtyShowCompleted] = 'Показ объекта выполнен', _Type$8[ServiceRequestActivityType.RealtyShowCancelled] = 'Показ объекта отменен', _Type$8)
|
|
3126
3272
|
};
|
|
3127
3273
|
|
|
3128
3274
|
var _Category$3;
|
|
@@ -3130,16 +3276,16 @@ var ServiceRequestCategorizedFileDictionary = {
|
|
|
3130
3276
|
Category: (_Category$3 = {}, _Category$3[ServiceRequestCategorizedFileCategory.AdvAgreement] = 'Соглашение на рекламу', _Category$3[ServiceRequestCategorizedFileCategory.AdvanceForm] = 'Анкета на аванс', _Category$3[ServiceRequestCategorizedFileCategory.CheckList] = 'Чек-лист со встречи', _Category$3[ServiceRequestCategorizedFileCategory.Contract] = 'Договор оказания услуг', _Category$3[ServiceRequestCategorizedFileCategory.Kc] = 'Файлы от КЦ', _Category$3[ServiceRequestCategorizedFileCategory.Other] = 'Разное (ЗОУ)', _Category$3[ServiceRequestCategorizedFileCategory.OwnershipCheckReport] = 'Отчет проверки собственника', _Category$3[ServiceRequestCategorizedFileCategory.OwnershipJustification] = 'Основание права собственности', _Category$3[ServiceRequestCategorizedFileCategory.PassportClient] = 'Паспорта клиента (свид-ва о рождении)', _Category$3[ServiceRequestCategorizedFileCategory.Egrn] = 'ЕГРН', _Category$3[ServiceRequestCategorizedFileCategory.DeleteReason] = 'Является обоснованием закрытия контракта', _Category$3[ServiceRequestCategorizedFileCategory.OwnershipTransfers] = 'Переходы собственности', _Category$3[ServiceRequestCategorizedFileCategory.Risk] = 'Проверка на риски', _Category$3)
|
|
3131
3277
|
};
|
|
3132
3278
|
|
|
3133
|
-
var _Type$
|
|
3279
|
+
var _Type$9;
|
|
3134
3280
|
var ShapeDictionary = {
|
|
3135
|
-
Type: (_Type$
|
|
3281
|
+
Type: (_Type$9 = {}, _Type$9[ShapeType.AdministrativeDistrict] = 'Административный округ', _Type$9[ShapeType.Block] = 'Квартал', _Type$9[ShapeType.Complex] = 'Новостройка', _Type$9[ShapeType.District] = 'Район', _Type$9[ShapeType.House] = 'Здание', _Type$9[ShapeType.Microdistrict] = 'Микрорайон', _Type$9)
|
|
3136
3282
|
};
|
|
3137
3283
|
|
|
3138
|
-
var _Importance, _NotificationType, _Status$
|
|
3284
|
+
var _Importance, _NotificationType, _Status$4;
|
|
3139
3285
|
var TaskDictionary = {
|
|
3140
3286
|
Importance: (_Importance = {}, _Importance[TaskImportance.Normal] = 'Обычная', _Importance[TaskImportance.High] = 'Высокая', _Importance),
|
|
3141
3287
|
NotificationType: (_NotificationType = {}, _NotificationType[TaskNotificationType.Morning] = 'Утром', _NotificationType[TaskNotificationType.Min15] = 'За 15 минут', _NotificationType[TaskNotificationType.Hour1] = 'За час', _NotificationType[TaskNotificationType.Hour2] = 'За 2 часа', _NotificationType[TaskNotificationType.Nil] = 'Не напоминать', _NotificationType),
|
|
3142
|
-
Status: (_Status$
|
|
3288
|
+
Status: (_Status$4 = {}, _Status$4[TaskStatus.InProgress] = 'В работе', _Status$4[TaskStatus.Resolved] = 'Выполнена', _Status$4[TaskStatus.Closed] = 'Закрыта', _Status$4)
|
|
3143
3289
|
};
|
|
3144
3290
|
|
|
3145
3291
|
var _TelephonyType, _Direction$1, _Gender, _Level, _Office, _Role, _FiredType, _FiredReason, _AttractionChannel;
|
|
@@ -3155,9 +3301,9 @@ var UserDictionary = {
|
|
|
3155
3301
|
AttractionChannel: (_AttractionChannel = {}, _AttractionChannel[UserAttractionChannel.Recommendations] = 'Рекомендации', _AttractionChannel[UserAttractionChannel.PartnersOffice] = 'Офис партнеров', _AttractionChannel[UserAttractionChannel.HeadhunterXOHR] = 'headhunter ХО HR', _AttractionChannel[UserAttractionChannel.HeadhunterXOKC] = 'headhunter ХО КЦ', _AttractionChannel[UserAttractionChannel.KCCianBase] = 'КЦ базы Cian', _AttractionChannel[UserAttractionChannel.HeadhunterResponse] = 'headhunter отклик', _AttractionChannel[UserAttractionChannel.Marketing] = 'Маркетинг', _AttractionChannel[UserAttractionChannel.Site] = 'Сайт', _AttractionChannel[UserAttractionChannel.Activity] = 'Мероприятия', _AttractionChannel[UserAttractionChannel.Webinar] = 'Вебинар', _AttractionChannel[UserAttractionChannel.Other] = 'Другое', _AttractionChannel)
|
|
3156
3302
|
};
|
|
3157
3303
|
|
|
3158
|
-
var _Type$
|
|
3304
|
+
var _Type$a;
|
|
3159
3305
|
var UserPhoneDictionary = {
|
|
3160
|
-
Type: (_Type$
|
|
3306
|
+
Type: (_Type$a = {}, _Type$a[UserPhoneType.Sip] = 'Внутренний', _Type$a[UserPhoneType.Main] = 'Основной', _Type$a[UserPhoneType.Work] = 'Рабочий', _Type$a[UserPhoneType.Home] = 'Домашний', _Type$a[UserPhoneType.VirtualZadarma] = 'Общий виртуальный (ZADARMA)', _Type$a[UserPhoneType.VirtualVox] = 'Общий виртуальный (VOX)', _Type$a[UserPhoneType.CianZadarma] = 'Трекинг ЦИАН (ZADARMA)', _Type$a[UserPhoneType.CianVox] = 'Трекинг ЦИАН (VOX)', _Type$a[UserPhoneType.YandexZadarma] = 'Трекинг Яндекс (ZADARMA)', _Type$a[UserPhoneType.YandexVox] = 'Трекинг Яндекс (VOX)', _Type$a[UserPhoneType.AvitoZadarma] = 'Трекинг Avito (ZADARMA)', _Type$a[UserPhoneType.AvitoVox] = 'Трекинг Avito (VOX)', _Type$a[UserPhoneType.YaBlack] = 'Яндекс black (VOX)', _Type$a[UserPhoneType.CiBlack] = 'ЦИАН black (VOX)', _Type$a)
|
|
3161
3307
|
};
|
|
3162
3308
|
|
|
3163
3309
|
var _Concurrency;
|
|
@@ -3243,6 +3389,14 @@ var Api = function Api(baseURL) {
|
|
|
3243
3389
|
}; // buyer
|
|
3244
3390
|
|
|
3245
3391
|
|
|
3392
|
+
this.callbackBuyer = function (urlParams, headers) {
|
|
3393
|
+
return callbackBuyerRequest({
|
|
3394
|
+
urlParams: urlParams,
|
|
3395
|
+
headers: headers,
|
|
3396
|
+
baseURL: _this.baseURL
|
|
3397
|
+
});
|
|
3398
|
+
};
|
|
3399
|
+
|
|
3246
3400
|
this.countBuyers = function (params, headers) {
|
|
3247
3401
|
return countBuyersRequest({
|
|
3248
3402
|
params: params,
|
|
@@ -3257,6 +3411,13 @@ var Api = function Api(baseURL) {
|
|
|
3257
3411
|
headers: headers,
|
|
3258
3412
|
baseURL: _this.baseURL
|
|
3259
3413
|
});
|
|
3414
|
+
};
|
|
3415
|
+
|
|
3416
|
+
this.findBuyerClosingReason = function (headers) {
|
|
3417
|
+
return findBuyerClosingReasonRequest({
|
|
3418
|
+
headers: headers,
|
|
3419
|
+
baseURL: _this.baseURL
|
|
3420
|
+
});
|
|
3260
3421
|
}; // call
|
|
3261
3422
|
|
|
3262
3423
|
|
|
@@ -3365,6 +3526,14 @@ var Api = function Api(baseURL) {
|
|
|
3365
3526
|
});
|
|
3366
3527
|
};
|
|
3367
3528
|
|
|
3529
|
+
this.findContractById = function (urlParams, headers) {
|
|
3530
|
+
return findContractByIdRequest({
|
|
3531
|
+
urlParams: urlParams,
|
|
3532
|
+
headers: headers,
|
|
3533
|
+
baseURL: _this.baseURL
|
|
3534
|
+
});
|
|
3535
|
+
};
|
|
3536
|
+
|
|
3368
3537
|
this.signContract = function (urlParams, body, headers) {
|
|
3369
3538
|
return signContractRequest({
|
|
3370
3539
|
urlParams: urlParams,
|
|
@@ -3390,6 +3559,22 @@ var Api = function Api(baseURL) {
|
|
|
3390
3559
|
headers: headers,
|
|
3391
3560
|
baseURL: _this.baseURL
|
|
3392
3561
|
});
|
|
3562
|
+
};
|
|
3563
|
+
|
|
3564
|
+
this.createContractLegalDocument = function (urlParams, headers) {
|
|
3565
|
+
return createContractLegalDocumentRequest({
|
|
3566
|
+
urlParams: urlParams,
|
|
3567
|
+
headers: headers,
|
|
3568
|
+
baseURL: _this.baseURL
|
|
3569
|
+
});
|
|
3570
|
+
};
|
|
3571
|
+
|
|
3572
|
+
this.findContractLegalDocumentById = function (urlParams, headers) {
|
|
3573
|
+
return findContractLegalDocumentByIdRequest({
|
|
3574
|
+
urlParams: urlParams,
|
|
3575
|
+
headers: headers,
|
|
3576
|
+
baseURL: _this.baseURL
|
|
3577
|
+
});
|
|
3393
3578
|
}; // deal
|
|
3394
3579
|
|
|
3395
3580
|
|
|
@@ -3903,7 +4088,9 @@ var index = {
|
|
|
3903
4088
|
createBillRequest: createBillRequest,
|
|
3904
4089
|
findBillsRequest: findBillsRequest,
|
|
3905
4090
|
countBuyersRequest: countBuyersRequest,
|
|
4091
|
+
callbackBuyerRequest: callbackBuyerRequest,
|
|
3906
4092
|
findBuyersRequest: findBuyersRequest,
|
|
4093
|
+
findBuyerClosingReasonRequest: findBuyerClosingReasonRequest,
|
|
3907
4094
|
findCallsRequest: findCallsRequest,
|
|
3908
4095
|
findFirstSuccessOutgoingCallsRequest: findFirstSuccessOutgoingCallsRequest,
|
|
3909
4096
|
markupCallRequest: markupCallRequest,
|
|
@@ -3916,10 +4103,13 @@ var index = {
|
|
|
3916
4103
|
findCallTasksRequest: findCallTasksRequest,
|
|
3917
4104
|
approveContractRequest: approveContractRequest,
|
|
3918
4105
|
declineContractRequest: declineContractRequest,
|
|
4106
|
+
findContractByIdRequest: findContractByIdRequest,
|
|
3919
4107
|
findContractsRequest: findContractsRequest,
|
|
3920
4108
|
signContractRequest: signContractRequest,
|
|
3921
4109
|
terminateContractRequest: terminateContractRequest,
|
|
3922
4110
|
upgradeContractRequest: upgradeContractRequest,
|
|
4111
|
+
createContractLegalDocumentRequest: createContractLegalDocumentRequest,
|
|
4112
|
+
findContractLegalDocumentByIdRequest: findContractLegalDocumentByIdRequest,
|
|
3923
4113
|
createDealCategorizedFileRequest: createDealCategorizedFileRequest,
|
|
3924
4114
|
createDealInvestPrepaymentRequest: createDealInvestPrepaymentRequest,
|
|
3925
4115
|
deleteDealCategorizedFileRequest: deleteDealCategorizedFileRequest,
|
|
@@ -3987,6 +4177,7 @@ var index = {
|
|
|
3987
4177
|
CallTaskDictionary: CallTaskDictionary,
|
|
3988
4178
|
ContactDictionary: ContactDictionary,
|
|
3989
4179
|
ContractDictionary: ContractDictionary,
|
|
4180
|
+
ContractLegalDocumentDictionary: ContractLegalDocumentDictionary,
|
|
3990
4181
|
DealDictionary: DealDictionary,
|
|
3991
4182
|
DealCategorizedFileDictionary: DealCategorizedFileDictionary,
|
|
3992
4183
|
DealParticipantDictionary: DealParticipantDictionary,
|
|
@@ -4013,6 +4204,7 @@ var index = {
|
|
|
4013
4204
|
get BillServiceUnit () { return BillServiceUnit; },
|
|
4014
4205
|
get BuyerStatus () { return BuyerStatus; },
|
|
4015
4206
|
get BuyerRealtyShowStatus () { return BuyerRealtyShowStatus; },
|
|
4207
|
+
get BuyerQuestionType () { return BuyerQuestionType; },
|
|
4016
4208
|
get CallType () { return CallType; },
|
|
4017
4209
|
get CallDefaultTelephony () { return CallDefaultTelephony; },
|
|
4018
4210
|
get CallTaskPriority () { return CallTaskPriority; },
|
|
@@ -4025,6 +4217,8 @@ var index = {
|
|
|
4025
4217
|
get ContractType () { return ContractType; },
|
|
4026
4218
|
get ContractStatus () { return ContractStatus; },
|
|
4027
4219
|
get ContractKind () { return ContractKind; },
|
|
4220
|
+
get ContractLegalDocumentStatus () { return ContractLegalDocumentStatus; },
|
|
4221
|
+
get ContractLegalDocumentType () { return ContractLegalDocumentType; },
|
|
4028
4222
|
get DealNoLawyerReason () { return DealNoLawyerReason; },
|
|
4029
4223
|
get DealPartnerDealType () { return DealPartnerDealType; },
|
|
4030
4224
|
get DealStatus () { return DealStatus; },
|
|
@@ -5178,9 +5372,9 @@ var AddressMetroDistanceDictionary = {
|
|
|
5178
5372
|
Method: (_Method = {}, _Method[AddressMetroDistanceMethod.Car] = 'На машине', _Method[AddressMetroDistanceMethod.Foot] = 'Пешком', _Method)
|
|
5179
5373
|
};
|
|
5180
5374
|
|
|
5181
|
-
var _Type$
|
|
5375
|
+
var _Type$b, _DealType, _DealTypeFlatNew, _RenovationType$1, _RenovationTypeFlatNe, _FlatKind, _ParkingType, _FlatType, _WindowView$1, _DDUOwnerType, _Electricity$1, _Gas$1, _Heating, _LandUsageType$1, _LandPurpose, _LandShape$1, _Relief$1, _Plumbing, _Sewerage$1, _HouseType$1, _WallsMaterial$2, _Furniture$1, _AdditionalPriceCurre;
|
|
5182
5376
|
var RealtyDictionary$1 = {
|
|
5183
|
-
Type: (_Type$
|
|
5377
|
+
Type: (_Type$b = {}, _Type$b[RealtyType$1.FlatSecondary] = 'Вторичка', _Type$b[RealtyType$1.FlatNew] = 'Новостройка', _Type$b[RealtyType$1.House] = 'Дом', _Type$b),
|
|
5184
5378
|
DealType: (_DealType = {}, _DealType[RealtyDealType.Free] = 'Свободная продажа', _DealType[RealtyDealType.Alternative] = 'Альтернатива', _DealType),
|
|
5185
5379
|
DealTypeFlatNew: (_DealTypeFlatNew = {}, _DealTypeFlatNew[RealtyDealTypeFlatNew.Reassignment] = 'Договор уступки', _DealTypeFlatNew[RealtyDealTypeFlatNew.DKP] = 'ДКП', _DealTypeFlatNew[RealtyDealTypeFlatNew.DDU] = 'ДДУ', _DealTypeFlatNew[RealtyDealTypeFlatNew.PreSaleContract] = 'Предварительный договор купли-продажи', _DealTypeFlatNew),
|
|
5186
5380
|
RenovationType: (_RenovationType$1 = {}, _RenovationType$1[RealtyRenovationType$1.None] = 'Без ремонта', _RenovationType$1[RealtyRenovationType$1.Author] = 'Авторский', _RenovationType$1[RealtyRenovationType$1.Cosmetic] = 'Косметический', _RenovationType$1[RealtyRenovationType$1.Euro] = 'Евро', _RenovationType$1),
|
|
@@ -6145,9 +6339,9 @@ var AddressBTIParamsDictionary$2 = {
|
|
|
6145
6339
|
HeatingType: (_HeatingType$2 = {}, _HeatingType$2[AddressBTIParamsHeatingType$2.None] = 'Нет', _HeatingType$2[AddressBTIParamsHeatingType$2.Central] = 'Центральное', _HeatingType$2[AddressBTIParamsHeatingType$2.Local] = 'Отдельное', _HeatingType$2[AddressBTIParamsHeatingType$2.Gas] = 'Газовое', _HeatingType$2[AddressBTIParamsHeatingType$2.Electricity] = 'Электрическое', _HeatingType$2[AddressBTIParamsHeatingType$2.Liquid] = 'Жидкое топливо', _HeatingType$2)
|
|
6146
6340
|
};
|
|
6147
6341
|
|
|
6148
|
-
var _Type$
|
|
6342
|
+
var _Type$c, _RenovationType$2, _Gas$2, _HouseType$2, _LandShape$2, _LandUsageType$2, _Relief$2, _Electricity$2, _Furniture$2, _Sewerage$2, _WindowView$2;
|
|
6149
6343
|
var RealtyDictionary$2 = {
|
|
6150
|
-
Type: (_Type$
|
|
6344
|
+
Type: (_Type$c = {}, _Type$c[RealtyType$2.Flat] = 'Квартира', _Type$c[RealtyType$2.House] = 'Дом', _Type$c),
|
|
6151
6345
|
RenovationType: (_RenovationType$2 = {}, _RenovationType$2[RealtyRenovationType$2.None] = 'Без ремонта', _RenovationType$2[RealtyRenovationType$2.Author] = 'Авторский', _RenovationType$2[RealtyRenovationType$2.Cosmetic] = 'Косметический', _RenovationType$2[RealtyRenovationType$2.Euro] = 'Евро', _RenovationType$2[RealtyRenovationType$2.FineFinishing] = 'Чистовая отделка', _RenovationType$2[RealtyRenovationType$2.RoughFinishing] = 'Черновая отделка', _RenovationType$2),
|
|
6152
6346
|
Gas: (_Gas$2 = {}, _Gas$2[RealtyGas$2.None] = 'Нет', _Gas$2[RealtyGas$2.Connected] = 'Подключено', _Gas$2[RealtyGas$2.Border] = 'По границе', _Gas$2[RealtyGas$2.Possible] = 'Возможно', _Gas$2[RealtyGas$2.Autonomous] = 'Автономное', _Gas$2),
|
|
6153
6347
|
HouseType: (_HouseType$2 = {}, _HouseType$2[RealtyHouseType$2.Townhouse] = 'Таунхаус', _HouseType$2[RealtyHouseType$2.House] = 'Дом', _HouseType$2[RealtyHouseType$2.Cottage] = 'Коттедж', _HouseType$2[RealtyHouseType$2.Part] = 'Часть дома', _HouseType$2[RealtyHouseType$2.Duplex] = 'Дуплекс', _HouseType$2),
|
|
@@ -6160,9 +6354,9 @@ var RealtyDictionary$2 = {
|
|
|
6160
6354
|
WindowView: (_WindowView$2 = {}, _WindowView$2[RealtyWindowView$2.Street] = 'На улицу', _WindowView$2[RealtyWindowView$2.Yard] = 'Во двор', _WindowView$2[RealtyWindowView$2.Both] = 'В обе стороны', _WindowView$2)
|
|
6161
6355
|
};
|
|
6162
6356
|
|
|
6163
|
-
var _Type$
|
|
6357
|
+
var _Type$d;
|
|
6164
6358
|
var ShapeDictionary$1 = {
|
|
6165
|
-
Type: (_Type$
|
|
6359
|
+
Type: (_Type$d = {}, _Type$d[ShapeType$1.AdministrativeDistrict] = 'Административный округ', _Type$d[ShapeType$1.Block] = 'Квартал', _Type$d[ShapeType$1.Complex] = 'Новостройка', _Type$d[ShapeType$1.District] = 'Район', _Type$d[ShapeType$1.House] = 'Здание', _Type$d[ShapeType$1.Microdistrict] = 'Микрорайон', _Type$d)
|
|
6166
6360
|
};
|
|
6167
6361
|
|
|
6168
6362
|
var Api$3 = function Api(baseURL) {
|