@snabcentr/common-lib 1.59.2 → 1.60.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/manifest.json +1 -1
- package/dist/release_notes.tmp +3 -3
- package/dist/sc-common-lib.js +313 -336
- package/dist/sc-common-lib.js.map +1 -1
- package/dist/sc-common-lib.umd.cjs +1 -1
- package/dist/sc-common-lib.umd.cjs.map +1 -1
- package/dist/src/catalog/classes/product.d.ts.map +1 -1
- package/dist/src/config/classes/app-base-config.d.ts +0 -16
- package/dist/src/config/classes/app-base-config.d.ts.map +1 -1
- package/dist/src/config/interfaces/i-app-base-config.d.ts +0 -67
- package/dist/src/config/interfaces/i-app-base-config.d.ts.map +1 -1
- package/dist/src/config/interfaces/i-catalog-config.d.ts +29 -0
- package/dist/src/config/interfaces/i-catalog-config.d.ts.map +1 -0
- package/dist/src/config/interfaces/index.d.ts +1 -1
- package/dist/src/config/interfaces/index.d.ts.map +1 -1
- package/dist/src/system/classes/identity.d.ts +4 -4
- package/dist/src/system/classes/identity.d.ts.map +1 -1
- package/dist/src/system/classes/named-identity.d.ts +2 -2
- package/dist/src/system/classes/named-identity.d.ts.map +1 -1
- package/dist/src/system/classes/reference.d.ts +1 -1
- package/dist/src/system/classes/reference.d.ts.map +1 -1
- package/dist/src/system/index.d.ts +0 -1
- package/dist/src/system/index.d.ts.map +1 -1
- package/dist/src/system/interfaces/i-identity.d.ts +2 -2
- package/dist/src/system/interfaces/i-identity.d.ts.map +1 -1
- package/dist/src/system/interfaces/i-named-identity.d.ts +2 -2
- package/dist/src/system/interfaces/i-named-identity.d.ts.map +1 -1
- package/dist/src/system/interfaces/i-reference.d.ts +1 -1
- package/dist/src/system/interfaces/i-reference.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/src/config/interfaces/i-theme.d.ts +0 -10
- package/dist/src/config/interfaces/i-theme.d.ts.map +0 -1
- package/dist/src/system/enums/index.d.ts +0 -2
- package/dist/src/system/enums/index.d.ts.map +0 -1
- package/dist/src/system/enums/window-resolution-enum.d.ts +0 -18
- package/dist/src/system/enums/window-resolution-enum.d.ts.map +0 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var tr = Object.defineProperty;
|
|
2
2
|
var sr = (n, r, e) => r in n ? tr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
3
|
var t = (n, r, e) => sr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
-
import { toUpper as ir, constant as nr, isUndefined as or, isString as m, cloneDeep as cr, noop as y, toLower as lr,
|
|
4
|
+
import { isNil as ee, toUpper as ir, constant as nr, isUndefined as or, isString as m, cloneDeep as cr, noop as y, toLower as lr, isFunction as Se, map as ce, forEach as pr, isDate as ur, isEmpty as hr, isArray as gr } from "lodash-es";
|
|
5
5
|
import { parseISO as f, format as B, addSeconds as mr, isAfter as fr, startOfToday as Fe, addBusinessDays as yr, endOfTomorrow as wr, startOfTomorrow as Cr, endOfYesterday as vr, startOfYesterday as Pr, endOfToday as Rr, endOfDay as Dr, startOfDay as Ar } from "date-fns";
|
|
6
6
|
import $r from "axios";
|
|
7
7
|
import { objectToSnake as ke, objectToCamel as Tr } from "ts-case-convert";
|
|
8
|
-
import { defineStore as
|
|
8
|
+
import { defineStore as me } from "pinia";
|
|
9
9
|
import { ref as C, computed as v } from "vue";
|
|
10
10
|
class H {
|
|
11
11
|
/**
|
|
@@ -15,20 +15,20 @@ class H {
|
|
|
15
15
|
*/
|
|
16
16
|
constructor(r) {
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* @inheritDoc
|
|
19
19
|
*/
|
|
20
20
|
t(this, "id");
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* @inheritDoc
|
|
23
23
|
*/
|
|
24
24
|
t(this, "guid");
|
|
25
|
-
this.id = (r == null ? void 0 : r.id)
|
|
25
|
+
this.id = r == null ? void 0 : r.id, ee(this.id) && (typeof (r == null ? void 0 : r.id) == "number" ? this.id = -1 : typeof (r == null ? void 0 : r.id) == "string" && (this.id = "")), this.guid = (r == null ? void 0 : r.guid) ?? "";
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Возвращает признак, что это новая запись.
|
|
29
29
|
*/
|
|
30
30
|
isNewRec() {
|
|
31
|
-
return this.id === -1;
|
|
31
|
+
return typeof this.id == "number" ? this.id === -1 : (typeof this.id == "string" && (this.id = ""), ee(this.id));
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
class D extends H {
|
|
@@ -69,7 +69,7 @@ class He extends D {
|
|
|
69
69
|
this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
class
|
|
72
|
+
class Ae extends He {
|
|
73
73
|
/**
|
|
74
74
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
75
75
|
*
|
|
@@ -84,7 +84,7 @@ class De extends He {
|
|
|
84
84
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
class
|
|
87
|
+
class ie extends Ae {
|
|
88
88
|
/**
|
|
89
89
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
90
90
|
*
|
|
@@ -131,7 +131,7 @@ class w extends D {
|
|
|
131
131
|
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
class
|
|
134
|
+
class fe extends w {
|
|
135
135
|
/**
|
|
136
136
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
137
137
|
*/
|
|
@@ -139,7 +139,7 @@ class me extends w {
|
|
|
139
139
|
return { id: -2, slug: ze.Retail, name: "Розн. цена", guid: "", isNewRec: nr(!0) };
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
class
|
|
142
|
+
class ae {
|
|
143
143
|
/**
|
|
144
144
|
* Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
|
|
145
145
|
*
|
|
@@ -166,7 +166,7 @@ class Le {
|
|
|
166
166
|
* Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
|
|
167
167
|
*/
|
|
168
168
|
t(this, "readOnly");
|
|
169
|
-
this.coefficient = new
|
|
169
|
+
this.coefficient = new fe(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
class Be {
|
|
@@ -189,7 +189,7 @@ class Be {
|
|
|
189
189
|
}
|
|
190
190
|
class K extends w {
|
|
191
191
|
}
|
|
192
|
-
class
|
|
192
|
+
class ye extends w {
|
|
193
193
|
/**
|
|
194
194
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
195
195
|
*
|
|
@@ -236,7 +236,7 @@ class br {
|
|
|
236
236
|
* Количество остатков товара на складе.
|
|
237
237
|
*/
|
|
238
238
|
t(this, "count");
|
|
239
|
-
this.warehouse = new
|
|
239
|
+
this.warehouse = new ye(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
const j = class j {
|
|
@@ -393,17 +393,18 @@ class _ extends _r {
|
|
|
393
393
|
t(this, "priceCoefficients");
|
|
394
394
|
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = m(e == null ? void 0 : e.costDate) ? f(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((g) => new br(g))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
395
395
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
|
|
396
|
-
s && (this.category = new
|
|
396
|
+
s && (this.category = new Ae({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new Ae(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new Sr(g, T.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((g) => new ae(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
397
397
|
}
|
|
398
398
|
/**
|
|
399
399
|
* Возвращает признак, что это измеряемый товар.
|
|
400
400
|
*/
|
|
401
401
|
getIsMeasurable() {
|
|
402
|
-
|
|
403
|
-
|
|
402
|
+
var s;
|
|
403
|
+
const e = (s = T.getConfig().catalog) == null ? void 0 : s.products.units;
|
|
404
|
+
return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
|
|
404
405
|
}
|
|
405
406
|
}
|
|
406
|
-
class
|
|
407
|
+
class ar extends H {
|
|
407
408
|
/**
|
|
408
409
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
409
410
|
*
|
|
@@ -455,10 +456,10 @@ class Lr extends H {
|
|
|
455
456
|
* Признак того, что позиция является дополнительной продажей.
|
|
456
457
|
*/
|
|
457
458
|
t(this, "isAdditionalSale");
|
|
458
|
-
this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new
|
|
459
|
+
this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ie(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && cr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
|
-
class
|
|
462
|
+
class Lr extends ar {
|
|
462
463
|
/**
|
|
463
464
|
* Инициализирует экземпляр класса {@link CartItem}.
|
|
464
465
|
*
|
|
@@ -508,7 +509,7 @@ class ar extends Lr {
|
|
|
508
509
|
this.currency = e.currency, this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing;
|
|
509
510
|
}
|
|
510
511
|
}
|
|
511
|
-
class
|
|
512
|
+
class oe {
|
|
512
513
|
/**
|
|
513
514
|
* Инициализирует экземпляр класса {@link Cart}.
|
|
514
515
|
*
|
|
@@ -527,7 +528,7 @@ class ne {
|
|
|
527
528
|
* Список итоговых сумм по направлениям продаж.
|
|
528
529
|
*/
|
|
529
530
|
t(this, "directionsSum");
|
|
530
|
-
this.items = r.items.map((e) => new
|
|
531
|
+
this.items = r.items.map((e) => new Lr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
531
532
|
}
|
|
532
533
|
}
|
|
533
534
|
class Ir {
|
|
@@ -641,7 +642,7 @@ class Nr {
|
|
|
641
642
|
this.date = m(r == null ? void 0 : r.date) ? f(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
|
|
642
643
|
}
|
|
643
644
|
}
|
|
644
|
-
class
|
|
645
|
+
class ft {
|
|
645
646
|
/**
|
|
646
647
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
647
648
|
*
|
|
@@ -652,10 +653,6 @@ class yt {
|
|
|
652
653
|
* Тип окружения.
|
|
653
654
|
*/
|
|
654
655
|
t(this, "environment");
|
|
655
|
-
/**
|
|
656
|
-
* Название текущего домена.
|
|
657
|
-
*/
|
|
658
|
-
t(this, "currentDomain");
|
|
659
656
|
/**
|
|
660
657
|
* Параметры разработки и отладки.
|
|
661
658
|
*/
|
|
@@ -668,10 +665,6 @@ class yt {
|
|
|
668
665
|
* Список условного отношения разрешения экрана и типа устройств.
|
|
669
666
|
*/
|
|
670
667
|
t(this, "deviceTypeByResolution");
|
|
671
|
-
/**
|
|
672
|
-
* Настройки продуктов.
|
|
673
|
-
*/
|
|
674
|
-
t(this, "products");
|
|
675
668
|
/**
|
|
676
669
|
* Настройки системы журналирования ошибок Sentry.
|
|
677
670
|
*/
|
|
@@ -688,32 +681,18 @@ class yt {
|
|
|
688
681
|
* Форматы дат.
|
|
689
682
|
*/
|
|
690
683
|
t(this, "dateFormats");
|
|
691
|
-
/**
|
|
692
|
-
* Параметры тем для различных устройств.
|
|
693
|
-
*/
|
|
694
|
-
t(this, "themes");
|
|
695
|
-
/**
|
|
696
|
-
* Минимальная длина поискового запроса.
|
|
697
|
-
*/
|
|
698
|
-
t(this, "minSearchTermLength");
|
|
699
684
|
var e, s, i;
|
|
700
|
-
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.
|
|
701
|
-
units: {
|
|
702
|
-
linear: ["пог.м.", "м."],
|
|
703
|
-
square: ["м2"]
|
|
704
|
-
},
|
|
705
|
-
...r == null ? void 0 : r.products
|
|
706
|
-
}, this.sentry = new kr({
|
|
685
|
+
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new xr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Ir(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new kr({
|
|
707
686
|
environment: this.environment,
|
|
708
687
|
...r == null ? void 0 : r.sentry
|
|
709
688
|
}), this.urls = r == null ? void 0 : r.urls, this.version = new Nr(r == null ? void 0 : r.version), this.dateFormats = {
|
|
710
689
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
711
690
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
712
691
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
713
|
-
}
|
|
692
|
+
};
|
|
714
693
|
}
|
|
715
694
|
}
|
|
716
|
-
class
|
|
695
|
+
class Le {
|
|
717
696
|
/**
|
|
718
697
|
* Инициализирует экземпляр указанного класса.
|
|
719
698
|
*
|
|
@@ -732,7 +711,7 @@ class ae {
|
|
|
732
711
|
return new r(e);
|
|
733
712
|
}
|
|
734
713
|
}
|
|
735
|
-
const
|
|
714
|
+
const a = class a {
|
|
736
715
|
/**
|
|
737
716
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
738
717
|
*
|
|
@@ -753,11 +732,11 @@ const L = class L {
|
|
|
753
732
|
*/
|
|
754
733
|
t(this, "defaultInstanceNotificationErrorResponseHandler", y);
|
|
755
734
|
const s = T.getConfig().version;
|
|
756
|
-
this.defaultInstanceNotificationErrorResponseHandler =
|
|
735
|
+
this.defaultInstanceNotificationErrorResponseHandler = a.baseDefaultNotificationErrorResponseHandler, this.httpClient = $r.create({
|
|
757
736
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
758
737
|
baseURL: r,
|
|
759
738
|
headers: {
|
|
760
|
-
"APP-VERSION": `${s.name} (${s.version}, ${B(s.date, T.getConfig().dateFormats.
|
|
739
|
+
"APP-VERSION": `${s.name} (${s.version}, ${B(s.date, T.getConfig().dateFormats.uiDate)})`,
|
|
761
740
|
Accept: "application/json",
|
|
762
741
|
"Content-Type": "application/json",
|
|
763
742
|
...e
|
|
@@ -768,7 +747,7 @@ const L = class L {
|
|
|
768
747
|
), this.httpClient.interceptors.response.use(
|
|
769
748
|
(i) => (i.data && (i.data = Tr(i.data)), i),
|
|
770
749
|
// Возвращаем изменённую структуру сообщения об ошибке.
|
|
771
|
-
(i) =>
|
|
750
|
+
(i) => a.convertHttpErrorResponse(i)
|
|
772
751
|
);
|
|
773
752
|
}
|
|
774
753
|
/**
|
|
@@ -777,7 +756,7 @@ const L = class L {
|
|
|
777
756
|
* @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
|
|
778
757
|
*/
|
|
779
758
|
static setBaseDefaultNotificationErrorResponseHandler(r) {
|
|
780
|
-
|
|
759
|
+
a.baseDefaultNotificationErrorResponseHandler = r;
|
|
781
760
|
}
|
|
782
761
|
/**
|
|
783
762
|
* Возвращает экземпляр объекта текущего класса.
|
|
@@ -785,7 +764,7 @@ const L = class L {
|
|
|
785
764
|
* @param type Тип данных, которыми оперирует метод.
|
|
786
765
|
*/
|
|
787
766
|
static getInstance(r) {
|
|
788
|
-
return Object.prototype.hasOwnProperty.call(
|
|
767
|
+
return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = Le.simpleInstanceInitializer(r)), a.instances[r.name];
|
|
789
768
|
}
|
|
790
769
|
/**
|
|
791
770
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -880,16 +859,16 @@ const L = class L {
|
|
|
880
859
|
* Экземпляр объекта текущего класса.
|
|
881
860
|
*/
|
|
882
861
|
// eslint-disable-next-line no-use-before-define
|
|
883
|
-
t(
|
|
862
|
+
t(a, "instances", {}), /**
|
|
884
863
|
* Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
|
|
885
864
|
*
|
|
886
865
|
* Параметры:
|
|
887
866
|
* - error Данные об ошибке.
|
|
888
867
|
* - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
889
868
|
*/
|
|
890
|
-
t(
|
|
891
|
-
let
|
|
892
|
-
const V = class V extends
|
|
869
|
+
t(a, "baseDefaultNotificationErrorResponseHandler", y);
|
|
870
|
+
let $e = a;
|
|
871
|
+
const V = class V extends $e {
|
|
893
872
|
/**
|
|
894
873
|
* Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
|
|
895
874
|
*
|
|
@@ -940,7 +919,7 @@ const V = class V extends Ae {
|
|
|
940
919
|
getTypedDataArrayRequester(e, s, i = !1) {
|
|
941
920
|
const o = i ? V.getCachedResponse(s) : void 0;
|
|
942
921
|
return o ? Promise.resolve(o) : this.get(s).then((l) => {
|
|
943
|
-
const p = l.map((g) =>
|
|
922
|
+
const p = l.map((g) => Le.instanceInitializer(e, g));
|
|
944
923
|
return i && p && this.cacheResponse(s, p), p;
|
|
945
924
|
});
|
|
946
925
|
}
|
|
@@ -949,8 +928,8 @@ const V = class V extends Ae {
|
|
|
949
928
|
* Кэш результатов запросов.
|
|
950
929
|
*/
|
|
951
930
|
t(V, "responseDataCache", /* @__PURE__ */ new Map());
|
|
952
|
-
let
|
|
953
|
-
class u extends
|
|
931
|
+
let Te = V;
|
|
932
|
+
class u extends Te {
|
|
954
933
|
/**
|
|
955
934
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
956
935
|
*/
|
|
@@ -960,7 +939,7 @@ class u extends $e {
|
|
|
960
939
|
(s = r.devMode) != null && s.authBearerToken && (e.Authorization = `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
|
|
961
940
|
}
|
|
962
941
|
}
|
|
963
|
-
class
|
|
942
|
+
class yt extends u {
|
|
964
943
|
/**
|
|
965
944
|
* Возвращает содержимое корзины указанного клиента.
|
|
966
945
|
*
|
|
@@ -969,7 +948,7 @@ class wt extends u {
|
|
|
969
948
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_get
|
|
970
949
|
*/
|
|
971
950
|
getCart(r) {
|
|
972
|
-
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new
|
|
951
|
+
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new oe(e.data));
|
|
973
952
|
}
|
|
974
953
|
/**
|
|
975
954
|
* Удаляет всё содержимое корзины.
|
|
@@ -1007,7 +986,7 @@ class wt extends u {
|
|
|
1007
986
|
isAdditionalSale: e.isAdditionalSale,
|
|
1008
987
|
...e.configuratorParams
|
|
1009
988
|
},
|
|
1010
|
-
(i) => new
|
|
989
|
+
(i) => new oe(i.data),
|
|
1011
990
|
s
|
|
1012
991
|
);
|
|
1013
992
|
}
|
|
@@ -1037,7 +1016,7 @@ class wt extends u {
|
|
|
1037
1016
|
isAdditionalSale: e.isAdditionalSale,
|
|
1038
1017
|
...e.configuratorParams
|
|
1039
1018
|
},
|
|
1040
|
-
(i) => new
|
|
1019
|
+
(i) => new oe(i.data),
|
|
1041
1020
|
s
|
|
1042
1021
|
);
|
|
1043
1022
|
}
|
|
@@ -1060,11 +1039,11 @@ class wt extends u {
|
|
|
1060
1039
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
|
|
1061
1040
|
*/
|
|
1062
1041
|
addCartItemFromCSV(r) {
|
|
1063
|
-
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new
|
|
1042
|
+
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new oe(e.data));
|
|
1064
1043
|
}
|
|
1065
1044
|
}
|
|
1066
|
-
var Or = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Or || {}), Ie = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ie || {}),
|
|
1067
|
-
class
|
|
1045
|
+
var Or = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Or || {}), Ie = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ie || {}), dr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(dr || {});
|
|
1046
|
+
class q extends ie {
|
|
1068
1047
|
/**
|
|
1069
1048
|
* Инициализирует экземпляр класса {@link Category}.
|
|
1070
1049
|
*
|
|
@@ -1081,10 +1060,9 @@ class U extends se {
|
|
|
1081
1060
|
* Список продуктов категории.
|
|
1082
1061
|
*/
|
|
1083
1062
|
t(this, "products");
|
|
1084
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new
|
|
1063
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new q(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new _(o));
|
|
1085
1064
|
}
|
|
1086
1065
|
}
|
|
1087
|
-
var Ur = /* @__PURE__ */ ((n) => (n.phone = "phone", n.tablet = "tablet", n.laptop = "laptop", n))(Ur || {});
|
|
1088
1066
|
class We extends D {
|
|
1089
1067
|
/**
|
|
1090
1068
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
@@ -1100,7 +1078,7 @@ class We extends D {
|
|
|
1100
1078
|
this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1101
1079
|
}
|
|
1102
1080
|
}
|
|
1103
|
-
class
|
|
1081
|
+
class qr extends We {
|
|
1104
1082
|
/**
|
|
1105
1083
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1106
1084
|
*
|
|
@@ -1115,7 +1093,7 @@ class dr extends We {
|
|
|
1115
1093
|
this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1116
1094
|
}
|
|
1117
1095
|
}
|
|
1118
|
-
class
|
|
1096
|
+
class wt {
|
|
1119
1097
|
/**
|
|
1120
1098
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
1121
1099
|
*
|
|
@@ -1149,7 +1127,7 @@ class Ct {
|
|
|
1149
1127
|
);
|
|
1150
1128
|
}
|
|
1151
1129
|
}
|
|
1152
|
-
class
|
|
1130
|
+
class U extends D {
|
|
1153
1131
|
/**
|
|
1154
1132
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
1155
1133
|
*
|
|
@@ -1164,7 +1142,7 @@ class d extends D {
|
|
|
1164
1142
|
this.type = e == null ? void 0 : e.type;
|
|
1165
1143
|
}
|
|
1166
1144
|
}
|
|
1167
|
-
class
|
|
1145
|
+
class Ur extends D {
|
|
1168
1146
|
/**
|
|
1169
1147
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1170
1148
|
*
|
|
@@ -1200,7 +1178,7 @@ class Gr extends D {
|
|
|
1200
1178
|
* Дата и время удаления.
|
|
1201
1179
|
*/
|
|
1202
1180
|
t(this, "deletedAt");
|
|
1203
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = m(e == null ? void 0 : e.publishedAt) ? f(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new
|
|
1181
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = m(e == null ? void 0 : e.publishedAt) ? f(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new U(e == null ? void 0 : e.owner), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1204
1182
|
}
|
|
1205
1183
|
}
|
|
1206
1184
|
class W extends We {
|
|
@@ -1258,10 +1236,10 @@ class J extends _ {
|
|
|
1258
1236
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1259
1237
|
*/
|
|
1260
1238
|
t(this, "isFavorite");
|
|
1261
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ie.Product, this.discount = e != null && e.discount ? new
|
|
1239
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ie.Product, this.discount = e != null && e.discount ? new Ur(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
|
|
1262
1240
|
}
|
|
1263
1241
|
}
|
|
1264
|
-
class
|
|
1242
|
+
class Gr {
|
|
1265
1243
|
/**
|
|
1266
1244
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1267
1245
|
*
|
|
@@ -1281,7 +1259,7 @@ class Mr {
|
|
|
1281
1259
|
}
|
|
1282
1260
|
class S extends w {
|
|
1283
1261
|
}
|
|
1284
|
-
class
|
|
1262
|
+
class re extends D {
|
|
1285
1263
|
/**
|
|
1286
1264
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1287
1265
|
*
|
|
@@ -1305,10 +1283,10 @@ class ee extends D {
|
|
|
1305
1283
|
* Признак того, что менеджер является основным для клиента.
|
|
1306
1284
|
*/
|
|
1307
1285
|
t(this, "isDefault");
|
|
1308
|
-
e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new
|
|
1286
|
+
e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Gr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1309
1287
|
}
|
|
1310
1288
|
}
|
|
1311
|
-
class
|
|
1289
|
+
class we extends re {
|
|
1312
1290
|
/**
|
|
1313
1291
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1314
1292
|
*
|
|
@@ -1339,7 +1317,7 @@ class ye extends ee {
|
|
|
1339
1317
|
this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId;
|
|
1340
1318
|
}
|
|
1341
1319
|
}
|
|
1342
|
-
class
|
|
1320
|
+
class Mr extends ie {
|
|
1343
1321
|
/**
|
|
1344
1322
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1345
1323
|
*
|
|
@@ -1367,10 +1345,10 @@ class Fr extends se {
|
|
|
1367
1345
|
* Данные о менеджере за которым закреплена категория.
|
|
1368
1346
|
*/
|
|
1369
1347
|
t(this, "manager");
|
|
1370
|
-
this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new
|
|
1348
|
+
this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new we(e.manager) : void 0;
|
|
1371
1349
|
}
|
|
1372
1350
|
}
|
|
1373
|
-
class
|
|
1351
|
+
class le extends Mr {
|
|
1374
1352
|
/**
|
|
1375
1353
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1376
1354
|
*
|
|
@@ -1387,7 +1365,7 @@ class ce extends Fr {
|
|
|
1387
1365
|
* Список продуктов категории.
|
|
1388
1366
|
*/
|
|
1389
1367
|
t(this, "products");
|
|
1390
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new
|
|
1368
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new le(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new J(o));
|
|
1391
1369
|
}
|
|
1392
1370
|
}
|
|
1393
1371
|
class je {
|
|
@@ -1405,10 +1383,10 @@ class je {
|
|
|
1405
1383
|
* Процент, который прибавляется к значению выбранного коэффициента.
|
|
1406
1384
|
*/
|
|
1407
1385
|
t(this, "increasePercent");
|
|
1408
|
-
this.coefficient = (r == null ? void 0 : r.coefficient) && new
|
|
1386
|
+
this.coefficient = (r == null ? void 0 : r.coefficient) && new fe(r.coefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1409
1387
|
}
|
|
1410
1388
|
}
|
|
1411
|
-
class
|
|
1389
|
+
class ve extends je {
|
|
1412
1390
|
/**
|
|
1413
1391
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1414
1392
|
*
|
|
@@ -1420,12 +1398,12 @@ class Ce extends je {
|
|
|
1420
1398
|
* Базовые данные о продукте.
|
|
1421
1399
|
*/
|
|
1422
1400
|
t(this, "productCategory");
|
|
1423
|
-
this.productCategory = new
|
|
1401
|
+
this.productCategory = new ie(e == null ? void 0 : e.productCategory);
|
|
1424
1402
|
}
|
|
1425
1403
|
}
|
|
1426
1404
|
class Q extends w {
|
|
1427
1405
|
}
|
|
1428
|
-
class
|
|
1406
|
+
class te extends w {
|
|
1429
1407
|
/**
|
|
1430
1408
|
* Инициализирует экземпляр класса {@link Region}.
|
|
1431
1409
|
*
|
|
@@ -1440,7 +1418,7 @@ class re extends w {
|
|
|
1440
1418
|
e && (this.country = new Q(e.country));
|
|
1441
1419
|
}
|
|
1442
1420
|
}
|
|
1443
|
-
class
|
|
1421
|
+
class pe extends w {
|
|
1444
1422
|
/**
|
|
1445
1423
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
1446
1424
|
*
|
|
@@ -1451,8 +1429,8 @@ class le extends w {
|
|
|
1451
1429
|
/**
|
|
1452
1430
|
* Данные о регионе, в котором расположен город.
|
|
1453
1431
|
*/
|
|
1454
|
-
t(this, "region", new
|
|
1455
|
-
e && (this.region = new
|
|
1432
|
+
t(this, "region", new te());
|
|
1433
|
+
e && (this.region = new te(e.region));
|
|
1456
1434
|
}
|
|
1457
1435
|
}
|
|
1458
1436
|
class Ve extends D {
|
|
@@ -1494,7 +1472,7 @@ class Ve extends D {
|
|
|
1494
1472
|
this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new S(e.salesDirection) : void 0, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = m(e == null ? void 0 : e.lastLoginAt) ? f(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1495
1473
|
}
|
|
1496
1474
|
}
|
|
1497
|
-
class
|
|
1475
|
+
class ne extends Ve {
|
|
1498
1476
|
/**
|
|
1499
1477
|
* Инициализирует экземпляр класса {@link Client}.
|
|
1500
1478
|
*
|
|
@@ -1536,7 +1514,7 @@ class ie extends Ve {
|
|
|
1536
1514
|
* Список менеджеров клиента.
|
|
1537
1515
|
*/
|
|
1538
1516
|
t(this, "managers");
|
|
1539
|
-
this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new
|
|
1517
|
+
this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new pe(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new re(i))) ?? [];
|
|
1540
1518
|
}
|
|
1541
1519
|
}
|
|
1542
1520
|
class Y extends H {
|
|
@@ -1563,10 +1541,10 @@ class Y extends H {
|
|
|
1563
1541
|
* Данные шаблона прайс-листа.
|
|
1564
1542
|
*/
|
|
1565
1543
|
t(this, "priceTemplate");
|
|
1566
|
-
this.startAt = m(e == null ? void 0 : e.startAt) ? f(e.startAt) : (e == null ? void 0 : e.startAt) ?? /* @__PURE__ */ new Date(), this.endAt = m(e == null ? void 0 : e.endAt) ? f(e.endAt) : (e == null ? void 0 : e.endAt) ?? /* @__PURE__ */ new Date(), this.client = new
|
|
1544
|
+
this.startAt = m(e == null ? void 0 : e.startAt) ? f(e.startAt) : (e == null ? void 0 : e.startAt) ?? /* @__PURE__ */ new Date(), this.endAt = m(e == null ? void 0 : e.endAt) ? f(e.endAt) : (e == null ? void 0 : e.endAt) ?? /* @__PURE__ */ new Date(), this.client = new ne(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
|
|
1567
1545
|
}
|
|
1568
1546
|
}
|
|
1569
|
-
class
|
|
1547
|
+
class Pe extends je {
|
|
1570
1548
|
/**
|
|
1571
1549
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1572
1550
|
*
|
|
@@ -1643,7 +1621,7 @@ class O {
|
|
|
1643
1621
|
this.from = m(r == null ? void 0 : r.from) ? f(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = m(r == null ? void 0 : r.to) ? f(r.to) : (r == null ? void 0 : r.to) ?? null;
|
|
1644
1622
|
}
|
|
1645
1623
|
}
|
|
1646
|
-
class
|
|
1624
|
+
class Ct {
|
|
1647
1625
|
/**
|
|
1648
1626
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
1649
1627
|
*
|
|
@@ -1703,19 +1681,19 @@ class vt {
|
|
|
1703
1681
|
return Object.keys(this).forEach((l) => {
|
|
1704
1682
|
const p = this[l];
|
|
1705
1683
|
// eslint-disable-next-line prettier/prettier
|
|
1706
|
-
|
|
1684
|
+
ee(p) || m(p) && p.trim().length === 0 || Se(p.isNewRec) && p.isNewRec() || (r[l] = p);
|
|
1707
1685
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
|
|
1708
1686
|
}
|
|
1709
1687
|
}
|
|
1710
|
-
class
|
|
1688
|
+
class Fr extends w {
|
|
1711
1689
|
}
|
|
1712
1690
|
class Ke extends w {
|
|
1713
1691
|
}
|
|
1714
|
-
class
|
|
1692
|
+
class vt extends w {
|
|
1715
1693
|
}
|
|
1716
|
-
class
|
|
1694
|
+
class Hr extends w {
|
|
1717
1695
|
}
|
|
1718
|
-
class
|
|
1696
|
+
class ue extends D {
|
|
1719
1697
|
/**
|
|
1720
1698
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
1721
1699
|
*
|
|
@@ -1748,15 +1726,15 @@ class G extends w {
|
|
|
1748
1726
|
});
|
|
1749
1727
|
}
|
|
1750
1728
|
}
|
|
1751
|
-
class
|
|
1729
|
+
class zr extends w {
|
|
1752
1730
|
}
|
|
1753
|
-
class
|
|
1731
|
+
class Br extends w {
|
|
1754
1732
|
}
|
|
1755
1733
|
class M extends w {
|
|
1756
1734
|
}
|
|
1757
|
-
class
|
|
1735
|
+
class Wr extends w {
|
|
1758
1736
|
}
|
|
1759
|
-
class
|
|
1737
|
+
class jr extends w {
|
|
1760
1738
|
}
|
|
1761
1739
|
class Je extends w {
|
|
1762
1740
|
}
|
|
@@ -1771,7 +1749,7 @@ class R extends u {
|
|
|
1771
1749
|
* и использовать в случае аналогичных запросов.
|
|
1772
1750
|
*/
|
|
1773
1751
|
getReference(r, e = !1) {
|
|
1774
|
-
return this.getTypedDataArrayRequester(
|
|
1752
|
+
return this.getTypedDataArrayRequester(Fr, `/internal/references/${r}`, e);
|
|
1775
1753
|
}
|
|
1776
1754
|
/**
|
|
1777
1755
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
@@ -1784,13 +1762,13 @@ class R extends u {
|
|
|
1784
1762
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
1785
1763
|
*/
|
|
1786
1764
|
getContactPositions() {
|
|
1787
|
-
return this.getTypedDataArrayRequester(
|
|
1765
|
+
return this.getTypedDataArrayRequester(Hr, "/internal/references/contact-position", !0);
|
|
1788
1766
|
}
|
|
1789
1767
|
/**
|
|
1790
1768
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
1791
1769
|
*/
|
|
1792
1770
|
getCurrency() {
|
|
1793
|
-
return this.getTypedDataArrayRequester(
|
|
1771
|
+
return this.getTypedDataArrayRequester(ue, "/public/references/currency", !0);
|
|
1794
1772
|
}
|
|
1795
1773
|
/**
|
|
1796
1774
|
* Возвращает {@link Promise} для получения справочника данных
|
|
@@ -1809,19 +1787,19 @@ class R extends u {
|
|
|
1809
1787
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
1810
1788
|
*/
|
|
1811
1789
|
getOrderPaymentStatuses() {
|
|
1812
|
-
return this.getTypedDataArrayRequester(
|
|
1790
|
+
return this.getTypedDataArrayRequester(zr, "/public/references/order-payment-status", !0);
|
|
1813
1791
|
}
|
|
1814
1792
|
/**
|
|
1815
1793
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
1816
1794
|
*/
|
|
1817
1795
|
getOrderStatuses() {
|
|
1818
|
-
return this.getTypedDataArrayRequester(
|
|
1796
|
+
return this.getTypedDataArrayRequester(Br, "/public/references/order-status", !0);
|
|
1819
1797
|
}
|
|
1820
1798
|
/**
|
|
1821
1799
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
1822
1800
|
*/
|
|
1823
1801
|
getPaymentTypes() {
|
|
1824
|
-
return this.getTypedDataArrayRequester(
|
|
1802
|
+
return this.getTypedDataArrayRequester(Wr, "/public/references/payment-type", !0);
|
|
1825
1803
|
}
|
|
1826
1804
|
/**
|
|
1827
1805
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
@@ -1847,7 +1825,7 @@ class R extends u {
|
|
|
1847
1825
|
* @param term Терм поиска.
|
|
1848
1826
|
*/
|
|
1849
1827
|
searchCity(r) {
|
|
1850
|
-
return this.getTypedDataArrayRequester(
|
|
1828
|
+
return this.getTypedDataArrayRequester(pe, `/internal/references/city-with-region-and-country/search?term=${r}`);
|
|
1851
1829
|
}
|
|
1852
1830
|
/**
|
|
1853
1831
|
* Выполняет поиск данных о регионах по терму в названии.
|
|
@@ -1855,7 +1833,7 @@ class R extends u {
|
|
|
1855
1833
|
* @param term Терм поиска.
|
|
1856
1834
|
*/
|
|
1857
1835
|
searchRegion(r) {
|
|
1858
|
-
return this.getTypedDataArrayRequester(
|
|
1836
|
+
return this.getTypedDataArrayRequester(te, `/internal/references/region-with-country/search?term=${r}`);
|
|
1859
1837
|
}
|
|
1860
1838
|
/**
|
|
1861
1839
|
* Выполняет поиск данных о странах по терму в названии.
|
|
@@ -1875,7 +1853,7 @@ class R extends u {
|
|
|
1875
1853
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
1876
1854
|
*/
|
|
1877
1855
|
getWarehouses() {
|
|
1878
|
-
return this.getTypedDataArrayRequester(
|
|
1856
|
+
return this.getTypedDataArrayRequester(ye, "/public/references/warehouse", !0);
|
|
1879
1857
|
}
|
|
1880
1858
|
/**
|
|
1881
1859
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
@@ -1887,17 +1865,17 @@ class R extends u {
|
|
|
1887
1865
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
1888
1866
|
*/
|
|
1889
1867
|
getPriceCoefficients() {
|
|
1890
|
-
return this.getTypedDataArrayRequester(
|
|
1868
|
+
return this.getTypedDataArrayRequester(fe, "/internal/references/price-coefficient", !0);
|
|
1891
1869
|
}
|
|
1892
1870
|
/**
|
|
1893
1871
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
1894
1872
|
*/
|
|
1895
1873
|
getProductFileType() {
|
|
1896
|
-
return this.getTypedDataArrayRequester(
|
|
1874
|
+
return this.getTypedDataArrayRequester(jr, "/public/references/product-file-type", !0);
|
|
1897
1875
|
}
|
|
1898
1876
|
}
|
|
1899
|
-
var
|
|
1900
|
-
class
|
|
1877
|
+
var Vr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Vr || {});
|
|
1878
|
+
class Er extends Ve {
|
|
1901
1879
|
/**
|
|
1902
1880
|
* Инициализирует экземпляр класса {@link User}.
|
|
1903
1881
|
*
|
|
@@ -1920,16 +1898,16 @@ class Kr extends Ve {
|
|
|
1920
1898
|
this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo;
|
|
1921
1899
|
}
|
|
1922
1900
|
}
|
|
1923
|
-
class
|
|
1901
|
+
class Kr extends u {
|
|
1924
1902
|
/**
|
|
1925
1903
|
* Возвращает данные о текущем пользователе.
|
|
1926
1904
|
*/
|
|
1927
1905
|
// eslint-disable-next-line class-methods-use-this
|
|
1928
1906
|
getCurrentUser() {
|
|
1929
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
1907
|
+
return this.get("/internal/users/info", {}, (r) => new Er(r.data));
|
|
1930
1908
|
}
|
|
1931
1909
|
}
|
|
1932
|
-
class
|
|
1910
|
+
class Jr {
|
|
1933
1911
|
/**
|
|
1934
1912
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
1935
1913
|
*
|
|
@@ -1972,7 +1950,7 @@ class Qr {
|
|
|
1972
1950
|
* Данные о валюте.
|
|
1973
1951
|
*/
|
|
1974
1952
|
t(this, "currency");
|
|
1975
|
-
this.cost = r.cost, this.costDate = m(r.costDate) ? f(r.costDate) : r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new
|
|
1953
|
+
this.cost = r.cost, this.costDate = m(r.costDate) ? f(r.costDate) : r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new U(r.client) : void 0, this.executor = r.executor ? new U(r.executor) : void 0, this.currency = r.currency ? new ue(r.currency) : void 0;
|
|
1976
1954
|
}
|
|
1977
1955
|
}
|
|
1978
1956
|
class Ne {
|
|
@@ -1990,7 +1968,7 @@ class Ne {
|
|
|
1990
1968
|
* Список рекомендованных категорий продуктов.
|
|
1991
1969
|
*/
|
|
1992
1970
|
t(this, "productCategories", []);
|
|
1993
|
-
r != null && r.products && (this.products = r.products.map((e) => new _(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new
|
|
1971
|
+
r != null && r.products && (this.products = r.products.map((e) => new _(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new q(e)));
|
|
1994
1972
|
}
|
|
1995
1973
|
}
|
|
1996
1974
|
class Z extends D {
|
|
@@ -2047,10 +2025,10 @@ class Oe {
|
|
|
2047
2025
|
* Минимальный коэффициент цены.
|
|
2048
2026
|
*/
|
|
2049
2027
|
t(this, "minCoefficient");
|
|
2050
|
-
this.role = new Z(r == null ? void 0 : r.role), this.category = new
|
|
2028
|
+
this.role = new Z(r == null ? void 0 : r.role), this.category = new ie(r == null ? void 0 : r.category), this.minCoefficient = new fe(r == null ? void 0 : r.minCoefficient);
|
|
2051
2029
|
}
|
|
2052
2030
|
}
|
|
2053
|
-
class
|
|
2031
|
+
class Re {
|
|
2054
2032
|
/**
|
|
2055
2033
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
2056
2034
|
*
|
|
@@ -2077,10 +2055,10 @@ class Pe {
|
|
|
2077
2055
|
* Источник клиентской цены.
|
|
2078
2056
|
*/
|
|
2079
2057
|
t(this, "source");
|
|
2080
|
-
this.client = new
|
|
2058
|
+
this.client = new ne(r == null ? void 0 : r.client), this.product = new _(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Ie.Product;
|
|
2081
2059
|
}
|
|
2082
2060
|
}
|
|
2083
|
-
class
|
|
2061
|
+
class Pt extends u {
|
|
2084
2062
|
/**
|
|
2085
2063
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
2086
2064
|
*
|
|
@@ -2111,7 +2089,7 @@ class Rt extends u {
|
|
|
2111
2089
|
return s && (l += `&category_id=${s}`), i && (l += `&client_id=${i}`), l;
|
|
2112
2090
|
}
|
|
2113
2091
|
}
|
|
2114
|
-
class
|
|
2092
|
+
class Rt extends u {
|
|
2115
2093
|
/**
|
|
2116
2094
|
* Импортирует цены клиента из CSV файла.
|
|
2117
2095
|
*
|
|
@@ -2310,7 +2288,7 @@ class Dt extends u {
|
|
|
2310
2288
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2311
2289
|
}
|
|
2312
2290
|
}
|
|
2313
|
-
class
|
|
2291
|
+
class Dt extends u {
|
|
2314
2292
|
/**
|
|
2315
2293
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2316
2294
|
*
|
|
@@ -2400,7 +2378,7 @@ class At extends u {
|
|
|
2400
2378
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2401
2379
|
}
|
|
2402
2380
|
}
|
|
2403
|
-
class
|
|
2381
|
+
class At extends u {
|
|
2404
2382
|
/**
|
|
2405
2383
|
* Возвращает список данных о корневых категориях.
|
|
2406
2384
|
*
|
|
@@ -2414,7 +2392,7 @@ class $t extends u {
|
|
|
2414
2392
|
{
|
|
2415
2393
|
showHidden: r
|
|
2416
2394
|
},
|
|
2417
|
-
(e) => e.data.map((s) => new
|
|
2395
|
+
(e) => e.data.map((s) => new q(s))
|
|
2418
2396
|
);
|
|
2419
2397
|
}
|
|
2420
2398
|
/**
|
|
@@ -2433,7 +2411,7 @@ class $t extends u {
|
|
|
2433
2411
|
showHidden: e,
|
|
2434
2412
|
withNestedCategories: s
|
|
2435
2413
|
},
|
|
2436
|
-
(i) => new
|
|
2414
|
+
(i) => new q(i.data)
|
|
2437
2415
|
);
|
|
2438
2416
|
}
|
|
2439
2417
|
/**
|
|
@@ -2442,7 +2420,7 @@ class $t extends u {
|
|
|
2442
2420
|
* @param categoryID Идентификатор категории продуктов.
|
|
2443
2421
|
*/
|
|
2444
2422
|
getPublicCategoryData(r) {
|
|
2445
|
-
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new
|
|
2423
|
+
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new q(e.data));
|
|
2446
2424
|
}
|
|
2447
2425
|
/**
|
|
2448
2426
|
* Возвращает список продуктов категории.
|
|
@@ -2460,7 +2438,7 @@ class $t extends u {
|
|
|
2460
2438
|
showHidden: s,
|
|
2461
2439
|
withPriceCoefficients: e
|
|
2462
2440
|
},
|
|
2463
|
-
(i) =>
|
|
2441
|
+
(i) => ce(i.data, (o) => new _(o))
|
|
2464
2442
|
);
|
|
2465
2443
|
}
|
|
2466
2444
|
/**
|
|
@@ -2473,7 +2451,7 @@ class $t extends u {
|
|
|
2473
2451
|
getCategoryProductsCoefficients(r) {
|
|
2474
2452
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2475
2453
|
const { data: s } = e;
|
|
2476
|
-
return pr(s, (i) => i.map((o) => new
|
|
2454
|
+
return pr(s, (i) => i.map((o) => new ae(o))), s;
|
|
2477
2455
|
});
|
|
2478
2456
|
}
|
|
2479
2457
|
/**
|
|
@@ -2485,14 +2463,14 @@ class $t extends u {
|
|
|
2485
2463
|
publicSimpleSearch(r, e = 10) {
|
|
2486
2464
|
return new Promise((s, i) => {
|
|
2487
2465
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2488
|
-
s(o.categories.map((l) => new
|
|
2466
|
+
s(o.categories.map((l) => new q(l)));
|
|
2489
2467
|
}).catch((o) => {
|
|
2490
2468
|
i(o);
|
|
2491
2469
|
});
|
|
2492
2470
|
});
|
|
2493
2471
|
}
|
|
2494
2472
|
}
|
|
2495
|
-
class
|
|
2473
|
+
class $t extends u {
|
|
2496
2474
|
/**
|
|
2497
2475
|
* Возвращает данные об указанном продукте.
|
|
2498
2476
|
*
|
|
@@ -2523,7 +2501,7 @@ class Tt extends u {
|
|
|
2523
2501
|
return this.get(
|
|
2524
2502
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2525
2503
|
{},
|
|
2526
|
-
(e) =>
|
|
2504
|
+
(e) => ce(e.data, (s) => new ae(s))
|
|
2527
2505
|
);
|
|
2528
2506
|
}
|
|
2529
2507
|
/**
|
|
@@ -2536,7 +2514,7 @@ class Tt extends u {
|
|
|
2536
2514
|
*/
|
|
2537
2515
|
getProductPriceHistory(r, e) {
|
|
2538
2516
|
const s = {};
|
|
2539
|
-
return
|
|
2517
|
+
return ee(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ce(i.data, (o) => new Jr(o)));
|
|
2540
2518
|
}
|
|
2541
2519
|
/**
|
|
2542
2520
|
* Выполняет публичный поиск данных о продуктах по терму.
|
|
@@ -2554,7 +2532,7 @@ class Tt extends u {
|
|
|
2554
2532
|
});
|
|
2555
2533
|
}
|
|
2556
2534
|
}
|
|
2557
|
-
class
|
|
2535
|
+
class Tt extends u {
|
|
2558
2536
|
/**
|
|
2559
2537
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2560
2538
|
*
|
|
@@ -2570,7 +2548,7 @@ class bt extends u {
|
|
|
2570
2548
|
clientId: r,
|
|
2571
2549
|
showHidden: e
|
|
2572
2550
|
},
|
|
2573
|
-
(s) => s.data.map((i) => new
|
|
2551
|
+
(s) => s.data.map((i) => new le(i))
|
|
2574
2552
|
);
|
|
2575
2553
|
}
|
|
2576
2554
|
/**
|
|
@@ -2591,7 +2569,7 @@ class bt extends u {
|
|
|
2591
2569
|
showHidden: s,
|
|
2592
2570
|
withNestedCategories: i
|
|
2593
2571
|
},
|
|
2594
|
-
(o) => new
|
|
2572
|
+
(o) => new le(o.data)
|
|
2595
2573
|
);
|
|
2596
2574
|
}
|
|
2597
2575
|
/**
|
|
@@ -2612,11 +2590,11 @@ class bt extends u {
|
|
|
2612
2590
|
showHidden: i,
|
|
2613
2591
|
withPriceCoefficients: s
|
|
2614
2592
|
},
|
|
2615
|
-
(o) =>
|
|
2593
|
+
(o) => ce(o.data, (l) => new J(l))
|
|
2616
2594
|
);
|
|
2617
2595
|
}
|
|
2618
2596
|
}
|
|
2619
|
-
class
|
|
2597
|
+
class bt extends u {
|
|
2620
2598
|
/**
|
|
2621
2599
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2622
2600
|
*
|
|
@@ -2638,7 +2616,7 @@ class _t extends u {
|
|
|
2638
2616
|
}
|
|
2639
2617
|
}
|
|
2640
2618
|
var xe = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(xe || {});
|
|
2641
|
-
class
|
|
2619
|
+
class de {
|
|
2642
2620
|
/**
|
|
2643
2621
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
2644
2622
|
*
|
|
@@ -2672,7 +2650,7 @@ class qe {
|
|
|
2672
2650
|
return r.value = ur(this.value) ? B(this.value, T.getConfig().dateFormats.api) : this.value, r;
|
|
2673
2651
|
}
|
|
2674
2652
|
}
|
|
2675
|
-
class
|
|
2653
|
+
class se {
|
|
2676
2654
|
/**
|
|
2677
2655
|
* Инициализирует экземпляр класса {@link FilterGroup}.
|
|
2678
2656
|
*
|
|
@@ -2692,7 +2670,7 @@ class te {
|
|
|
2692
2670
|
*/
|
|
2693
2671
|
t(this, "groups");
|
|
2694
2672
|
var e, s;
|
|
2695
|
-
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new
|
|
2673
|
+
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new de(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new se(i))) ?? [];
|
|
2696
2674
|
}
|
|
2697
2675
|
/**
|
|
2698
2676
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2702,12 +2680,12 @@ class te {
|
|
|
2702
2680
|
toPrimitive() {
|
|
2703
2681
|
return {
|
|
2704
2682
|
groupOp: this.groupOp,
|
|
2705
|
-
filters: this.filters.map((r) => r instanceof
|
|
2706
|
-
groups: this.groups.map((r) => r instanceof
|
|
2683
|
+
filters: this.filters.map((r) => r instanceof de && Se(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2684
|
+
groups: this.groups.map((r) => r instanceof se ? r.toPrimitive() : r)
|
|
2707
2685
|
};
|
|
2708
2686
|
}
|
|
2709
2687
|
}
|
|
2710
|
-
class
|
|
2688
|
+
class Ce extends u {
|
|
2711
2689
|
/**
|
|
2712
2690
|
* Получает пагинированный список данных.
|
|
2713
2691
|
*
|
|
@@ -2724,10 +2702,10 @@ class we extends u {
|
|
|
2724
2702
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2725
2703
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2726
2704
|
};
|
|
2727
|
-
return e && (g.filters = JSON.stringify((e instanceof
|
|
2705
|
+
return e && (g.filters = JSON.stringify((e instanceof se ? e : new se(e)).toPrimitive())), hr(s) || (g.sort = gr(s) ? s : [s]), o && (g = { ...g, ...o }), this.get(r, g, l, p);
|
|
2728
2706
|
}
|
|
2729
2707
|
}
|
|
2730
|
-
class
|
|
2708
|
+
class _t extends Ce {
|
|
2731
2709
|
/**
|
|
2732
2710
|
* Возвращает список шаблонов прайс-листа.
|
|
2733
2711
|
*
|
|
@@ -2799,7 +2777,7 @@ class St extends we {
|
|
|
2799
2777
|
return this.get(
|
|
2800
2778
|
`/internal/price/templates/${r}/products`,
|
|
2801
2779
|
{},
|
|
2802
|
-
(e) => e.data.map((s) => new
|
|
2780
|
+
(e) => e.data.map((s) => new Pe(s))
|
|
2803
2781
|
);
|
|
2804
2782
|
}
|
|
2805
2783
|
/**
|
|
@@ -2811,7 +2789,7 @@ class St extends we {
|
|
|
2811
2789
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
2812
2790
|
*/
|
|
2813
2791
|
getProductTemplatePrice(r, e) {
|
|
2814
|
-
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new
|
|
2792
|
+
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Pe(s.data));
|
|
2815
2793
|
}
|
|
2816
2794
|
/**
|
|
2817
2795
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -2830,7 +2808,7 @@ class St extends we {
|
|
|
2830
2808
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2831
2809
|
increase_percent: s.value
|
|
2832
2810
|
},
|
|
2833
|
-
(o) => new
|
|
2811
|
+
(o) => new Pe(o.data)
|
|
2834
2812
|
);
|
|
2835
2813
|
}
|
|
2836
2814
|
/**
|
|
@@ -2855,7 +2833,7 @@ class St extends we {
|
|
|
2855
2833
|
return this.get(
|
|
2856
2834
|
`/internal/price/templates/${r}/categories`,
|
|
2857
2835
|
{},
|
|
2858
|
-
(e) => e.data.map((s) => new
|
|
2836
|
+
(e) => e.data.map((s) => new ve(s))
|
|
2859
2837
|
);
|
|
2860
2838
|
}
|
|
2861
2839
|
/**
|
|
@@ -2870,7 +2848,7 @@ class St extends we {
|
|
|
2870
2848
|
return this.get(
|
|
2871
2849
|
`/internal/price/templates/${r}/categories/${e}`,
|
|
2872
2850
|
{},
|
|
2873
|
-
(s) => new
|
|
2851
|
+
(s) => new ve(s.data)
|
|
2874
2852
|
);
|
|
2875
2853
|
}
|
|
2876
2854
|
/**
|
|
@@ -2890,7 +2868,7 @@ class St extends we {
|
|
|
2890
2868
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2891
2869
|
increase_percent: s.value
|
|
2892
2870
|
},
|
|
2893
|
-
(o) => new
|
|
2871
|
+
(o) => new ve(o.data)
|
|
2894
2872
|
);
|
|
2895
2873
|
}
|
|
2896
2874
|
/**
|
|
@@ -2919,7 +2897,7 @@ class St extends we {
|
|
|
2919
2897
|
);
|
|
2920
2898
|
}
|
|
2921
2899
|
}
|
|
2922
|
-
class
|
|
2900
|
+
class St extends u {
|
|
2923
2901
|
/**
|
|
2924
2902
|
* Возвращает список ролей ценообразования.
|
|
2925
2903
|
*
|
|
@@ -2999,7 +2977,7 @@ class Lt extends u {
|
|
|
2999
2977
|
);
|
|
3000
2978
|
}
|
|
3001
2979
|
}
|
|
3002
|
-
class at extends
|
|
2980
|
+
class at extends Ce {
|
|
3003
2981
|
/**
|
|
3004
2982
|
* Возвращает пагинированный список свойств.
|
|
3005
2983
|
*
|
|
@@ -3371,7 +3349,7 @@ class at extends we {
|
|
|
3371
3349
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3372
3350
|
}
|
|
3373
3351
|
}
|
|
3374
|
-
class
|
|
3352
|
+
class Lt extends u {
|
|
3375
3353
|
/**
|
|
3376
3354
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
3377
3355
|
*
|
|
@@ -3413,11 +3391,11 @@ class It extends u {
|
|
|
3413
3391
|
});
|
|
3414
3392
|
}
|
|
3415
3393
|
}
|
|
3416
|
-
const
|
|
3394
|
+
const qe = (n) => {
|
|
3417
3395
|
const r = {};
|
|
3418
3396
|
return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
|
|
3419
3397
|
};
|
|
3420
|
-
class
|
|
3398
|
+
class It extends u {
|
|
3421
3399
|
/**
|
|
3422
3400
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
3423
3401
|
*
|
|
@@ -3429,8 +3407,8 @@ class xt extends u {
|
|
|
3429
3407
|
analyzeProductPrices(r, e) {
|
|
3430
3408
|
return this.get(
|
|
3431
3409
|
`/internal/price/products/${r}/analyze`,
|
|
3432
|
-
{ ...
|
|
3433
|
-
(s) => s.data.map((i) => new
|
|
3410
|
+
{ ...qe(e) },
|
|
3411
|
+
(s) => s.data.map((i) => new Re(i))
|
|
3434
3412
|
);
|
|
3435
3413
|
}
|
|
3436
3414
|
/**
|
|
@@ -3444,8 +3422,8 @@ class xt extends u {
|
|
|
3444
3422
|
analyzeCategoryPrices(r, e) {
|
|
3445
3423
|
return this.get(
|
|
3446
3424
|
`/internal/price/categories/${r}/analyze`,
|
|
3447
|
-
{ ...
|
|
3448
|
-
(s) => s.data.map((i) => new
|
|
3425
|
+
{ ...qe(e) },
|
|
3426
|
+
(s) => s.data.map((i) => new Re(i))
|
|
3449
3427
|
);
|
|
3450
3428
|
}
|
|
3451
3429
|
/**
|
|
@@ -3462,12 +3440,12 @@ class xt extends u {
|
|
|
3462
3440
|
return this.get(
|
|
3463
3441
|
`/internal/price/categories/${r}/analyze/square`,
|
|
3464
3442
|
{ ...e },
|
|
3465
|
-
(s) => s.data.map((i) => new
|
|
3443
|
+
(s) => s.data.map((i) => new Re(i))
|
|
3466
3444
|
);
|
|
3467
3445
|
}
|
|
3468
3446
|
}
|
|
3469
|
-
var
|
|
3470
|
-
class
|
|
3447
|
+
var Qr = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n))(Qr || {});
|
|
3448
|
+
class be extends H {
|
|
3471
3449
|
/**
|
|
3472
3450
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3473
3451
|
*
|
|
@@ -3494,11 +3472,11 @@ class Te extends H {
|
|
|
3494
3472
|
/**
|
|
3495
3473
|
* Данные о валюте.
|
|
3496
3474
|
*/
|
|
3497
|
-
t(this, "currency", new
|
|
3498
|
-
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new
|
|
3475
|
+
t(this, "currency", new ue());
|
|
3476
|
+
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ue(e.currency));
|
|
3499
3477
|
}
|
|
3500
3478
|
}
|
|
3501
|
-
class
|
|
3479
|
+
class _e extends D {
|
|
3502
3480
|
/**
|
|
3503
3481
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3504
3482
|
*
|
|
@@ -3517,7 +3495,7 @@ class be extends D {
|
|
|
3517
3495
|
this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
|
|
3518
3496
|
}
|
|
3519
3497
|
}
|
|
3520
|
-
class F extends
|
|
3498
|
+
class F extends _e {
|
|
3521
3499
|
/**
|
|
3522
3500
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3523
3501
|
*
|
|
@@ -3564,7 +3542,7 @@ class Ye extends D {
|
|
|
3564
3542
|
/**
|
|
3565
3543
|
* Данные о менеджере.
|
|
3566
3544
|
*/
|
|
3567
|
-
t(this, "manager", new
|
|
3545
|
+
t(this, "manager", new re());
|
|
3568
3546
|
/**
|
|
3569
3547
|
* Данные об организационно-правовой форме.
|
|
3570
3548
|
*/
|
|
@@ -3610,7 +3588,7 @@ class Ye extends D {
|
|
|
3610
3588
|
*/
|
|
3611
3589
|
t(this, "updater");
|
|
3612
3590
|
if (e) {
|
|
3613
|
-
if (this.opf = new G(e.opf), this.salesDirection = new S(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e.createdAt, this.creator = e.creator ? new
|
|
3591
|
+
if (this.opf = new G(e.opf), this.salesDirection = new S(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new U(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new M(e.partnerGroup)), e.manager && (this.manager = new re(e.manager)), e.contacts) {
|
|
3614
3592
|
const s = [];
|
|
3615
3593
|
e.contacts.forEach((i) => {
|
|
3616
3594
|
s.push(new F(i));
|
|
@@ -3619,13 +3597,13 @@ class Ye extends D {
|
|
|
3619
3597
|
if (e.bankAccounts) {
|
|
3620
3598
|
const s = [];
|
|
3621
3599
|
e.bankAccounts.forEach((i) => {
|
|
3622
|
-
s.push(new
|
|
3600
|
+
s.push(new be(i));
|
|
3623
3601
|
}), this.bankAccounts = s;
|
|
3624
3602
|
}
|
|
3625
3603
|
}
|
|
3626
3604
|
}
|
|
3627
3605
|
}
|
|
3628
|
-
class
|
|
3606
|
+
class Yr extends Ye {
|
|
3629
3607
|
/**
|
|
3630
3608
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3631
3609
|
*
|
|
@@ -3693,7 +3671,7 @@ class Ze extends Xe {
|
|
|
3693
3671
|
e && (this.kpp = e.kpp ?? "");
|
|
3694
3672
|
}
|
|
3695
3673
|
}
|
|
3696
|
-
class
|
|
3674
|
+
class Xr extends Ze {
|
|
3697
3675
|
/**
|
|
3698
3676
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3699
3677
|
*
|
|
@@ -3716,7 +3694,7 @@ class Zr extends Ze {
|
|
|
3716
3694
|
e && (this.registrationCountry = new Q(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
3717
3695
|
}
|
|
3718
3696
|
}
|
|
3719
|
-
class
|
|
3697
|
+
class he {
|
|
3720
3698
|
/**
|
|
3721
3699
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
3722
3700
|
*
|
|
@@ -3729,13 +3707,13 @@ class ue {
|
|
|
3729
3707
|
case b.UlR:
|
|
3730
3708
|
return new Ze(r);
|
|
3731
3709
|
case b.UlNr:
|
|
3732
|
-
return new Zr(r);
|
|
3733
|
-
default:
|
|
3734
3710
|
return new Xr(r);
|
|
3711
|
+
default:
|
|
3712
|
+
return new Yr(r);
|
|
3735
3713
|
}
|
|
3736
3714
|
}
|
|
3737
3715
|
}
|
|
3738
|
-
class
|
|
3716
|
+
class De extends H {
|
|
3739
3717
|
/**
|
|
3740
3718
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
3741
3719
|
*
|
|
@@ -3750,7 +3728,7 @@ class Re extends H {
|
|
|
3750
3728
|
this.isPrimary = e.isPrimary;
|
|
3751
3729
|
}
|
|
3752
3730
|
}
|
|
3753
|
-
class
|
|
3731
|
+
class Zr extends F {
|
|
3754
3732
|
/**
|
|
3755
3733
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3756
3734
|
*
|
|
@@ -3775,10 +3753,10 @@ class et extends F {
|
|
|
3775
3753
|
*/
|
|
3776
3754
|
addresses: []
|
|
3777
3755
|
});
|
|
3778
|
-
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new
|
|
3756
|
+
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new De(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new De(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new De(s))));
|
|
3779
3757
|
}
|
|
3780
3758
|
}
|
|
3781
|
-
class
|
|
3759
|
+
class ge extends qr {
|
|
3782
3760
|
/**
|
|
3783
3761
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
3784
3762
|
*
|
|
@@ -3818,7 +3796,7 @@ class he extends dr {
|
|
|
3818
3796
|
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Be(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new F(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
|
|
3819
3797
|
}
|
|
3820
3798
|
}
|
|
3821
|
-
class
|
|
3799
|
+
class Ue extends ne {
|
|
3822
3800
|
/**
|
|
3823
3801
|
* Инициализирует экземпляр класса {@link Client}.
|
|
3824
3802
|
*
|
|
@@ -3872,10 +3850,10 @@ class de extends ie {
|
|
|
3872
3850
|
* Дополнительные данные о клиенте.
|
|
3873
3851
|
*/
|
|
3874
3852
|
t(this, "extraData");
|
|
3875
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) =>
|
|
3853
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => he.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new M(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new ge(p))) ?? [], this.channelPrimaryInterest = new Ke(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Qe(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ye(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
3876
3854
|
}
|
|
3877
3855
|
}
|
|
3878
|
-
class
|
|
3856
|
+
class xt {
|
|
3879
3857
|
/**
|
|
3880
3858
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
3881
3859
|
*
|
|
@@ -3967,7 +3945,7 @@ class kt {
|
|
|
3967
3945
|
*/
|
|
3968
3946
|
t(this, "lastOrder");
|
|
3969
3947
|
var e, s, i;
|
|
3970
|
-
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.city = new
|
|
3948
|
+
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.city = new pe(r == null ? void 0 : r.city), this.region = new te(r == null ? void 0 : r.region), this.country = new Q(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new O(r == null ? void 0 : r.createdAt), this.lastLoginDate = new O(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((o) => new we(o)) : [], this.salesDirection = new S(r == null ? void 0 : r.salesDirection), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new G(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new K(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroup = new M(r == null ? void 0 : r.partnerGroup), this.contact = new _e(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
3971
3949
|
createdAt: new O((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
|
|
3972
3950
|
creator: (s = r == null ? void 0 : r.lastOrder) == null ? void 0 : s.creator,
|
|
3973
3951
|
isApproved: (i = r == null ? void 0 : r.lastOrder) == null ? void 0 : i.isApproved
|
|
@@ -3990,10 +3968,10 @@ class kt {
|
|
|
3990
3968
|
this[r] = void 0;
|
|
3991
3969
|
break;
|
|
3992
3970
|
case "city":
|
|
3993
|
-
this.city = new
|
|
3971
|
+
this.city = new pe();
|
|
3994
3972
|
break;
|
|
3995
3973
|
case "region":
|
|
3996
|
-
this.region = new
|
|
3974
|
+
this.region = new te();
|
|
3997
3975
|
break;
|
|
3998
3976
|
case "isActive":
|
|
3999
3977
|
this.isActive = !0;
|
|
@@ -4026,7 +4004,7 @@ class kt {
|
|
|
4026
4004
|
this.partnerGroup = new M();
|
|
4027
4005
|
break;
|
|
4028
4006
|
case "contact":
|
|
4029
|
-
this.contact = new
|
|
4007
|
+
this.contact = new _e();
|
|
4030
4008
|
break;
|
|
4031
4009
|
}
|
|
4032
4010
|
return this;
|
|
@@ -4041,7 +4019,7 @@ class kt {
|
|
|
4041
4019
|
return Object.keys(this).forEach((l) => {
|
|
4042
4020
|
const p = this[l];
|
|
4043
4021
|
// eslint-disable-next-line prettier/prettier
|
|
4044
|
-
|
|
4022
|
+
ee(p) || m(p) && p.trim().length === 0 || Se(p.isNewRec) && p.isNewRec() || (r[l] = p);
|
|
4045
4023
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.lastLoginDate) != null && i.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
|
|
4046
4024
|
}
|
|
4047
4025
|
}
|
|
@@ -4065,10 +4043,10 @@ class er extends H {
|
|
|
4065
4043
|
* Признак того, что заказ подтвержден в 1С.
|
|
4066
4044
|
*/
|
|
4067
4045
|
t(this, "isApproved1c");
|
|
4068
|
-
this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new
|
|
4046
|
+
this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new U(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
4069
4047
|
}
|
|
4070
4048
|
}
|
|
4071
|
-
class
|
|
4049
|
+
class et extends D {
|
|
4072
4050
|
/**
|
|
4073
4051
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4074
4052
|
*
|
|
@@ -4101,10 +4079,10 @@ class rt extends D {
|
|
|
4101
4079
|
* Список менеджеров.
|
|
4102
4080
|
*/
|
|
4103
4081
|
t(this, "managers");
|
|
4104
|
-
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new er(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new
|
|
4082
|
+
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new er(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
|
|
4105
4083
|
}
|
|
4106
4084
|
}
|
|
4107
|
-
class
|
|
4085
|
+
class rt {
|
|
4108
4086
|
/**
|
|
4109
4087
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
4110
4088
|
*
|
|
@@ -4122,7 +4100,7 @@ class tt {
|
|
|
4122
4100
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4123
4101
|
}
|
|
4124
4102
|
}
|
|
4125
|
-
class
|
|
4103
|
+
class kt extends rt {
|
|
4126
4104
|
/**
|
|
4127
4105
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4128
4106
|
*
|
|
@@ -4153,7 +4131,7 @@ class Nt extends tt {
|
|
|
4153
4131
|
this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
|
|
4154
4132
|
}
|
|
4155
4133
|
}
|
|
4156
|
-
class
|
|
4134
|
+
class Nt {
|
|
4157
4135
|
/**
|
|
4158
4136
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
4159
4137
|
*
|
|
@@ -4171,7 +4149,7 @@ class Ot {
|
|
|
4171
4149
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4172
4150
|
}
|
|
4173
4151
|
}
|
|
4174
|
-
class
|
|
4152
|
+
class Ot extends Ce {
|
|
4175
4153
|
/**
|
|
4176
4154
|
* Возвращает данные об указанном клиенте.
|
|
4177
4155
|
*
|
|
@@ -4179,7 +4157,7 @@ class qt extends we {
|
|
|
4179
4157
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
4180
4158
|
*/
|
|
4181
4159
|
getClient(r) {
|
|
4182
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
4160
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new Ue(e.data));
|
|
4183
4161
|
}
|
|
4184
4162
|
/**
|
|
4185
4163
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -4194,7 +4172,7 @@ class qt extends we {
|
|
|
4194
4172
|
getClientsList(r, e, s, i) {
|
|
4195
4173
|
return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
|
|
4196
4174
|
const l = { ...o.data };
|
|
4197
|
-
return l.data = l.data.map((p) => new
|
|
4175
|
+
return l.data = l.data.map((p) => new ne(p)), l;
|
|
4198
4176
|
});
|
|
4199
4177
|
}
|
|
4200
4178
|
/**
|
|
@@ -4221,7 +4199,7 @@ class qt extends we {
|
|
|
4221
4199
|
const s = r.map((i) => i.id);
|
|
4222
4200
|
return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
|
|
4223
4201
|
let o = [];
|
|
4224
|
-
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((l) => new
|
|
4202
|
+
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((l) => new et(l))), o;
|
|
4225
4203
|
});
|
|
4226
4204
|
}
|
|
4227
4205
|
/**
|
|
@@ -4233,7 +4211,7 @@ class qt extends we {
|
|
|
4233
4211
|
getAllClientContacts(r) {
|
|
4234
4212
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
4235
4213
|
let s = [];
|
|
4236
|
-
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new
|
|
4214
|
+
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Zr(i))), s;
|
|
4237
4215
|
});
|
|
4238
4216
|
}
|
|
4239
4217
|
/**
|
|
@@ -4263,7 +4241,7 @@ class qt extends we {
|
|
|
4263
4241
|
is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
|
|
4264
4242
|
preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
|
|
4265
4243
|
},
|
|
4266
|
-
(i) => new
|
|
4244
|
+
(i) => new Ue(i.data),
|
|
4267
4245
|
e
|
|
4268
4246
|
);
|
|
4269
4247
|
}
|
|
@@ -4373,7 +4351,7 @@ class qt extends we {
|
|
|
4373
4351
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
|
|
4374
4352
|
*/
|
|
4375
4353
|
createContragentClientData(r, e, s = {}) {
|
|
4376
|
-
var g, A, $,
|
|
4354
|
+
var g, A, $, L, I, x, k, N;
|
|
4377
4355
|
let i;
|
|
4378
4356
|
const o = e, l = e, p = e;
|
|
4379
4357
|
switch (e.opf.slug) {
|
|
@@ -4401,7 +4379,7 @@ class qt extends we {
|
|
|
4401
4379
|
name: l.name,
|
|
4402
4380
|
alternative_name: l.alternativeName,
|
|
4403
4381
|
partner_group_id: ($ = l.partnerGroup) == null ? void 0 : $.id,
|
|
4404
|
-
manager_id: (
|
|
4382
|
+
manager_id: (L = l.manager) == null ? void 0 : L.id,
|
|
4405
4383
|
comment: l.comment,
|
|
4406
4384
|
inn: l.inn,
|
|
4407
4385
|
kpp: l.kpp,
|
|
@@ -4447,7 +4425,7 @@ class qt extends we {
|
|
|
4447
4425
|
return this.post(
|
|
4448
4426
|
`/internal/clients/${r}/contragents`,
|
|
4449
4427
|
i,
|
|
4450
|
-
(
|
|
4428
|
+
(d) => he.createInstance(d.data),
|
|
4451
4429
|
s
|
|
4452
4430
|
);
|
|
4453
4431
|
}
|
|
@@ -4462,7 +4440,7 @@ class qt extends we {
|
|
|
4462
4440
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
|
|
4463
4441
|
*/
|
|
4464
4442
|
updateContragentClientData(r, e, s = {}) {
|
|
4465
|
-
var g, A, $,
|
|
4443
|
+
var g, A, $, L, I, x, k, N;
|
|
4466
4444
|
let i;
|
|
4467
4445
|
const o = e, l = e, p = e;
|
|
4468
4446
|
switch (e.opf.slug) {
|
|
@@ -4490,7 +4468,7 @@ class qt extends we {
|
|
|
4490
4468
|
name: l.name,
|
|
4491
4469
|
alternative_name: l.alternativeName,
|
|
4492
4470
|
partner_group_id: ($ = l.partnerGroup) == null ? void 0 : $.id,
|
|
4493
|
-
manager_id: (
|
|
4471
|
+
manager_id: (L = l.manager) == null ? void 0 : L.id,
|
|
4494
4472
|
comment: l.comment,
|
|
4495
4473
|
inn: l.inn,
|
|
4496
4474
|
kpp: l.kpp,
|
|
@@ -4536,7 +4514,7 @@ class qt extends we {
|
|
|
4536
4514
|
return this.patch(
|
|
4537
4515
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
4538
4516
|
i,
|
|
4539
|
-
(
|
|
4517
|
+
(d) => he.createInstance(d.data),
|
|
4540
4518
|
s
|
|
4541
4519
|
);
|
|
4542
4520
|
}
|
|
@@ -4574,7 +4552,7 @@ class qt extends we {
|
|
|
4574
4552
|
}), e.operatingHours && (i.operating_hours = {
|
|
4575
4553
|
from: e.operatingHours.from,
|
|
4576
4554
|
to: e.operatingHours.to
|
|
4577
|
-
}), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new
|
|
4555
|
+
}), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new ge(p.data), s);
|
|
4578
4556
|
}
|
|
4579
4557
|
/**
|
|
4580
4558
|
* Обновляет данные об адресе доставки клиента.
|
|
@@ -4603,7 +4581,7 @@ class qt extends we {
|
|
|
4603
4581
|
}), this.patch(
|
|
4604
4582
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
4605
4583
|
i,
|
|
4606
|
-
(p) => new
|
|
4584
|
+
(p) => new ge(p.data),
|
|
4607
4585
|
s
|
|
4608
4586
|
);
|
|
4609
4587
|
}
|
|
@@ -4639,7 +4617,7 @@ class qt extends we {
|
|
|
4639
4617
|
correspondent_account: s.correspondentAccount,
|
|
4640
4618
|
currency_id: s.currency.id
|
|
4641
4619
|
},
|
|
4642
|
-
(o) => new
|
|
4620
|
+
(o) => new be(o.data),
|
|
4643
4621
|
i
|
|
4644
4622
|
);
|
|
4645
4623
|
}
|
|
@@ -4665,7 +4643,7 @@ class qt extends we {
|
|
|
4665
4643
|
correspondent_account: s.correspondentAccount,
|
|
4666
4644
|
currency_id: s.currency.id
|
|
4667
4645
|
},
|
|
4668
|
-
(o) => new
|
|
4646
|
+
(o) => new be(o.data),
|
|
4669
4647
|
i
|
|
4670
4648
|
);
|
|
4671
4649
|
}
|
|
@@ -4898,7 +4876,7 @@ class qt extends we {
|
|
|
4898
4876
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
4899
4877
|
}
|
|
4900
4878
|
}
|
|
4901
|
-
class
|
|
4879
|
+
class dt extends u {
|
|
4902
4880
|
/**
|
|
4903
4881
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
4904
4882
|
*
|
|
@@ -4912,7 +4890,7 @@ class Ut extends u {
|
|
|
4912
4890
|
});
|
|
4913
4891
|
}
|
|
4914
4892
|
}
|
|
4915
|
-
class
|
|
4893
|
+
class qt extends u {
|
|
4916
4894
|
/**
|
|
4917
4895
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
4918
4896
|
*
|
|
@@ -4983,7 +4961,7 @@ class dt extends u {
|
|
|
4983
4961
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
|
|
4984
4962
|
}
|
|
4985
4963
|
}
|
|
4986
|
-
class
|
|
4964
|
+
class Ut {
|
|
4987
4965
|
/**
|
|
4988
4966
|
* Возвращает диапазон дат по умолчанию.
|
|
4989
4967
|
*/
|
|
@@ -5039,12 +5017,12 @@ const E = class E {
|
|
|
5039
5017
|
*/
|
|
5040
5018
|
t(E, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5041
5019
|
let Ge = E;
|
|
5042
|
-
class
|
|
5020
|
+
class Gt {
|
|
5043
5021
|
/**
|
|
5044
5022
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5045
5023
|
*/
|
|
5046
5024
|
static generateUndefinedManagerInstance() {
|
|
5047
|
-
return new
|
|
5025
|
+
return new we({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
|
|
5048
5026
|
}
|
|
5049
5027
|
/**
|
|
5050
5028
|
* Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
|
|
@@ -5055,14 +5033,14 @@ class Mt {
|
|
|
5055
5033
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5056
5034
|
}
|
|
5057
5035
|
}
|
|
5058
|
-
class
|
|
5036
|
+
class tt extends u {
|
|
5059
5037
|
/**
|
|
5060
5038
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5061
5039
|
*/
|
|
5062
5040
|
getManagers() {
|
|
5063
5041
|
const r = "/internal/managers", e = u.getCachedResponse(r);
|
|
5064
5042
|
return e ? Promise.resolve(e) : this.get(r).then((s) => {
|
|
5065
|
-
const i = s.data.map((o) =>
|
|
5043
|
+
const i = s.data.map((o) => Le.instanceInitializer(we, o));
|
|
5066
5044
|
return i && this.cacheResponse(r, i), i;
|
|
5067
5045
|
});
|
|
5068
5046
|
}
|
|
@@ -5116,19 +5094,19 @@ class rr extends er {
|
|
|
5116
5094
|
* Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
|
|
5117
5095
|
*/
|
|
5118
5096
|
t(this, "isNotInStock");
|
|
5119
|
-
this.client = new
|
|
5097
|
+
this.client = new ne(e == null ? void 0 : e.client), this.payment = {
|
|
5120
5098
|
type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
|
|
5121
5099
|
status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
|
|
5122
5100
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
5123
5101
|
}, this.delivery = {
|
|
5124
5102
|
type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
|
|
5125
5103
|
date: m((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? f(e.delivery.date) : ((g = e == null ? void 0 : e.delivery) == null ? void 0 : g.date) ?? /* @__PURE__ */ new Date(),
|
|
5126
|
-
address: (A = e == null ? void 0 : e.delivery) != null && A.address ? new
|
|
5127
|
-
warehouse: ($ = e == null ? void 0 : e.delivery) != null && $.warehouse ? new
|
|
5128
|
-
}, this.attachedUser = new
|
|
5104
|
+
address: (A = e == null ? void 0 : e.delivery) != null && A.address ? new ge(e.delivery.address) : void 0,
|
|
5105
|
+
warehouse: ($ = e == null ? void 0 : e.delivery) != null && $.warehouse ? new ye(e.delivery.warehouse) : void 0
|
|
5106
|
+
}, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.pendingAt = m(e == null ? void 0 : e.pendingAt) ? f(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? f(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
|
|
5129
5107
|
}
|
|
5130
5108
|
}
|
|
5131
|
-
class
|
|
5109
|
+
class st extends H {
|
|
5132
5110
|
/**
|
|
5133
5111
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5134
5112
|
*
|
|
@@ -5211,7 +5189,7 @@ class it extends H {
|
|
|
5211
5189
|
this.product = new J(e.product), this.quantity = e.quantity, this.currency = e.currency, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing;
|
|
5212
5190
|
}
|
|
5213
5191
|
}
|
|
5214
|
-
class
|
|
5192
|
+
class it extends rr {
|
|
5215
5193
|
/**
|
|
5216
5194
|
* Инициализирует экземпляр класса {@link Order}.
|
|
5217
5195
|
*
|
|
@@ -5251,10 +5229,10 @@ class nt extends rr {
|
|
|
5251
5229
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
5252
5230
|
*/
|
|
5253
5231
|
t(this, "isAllowProcessingWithoutPayment");
|
|
5254
|
-
this.products = (e.products ?? []).map((s) => new
|
|
5232
|
+
this.products = (e.products ?? []).map((s) => new st(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? he.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5255
5233
|
}
|
|
5256
5234
|
}
|
|
5257
|
-
class
|
|
5235
|
+
class Mt extends Ce {
|
|
5258
5236
|
/**
|
|
5259
5237
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5260
5238
|
*
|
|
@@ -5285,10 +5263,10 @@ class Ft extends we {
|
|
|
5285
5263
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
5286
5264
|
*/
|
|
5287
5265
|
getOrder(r) {
|
|
5288
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
5266
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new it(e.data));
|
|
5289
5267
|
}
|
|
5290
5268
|
}
|
|
5291
|
-
class
|
|
5269
|
+
class nt {
|
|
5292
5270
|
/**
|
|
5293
5271
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
5294
5272
|
*
|
|
@@ -5342,10 +5320,10 @@ class Me {
|
|
|
5342
5320
|
*/
|
|
5343
5321
|
t(this, "meta");
|
|
5344
5322
|
var e;
|
|
5345
|
-
this.resourceType = new Je(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new
|
|
5323
|
+
this.resourceType = new Je(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new nt(s))) ?? [];
|
|
5346
5324
|
}
|
|
5347
5325
|
}
|
|
5348
|
-
class
|
|
5326
|
+
class Ft extends u {
|
|
5349
5327
|
/**
|
|
5350
5328
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
5351
5329
|
*
|
|
@@ -5376,8 +5354,8 @@ class Ht extends u {
|
|
|
5376
5354
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
5377
5355
|
}
|
|
5378
5356
|
}
|
|
5379
|
-
const P =
|
|
5380
|
-
const n = C({}), r = C(void 0), e = C(void 0), s = C(void 0), i = C(void 0), o = C(void 0), l = C(void 0), p = C(void 0), g = C(void 0), A = C(void 0), $ = C(void 0),
|
|
5357
|
+
const P = me("__references_private", () => {
|
|
5358
|
+
const n = C({}), r = C(void 0), e = C(void 0), s = C(void 0), i = C(void 0), o = C(void 0), l = C(void 0), p = C(void 0), g = C(void 0), A = C(void 0), $ = C(void 0), L = C(void 0), I = C(void 0), x = C(void 0), k = C(void 0), N = C(void 0), d = C(void 0), c = C(void 0);
|
|
5381
5359
|
return {
|
|
5382
5360
|
/**
|
|
5383
5361
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5426,7 +5404,7 @@ const P = ge("__references_private", () => {
|
|
|
5426
5404
|
/**
|
|
5427
5405
|
* Справочник типов файлов продукктов/категорий.
|
|
5428
5406
|
*/
|
|
5429
|
-
productFileTypeReference:
|
|
5407
|
+
productFileTypeReference: L,
|
|
5430
5408
|
/**
|
|
5431
5409
|
* Справочник типов ресурсов.
|
|
5432
5410
|
*/
|
|
@@ -5446,13 +5424,13 @@ const P = ge("__references_private", () => {
|
|
|
5446
5424
|
/**
|
|
5447
5425
|
* Справочник типов свойств.
|
|
5448
5426
|
*/
|
|
5449
|
-
propertyTypesReference:
|
|
5427
|
+
propertyTypesReference: d,
|
|
5450
5428
|
/**
|
|
5451
5429
|
* Справочник коэффициентов цен.
|
|
5452
5430
|
*/
|
|
5453
5431
|
priceCoefficientsReference: c
|
|
5454
5432
|
};
|
|
5455
|
-
}),
|
|
5433
|
+
}), Ht = me("references", () => {
|
|
5456
5434
|
const n = v(() => {
|
|
5457
5435
|
const c = P();
|
|
5458
5436
|
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((h) => {
|
|
@@ -5508,7 +5486,7 @@ const P = ge("__references_private", () => {
|
|
|
5508
5486
|
return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(R).getSalesDirections().then((h) => {
|
|
5509
5487
|
c.salesDirectionsReference = h;
|
|
5510
5488
|
}).catch(y)), c.salesDirectionsReference;
|
|
5511
|
-
}),
|
|
5489
|
+
}), L = v(() => {
|
|
5512
5490
|
const c = P();
|
|
5513
5491
|
return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(R).getSourcePrimaryInterest().then((h) => {
|
|
5514
5492
|
c.sourcePrimaryInterestReference = h;
|
|
@@ -5520,7 +5498,7 @@ const P = ge("__references_private", () => {
|
|
|
5520
5498
|
}).catch(y)), c.deliveryTypeReference;
|
|
5521
5499
|
}), x = v(() => {
|
|
5522
5500
|
const c = P();
|
|
5523
|
-
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(
|
|
5501
|
+
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(tt).getManagers().then((h) => {
|
|
5524
5502
|
c.managersList = h;
|
|
5525
5503
|
}).catch(y)), c.managersList;
|
|
5526
5504
|
}), k = v(() => {
|
|
@@ -5533,7 +5511,7 @@ const P = ge("__references_private", () => {
|
|
|
5533
5511
|
return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(R).getPropertyTypes().then((h) => {
|
|
5534
5512
|
c.propertyTypesReference = h;
|
|
5535
5513
|
}).catch(y)), c.propertyTypesReference;
|
|
5536
|
-
}),
|
|
5514
|
+
}), d = v(() => {
|
|
5537
5515
|
const c = P();
|
|
5538
5516
|
return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(R).getPriceCoefficients().then((h) => {
|
|
5539
5517
|
c.priceCoefficientsReference = h;
|
|
@@ -5587,7 +5565,7 @@ const P = ge("__references_private", () => {
|
|
|
5587
5565
|
/**
|
|
5588
5566
|
* Справочник каналов первичного интереса.
|
|
5589
5567
|
*/
|
|
5590
|
-
sourcePrimaryInterestsReference:
|
|
5568
|
+
sourcePrimaryInterestsReference: L,
|
|
5591
5569
|
/**
|
|
5592
5570
|
* Справочник типов доставки.
|
|
5593
5571
|
*/
|
|
@@ -5607,9 +5585,9 @@ const P = ge("__references_private", () => {
|
|
|
5607
5585
|
/**
|
|
5608
5586
|
* Справочник коэффициентов цен.
|
|
5609
5587
|
*/
|
|
5610
|
-
priceCoefficientsReference:
|
|
5588
|
+
priceCoefficientsReference: d
|
|
5611
5589
|
};
|
|
5612
|
-
}),
|
|
5590
|
+
}), ot = me("__user_state_private", () => {
|
|
5613
5591
|
const n = C({}), r = C(void 0);
|
|
5614
5592
|
return {
|
|
5615
5593
|
/**
|
|
@@ -5621,18 +5599,18 @@ const P = ge("__references_private", () => {
|
|
|
5621
5599
|
*/
|
|
5622
5600
|
currentUser: r
|
|
5623
5601
|
};
|
|
5624
|
-
}),
|
|
5602
|
+
}), zt = me("user_state", () => ({
|
|
5625
5603
|
/**
|
|
5626
5604
|
* Данные о текущем пользователе.
|
|
5627
5605
|
*/
|
|
5628
5606
|
currentUser: v(() => {
|
|
5629
|
-
const r =
|
|
5630
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(
|
|
5607
|
+
const r = ot();
|
|
5608
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Kr).getCurrentUser().then((e) => {
|
|
5631
5609
|
r.currentUser = e;
|
|
5632
5610
|
}).catch(y).finally(y)), r.currentUser;
|
|
5633
5611
|
})
|
|
5634
5612
|
}));
|
|
5635
|
-
class
|
|
5613
|
+
class Bt extends u {
|
|
5636
5614
|
/**
|
|
5637
5615
|
* Возвращает подсказки по адресам.
|
|
5638
5616
|
*
|
|
@@ -5679,7 +5657,7 @@ class Wt extends u {
|
|
|
5679
5657
|
});
|
|
5680
5658
|
}
|
|
5681
5659
|
}
|
|
5682
|
-
class
|
|
5660
|
+
class Wt {
|
|
5683
5661
|
/**
|
|
5684
5662
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
5685
5663
|
*
|
|
@@ -5703,141 +5681,140 @@ class jt {
|
|
|
5703
5681
|
}
|
|
5704
5682
|
}
|
|
5705
5683
|
export {
|
|
5706
|
-
|
|
5707
|
-
|
|
5684
|
+
Fr as AnyReference,
|
|
5685
|
+
ft as AppBaseConfig,
|
|
5708
5686
|
T as AppConfigProvider,
|
|
5709
|
-
|
|
5710
|
-
|
|
5687
|
+
be as BankAccount,
|
|
5688
|
+
Ce as BasePaginationProvider,
|
|
5711
5689
|
Or as CalculationTypeEnum,
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5690
|
+
oe as Cart,
|
|
5691
|
+
Lr as CartItem,
|
|
5692
|
+
ar as CartItemBase,
|
|
5693
|
+
yt as CartProvider,
|
|
5694
|
+
Pt as CatalogProvider,
|
|
5717
5695
|
He as CatalogableItem,
|
|
5718
|
-
|
|
5696
|
+
q as Category,
|
|
5719
5697
|
Oe as CategoryPricingRule,
|
|
5720
5698
|
Ke as ChannelPrimaryInterest,
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5699
|
+
vt as City,
|
|
5700
|
+
pe as CityWithRegionAndCountry,
|
|
5701
|
+
Ue as Client,
|
|
5702
|
+
et as ClientAdditionalData,
|
|
5703
|
+
le as ClientCategory,
|
|
5704
|
+
Ot as ClientDataProvider,
|
|
5705
|
+
Rt as ClientPriceProvider,
|
|
5706
|
+
Dt as ClientPriceTemplateProvider,
|
|
5729
5707
|
J as ClientProduct,
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5708
|
+
Tt as ClientProductCategoryDataProvider,
|
|
5709
|
+
bt as ClientProductDataProvider,
|
|
5710
|
+
ne as ClientShortInfo,
|
|
5711
|
+
Qr as ClientsAdditionalDataRequestTypeEnum,
|
|
5712
|
+
xt as ClientsListFilters,
|
|
5713
|
+
qt as ConfiguratorProvider,
|
|
5714
|
+
_e as Contact,
|
|
5715
|
+
Gr as ContactLinks,
|
|
5738
5716
|
F as ContactPerson,
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5717
|
+
Zr as ContactPersonRelated,
|
|
5718
|
+
Hr as ContactPosition,
|
|
5719
|
+
De as ContactRelation,
|
|
5742
5720
|
Ye as ContragentBase,
|
|
5743
|
-
|
|
5721
|
+
he as ContragentFactory,
|
|
5744
5722
|
Xe as ContragentIc,
|
|
5745
|
-
|
|
5746
|
-
|
|
5723
|
+
Yr as ContragentPerson,
|
|
5724
|
+
Xr as ContragentUlNr,
|
|
5747
5725
|
Ze as ContragentUlR,
|
|
5748
5726
|
Ie as CostSourceEnum,
|
|
5749
5727
|
Q as Country,
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5728
|
+
ue as Currency,
|
|
5729
|
+
Bt as DataSuggestionProvider,
|
|
5730
|
+
kt as DataTablePagination,
|
|
5731
|
+
rt as DataTablePaginationRequestParams,
|
|
5732
|
+
Nt as DataTableSortRequestParams,
|
|
5733
|
+
Ut as DateTimeProvider,
|
|
5734
|
+
qr as DeletableNamedIdentity,
|
|
5735
|
+
ge as DeliveryAddress,
|
|
5758
5736
|
K as DeliveryType,
|
|
5759
5737
|
Ir as DeviceTypeResolutionConfig,
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5738
|
+
Ur as DiscountShortInfo,
|
|
5739
|
+
Wt as FieldValidationResultData,
|
|
5740
|
+
se as FilterGroup,
|
|
5741
|
+
de as FilterItem,
|
|
5764
5742
|
xe as FilterOpEnum,
|
|
5765
5743
|
Be as GeoCoordinates,
|
|
5766
5744
|
_r as HiddenCatalogableItem,
|
|
5767
|
-
|
|
5768
|
-
|
|
5745
|
+
Te as HttpBaseCachedRequester,
|
|
5746
|
+
$e as HttpBaseRequester,
|
|
5769
5747
|
xr as HttpParamsConfig,
|
|
5770
5748
|
u as HttpRequester,
|
|
5771
5749
|
H as Identity,
|
|
5772
5750
|
Sr as Image,
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5751
|
+
we as Manager,
|
|
5752
|
+
re as ManagerCommon,
|
|
5753
|
+
Gt as ManagerDataFactory,
|
|
5754
|
+
tt as ManagerDataProvider,
|
|
5755
|
+
nt as MetaTagItem,
|
|
5778
5756
|
D as NamedIdentity,
|
|
5779
5757
|
G as Opf,
|
|
5780
5758
|
b as OpfEnum,
|
|
5781
|
-
|
|
5759
|
+
it as Order,
|
|
5782
5760
|
rr as OrderInfo,
|
|
5783
|
-
|
|
5784
|
-
|
|
5761
|
+
zr as OrderPaymentStatus,
|
|
5762
|
+
st as OrderProduct,
|
|
5785
5763
|
er as OrderShortInfo,
|
|
5786
|
-
|
|
5787
|
-
|
|
5764
|
+
Br as OrderStatus,
|
|
5765
|
+
Mt as OrdersDataProvider,
|
|
5788
5766
|
M as PartnerGroup,
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5767
|
+
Wr as PaymentType,
|
|
5768
|
+
wt as PreferencesStorageProvider,
|
|
5769
|
+
Re as PriceAnalyze,
|
|
5770
|
+
It as PriceAnalyzeProvider,
|
|
5771
|
+
fe as PriceCoefficient,
|
|
5794
5772
|
ze as PriceCoefficientEnum,
|
|
5795
5773
|
W as PriceTemplate,
|
|
5796
|
-
|
|
5774
|
+
ve as PriceTemplateCategory,
|
|
5797
5775
|
Y as PriceTemplateClient,
|
|
5798
5776
|
je as PriceTemplateICatalogableItem,
|
|
5799
|
-
|
|
5800
|
-
|
|
5777
|
+
Pe as PriceTemplateProduct,
|
|
5778
|
+
_t as PriceTemplateProvider,
|
|
5801
5779
|
Z as PricingRole,
|
|
5802
|
-
|
|
5803
|
-
|
|
5780
|
+
St as PricingRoleProvider,
|
|
5781
|
+
Ae as PrimaryCatalogableItem,
|
|
5804
5782
|
_ as Product,
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5783
|
+
At as ProductCategoryDataProvider,
|
|
5784
|
+
$t as ProductDataProvider,
|
|
5785
|
+
jr as ProductFileType,
|
|
5786
|
+
ae as ProductPriceCoefficient,
|
|
5787
|
+
Jr as ProductPriceHistory,
|
|
5810
5788
|
at as PropertiesProvider,
|
|
5811
5789
|
X as Property,
|
|
5812
5790
|
Ee as PropertyType,
|
|
5813
|
-
|
|
5791
|
+
dr as PropertyTypeEnum,
|
|
5814
5792
|
z as PropertyValue,
|
|
5815
|
-
|
|
5793
|
+
Lt as RecommendationsDataProvider,
|
|
5816
5794
|
Ne as RecommendationsList,
|
|
5817
5795
|
w as Reference,
|
|
5818
5796
|
R as ReferenceDataProvider,
|
|
5819
|
-
|
|
5797
|
+
te as Region,
|
|
5820
5798
|
Je as ResourceType,
|
|
5821
5799
|
S as SalesDirection,
|
|
5822
5800
|
kr as SentryConfig,
|
|
5823
5801
|
Me as Seo,
|
|
5824
|
-
|
|
5802
|
+
Ft as SeoDataProvider,
|
|
5825
5803
|
Qe as SourcePrimaryInterest,
|
|
5826
5804
|
br as StockCount,
|
|
5827
|
-
|
|
5828
|
-
|
|
5805
|
+
Ct as TemplatesListFilters,
|
|
5806
|
+
Le as TypedInstanceFactory,
|
|
5829
5807
|
Ge as UnitsHelper,
|
|
5830
|
-
|
|
5808
|
+
dt as UnknownClientDataProvider,
|
|
5831
5809
|
We as UpdatableNamedIdentity,
|
|
5832
|
-
|
|
5810
|
+
Er as User,
|
|
5833
5811
|
Ve as UserCommonInfo,
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5812
|
+
Kr as UserDataProvider,
|
|
5813
|
+
U as UserShortInfo,
|
|
5814
|
+
Vr as UserTypeEnum,
|
|
5837
5815
|
Nr as VersionConfig,
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
zt as
|
|
5841
|
-
Bt as useUserStateStore
|
|
5816
|
+
ye as Warehouse,
|
|
5817
|
+
Ht as useReferencesStore,
|
|
5818
|
+
zt as useUserStateStore
|
|
5842
5819
|
};
|
|
5843
5820
|
//# sourceMappingURL=sc-common-lib.js.map
|