@snabcentr/common-lib 1.74.4 → 1.74.5
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/sc-common-lib.js +252 -222
- 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/orders/providers/orders-data-provider.d.ts +15 -0
- package/dist/src/orders/providers/orders-data-provider.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (n, r, e) =>
|
|
4
|
-
import { jwtDecode as
|
|
5
|
-
import { merge as ye, isUndefined as
|
|
1
|
+
var ar = Object.defineProperty;
|
|
2
|
+
var br = (n, r, e) => r in n ? ar(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var t = (n, r, e) => br(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jwtDecode as nr } from "jwt-decode";
|
|
5
|
+
import { merge as ye, isUndefined as Sr, isNil as A, isEmpty as Y, noop as w, mapValues as or, isArray as Q, every as Ir, split as xr, toUpper as kr, constant as Lr, isString as C, cloneDeep as dr, toLower as _r, isFunction as Ue, map as Re, forEach as Or, isDate as de, omitBy as cr, isObject as lr } from "lodash-es";
|
|
6
6
|
import { objectToCamel as Fe, objectToSnake as We } from "ts-case-convert";
|
|
7
|
-
import { isAfter as Je, parseISO as v, startOfToday as
|
|
7
|
+
import { isAfter as Je, parseISO as v, startOfToday as _e, format as O, addSeconds as qr, addBusinessDays as Nr, endOfTomorrow as Ur, startOfTomorrow as Fr, endOfYesterday as Mr, startOfYesterday as jr, endOfToday as Gr, endOfDay as Br, startOfDay as Hr } from "date-fns";
|
|
8
8
|
import { defineStore as te } from "pinia";
|
|
9
|
-
import { ref as y, markRaw as
|
|
10
|
-
import
|
|
9
|
+
import { ref as y, markRaw as Er, computed as R } from "vue";
|
|
10
|
+
import zr from "axios";
|
|
11
11
|
class N {
|
|
12
12
|
/**
|
|
13
13
|
* Инициализирует экземпляр класса {@link JwtPayload}.
|
|
@@ -107,7 +107,7 @@ class N {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
const e =
|
|
110
|
+
const e = nr(r), s = new N(Fe(e));
|
|
111
111
|
return s.resourceAccess = e.resource_access, s;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -151,7 +151,7 @@ class Ut extends N {
|
|
|
151
151
|
* @param jwtToken JWT-ключ доступа.
|
|
152
152
|
*/
|
|
153
153
|
static getJwtPayload(e) {
|
|
154
|
-
return new N(Fe(
|
|
154
|
+
return new N(Fe(nr(e)));
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
const J = class J {
|
|
@@ -168,7 +168,7 @@ const J = class J {
|
|
|
168
168
|
*/
|
|
169
169
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
170
170
|
static getConfig() {
|
|
171
|
-
if (
|
|
171
|
+
if (Sr(J.config))
|
|
172
172
|
throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
|
|
173
173
|
return J.config;
|
|
174
174
|
}
|
|
@@ -210,7 +210,7 @@ class fe {
|
|
|
210
210
|
if (e)
|
|
211
211
|
try {
|
|
212
212
|
const s = JSON.parse(e);
|
|
213
|
-
if (!s.availableFor || Je(v(s.availableFor) ||
|
|
213
|
+
if (!s.availableFor || Je(v(s.availableFor) || _e(), /* @__PURE__ */ new Date())) {
|
|
214
214
|
if (A(s.data) || Y(s.data))
|
|
215
215
|
throw new Error("Data is empty");
|
|
216
216
|
return s.data;
|
|
@@ -284,7 +284,7 @@ class fe {
|
|
|
284
284
|
const i = localStorage.getItem(s);
|
|
285
285
|
if (i) {
|
|
286
286
|
const o = JSON.parse(i);
|
|
287
|
-
o.availableFor && !Je(v(o.availableFor) ||
|
|
287
|
+
o.availableFor && !Je(v(o.availableFor) || _e(), /* @__PURE__ */ new Date()) && r.push(s);
|
|
288
288
|
}
|
|
289
289
|
} catch {
|
|
290
290
|
r.push(s);
|
|
@@ -321,11 +321,11 @@ const H = te("__auth_state_private", () => {
|
|
|
321
321
|
const c = (u = $.getConfig().devMode) == null ? void 0 : u.initAuthBearerToken;
|
|
322
322
|
return c ? Promise.resolve(c) : void 0;
|
|
323
323
|
})()
|
|
324
|
-
), r = y(void 0), e = y(void 0), s =
|
|
324
|
+
), r = y(void 0), e = y(void 0), s = Er(/* @__PURE__ */ new Map());
|
|
325
325
|
function i() {
|
|
326
326
|
e.value = void 0, A(n.value) || n.value.then((o) => {
|
|
327
327
|
const c = N.getJwtPayload(o);
|
|
328
|
-
e.value = c.exp * 1e3 > Date.now() ?
|
|
328
|
+
e.value = c.exp * 1e3 > Date.now() ? or(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
|
|
329
329
|
}).catch(w);
|
|
330
330
|
}
|
|
331
331
|
return {
|
|
@@ -376,7 +376,7 @@ const H = te("__auth_state_private", () => {
|
|
|
376
376
|
const c = H();
|
|
377
377
|
!A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((f) => {
|
|
378
378
|
const g = N.getJwtPayload(f);
|
|
379
|
-
c.userPermissions = g.exp * 1e3 > Date.now() ?
|
|
379
|
+
c.userPermissions = g.exp * 1e3 > Date.now() ? or(g.resourceAccess, (b) => (b == null ? void 0 : b.roles) ?? []) : void 0;
|
|
380
380
|
}).catch(w);
|
|
381
381
|
const u = Q(o) ? o.join(" && ") : o;
|
|
382
382
|
if (c.userPermissionsComputedRefs.has(u))
|
|
@@ -384,13 +384,13 @@ const H = te("__auth_state_private", () => {
|
|
|
384
384
|
const h = R(() => {
|
|
385
385
|
const f = (g) => {
|
|
386
386
|
var B;
|
|
387
|
-
const b =
|
|
387
|
+
const b = xr(g, ".");
|
|
388
388
|
if (b.length < 2)
|
|
389
389
|
return !1;
|
|
390
|
-
const [
|
|
391
|
-
return Q(G) && G.includes(
|
|
390
|
+
const [d, _] = b, G = (B = H().userPermissions) == null ? void 0 : B[d];
|
|
391
|
+
return Q(G) && G.includes(_);
|
|
392
392
|
};
|
|
393
|
-
return Q(o) ?
|
|
393
|
+
return Q(o) ? Ir(o, (g) => f(g)) : f(o);
|
|
394
394
|
});
|
|
395
395
|
return c.userPermissionsComputedRefs.set(u, h), h;
|
|
396
396
|
}
|
|
@@ -478,7 +478,7 @@ class oe extends a {
|
|
|
478
478
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
class
|
|
481
|
+
class ur extends oe {
|
|
482
482
|
/**
|
|
483
483
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
484
484
|
*
|
|
@@ -497,7 +497,7 @@ class lr extends oe {
|
|
|
497
497
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
class Oe extends
|
|
500
|
+
class Oe extends ur {
|
|
501
501
|
/**
|
|
502
502
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
503
503
|
*
|
|
@@ -536,10 +536,10 @@ class he extends Oe {
|
|
|
536
536
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
537
537
|
*/
|
|
538
538
|
t(this, "currencyRates");
|
|
539
|
-
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]) => [
|
|
539
|
+
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]) => [kr(s), i])) : void 0;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
var
|
|
542
|
+
var pr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(pr || {});
|
|
543
543
|
class P extends a {
|
|
544
544
|
/**
|
|
545
545
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
@@ -564,7 +564,7 @@ class De extends P {
|
|
|
564
564
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
565
565
|
*/
|
|
566
566
|
static getRetailPriceCoefficient() {
|
|
567
|
-
return { id: -2, slug:
|
|
567
|
+
return { id: -2, slug: pr.Retail, name: "Розн. цена", guid: "", isNewRec: Lr(!0) };
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
class Me {
|
|
@@ -597,7 +597,7 @@ class Me {
|
|
|
597
597
|
this.coefficient = new De(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
class
|
|
600
|
+
class hr {
|
|
601
601
|
/**
|
|
602
602
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
603
603
|
*
|
|
@@ -646,10 +646,10 @@ class Ae extends P {
|
|
|
646
646
|
* Координаты склада.
|
|
647
647
|
*/
|
|
648
648
|
t(this, "coordinates");
|
|
649
|
-
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 X(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new
|
|
649
|
+
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 X(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new hr(e == null ? void 0 : e.coordinates);
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
class
|
|
652
|
+
class Wr {
|
|
653
653
|
/**
|
|
654
654
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
655
655
|
*
|
|
@@ -667,7 +667,7 @@ class zr {
|
|
|
667
667
|
this.warehouse = new Ae(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
class
|
|
670
|
+
class Jr extends ur {
|
|
671
671
|
/**
|
|
672
672
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
673
673
|
*
|
|
@@ -682,7 +682,7 @@ class Wr extends lr {
|
|
|
682
682
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
|
-
class
|
|
685
|
+
class Vr {
|
|
686
686
|
/**
|
|
687
687
|
* Инициализирует экземпляр класса {@link Image}.
|
|
688
688
|
*
|
|
@@ -705,7 +705,7 @@ class Jr {
|
|
|
705
705
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
class I extends
|
|
708
|
+
class I extends Jr {
|
|
709
709
|
/**
|
|
710
710
|
* Инициализирует экземпляр класса {@link Product}.
|
|
711
711
|
*
|
|
@@ -790,9 +790,9 @@ class I extends Wr {
|
|
|
790
790
|
* Список коэффициентов цен на продукт.
|
|
791
791
|
*/
|
|
792
792
|
t(this, "priceCoefficients");
|
|
793
|
-
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 = C(e == null ? void 0 : e.costDate) ? v(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((h) => new
|
|
793
|
+
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 = C(e == null ? void 0 : e.costDate) ? v(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((h) => new Wr(h))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
794
794
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
|
|
795
|
-
s && (this.category = new Oe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new Oe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new
|
|
795
|
+
s && (this.category = new Oe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new Oe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new Vr(h, $.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new Me(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
796
796
|
}
|
|
797
797
|
/**
|
|
798
798
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -815,7 +815,7 @@ class I extends Wr {
|
|
|
815
815
|
return this.retailCostRub ?? this.costRub;
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
|
-
class
|
|
818
|
+
class Kr extends j {
|
|
819
819
|
/**
|
|
820
820
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
821
821
|
*
|
|
@@ -867,10 +867,10 @@ class Vr extends j {
|
|
|
867
867
|
* Признак того, что позиция является дополнительной продажей.
|
|
868
868
|
*/
|
|
869
869
|
t(this, "isAdditionalSale");
|
|
870
|
-
this.product = new I(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams &&
|
|
870
|
+
this.product = new I(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && dr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
|
-
class
|
|
873
|
+
class Qr extends Kr {
|
|
874
874
|
/**
|
|
875
875
|
* Инициализирует экземпляр класса {@link CartItem}.
|
|
876
876
|
*
|
|
@@ -939,7 +939,7 @@ class me {
|
|
|
939
939
|
* Список итоговых сумм по направлениям продаж.
|
|
940
940
|
*/
|
|
941
941
|
t(this, "directionsSum");
|
|
942
|
-
this.items = r.items.map((e) => new
|
|
942
|
+
this.items = r.items.map((e) => new Qr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
class je {
|
|
@@ -1027,7 +1027,7 @@ const S = class S {
|
|
|
1027
1027
|
// eslint-disable-next-line class-methods-use-this
|
|
1028
1028
|
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Fe(r.data)), r));
|
|
1029
1029
|
const r = $.getConfig().version;
|
|
1030
|
-
this.errorResponseHandler = S.defaultErrorsResponseHandler, this.httpClient =
|
|
1030
|
+
this.errorResponseHandler = S.defaultErrorsResponseHandler, this.httpClient = zr.create({
|
|
1031
1031
|
headers: {
|
|
1032
1032
|
"APP-VERSION": `${r.name} (${r.version}, ${O(r.date, $.getConfig().dateFormats.uiDate)})`,
|
|
1033
1033
|
Accept: "application/json",
|
|
@@ -1279,7 +1279,7 @@ class Ft extends p {
|
|
|
1279
1279
|
return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
|
-
var
|
|
1282
|
+
var Yr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Yr || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), Xr = /* @__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))(Xr || {});
|
|
1283
1283
|
class z extends he {
|
|
1284
1284
|
/**
|
|
1285
1285
|
* Инициализирует экземпляр класса {@link Category}.
|
|
@@ -1300,7 +1300,7 @@ class z extends he {
|
|
|
1300
1300
|
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new z(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
class
|
|
1303
|
+
class gr extends a {
|
|
1304
1304
|
/**
|
|
1305
1305
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1306
1306
|
*
|
|
@@ -1315,7 +1315,7 @@ class hr extends a {
|
|
|
1315
1315
|
this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
|
-
class
|
|
1318
|
+
class Zr extends gr {
|
|
1319
1319
|
/**
|
|
1320
1320
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1321
1321
|
*
|
|
@@ -1345,7 +1345,7 @@ class U extends a {
|
|
|
1345
1345
|
this.type = e == null ? void 0 : e.type;
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
|
-
class
|
|
1348
|
+
class et extends a {
|
|
1349
1349
|
/**
|
|
1350
1350
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1351
1351
|
*
|
|
@@ -1384,7 +1384,7 @@ class Zr extends a {
|
|
|
1384
1384
|
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? v(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 = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
class W extends
|
|
1387
|
+
class W extends gr {
|
|
1388
1388
|
/**
|
|
1389
1389
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1390
1390
|
*
|
|
@@ -1439,10 +1439,10 @@ class Z extends I {
|
|
|
1439
1439
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1440
1440
|
*/
|
|
1441
1441
|
t(this, "isFavorite");
|
|
1442
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new
|
|
1442
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new et(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
|
|
1443
1443
|
}
|
|
1444
1444
|
}
|
|
1445
|
-
class
|
|
1445
|
+
class mr {
|
|
1446
1446
|
/**
|
|
1447
1447
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1448
1448
|
*
|
|
@@ -1490,12 +1490,12 @@ class ce extends a {
|
|
|
1490
1490
|
* @inheritDoc
|
|
1491
1491
|
*/
|
|
1492
1492
|
t(this, "isRegionalDirector");
|
|
1493
|
-
this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : new x(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new
|
|
1493
|
+
this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : new x(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new mr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
1496
|
class Be extends P {
|
|
1497
1497
|
}
|
|
1498
|
-
class
|
|
1498
|
+
class rt extends a {
|
|
1499
1499
|
/**
|
|
1500
1500
|
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
1501
1501
|
*
|
|
@@ -1555,10 +1555,10 @@ class Te extends ce {
|
|
|
1555
1555
|
* Список направлений кураторства.
|
|
1556
1556
|
*/
|
|
1557
1557
|
t(this, "curatedDirections");
|
|
1558
|
-
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, this.pricingRole = e != null && e.pricingRole ? new
|
|
1558
|
+
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, this.pricingRole = e != null && e.pricingRole ? new rt(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new Be(i))) ?? [];
|
|
1559
1559
|
}
|
|
1560
1560
|
}
|
|
1561
|
-
class
|
|
1561
|
+
class tt extends he {
|
|
1562
1562
|
/**
|
|
1563
1563
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1564
1564
|
*
|
|
@@ -1589,7 +1589,7 @@ class rt extends he {
|
|
|
1589
1589
|
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 Te(e.manager) : void 0;
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
|
-
class we extends
|
|
1592
|
+
class we extends tt {
|
|
1593
1593
|
/**
|
|
1594
1594
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1595
1595
|
*
|
|
@@ -1609,7 +1609,7 @@ class we extends rt {
|
|
|
1609
1609
|
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new we(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Z(o));
|
|
1610
1610
|
}
|
|
1611
1611
|
}
|
|
1612
|
-
class
|
|
1612
|
+
class fr {
|
|
1613
1613
|
/**
|
|
1614
1614
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
1615
1615
|
*
|
|
@@ -1627,7 +1627,7 @@ class mr {
|
|
|
1627
1627
|
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new De(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1628
1628
|
}
|
|
1629
1629
|
}
|
|
1630
|
-
class Se extends
|
|
1630
|
+
class Se extends fr {
|
|
1631
1631
|
/**
|
|
1632
1632
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1633
1633
|
*
|
|
@@ -1662,7 +1662,7 @@ class He extends a {
|
|
|
1662
1662
|
* @inheritDoc
|
|
1663
1663
|
*/
|
|
1664
1664
|
t(this, "curatedDirection");
|
|
1665
|
-
this.photo = e.photo, this.contacts = new
|
|
1665
|
+
this.photo = e.photo, this.contacts = new mr(e.contacts), this.curatedDirection = new Be(e.curatedDirection);
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
1668
1668
|
class ee extends P {
|
|
@@ -1697,7 +1697,7 @@ class Ee extends P {
|
|
|
1697
1697
|
e && (this.region = new le(e.region));
|
|
1698
1698
|
}
|
|
1699
1699
|
}
|
|
1700
|
-
class
|
|
1700
|
+
class yr extends a {
|
|
1701
1701
|
/**
|
|
1702
1702
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1703
1703
|
*
|
|
@@ -1736,7 +1736,7 @@ class fr extends a {
|
|
|
1736
1736
|
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 x(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? v(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
|
-
class ge extends
|
|
1739
|
+
class ge extends yr {
|
|
1740
1740
|
/**
|
|
1741
1741
|
* Инициализирует экземпляр класса {@link Client}.
|
|
1742
1742
|
*
|
|
@@ -1812,7 +1812,7 @@ class se extends j {
|
|
|
1812
1812
|
this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ge(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
|
-
class Ie extends
|
|
1815
|
+
class Ie extends fr {
|
|
1816
1816
|
/**
|
|
1817
1817
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1818
1818
|
*
|
|
@@ -1827,7 +1827,7 @@ class Ie extends mr {
|
|
|
1827
1827
|
this.product = new I(e == null ? void 0 : e.product);
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
|
-
class
|
|
1830
|
+
class wr extends P {
|
|
1831
1831
|
}
|
|
1832
1832
|
class ie extends a {
|
|
1833
1833
|
/**
|
|
@@ -1849,7 +1849,7 @@ class ie extends a {
|
|
|
1849
1849
|
* Дополнительные метаданные свойства.
|
|
1850
1850
|
*/
|
|
1851
1851
|
t(this, "metadata");
|
|
1852
|
-
this.type = new
|
|
1852
|
+
this.type = new wr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
1855
|
class E {
|
|
@@ -1871,7 +1871,7 @@ class E {
|
|
|
1871
1871
|
this.property = new ie(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
|
-
class
|
|
1874
|
+
class L {
|
|
1875
1875
|
/**
|
|
1876
1876
|
* Инициализирует экземпляр класса {@link DatePeriod}.
|
|
1877
1877
|
*
|
|
@@ -1911,12 +1911,12 @@ class Mt {
|
|
|
1911
1911
|
/**
|
|
1912
1912
|
* Период создания.
|
|
1913
1913
|
*/
|
|
1914
|
-
t(this, "createdAt", new
|
|
1914
|
+
t(this, "createdAt", new L());
|
|
1915
1915
|
/**
|
|
1916
1916
|
* Период изменения.
|
|
1917
1917
|
*/
|
|
1918
|
-
t(this, "updatedAt", new
|
|
1919
|
-
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new
|
|
1918
|
+
t(this, "updatedAt", new L());
|
|
1919
|
+
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new L(r == null ? void 0 : r.createdAt), this.updatedAt = new L(r == null ? void 0 : r.updatedAt);
|
|
1920
1920
|
}
|
|
1921
1921
|
/**
|
|
1922
1922
|
* Выполняет сброс указанного фильтра в значение по умолчанию.
|
|
@@ -2010,7 +2010,7 @@ class Ke {
|
|
|
2010
2010
|
this.role = new ne(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new De(r == null ? void 0 : r.minCoefficient);
|
|
2011
2011
|
}
|
|
2012
2012
|
}
|
|
2013
|
-
class
|
|
2013
|
+
class st {
|
|
2014
2014
|
/**
|
|
2015
2015
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
2016
2016
|
*
|
|
@@ -2032,7 +2032,7 @@ class tt {
|
|
|
2032
2032
|
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;
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
|
-
class
|
|
2035
|
+
class it {
|
|
2036
2036
|
/**
|
|
2037
2037
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
2038
2038
|
*
|
|
@@ -2054,7 +2054,7 @@ class st {
|
|
|
2054
2054
|
this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
|
|
2055
2055
|
}
|
|
2056
2056
|
}
|
|
2057
|
-
class
|
|
2057
|
+
class nt {
|
|
2058
2058
|
/**
|
|
2059
2059
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
2060
2060
|
*
|
|
@@ -2099,7 +2099,7 @@ class it {
|
|
|
2099
2099
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
2100
2100
|
}
|
|
2101
2101
|
}
|
|
2102
|
-
class
|
|
2102
|
+
class ot {
|
|
2103
2103
|
/**
|
|
2104
2104
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
2105
2105
|
*
|
|
@@ -2121,7 +2121,7 @@ class nt {
|
|
|
2121
2121
|
this.date = C(r == null ? void 0 : r.date) ? v(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";
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
|
-
class
|
|
2124
|
+
class ct {
|
|
2125
2125
|
/**
|
|
2126
2126
|
* Инициализирует экземпляр класса {@link WebSocketConfig}.
|
|
2127
2127
|
*
|
|
@@ -2208,10 +2208,10 @@ class jt {
|
|
|
2208
2208
|
*/
|
|
2209
2209
|
t(this, "dateFormats");
|
|
2210
2210
|
var e, s, i;
|
|
2211
|
-
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new
|
|
2211
|
+
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new it(r == null ? void 0 : r.http), this.deviceTypeByResolution = new st(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new nt({
|
|
2212
2212
|
environment: this.environment,
|
|
2213
2213
|
...r == null ? void 0 : r.sentry
|
|
2214
|
-
}), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.version = new
|
|
2214
|
+
}), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.version = new ot(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new ct(r.websocket) : void 0, this.dateFormats = {
|
|
2215
2215
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
2216
2216
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
2217
2217
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
@@ -2613,7 +2613,7 @@ class Et extends p {
|
|
|
2613
2613
|
getCategoryProductsCoefficients(r) {
|
|
2614
2614
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2615
2615
|
const { data: s } = e;
|
|
2616
|
-
return
|
|
2616
|
+
return Or(s, (i) => i.map((o) => new Me(o))), s;
|
|
2617
2617
|
});
|
|
2618
2618
|
}
|
|
2619
2619
|
/**
|
|
@@ -2797,7 +2797,7 @@ class Qe {
|
|
|
2797
2797
|
field: this.field,
|
|
2798
2798
|
op: this.op
|
|
2799
2799
|
};
|
|
2800
|
-
return r.value =
|
|
2800
|
+
return r.value = de(this.value) ? O(this.value, $.getConfig().dateFormats.api) : this.value, r;
|
|
2801
2801
|
}
|
|
2802
2802
|
}
|
|
2803
2803
|
class ue {
|
|
@@ -3541,14 +3541,14 @@ function Xe(n) {
|
|
|
3541
3541
|
}
|
|
3542
3542
|
}), r;
|
|
3543
3543
|
}
|
|
3544
|
-
var
|
|
3545
|
-
class
|
|
3544
|
+
var lt = /* @__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.Curators = "curators", n))(lt || {}), q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(q || {});
|
|
3545
|
+
class ut extends P {
|
|
3546
3546
|
}
|
|
3547
|
-
class
|
|
3547
|
+
class Cr extends P {
|
|
3548
3548
|
}
|
|
3549
3549
|
class Yt extends P {
|
|
3550
3550
|
}
|
|
3551
|
-
class
|
|
3551
|
+
class pt extends P {
|
|
3552
3552
|
}
|
|
3553
3553
|
class Ce extends a {
|
|
3554
3554
|
/**
|
|
@@ -3582,20 +3582,20 @@ class F extends P {
|
|
|
3582
3582
|
});
|
|
3583
3583
|
}
|
|
3584
3584
|
}
|
|
3585
|
-
class pt extends P {
|
|
3586
|
-
}
|
|
3587
3585
|
class ht extends P {
|
|
3588
3586
|
}
|
|
3589
|
-
class re extends P {
|
|
3590
|
-
}
|
|
3591
3587
|
class gt extends P {
|
|
3592
3588
|
}
|
|
3589
|
+
class re extends P {
|
|
3590
|
+
}
|
|
3593
3591
|
class mt extends P {
|
|
3594
3592
|
}
|
|
3595
|
-
class
|
|
3593
|
+
class ft extends P {
|
|
3596
3594
|
}
|
|
3597
3595
|
class vr extends P {
|
|
3598
3596
|
}
|
|
3597
|
+
class Pr extends P {
|
|
3598
|
+
}
|
|
3599
3599
|
class qe extends j {
|
|
3600
3600
|
/**
|
|
3601
3601
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
@@ -3681,7 +3681,7 @@ class M extends Ne {
|
|
|
3681
3681
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3682
3682
|
}
|
|
3683
3683
|
}
|
|
3684
|
-
class
|
|
3684
|
+
class Rr extends a {
|
|
3685
3685
|
/**
|
|
3686
3686
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3687
3687
|
*
|
|
@@ -3754,7 +3754,7 @@ class Pr extends a {
|
|
|
3754
3754
|
}
|
|
3755
3755
|
}
|
|
3756
3756
|
}
|
|
3757
|
-
class
|
|
3757
|
+
class yt extends Rr {
|
|
3758
3758
|
/**
|
|
3759
3759
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3760
3760
|
*
|
|
@@ -3764,7 +3764,7 @@ class ft extends Pr {
|
|
|
3764
3764
|
super(r);
|
|
3765
3765
|
}
|
|
3766
3766
|
}
|
|
3767
|
-
class
|
|
3767
|
+
class Dr extends Rr {
|
|
3768
3768
|
/**
|
|
3769
3769
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
3770
3770
|
*
|
|
@@ -3807,7 +3807,7 @@ class Rr extends Pr {
|
|
|
3807
3807
|
e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
|
|
3808
3808
|
}
|
|
3809
3809
|
}
|
|
3810
|
-
class
|
|
3810
|
+
class Ar extends Dr {
|
|
3811
3811
|
/**
|
|
3812
3812
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
3813
3813
|
*
|
|
@@ -3822,7 +3822,7 @@ class Dr extends Rr {
|
|
|
3822
3822
|
e && (this.kpp = e.kpp ?? "");
|
|
3823
3823
|
}
|
|
3824
3824
|
}
|
|
3825
|
-
class
|
|
3825
|
+
class wt extends Ar {
|
|
3826
3826
|
/**
|
|
3827
3827
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3828
3828
|
*
|
|
@@ -3854,13 +3854,13 @@ class ve {
|
|
|
3854
3854
|
static createInstance(r) {
|
|
3855
3855
|
switch (r.opf.slug) {
|
|
3856
3856
|
case q.Ic:
|
|
3857
|
-
return new Rr(r);
|
|
3858
|
-
case q.UlR:
|
|
3859
3857
|
return new Dr(r);
|
|
3858
|
+
case q.UlR:
|
|
3859
|
+
return new Ar(r);
|
|
3860
3860
|
case q.UlNr:
|
|
3861
|
-
return new
|
|
3861
|
+
return new wt(r);
|
|
3862
3862
|
default:
|
|
3863
|
-
return new
|
|
3863
|
+
return new yt(r);
|
|
3864
3864
|
}
|
|
3865
3865
|
}
|
|
3866
3866
|
}
|
|
@@ -3879,7 +3879,7 @@ class xe extends j {
|
|
|
3879
3879
|
this.isPrimary = e.isPrimary;
|
|
3880
3880
|
}
|
|
3881
3881
|
}
|
|
3882
|
-
class
|
|
3882
|
+
class Ct extends M {
|
|
3883
3883
|
/**
|
|
3884
3884
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3885
3885
|
*
|
|
@@ -3907,7 +3907,7 @@ class wt extends M {
|
|
|
3907
3907
|
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new xe(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new xe(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new xe(s))));
|
|
3908
3908
|
}
|
|
3909
3909
|
}
|
|
3910
|
-
class Pe extends
|
|
3910
|
+
class Pe extends Zr {
|
|
3911
3911
|
/**
|
|
3912
3912
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
3913
3913
|
*
|
|
@@ -3944,7 +3944,7 @@ class Pe extends Xr {
|
|
|
3944
3944
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
3945
3945
|
*/
|
|
3946
3946
|
t(this, "isTransportCompanyAddress");
|
|
3947
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
3947
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new hr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new M(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;
|
|
3948
3948
|
}
|
|
3949
3949
|
}
|
|
3950
3950
|
class Ze extends ge {
|
|
@@ -4005,7 +4005,7 @@ class Ze extends ge {
|
|
|
4005
4005
|
* @inheritDoc
|
|
4006
4006
|
*/
|
|
4007
4007
|
t(this, "extraData");
|
|
4008
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Pe(u))) ?? [], this.channelPrimaryInterest = new
|
|
4008
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Pe(u))) ?? [], this.channelPrimaryInterest = new Cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Pr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.reasonExcludedFromMsCallsToClients = e == null ? void 0 : e.reasonExcludedFromMsCallsToClients, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Ae(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
4009
4009
|
}
|
|
4010
4010
|
}
|
|
4011
4011
|
class Xt {
|
|
@@ -4058,11 +4058,11 @@ class Xt {
|
|
|
4058
4058
|
/**
|
|
4059
4059
|
* @inheritDoc
|
|
4060
4060
|
*/
|
|
4061
|
-
t(this, "createdAt", new
|
|
4061
|
+
t(this, "createdAt", new L());
|
|
4062
4062
|
/**
|
|
4063
4063
|
* @inheritDoc
|
|
4064
4064
|
*/
|
|
4065
|
-
t(this, "lastLoginDate", new
|
|
4065
|
+
t(this, "lastLoginDate", new L());
|
|
4066
4066
|
/**
|
|
4067
4067
|
* @inheritDoc
|
|
4068
4068
|
*/
|
|
@@ -4112,8 +4112,8 @@ class Xt {
|
|
|
4112
4112
|
*/
|
|
4113
4113
|
t(this, "isExcludedFromMsCallsToClients");
|
|
4114
4114
|
var e, s, i, o, c, u, h, f;
|
|
4115
|
-
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.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((g) => new Ee(g)), this.region = new le(r == null ? void 0 : r.region), this.country = new ee(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
|
|
4116
|
-
createdAt: new
|
|
4115
|
+
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.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((g) => new Ee(g)), this.region = new le(r == null ? void 0 : r.region), this.country = new ee(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 L(r == null ? void 0 : r.createdAt), this.lastLoginDate = new L(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = ((s = r == null ? void 0 : r.managers) == null ? void 0 : s.map((g) => new Te(g))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((g) => new He(g))) ?? [], this.salesDirections = (o = r == null ? void 0 : r.salesDirections) == null ? void 0 : o.map((g) => new x(g)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new F(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new X(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (c = r == null ? void 0 : r.partnerGroups) == null ? void 0 : c.map((g) => new re(g)), this.contact = new Ne(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
4116
|
+
createdAt: new L((u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.createdAt),
|
|
4117
4117
|
creator: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.creator,
|
|
4118
4118
|
isApproved: (f = r == null ? void 0 : r.lastOrder) == null ? void 0 : f.isApproved
|
|
4119
4119
|
}, this.isExcludedFromMsCallsToClients = r == null ? void 0 : r.isExcludedFromMsCallsToClients;
|
|
@@ -4184,7 +4184,7 @@ class Xt {
|
|
|
4184
4184
|
}), !((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;
|
|
4185
4185
|
}
|
|
4186
4186
|
}
|
|
4187
|
-
class
|
|
4187
|
+
class Tr extends j {
|
|
4188
4188
|
/**
|
|
4189
4189
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
4190
4190
|
*
|
|
@@ -4207,7 +4207,7 @@ class Ar extends j {
|
|
|
4207
4207
|
this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(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;
|
|
4208
4208
|
}
|
|
4209
4209
|
}
|
|
4210
|
-
class
|
|
4210
|
+
class vt extends a {
|
|
4211
4211
|
/**
|
|
4212
4212
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4213
4213
|
*
|
|
@@ -4244,10 +4244,10 @@ class Ct extends a {
|
|
|
4244
4244
|
* @inheritDoc
|
|
4245
4245
|
*/
|
|
4246
4246
|
t(this, "curators");
|
|
4247
|
-
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new M(u))) ?? void 0, this.lastOrder = e.lastOrder ? new
|
|
4247
|
+
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new M(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Tr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new X(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new x(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new ce(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new He(u))) ?? void 0;
|
|
4248
4248
|
}
|
|
4249
4249
|
}
|
|
4250
|
-
class
|
|
4250
|
+
class Pt {
|
|
4251
4251
|
/**
|
|
4252
4252
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
4253
4253
|
*
|
|
@@ -4265,7 +4265,7 @@ class vt {
|
|
|
4265
4265
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4266
4266
|
}
|
|
4267
4267
|
}
|
|
4268
|
-
class Zt extends
|
|
4268
|
+
class Zt extends Pt {
|
|
4269
4269
|
/**
|
|
4270
4270
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4271
4271
|
*
|
|
@@ -4314,7 +4314,7 @@ class es {
|
|
|
4314
4314
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4315
4315
|
}
|
|
4316
4316
|
}
|
|
4317
|
-
class
|
|
4317
|
+
class k extends $e {
|
|
4318
4318
|
/**
|
|
4319
4319
|
* Преобразует данные о клиенте в данные требуемые для запроса.
|
|
4320
4320
|
*
|
|
@@ -4344,7 +4344,7 @@ class L extends $e {
|
|
|
4344
4344
|
* @param contragent Данные о контрагенте клиента.
|
|
4345
4345
|
*/
|
|
4346
4346
|
static transformContragentClientDataToRequest(r) {
|
|
4347
|
-
var c, u, h, f, g, b,
|
|
4347
|
+
var c, u, h, f, g, b, d, _;
|
|
4348
4348
|
let e;
|
|
4349
4349
|
const s = r, i = r, o = r;
|
|
4350
4350
|
switch (r.opf.slug) {
|
|
@@ -4409,8 +4409,8 @@ class L extends $e {
|
|
|
4409
4409
|
opf: r.opf.slug,
|
|
4410
4410
|
name: r.name,
|
|
4411
4411
|
alternative_name: r.alternativeName,
|
|
4412
|
-
partner_group_id: (
|
|
4413
|
-
manager_id: (
|
|
4412
|
+
partner_group_id: (d = r.partnerGroup) == null ? void 0 : d.id,
|
|
4413
|
+
manager_id: (_ = r.manager) == null ? void 0 : _.id,
|
|
4414
4414
|
comment: r.comment
|
|
4415
4415
|
};
|
|
4416
4416
|
break;
|
|
@@ -4501,7 +4501,7 @@ class L extends $e {
|
|
|
4501
4501
|
const s = r.map((i) => i.id);
|
|
4502
4502
|
return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
|
|
4503
4503
|
let o = [];
|
|
4504
|
-
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new
|
|
4504
|
+
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new vt(c))), o;
|
|
4505
4505
|
});
|
|
4506
4506
|
}
|
|
4507
4507
|
/**
|
|
@@ -4513,7 +4513,7 @@ class L extends $e {
|
|
|
4513
4513
|
getAllClientContacts(r) {
|
|
4514
4514
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
4515
4515
|
let s = [];
|
|
4516
|
-
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new
|
|
4516
|
+
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Ct(i))), s;
|
|
4517
4517
|
});
|
|
4518
4518
|
}
|
|
4519
4519
|
/**
|
|
@@ -4524,7 +4524,7 @@ class L extends $e {
|
|
|
4524
4524
|
* @see /doc/api/internal#/Клиенты/api_internal_client_create
|
|
4525
4525
|
*/
|
|
4526
4526
|
createClientCommonData(r, e = {}) {
|
|
4527
|
-
return this.post("/internal/clients",
|
|
4527
|
+
return this.post("/internal/clients", k.transformClientDataToRequest(r), (s) => new Ze(s.data), e);
|
|
4528
4528
|
}
|
|
4529
4529
|
/**
|
|
4530
4530
|
* Обновляет данные указанного клиента.
|
|
@@ -4534,7 +4534,7 @@ class L extends $e {
|
|
|
4534
4534
|
* @see /doc/api/internal#/Клиенты/api_internal_client_change
|
|
4535
4535
|
*/
|
|
4536
4536
|
updateClientCommonData(r, e = {}) {
|
|
4537
|
-
return this.patch(`/internal/clients/${r.id}`,
|
|
4537
|
+
return this.patch(`/internal/clients/${r.id}`, k.transformClientDataToRequest(r), void 0, e);
|
|
4538
4538
|
}
|
|
4539
4539
|
/**
|
|
4540
4540
|
* Обновляет данные "Не беспокоить" указанного клиента.
|
|
@@ -4664,7 +4664,7 @@ class L extends $e {
|
|
|
4664
4664
|
createContragentClientData(r, e, s = {}) {
|
|
4665
4665
|
return this.post(
|
|
4666
4666
|
`/internal/clients/${r}/contragents`,
|
|
4667
|
-
|
|
4667
|
+
k.transformContragentClientDataToRequest(e),
|
|
4668
4668
|
(i) => ve.createInstance(i.data),
|
|
4669
4669
|
s
|
|
4670
4670
|
);
|
|
@@ -4680,7 +4680,7 @@ class L extends $e {
|
|
|
4680
4680
|
updateContragentClientData(r, e, s = {}) {
|
|
4681
4681
|
return this.patch(
|
|
4682
4682
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
4683
|
-
|
|
4683
|
+
k.transformContragentClientDataToRequest(e),
|
|
4684
4684
|
(i) => ve.createInstance(i.data),
|
|
4685
4685
|
s
|
|
4686
4686
|
);
|
|
@@ -4706,7 +4706,7 @@ class L extends $e {
|
|
|
4706
4706
|
createClientDeliveryAddress(r, e, s = {}) {
|
|
4707
4707
|
return this.post(
|
|
4708
4708
|
`/internal/clients/${r}/delivery-addresses`,
|
|
4709
|
-
|
|
4709
|
+
k.transformClientDeliveryAddressToRequest(e),
|
|
4710
4710
|
(i) => new Pe(i.data),
|
|
4711
4711
|
s
|
|
4712
4712
|
);
|
|
@@ -4722,7 +4722,7 @@ class L extends $e {
|
|
|
4722
4722
|
updateClientDeliveryAddress(r, e, s = {}) {
|
|
4723
4723
|
return this.patch(
|
|
4724
4724
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
4725
|
-
|
|
4725
|
+
k.transformClientDeliveryAddressToRequest(e),
|
|
4726
4726
|
(i) => new Pe(i.data),
|
|
4727
4727
|
s
|
|
4728
4728
|
);
|
|
@@ -4749,7 +4749,7 @@ class L extends $e {
|
|
|
4749
4749
|
createContragentBankAccount(r, e, s, i = {}) {
|
|
4750
4750
|
return this.post(
|
|
4751
4751
|
`/internal/clients/${r}/contragents/${e}/bank-accounts`,
|
|
4752
|
-
|
|
4752
|
+
k.transformClientContragentBankAccountToRequest(s),
|
|
4753
4753
|
(o) => new qe(o.data),
|
|
4754
4754
|
i
|
|
4755
4755
|
);
|
|
@@ -4766,7 +4766,7 @@ class L extends $e {
|
|
|
4766
4766
|
updateContragentBankAccount(r, e, s, i = {}) {
|
|
4767
4767
|
return this.patch(
|
|
4768
4768
|
`/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
|
|
4769
|
-
|
|
4769
|
+
k.transformClientContragentBankAccountToRequest(s),
|
|
4770
4770
|
(o) => new qe(o.data),
|
|
4771
4771
|
i
|
|
4772
4772
|
);
|
|
@@ -5021,7 +5021,7 @@ const V = class V extends p {
|
|
|
5021
5021
|
*/
|
|
5022
5022
|
cacheResponse(e, s) {
|
|
5023
5023
|
V.responseDataCache.set(e, {
|
|
5024
|
-
validTo:
|
|
5024
|
+
validTo: qr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
5025
5025
|
val: s
|
|
5026
5026
|
});
|
|
5027
5027
|
}
|
|
@@ -5142,13 +5142,13 @@ class ss {
|
|
|
5142
5142
|
* Возвращает диапазон дат по умолчанию.
|
|
5143
5143
|
*/
|
|
5144
5144
|
static defaultDateRanges() {
|
|
5145
|
-
const r =
|
|
5145
|
+
const r = Nr(/* @__PURE__ */ new Date(), 1);
|
|
5146
5146
|
return {
|
|
5147
5147
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5148
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
5149
|
-
today: { label: "Сегодня", from:
|
|
5150
|
-
yesterday: { label: "Вчера", from:
|
|
5151
|
-
tomorrow: { label: "Завтра", from:
|
|
5148
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: Hr(r), to: Br(r) },
|
|
5149
|
+
today: { label: "Сегодня", from: _e(), to: Gr() },
|
|
5150
|
+
yesterday: { label: "Вчера", from: jr(), to: Mr() },
|
|
5151
|
+
tomorrow: { label: "Завтра", from: Fr(), to: Ur() }
|
|
5152
5152
|
};
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
@@ -5209,7 +5209,7 @@ class is {
|
|
|
5209
5209
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5210
5210
|
}
|
|
5211
5211
|
}
|
|
5212
|
-
class
|
|
5212
|
+
class Rt extends pe {
|
|
5213
5213
|
/**
|
|
5214
5214
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5215
5215
|
*/
|
|
@@ -5221,7 +5221,7 @@ class Pt extends pe {
|
|
|
5221
5221
|
return this.cacheResponse(r, i), i;
|
|
5222
5222
|
}
|
|
5223
5223
|
}
|
|
5224
|
-
class
|
|
5224
|
+
class $r extends Tr {
|
|
5225
5225
|
/**
|
|
5226
5226
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
5227
5227
|
*
|
|
@@ -5282,7 +5282,7 @@ class Tr extends Ar {
|
|
|
5282
5282
|
}, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new x(e == null ? void 0 : e.salesDirection), this.pendingAt = C(e == null ? void 0 : e.pendingAt) ? v(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = C(e == null ? void 0 : e.processedAt) ? v(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;
|
|
5283
5283
|
}
|
|
5284
5284
|
}
|
|
5285
|
-
class
|
|
5285
|
+
class Dt extends j {
|
|
5286
5286
|
/**
|
|
5287
5287
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5288
5288
|
*
|
|
@@ -5365,7 +5365,7 @@ class Rt extends j {
|
|
|
5365
5365
|
this.product = new Z(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;
|
|
5366
5366
|
}
|
|
5367
5367
|
}
|
|
5368
|
-
class
|
|
5368
|
+
class rr extends $r {
|
|
5369
5369
|
/**
|
|
5370
5370
|
* Инициализирует экземпляр класса {@link Order}.
|
|
5371
5371
|
*
|
|
@@ -5405,7 +5405,7 @@ class Dt extends Tr {
|
|
|
5405
5405
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
5406
5406
|
*/
|
|
5407
5407
|
t(this, "isAllowProcessingWithoutPayment");
|
|
5408
|
-
this.products = (e.products ?? []).map((s) => new
|
|
5408
|
+
this.products = (e.products ?? []).map((s) => new Dt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ve.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5409
5409
|
}
|
|
5410
5410
|
}
|
|
5411
5411
|
class ns extends $e {
|
|
@@ -5421,7 +5421,7 @@ class ns extends $e {
|
|
|
5421
5421
|
getOrders(r, e, s) {
|
|
5422
5422
|
return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
|
|
5423
5423
|
const o = { ...i.data };
|
|
5424
|
-
return o.data = o.data.map((c) => new
|
|
5424
|
+
return o.data = o.data.map((c) => new $r(c)), o;
|
|
5425
5425
|
});
|
|
5426
5426
|
}
|
|
5427
5427
|
/**
|
|
@@ -5439,10 +5439,40 @@ class ns extends $e {
|
|
|
5439
5439
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
5440
5440
|
*/
|
|
5441
5441
|
getOrder(r) {
|
|
5442
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
5442
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new rr(e.data));
|
|
5443
|
+
}
|
|
5444
|
+
/**
|
|
5445
|
+
* Добавляет продукт в заказ и возвращает обновлённые данные заказа.
|
|
5446
|
+
*
|
|
5447
|
+
* @param orderId Идентификатор заказа, в который необходимо добавить продукт.
|
|
5448
|
+
* @param cartItem Данные о товаре, который необходимо добавить в заказ.
|
|
5449
|
+
* @param validationFieldResultData Список полей, для которых необходимо
|
|
5450
|
+
* установить данные об ошибках валидации
|
|
5451
|
+
* в случае ошибок в запросах.
|
|
5452
|
+
*
|
|
5453
|
+
* @see /doc/api/internal#/Заказы/api_internal_orders_product_add
|
|
5454
|
+
*/
|
|
5455
|
+
addOrderProduct(r, e, s = {}) {
|
|
5456
|
+
return this.post(
|
|
5457
|
+
`/internal/orders/${r}/products`,
|
|
5458
|
+
{
|
|
5459
|
+
id: e.configurator && e.category.id,
|
|
5460
|
+
productId: e.product.id,
|
|
5461
|
+
quantity: e.quantity,
|
|
5462
|
+
height: e.height,
|
|
5463
|
+
length: e.length,
|
|
5464
|
+
width: e.width,
|
|
5465
|
+
configurator: e.configurator,
|
|
5466
|
+
marker: e.marker,
|
|
5467
|
+
isAdditionalSale: e.isAdditionalSale,
|
|
5468
|
+
...e.configuratorParams
|
|
5469
|
+
},
|
|
5470
|
+
(i) => new rr(i.data),
|
|
5471
|
+
s
|
|
5472
|
+
);
|
|
5443
5473
|
}
|
|
5444
5474
|
}
|
|
5445
|
-
class
|
|
5475
|
+
class ke {
|
|
5446
5476
|
/**
|
|
5447
5477
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
5448
5478
|
*
|
|
@@ -5472,9 +5502,9 @@ class Le {
|
|
|
5472
5502
|
this.client = new ge(r == null ? void 0 : r.client), this.product = new I(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) ?? Ge.Product;
|
|
5473
5503
|
}
|
|
5474
5504
|
}
|
|
5475
|
-
const
|
|
5505
|
+
const Le = (n) => {
|
|
5476
5506
|
var r, e, s, i, o;
|
|
5477
|
-
return n ?
|
|
5507
|
+
return n ? cr(
|
|
5478
5508
|
{
|
|
5479
5509
|
cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
|
|
5480
5510
|
clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
|
|
@@ -5483,9 +5513,9 @@ const ke = (n) => {
|
|
|
5483
5513
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
5484
5514
|
hideNotActive: n.hideNotActive
|
|
5485
5515
|
},
|
|
5486
|
-
(c) => A(c) || (Q(c) ||
|
|
5516
|
+
(c) => A(c) || (Q(c) || lr(c)) && Y(c)
|
|
5487
5517
|
) : {};
|
|
5488
|
-
},
|
|
5518
|
+
}, tr = (n) => {
|
|
5489
5519
|
const r = {};
|
|
5490
5520
|
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;
|
|
5491
5521
|
};
|
|
@@ -5503,10 +5533,10 @@ class os extends p {
|
|
|
5503
5533
|
return this.get(
|
|
5504
5534
|
`/internal/price/products/${r}/analyze`,
|
|
5505
5535
|
{
|
|
5506
|
-
...
|
|
5507
|
-
filters:
|
|
5536
|
+
...tr(e),
|
|
5537
|
+
filters: Le(s)
|
|
5508
5538
|
},
|
|
5509
|
-
(i) => i.data.map((o) => new
|
|
5539
|
+
(i) => i.data.map((o) => new ke(o))
|
|
5510
5540
|
);
|
|
5511
5541
|
}
|
|
5512
5542
|
/**
|
|
@@ -5522,10 +5552,10 @@ class os extends p {
|
|
|
5522
5552
|
return this.get(
|
|
5523
5553
|
`/internal/price/categories/${r}/analyze`,
|
|
5524
5554
|
{
|
|
5525
|
-
...
|
|
5526
|
-
filters:
|
|
5555
|
+
...tr(e),
|
|
5556
|
+
filters: Le(s)
|
|
5527
5557
|
},
|
|
5528
|
-
(i) => i.data.map((o) => new
|
|
5558
|
+
(i) => i.data.map((o) => new ke(o))
|
|
5529
5559
|
);
|
|
5530
5560
|
}
|
|
5531
5561
|
/**
|
|
@@ -5544,9 +5574,9 @@ class os extends p {
|
|
|
5544
5574
|
`/internal/price/categories/${r}/analyze/square`,
|
|
5545
5575
|
{
|
|
5546
5576
|
...e,
|
|
5547
|
-
filters:
|
|
5577
|
+
filters: Le(s)
|
|
5548
5578
|
},
|
|
5549
|
-
(i) => i.data.map((o) => new
|
|
5579
|
+
(i) => i.data.map((o) => new ke(o))
|
|
5550
5580
|
);
|
|
5551
5581
|
}
|
|
5552
5582
|
}
|
|
@@ -5625,21 +5655,21 @@ class cs extends p {
|
|
|
5625
5655
|
*/
|
|
5626
5656
|
getProductPriceHistory(r) {
|
|
5627
5657
|
var o, c, u, h, f;
|
|
5628
|
-
const e = $.getConfig().dateFormats.api, s =
|
|
5658
|
+
const e = $.getConfig().dateFormats.api, s = cr(
|
|
5629
5659
|
ye(r, {
|
|
5630
5660
|
costDate: {
|
|
5631
|
-
from:
|
|
5632
|
-
to:
|
|
5661
|
+
from: de((o = r.costDate) == null ? void 0 : o.from) ? O(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
5662
|
+
to: de((u = r.costDate) == null ? void 0 : u.to) ? O(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
|
|
5633
5663
|
}
|
|
5634
5664
|
}),
|
|
5635
|
-
(g) => A(g) || (Q(g) ||
|
|
5665
|
+
(g) => A(g) || (Q(g) || lr(g)) && Y(g)
|
|
5636
5666
|
), i = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
|
|
5637
5667
|
return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((g) => [
|
|
5638
5668
|
new Tt(ye(g[0], { history: g }))
|
|
5639
5669
|
]);
|
|
5640
5670
|
}
|
|
5641
5671
|
}
|
|
5642
|
-
class
|
|
5672
|
+
class sr {
|
|
5643
5673
|
/**
|
|
5644
5674
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
5645
5675
|
*
|
|
@@ -5665,7 +5695,7 @@ class ls extends p {
|
|
|
5665
5695
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
5666
5696
|
*/
|
|
5667
5697
|
getProductCategoryRecommendations(r) {
|
|
5668
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new
|
|
5698
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new sr(e.data));
|
|
5669
5699
|
}
|
|
5670
5700
|
/**
|
|
5671
5701
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -5674,7 +5704,7 @@ class ls extends p {
|
|
|
5674
5704
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
5675
5705
|
*/
|
|
5676
5706
|
getProductRecommendations(r) {
|
|
5677
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new
|
|
5707
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new sr(e.data));
|
|
5678
5708
|
}
|
|
5679
5709
|
/**
|
|
5680
5710
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -5712,20 +5742,20 @@ class T extends pe {
|
|
|
5712
5742
|
* и использовать в случае аналогичных запросов.
|
|
5713
5743
|
*/
|
|
5714
5744
|
getReference(r, e = !1) {
|
|
5715
|
-
return this.getTypedDataArrayRequester(
|
|
5745
|
+
return this.getTypedDataArrayRequester(ut, `/internal/references/${r}`, e);
|
|
5716
5746
|
}
|
|
5717
5747
|
/**
|
|
5718
5748
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
5719
5749
|
* первичного интереса.
|
|
5720
5750
|
*/
|
|
5721
5751
|
getChannelPrimaryInterest() {
|
|
5722
|
-
return this.getTypedDataArrayRequester(
|
|
5752
|
+
return this.getTypedDataArrayRequester(Cr, "/internal/references/channel-primary-interest", !0);
|
|
5723
5753
|
}
|
|
5724
5754
|
/**
|
|
5725
5755
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
5726
5756
|
*/
|
|
5727
5757
|
getContactPositions() {
|
|
5728
|
-
return this.getTypedDataArrayRequester(
|
|
5758
|
+
return this.getTypedDataArrayRequester(pt, "/internal/references/contact-position", !0);
|
|
5729
5759
|
}
|
|
5730
5760
|
/**
|
|
5731
5761
|
* Возвращает {@link Promise} для получения справочника списка направлений кураторства.
|
|
@@ -5756,25 +5786,25 @@ class T extends pe {
|
|
|
5756
5786
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
5757
5787
|
*/
|
|
5758
5788
|
getOrderPaymentStatuses() {
|
|
5759
|
-
return this.getTypedDataArrayRequester(
|
|
5789
|
+
return this.getTypedDataArrayRequester(ht, "/public/references/order-payment-status", !0);
|
|
5760
5790
|
}
|
|
5761
5791
|
/**
|
|
5762
5792
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
5763
5793
|
*/
|
|
5764
5794
|
getOrderStatuses() {
|
|
5765
|
-
return this.getTypedDataArrayRequester(
|
|
5795
|
+
return this.getTypedDataArrayRequester(gt, "/public/references/order-status", !0);
|
|
5766
5796
|
}
|
|
5767
5797
|
/**
|
|
5768
5798
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
5769
5799
|
*/
|
|
5770
5800
|
getPaymentTypes() {
|
|
5771
|
-
return this.getTypedDataArrayRequester(
|
|
5801
|
+
return this.getTypedDataArrayRequester(mt, "/public/references/payment-type", !0);
|
|
5772
5802
|
}
|
|
5773
5803
|
/**
|
|
5774
5804
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
5775
5805
|
*/
|
|
5776
5806
|
getResourceTypes() {
|
|
5777
|
-
return this.getTypedDataArrayRequester(
|
|
5807
|
+
return this.getTypedDataArrayRequester(vr, "/internal/references/resource-type", !0);
|
|
5778
5808
|
}
|
|
5779
5809
|
/**
|
|
5780
5810
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
@@ -5786,7 +5816,7 @@ class T extends pe {
|
|
|
5786
5816
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
5787
5817
|
*/
|
|
5788
5818
|
getSourcePrimaryInterest() {
|
|
5789
|
-
return this.getTypedDataArrayRequester(
|
|
5819
|
+
return this.getTypedDataArrayRequester(Pr, "/internal/references/source-primary-interest", !0);
|
|
5790
5820
|
}
|
|
5791
5821
|
/**
|
|
5792
5822
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -5828,7 +5858,7 @@ class T extends pe {
|
|
|
5828
5858
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
5829
5859
|
*/
|
|
5830
5860
|
getPropertyTypes() {
|
|
5831
|
-
return this.getTypedDataArrayRequester(
|
|
5861
|
+
return this.getTypedDataArrayRequester(wr, "/internal/references/property-type", !0);
|
|
5832
5862
|
}
|
|
5833
5863
|
/**
|
|
5834
5864
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
@@ -5840,11 +5870,11 @@ class T extends pe {
|
|
|
5840
5870
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
5841
5871
|
*/
|
|
5842
5872
|
getProductFileType() {
|
|
5843
|
-
return this.getTypedDataArrayRequester(
|
|
5873
|
+
return this.getTypedDataArrayRequester(ft, "/public/references/product-file-type", !0);
|
|
5844
5874
|
}
|
|
5845
5875
|
}
|
|
5846
5876
|
const D = te("__references_private", () => {
|
|
5847
|
-
const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), h = y(void 0), f = y(void 0), g = y(void 0), b = y(void 0),
|
|
5877
|
+
const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), h = y(void 0), f = y(void 0), g = y(void 0), b = y(void 0), d = y(void 0), _ = y(void 0), G = y(void 0), B = y(void 0), ae = y(void 0), l = y(void 0);
|
|
5848
5878
|
return {
|
|
5849
5879
|
/**
|
|
5850
5880
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5897,11 +5927,11 @@ const D = te("__references_private", () => {
|
|
|
5897
5927
|
/**
|
|
5898
5928
|
* Справочник типов ресурсов.
|
|
5899
5929
|
*/
|
|
5900
|
-
resourceTypesReference:
|
|
5930
|
+
resourceTypesReference: d,
|
|
5901
5931
|
/**
|
|
5902
5932
|
* Справочник направлений продаж.
|
|
5903
5933
|
*/
|
|
5904
|
-
salesDirectionsReference:
|
|
5934
|
+
salesDirectionsReference: _,
|
|
5905
5935
|
/**
|
|
5906
5936
|
* Справочник источников первичного интереса.
|
|
5907
5937
|
*/
|
|
@@ -5980,14 +6010,14 @@ const D = te("__references_private", () => {
|
|
|
5980
6010
|
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(T).getSourcePrimaryInterest().then((m) => {
|
|
5981
6011
|
l.sourcePrimaryInterestReference = m;
|
|
5982
6012
|
}).catch(w)), l.sourcePrimaryInterestReference;
|
|
5983
|
-
}),
|
|
6013
|
+
}), d = R(() => {
|
|
5984
6014
|
const l = D();
|
|
5985
6015
|
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(T).getDeliveryTypes().then((m) => {
|
|
5986
6016
|
l.deliveryTypeReference = m;
|
|
5987
6017
|
}).catch(w)), l.deliveryTypeReference;
|
|
5988
|
-
}),
|
|
6018
|
+
}), _ = R(() => {
|
|
5989
6019
|
const l = D();
|
|
5990
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(
|
|
6020
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(Rt).getManagers().then((m) => {
|
|
5991
6021
|
l.managersList = m;
|
|
5992
6022
|
}).catch(w)), l.managersList;
|
|
5993
6023
|
}), G = R(() => {
|
|
@@ -6058,11 +6088,11 @@ const D = te("__references_private", () => {
|
|
|
6058
6088
|
/**
|
|
6059
6089
|
* Справочник типов доставки.
|
|
6060
6090
|
*/
|
|
6061
|
-
deliveryTypeReference:
|
|
6091
|
+
deliveryTypeReference: d,
|
|
6062
6092
|
/**
|
|
6063
6093
|
* Список менеджеров.
|
|
6064
6094
|
*/
|
|
6065
|
-
managersList:
|
|
6095
|
+
managersList: _,
|
|
6066
6096
|
/**
|
|
6067
6097
|
* Справочник складов.
|
|
6068
6098
|
*/
|
|
@@ -6095,7 +6125,7 @@ class $t {
|
|
|
6095
6125
|
this.name = r.name, this.content = r.content;
|
|
6096
6126
|
}
|
|
6097
6127
|
}
|
|
6098
|
-
class
|
|
6128
|
+
class ir {
|
|
6099
6129
|
/**
|
|
6100
6130
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
6101
6131
|
*
|
|
@@ -6131,7 +6161,7 @@ class sr {
|
|
|
6131
6161
|
*/
|
|
6132
6162
|
t(this, "meta");
|
|
6133
6163
|
var e;
|
|
6134
|
-
this.resourceType = new
|
|
6164
|
+
this.resourceType = new vr(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 $t(s))) ?? [];
|
|
6135
6165
|
}
|
|
6136
6166
|
}
|
|
6137
6167
|
class ps extends p {
|
|
@@ -6142,7 +6172,7 @@ class ps extends p {
|
|
|
6142
6172
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
6143
6173
|
*/
|
|
6144
6174
|
getResourceSeoData(r, e) {
|
|
6145
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new
|
|
6175
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new ir(s.data));
|
|
6146
6176
|
}
|
|
6147
6177
|
/**
|
|
6148
6178
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -6153,7 +6183,7 @@ class ps extends p {
|
|
|
6153
6183
|
* в случае ошибок в запросах.
|
|
6154
6184
|
*/
|
|
6155
6185
|
saveResourceSeoData(r, e = {}) {
|
|
6156
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new
|
|
6186
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new ir(s.data), e);
|
|
6157
6187
|
}
|
|
6158
6188
|
/**
|
|
6159
6189
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -6213,7 +6243,7 @@ class hs extends p {
|
|
|
6213
6243
|
}
|
|
6214
6244
|
}
|
|
6215
6245
|
var at = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(at || {});
|
|
6216
|
-
class bt extends
|
|
6246
|
+
class bt extends yr {
|
|
6217
6247
|
/**
|
|
6218
6248
|
* Инициализирует экземпляр класса {@link User}.
|
|
6219
6249
|
*
|
|
@@ -6310,49 +6340,49 @@ class fs {
|
|
|
6310
6340
|
}
|
|
6311
6341
|
}
|
|
6312
6342
|
export {
|
|
6313
|
-
|
|
6343
|
+
ut as AnyReference,
|
|
6314
6344
|
jt as AppBaseConfig,
|
|
6315
6345
|
$ as AppConfigProvider,
|
|
6316
6346
|
qe as BankAccount,
|
|
6317
6347
|
$e as BasePaginationProvider,
|
|
6318
|
-
|
|
6348
|
+
Yr as CalculationTypeEnum,
|
|
6319
6349
|
me as Cart,
|
|
6320
|
-
|
|
6321
|
-
|
|
6350
|
+
Qr as CartItem,
|
|
6351
|
+
Kr as CartItemBase,
|
|
6322
6352
|
Ft as CartProvider,
|
|
6323
6353
|
Gt as CatalogProvider,
|
|
6324
|
-
|
|
6354
|
+
ur as CatalogableItem,
|
|
6325
6355
|
z as Category,
|
|
6326
6356
|
Ke as CategoryPricingRule,
|
|
6327
|
-
|
|
6357
|
+
Cr as ChannelPrimaryInterest,
|
|
6328
6358
|
Yt as City,
|
|
6329
6359
|
Ee as CityWithRegionAndCountry,
|
|
6330
6360
|
Ze as Client,
|
|
6331
|
-
|
|
6361
|
+
vt as ClientAdditionalData,
|
|
6332
6362
|
we as ClientCategory,
|
|
6333
|
-
|
|
6363
|
+
k as ClientDataProvider,
|
|
6334
6364
|
Bt as ClientPriceProvider,
|
|
6335
6365
|
Ht as ClientPriceTemplateProvider,
|
|
6336
6366
|
Z as ClientProduct,
|
|
6337
6367
|
Wt as ClientProductCategoryDataProvider,
|
|
6338
6368
|
Jt as ClientProductDataProvider,
|
|
6339
6369
|
ge as ClientShortInfo,
|
|
6340
|
-
|
|
6370
|
+
lt as ClientsAdditionalDataRequestTypeEnum,
|
|
6341
6371
|
Xt as ClientsListFilters,
|
|
6342
6372
|
oe as CodedIdentity,
|
|
6343
6373
|
ts as ConfiguratorProvider,
|
|
6344
6374
|
Ne as Contact,
|
|
6345
|
-
|
|
6375
|
+
mr as ContactLinks,
|
|
6346
6376
|
M as ContactPerson,
|
|
6347
|
-
|
|
6348
|
-
|
|
6377
|
+
Ct as ContactPersonRelated,
|
|
6378
|
+
pt as ContactPosition,
|
|
6349
6379
|
xe as ContactRelation,
|
|
6350
|
-
|
|
6380
|
+
Rr as ContragentBase,
|
|
6351
6381
|
ve as ContragentFactory,
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6382
|
+
Dr as ContragentIc,
|
|
6383
|
+
yt as ContragentPerson,
|
|
6384
|
+
wt as ContragentUlNr,
|
|
6385
|
+
Ar as ContragentUlR,
|
|
6356
6386
|
Ge as CostSourceEnum,
|
|
6357
6387
|
ee as Country,
|
|
6358
6388
|
Be as CuratedDirection,
|
|
@@ -6360,55 +6390,55 @@ export {
|
|
|
6360
6390
|
Ce as Currency,
|
|
6361
6391
|
hs as DataSuggestionProvider,
|
|
6362
6392
|
Zt as DataTablePagination,
|
|
6363
|
-
|
|
6393
|
+
Pt as DataTablePaginationRequestParams,
|
|
6364
6394
|
es as DataTableSortRequestParams,
|
|
6365
6395
|
ss as DateTimeProvider,
|
|
6366
|
-
|
|
6396
|
+
Zr as DeletableNamedIdentity,
|
|
6367
6397
|
Pe as DeliveryAddress,
|
|
6368
6398
|
X as DeliveryType,
|
|
6369
6399
|
Ut as DetailedJwtPayload,
|
|
6370
|
-
|
|
6371
|
-
|
|
6400
|
+
st as DeviceTypeResolutionConfig,
|
|
6401
|
+
et as DiscountShortInfo,
|
|
6372
6402
|
fs as FieldValidationResultData,
|
|
6373
6403
|
ue as FilterGroup,
|
|
6374
6404
|
Qe as FilterItem,
|
|
6375
6405
|
ze as FilterOpEnum,
|
|
6376
|
-
|
|
6377
|
-
|
|
6406
|
+
hr as GeoCoordinates,
|
|
6407
|
+
Jr as HiddenCatalogableItem,
|
|
6378
6408
|
pe as HttpCachedRequester,
|
|
6379
|
-
|
|
6409
|
+
it as HttpParamsConfig,
|
|
6380
6410
|
p as HttpRequester,
|
|
6381
6411
|
j as Identity,
|
|
6382
|
-
|
|
6412
|
+
Vr as Image,
|
|
6383
6413
|
N as JwtPayload,
|
|
6384
6414
|
Te as Manager,
|
|
6385
6415
|
ce as ManagerCommon,
|
|
6386
6416
|
is as ManagerDataFactory,
|
|
6387
|
-
|
|
6417
|
+
Rt as ManagerDataProvider,
|
|
6388
6418
|
$t as MetaTagItem,
|
|
6389
6419
|
a as NamedIdentity,
|
|
6390
6420
|
F as Opf,
|
|
6391
6421
|
q as OpfEnum,
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6422
|
+
rr as Order,
|
|
6423
|
+
$r as OrderInfo,
|
|
6424
|
+
ht as OrderPaymentStatus,
|
|
6425
|
+
Dt as OrderProduct,
|
|
6426
|
+
Tr as OrderShortInfo,
|
|
6427
|
+
gt as OrderStatus,
|
|
6398
6428
|
ns as OrdersDataProvider,
|
|
6399
6429
|
re as PartnerGroup,
|
|
6400
|
-
|
|
6430
|
+
mt as PaymentType,
|
|
6401
6431
|
fe as PreferencesStorageProvider,
|
|
6402
|
-
|
|
6432
|
+
ke as PriceAnalyze,
|
|
6403
6433
|
os as PriceAnalyzeProvider,
|
|
6404
6434
|
De as PriceCoefficient,
|
|
6405
|
-
|
|
6435
|
+
pr as PriceCoefficientEnum,
|
|
6406
6436
|
cs as PriceHistoryDataProvider,
|
|
6407
6437
|
At as PriceHistoryItem,
|
|
6408
6438
|
W as PriceTemplate,
|
|
6409
6439
|
Se as PriceTemplateCategory,
|
|
6410
6440
|
se as PriceTemplateClient,
|
|
6411
|
-
|
|
6441
|
+
fr as PriceTemplateICatalogableItem,
|
|
6412
6442
|
Ie as PriceTemplateProduct,
|
|
6413
6443
|
Vt as PriceTemplateProvider,
|
|
6414
6444
|
ne as PricingRole,
|
|
@@ -6417,41 +6447,41 @@ export {
|
|
|
6417
6447
|
I as Product,
|
|
6418
6448
|
Et as ProductCategoryDataProvider,
|
|
6419
6449
|
zt as ProductDataProvider,
|
|
6420
|
-
|
|
6450
|
+
ft as ProductFileType,
|
|
6421
6451
|
Me as ProductPriceCoefficient,
|
|
6422
6452
|
Tt as ProductPriceHistory,
|
|
6423
6453
|
Qt as PropertiesProvider,
|
|
6424
6454
|
ie as Property,
|
|
6425
|
-
|
|
6426
|
-
|
|
6455
|
+
wr as PropertyType,
|
|
6456
|
+
Xr as PropertyTypeEnum,
|
|
6427
6457
|
E as PropertyValue,
|
|
6428
6458
|
ls as RecommendationsDataProvider,
|
|
6429
|
-
|
|
6459
|
+
sr as RecommendationsList,
|
|
6430
6460
|
P as Reference,
|
|
6431
6461
|
T as ReferenceDataProvider,
|
|
6432
6462
|
le as Region,
|
|
6433
|
-
|
|
6463
|
+
vr as ResourceType,
|
|
6434
6464
|
x as SalesDirection,
|
|
6435
|
-
|
|
6436
|
-
|
|
6465
|
+
nt as SentryConfig,
|
|
6466
|
+
ir as Seo,
|
|
6437
6467
|
ps as SeoDataProvider,
|
|
6438
|
-
|
|
6439
|
-
|
|
6468
|
+
Pr as SourcePrimaryInterest,
|
|
6469
|
+
Wr as StockCount,
|
|
6440
6470
|
Mt as TemplatesListFilters,
|
|
6441
6471
|
je as TypedInstanceFactory,
|
|
6442
6472
|
er as UnitsHelper,
|
|
6443
6473
|
rs as UnknownClientDataProvider,
|
|
6444
|
-
|
|
6474
|
+
gr as UpdatableNamedIdentity,
|
|
6445
6475
|
bt as User,
|
|
6446
6476
|
gs as UserAuthDataProvider,
|
|
6447
|
-
|
|
6477
|
+
yr as UserCommonInfo,
|
|
6448
6478
|
St as UserDataProvider,
|
|
6449
|
-
|
|
6479
|
+
rt as UserPricingRole,
|
|
6450
6480
|
U as UserShortInfo,
|
|
6451
6481
|
at as UserTypeEnum,
|
|
6452
|
-
|
|
6482
|
+
ot as VersionConfig,
|
|
6453
6483
|
Ae as Warehouse,
|
|
6454
|
-
|
|
6484
|
+
ct as WebSocketConfig,
|
|
6455
6485
|
Ye as findCatalogItemByIdRecursive,
|
|
6456
6486
|
Xe as flattenCatalogItems,
|
|
6457
6487
|
be as useAuthStateStore,
|