@snabcentr/common-lib 1.57.1 → 1.58.1
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 +250 -246
- 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/internal/base/base-category.d.ts.map +1 -1
- package/dist/src/catalog/classes/product.d.ts +4 -0
- package/dist/src/catalog/classes/product.d.ts.map +1 -1
- package/dist/src/catalog/interfaces/i-product.d.ts +4 -0
- package/dist/src/catalog/interfaces/i-product.d.ts.map +1 -1
- package/dist/src/catalog/types/search-result.d.ts +2 -2
- package/dist/src/catalog/types/search-result.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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 {
|
|
5
|
-
import { parseISO as f, format as z, addSeconds as
|
|
6
|
-
import
|
|
7
|
-
import { objectToSnake as Ie, objectToCamel as
|
|
4
|
+
import { toUpper as ir, constant as nr, isUndefined as or, isString as m, cloneDeep as cr, noop as y, toLower as lr, map as oe, forEach as pr, isNil as Me, isDate as ur, isFunction as Fe, isEmpty as hr } from "lodash-es";
|
|
5
|
+
import { parseISO as f, format as z, addSeconds as gr, isAfter as mr, startOfToday as de, addBusinessDays as fr, endOfTomorrow as yr, startOfTomorrow as wr, endOfYesterday as Cr, startOfYesterday as vr, endOfToday as Pr, endOfDay as Rr, startOfDay as Dr } from "date-fns";
|
|
6
|
+
import $r from "axios";
|
|
7
|
+
import { objectToSnake as Ie, objectToCamel as Ar } from "ts-case-convert";
|
|
8
8
|
import { defineStore as ge } from "pinia";
|
|
9
9
|
import { ref as C, computed as v } from "vue";
|
|
10
|
-
class
|
|
10
|
+
class d {
|
|
11
11
|
/**
|
|
12
12
|
* Инициализирует экземпляр класса {@link Identity}.
|
|
13
13
|
*
|
|
@@ -31,7 +31,7 @@ class F {
|
|
|
31
31
|
return this.id === -1;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
class D extends
|
|
34
|
+
class D extends d {
|
|
35
35
|
/**
|
|
36
36
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
37
37
|
*
|
|
@@ -108,7 +108,7 @@ class se extends De {
|
|
|
108
108
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
109
109
|
*/
|
|
110
110
|
t(this, "currencyRates");
|
|
111
|
-
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e
|
|
111
|
+
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [ir(s), i])) : void 0;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
var ze = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ze || {});
|
|
@@ -136,7 +136,7 @@ class me extends w {
|
|
|
136
136
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
137
137
|
*/
|
|
138
138
|
static getRetailPriceCoefficient() {
|
|
139
|
-
return { id: -2, slug: ze.Retail, name: "Розн. цена", guid: "", isNewRec:
|
|
139
|
+
return { id: -2, slug: ze.Retail, name: "Розн. цена", guid: "", isNewRec: nr(!0) };
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
class _e {
|
|
@@ -221,7 +221,7 @@ class fe extends w {
|
|
|
221
221
|
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Be(e == null ? void 0 : e.coordinates);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
class
|
|
224
|
+
class Tr {
|
|
225
225
|
/**
|
|
226
226
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
227
227
|
*
|
|
@@ -253,7 +253,7 @@ const W = class W {
|
|
|
253
253
|
*/
|
|
254
254
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
255
255
|
static getConfig() {
|
|
256
|
-
if (
|
|
256
|
+
if (or(W.config))
|
|
257
257
|
throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
|
|
258
258
|
return W.config;
|
|
259
259
|
}
|
|
@@ -276,7 +276,7 @@ const W = class W {
|
|
|
276
276
|
*/
|
|
277
277
|
t(W, "config");
|
|
278
278
|
let T = W;
|
|
279
|
-
class
|
|
279
|
+
class br extends He {
|
|
280
280
|
/**
|
|
281
281
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
282
282
|
*
|
|
@@ -291,7 +291,7 @@ class Tr extends He {
|
|
|
291
291
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
class
|
|
294
|
+
class _r {
|
|
295
295
|
/**
|
|
296
296
|
* Инициализирует экземпляр класса {@link Image}.
|
|
297
297
|
*
|
|
@@ -314,7 +314,7 @@ class br {
|
|
|
314
314
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
class _ extends
|
|
317
|
+
class _ extends br {
|
|
318
318
|
/**
|
|
319
319
|
* Инициализирует экземпляр класса {@link Product}.
|
|
320
320
|
*
|
|
@@ -347,6 +347,10 @@ class _ extends Tr {
|
|
|
347
347
|
* Валюта товара или услуги.
|
|
348
348
|
*/
|
|
349
349
|
t(this, "currency");
|
|
350
|
+
/**
|
|
351
|
+
* Сигнатура валюты.
|
|
352
|
+
*/
|
|
353
|
+
t(this, "currencySignature");
|
|
350
354
|
/**
|
|
351
355
|
* Стоимость товара или услуги.
|
|
352
356
|
*/
|
|
@@ -387,9 +391,9 @@ class _ extends Tr {
|
|
|
387
391
|
* Список коэффициентов цен на продукт.
|
|
388
392
|
*/
|
|
389
393
|
t(this, "priceCoefficients");
|
|
390
|
-
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
|
|
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 Tr(g))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
391
395
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
|
|
392
|
-
s && (this.category = new De({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new De(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new
|
|
396
|
+
s && (this.category = new De({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new De(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new _r(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 _e(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
393
397
|
}
|
|
394
398
|
/**
|
|
395
399
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -399,7 +403,7 @@ class _ extends Tr {
|
|
|
399
403
|
return [...e.linear, ...e.square].includes(this.unit);
|
|
400
404
|
}
|
|
401
405
|
}
|
|
402
|
-
class
|
|
406
|
+
class Sr extends d {
|
|
403
407
|
/**
|
|
404
408
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
405
409
|
*
|
|
@@ -451,10 +455,10 @@ class _r extends F {
|
|
|
451
455
|
* Признак того, что позиция является дополнительной продажей.
|
|
452
456
|
*/
|
|
453
457
|
t(this, "isAdditionalSale");
|
|
454
|
-
this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new se(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams &&
|
|
458
|
+
this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new se(), 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;
|
|
455
459
|
}
|
|
456
460
|
}
|
|
457
|
-
class ar extends
|
|
461
|
+
class ar extends Sr {
|
|
458
462
|
/**
|
|
459
463
|
* Инициализирует экземпляр класса {@link CartItem}.
|
|
460
464
|
*
|
|
@@ -526,7 +530,7 @@ class ne {
|
|
|
526
530
|
this.items = r.items.map((e) => new ar(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
527
531
|
}
|
|
528
532
|
}
|
|
529
|
-
class
|
|
533
|
+
class Lr {
|
|
530
534
|
/**
|
|
531
535
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
532
536
|
*
|
|
@@ -548,7 +552,7 @@ class Sr {
|
|
|
548
552
|
this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
|
|
549
553
|
}
|
|
550
554
|
}
|
|
551
|
-
class
|
|
555
|
+
class Ir {
|
|
552
556
|
/**
|
|
553
557
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
554
558
|
*
|
|
@@ -570,7 +574,7 @@ class Lr {
|
|
|
570
574
|
this.apiUri = (r == null ? void 0 : r.apiUri) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
|
|
571
575
|
}
|
|
572
576
|
}
|
|
573
|
-
class
|
|
577
|
+
class xr {
|
|
574
578
|
/**
|
|
575
579
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
576
580
|
*
|
|
@@ -615,7 +619,7 @@ class Ir {
|
|
|
615
619
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
616
620
|
}
|
|
617
621
|
}
|
|
618
|
-
class
|
|
622
|
+
class kr {
|
|
619
623
|
/**
|
|
620
624
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
621
625
|
*
|
|
@@ -637,7 +641,7 @@ class xr {
|
|
|
637
641
|
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";
|
|
638
642
|
}
|
|
639
643
|
}
|
|
640
|
-
class
|
|
644
|
+
class ft {
|
|
641
645
|
/**
|
|
642
646
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
643
647
|
*
|
|
@@ -693,23 +697,23 @@ class mt {
|
|
|
693
697
|
*/
|
|
694
698
|
t(this, "minSearchTermLength");
|
|
695
699
|
var e, s, i;
|
|
696
|
-
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.currentDomain = (r == null ? void 0 : r.currentDomain) ?? "", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new
|
|
700
|
+
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.currentDomain = (r == null ? void 0 : r.currentDomain) ?? "", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Ir(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Lr(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
|
|
697
701
|
units: {
|
|
698
702
|
linear: ["пог.м.", "м."],
|
|
699
703
|
square: ["м2"]
|
|
700
704
|
},
|
|
701
705
|
...r == null ? void 0 : r.products
|
|
702
|
-
}, this.sentry = new
|
|
706
|
+
}, this.sentry = new xr({
|
|
703
707
|
environment: this.environment,
|
|
704
708
|
...r == null ? void 0 : r.sentry
|
|
705
|
-
}), this.urls = r == null ? void 0 : r.urls, this.version = new
|
|
709
|
+
}), this.urls = r == null ? void 0 : r.urls, this.version = new kr(r == null ? void 0 : r.version), this.dateFormats = {
|
|
706
710
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
707
711
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
708
712
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
709
713
|
}, this.minSearchTermLength = (r == null ? void 0 : r.minSearchTermLength) ?? 3, r != null && r.themes && (this.themes = r.themes);
|
|
710
714
|
}
|
|
711
715
|
}
|
|
712
|
-
class
|
|
716
|
+
class Se {
|
|
713
717
|
/**
|
|
714
718
|
* Инициализирует экземпляр указанного класса.
|
|
715
719
|
*
|
|
@@ -728,7 +732,7 @@ class ae {
|
|
|
728
732
|
return new r(e);
|
|
729
733
|
}
|
|
730
734
|
}
|
|
731
|
-
const
|
|
735
|
+
const a = class a {
|
|
732
736
|
/**
|
|
733
737
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
734
738
|
*
|
|
@@ -749,7 +753,7 @@ const S = class S {
|
|
|
749
753
|
*/
|
|
750
754
|
t(this, "defaultInstanceNotificationErrorResponseHandler", y);
|
|
751
755
|
const s = T.getConfig().version;
|
|
752
|
-
this.defaultInstanceNotificationErrorResponseHandler =
|
|
756
|
+
this.defaultInstanceNotificationErrorResponseHandler = a.baseDefaultNotificationErrorResponseHandler, this.httpClient = $r.create({
|
|
753
757
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
754
758
|
baseURL: r,
|
|
755
759
|
headers: {
|
|
@@ -759,12 +763,12 @@ const S = class S {
|
|
|
759
763
|
...e
|
|
760
764
|
}
|
|
761
765
|
}), this.httpClient.interceptors.request.use(
|
|
762
|
-
(i) => (i.method && (i.method === "get" && i.params && (i.params = Ie(i.params)), ["put", "patch", "post"].includes(
|
|
766
|
+
(i) => (i.method && (i.method === "get" && i.params && (i.params = Ie(i.params)), ["put", "patch", "post"].includes(lr(i.method)) && i.data && (i.data = Ie(i.data))), i),
|
|
763
767
|
(i) => Promise.reject(i)
|
|
764
768
|
), this.httpClient.interceptors.response.use(
|
|
765
|
-
(i) => (i.data && (i.data =
|
|
769
|
+
(i) => (i.data && (i.data = Ar(i.data)), i),
|
|
766
770
|
// Возвращаем изменённую структуру сообщения об ошибке.
|
|
767
|
-
(i) =>
|
|
771
|
+
(i) => a.convertHttpErrorResponse(i)
|
|
768
772
|
);
|
|
769
773
|
}
|
|
770
774
|
/**
|
|
@@ -773,7 +777,7 @@ const S = class S {
|
|
|
773
777
|
* @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
|
|
774
778
|
*/
|
|
775
779
|
static setBaseDefaultNotificationErrorResponseHandler(r) {
|
|
776
|
-
|
|
780
|
+
a.baseDefaultNotificationErrorResponseHandler = r;
|
|
777
781
|
}
|
|
778
782
|
/**
|
|
779
783
|
* Возвращает экземпляр объекта текущего класса.
|
|
@@ -781,7 +785,7 @@ const S = class S {
|
|
|
781
785
|
* @param type Тип данных, которыми оперирует метод.
|
|
782
786
|
*/
|
|
783
787
|
static getInstance(r) {
|
|
784
|
-
return Object.prototype.hasOwnProperty.call(
|
|
788
|
+
return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = Se.simpleInstanceInitializer(r)), a.instances[r.name];
|
|
785
789
|
}
|
|
786
790
|
/**
|
|
787
791
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -876,15 +880,15 @@ const S = class S {
|
|
|
876
880
|
* Экземпляр объекта текущего класса.
|
|
877
881
|
*/
|
|
878
882
|
// eslint-disable-next-line no-use-before-define
|
|
879
|
-
t(
|
|
883
|
+
t(a, "instances", {}), /**
|
|
880
884
|
* Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
|
|
881
885
|
*
|
|
882
886
|
* Параметры:
|
|
883
887
|
* - error Данные об ошибке.
|
|
884
888
|
* - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
885
889
|
*/
|
|
886
|
-
t(
|
|
887
|
-
let $e =
|
|
890
|
+
t(a, "baseDefaultNotificationErrorResponseHandler", y);
|
|
891
|
+
let $e = a;
|
|
888
892
|
const j = class j extends $e {
|
|
889
893
|
/**
|
|
890
894
|
* Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
|
|
@@ -920,7 +924,7 @@ const j = class j extends $e {
|
|
|
920
924
|
*/
|
|
921
925
|
cacheResponse(e, s) {
|
|
922
926
|
j.responseDataCache.set(e, {
|
|
923
|
-
validTo:
|
|
927
|
+
validTo: gr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
924
928
|
val: s
|
|
925
929
|
});
|
|
926
930
|
}
|
|
@@ -936,7 +940,7 @@ const j = class j extends $e {
|
|
|
936
940
|
getTypedDataArrayRequester(e, s, i = !1) {
|
|
937
941
|
const o = i ? j.getCachedResponse(s) : void 0;
|
|
938
942
|
return o ? Promise.resolve(o) : this.get(s).then((l) => {
|
|
939
|
-
const p = l.map((g) =>
|
|
943
|
+
const p = l.map((g) => Se.instanceInitializer(e, g));
|
|
940
944
|
return i && p && this.cacheResponse(s, p), p;
|
|
941
945
|
});
|
|
942
946
|
}
|
|
@@ -956,7 +960,7 @@ class u extends Ae {
|
|
|
956
960
|
(s = r.devMode) != null && s.authBearerToken && (e.Authorization = `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
|
|
957
961
|
}
|
|
958
962
|
}
|
|
959
|
-
class
|
|
963
|
+
class yt extends u {
|
|
960
964
|
/**
|
|
961
965
|
* Возвращает содержимое корзины указанного клиента.
|
|
962
966
|
*
|
|
@@ -1059,7 +1063,7 @@ class ft extends u {
|
|
|
1059
1063
|
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new ne(e.data));
|
|
1060
1064
|
}
|
|
1061
1065
|
}
|
|
1062
|
-
var
|
|
1066
|
+
var Nr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Nr || {}), ae = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(ae || {}), Or = /* @__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))(Or || {});
|
|
1063
1067
|
class q extends se {
|
|
1064
1068
|
/**
|
|
1065
1069
|
* Инициализирует экземпляр класса {@link Category}.
|
|
@@ -1080,7 +1084,7 @@ class q extends se {
|
|
|
1080
1084
|
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));
|
|
1081
1085
|
}
|
|
1082
1086
|
}
|
|
1083
|
-
var
|
|
1087
|
+
var qr = /* @__PURE__ */ ((n) => (n.phone = "phone", n.tablet = "tablet", n.laptop = "laptop", n))(qr || {});
|
|
1084
1088
|
class We extends D {
|
|
1085
1089
|
/**
|
|
1086
1090
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
@@ -1096,7 +1100,7 @@ class We extends D {
|
|
|
1096
1100
|
this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1097
1101
|
}
|
|
1098
1102
|
}
|
|
1099
|
-
class
|
|
1103
|
+
class Ur extends We {
|
|
1100
1104
|
/**
|
|
1101
1105
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1102
1106
|
*
|
|
@@ -1111,7 +1115,7 @@ class qr extends We {
|
|
|
1111
1115
|
this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1112
1116
|
}
|
|
1113
1117
|
}
|
|
1114
|
-
class
|
|
1118
|
+
class wt {
|
|
1115
1119
|
/**
|
|
1116
1120
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
1117
1121
|
*
|
|
@@ -1122,7 +1126,7 @@ class yt {
|
|
|
1122
1126
|
if (e)
|
|
1123
1127
|
try {
|
|
1124
1128
|
const s = JSON.parse(e);
|
|
1125
|
-
if (
|
|
1129
|
+
if (mr(f(s.availableFor) || de(), /* @__PURE__ */ new Date()))
|
|
1126
1130
|
return s.data ?? {};
|
|
1127
1131
|
} catch {
|
|
1128
1132
|
localStorage.removeItem(r);
|
|
@@ -1160,7 +1164,7 @@ class U extends D {
|
|
|
1160
1164
|
this.type = e == null ? void 0 : e.type;
|
|
1161
1165
|
}
|
|
1162
1166
|
}
|
|
1163
|
-
class
|
|
1167
|
+
class Gr extends D {
|
|
1164
1168
|
/**
|
|
1165
1169
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1166
1170
|
*
|
|
@@ -1218,7 +1222,7 @@ class B extends We {
|
|
|
1218
1222
|
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
|
|
1219
1223
|
}
|
|
1220
1224
|
}
|
|
1221
|
-
class
|
|
1225
|
+
class E extends _ {
|
|
1222
1226
|
/**
|
|
1223
1227
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1224
1228
|
*
|
|
@@ -1254,10 +1258,10 @@ class J extends _ {
|
|
|
1254
1258
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1255
1259
|
*/
|
|
1256
1260
|
t(this, "isFavorite");
|
|
1257
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ??
|
|
1261
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? ae.Product, this.discount = e != null && e.discount ? new Gr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new B(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;
|
|
1258
1262
|
}
|
|
1259
1263
|
}
|
|
1260
|
-
class
|
|
1264
|
+
class Mr {
|
|
1261
1265
|
/**
|
|
1262
1266
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1263
1267
|
*
|
|
@@ -1275,7 +1279,7 @@ class Gr {
|
|
|
1275
1279
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
1276
1280
|
}
|
|
1277
1281
|
}
|
|
1278
|
-
class
|
|
1282
|
+
class S extends w {
|
|
1279
1283
|
}
|
|
1280
1284
|
class ee extends D {
|
|
1281
1285
|
/**
|
|
@@ -1288,7 +1292,7 @@ class ee extends D {
|
|
|
1288
1292
|
/**
|
|
1289
1293
|
* Направление продаж.
|
|
1290
1294
|
*/
|
|
1291
|
-
t(this, "salesDirection", new
|
|
1295
|
+
t(this, "salesDirection", new S());
|
|
1292
1296
|
/**
|
|
1293
1297
|
* URI путь к фотографии пользователя.
|
|
1294
1298
|
*/
|
|
@@ -1301,7 +1305,7 @@ class ee extends D {
|
|
|
1301
1305
|
* Признак того, что менеджер является основным для клиента.
|
|
1302
1306
|
*/
|
|
1303
1307
|
t(this, "isDefault");
|
|
1304
|
-
e && (this.salesDirection = new
|
|
1308
|
+
e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Mr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1305
1309
|
}
|
|
1306
1310
|
}
|
|
1307
1311
|
class ye extends ee {
|
|
@@ -1335,7 +1339,7 @@ class ye extends ee {
|
|
|
1335
1339
|
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;
|
|
1336
1340
|
}
|
|
1337
1341
|
}
|
|
1338
|
-
class
|
|
1342
|
+
class Fr extends se {
|
|
1339
1343
|
/**
|
|
1340
1344
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1341
1345
|
*
|
|
@@ -1366,7 +1370,7 @@ class dr extends se {
|
|
|
1366
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 ye(e.manager) : void 0;
|
|
1367
1371
|
}
|
|
1368
1372
|
}
|
|
1369
|
-
class ce extends
|
|
1373
|
+
class ce extends Fr {
|
|
1370
1374
|
/**
|
|
1371
1375
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1372
1376
|
*
|
|
@@ -1383,7 +1387,7 @@ class ce extends dr {
|
|
|
1383
1387
|
* Список продуктов категории.
|
|
1384
1388
|
*/
|
|
1385
1389
|
t(this, "products");
|
|
1386
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ce(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new
|
|
1390
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ce(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new E(o));
|
|
1387
1391
|
}
|
|
1388
1392
|
}
|
|
1389
1393
|
class je {
|
|
@@ -1419,7 +1423,7 @@ class Ce extends je {
|
|
|
1419
1423
|
this.productCategory = new se(e == null ? void 0 : e.productCategory);
|
|
1420
1424
|
}
|
|
1421
1425
|
}
|
|
1422
|
-
class
|
|
1426
|
+
class J extends w {
|
|
1423
1427
|
}
|
|
1424
1428
|
class re extends w {
|
|
1425
1429
|
/**
|
|
@@ -1432,8 +1436,8 @@ class re extends w {
|
|
|
1432
1436
|
/**
|
|
1433
1437
|
* Данные о стране, в которой расположен регион.
|
|
1434
1438
|
*/
|
|
1435
|
-
t(this, "country", new
|
|
1436
|
-
e && (this.country = new
|
|
1439
|
+
t(this, "country", new J());
|
|
1440
|
+
e && (this.country = new J(e.country));
|
|
1437
1441
|
}
|
|
1438
1442
|
}
|
|
1439
1443
|
class le extends w {
|
|
@@ -1487,7 +1491,7 @@ class Ve extends D {
|
|
|
1487
1491
|
* Признак активности учетной записи пользователя.
|
|
1488
1492
|
*/
|
|
1489
1493
|
t(this, "isActive");
|
|
1490
|
-
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
|
|
1494
|
+
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;
|
|
1491
1495
|
}
|
|
1492
1496
|
}
|
|
1493
1497
|
class ie extends Ve {
|
|
@@ -1532,10 +1536,10 @@ class ie extends Ve {
|
|
|
1532
1536
|
* Список менеджеров клиента.
|
|
1533
1537
|
*/
|
|
1534
1538
|
t(this, "managers");
|
|
1535
|
-
this.salesDirection = new
|
|
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 le(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 ee(i))) ?? [];
|
|
1536
1540
|
}
|
|
1537
1541
|
}
|
|
1538
|
-
class Y extends
|
|
1542
|
+
class Y extends d {
|
|
1539
1543
|
/**
|
|
1540
1544
|
* Инициализирует новый экземпляр класса.
|
|
1541
1545
|
*
|
|
@@ -1621,13 +1625,13 @@ class H {
|
|
|
1621
1625
|
this.property = new X(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
1622
1626
|
}
|
|
1623
1627
|
}
|
|
1624
|
-
class
|
|
1628
|
+
class dr extends w {
|
|
1625
1629
|
}
|
|
1626
|
-
class
|
|
1630
|
+
class Ee extends w {
|
|
1627
1631
|
}
|
|
1628
|
-
class
|
|
1632
|
+
class Ct extends w {
|
|
1629
1633
|
}
|
|
1630
|
-
class
|
|
1634
|
+
class Hr extends w {
|
|
1631
1635
|
}
|
|
1632
1636
|
class pe extends D {
|
|
1633
1637
|
/**
|
|
@@ -1662,19 +1666,19 @@ class G extends w {
|
|
|
1662
1666
|
});
|
|
1663
1667
|
}
|
|
1664
1668
|
}
|
|
1665
|
-
class Hr extends w {
|
|
1666
|
-
}
|
|
1667
1669
|
class zr extends w {
|
|
1668
1670
|
}
|
|
1669
|
-
class d extends w {
|
|
1670
|
-
}
|
|
1671
1671
|
class Br extends w {
|
|
1672
1672
|
}
|
|
1673
|
+
class M extends w {
|
|
1674
|
+
}
|
|
1673
1675
|
class Wr extends w {
|
|
1674
1676
|
}
|
|
1675
|
-
class
|
|
1677
|
+
class jr extends w {
|
|
1676
1678
|
}
|
|
1677
|
-
class
|
|
1679
|
+
class Je extends w {
|
|
1680
|
+
}
|
|
1681
|
+
class Qe extends w {
|
|
1678
1682
|
}
|
|
1679
1683
|
class R extends u {
|
|
1680
1684
|
/**
|
|
@@ -1685,20 +1689,20 @@ class R extends u {
|
|
|
1685
1689
|
* и использовать в случае аналогичных запросов.
|
|
1686
1690
|
*/
|
|
1687
1691
|
getReference(r, e = !1) {
|
|
1688
|
-
return this.getTypedDataArrayRequester(
|
|
1692
|
+
return this.getTypedDataArrayRequester(dr, `/internal/references/${r}`, e);
|
|
1689
1693
|
}
|
|
1690
1694
|
/**
|
|
1691
1695
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
1692
1696
|
* первичного интереса.
|
|
1693
1697
|
*/
|
|
1694
1698
|
getChannelPrimaryInterest() {
|
|
1695
|
-
return this.getTypedDataArrayRequester(
|
|
1699
|
+
return this.getTypedDataArrayRequester(Ee, "/internal/references/channel-primary-interest", !0);
|
|
1696
1700
|
}
|
|
1697
1701
|
/**
|
|
1698
1702
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
1699
1703
|
*/
|
|
1700
1704
|
getContactPositions() {
|
|
1701
|
-
return this.getTypedDataArrayRequester(
|
|
1705
|
+
return this.getTypedDataArrayRequester(Hr, "/internal/references/contact-position", !0);
|
|
1702
1706
|
}
|
|
1703
1707
|
/**
|
|
1704
1708
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
@@ -1711,7 +1715,7 @@ class R extends u {
|
|
|
1711
1715
|
* групп партнеров (направлений деятельности).
|
|
1712
1716
|
*/
|
|
1713
1717
|
getPartnerGroup() {
|
|
1714
|
-
return this.getTypedDataArrayRequester(
|
|
1718
|
+
return this.getTypedDataArrayRequester(M, "/internal/references/partner-group", !0);
|
|
1715
1719
|
}
|
|
1716
1720
|
/**
|
|
1717
1721
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
@@ -1723,37 +1727,37 @@ class R extends u {
|
|
|
1723
1727
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
1724
1728
|
*/
|
|
1725
1729
|
getOrderPaymentStatuses() {
|
|
1726
|
-
return this.getTypedDataArrayRequester(
|
|
1730
|
+
return this.getTypedDataArrayRequester(zr, "/public/references/order-payment-status", !0);
|
|
1727
1731
|
}
|
|
1728
1732
|
/**
|
|
1729
1733
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
1730
1734
|
*/
|
|
1731
1735
|
getOrderStatuses() {
|
|
1732
|
-
return this.getTypedDataArrayRequester(
|
|
1736
|
+
return this.getTypedDataArrayRequester(Br, "/public/references/order-status", !0);
|
|
1733
1737
|
}
|
|
1734
1738
|
/**
|
|
1735
1739
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
1736
1740
|
*/
|
|
1737
1741
|
getPaymentTypes() {
|
|
1738
|
-
return this.getTypedDataArrayRequester(
|
|
1742
|
+
return this.getTypedDataArrayRequester(Wr, "/public/references/payment-type", !0);
|
|
1739
1743
|
}
|
|
1740
1744
|
/**
|
|
1741
1745
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
1742
1746
|
*/
|
|
1743
1747
|
getResourceTypes() {
|
|
1744
|
-
return this.getTypedDataArrayRequester(
|
|
1748
|
+
return this.getTypedDataArrayRequester(Je, "/internal/references/resource-type", !0);
|
|
1745
1749
|
}
|
|
1746
1750
|
/**
|
|
1747
1751
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
1748
1752
|
*/
|
|
1749
1753
|
getSalesDirections() {
|
|
1750
|
-
return this.getTypedDataArrayRequester(
|
|
1754
|
+
return this.getTypedDataArrayRequester(S, "/public/references/sales-direction", !0);
|
|
1751
1755
|
}
|
|
1752
1756
|
/**
|
|
1753
1757
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
1754
1758
|
*/
|
|
1755
1759
|
getSourcePrimaryInterest() {
|
|
1756
|
-
return this.getTypedDataArrayRequester(
|
|
1760
|
+
return this.getTypedDataArrayRequester(Qe, "/internal/references/source-primary-interest", !0);
|
|
1757
1761
|
}
|
|
1758
1762
|
/**
|
|
1759
1763
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -1777,7 +1781,7 @@ class R extends u {
|
|
|
1777
1781
|
* @param term Терм поиска.
|
|
1778
1782
|
*/
|
|
1779
1783
|
searchCountry(r) {
|
|
1780
|
-
return this.getTypedDataArrayRequester(
|
|
1784
|
+
return this.getTypedDataArrayRequester(J, `/internal/references/country/search?term=${r}`);
|
|
1781
1785
|
}
|
|
1782
1786
|
/**
|
|
1783
1787
|
* Возвращает {@link Promise} для получения справочника типов доставки.
|
|
@@ -1807,11 +1811,11 @@ class R extends u {
|
|
|
1807
1811
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
1808
1812
|
*/
|
|
1809
1813
|
getProductFileType() {
|
|
1810
|
-
return this.getTypedDataArrayRequester(
|
|
1814
|
+
return this.getTypedDataArrayRequester(jr, "/public/references/product-file-type", !0);
|
|
1811
1815
|
}
|
|
1812
1816
|
}
|
|
1813
|
-
var
|
|
1814
|
-
class
|
|
1817
|
+
var Vr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Vr || {});
|
|
1818
|
+
class Kr extends Ve {
|
|
1815
1819
|
/**
|
|
1816
1820
|
* Инициализирует экземпляр класса {@link User}.
|
|
1817
1821
|
*
|
|
@@ -1834,13 +1838,13 @@ class Vr extends Ve {
|
|
|
1834
1838
|
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;
|
|
1835
1839
|
}
|
|
1836
1840
|
}
|
|
1837
|
-
class
|
|
1841
|
+
class Er extends u {
|
|
1838
1842
|
/**
|
|
1839
1843
|
* Возвращает данные о текущем пользователе.
|
|
1840
1844
|
*/
|
|
1841
1845
|
// eslint-disable-next-line class-methods-use-this
|
|
1842
1846
|
getCurrentUser() {
|
|
1843
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
1847
|
+
return this.get("/internal/users/info", {}, (r) => new Kr(r.data));
|
|
1844
1848
|
}
|
|
1845
1849
|
}
|
|
1846
1850
|
class Jr {
|
|
@@ -1991,10 +1995,10 @@ class Pe {
|
|
|
1991
1995
|
* Источник клиентской цены.
|
|
1992
1996
|
*/
|
|
1993
1997
|
t(this, "source");
|
|
1994
|
-
this.client = new ie(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) ??
|
|
1998
|
+
this.client = new ie(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) ?? ae.Product;
|
|
1995
1999
|
}
|
|
1996
2000
|
}
|
|
1997
|
-
class
|
|
2001
|
+
class vt extends u {
|
|
1998
2002
|
/**
|
|
1999
2003
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
2000
2004
|
*
|
|
@@ -2025,7 +2029,7 @@ class Ct extends u {
|
|
|
2025
2029
|
return s && (l += `&category_id=${s}`), i && (l += `&client_id=${i}`), l;
|
|
2026
2030
|
}
|
|
2027
2031
|
}
|
|
2028
|
-
class
|
|
2032
|
+
class Pt extends u {
|
|
2029
2033
|
/**
|
|
2030
2034
|
* Импортирует цены клиента из CSV файла.
|
|
2031
2035
|
*
|
|
@@ -2149,7 +2153,7 @@ class vt extends u {
|
|
|
2149
2153
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2150
2154
|
increase_percent: s.value
|
|
2151
2155
|
},
|
|
2152
|
-
(o) => new
|
|
2156
|
+
(o) => new E(o.data)
|
|
2153
2157
|
);
|
|
2154
2158
|
}
|
|
2155
2159
|
/**
|
|
@@ -2161,7 +2165,7 @@ class vt extends u {
|
|
|
2161
2165
|
* @see /doc/api/internal#/operations/api_internal_client_price_products_remove
|
|
2162
2166
|
*/
|
|
2163
2167
|
removeProductPrice(r, e) {
|
|
2164
|
-
return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new
|
|
2168
|
+
return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new E(s.data));
|
|
2165
2169
|
}
|
|
2166
2170
|
/**
|
|
2167
2171
|
* Добавляет указанный продукт в список товаров для дополнительных продаж.
|
|
@@ -2224,7 +2228,7 @@ class vt extends u {
|
|
|
2224
2228
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2225
2229
|
}
|
|
2226
2230
|
}
|
|
2227
|
-
class
|
|
2231
|
+
class Rt extends u {
|
|
2228
2232
|
/**
|
|
2229
2233
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2230
2234
|
*
|
|
@@ -2314,7 +2318,7 @@ class Pt extends u {
|
|
|
2314
2318
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2315
2319
|
}
|
|
2316
2320
|
}
|
|
2317
|
-
class
|
|
2321
|
+
class Dt extends u {
|
|
2318
2322
|
/**
|
|
2319
2323
|
* Возвращает список данных о корневых категориях.
|
|
2320
2324
|
*
|
|
@@ -2387,7 +2391,7 @@ class Rt extends u {
|
|
|
2387
2391
|
getCategoryProductsCoefficients(r) {
|
|
2388
2392
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2389
2393
|
const { data: s } = e;
|
|
2390
|
-
return
|
|
2394
|
+
return pr(s, (i) => i.map((o) => new _e(o))), s;
|
|
2391
2395
|
});
|
|
2392
2396
|
}
|
|
2393
2397
|
/**
|
|
@@ -2406,7 +2410,7 @@ class Rt extends u {
|
|
|
2406
2410
|
});
|
|
2407
2411
|
}
|
|
2408
2412
|
}
|
|
2409
|
-
class
|
|
2413
|
+
class $t extends u {
|
|
2410
2414
|
/**
|
|
2411
2415
|
* Возвращает данные об указанном продукте.
|
|
2412
2416
|
*
|
|
@@ -2450,7 +2454,7 @@ class Dt extends u {
|
|
|
2450
2454
|
*/
|
|
2451
2455
|
getProductPriceHistory(r, e) {
|
|
2452
2456
|
const s = {};
|
|
2453
|
-
return
|
|
2457
|
+
return Me(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => oe(i.data, (o) => new Jr(o)));
|
|
2454
2458
|
}
|
|
2455
2459
|
/**
|
|
2456
2460
|
* Выполняет публичный поиск данных о продуктах по терму.
|
|
@@ -2468,7 +2472,7 @@ class Dt extends u {
|
|
|
2468
2472
|
});
|
|
2469
2473
|
}
|
|
2470
2474
|
}
|
|
2471
|
-
class
|
|
2475
|
+
class At extends u {
|
|
2472
2476
|
/**
|
|
2473
2477
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2474
2478
|
*
|
|
@@ -2526,11 +2530,11 @@ class $t extends u {
|
|
|
2526
2530
|
showHidden: i,
|
|
2527
2531
|
withPriceCoefficients: s
|
|
2528
2532
|
},
|
|
2529
|
-
(o) => oe(o.data, (l) => new
|
|
2533
|
+
(o) => oe(o.data, (l) => new E(l))
|
|
2530
2534
|
);
|
|
2531
2535
|
}
|
|
2532
2536
|
}
|
|
2533
|
-
class
|
|
2537
|
+
class Tt extends u {
|
|
2534
2538
|
/**
|
|
2535
2539
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2536
2540
|
*
|
|
@@ -2547,7 +2551,7 @@ class At extends u {
|
|
|
2547
2551
|
clientId: e,
|
|
2548
2552
|
withPriceCoefficients: s
|
|
2549
2553
|
},
|
|
2550
|
-
(i) => new
|
|
2554
|
+
(i) => new E(i.data)
|
|
2551
2555
|
);
|
|
2552
2556
|
}
|
|
2553
2557
|
}
|
|
@@ -2583,7 +2587,7 @@ class Ne {
|
|
|
2583
2587
|
field: this.field,
|
|
2584
2588
|
op: this.op
|
|
2585
2589
|
};
|
|
2586
|
-
return r.value =
|
|
2590
|
+
return r.value = ur(this.value) ? z(this.value, T.getConfig().dateFormats.api) : this.value, r;
|
|
2587
2591
|
}
|
|
2588
2592
|
}
|
|
2589
2593
|
class te {
|
|
@@ -2616,7 +2620,7 @@ class te {
|
|
|
2616
2620
|
toPrimitive() {
|
|
2617
2621
|
return {
|
|
2618
2622
|
groupOp: this.groupOp,
|
|
2619
|
-
filters: this.filters.map((r) => r instanceof Ne &&
|
|
2623
|
+
filters: this.filters.map((r) => r instanceof Ne && Fe(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2620
2624
|
groups: this.groups.map((r) => r instanceof te ? r.toPrimitive() : r)
|
|
2621
2625
|
};
|
|
2622
2626
|
}
|
|
@@ -2638,10 +2642,10 @@ class we extends u {
|
|
|
2638
2642
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2639
2643
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2640
2644
|
};
|
|
2641
|
-
return e && (g.filters = JSON.stringify((e instanceof te ? e : new te(e)).toPrimitive())),
|
|
2645
|
+
return e && (g.filters = JSON.stringify((e instanceof te ? e : new te(e)).toPrimitive())), hr(s) || (g.sort = s), o && (g = { ...g, ...o }), this.get(r, g, l, p);
|
|
2642
2646
|
}
|
|
2643
2647
|
}
|
|
2644
|
-
class
|
|
2648
|
+
class bt extends we {
|
|
2645
2649
|
/**
|
|
2646
2650
|
* Возвращает список шаблонов прайс-листа.
|
|
2647
2651
|
*
|
|
@@ -2829,7 +2833,7 @@ class Tt extends we {
|
|
|
2829
2833
|
);
|
|
2830
2834
|
}
|
|
2831
2835
|
}
|
|
2832
|
-
class
|
|
2836
|
+
class _t extends u {
|
|
2833
2837
|
/**
|
|
2834
2838
|
* Возвращает список ролей ценообразования.
|
|
2835
2839
|
*
|
|
@@ -2909,7 +2913,7 @@ class bt extends u {
|
|
|
2909
2913
|
);
|
|
2910
2914
|
}
|
|
2911
2915
|
}
|
|
2912
|
-
class
|
|
2916
|
+
class St extends we {
|
|
2913
2917
|
/**
|
|
2914
2918
|
* Возвращает пагинированный список свойств.
|
|
2915
2919
|
*
|
|
@@ -3327,7 +3331,7 @@ const Oe = (n) => {
|
|
|
3327
3331
|
const r = {};
|
|
3328
3332
|
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;
|
|
3329
3333
|
};
|
|
3330
|
-
class
|
|
3334
|
+
class Lt extends u {
|
|
3331
3335
|
/**
|
|
3332
3336
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
3333
3337
|
*
|
|
@@ -3377,7 +3381,7 @@ class St extends u {
|
|
|
3377
3381
|
}
|
|
3378
3382
|
}
|
|
3379
3383
|
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 || {});
|
|
3380
|
-
class Te extends
|
|
3384
|
+
class Te extends d {
|
|
3381
3385
|
/**
|
|
3382
3386
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3383
3387
|
*
|
|
@@ -3427,7 +3431,7 @@ class be extends D {
|
|
|
3427
3431
|
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;
|
|
3428
3432
|
}
|
|
3429
3433
|
}
|
|
3430
|
-
class
|
|
3434
|
+
class F extends be {
|
|
3431
3435
|
/**
|
|
3432
3436
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3433
3437
|
*
|
|
@@ -3482,11 +3486,11 @@ class Ye extends D {
|
|
|
3482
3486
|
/**
|
|
3483
3487
|
* Направление продаж.
|
|
3484
3488
|
*/
|
|
3485
|
-
t(this, "salesDirection", new
|
|
3489
|
+
t(this, "salesDirection", new S());
|
|
3486
3490
|
/**
|
|
3487
3491
|
* Группа партнеров (направление деятельности).
|
|
3488
3492
|
*/
|
|
3489
|
-
t(this, "partnerGroup", new
|
|
3493
|
+
t(this, "partnerGroup", new M());
|
|
3490
3494
|
/**
|
|
3491
3495
|
* Список контактных лиц контрагента.
|
|
3492
3496
|
*/
|
|
@@ -3520,10 +3524,10 @@ class Ye extends D {
|
|
|
3520
3524
|
*/
|
|
3521
3525
|
t(this, "updater");
|
|
3522
3526
|
if (e) {
|
|
3523
|
-
if (this.opf = new G(e.opf), this.salesDirection = new
|
|
3527
|
+
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 ee(e.manager)), e.contacts) {
|
|
3524
3528
|
const s = [];
|
|
3525
3529
|
e.contacts.forEach((i) => {
|
|
3526
|
-
s.push(new
|
|
3530
|
+
s.push(new F(i));
|
|
3527
3531
|
}), this.contacts = s;
|
|
3528
3532
|
}
|
|
3529
3533
|
if (e.bankAccounts) {
|
|
@@ -3535,7 +3539,7 @@ class Ye extends D {
|
|
|
3535
3539
|
}
|
|
3536
3540
|
}
|
|
3537
3541
|
}
|
|
3538
|
-
class
|
|
3542
|
+
class Yr extends Ye {
|
|
3539
3543
|
/**
|
|
3540
3544
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3541
3545
|
*
|
|
@@ -3603,7 +3607,7 @@ class Ze extends Xe {
|
|
|
3603
3607
|
e && (this.kpp = e.kpp ?? "");
|
|
3604
3608
|
}
|
|
3605
3609
|
}
|
|
3606
|
-
class
|
|
3610
|
+
class Xr extends Ze {
|
|
3607
3611
|
/**
|
|
3608
3612
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3609
3613
|
*
|
|
@@ -3614,7 +3618,7 @@ class Yr extends Ze {
|
|
|
3614
3618
|
/**
|
|
3615
3619
|
* Страна регистрации юридического лица нерезидента.
|
|
3616
3620
|
*/
|
|
3617
|
-
t(this, "registrationCountry", new
|
|
3621
|
+
t(this, "registrationCountry", new J());
|
|
3618
3622
|
/**
|
|
3619
3623
|
* Регистрационный номер юридического лица нерезидента.
|
|
3620
3624
|
*/
|
|
@@ -3623,7 +3627,7 @@ class Yr extends Ze {
|
|
|
3623
3627
|
* Налоговый номер юридического лица нерезидента.
|
|
3624
3628
|
*/
|
|
3625
3629
|
t(this, "taxNumber", "");
|
|
3626
|
-
e && (this.registrationCountry = new
|
|
3630
|
+
e && (this.registrationCountry = new J(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
3627
3631
|
}
|
|
3628
3632
|
}
|
|
3629
3633
|
class ue {
|
|
@@ -3639,13 +3643,13 @@ class ue {
|
|
|
3639
3643
|
case b.UlR:
|
|
3640
3644
|
return new Ze(r);
|
|
3641
3645
|
case b.UlNr:
|
|
3642
|
-
return new
|
|
3646
|
+
return new Xr(r);
|
|
3643
3647
|
default:
|
|
3644
|
-
return new
|
|
3648
|
+
return new Yr(r);
|
|
3645
3649
|
}
|
|
3646
3650
|
}
|
|
3647
3651
|
}
|
|
3648
|
-
class Re extends
|
|
3652
|
+
class Re extends d {
|
|
3649
3653
|
/**
|
|
3650
3654
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
3651
3655
|
*
|
|
@@ -3660,7 +3664,7 @@ class Re extends F {
|
|
|
3660
3664
|
this.isPrimary = e.isPrimary;
|
|
3661
3665
|
}
|
|
3662
3666
|
}
|
|
3663
|
-
class
|
|
3667
|
+
class Zr extends F {
|
|
3664
3668
|
/**
|
|
3665
3669
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3666
3670
|
*
|
|
@@ -3688,7 +3692,7 @@ class Xr extends M {
|
|
|
3688
3692
|
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Re(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Re(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Re(s))));
|
|
3689
3693
|
}
|
|
3690
3694
|
}
|
|
3691
|
-
class he extends
|
|
3695
|
+
class he extends Ur {
|
|
3692
3696
|
/**
|
|
3693
3697
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
3694
3698
|
*
|
|
@@ -3725,7 +3729,7 @@ class he extends qr {
|
|
|
3725
3729
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
3726
3730
|
*/
|
|
3727
3731
|
t(this, "isTransportCompanyAddress");
|
|
3728
|
-
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
|
|
3732
|
+
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;
|
|
3729
3733
|
}
|
|
3730
3734
|
}
|
|
3731
3735
|
class qe extends ie {
|
|
@@ -3782,10 +3786,10 @@ class qe extends ie {
|
|
|
3782
3786
|
* Дополнительные данные о клиенте.
|
|
3783
3787
|
*/
|
|
3784
3788
|
t(this, "extraData");
|
|
3785
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => ue.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new
|
|
3789
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => ue.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 he(p))) ?? [], this.channelPrimaryInterest = new Ee(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 fe(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
3786
3790
|
}
|
|
3787
3791
|
}
|
|
3788
|
-
class
|
|
3792
|
+
class Q {
|
|
3789
3793
|
/**
|
|
3790
3794
|
* Инициализирует экземпляр класса {@link DatePeriod}.
|
|
3791
3795
|
*
|
|
@@ -3803,7 +3807,7 @@ class E {
|
|
|
3803
3807
|
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;
|
|
3804
3808
|
}
|
|
3805
3809
|
}
|
|
3806
|
-
class
|
|
3810
|
+
class It {
|
|
3807
3811
|
/**
|
|
3808
3812
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
3809
3813
|
*
|
|
@@ -3853,11 +3857,11 @@ class Lt {
|
|
|
3853
3857
|
/**
|
|
3854
3858
|
* Период регистрации.
|
|
3855
3859
|
*/
|
|
3856
|
-
t(this, "createdAt", new
|
|
3860
|
+
t(this, "createdAt", new Q());
|
|
3857
3861
|
/**
|
|
3858
3862
|
* Период последнего входа.
|
|
3859
3863
|
*/
|
|
3860
|
-
t(this, "lastLoginDate", new
|
|
3864
|
+
t(this, "lastLoginDate", new Q());
|
|
3861
3865
|
/**
|
|
3862
3866
|
* Признак того, что в указанный период последнего входа, клиентом был сделан заказ.
|
|
3863
3867
|
*/
|
|
@@ -3895,8 +3899,8 @@ class Lt {
|
|
|
3895
3899
|
*/
|
|
3896
3900
|
t(this, "lastOrder");
|
|
3897
3901
|
var e, s, i;
|
|
3898
|
-
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 le(r == null ? void 0 : r.city), this.region = new re(r == null ? void 0 : r.region), this.country = new
|
|
3899
|
-
createdAt: new
|
|
3902
|
+
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 le(r == null ? void 0 : r.city), this.region = new re(r == null ? void 0 : r.region), this.country = new J(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 Q(r == null ? void 0 : r.createdAt), this.lastLoginDate = new Q(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 ye(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 be(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
3903
|
+
createdAt: new Q((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
|
|
3900
3904
|
creator: (s = r == null ? void 0 : r.lastOrder) == null ? void 0 : s.creator,
|
|
3901
3905
|
isApproved: (i = r == null ? void 0 : r.lastOrder) == null ? void 0 : i.isApproved
|
|
3902
3906
|
};
|
|
@@ -3942,7 +3946,7 @@ class Lt {
|
|
|
3942
3946
|
this.managers = [];
|
|
3943
3947
|
break;
|
|
3944
3948
|
case "salesDirection":
|
|
3945
|
-
this.salesDirection = new
|
|
3949
|
+
this.salesDirection = new S();
|
|
3946
3950
|
break;
|
|
3947
3951
|
case "contragentType":
|
|
3948
3952
|
this.contragentType = new G();
|
|
@@ -3951,7 +3955,7 @@ class Lt {
|
|
|
3951
3955
|
this.preferredDeliveryType = new K();
|
|
3952
3956
|
break;
|
|
3953
3957
|
case "partnerGroup":
|
|
3954
|
-
this.partnerGroup = new
|
|
3958
|
+
this.partnerGroup = new M();
|
|
3955
3959
|
break;
|
|
3956
3960
|
case "contact":
|
|
3957
3961
|
this.contact = new be();
|
|
@@ -3969,11 +3973,11 @@ class Lt {
|
|
|
3969
3973
|
return Object.keys(this).forEach((l) => {
|
|
3970
3974
|
const p = this[l];
|
|
3971
3975
|
// eslint-disable-next-line prettier/prettier
|
|
3972
|
-
|
|
3976
|
+
Me(p) || m(p) && p.trim().length === 0 || Fe(p.isNewRec) && p.isNewRec() || (r[l] = p);
|
|
3973
3977
|
}), !((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;
|
|
3974
3978
|
}
|
|
3975
3979
|
}
|
|
3976
|
-
class er extends
|
|
3980
|
+
class er extends d {
|
|
3977
3981
|
/**
|
|
3978
3982
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
3979
3983
|
*
|
|
@@ -3996,7 +4000,7 @@ class er extends F {
|
|
|
3996
4000
|
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;
|
|
3997
4001
|
}
|
|
3998
4002
|
}
|
|
3999
|
-
class
|
|
4003
|
+
class et extends D {
|
|
4000
4004
|
/**
|
|
4001
4005
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4002
4006
|
*
|
|
@@ -4029,10 +4033,10 @@ class Zr extends D {
|
|
|
4029
4033
|
* Список менеджеров.
|
|
4030
4034
|
*/
|
|
4031
4035
|
t(this, "managers");
|
|
4032
|
-
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new
|
|
4036
|
+
(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 ee(o)));
|
|
4033
4037
|
}
|
|
4034
4038
|
}
|
|
4035
|
-
class
|
|
4039
|
+
class rt {
|
|
4036
4040
|
/**
|
|
4037
4041
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
4038
4042
|
*
|
|
@@ -4050,7 +4054,7 @@ class et {
|
|
|
4050
4054
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4051
4055
|
}
|
|
4052
4056
|
}
|
|
4053
|
-
class
|
|
4057
|
+
class xt extends rt {
|
|
4054
4058
|
/**
|
|
4055
4059
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4056
4060
|
*
|
|
@@ -4081,7 +4085,7 @@ class It extends et {
|
|
|
4081
4085
|
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;
|
|
4082
4086
|
}
|
|
4083
4087
|
}
|
|
4084
|
-
class
|
|
4088
|
+
class kt {
|
|
4085
4089
|
/**
|
|
4086
4090
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
4087
4091
|
*
|
|
@@ -4099,7 +4103,7 @@ class xt {
|
|
|
4099
4103
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4100
4104
|
}
|
|
4101
4105
|
}
|
|
4102
|
-
class
|
|
4106
|
+
class Nt extends we {
|
|
4103
4107
|
/**
|
|
4104
4108
|
* Возвращает данные об указанном клиенте.
|
|
4105
4109
|
*
|
|
@@ -4149,7 +4153,7 @@ class kt extends we {
|
|
|
4149
4153
|
const s = r.map((i) => i.id);
|
|
4150
4154
|
return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
|
|
4151
4155
|
let o = [];
|
|
4152
|
-
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((l) => new
|
|
4156
|
+
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((l) => new et(l))), o;
|
|
4153
4157
|
});
|
|
4154
4158
|
}
|
|
4155
4159
|
/**
|
|
@@ -4161,7 +4165,7 @@ class kt extends we {
|
|
|
4161
4165
|
getAllClientContacts(r) {
|
|
4162
4166
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
4163
4167
|
let s = [];
|
|
4164
|
-
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new
|
|
4168
|
+
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Zr(i))), s;
|
|
4165
4169
|
});
|
|
4166
4170
|
}
|
|
4167
4171
|
/**
|
|
@@ -4654,7 +4658,7 @@ class kt extends we {
|
|
|
4654
4658
|
comment: e.comment,
|
|
4655
4659
|
not_disturb: e.notDisturb
|
|
4656
4660
|
},
|
|
4657
|
-
(i) => new
|
|
4661
|
+
(i) => new F(i.data),
|
|
4658
4662
|
s
|
|
4659
4663
|
);
|
|
4660
4664
|
}
|
|
@@ -4797,7 +4801,7 @@ class kt extends we {
|
|
|
4797
4801
|
comment: e.comment,
|
|
4798
4802
|
...s
|
|
4799
4803
|
};
|
|
4800
|
-
return (l = e.phone) != null && l.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (g) => new
|
|
4804
|
+
return (l = e.phone) != null && l.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (g) => new F(g.data), i);
|
|
4801
4805
|
}
|
|
4802
4806
|
/**
|
|
4803
4807
|
* Устанавливает признак основного контактного лица.
|
|
@@ -4826,7 +4830,7 @@ class kt extends we {
|
|
|
4826
4830
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
4827
4831
|
}
|
|
4828
4832
|
}
|
|
4829
|
-
class
|
|
4833
|
+
class Ot extends u {
|
|
4830
4834
|
/**
|
|
4831
4835
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
4832
4836
|
*
|
|
@@ -4840,7 +4844,7 @@ class Nt extends u {
|
|
|
4840
4844
|
});
|
|
4841
4845
|
}
|
|
4842
4846
|
}
|
|
4843
|
-
class
|
|
4847
|
+
class qt extends u {
|
|
4844
4848
|
/**
|
|
4845
4849
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
4846
4850
|
*
|
|
@@ -4911,18 +4915,18 @@ class Ot extends u {
|
|
|
4911
4915
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
|
|
4912
4916
|
}
|
|
4913
4917
|
}
|
|
4914
|
-
class
|
|
4918
|
+
class Ut {
|
|
4915
4919
|
/**
|
|
4916
4920
|
* Возвращает диапазон дат по умолчанию.
|
|
4917
4921
|
*/
|
|
4918
4922
|
static defaultDateRanges() {
|
|
4919
|
-
const r =
|
|
4923
|
+
const r = fr(/* @__PURE__ */ new Date(), 1);
|
|
4920
4924
|
return {
|
|
4921
4925
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
4922
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
4923
|
-
today: { label: "Сегодня", from:
|
|
4924
|
-
yesterday: { label: "Вчера", from:
|
|
4925
|
-
tomorrow: { label: "Завтра", from:
|
|
4926
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: Dr(r), to: Rr(r) },
|
|
4927
|
+
today: { label: "Сегодня", from: de(), to: Pr() },
|
|
4928
|
+
yesterday: { label: "Вчера", from: vr(), to: Cr() },
|
|
4929
|
+
tomorrow: { label: "Завтра", from: wr(), to: yr() }
|
|
4926
4930
|
};
|
|
4927
4931
|
}
|
|
4928
4932
|
}
|
|
@@ -4967,7 +4971,7 @@ const V = class V {
|
|
|
4967
4971
|
*/
|
|
4968
4972
|
t(V, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
4969
4973
|
let Ue = V;
|
|
4970
|
-
class
|
|
4974
|
+
class Gt {
|
|
4971
4975
|
/**
|
|
4972
4976
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
4973
4977
|
*/
|
|
@@ -4983,14 +4987,14 @@ class Ut {
|
|
|
4983
4987
|
return r.id === 0 && r.guid === "-undefined-";
|
|
4984
4988
|
}
|
|
4985
4989
|
}
|
|
4986
|
-
class
|
|
4990
|
+
class tt extends u {
|
|
4987
4991
|
/**
|
|
4988
4992
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
4989
4993
|
*/
|
|
4990
4994
|
getManagers() {
|
|
4991
4995
|
const r = "/internal/managers", e = u.getCachedResponse(r);
|
|
4992
4996
|
return e ? Promise.resolve(e) : this.get(r).then((s) => {
|
|
4993
|
-
const i = s.data.map((o) =>
|
|
4997
|
+
const i = s.data.map((o) => Se.instanceInitializer(ye, o));
|
|
4994
4998
|
return i && this.cacheResponse(r, i), i;
|
|
4995
4999
|
});
|
|
4996
5000
|
}
|
|
@@ -5053,10 +5057,10 @@ class rr extends er {
|
|
|
5053
5057
|
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(),
|
|
5054
5058
|
address: ($ = e == null ? void 0 : e.delivery) != null && $.address ? new he(e.delivery.address) : void 0,
|
|
5055
5059
|
warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new fe(e.delivery.warehouse) : void 0
|
|
5056
|
-
}, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new
|
|
5060
|
+
}, 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;
|
|
5057
5061
|
}
|
|
5058
5062
|
}
|
|
5059
|
-
class
|
|
5063
|
+
class st extends d {
|
|
5060
5064
|
/**
|
|
5061
5065
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5062
5066
|
*
|
|
@@ -5136,10 +5140,10 @@ class tt extends F {
|
|
|
5136
5140
|
* который соответствует указанной ширине. Количество не ограничено.
|
|
5137
5141
|
*/
|
|
5138
5142
|
t(this, "sawing");
|
|
5139
|
-
this.product = new
|
|
5143
|
+
this.product = new E(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;
|
|
5140
5144
|
}
|
|
5141
5145
|
}
|
|
5142
|
-
class
|
|
5146
|
+
class it extends rr {
|
|
5143
5147
|
/**
|
|
5144
5148
|
* Инициализирует экземпляр класса {@link Order}.
|
|
5145
5149
|
*
|
|
@@ -5179,10 +5183,10 @@ class st extends rr {
|
|
|
5179
5183
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
5180
5184
|
*/
|
|
5181
5185
|
t(this, "isAllowProcessingWithoutPayment");
|
|
5182
|
-
this.products = (e.products ?? []).map((s) => new
|
|
5186
|
+
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 ? ue.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5183
5187
|
}
|
|
5184
5188
|
}
|
|
5185
|
-
class
|
|
5189
|
+
class Mt extends we {
|
|
5186
5190
|
/**
|
|
5187
5191
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5188
5192
|
*
|
|
@@ -5213,10 +5217,10 @@ class Gt extends we {
|
|
|
5213
5217
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
5214
5218
|
*/
|
|
5215
5219
|
getOrder(r) {
|
|
5216
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
5220
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new it(e.data));
|
|
5217
5221
|
}
|
|
5218
5222
|
}
|
|
5219
|
-
class
|
|
5223
|
+
class nt {
|
|
5220
5224
|
/**
|
|
5221
5225
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
5222
5226
|
*
|
|
@@ -5270,10 +5274,10 @@ class Ge {
|
|
|
5270
5274
|
*/
|
|
5271
5275
|
t(this, "meta");
|
|
5272
5276
|
var e;
|
|
5273
|
-
this.resourceType = new
|
|
5277
|
+
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))) ?? [];
|
|
5274
5278
|
}
|
|
5275
5279
|
}
|
|
5276
|
-
class
|
|
5280
|
+
class Ft extends u {
|
|
5277
5281
|
/**
|
|
5278
5282
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
5279
5283
|
*
|
|
@@ -5380,7 +5384,7 @@ const P = ge("__references_private", () => {
|
|
|
5380
5384
|
*/
|
|
5381
5385
|
priceCoefficientsReference: c
|
|
5382
5386
|
};
|
|
5383
|
-
}),
|
|
5387
|
+
}), dt = ge("references", () => {
|
|
5384
5388
|
const n = v(() => {
|
|
5385
5389
|
const c = P();
|
|
5386
5390
|
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((h) => {
|
|
@@ -5448,7 +5452,7 @@ const P = ge("__references_private", () => {
|
|
|
5448
5452
|
}).catch(y)), c.deliveryTypeReference;
|
|
5449
5453
|
}), x = v(() => {
|
|
5450
5454
|
const c = P();
|
|
5451
|
-
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(
|
|
5455
|
+
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(tt).getManagers().then((h) => {
|
|
5452
5456
|
c.managersList = h;
|
|
5453
5457
|
}).catch(y)), c.managersList;
|
|
5454
5458
|
}), k = v(() => {
|
|
@@ -5537,7 +5541,7 @@ const P = ge("__references_private", () => {
|
|
|
5537
5541
|
*/
|
|
5538
5542
|
priceCoefficientsReference: O
|
|
5539
5543
|
};
|
|
5540
|
-
}),
|
|
5544
|
+
}), ot = ge("__user_state_private", () => {
|
|
5541
5545
|
const n = C({}), r = C(void 0);
|
|
5542
5546
|
return {
|
|
5543
5547
|
/**
|
|
@@ -5549,18 +5553,18 @@ const P = ge("__references_private", () => {
|
|
|
5549
5553
|
*/
|
|
5550
5554
|
currentUser: r
|
|
5551
5555
|
};
|
|
5552
|
-
}),
|
|
5556
|
+
}), Ht = ge("user_state", () => ({
|
|
5553
5557
|
/**
|
|
5554
5558
|
* Данные о текущем пользователе.
|
|
5555
5559
|
*/
|
|
5556
5560
|
currentUser: v(() => {
|
|
5557
|
-
const r =
|
|
5558
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(
|
|
5561
|
+
const r = ot();
|
|
5562
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Er).getCurrentUser().then((e) => {
|
|
5559
5563
|
r.currentUser = e;
|
|
5560
5564
|
}).catch(y).finally(y)), r.currentUser;
|
|
5561
5565
|
})
|
|
5562
5566
|
}));
|
|
5563
|
-
class
|
|
5567
|
+
class zt extends u {
|
|
5564
5568
|
/**
|
|
5565
5569
|
* Возвращает подсказки по адресам.
|
|
5566
5570
|
*
|
|
@@ -5607,7 +5611,7 @@ class Ht extends u {
|
|
|
5607
5611
|
});
|
|
5608
5612
|
}
|
|
5609
5613
|
}
|
|
5610
|
-
class
|
|
5614
|
+
class Bt {
|
|
5611
5615
|
/**
|
|
5612
5616
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
5613
5617
|
*
|
|
@@ -5631,93 +5635,93 @@ class zt {
|
|
|
5631
5635
|
}
|
|
5632
5636
|
}
|
|
5633
5637
|
export {
|
|
5634
|
-
|
|
5635
|
-
|
|
5638
|
+
dr as AnyReference,
|
|
5639
|
+
ft as AppBaseConfig,
|
|
5636
5640
|
T as AppConfigProvider,
|
|
5637
5641
|
Te as BankAccount,
|
|
5638
5642
|
we as BasePaginationProvider,
|
|
5639
|
-
|
|
5643
|
+
Nr as CalculationTypeEnum,
|
|
5640
5644
|
ne as Cart,
|
|
5641
5645
|
ar as CartItem,
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5646
|
+
Sr as CartItemBase,
|
|
5647
|
+
yt as CartProvider,
|
|
5648
|
+
vt as CatalogProvider,
|
|
5645
5649
|
He as CatalogableItem,
|
|
5646
5650
|
q as Category,
|
|
5647
5651
|
ke as CategoryPricingRule,
|
|
5648
|
-
|
|
5649
|
-
|
|
5652
|
+
Ee as ChannelPrimaryInterest,
|
|
5653
|
+
Ct as City,
|
|
5650
5654
|
le as CityWithRegionAndCountry,
|
|
5651
5655
|
qe as Client,
|
|
5652
|
-
|
|
5656
|
+
et as ClientAdditionalData,
|
|
5653
5657
|
ce as ClientCategory,
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5658
|
+
Nt as ClientDataProvider,
|
|
5659
|
+
Pt as ClientPriceProvider,
|
|
5660
|
+
Rt as ClientPriceTemplateProvider,
|
|
5661
|
+
E as ClientProduct,
|
|
5662
|
+
At as ClientProductCategoryDataProvider,
|
|
5663
|
+
Tt as ClientProductDataProvider,
|
|
5660
5664
|
ie as ClientShortInfo,
|
|
5661
5665
|
Qr as ClientsAdditionalDataRequestTypeEnum,
|
|
5662
|
-
|
|
5663
|
-
|
|
5666
|
+
It as ClientsListFilters,
|
|
5667
|
+
qt as ConfiguratorProvider,
|
|
5664
5668
|
be as Contact,
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
+
Mr as ContactLinks,
|
|
5670
|
+
F as ContactPerson,
|
|
5671
|
+
Zr as ContactPersonRelated,
|
|
5672
|
+
Hr as ContactPosition,
|
|
5669
5673
|
Re as ContactRelation,
|
|
5670
5674
|
Ye as ContragentBase,
|
|
5671
5675
|
ue as ContragentFactory,
|
|
5672
5676
|
Xe as ContragentIc,
|
|
5673
|
-
|
|
5674
|
-
|
|
5677
|
+
Yr as ContragentPerson,
|
|
5678
|
+
Xr as ContragentUlNr,
|
|
5675
5679
|
Ze as ContragentUlR,
|
|
5676
|
-
|
|
5677
|
-
|
|
5680
|
+
ae as CostSourceEnum,
|
|
5681
|
+
J as Country,
|
|
5678
5682
|
pe as Currency,
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5683
|
+
zt as DataSuggestionProvider,
|
|
5684
|
+
xt as DataTablePagination,
|
|
5685
|
+
rt as DataTablePaginationRequestParams,
|
|
5686
|
+
kt as DataTableSortRequestParams,
|
|
5687
|
+
Ut as DateTimeProvider,
|
|
5688
|
+
Ur as DeletableNamedIdentity,
|
|
5685
5689
|
he as DeliveryAddress,
|
|
5686
5690
|
K as DeliveryType,
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5691
|
+
Lr as DeviceTypeResolutionConfig,
|
|
5692
|
+
Gr as DiscountShortInfo,
|
|
5693
|
+
Bt as FieldValidationResultData,
|
|
5690
5694
|
te as FilterGroup,
|
|
5691
5695
|
Ne as FilterItem,
|
|
5692
5696
|
Le as FilterOpEnum,
|
|
5693
5697
|
Be as GeoCoordinates,
|
|
5694
|
-
|
|
5698
|
+
br as HiddenCatalogableItem,
|
|
5695
5699
|
Ae as HttpBaseCachedRequester,
|
|
5696
5700
|
$e as HttpBaseRequester,
|
|
5697
|
-
|
|
5701
|
+
Ir as HttpParamsConfig,
|
|
5698
5702
|
u as HttpRequester,
|
|
5699
|
-
|
|
5700
|
-
|
|
5703
|
+
d as Identity,
|
|
5704
|
+
_r as Image,
|
|
5701
5705
|
ye as Manager,
|
|
5702
5706
|
ee as ManagerCommon,
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5707
|
+
Gt as ManagerDataFactory,
|
|
5708
|
+
tt as ManagerDataProvider,
|
|
5709
|
+
nt as MetaTagItem,
|
|
5706
5710
|
D as NamedIdentity,
|
|
5707
5711
|
G as Opf,
|
|
5708
5712
|
b as OpfEnum,
|
|
5709
|
-
|
|
5713
|
+
it as Order,
|
|
5710
5714
|
rr as OrderInfo,
|
|
5711
|
-
|
|
5712
|
-
|
|
5715
|
+
zr as OrderPaymentStatus,
|
|
5716
|
+
st as OrderProduct,
|
|
5713
5717
|
er as OrderShortInfo,
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5718
|
+
Br as OrderStatus,
|
|
5719
|
+
Mt as OrdersDataProvider,
|
|
5720
|
+
M as PartnerGroup,
|
|
5721
|
+
Wr as PaymentType,
|
|
5722
|
+
wt as PreferencesStorageProvider,
|
|
5719
5723
|
Pe as PriceAnalyze,
|
|
5720
|
-
|
|
5724
|
+
Lt as PriceAnalyzeProvider,
|
|
5721
5725
|
me as PriceCoefficient,
|
|
5722
5726
|
ze as PriceCoefficientEnum,
|
|
5723
5727
|
B as PriceTemplate,
|
|
@@ -5725,46 +5729,46 @@ export {
|
|
|
5725
5729
|
Y as PriceTemplateClient,
|
|
5726
5730
|
je as PriceTemplateICatalogableItem,
|
|
5727
5731
|
ve as PriceTemplateProduct,
|
|
5728
|
-
|
|
5732
|
+
bt as PriceTemplateProvider,
|
|
5729
5733
|
Z as PricingRole,
|
|
5730
|
-
|
|
5734
|
+
_t as PricingRoleProvider,
|
|
5731
5735
|
De as PrimaryCatalogableItem,
|
|
5732
5736
|
_ as Product,
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5737
|
+
Dt as ProductCategoryDataProvider,
|
|
5738
|
+
$t as ProductDataProvider,
|
|
5739
|
+
jr as ProductFileType,
|
|
5736
5740
|
_e as ProductPriceCoefficient,
|
|
5737
5741
|
Jr as ProductPriceHistory,
|
|
5738
|
-
|
|
5742
|
+
St as PropertiesProvider,
|
|
5739
5743
|
X as Property,
|
|
5740
5744
|
Ke as PropertyType,
|
|
5741
|
-
|
|
5745
|
+
Or as PropertyTypeEnum,
|
|
5742
5746
|
H as PropertyValue,
|
|
5743
5747
|
at as RecommendationsDataProvider,
|
|
5744
5748
|
xe as RecommendationsList,
|
|
5745
5749
|
w as Reference,
|
|
5746
5750
|
R as ReferenceDataProvider,
|
|
5747
5751
|
re as Region,
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5752
|
+
Je as ResourceType,
|
|
5753
|
+
S as SalesDirection,
|
|
5754
|
+
xr as SentryConfig,
|
|
5751
5755
|
Ge as Seo,
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
+
Ft as SeoDataProvider,
|
|
5757
|
+
Qe as SourcePrimaryInterest,
|
|
5758
|
+
Tr as StockCount,
|
|
5759
|
+
Se as TypedInstanceFactory,
|
|
5756
5760
|
Ue as UnitsHelper,
|
|
5757
|
-
|
|
5761
|
+
Ot as UnknownClientDataProvider,
|
|
5758
5762
|
We as UpdatableNamedIdentity,
|
|
5759
|
-
|
|
5763
|
+
Kr as User,
|
|
5760
5764
|
Ve as UserCommonInfo,
|
|
5761
|
-
|
|
5765
|
+
Er as UserDataProvider,
|
|
5762
5766
|
U as UserShortInfo,
|
|
5763
|
-
|
|
5764
|
-
|
|
5767
|
+
Vr as UserTypeEnum,
|
|
5768
|
+
kr as VersionConfig,
|
|
5765
5769
|
fe as Warehouse,
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5770
|
+
qr as WindowResolutionEnum,
|
|
5771
|
+
dt as useReferencesStore,
|
|
5772
|
+
Ht as useUserStateStore
|
|
5769
5773
|
};
|
|
5770
5774
|
//# sourceMappingURL=sc-common-lib.js.map
|