@snabcentr/common-lib 1.49.2 → 1.49.3
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 +2 -2
- package/dist/sc-common-lib.js +226 -226
- 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/discount-short-info.d.ts.map +1 -1
- package/dist/src/system/classes/deletable-named-identity.d.ts.map +1 -1
- package/dist/src/system/classes/updatable-named-identity.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var er = Object.defineProperty;
|
|
2
2
|
var rr = (n, r, e) => r in n ? er(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
3
|
var t = (n, r, e) => rr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
-
import { constant as tr, isUndefined as sr, isString as m, cloneDeep as ir, noop as y, toLower as nr, isNil as
|
|
5
|
-
import { parseISO as f, format as z, addSeconds as ur, isAfter as hr, startOfToday as
|
|
4
|
+
import { constant as tr, isUndefined as sr, isString as m, cloneDeep as ir, noop as y, toLower as nr, isNil as Ue, isFunction as Ge, isDate as or, isEmpty as cr, isArray as lr, map as ie, forEach as pr } from "lodash-es";
|
|
5
|
+
import { parseISO as f, format as z, addSeconds as ur, isAfter as hr, startOfToday as Me, addBusinessDays as gr, endOfTomorrow as mr, startOfTomorrow as fr, endOfYesterday as yr, startOfYesterday as Cr, endOfToday as wr, endOfDay as vr, startOfDay as Pr } from "date-fns";
|
|
6
6
|
import Rr from "axios";
|
|
7
|
-
import { objectToSnake as
|
|
7
|
+
import { objectToSnake as xe, objectToCamel as Dr } from "ts-case-convert";
|
|
8
8
|
import { defineStore as he } from "pinia";
|
|
9
9
|
import { ref as w, computed as P } 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 A extends
|
|
34
|
+
class A extends d {
|
|
35
35
|
/**
|
|
36
36
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
37
37
|
*
|
|
@@ -46,7 +46,7 @@ class A extends F {
|
|
|
46
46
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
class
|
|
49
|
+
class Fe extends A {
|
|
50
50
|
/**
|
|
51
51
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
52
52
|
*
|
|
@@ -69,7 +69,7 @@ class Me extends A {
|
|
|
69
69
|
this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
class Re extends
|
|
72
|
+
class Re extends Fe {
|
|
73
73
|
/**
|
|
74
74
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
75
75
|
*
|
|
@@ -107,7 +107,7 @@ class re extends Re {
|
|
|
107
107
|
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";
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
var
|
|
110
|
+
var de = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(de || {});
|
|
111
111
|
class C extends A {
|
|
112
112
|
/**
|
|
113
113
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
@@ -132,7 +132,7 @@ class ge extends C {
|
|
|
132
132
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
133
133
|
*/
|
|
134
134
|
static getRetailPriceCoefficient() {
|
|
135
|
-
return { id: -2, slug:
|
|
135
|
+
return { id: -2, slug: de.Retail, name: "Розничная цена", guid: "", isNewRec: tr(!0) };
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
class be {
|
|
@@ -271,8 +271,8 @@ const W = class W {
|
|
|
271
271
|
* Конфигурация приложения.
|
|
272
272
|
*/
|
|
273
273
|
t(W, "config");
|
|
274
|
-
let
|
|
275
|
-
class Ar extends
|
|
274
|
+
let x = W;
|
|
275
|
+
class Ar extends Fe {
|
|
276
276
|
/**
|
|
277
277
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
278
278
|
*
|
|
@@ -310,7 +310,7 @@ class Tr {
|
|
|
310
310
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
class
|
|
313
|
+
class k extends Ar {
|
|
314
314
|
/**
|
|
315
315
|
* Инициализирует экземпляр класса {@link Product}.
|
|
316
316
|
*
|
|
@@ -385,17 +385,17 @@ class L extends Ar {
|
|
|
385
385
|
t(this, "priceCoefficients");
|
|
386
386
|
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 $r(g))) ?? [], this.type = "product";
|
|
387
387
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
|
|
388
|
-
s && (this.category = new Re({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new Re(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new Tr(g,
|
|
388
|
+
s && (this.category = new Re({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new Re(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new Tr(g, x.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 be(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
389
389
|
}
|
|
390
390
|
/**
|
|
391
391
|
* Возвращает признак, что это измеряемый товар.
|
|
392
392
|
*/
|
|
393
393
|
getIsMeasurable() {
|
|
394
|
-
const e =
|
|
394
|
+
const e = x.getConfig().products.units;
|
|
395
395
|
return [...e.linear, ...e.square].includes(this.unit);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
class br extends
|
|
398
|
+
class br extends d {
|
|
399
399
|
/**
|
|
400
400
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
401
401
|
*
|
|
@@ -447,10 +447,10 @@ class br extends F {
|
|
|
447
447
|
* Признак того, что позиция является дополнительной продажей.
|
|
448
448
|
*/
|
|
449
449
|
t(this, "isAdditionalSale");
|
|
450
|
-
this.product = new
|
|
450
|
+
this.product = new k(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new re(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && ir(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
class
|
|
453
|
+
class _r extends br {
|
|
454
454
|
/**
|
|
455
455
|
* Инициализирует экземпляр класса {@link CartItem}.
|
|
456
456
|
*
|
|
@@ -519,10 +519,10 @@ class se {
|
|
|
519
519
|
* Список итоговых сумм по направлениям продаж.
|
|
520
520
|
*/
|
|
521
521
|
t(this, "directionsSum");
|
|
522
|
-
this.items = r.items.map((e) => new
|
|
522
|
+
this.items = r.items.map((e) => new _r(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
class
|
|
525
|
+
class Sr {
|
|
526
526
|
/**
|
|
527
527
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
528
528
|
*
|
|
@@ -544,7 +544,7 @@ class _r {
|
|
|
544
544
|
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;
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
class
|
|
547
|
+
class Lr {
|
|
548
548
|
/**
|
|
549
549
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
550
550
|
*
|
|
@@ -566,7 +566,7 @@ class Sr {
|
|
|
566
566
|
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;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
class
|
|
569
|
+
class xr {
|
|
570
570
|
/**
|
|
571
571
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
572
572
|
*
|
|
@@ -611,7 +611,7 @@ class Lr {
|
|
|
611
611
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
class
|
|
614
|
+
class Ir {
|
|
615
615
|
/**
|
|
616
616
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
617
617
|
*
|
|
@@ -681,23 +681,23 @@ class ht {
|
|
|
681
681
|
*/
|
|
682
682
|
t(this, "dateFormats");
|
|
683
683
|
var e, s, i;
|
|
684
|
-
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
|
|
684
|
+
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 Lr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Sr(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
|
|
685
685
|
units: {
|
|
686
686
|
linear: ["пог.м.", "м."],
|
|
687
687
|
square: ["м2"]
|
|
688
688
|
},
|
|
689
689
|
...r == null ? void 0 : r.products
|
|
690
|
-
}, this.sentry = new
|
|
690
|
+
}, this.sentry = new xr({
|
|
691
691
|
environment: this.environment,
|
|
692
692
|
...r == null ? void 0 : r.sentry
|
|
693
|
-
}), this.urls = r == null ? void 0 : r.urls, this.version = new
|
|
693
|
+
}), this.urls = r == null ? void 0 : r.urls, this.version = new Ir(r == null ? void 0 : r.version), this.dateFormats = {
|
|
694
694
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
695
695
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
696
696
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
697
697
|
};
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
|
-
class
|
|
700
|
+
class _e {
|
|
701
701
|
/**
|
|
702
702
|
* Инициализирует экземпляр указанного класса.
|
|
703
703
|
*
|
|
@@ -716,7 +716,7 @@ class ae {
|
|
|
716
716
|
return new r(e);
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
const
|
|
719
|
+
const N = class N {
|
|
720
720
|
/**
|
|
721
721
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
722
722
|
*
|
|
@@ -736,23 +736,23 @@ const x = class x {
|
|
|
736
736
|
* - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
737
737
|
*/
|
|
738
738
|
t(this, "defaultInstanceNotificationErrorResponseHandler", y);
|
|
739
|
-
const s =
|
|
740
|
-
this.defaultInstanceNotificationErrorResponseHandler =
|
|
739
|
+
const s = x.getConfig().version;
|
|
740
|
+
this.defaultInstanceNotificationErrorResponseHandler = N.baseDefaultNotificationErrorResponseHandler, this.httpClient = Rr.create({
|
|
741
741
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
742
742
|
baseURL: r,
|
|
743
743
|
headers: {
|
|
744
|
-
"APP-VERSION": `${s.name} (${s.version}, ${z(s.date,
|
|
744
|
+
"APP-VERSION": `${s.name} (${s.version}, ${z(s.date, x.getConfig().dateFormats.api)})`,
|
|
745
745
|
Accept: "application/json",
|
|
746
746
|
"Content-Type": "application/json",
|
|
747
747
|
...e
|
|
748
748
|
}
|
|
749
749
|
}), this.httpClient.interceptors.request.use(
|
|
750
|
-
(i) => (i.method && (i.method === "get" && i.params && (i.params =
|
|
750
|
+
(i) => (i.method && (i.method === "get" && i.params && (i.params = xe(i.params)), ["put", "patch", "post"].includes(nr(i.method)) && i.data && (i.data = xe(i.data))), i),
|
|
751
751
|
(i) => Promise.reject(i)
|
|
752
752
|
), this.httpClient.interceptors.response.use(
|
|
753
753
|
(i) => (i.data && (i.data = Dr(i.data)), i),
|
|
754
754
|
// Возвращаем изменённую структуру сообщения об ошибке.
|
|
755
|
-
(i) =>
|
|
755
|
+
(i) => N.convertHttpErrorResponse(i)
|
|
756
756
|
);
|
|
757
757
|
}
|
|
758
758
|
/**
|
|
@@ -761,7 +761,7 @@ const x = class x {
|
|
|
761
761
|
* @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
|
|
762
762
|
*/
|
|
763
763
|
static setBaseDefaultNotificationErrorResponseHandler(r) {
|
|
764
|
-
|
|
764
|
+
N.baseDefaultNotificationErrorResponseHandler = r;
|
|
765
765
|
}
|
|
766
766
|
/**
|
|
767
767
|
* Возвращает экземпляр объекта текущего класса.
|
|
@@ -769,7 +769,7 @@ const x = class x {
|
|
|
769
769
|
* @param type Тип данных, которыми оперирует метод.
|
|
770
770
|
*/
|
|
771
771
|
static getInstance(r) {
|
|
772
|
-
return Object.prototype.hasOwnProperty.call(
|
|
772
|
+
return Object.prototype.hasOwnProperty.call(N.instances, r.name) || (N.instances[r.name] = _e.simpleInstanceInitializer(r)), N.instances[r.name];
|
|
773
773
|
}
|
|
774
774
|
/**
|
|
775
775
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -864,15 +864,15 @@ const x = class x {
|
|
|
864
864
|
* Экземпляр объекта текущего класса.
|
|
865
865
|
*/
|
|
866
866
|
// eslint-disable-next-line no-use-before-define
|
|
867
|
-
t(
|
|
867
|
+
t(N, "instances", {}), /**
|
|
868
868
|
* Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
|
|
869
869
|
*
|
|
870
870
|
* Параметры:
|
|
871
871
|
* - error Данные об ошибке.
|
|
872
872
|
* - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
873
873
|
*/
|
|
874
|
-
t(
|
|
875
|
-
let De =
|
|
874
|
+
t(N, "baseDefaultNotificationErrorResponseHandler", y);
|
|
875
|
+
let De = N;
|
|
876
876
|
const j = class j extends De {
|
|
877
877
|
/**
|
|
878
878
|
* Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
|
|
@@ -886,7 +886,7 @@ const j = class j extends De {
|
|
|
886
886
|
* Время кэширования данных ответов на запросы (секунд).
|
|
887
887
|
*/
|
|
888
888
|
t(this, "responseDataCacheTimeout");
|
|
889
|
-
const i =
|
|
889
|
+
const i = x.getConfig();
|
|
890
890
|
this.responseDataCacheTimeout = i.http.responseDataCacheTimeout;
|
|
891
891
|
}
|
|
892
892
|
/**
|
|
@@ -924,7 +924,7 @@ const j = class j extends De {
|
|
|
924
924
|
getTypedDataArrayRequester(e, s, i = !1) {
|
|
925
925
|
const o = i ? j.getCachedResponse(s) : void 0;
|
|
926
926
|
return o ? Promise.resolve(o) : this.get(s).then((l) => {
|
|
927
|
-
const p = l.map((g) =>
|
|
927
|
+
const p = l.map((g) => _e.instanceInitializer(e, g));
|
|
928
928
|
return i && p && this.cacheResponse(s, p), p;
|
|
929
929
|
});
|
|
930
930
|
}
|
|
@@ -940,7 +940,7 @@ class u extends $e {
|
|
|
940
940
|
*/
|
|
941
941
|
constructor() {
|
|
942
942
|
var s, i;
|
|
943
|
-
const r =
|
|
943
|
+
const r = x.getConfig(), e = {};
|
|
944
944
|
(s = r.devMode) != null && s.authBearerToken && (e.Authorization = `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
|
|
945
945
|
}
|
|
946
946
|
}
|
|
@@ -1047,8 +1047,8 @@ class gt extends u {
|
|
|
1047
1047
|
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new se(e.data));
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
|
-
var
|
|
1051
|
-
class
|
|
1050
|
+
var kr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(kr || {}), Se = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Se || {}), ar = /* @__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))(ar || {});
|
|
1051
|
+
class q extends re {
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Инициализирует экземпляр класса {@link Category}.
|
|
1054
1054
|
*
|
|
@@ -1065,7 +1065,7 @@ class d extends re {
|
|
|
1065
1065
|
* Список продуктов категории.
|
|
1066
1066
|
*/
|
|
1067
1067
|
t(this, "products");
|
|
1068
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new
|
|
1068
|
+
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 k(o));
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
1071
|
class ze extends A {
|
|
@@ -1080,7 +1080,7 @@ class ze extends A {
|
|
|
1080
1080
|
* Дата и время последнего изменения.
|
|
1081
1081
|
*/
|
|
1082
1082
|
t(this, "updatedAt");
|
|
1083
|
-
this.updatedAt = e
|
|
1083
|
+
this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
1086
|
class Nr extends ze {
|
|
@@ -1095,7 +1095,7 @@ class Nr extends ze {
|
|
|
1095
1095
|
* Дата и время последнего удаления.
|
|
1096
1096
|
*/
|
|
1097
1097
|
t(this, "deletedAt");
|
|
1098
|
-
this.deletedAt = e
|
|
1098
|
+
this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
1101
|
class mt {
|
|
@@ -1109,7 +1109,7 @@ class mt {
|
|
|
1109
1109
|
if (e)
|
|
1110
1110
|
try {
|
|
1111
1111
|
const s = JSON.parse(e);
|
|
1112
|
-
if (hr(f(s.availableFor) ||
|
|
1112
|
+
if (hr(f(s.availableFor) || Me(), /* @__PURE__ */ new Date()))
|
|
1113
1113
|
return s.data || {};
|
|
1114
1114
|
} catch {
|
|
1115
1115
|
localStorage.removeItem(r);
|
|
@@ -1132,7 +1132,7 @@ class mt {
|
|
|
1132
1132
|
);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
|
-
class
|
|
1135
|
+
class U extends A {
|
|
1136
1136
|
/**
|
|
1137
1137
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
1138
1138
|
*
|
|
@@ -1183,7 +1183,7 @@ class Or extends A {
|
|
|
1183
1183
|
* Дата и время удаления.
|
|
1184
1184
|
*/
|
|
1185
1185
|
t(this, "deletedAt");
|
|
1186
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = e
|
|
1186
|
+
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;
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
1189
|
class B extends ze {
|
|
@@ -1205,7 +1205,7 @@ class B extends ze {
|
|
|
1205
1205
|
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();
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
1208
|
-
class K extends
|
|
1208
|
+
class K extends k {
|
|
1209
1209
|
/**
|
|
1210
1210
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1211
1211
|
*
|
|
@@ -1241,10 +1241,10 @@ class K extends L {
|
|
|
1241
1241
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1242
1242
|
*/
|
|
1243
1243
|
t(this, "isFavorite");
|
|
1244
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ??
|
|
1244
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Se.Product, this.discount = e != null && e.discount ? new Or(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;
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
|
-
class
|
|
1247
|
+
class qr {
|
|
1248
1248
|
/**
|
|
1249
1249
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1250
1250
|
*
|
|
@@ -1262,7 +1262,7 @@ class dr {
|
|
|
1262
1262
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
1263
1263
|
}
|
|
1264
1264
|
}
|
|
1265
|
-
class
|
|
1265
|
+
class O extends C {
|
|
1266
1266
|
}
|
|
1267
1267
|
class ne extends A {
|
|
1268
1268
|
/**
|
|
@@ -1275,7 +1275,7 @@ class ne extends A {
|
|
|
1275
1275
|
/**
|
|
1276
1276
|
* Направление продаж.
|
|
1277
1277
|
*/
|
|
1278
|
-
t(this, "salesDirection", new
|
|
1278
|
+
t(this, "salesDirection", new O());
|
|
1279
1279
|
/**
|
|
1280
1280
|
* URI путь к фотографии пользователя.
|
|
1281
1281
|
*/
|
|
@@ -1288,7 +1288,7 @@ class ne extends A {
|
|
|
1288
1288
|
* Признак того, что менеджер является основным для клиента.
|
|
1289
1289
|
*/
|
|
1290
1290
|
t(this, "isDefault");
|
|
1291
|
-
e && (this.salesDirection = new
|
|
1291
|
+
e && (this.salesDirection = new O(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new qr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
class fe extends ne {
|
|
@@ -1322,7 +1322,7 @@ class fe extends ne {
|
|
|
1322
1322
|
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;
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
|
-
class
|
|
1325
|
+
class Ur extends re {
|
|
1326
1326
|
/**
|
|
1327
1327
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1328
1328
|
*
|
|
@@ -1353,7 +1353,7 @@ class qr extends re {
|
|
|
1353
1353
|
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 fe(e.manager) : void 0;
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
|
-
class oe extends
|
|
1356
|
+
class oe extends Ur {
|
|
1357
1357
|
/**
|
|
1358
1358
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1359
1359
|
*
|
|
@@ -1474,7 +1474,7 @@ class We extends A {
|
|
|
1474
1474
|
* Признак активности учетной записи пользователя.
|
|
1475
1475
|
*/
|
|
1476
1476
|
t(this, "isActive");
|
|
1477
|
-
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
|
|
1477
|
+
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 O(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;
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
1480
|
class te extends We {
|
|
@@ -1519,10 +1519,10 @@ class te extends We {
|
|
|
1519
1519
|
* Список менеджеров клиента.
|
|
1520
1520
|
*/
|
|
1521
1521
|
t(this, "managers");
|
|
1522
|
-
this.salesDirection = new
|
|
1522
|
+
this.salesDirection = new O(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 ce(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 ne(i))) ?? [];
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
1525
|
-
class Q extends
|
|
1525
|
+
class Q extends d {
|
|
1526
1526
|
/**
|
|
1527
1527
|
* Инициализирует новый экземпляр класса.
|
|
1528
1528
|
*
|
|
@@ -1561,7 +1561,7 @@ class we extends Be {
|
|
|
1561
1561
|
* Базовые данные о продукте.
|
|
1562
1562
|
*/
|
|
1563
1563
|
t(this, "product");
|
|
1564
|
-
this.product = new
|
|
1564
|
+
this.product = new k(e == null ? void 0 : e.product);
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
1567
|
class je extends C {
|
|
@@ -1608,13 +1608,13 @@ class H {
|
|
|
1608
1608
|
this.property = new Y(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
1609
1609
|
}
|
|
1610
1610
|
}
|
|
1611
|
-
class
|
|
1611
|
+
class Gr extends C {
|
|
1612
1612
|
}
|
|
1613
1613
|
class Ve extends C {
|
|
1614
1614
|
}
|
|
1615
1615
|
class ft extends C {
|
|
1616
1616
|
}
|
|
1617
|
-
class
|
|
1617
|
+
class Mr extends C {
|
|
1618
1618
|
}
|
|
1619
1619
|
class le extends A {
|
|
1620
1620
|
/**
|
|
@@ -1635,25 +1635,25 @@ class le extends A {
|
|
|
1635
1635
|
e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
var
|
|
1639
|
-
class
|
|
1638
|
+
var I = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(I || {});
|
|
1639
|
+
class G extends C {
|
|
1640
1640
|
/**
|
|
1641
1641
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
1642
1642
|
*/
|
|
1643
1643
|
static generatePersonItem() {
|
|
1644
|
-
return new
|
|
1644
|
+
return new G({
|
|
1645
1645
|
id: 1,
|
|
1646
1646
|
guid: "",
|
|
1647
|
-
slug:
|
|
1647
|
+
slug: I.Person,
|
|
1648
1648
|
name: ""
|
|
1649
1649
|
});
|
|
1650
1650
|
}
|
|
1651
1651
|
}
|
|
1652
|
-
class Mr extends C {
|
|
1653
|
-
}
|
|
1654
1652
|
class Fr extends C {
|
|
1655
1653
|
}
|
|
1656
|
-
class
|
|
1654
|
+
class dr extends C {
|
|
1655
|
+
}
|
|
1656
|
+
class M extends C {
|
|
1657
1657
|
}
|
|
1658
1658
|
class Hr extends C {
|
|
1659
1659
|
}
|
|
@@ -1672,7 +1672,7 @@ class D extends u {
|
|
|
1672
1672
|
* и использовать в случае аналогичных запросов.
|
|
1673
1673
|
*/
|
|
1674
1674
|
getReference(r, e = !1) {
|
|
1675
|
-
return this.getTypedDataArrayRequester(
|
|
1675
|
+
return this.getTypedDataArrayRequester(Gr, `/internal/references/${r}`, e);
|
|
1676
1676
|
}
|
|
1677
1677
|
/**
|
|
1678
1678
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
@@ -1685,7 +1685,7 @@ class D extends u {
|
|
|
1685
1685
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
1686
1686
|
*/
|
|
1687
1687
|
getContactPositions() {
|
|
1688
|
-
return this.getTypedDataArrayRequester(
|
|
1688
|
+
return this.getTypedDataArrayRequester(Mr, "/internal/references/contact-position", !0);
|
|
1689
1689
|
}
|
|
1690
1690
|
/**
|
|
1691
1691
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
@@ -1698,25 +1698,25 @@ class D extends u {
|
|
|
1698
1698
|
* групп партнеров (направлений деятельности).
|
|
1699
1699
|
*/
|
|
1700
1700
|
getPartnerGroup() {
|
|
1701
|
-
return this.getTypedDataArrayRequester(
|
|
1701
|
+
return this.getTypedDataArrayRequester(M, "/internal/references/partner-group", !0);
|
|
1702
1702
|
}
|
|
1703
1703
|
/**
|
|
1704
1704
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
1705
1705
|
*/
|
|
1706
1706
|
getOpf() {
|
|
1707
|
-
return this.getTypedDataArrayRequester(
|
|
1707
|
+
return this.getTypedDataArrayRequester(G, "/public/references/opf", !0);
|
|
1708
1708
|
}
|
|
1709
1709
|
/**
|
|
1710
1710
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
1711
1711
|
*/
|
|
1712
1712
|
getOrderPaymentStatuses() {
|
|
1713
|
-
return this.getTypedDataArrayRequester(
|
|
1713
|
+
return this.getTypedDataArrayRequester(Fr, "/public/references/order-payment-status", !0);
|
|
1714
1714
|
}
|
|
1715
1715
|
/**
|
|
1716
1716
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
1717
1717
|
*/
|
|
1718
1718
|
getOrderStatuses() {
|
|
1719
|
-
return this.getTypedDataArrayRequester(
|
|
1719
|
+
return this.getTypedDataArrayRequester(dr, "/public/references/order-status", !0);
|
|
1720
1720
|
}
|
|
1721
1721
|
/**
|
|
1722
1722
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
@@ -1734,7 +1734,7 @@ class D extends u {
|
|
|
1734
1734
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
1735
1735
|
*/
|
|
1736
1736
|
getSalesDirections() {
|
|
1737
|
-
return this.getTypedDataArrayRequester(
|
|
1737
|
+
return this.getTypedDataArrayRequester(O, "/public/references/sales-direction", !0);
|
|
1738
1738
|
}
|
|
1739
1739
|
/**
|
|
1740
1740
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
@@ -1873,10 +1873,10 @@ class Vr {
|
|
|
1873
1873
|
* Данные о валюте.
|
|
1874
1874
|
*/
|
|
1875
1875
|
t(this, "currency");
|
|
1876
|
-
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
|
|
1876
|
+
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 le(r.currency) : void 0;
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
1879
|
-
class
|
|
1879
|
+
class Ie {
|
|
1880
1880
|
/**
|
|
1881
1881
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
1882
1882
|
*
|
|
@@ -1891,7 +1891,7 @@ class xe {
|
|
|
1891
1891
|
* Список рекомендованных категорий продуктов.
|
|
1892
1892
|
*/
|
|
1893
1893
|
t(this, "productCategories", []);
|
|
1894
|
-
r != null && r.products && (this.products = r.products.map((e) => new
|
|
1894
|
+
r != null && r.products && (this.products = r.products.map((e) => new k(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new q(e)));
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
1897
1897
|
class X extends A {
|
|
@@ -1929,7 +1929,7 @@ class X extends A {
|
|
|
1929
1929
|
this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
|
-
class
|
|
1932
|
+
class ke {
|
|
1933
1933
|
/**
|
|
1934
1934
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
1935
1935
|
*
|
|
@@ -1952,7 +1952,7 @@ class Ie {
|
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
1954
1954
|
var Er = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n))(Er || {});
|
|
1955
|
-
class Ae extends
|
|
1955
|
+
class Ae extends d {
|
|
1956
1956
|
/**
|
|
1957
1957
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
1958
1958
|
*
|
|
@@ -2002,7 +2002,7 @@ class Te extends A {
|
|
|
2002
2002
|
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;
|
|
2003
2003
|
}
|
|
2004
2004
|
}
|
|
2005
|
-
class
|
|
2005
|
+
class F extends Te {
|
|
2006
2006
|
/**
|
|
2007
2007
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
2008
2008
|
*
|
|
@@ -2053,15 +2053,15 @@ class Je extends A {
|
|
|
2053
2053
|
/**
|
|
2054
2054
|
* Данные об организационно-правовой форме.
|
|
2055
2055
|
*/
|
|
2056
|
-
t(this, "opf",
|
|
2056
|
+
t(this, "opf", G.generatePersonItem());
|
|
2057
2057
|
/**
|
|
2058
2058
|
* Направление продаж.
|
|
2059
2059
|
*/
|
|
2060
|
-
t(this, "salesDirection", new
|
|
2060
|
+
t(this, "salesDirection", new O());
|
|
2061
2061
|
/**
|
|
2062
2062
|
* Группа партнеров (направление деятельности).
|
|
2063
2063
|
*/
|
|
2064
|
-
t(this, "partnerGroup", new
|
|
2064
|
+
t(this, "partnerGroup", new M());
|
|
2065
2065
|
/**
|
|
2066
2066
|
* Список контактных лиц контрагента.
|
|
2067
2067
|
*/
|
|
@@ -2095,10 +2095,10 @@ class Je extends A {
|
|
|
2095
2095
|
*/
|
|
2096
2096
|
t(this, "updater");
|
|
2097
2097
|
if (e) {
|
|
2098
|
-
if (this.opf = new
|
|
2098
|
+
if (this.opf = new G(e.opf), this.salesDirection = new O(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 ne(e.manager)), e.contacts) {
|
|
2099
2099
|
const s = [];
|
|
2100
2100
|
e.contacts.forEach((i) => {
|
|
2101
|
-
s.push(new
|
|
2101
|
+
s.push(new F(i));
|
|
2102
2102
|
}), this.contacts = s;
|
|
2103
2103
|
}
|
|
2104
2104
|
if (e.bankAccounts) {
|
|
@@ -2209,18 +2209,18 @@ class pe {
|
|
|
2209
2209
|
*/
|
|
2210
2210
|
static createInstance(r) {
|
|
2211
2211
|
switch (r.opf.slug) {
|
|
2212
|
-
case
|
|
2212
|
+
case I.Ic:
|
|
2213
2213
|
return new Qe(r);
|
|
2214
|
-
case
|
|
2214
|
+
case I.UlR:
|
|
2215
2215
|
return new Ye(r);
|
|
2216
|
-
case
|
|
2216
|
+
case I.UlNr:
|
|
2217
2217
|
return new Jr(r);
|
|
2218
2218
|
default:
|
|
2219
2219
|
return new Kr(r);
|
|
2220
2220
|
}
|
|
2221
2221
|
}
|
|
2222
2222
|
}
|
|
2223
|
-
class ve extends
|
|
2223
|
+
class ve extends d {
|
|
2224
2224
|
/**
|
|
2225
2225
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
2226
2226
|
*
|
|
@@ -2235,7 +2235,7 @@ class ve extends F {
|
|
|
2235
2235
|
this.isPrimary = e.isPrimary;
|
|
2236
2236
|
}
|
|
2237
2237
|
}
|
|
2238
|
-
class Qr extends
|
|
2238
|
+
class Qr extends F {
|
|
2239
2239
|
/**
|
|
2240
2240
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
2241
2241
|
*
|
|
@@ -2300,10 +2300,10 @@ class ue extends Nr {
|
|
|
2300
2300
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
2301
2301
|
*/
|
|
2302
2302
|
t(this, "isTransportCompanyAddress");
|
|
2303
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new He(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new
|
|
2303
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new He(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;
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
|
-
class
|
|
2306
|
+
class ae extends te {
|
|
2307
2307
|
/**
|
|
2308
2308
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2309
2309
|
*
|
|
@@ -2357,7 +2357,7 @@ class ke extends te {
|
|
|
2357
2357
|
* Дополнительные данные о клиенте.
|
|
2358
2358
|
*/
|
|
2359
2359
|
t(this, "extraData");
|
|
2360
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => pe.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new
|
|
2360
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => pe.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 ue(p))) ?? [], this.channelPrimaryInterest = new Ve(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ke(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new E(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 me(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
2363
2363
|
class yt {
|
|
@@ -2457,17 +2457,17 @@ class yt {
|
|
|
2457
2457
|
* Данные о параметрах поиска последнего заказа который сделал пользователь.
|
|
2458
2458
|
*/
|
|
2459
2459
|
t(this, "lastOrder");
|
|
2460
|
-
var e, s, i, o, l, p, g, v, $, T, b;
|
|
2460
|
+
var e, s, i, o, l, p, g, v, $, T, b, _, S, L, a;
|
|
2461
2461
|
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.city = new ce(r == null ? void 0 : r.city), this.region = new Z(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 = {
|
|
2462
|
-
from: m((e = r == null ? void 0 : r.createdAt) == null ? void 0 : e.from) ? f((s = r == null ? void 0 : r.createdAt) == null ? void 0 : s.from) : null,
|
|
2463
|
-
to: m((
|
|
2462
|
+
from: m((e = r == null ? void 0 : r.createdAt) == null ? void 0 : e.from) ? f((s = r == null ? void 0 : r.createdAt) == null ? void 0 : s.from) : (i = r == null ? void 0 : r.createdAt) == null ? void 0 : i.from,
|
|
2463
|
+
to: m((o = r == null ? void 0 : r.createdAt) == null ? void 0 : o.to) ? f((l = r == null ? void 0 : r.createdAt) == null ? void 0 : l.to) : (p = r == null ? void 0 : r.createdAt) == null ? void 0 : p.to
|
|
2464
2464
|
}, this.lastLoginDate = {
|
|
2465
|
-
from: m((
|
|
2466
|
-
to: m((
|
|
2467
|
-
}, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((
|
|
2468
|
-
createdAt: (
|
|
2469
|
-
creator: (
|
|
2470
|
-
isApproved: (
|
|
2465
|
+
from: m((g = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : g.from) ? f((v = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : v.from) : ($ = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : $.from,
|
|
2466
|
+
to: m((T = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : T.to) ? f((b = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : b.to) : (_ = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : _.to
|
|
2467
|
+
}, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((c) => new fe(c)) : [], this.salesDirection = new O(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 E(r == null ? void 0 : r.preferredDeliveryType), this.hasCostLessThenStop = r != null && r.hasCostLessThenStop ? !0 : void 0, this.partnerGroup = new M(r == null ? void 0 : r.partnerGroup), this.contact = new Te(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
2468
|
+
createdAt: (S = r == null ? void 0 : r.lastOrder) == null ? void 0 : S.createdAt,
|
|
2469
|
+
creator: (L = r == null ? void 0 : r.lastOrder) == null ? void 0 : L.creator,
|
|
2470
|
+
isApproved: (a = r == null ? void 0 : r.lastOrder) == null ? void 0 : a.isApproved
|
|
2471
2471
|
};
|
|
2472
2472
|
}
|
|
2473
2473
|
/**
|
|
@@ -2510,16 +2510,16 @@ class yt {
|
|
|
2510
2510
|
this.managers = [];
|
|
2511
2511
|
break;
|
|
2512
2512
|
case "salesDirection":
|
|
2513
|
-
this.salesDirection = new
|
|
2513
|
+
this.salesDirection = new O();
|
|
2514
2514
|
break;
|
|
2515
2515
|
case "contragentType":
|
|
2516
|
-
this.contragentType = new
|
|
2516
|
+
this.contragentType = new G();
|
|
2517
2517
|
break;
|
|
2518
2518
|
case "preferredDeliveryType":
|
|
2519
2519
|
this.preferredDeliveryType = new E();
|
|
2520
2520
|
break;
|
|
2521
2521
|
case "partnerGroup":
|
|
2522
|
-
this.partnerGroup = new
|
|
2522
|
+
this.partnerGroup = new M();
|
|
2523
2523
|
break;
|
|
2524
2524
|
case "hasCostLessThenStop":
|
|
2525
2525
|
this.hasCostLessThenStop = void 0;
|
|
@@ -2540,11 +2540,11 @@ class yt {
|
|
|
2540
2540
|
return Object.keys(this).forEach((l) => {
|
|
2541
2541
|
const p = this[l];
|
|
2542
2542
|
// eslint-disable-next-line prettier/prettier
|
|
2543
|
-
|
|
2543
|
+
Ue(p) || m(p) && p.trim().length === 0 || Ge(p.isNewRec) && p.isNewRec() || (r[l] = p);
|
|
2544
2544
|
}), !((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;
|
|
2545
2545
|
}
|
|
2546
2546
|
}
|
|
2547
|
-
class Xe extends
|
|
2547
|
+
class Xe extends d {
|
|
2548
2548
|
/**
|
|
2549
2549
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
2550
2550
|
*
|
|
@@ -2564,7 +2564,7 @@ class Xe extends F {
|
|
|
2564
2564
|
* Признак того, что заказ подтвержден в 1С.
|
|
2565
2565
|
*/
|
|
2566
2566
|
t(this, "isApproved1c");
|
|
2567
|
-
this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new
|
|
2567
|
+
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;
|
|
2568
2568
|
}
|
|
2569
2569
|
}
|
|
2570
2570
|
class Ze extends Xe {
|
|
@@ -2625,10 +2625,10 @@ class Ze extends Xe {
|
|
|
2625
2625
|
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(),
|
|
2626
2626
|
address: (v = e == null ? void 0 : e.delivery) != null && v.address ? new ue(e.delivery.address) : void 0,
|
|
2627
2627
|
warehouse: ($ = e == null ? void 0 : e.delivery) != null && $.warehouse ? new me(e.delivery.warehouse) : void 0
|
|
2628
|
-
}, this.attachedUser = new
|
|
2628
|
+
}, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new O(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;
|
|
2629
2629
|
}
|
|
2630
2630
|
}
|
|
2631
|
-
class Yr extends
|
|
2631
|
+
class Yr extends d {
|
|
2632
2632
|
/**
|
|
2633
2633
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
2634
2634
|
*
|
|
@@ -2754,7 +2754,7 @@ class Xr extends Ze {
|
|
|
2754
2754
|
this.products = (e.products ?? []).map((s) => new Yr(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? pe.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new C(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
2755
2755
|
}
|
|
2756
2756
|
}
|
|
2757
|
-
var
|
|
2757
|
+
var Le = /* @__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))(Le || {});
|
|
2758
2758
|
class Ne {
|
|
2759
2759
|
/**
|
|
2760
2760
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
@@ -2774,7 +2774,7 @@ class Ne {
|
|
|
2774
2774
|
* Значение с которым сравнивается поле.
|
|
2775
2775
|
*/
|
|
2776
2776
|
t(this, "value");
|
|
2777
|
-
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ??
|
|
2777
|
+
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Le.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2778
2778
|
}
|
|
2779
2779
|
/**
|
|
2780
2780
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -2786,7 +2786,7 @@ class Ne {
|
|
|
2786
2786
|
field: this.field,
|
|
2787
2787
|
op: this.op
|
|
2788
2788
|
};
|
|
2789
|
-
return r.value = or(this.value) ? z(this.value,
|
|
2789
|
+
return r.value = or(this.value) ? z(this.value, x.getConfig().dateFormats.api) : this.value, r;
|
|
2790
2790
|
}
|
|
2791
2791
|
}
|
|
2792
2792
|
class ee {
|
|
@@ -2819,7 +2819,7 @@ class ee {
|
|
|
2819
2819
|
toPrimitive() {
|
|
2820
2820
|
return {
|
|
2821
2821
|
groupOp: this.groupOp,
|
|
2822
|
-
filters: this.filters.map((r) => r instanceof Ne &&
|
|
2822
|
+
filters: this.filters.map((r) => r instanceof Ne && Ge(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2823
2823
|
groups: this.groups.map((r) => r instanceof ee ? r.toPrimitive() : r)
|
|
2824
2824
|
};
|
|
2825
2825
|
}
|
|
@@ -2903,7 +2903,7 @@ class Zr extends A {
|
|
|
2903
2903
|
* Данные о последнем заказе клиента.
|
|
2904
2904
|
*/
|
|
2905
2905
|
t(this, "lastOrder");
|
|
2906
|
-
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new
|
|
2906
|
+
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new Xe(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new E(e.preferredDeliveryType));
|
|
2907
2907
|
}
|
|
2908
2908
|
}
|
|
2909
2909
|
class et {
|
|
@@ -2987,7 +2987,7 @@ class Pt extends ye {
|
|
|
2987
2987
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
2988
2988
|
*/
|
|
2989
2989
|
getClient(r) {
|
|
2990
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
2990
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new ae(e.data));
|
|
2991
2991
|
}
|
|
2992
2992
|
/**
|
|
2993
2993
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -3013,7 +3013,7 @@ class Pt extends ye {
|
|
|
3013
3013
|
return this.getClientsList({
|
|
3014
3014
|
groupOp: "and",
|
|
3015
3015
|
groups: [],
|
|
3016
|
-
filters: [{ field: "phone", op:
|
|
3016
|
+
filters: [{ field: "phone", op: Le.Contains, value: r }]
|
|
3017
3017
|
});
|
|
3018
3018
|
}
|
|
3019
3019
|
/**
|
|
@@ -3068,7 +3068,7 @@ class Pt extends ye {
|
|
|
3068
3068
|
is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
|
|
3069
3069
|
preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
|
|
3070
3070
|
},
|
|
3071
|
-
(i) => new
|
|
3071
|
+
(i) => new ae(i.data),
|
|
3072
3072
|
e
|
|
3073
3073
|
);
|
|
3074
3074
|
}
|
|
@@ -3178,11 +3178,11 @@ class Pt extends ye {
|
|
|
3178
3178
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
|
|
3179
3179
|
*/
|
|
3180
3180
|
createContragentClientData(r, e, s = {}) {
|
|
3181
|
-
var g, v, $, T, b, _,
|
|
3181
|
+
var g, v, $, T, b, _, S, L;
|
|
3182
3182
|
let i;
|
|
3183
3183
|
const o = e, l = e, p = e;
|
|
3184
3184
|
switch (e.opf.slug) {
|
|
3185
|
-
case
|
|
3185
|
+
case I.Ic:
|
|
3186
3186
|
i = {
|
|
3187
3187
|
opf: o.opf.slug,
|
|
3188
3188
|
name: o.name,
|
|
@@ -3200,7 +3200,7 @@ class Pt extends ye {
|
|
|
3200
3200
|
actual_address: o.actualAddress
|
|
3201
3201
|
};
|
|
3202
3202
|
break;
|
|
3203
|
-
case
|
|
3203
|
+
case I.UlR:
|
|
3204
3204
|
i = {
|
|
3205
3205
|
opf: l.opf.slug,
|
|
3206
3206
|
name: l.name,
|
|
@@ -3219,7 +3219,7 @@ class Pt extends ye {
|
|
|
3219
3219
|
actual_address: l.actualAddress
|
|
3220
3220
|
};
|
|
3221
3221
|
break;
|
|
3222
|
-
case
|
|
3222
|
+
case I.UlNr:
|
|
3223
3223
|
i = {
|
|
3224
3224
|
opf: p.opf.slug,
|
|
3225
3225
|
name: p.name,
|
|
@@ -3246,8 +3246,8 @@ class Pt extends ye {
|
|
|
3246
3246
|
opf: e.opf.slug,
|
|
3247
3247
|
name: e.name,
|
|
3248
3248
|
alternative_name: e.alternativeName,
|
|
3249
|
-
partner_group_id: (
|
|
3250
|
-
manager_id: (
|
|
3249
|
+
partner_group_id: (S = e.partnerGroup) == null ? void 0 : S.id,
|
|
3250
|
+
manager_id: (L = e.manager) == null ? void 0 : L.id,
|
|
3251
3251
|
comment: e.comment
|
|
3252
3252
|
};
|
|
3253
3253
|
break;
|
|
@@ -3255,7 +3255,7 @@ class Pt extends ye {
|
|
|
3255
3255
|
return this.post(
|
|
3256
3256
|
`/internal/clients/${r}/contragents`,
|
|
3257
3257
|
i,
|
|
3258
|
-
(
|
|
3258
|
+
(a) => pe.createInstance(a.data),
|
|
3259
3259
|
s
|
|
3260
3260
|
);
|
|
3261
3261
|
}
|
|
@@ -3270,11 +3270,11 @@ class Pt extends ye {
|
|
|
3270
3270
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
|
|
3271
3271
|
*/
|
|
3272
3272
|
updateContragentClientData(r, e, s = {}) {
|
|
3273
|
-
var g, v, $, T, b, _,
|
|
3273
|
+
var g, v, $, T, b, _, S, L;
|
|
3274
3274
|
let i;
|
|
3275
3275
|
const o = e, l = e, p = e;
|
|
3276
3276
|
switch (e.opf.slug) {
|
|
3277
|
-
case
|
|
3277
|
+
case I.Ic:
|
|
3278
3278
|
i = {
|
|
3279
3279
|
opf: o.opf.slug,
|
|
3280
3280
|
name: o.name,
|
|
@@ -3292,7 +3292,7 @@ class Pt extends ye {
|
|
|
3292
3292
|
actual_address: o.actualAddress
|
|
3293
3293
|
};
|
|
3294
3294
|
break;
|
|
3295
|
-
case
|
|
3295
|
+
case I.UlR:
|
|
3296
3296
|
i = {
|
|
3297
3297
|
opf: l.opf.slug,
|
|
3298
3298
|
name: l.name,
|
|
@@ -3311,7 +3311,7 @@ class Pt extends ye {
|
|
|
3311
3311
|
actual_address: l.actualAddress
|
|
3312
3312
|
};
|
|
3313
3313
|
break;
|
|
3314
|
-
case
|
|
3314
|
+
case I.UlNr:
|
|
3315
3315
|
i = {
|
|
3316
3316
|
opf: p.opf.slug,
|
|
3317
3317
|
name: p.name,
|
|
@@ -3338,8 +3338,8 @@ class Pt extends ye {
|
|
|
3338
3338
|
opf: e.opf.slug,
|
|
3339
3339
|
name: e.name,
|
|
3340
3340
|
alternative_name: e.alternativeName,
|
|
3341
|
-
partner_group_id: (
|
|
3342
|
-
manager_id: (
|
|
3341
|
+
partner_group_id: (S = e.partnerGroup) == null ? void 0 : S.id,
|
|
3342
|
+
manager_id: (L = e.manager) == null ? void 0 : L.id,
|
|
3343
3343
|
comment: e.comment
|
|
3344
3344
|
};
|
|
3345
3345
|
break;
|
|
@@ -3347,7 +3347,7 @@ class Pt extends ye {
|
|
|
3347
3347
|
return this.patch(
|
|
3348
3348
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
3349
3349
|
i,
|
|
3350
|
-
(
|
|
3350
|
+
(a) => pe.createInstance(a.data),
|
|
3351
3351
|
s
|
|
3352
3352
|
);
|
|
3353
3353
|
}
|
|
@@ -3537,7 +3537,7 @@ class Pt extends ye {
|
|
|
3537
3537
|
comment: e.comment,
|
|
3538
3538
|
not_disturb: e.notDisturb
|
|
3539
3539
|
},
|
|
3540
|
-
(i) => new
|
|
3540
|
+
(i) => new F(i.data),
|
|
3541
3541
|
s
|
|
3542
3542
|
);
|
|
3543
3543
|
}
|
|
@@ -3680,7 +3680,7 @@ class Pt extends ye {
|
|
|
3680
3680
|
comment: e.comment,
|
|
3681
3681
|
...s
|
|
3682
3682
|
};
|
|
3683
|
-
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
|
|
3683
|
+
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);
|
|
3684
3684
|
}
|
|
3685
3685
|
/**
|
|
3686
3686
|
* Устанавливает признак основного контактного лица.
|
|
@@ -3750,7 +3750,7 @@ class Pe {
|
|
|
3750
3750
|
* Источник клиентской цены.
|
|
3751
3751
|
*/
|
|
3752
3752
|
t(this, "source");
|
|
3753
|
-
this.client = new te(r == null ? void 0 : r.client), this.product = new
|
|
3753
|
+
this.client = new te(r == null ? void 0 : r.client), this.product = new k(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) ?? Se.Product;
|
|
3754
3754
|
}
|
|
3755
3755
|
}
|
|
3756
3756
|
class Dt extends u {
|
|
@@ -3780,7 +3780,7 @@ class Dt extends u {
|
|
|
3780
3780
|
*/
|
|
3781
3781
|
// eslint-disable-next-line class-methods-use-this
|
|
3782
3782
|
getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
|
|
3783
|
-
let l = `${
|
|
3783
|
+
let l = `${x.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
|
|
3784
3784
|
return s && (l += `&category_id=${s}`), i && (l += `&client_id=${i}`), l;
|
|
3785
3785
|
}
|
|
3786
3786
|
}
|
|
@@ -4018,7 +4018,7 @@ class At extends u {
|
|
|
4018
4018
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_attach
|
|
4019
4019
|
*/
|
|
4020
4020
|
attachTemplate(r, e, s) {
|
|
4021
|
-
const i =
|
|
4021
|
+
const i = x.getConfig().dateFormats.api;
|
|
4022
4022
|
return this.post(
|
|
4023
4023
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
4024
4024
|
s && {
|
|
@@ -4050,7 +4050,7 @@ class At extends u {
|
|
|
4050
4050
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_change
|
|
4051
4051
|
*/
|
|
4052
4052
|
changeTemplate(r, e, s, i) {
|
|
4053
|
-
const o =
|
|
4053
|
+
const o = x.getConfig().dateFormats.api;
|
|
4054
4054
|
return this.patch(
|
|
4055
4055
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
4056
4056
|
i && {
|
|
@@ -4087,7 +4087,7 @@ class Tt extends u {
|
|
|
4087
4087
|
{
|
|
4088
4088
|
showHidden: r
|
|
4089
4089
|
},
|
|
4090
|
-
(e) => e.data.map((s) => new
|
|
4090
|
+
(e) => e.data.map((s) => new q(s))
|
|
4091
4091
|
);
|
|
4092
4092
|
}
|
|
4093
4093
|
/**
|
|
@@ -4106,7 +4106,7 @@ class Tt extends u {
|
|
|
4106
4106
|
showHidden: e,
|
|
4107
4107
|
withNestedCategories: s
|
|
4108
4108
|
},
|
|
4109
|
-
(i) => new
|
|
4109
|
+
(i) => new q(i.data)
|
|
4110
4110
|
);
|
|
4111
4111
|
}
|
|
4112
4112
|
/**
|
|
@@ -4115,7 +4115,7 @@ class Tt extends u {
|
|
|
4115
4115
|
* @param categoryID Идентификатор категории продуктов.
|
|
4116
4116
|
*/
|
|
4117
4117
|
getPublicCategoryData(r) {
|
|
4118
|
-
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new
|
|
4118
|
+
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new q(e.data));
|
|
4119
4119
|
}
|
|
4120
4120
|
/**
|
|
4121
4121
|
* Возвращает список продуктов категории.
|
|
@@ -4133,7 +4133,7 @@ class Tt extends u {
|
|
|
4133
4133
|
showHidden: s,
|
|
4134
4134
|
withPriceCoefficients: e
|
|
4135
4135
|
},
|
|
4136
|
-
(i) => ie(i.data, (o) => new
|
|
4136
|
+
(i) => ie(i.data, (o) => new k(o))
|
|
4137
4137
|
);
|
|
4138
4138
|
}
|
|
4139
4139
|
/**
|
|
@@ -4158,7 +4158,7 @@ class Tt extends u {
|
|
|
4158
4158
|
publicSimpleSearch(r, e = 10) {
|
|
4159
4159
|
return new Promise((s, i) => {
|
|
4160
4160
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
4161
|
-
s(o.categories.map((l) => new
|
|
4161
|
+
s(o.categories.map((l) => new q(l)));
|
|
4162
4162
|
}).catch((o) => {
|
|
4163
4163
|
i(o);
|
|
4164
4164
|
});
|
|
@@ -4175,7 +4175,7 @@ class bt extends u {
|
|
|
4175
4175
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
4176
4176
|
*/
|
|
4177
4177
|
getProductData(r, e = !1) {
|
|
4178
|
-
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new
|
|
4178
|
+
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new k(s.data));
|
|
4179
4179
|
}
|
|
4180
4180
|
/**
|
|
4181
4181
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -4183,7 +4183,7 @@ class bt extends u {
|
|
|
4183
4183
|
* @param productId Идентификатор продукта.
|
|
4184
4184
|
*/
|
|
4185
4185
|
getPublicProductData(r) {
|
|
4186
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
4186
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new k(e.data));
|
|
4187
4187
|
}
|
|
4188
4188
|
/**
|
|
4189
4189
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -4209,7 +4209,7 @@ class bt extends u {
|
|
|
4209
4209
|
*/
|
|
4210
4210
|
getProductPriceHistory(r, e) {
|
|
4211
4211
|
const s = {};
|
|
4212
|
-
return
|
|
4212
|
+
return Ue(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ie(i.data, (o) => new Vr(o)));
|
|
4213
4213
|
}
|
|
4214
4214
|
/**
|
|
4215
4215
|
* Выполняет публичный поиск данных о продуктах по терму.
|
|
@@ -4220,14 +4220,14 @@ class bt extends u {
|
|
|
4220
4220
|
publicSimpleSearch(r, e = 10) {
|
|
4221
4221
|
return new Promise((s, i) => {
|
|
4222
4222
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
4223
|
-
s(o.products.map((l) => new
|
|
4223
|
+
s(o.products.map((l) => new k(l)));
|
|
4224
4224
|
}).catch((o) => {
|
|
4225
4225
|
i(o);
|
|
4226
4226
|
});
|
|
4227
4227
|
});
|
|
4228
4228
|
}
|
|
4229
4229
|
}
|
|
4230
|
-
class
|
|
4230
|
+
class _t extends u {
|
|
4231
4231
|
/**
|
|
4232
4232
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
4233
4233
|
*
|
|
@@ -4289,7 +4289,7 @@ class at extends u {
|
|
|
4289
4289
|
);
|
|
4290
4290
|
}
|
|
4291
4291
|
}
|
|
4292
|
-
class
|
|
4292
|
+
class St extends u {
|
|
4293
4293
|
/**
|
|
4294
4294
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
4295
4295
|
*
|
|
@@ -4310,7 +4310,7 @@ class _t extends u {
|
|
|
4310
4310
|
);
|
|
4311
4311
|
}
|
|
4312
4312
|
}
|
|
4313
|
-
class
|
|
4313
|
+
class Lt extends ye {
|
|
4314
4314
|
/**
|
|
4315
4315
|
* Возвращает список шаблонов прайс-листа.
|
|
4316
4316
|
*
|
|
@@ -4498,7 +4498,7 @@ class St extends ye {
|
|
|
4498
4498
|
);
|
|
4499
4499
|
}
|
|
4500
4500
|
}
|
|
4501
|
-
class
|
|
4501
|
+
class xt extends u {
|
|
4502
4502
|
/**
|
|
4503
4503
|
* Возвращает список ролей ценообразования.
|
|
4504
4504
|
*
|
|
@@ -4559,7 +4559,7 @@ class Lt extends u {
|
|
|
4559
4559
|
return this.get(
|
|
4560
4560
|
`/internal/price/roles/rules/categories/${r}`,
|
|
4561
4561
|
{},
|
|
4562
|
-
(e) => e.data.map((s) => new
|
|
4562
|
+
(e) => e.data.map((s) => new ke(s))
|
|
4563
4563
|
);
|
|
4564
4564
|
}
|
|
4565
4565
|
/**
|
|
@@ -4574,11 +4574,11 @@ class Lt extends u {
|
|
|
4574
4574
|
return this.patch(
|
|
4575
4575
|
`/internal/price/roles/rules/categories/${r}`,
|
|
4576
4576
|
e,
|
|
4577
|
-
(s) => s.data.map((i) => new
|
|
4577
|
+
(s) => s.data.map((i) => new ke(i))
|
|
4578
4578
|
);
|
|
4579
4579
|
}
|
|
4580
4580
|
}
|
|
4581
|
-
class
|
|
4581
|
+
class It extends ye {
|
|
4582
4582
|
/**
|
|
4583
4583
|
* Возвращает пагинированный список свойств.
|
|
4584
4584
|
*
|
|
@@ -4949,14 +4949,14 @@ class xt extends ye {
|
|
|
4949
4949
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
4950
4950
|
}
|
|
4951
4951
|
}
|
|
4952
|
-
class
|
|
4952
|
+
class kt extends u {
|
|
4953
4953
|
/**
|
|
4954
4954
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
4955
4955
|
*
|
|
4956
4956
|
* @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
|
|
4957
4957
|
*/
|
|
4958
4958
|
getProductCategoryRecommendations(r) {
|
|
4959
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new
|
|
4959
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Ie(e.data));
|
|
4960
4960
|
}
|
|
4961
4961
|
/**
|
|
4962
4962
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -4964,7 +4964,7 @@ class It extends u {
|
|
|
4964
4964
|
* @param product Данные о продукте, для которого необходимо получить рекомендации.
|
|
4965
4965
|
*/
|
|
4966
4966
|
getProductRecommendations(r) {
|
|
4967
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new
|
|
4967
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Ie(e.data));
|
|
4968
4968
|
}
|
|
4969
4969
|
/**
|
|
4970
4970
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -4991,7 +4991,7 @@ class It extends u {
|
|
|
4991
4991
|
});
|
|
4992
4992
|
}
|
|
4993
4993
|
}
|
|
4994
|
-
class
|
|
4994
|
+
class at extends u {
|
|
4995
4995
|
/**
|
|
4996
4996
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
4997
4997
|
*
|
|
@@ -5064,7 +5064,7 @@ class Nt extends u {
|
|
|
5064
5064
|
const i = this.get(
|
|
5065
5065
|
`internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
|
|
5066
5066
|
{ params: e },
|
|
5067
|
-
(l) => new
|
|
5067
|
+
(l) => new k(l.data)
|
|
5068
5068
|
);
|
|
5069
5069
|
return i.catch((l) => {
|
|
5070
5070
|
this.defaultInstanceNotificationErrorResponseHandler(l, s);
|
|
@@ -5116,7 +5116,7 @@ class Ot {
|
|
|
5116
5116
|
return {
|
|
5117
5117
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5118
5118
|
nextWorkingDay: { label: "Следующий рабочий день", from: Pr(r), to: vr(r) },
|
|
5119
|
-
today: { label: "Сегодня", from:
|
|
5119
|
+
today: { label: "Сегодня", from: Me(), to: wr() },
|
|
5120
5120
|
yesterday: { label: "Вчера", from: Cr(), to: yr() },
|
|
5121
5121
|
tomorrow: { label: "Завтра", from: fr(), to: mr() }
|
|
5122
5122
|
};
|
|
@@ -5163,7 +5163,7 @@ const V = class V {
|
|
|
5163
5163
|
*/
|
|
5164
5164
|
t(V, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5165
5165
|
let Oe = V;
|
|
5166
|
-
class
|
|
5166
|
+
class qt {
|
|
5167
5167
|
/**
|
|
5168
5168
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5169
5169
|
*/
|
|
@@ -5186,7 +5186,7 @@ class rt extends u {
|
|
|
5186
5186
|
getManagers() {
|
|
5187
5187
|
const r = "/internal/managers", e = u.getCachedResponse(r);
|
|
5188
5188
|
return e ? Promise.resolve(e) : this.get(r).then((s) => {
|
|
5189
|
-
const i = s.data.map((o) =>
|
|
5189
|
+
const i = s.data.map((o) => _e.instanceInitializer(fe, o));
|
|
5190
5190
|
return i && this.cacheResponse(r, i), i;
|
|
5191
5191
|
});
|
|
5192
5192
|
}
|
|
@@ -5209,7 +5209,7 @@ class tt {
|
|
|
5209
5209
|
this.name = r.name, this.content = r.content;
|
|
5210
5210
|
}
|
|
5211
5211
|
}
|
|
5212
|
-
class
|
|
5212
|
+
class qe {
|
|
5213
5213
|
/**
|
|
5214
5214
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
5215
5215
|
*
|
|
@@ -5248,7 +5248,7 @@ class de {
|
|
|
5248
5248
|
this.resourceType = new Ee(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 tt(s))) ?? [];
|
|
5249
5249
|
}
|
|
5250
5250
|
}
|
|
5251
|
-
class
|
|
5251
|
+
class Ut extends u {
|
|
5252
5252
|
/**
|
|
5253
5253
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
5254
5254
|
*
|
|
@@ -5256,7 +5256,7 @@ class qt extends u {
|
|
|
5256
5256
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
5257
5257
|
*/
|
|
5258
5258
|
getResourceSeoData(r, e) {
|
|
5259
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new
|
|
5259
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new qe(s.data));
|
|
5260
5260
|
}
|
|
5261
5261
|
/**
|
|
5262
5262
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -5267,7 +5267,7 @@ class qt extends u {
|
|
|
5267
5267
|
* в случае ошибок в запросах.
|
|
5268
5268
|
*/
|
|
5269
5269
|
saveResourceSeoData(r, e = {}) {
|
|
5270
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new
|
|
5270
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new qe(s.data), e);
|
|
5271
5271
|
}
|
|
5272
5272
|
/**
|
|
5273
5273
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -5280,7 +5280,7 @@ class qt extends u {
|
|
|
5280
5280
|
}
|
|
5281
5281
|
}
|
|
5282
5282
|
const R = he("__references_private", () => {
|
|
5283
|
-
const n = w({}), r = w(void 0), e = w(void 0), s = w(void 0), i = w(void 0), o = w(void 0), l = w(void 0), p = w(void 0), g = w(void 0), v = w(void 0), $ = w(void 0), T = w(void 0), b = w(void 0), _ = w(void 0),
|
|
5283
|
+
const n = w({}), r = w(void 0), e = w(void 0), s = w(void 0), i = w(void 0), o = w(void 0), l = w(void 0), p = w(void 0), g = w(void 0), v = w(void 0), $ = w(void 0), T = w(void 0), b = w(void 0), _ = w(void 0), S = w(void 0), L = w(void 0), a = w(void 0), c = w(void 0);
|
|
5284
5284
|
return {
|
|
5285
5285
|
/**
|
|
5286
5286
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5341,21 +5341,21 @@ const R = he("__references_private", () => {
|
|
|
5341
5341
|
/**
|
|
5342
5342
|
* Справочник источников первичного интереса.
|
|
5343
5343
|
*/
|
|
5344
|
-
sourcePrimaryInterestReference:
|
|
5344
|
+
sourcePrimaryInterestReference: S,
|
|
5345
5345
|
/**
|
|
5346
5346
|
* Справочник складов.
|
|
5347
5347
|
*/
|
|
5348
|
-
warehousesReference:
|
|
5348
|
+
warehousesReference: L,
|
|
5349
5349
|
/**
|
|
5350
5350
|
* Справочник типов свойств.
|
|
5351
5351
|
*/
|
|
5352
|
-
propertyTypesReference:
|
|
5352
|
+
propertyTypesReference: a,
|
|
5353
5353
|
/**
|
|
5354
5354
|
* Справочник коэффициентов цен.
|
|
5355
5355
|
*/
|
|
5356
5356
|
priceCoefficientsReference: c
|
|
5357
5357
|
};
|
|
5358
|
-
}),
|
|
5358
|
+
}), Gt = he("references", () => {
|
|
5359
5359
|
const n = P(() => {
|
|
5360
5360
|
const c = R();
|
|
5361
5361
|
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(D).getChannelPrimaryInterest().then((h) => {
|
|
@@ -5426,17 +5426,17 @@ const R = he("__references_private", () => {
|
|
|
5426
5426
|
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(rt).getManagers().then((h) => {
|
|
5427
5427
|
c.managersList = h;
|
|
5428
5428
|
}).catch(y)), c.managersList;
|
|
5429
|
-
}),
|
|
5429
|
+
}), S = P(() => {
|
|
5430
5430
|
const c = R();
|
|
5431
5431
|
return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(D).getWarehouses().then((h) => {
|
|
5432
5432
|
c.warehousesReference = h;
|
|
5433
5433
|
}).catch(y)), c.warehousesReference;
|
|
5434
|
-
}),
|
|
5434
|
+
}), L = P(() => {
|
|
5435
5435
|
const c = R();
|
|
5436
5436
|
return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(D).getPropertyTypes().then((h) => {
|
|
5437
5437
|
c.propertyTypesReference = h;
|
|
5438
5438
|
}).catch(y)), c.propertyTypesReference;
|
|
5439
|
-
}),
|
|
5439
|
+
}), a = P(() => {
|
|
5440
5440
|
const c = R();
|
|
5441
5441
|
return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(D).getPriceCoefficients().then((h) => {
|
|
5442
5442
|
c.priceCoefficientsReference = h;
|
|
@@ -5502,15 +5502,15 @@ const R = he("__references_private", () => {
|
|
|
5502
5502
|
/**
|
|
5503
5503
|
* Справочник складов.
|
|
5504
5504
|
*/
|
|
5505
|
-
warehousesReference:
|
|
5505
|
+
warehousesReference: S,
|
|
5506
5506
|
/**
|
|
5507
5507
|
* Справочник типов свойств.
|
|
5508
5508
|
*/
|
|
5509
|
-
propertyTypesReference:
|
|
5509
|
+
propertyTypesReference: L,
|
|
5510
5510
|
/**
|
|
5511
5511
|
* Справочник коэффициентов цен.
|
|
5512
5512
|
*/
|
|
5513
|
-
priceCoefficientsReference:
|
|
5513
|
+
priceCoefficientsReference: a
|
|
5514
5514
|
};
|
|
5515
5515
|
}), st = he("__user_state_private", () => {
|
|
5516
5516
|
const n = w({}), r = w(void 0);
|
|
@@ -5524,7 +5524,7 @@ const R = he("__references_private", () => {
|
|
|
5524
5524
|
*/
|
|
5525
5525
|
currentUser: r
|
|
5526
5526
|
};
|
|
5527
|
-
}),
|
|
5527
|
+
}), Mt = he("user_state", () => ({
|
|
5528
5528
|
/**
|
|
5529
5529
|
* Данные о текущем пользователе.
|
|
5530
5530
|
*/
|
|
@@ -5535,7 +5535,7 @@ const R = he("__references_private", () => {
|
|
|
5535
5535
|
}).catch(y).finally(y)), r.currentUser;
|
|
5536
5536
|
})
|
|
5537
5537
|
}));
|
|
5538
|
-
class
|
|
5538
|
+
class Ft extends u {
|
|
5539
5539
|
/**
|
|
5540
5540
|
* Возвращает подсказки по адресам.
|
|
5541
5541
|
*
|
|
@@ -5582,7 +5582,7 @@ class Mt extends u {
|
|
|
5582
5582
|
});
|
|
5583
5583
|
}
|
|
5584
5584
|
}
|
|
5585
|
-
class
|
|
5585
|
+
class dt {
|
|
5586
5586
|
/**
|
|
5587
5587
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
5588
5588
|
*
|
|
@@ -5606,41 +5606,41 @@ class Ft {
|
|
|
5606
5606
|
}
|
|
5607
5607
|
}
|
|
5608
5608
|
export {
|
|
5609
|
-
|
|
5609
|
+
Gr as AnyReference,
|
|
5610
5610
|
ht as AppBaseConfig,
|
|
5611
|
-
|
|
5611
|
+
x as AppConfigProvider,
|
|
5612
5612
|
Ae as BankAccount,
|
|
5613
5613
|
ye as BasePaginationProvider,
|
|
5614
|
-
|
|
5614
|
+
kr as CalculationTypeEnum,
|
|
5615
5615
|
se as Cart,
|
|
5616
|
-
|
|
5616
|
+
_r as CartItem,
|
|
5617
5617
|
br as CartItemBase,
|
|
5618
5618
|
gt as CartProvider,
|
|
5619
5619
|
Dt as CatalogProvider,
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5620
|
+
Fe as CatalogableItem,
|
|
5621
|
+
q as Category,
|
|
5622
|
+
ke as CategoryPricingRule,
|
|
5623
5623
|
Ve as ChannelPrimaryInterest,
|
|
5624
5624
|
ft as City,
|
|
5625
5625
|
ce as CityWithRegionAndCountry,
|
|
5626
|
-
|
|
5626
|
+
ae as Client,
|
|
5627
5627
|
Zr as ClientAdditionalData,
|
|
5628
5628
|
oe as ClientCategory,
|
|
5629
5629
|
Pt as ClientDataProvider,
|
|
5630
5630
|
$t as ClientPriceProvider,
|
|
5631
5631
|
At as ClientPriceTemplateProvider,
|
|
5632
5632
|
K as ClientProduct,
|
|
5633
|
-
|
|
5634
|
-
|
|
5633
|
+
_t as ClientProductCategoryDataProvider,
|
|
5634
|
+
St as ClientProductDataProvider,
|
|
5635
5635
|
te as ClientShortInfo,
|
|
5636
5636
|
Er as ClientsAdditionalDataRequestTypeEnum,
|
|
5637
5637
|
yt as ClientsListFilters,
|
|
5638
5638
|
Nt as ConfiguratorProvider,
|
|
5639
5639
|
Te as Contact,
|
|
5640
|
-
|
|
5641
|
-
|
|
5640
|
+
qr as ContactLinks,
|
|
5641
|
+
F as ContactPerson,
|
|
5642
5642
|
Qr as ContactPersonRelated,
|
|
5643
|
-
|
|
5643
|
+
Mr as ContactPosition,
|
|
5644
5644
|
ve as ContactRelation,
|
|
5645
5645
|
Je as ContragentBase,
|
|
5646
5646
|
pe as ContragentFactory,
|
|
@@ -5648,10 +5648,10 @@ export {
|
|
|
5648
5648
|
Kr as ContragentPerson,
|
|
5649
5649
|
Jr as ContragentUlNr,
|
|
5650
5650
|
Ye as ContragentUlR,
|
|
5651
|
-
|
|
5651
|
+
Se as CostSourceEnum,
|
|
5652
5652
|
J as Country,
|
|
5653
5653
|
le as Currency,
|
|
5654
|
-
|
|
5654
|
+
Ft as DataSuggestionProvider,
|
|
5655
5655
|
wt as DataTablePagination,
|
|
5656
5656
|
et as DataTablePaginationRequestParams,
|
|
5657
5657
|
vt as DataTableSortRequestParams,
|
|
@@ -5659,86 +5659,86 @@ export {
|
|
|
5659
5659
|
Nr as DeletableNamedIdentity,
|
|
5660
5660
|
ue as DeliveryAddress,
|
|
5661
5661
|
E as DeliveryType,
|
|
5662
|
-
|
|
5662
|
+
Sr as DeviceTypeResolutionConfig,
|
|
5663
5663
|
Or as DiscountShortInfo,
|
|
5664
|
-
|
|
5664
|
+
dt as FieldValidationResultData,
|
|
5665
5665
|
ee as FilterGroup,
|
|
5666
5666
|
Ne as FilterItem,
|
|
5667
|
-
|
|
5667
|
+
Le as FilterOpEnum,
|
|
5668
5668
|
He as GeoCoordinates,
|
|
5669
5669
|
Ar as HiddenCatalogableItem,
|
|
5670
5670
|
$e as HttpBaseCachedRequester,
|
|
5671
5671
|
De as HttpBaseRequester,
|
|
5672
|
-
|
|
5672
|
+
Lr as HttpParamsConfig,
|
|
5673
5673
|
u as HttpRequester,
|
|
5674
|
-
|
|
5674
|
+
d as Identity,
|
|
5675
5675
|
Tr as Image,
|
|
5676
5676
|
fe as Manager,
|
|
5677
5677
|
ne as ManagerCommon,
|
|
5678
|
-
|
|
5678
|
+
qt as ManagerDataFactory,
|
|
5679
5679
|
rt as ManagerDataProvider,
|
|
5680
5680
|
tt as MetaTagItem,
|
|
5681
5681
|
A as NamedIdentity,
|
|
5682
|
-
|
|
5683
|
-
|
|
5682
|
+
G as Opf,
|
|
5683
|
+
I as OpfEnum,
|
|
5684
5684
|
Xr as Order,
|
|
5685
5685
|
Ze as OrderInfo,
|
|
5686
|
-
|
|
5686
|
+
Fr as OrderPaymentStatus,
|
|
5687
5687
|
Yr as OrderProduct,
|
|
5688
5688
|
Xe as OrderShortInfo,
|
|
5689
|
-
|
|
5689
|
+
dr as OrderStatus,
|
|
5690
5690
|
Ct as OrdersDataProvider,
|
|
5691
|
-
|
|
5691
|
+
M as PartnerGroup,
|
|
5692
5692
|
Hr as PaymentType,
|
|
5693
5693
|
mt as PreferencesStorageProvider,
|
|
5694
5694
|
Pe as PriceAnalyze,
|
|
5695
|
-
|
|
5695
|
+
at as PriceAnalyzeProvider,
|
|
5696
5696
|
ge as PriceCoefficient,
|
|
5697
|
-
|
|
5697
|
+
de as PriceCoefficientEnum,
|
|
5698
5698
|
B as PriceTemplate,
|
|
5699
5699
|
Ce as PriceTemplateCategory,
|
|
5700
5700
|
Q as PriceTemplateClient,
|
|
5701
5701
|
Be as PriceTemplateICatalogableItem,
|
|
5702
5702
|
we as PriceTemplateProduct,
|
|
5703
|
-
|
|
5703
|
+
Lt as PriceTemplateProvider,
|
|
5704
5704
|
X as PricingRole,
|
|
5705
|
-
|
|
5705
|
+
xt as PricingRoleProvider,
|
|
5706
5706
|
Re as PrimaryCatalogableItem,
|
|
5707
|
-
|
|
5707
|
+
k as Product,
|
|
5708
5708
|
Tt as ProductCategoryDataProvider,
|
|
5709
5709
|
bt as ProductDataProvider,
|
|
5710
5710
|
zr as ProductFileType,
|
|
5711
5711
|
be as ProductPriceCoefficient,
|
|
5712
5712
|
Vr as ProductPriceHistory,
|
|
5713
|
-
|
|
5713
|
+
It as PropertiesProvider,
|
|
5714
5714
|
Y as Property,
|
|
5715
5715
|
je as PropertyType,
|
|
5716
|
-
|
|
5716
|
+
ar as PropertyTypeEnum,
|
|
5717
5717
|
H as PropertyValue,
|
|
5718
|
-
|
|
5719
|
-
|
|
5718
|
+
kt as RecommendationsDataProvider,
|
|
5719
|
+
Ie as RecommendationsList,
|
|
5720
5720
|
C as Reference,
|
|
5721
5721
|
D as ReferenceDataProvider,
|
|
5722
5722
|
Z as Region,
|
|
5723
5723
|
Ee as ResourceType,
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5724
|
+
O as SalesDirection,
|
|
5725
|
+
xr as SentryConfig,
|
|
5726
|
+
qe as Seo,
|
|
5727
|
+
Ut as SeoDataProvider,
|
|
5728
5728
|
Ke as SourcePrimaryInterest,
|
|
5729
5729
|
$r as StockCount,
|
|
5730
|
-
|
|
5730
|
+
_e as TypedInstanceFactory,
|
|
5731
5731
|
Oe as UnitsHelper,
|
|
5732
5732
|
Rt as UnknownClientDataProvider,
|
|
5733
5733
|
ze as UpdatableNamedIdentity,
|
|
5734
5734
|
Wr as User,
|
|
5735
5735
|
We as UserCommonInfo,
|
|
5736
5736
|
jr as UserDataProvider,
|
|
5737
|
-
|
|
5737
|
+
U as UserShortInfo,
|
|
5738
5738
|
Br as UserTypeEnum,
|
|
5739
|
-
|
|
5739
|
+
Ir as VersionConfig,
|
|
5740
5740
|
me as Warehouse,
|
|
5741
|
-
|
|
5742
|
-
|
|
5741
|
+
Gt as useReferencesStore,
|
|
5742
|
+
Mt as useUserStateStore
|
|
5743
5743
|
};
|
|
5744
5744
|
//# sourceMappingURL=sc-common-lib.js.map
|