@snabcentr/common-lib 1.71.0 → 1.71.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +1 -1
- package/dist/release_notes.tmp +2 -2
- package/dist/sc-common-lib.js +280 -270
- 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/methods/find-catalog-item.d.ts +3 -3
- package/dist/src/catalog/methods/find-catalog-item.d.ts.map +1 -1
- package/dist/src/catalog/methods/flatten-catalog-items.d.ts +8 -0
- package/dist/src/catalog/methods/flatten-catalog-items.d.ts.map +1 -0
- package/dist/src/catalog/methods/index.d.ts +1 -0
- package/dist/src/catalog/methods/index.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 xe, isUndefined as
|
|
1
|
+
var wr = Object.defineProperty;
|
|
2
|
+
var Cr = (n, r, e) => r in n ? wr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var t = (n, r, e) => Cr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jwtDecode as Ye } from "jwt-decode";
|
|
5
|
+
import { merge as xe, isUndefined as vr, isNil as $, noop as w, mapValues as Pr, isArray as J, every as Rr, split as Ar, toUpper as Dr, constant as ar, isString as y, cloneDeep as $r, toLower as Tr, isFunction as Ne, map as ue, forEach as br, isDate as Ie, isEmpty as ve, omitBy as Xe, isObject as Ze } from "lodash-es";
|
|
6
6
|
import { objectToCamel as Oe, objectToSnake as Me } from "ts-case-convert";
|
|
7
7
|
import { defineStore as Z } from "pinia";
|
|
8
|
-
import { ref as f, markRaw as
|
|
9
|
-
import { parseISO as C, format as q, isAfter as
|
|
10
|
-
import
|
|
8
|
+
import { ref as f, markRaw as _r, computed as R } from "vue";
|
|
9
|
+
import { parseISO as C, format as q, isAfter as Sr, startOfToday as er, addSeconds as Ir, addBusinessDays as dr, endOfTomorrow as kr, startOfTomorrow as Lr, endOfYesterday as xr, startOfYesterday as Nr, endOfToday as Or, endOfDay as qr, startOfDay as Ur } from "date-fns";
|
|
10
|
+
import Gr from "axios";
|
|
11
11
|
class ie {
|
|
12
12
|
/**
|
|
13
13
|
* Инициализирует экземпляр класса {@link JwtPayload}.
|
|
@@ -107,11 +107,11 @@ class ie {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
const e =
|
|
110
|
+
const e = Ye(r), s = new ie(Oe(e));
|
|
111
111
|
return s.resourceAccess = e.resource_access, s;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class kt extends ie {
|
|
115
115
|
/**
|
|
116
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
117
117
|
*
|
|
@@ -151,7 +151,7 @@ class dt extends ie {
|
|
|
151
151
|
* @param jwtToken JWT-ключ доступа.
|
|
152
152
|
*/
|
|
153
153
|
static getJwtPayload(e) {
|
|
154
|
-
return new ie(Oe(
|
|
154
|
+
return new ie(Oe(Ye(e)));
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
const W = class W {
|
|
@@ -168,7 +168,7 @@ const W = class W {
|
|
|
168
168
|
*/
|
|
169
169
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
170
170
|
static getConfig() {
|
|
171
|
-
if (
|
|
171
|
+
if (vr(W.config))
|
|
172
172
|
throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
|
|
173
173
|
return W.config;
|
|
174
174
|
}
|
|
@@ -193,7 +193,7 @@ t(W, "config");
|
|
|
193
193
|
let D = W;
|
|
194
194
|
const ee = Z("__auth_state_private", () => {
|
|
195
195
|
var i;
|
|
196
|
-
const n = f(Promise.resolve((i = D.getConfig().devMode) == null ? void 0 : i.initAuthBearerToken)), r = f(void 0), e = f(void 0), s =
|
|
196
|
+
const n = f(Promise.resolve((i = D.getConfig().devMode) == null ? void 0 : i.initAuthBearerToken)), r = f(void 0), e = f(void 0), s = _r(/* @__PURE__ */ new Map());
|
|
197
197
|
return {
|
|
198
198
|
/**
|
|
199
199
|
* {@link Promise<string>} для получения jwt-ключа доступа к системам.
|
|
@@ -233,7 +233,7 @@ const ee = Z("__auth_state_private", () => {
|
|
|
233
233
|
const o = ee();
|
|
234
234
|
!$(o.jwtToken) && $(o.userPermissions) && o.jwtToken.then((u) => {
|
|
235
235
|
const m = ie.getJwtPayload(u);
|
|
236
|
-
o.userPermissions = m.exp * 1e3 > Date.now() ?
|
|
236
|
+
o.userPermissions = m.exp * 1e3 > Date.now() ? Pr(m.resourceAccess, (v) => (v == null ? void 0 : v.roles) ?? []) : void 0;
|
|
237
237
|
}).catch(w);
|
|
238
238
|
const c = J(i) ? i.join(" && ") : i;
|
|
239
239
|
if (o.userPermissionsComputedRefs.has(c))
|
|
@@ -241,13 +241,13 @@ const ee = Z("__auth_state_private", () => {
|
|
|
241
241
|
const p = R(() => {
|
|
242
242
|
const u = (m) => {
|
|
243
243
|
var _;
|
|
244
|
-
const v =
|
|
244
|
+
const v = Ar(m, ".");
|
|
245
245
|
if (v.length < 2)
|
|
246
246
|
return !1;
|
|
247
247
|
const [S, I] = v, b = (_ = ee().userPermissions) == null ? void 0 : _[S];
|
|
248
248
|
return J(b) && b.includes(I);
|
|
249
249
|
};
|
|
250
|
-
return J(i) ?
|
|
250
|
+
return J(i) ? Rr(i, (m) => u(m)) : u(i);
|
|
251
251
|
});
|
|
252
252
|
return o.userPermissionsComputedRefs.set(c, p), p;
|
|
253
253
|
}
|
|
@@ -329,7 +329,7 @@ class ne extends T {
|
|
|
329
329
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
class
|
|
332
|
+
class rr extends ne {
|
|
333
333
|
/**
|
|
334
334
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
335
335
|
*
|
|
@@ -348,7 +348,7 @@ class er extends ne {
|
|
|
348
348
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
class de extends
|
|
351
|
+
class de extends rr {
|
|
352
352
|
/**
|
|
353
353
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
354
354
|
*
|
|
@@ -387,10 +387,10 @@ class he extends de {
|
|
|
387
387
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
388
388
|
*/
|
|
389
389
|
t(this, "currencyRates");
|
|
390
|
-
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]) => [
|
|
390
|
+
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]) => [Dr(s), i])) : void 0;
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
var
|
|
393
|
+
var tr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(tr || {});
|
|
394
394
|
class P extends T {
|
|
395
395
|
/**
|
|
396
396
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
@@ -415,7 +415,7 @@ class Pe extends P {
|
|
|
415
415
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
416
416
|
*/
|
|
417
417
|
static getRetailPriceCoefficient() {
|
|
418
|
-
return { id: -2, slug:
|
|
418
|
+
return { id: -2, slug: tr.Retail, name: "Розн. цена", guid: "", isNewRec: ar(!0) };
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
class qe {
|
|
@@ -448,7 +448,7 @@ class qe {
|
|
|
448
448
|
this.coefficient = new Pe(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;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
class
|
|
451
|
+
class sr {
|
|
452
452
|
/**
|
|
453
453
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
454
454
|
*
|
|
@@ -497,10 +497,10 @@ class Re extends P {
|
|
|
497
497
|
* Координаты склада.
|
|
498
498
|
*/
|
|
499
499
|
t(this, "coordinates");
|
|
500
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new
|
|
500
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new sr(e == null ? void 0 : e.coordinates);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
class
|
|
503
|
+
class jr {
|
|
504
504
|
/**
|
|
505
505
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
506
506
|
*
|
|
@@ -518,7 +518,7 @@ class Gr {
|
|
|
518
518
|
this.warehouse = new Re(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
class
|
|
521
|
+
class Fr extends rr {
|
|
522
522
|
/**
|
|
523
523
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
524
524
|
*
|
|
@@ -533,7 +533,7 @@ class jr extends er {
|
|
|
533
533
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
class
|
|
536
|
+
class Mr {
|
|
537
537
|
/**
|
|
538
538
|
* Инициализирует экземпляр класса {@link Image}.
|
|
539
539
|
*
|
|
@@ -556,7 +556,7 @@ class Fr {
|
|
|
556
556
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
class L extends
|
|
559
|
+
class L extends Fr {
|
|
560
560
|
/**
|
|
561
561
|
* Инициализирует экземпляр класса {@link Product}.
|
|
562
562
|
*
|
|
@@ -641,9 +641,9 @@ class L extends jr {
|
|
|
641
641
|
* Список коэффициентов цен на продукт.
|
|
642
642
|
*/
|
|
643
643
|
t(this, "priceCoefficients");
|
|
644
|
-
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 = y(e == null ? void 0 : e.costDate) ? C(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((u) => new
|
|
644
|
+
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 = y(e == null ? void 0 : e.costDate) ? C(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((u) => new jr(u))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
645
645
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((u) => u.isPrimary));
|
|
646
|
-
s && (this.category = new de({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((u) => new de(u))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((u) => new
|
|
646
|
+
s && (this.category = new de({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((u) => new de(u))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((u) => new Mr(u, D.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 = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((u) => new qe(u))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
647
647
|
}
|
|
648
648
|
/**
|
|
649
649
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -666,7 +666,7 @@ class L extends jr {
|
|
|
666
666
|
return this.retailCostRub ?? this.costRub;
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
|
-
class
|
|
669
|
+
class Hr extends M {
|
|
670
670
|
/**
|
|
671
671
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
672
672
|
*
|
|
@@ -718,10 +718,10 @@ class Mr extends M {
|
|
|
718
718
|
* Признак того, что позиция является дополнительной продажей.
|
|
719
719
|
*/
|
|
720
720
|
t(this, "isAdditionalSale");
|
|
721
|
-
this.product = new L(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 &&
|
|
721
|
+
this.product = new L(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 && $r(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
class
|
|
724
|
+
class Br extends Hr {
|
|
725
725
|
/**
|
|
726
726
|
* Инициализирует экземпляр класса {@link CartItem}.
|
|
727
727
|
*
|
|
@@ -790,7 +790,7 @@ class me {
|
|
|
790
790
|
* Список итоговых сумм по направлениям продаж.
|
|
791
791
|
*/
|
|
792
792
|
t(this, "directionsSum");
|
|
793
|
-
this.items = r.items.map((e) => new
|
|
793
|
+
this.items = r.items.map((e) => new Br(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
class Ue {
|
|
@@ -859,7 +859,7 @@ const k = class k {
|
|
|
859
859
|
* @param request Данные запроса.
|
|
860
860
|
*/
|
|
861
861
|
// eslint-disable-next-line class-methods-use-this
|
|
862
|
-
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Me(r.params)), ["put", "patch", "post"].includes(
|
|
862
|
+
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Me(r.params)), ["put", "patch", "post"].includes(Tr(r.method)) && r.data && (r.data = Me(r.data))), r));
|
|
863
863
|
/**
|
|
864
864
|
* Перехватчик ошибок ответов на запрос.
|
|
865
865
|
*
|
|
@@ -878,7 +878,7 @@ const k = class k {
|
|
|
878
878
|
// eslint-disable-next-line class-methods-use-this
|
|
879
879
|
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Oe(r.data)), r));
|
|
880
880
|
const r = D.getConfig().version;
|
|
881
|
-
this.errorResponseHandler = k.defaultErrorsResponseHandler, this.httpClient =
|
|
881
|
+
this.errorResponseHandler = k.defaultErrorsResponseHandler, this.httpClient = Gr.create({
|
|
882
882
|
headers: {
|
|
883
883
|
"APP-VERSION": `${r.name} (${r.version}, ${q(r.date, D.getConfig().dateFormats.uiDate)})`,
|
|
884
884
|
Accept: "application/json",
|
|
@@ -1016,7 +1016,7 @@ t(k, "instances", {}), /**
|
|
|
1016
1016
|
*/
|
|
1017
1017
|
t(k, "defaultErrorsResponseHandler", w);
|
|
1018
1018
|
let h = k;
|
|
1019
|
-
class
|
|
1019
|
+
class Lt extends h {
|
|
1020
1020
|
/**
|
|
1021
1021
|
* Возвращает содержимое корзины указанного клиента.
|
|
1022
1022
|
*
|
|
@@ -1119,7 +1119,7 @@ class kt extends h {
|
|
|
1119
1119
|
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new me(e.data));
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
1122
|
-
var
|
|
1122
|
+
var zr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(zr || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), Wr = /* @__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))(Wr || {});
|
|
1123
1123
|
class B extends he {
|
|
1124
1124
|
/**
|
|
1125
1125
|
* Инициализирует экземпляр класса {@link Category}.
|
|
@@ -1140,7 +1140,7 @@ class B extends he {
|
|
|
1140
1140
|
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new B(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new L(o));
|
|
1141
1141
|
}
|
|
1142
1142
|
}
|
|
1143
|
-
class
|
|
1143
|
+
class ir extends T {
|
|
1144
1144
|
/**
|
|
1145
1145
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1146
1146
|
*
|
|
@@ -1155,7 +1155,7 @@ class sr extends T {
|
|
|
1155
1155
|
this.updatedAt = y(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
|
-
class
|
|
1158
|
+
class Er extends ir {
|
|
1159
1159
|
/**
|
|
1160
1160
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1161
1161
|
*
|
|
@@ -1170,7 +1170,7 @@ class Wr extends sr {
|
|
|
1170
1170
|
this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
|
-
class
|
|
1173
|
+
class xt {
|
|
1174
1174
|
/**
|
|
1175
1175
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
1176
1176
|
*
|
|
@@ -1181,7 +1181,7 @@ class Lt {
|
|
|
1181
1181
|
if (e)
|
|
1182
1182
|
try {
|
|
1183
1183
|
const s = JSON.parse(e);
|
|
1184
|
-
if (
|
|
1184
|
+
if (Sr(C(s.availableFor) || er(), /* @__PURE__ */ new Date()))
|
|
1185
1185
|
return s.data ?? {};
|
|
1186
1186
|
} catch {
|
|
1187
1187
|
localStorage.removeItem(r);
|
|
@@ -1258,7 +1258,7 @@ class Vr extends T {
|
|
|
1258
1258
|
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = y(e == null ? void 0 : e.publishedAt) ? C(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 G(e == null ? void 0 : e.owner), this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
|
-
class z extends
|
|
1261
|
+
class z extends ir {
|
|
1262
1262
|
/**
|
|
1263
1263
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1264
1264
|
*
|
|
@@ -1316,7 +1316,7 @@ class Q extends L {
|
|
|
1316
1316
|
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 Vr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new z(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;
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
1319
|
-
class
|
|
1319
|
+
class Jr {
|
|
1320
1320
|
/**
|
|
1321
1321
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1322
1322
|
*
|
|
@@ -1360,7 +1360,7 @@ class oe extends T {
|
|
|
1360
1360
|
* Признак того, что менеджер является основным для клиента.
|
|
1361
1361
|
*/
|
|
1362
1362
|
t(this, "isDefault");
|
|
1363
|
-
e && (this.salesDirection = new x(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new
|
|
1363
|
+
e && (this.salesDirection = new x(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Jr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1364
1364
|
}
|
|
1365
1365
|
}
|
|
1366
1366
|
class Ae extends oe {
|
|
@@ -1394,7 +1394,7 @@ class Ae extends oe {
|
|
|
1394
1394
|
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;
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
|
-
class
|
|
1397
|
+
class Kr extends he {
|
|
1398
1398
|
/**
|
|
1399
1399
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1400
1400
|
*
|
|
@@ -1425,7 +1425,7 @@ class Jr extends he {
|
|
|
1425
1425
|
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 Ae(e.manager) : void 0;
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
|
-
class fe extends
|
|
1428
|
+
class fe extends Kr {
|
|
1429
1429
|
/**
|
|
1430
1430
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1431
1431
|
*
|
|
@@ -1445,7 +1445,7 @@ class fe extends Jr {
|
|
|
1445
1445
|
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new fe(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Q(o));
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
|
-
class
|
|
1448
|
+
class nr {
|
|
1449
1449
|
/**
|
|
1450
1450
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
1451
1451
|
*
|
|
@@ -1463,7 +1463,7 @@ class ir {
|
|
|
1463
1463
|
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
class $e extends
|
|
1466
|
+
class $e extends nr {
|
|
1467
1467
|
/**
|
|
1468
1468
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1469
1469
|
*
|
|
@@ -1510,7 +1510,7 @@ class je extends P {
|
|
|
1510
1510
|
e && (this.region = new ce(e.region));
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
|
-
class
|
|
1513
|
+
class or extends T {
|
|
1514
1514
|
/**
|
|
1515
1515
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1516
1516
|
*
|
|
@@ -1549,7 +1549,7 @@ class nr extends T {
|
|
|
1549
1549
|
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 = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = y(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1550
1550
|
}
|
|
1551
1551
|
}
|
|
1552
|
-
class ge extends
|
|
1552
|
+
class ge extends or {
|
|
1553
1553
|
/**
|
|
1554
1554
|
* Инициализирует экземпляр класса {@link Client}.
|
|
1555
1555
|
*
|
|
@@ -1621,7 +1621,7 @@ class re extends M {
|
|
|
1621
1621
|
this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ge(e == null ? void 0 : e.client), this.priceTemplate = new z(e == null ? void 0 : e.priceTemplate);
|
|
1622
1622
|
}
|
|
1623
1623
|
}
|
|
1624
|
-
class Te extends
|
|
1624
|
+
class Te extends nr {
|
|
1625
1625
|
/**
|
|
1626
1626
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1627
1627
|
*
|
|
@@ -1636,7 +1636,7 @@ class Te extends ir {
|
|
|
1636
1636
|
this.product = new L(e == null ? void 0 : e.product);
|
|
1637
1637
|
}
|
|
1638
1638
|
}
|
|
1639
|
-
class
|
|
1639
|
+
class cr extends P {
|
|
1640
1640
|
}
|
|
1641
1641
|
class te extends T {
|
|
1642
1642
|
/**
|
|
@@ -1658,7 +1658,7 @@ class te extends T {
|
|
|
1658
1658
|
* Дополнительные метаданные свойства.
|
|
1659
1659
|
*/
|
|
1660
1660
|
t(this, "metadata");
|
|
1661
|
-
this.type = new
|
|
1661
|
+
this.type = new cr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
1662
1662
|
}
|
|
1663
1663
|
}
|
|
1664
1664
|
class H {
|
|
@@ -1698,7 +1698,7 @@ class O {
|
|
|
1698
1698
|
this.from = y(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = y(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
|
|
1699
1699
|
}
|
|
1700
1700
|
}
|
|
1701
|
-
class
|
|
1701
|
+
class Nt {
|
|
1702
1702
|
/**
|
|
1703
1703
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
1704
1704
|
*
|
|
@@ -1819,7 +1819,7 @@ class He {
|
|
|
1819
1819
|
this.role = new se(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
|
-
class
|
|
1822
|
+
class Qr {
|
|
1823
1823
|
/**
|
|
1824
1824
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
1825
1825
|
*
|
|
@@ -1841,7 +1841,7 @@ class Kr {
|
|
|
1841
1841
|
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;
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
1844
|
-
class
|
|
1844
|
+
class Yr {
|
|
1845
1845
|
/**
|
|
1846
1846
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
1847
1847
|
*
|
|
@@ -1871,7 +1871,7 @@ class Qr {
|
|
|
1871
1871
|
this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.priceHistoryApiUrl = (r == null ? void 0 : r.priceHistoryApiUrl) ?? "", this.recommendationsApiUrl = (r == null ? void 0 : r.recommendationsApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
|
-
class
|
|
1874
|
+
class Xr {
|
|
1875
1875
|
/**
|
|
1876
1876
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
1877
1877
|
*
|
|
@@ -1916,7 +1916,7 @@ class Yr {
|
|
|
1916
1916
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
|
-
class
|
|
1919
|
+
class Zr {
|
|
1920
1920
|
/**
|
|
1921
1921
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
1922
1922
|
*
|
|
@@ -1938,7 +1938,7 @@ class Xr {
|
|
|
1938
1938
|
this.date = y(r == null ? void 0 : r.date) ? C(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";
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
|
-
class
|
|
1941
|
+
class et {
|
|
1942
1942
|
/**
|
|
1943
1943
|
* Инициализирует экземпляр класса {@link WebSocketConfig}.
|
|
1944
1944
|
*
|
|
@@ -1977,7 +1977,7 @@ class Zr {
|
|
|
1977
1977
|
this.broadcaster = r.broadcaster ?? "reverb", this.key = r.key ?? "", this.wsHost = r.wsHost ?? "", this.wsPort = r.wsPort ?? 8080, this.wssPort = r.wssPort ?? 8080, this.forceTLS = r.forceTLS ?? !1, this.enabledTransports = r.enabledTransports ?? ["wss"];
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
|
-
class
|
|
1980
|
+
class Ot {
|
|
1981
1981
|
/**
|
|
1982
1982
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
1983
1983
|
*
|
|
@@ -2021,17 +2021,17 @@ class Nt {
|
|
|
2021
2021
|
*/
|
|
2022
2022
|
t(this, "dateFormats");
|
|
2023
2023
|
var e, s, i;
|
|
2024
|
-
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new
|
|
2024
|
+
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Yr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Qr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Xr({
|
|
2025
2025
|
environment: this.environment,
|
|
2026
2026
|
...r == null ? void 0 : r.sentry
|
|
2027
|
-
}), this.urls = r == null ? void 0 : r.urls, this.version = new
|
|
2027
|
+
}), this.urls = r == null ? void 0 : r.urls, this.version = new Zr(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new et(r.websocket) : void 0, this.dateFormats = {
|
|
2028
2028
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
2029
2029
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
2030
2030
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
2031
2031
|
};
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
|
-
class
|
|
2034
|
+
class qt extends h {
|
|
2035
2035
|
/**
|
|
2036
2036
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
2037
2037
|
*
|
|
@@ -2062,7 +2062,7 @@ class Ot extends h {
|
|
|
2062
2062
|
return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
|
|
2063
2063
|
}
|
|
2064
2064
|
}
|
|
2065
|
-
class
|
|
2065
|
+
class Ut extends h {
|
|
2066
2066
|
/**
|
|
2067
2067
|
* Импортирует цены клиента из CSV файла.
|
|
2068
2068
|
*
|
|
@@ -2261,7 +2261,7 @@ class qt extends h {
|
|
|
2261
2261
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2262
2262
|
}
|
|
2263
2263
|
}
|
|
2264
|
-
class
|
|
2264
|
+
class Gt extends h {
|
|
2265
2265
|
/**
|
|
2266
2266
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2267
2267
|
*
|
|
@@ -2353,7 +2353,7 @@ class Ut extends h {
|
|
|
2353
2353
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
|
-
class
|
|
2356
|
+
class jt extends h {
|
|
2357
2357
|
/**
|
|
2358
2358
|
* Возвращает список данных о корневых категориях.
|
|
2359
2359
|
*
|
|
@@ -2426,7 +2426,7 @@ class Gt extends h {
|
|
|
2426
2426
|
getCategoryProductsCoefficients(r) {
|
|
2427
2427
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2428
2428
|
const { data: s } = e;
|
|
2429
|
-
return
|
|
2429
|
+
return br(s, (i) => i.map((o) => new qe(o))), s;
|
|
2430
2430
|
});
|
|
2431
2431
|
}
|
|
2432
2432
|
/**
|
|
@@ -2445,7 +2445,7 @@ class Gt extends h {
|
|
|
2445
2445
|
});
|
|
2446
2446
|
}
|
|
2447
2447
|
}
|
|
2448
|
-
class
|
|
2448
|
+
class Ft extends h {
|
|
2449
2449
|
/**
|
|
2450
2450
|
* Возвращает данные об указанном продукте.
|
|
2451
2451
|
*
|
|
@@ -2495,7 +2495,7 @@ class jt extends h {
|
|
|
2495
2495
|
});
|
|
2496
2496
|
}
|
|
2497
2497
|
}
|
|
2498
|
-
class
|
|
2498
|
+
class Mt extends h {
|
|
2499
2499
|
/**
|
|
2500
2500
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2501
2501
|
*
|
|
@@ -2557,7 +2557,7 @@ class Ft extends h {
|
|
|
2557
2557
|
);
|
|
2558
2558
|
}
|
|
2559
2559
|
}
|
|
2560
|
-
class
|
|
2560
|
+
class Ht extends h {
|
|
2561
2561
|
/**
|
|
2562
2562
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2563
2563
|
*
|
|
@@ -2668,7 +2668,7 @@ class De extends h {
|
|
|
2668
2668
|
return e && (u.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), ve(s) || (u.sort = J(s) ? s : [s]), o && (u = { ...u, ...o }), this.get(r, u, c, p);
|
|
2669
2669
|
}
|
|
2670
2670
|
}
|
|
2671
|
-
class
|
|
2671
|
+
class Bt extends De {
|
|
2672
2672
|
/**
|
|
2673
2673
|
* Возвращает список шаблонов прайс-листа.
|
|
2674
2674
|
*
|
|
@@ -2872,7 +2872,7 @@ class Ht extends De {
|
|
|
2872
2872
|
);
|
|
2873
2873
|
}
|
|
2874
2874
|
}
|
|
2875
|
-
class
|
|
2875
|
+
class zt extends h {
|
|
2876
2876
|
/**
|
|
2877
2877
|
* Возвращает список ролей ценообразования.
|
|
2878
2878
|
*
|
|
@@ -2952,7 +2952,7 @@ class Bt extends h {
|
|
|
2952
2952
|
);
|
|
2953
2953
|
}
|
|
2954
2954
|
}
|
|
2955
|
-
class
|
|
2955
|
+
class Wt extends De {
|
|
2956
2956
|
/**
|
|
2957
2957
|
* Возвращает пагинированный список свойств.
|
|
2958
2958
|
*
|
|
@@ -3345,14 +3345,23 @@ function ze(n, r, e) {
|
|
|
3345
3345
|
return !1;
|
|
3346
3346
|
}), s;
|
|
3347
3347
|
}
|
|
3348
|
-
|
|
3349
|
-
|
|
3348
|
+
function We(n) {
|
|
3349
|
+
const r = [];
|
|
3350
|
+
return n.forEach((e) => {
|
|
3351
|
+
if (r.push(e), e.type === "category") {
|
|
3352
|
+
const s = e;
|
|
3353
|
+
s.products && s.products.length > 0 && r.push(...We(s.products)), s.categories && s.categories.length > 0 && r.push(...We(s.categories));
|
|
3354
|
+
}
|
|
3355
|
+
}), r;
|
|
3350
3356
|
}
|
|
3351
|
-
|
|
3357
|
+
var rt = /* @__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))(rt || {}), d = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(d || {});
|
|
3358
|
+
class tt extends P {
|
|
3352
3359
|
}
|
|
3353
|
-
class
|
|
3360
|
+
class lr extends P {
|
|
3354
3361
|
}
|
|
3355
|
-
class
|
|
3362
|
+
class Et extends P {
|
|
3363
|
+
}
|
|
3364
|
+
class st extends P {
|
|
3356
3365
|
}
|
|
3357
3366
|
class ye extends T {
|
|
3358
3367
|
/**
|
|
@@ -3386,20 +3395,20 @@ class j extends P {
|
|
|
3386
3395
|
});
|
|
3387
3396
|
}
|
|
3388
3397
|
}
|
|
3389
|
-
class st extends P {
|
|
3390
|
-
}
|
|
3391
3398
|
class it extends P {
|
|
3392
3399
|
}
|
|
3393
|
-
class X extends P {
|
|
3394
|
-
}
|
|
3395
3400
|
class nt extends P {
|
|
3396
3401
|
}
|
|
3402
|
+
class X extends P {
|
|
3403
|
+
}
|
|
3397
3404
|
class ot extends P {
|
|
3398
3405
|
}
|
|
3399
|
-
class
|
|
3406
|
+
class ct extends P {
|
|
3400
3407
|
}
|
|
3401
3408
|
class pr extends P {
|
|
3402
3409
|
}
|
|
3410
|
+
class ur extends P {
|
|
3411
|
+
}
|
|
3403
3412
|
class ke extends M {
|
|
3404
3413
|
/**
|
|
3405
3414
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
@@ -3485,7 +3494,7 @@ class F extends Le {
|
|
|
3485
3494
|
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 = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3486
3495
|
}
|
|
3487
3496
|
}
|
|
3488
|
-
class
|
|
3497
|
+
class hr extends T {
|
|
3489
3498
|
/**
|
|
3490
3499
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3491
3500
|
*
|
|
@@ -3558,7 +3567,7 @@ class ur extends T {
|
|
|
3558
3567
|
}
|
|
3559
3568
|
}
|
|
3560
3569
|
}
|
|
3561
|
-
class
|
|
3570
|
+
class lt extends hr {
|
|
3562
3571
|
/**
|
|
3563
3572
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3564
3573
|
*
|
|
@@ -3568,7 +3577,7 @@ class ct extends ur {
|
|
|
3568
3577
|
super(r);
|
|
3569
3578
|
}
|
|
3570
3579
|
}
|
|
3571
|
-
class
|
|
3580
|
+
class gr extends hr {
|
|
3572
3581
|
/**
|
|
3573
3582
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
3574
3583
|
*
|
|
@@ -3611,7 +3620,7 @@ class hr extends ur {
|
|
|
3611
3620
|
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 ?? "");
|
|
3612
3621
|
}
|
|
3613
3622
|
}
|
|
3614
|
-
class
|
|
3623
|
+
class mr extends gr {
|
|
3615
3624
|
/**
|
|
3616
3625
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
3617
3626
|
*
|
|
@@ -3626,7 +3635,7 @@ class gr extends hr {
|
|
|
3626
3635
|
e && (this.kpp = e.kpp ?? "");
|
|
3627
3636
|
}
|
|
3628
3637
|
}
|
|
3629
|
-
class
|
|
3638
|
+
class pt extends mr {
|
|
3630
3639
|
/**
|
|
3631
3640
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3632
3641
|
*
|
|
@@ -3658,13 +3667,13 @@ class we {
|
|
|
3658
3667
|
static createInstance(r) {
|
|
3659
3668
|
switch (r.opf.slug) {
|
|
3660
3669
|
case d.Ic:
|
|
3661
|
-
return new hr(r);
|
|
3662
|
-
case d.UlR:
|
|
3663
3670
|
return new gr(r);
|
|
3671
|
+
case d.UlR:
|
|
3672
|
+
return new mr(r);
|
|
3664
3673
|
case d.UlNr:
|
|
3665
|
-
return new
|
|
3674
|
+
return new pt(r);
|
|
3666
3675
|
default:
|
|
3667
|
-
return new
|
|
3676
|
+
return new lt(r);
|
|
3668
3677
|
}
|
|
3669
3678
|
}
|
|
3670
3679
|
}
|
|
@@ -3683,7 +3692,7 @@ class be extends M {
|
|
|
3683
3692
|
this.isPrimary = e.isPrimary;
|
|
3684
3693
|
}
|
|
3685
3694
|
}
|
|
3686
|
-
class
|
|
3695
|
+
class ut extends F {
|
|
3687
3696
|
/**
|
|
3688
3697
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3689
3698
|
*
|
|
@@ -3711,7 +3720,7 @@ class pt extends F {
|
|
|
3711
3720
|
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new be(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new be(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new be(s))));
|
|
3712
3721
|
}
|
|
3713
3722
|
}
|
|
3714
|
-
class Ce extends
|
|
3723
|
+
class Ce extends Er {
|
|
3715
3724
|
/**
|
|
3716
3725
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
3717
3726
|
*
|
|
@@ -3748,10 +3757,10 @@ class Ce extends Wr {
|
|
|
3748
3757
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
3749
3758
|
*/
|
|
3750
3759
|
t(this, "isTransportCompanyAddress");
|
|
3751
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
3760
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new sr(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;
|
|
3752
3761
|
}
|
|
3753
3762
|
}
|
|
3754
|
-
class
|
|
3763
|
+
class Ee extends ge {
|
|
3755
3764
|
/**
|
|
3756
3765
|
* Инициализирует экземпляр класса {@link Client}.
|
|
3757
3766
|
*
|
|
@@ -3805,7 +3814,7 @@ class We extends ge {
|
|
|
3805
3814
|
* Дополнительные данные о клиенте.
|
|
3806
3815
|
*/
|
|
3807
3816
|
t(this, "extraData");
|
|
3808
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => we.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new X(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((p) => new Ce(p))) ?? [], this.channelPrimaryInterest = new
|
|
3817
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => we.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new X(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((p) => new Ce(p))) ?? [], this.channelPrimaryInterest = new lr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new ur(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Re(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
3809
3818
|
}
|
|
3810
3819
|
}
|
|
3811
3820
|
class Vt {
|
|
@@ -3982,7 +3991,7 @@ class Vt {
|
|
|
3982
3991
|
}), !((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;
|
|
3983
3992
|
}
|
|
3984
3993
|
}
|
|
3985
|
-
class
|
|
3994
|
+
class fr extends M {
|
|
3986
3995
|
/**
|
|
3987
3996
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
3988
3997
|
*
|
|
@@ -4005,7 +4014,7 @@ class mr extends M {
|
|
|
4005
4014
|
this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new G(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
4006
4015
|
}
|
|
4007
4016
|
}
|
|
4008
|
-
class
|
|
4017
|
+
class ht extends T {
|
|
4009
4018
|
/**
|
|
4010
4019
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4011
4020
|
*
|
|
@@ -4038,10 +4047,10 @@ class ut extends T {
|
|
|
4038
4047
|
* Список менеджеров.
|
|
4039
4048
|
*/
|
|
4040
4049
|
t(this, "managers");
|
|
4041
|
-
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new
|
|
4050
|
+
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new fr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new X(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new x(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new oe(o)));
|
|
4042
4051
|
}
|
|
4043
4052
|
}
|
|
4044
|
-
class
|
|
4053
|
+
class gt {
|
|
4045
4054
|
/**
|
|
4046
4055
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
4047
4056
|
*
|
|
@@ -4059,7 +4068,7 @@ class ht {
|
|
|
4059
4068
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4060
4069
|
}
|
|
4061
4070
|
}
|
|
4062
|
-
class
|
|
4071
|
+
class Jt extends gt {
|
|
4063
4072
|
/**
|
|
4064
4073
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4065
4074
|
*
|
|
@@ -4090,7 +4099,7 @@ class Et extends ht {
|
|
|
4090
4099
|
this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
|
|
4091
4100
|
}
|
|
4092
4101
|
}
|
|
4093
|
-
class
|
|
4102
|
+
class Kt {
|
|
4094
4103
|
/**
|
|
4095
4104
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
4096
4105
|
*
|
|
@@ -4108,7 +4117,7 @@ class Jt {
|
|
|
4108
4117
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4109
4118
|
}
|
|
4110
4119
|
}
|
|
4111
|
-
class
|
|
4120
|
+
class Qt extends De {
|
|
4112
4121
|
/**
|
|
4113
4122
|
* Возвращает данные об указанном клиенте.
|
|
4114
4123
|
*
|
|
@@ -4116,7 +4125,7 @@ class Kt extends De {
|
|
|
4116
4125
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
4117
4126
|
*/
|
|
4118
4127
|
getClient(r) {
|
|
4119
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
4128
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new Ee(e.data));
|
|
4120
4129
|
}
|
|
4121
4130
|
/**
|
|
4122
4131
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -4158,7 +4167,7 @@ class Kt extends De {
|
|
|
4158
4167
|
const s = r.map((i) => i.id);
|
|
4159
4168
|
return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
|
|
4160
4169
|
let o = [];
|
|
4161
|
-
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new
|
|
4170
|
+
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new ht(c))), o;
|
|
4162
4171
|
});
|
|
4163
4172
|
}
|
|
4164
4173
|
/**
|
|
@@ -4170,7 +4179,7 @@ class Kt extends De {
|
|
|
4170
4179
|
getAllClientContacts(r) {
|
|
4171
4180
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
4172
4181
|
let s = [];
|
|
4173
|
-
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new
|
|
4182
|
+
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new ut(i))), s;
|
|
4174
4183
|
});
|
|
4175
4184
|
}
|
|
4176
4185
|
/**
|
|
@@ -4200,7 +4209,7 @@ class Kt extends De {
|
|
|
4200
4209
|
is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
|
|
4201
4210
|
preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
|
|
4202
4211
|
},
|
|
4203
|
-
(i) => new
|
|
4212
|
+
(i) => new Ee(i.data),
|
|
4204
4213
|
e
|
|
4205
4214
|
);
|
|
4206
4215
|
}
|
|
@@ -4835,7 +4844,7 @@ class Kt extends De {
|
|
|
4835
4844
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
4836
4845
|
}
|
|
4837
4846
|
}
|
|
4838
|
-
const
|
|
4847
|
+
const E = class E extends h {
|
|
4839
4848
|
/**
|
|
4840
4849
|
* Инициализирует экземпляр класса {@link HttpCachedRequester}.
|
|
4841
4850
|
*/
|
|
@@ -4855,7 +4864,7 @@ const V = class V extends h {
|
|
|
4855
4864
|
*/
|
|
4856
4865
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
4857
4866
|
static getCachedResponse(e) {
|
|
4858
|
-
const s =
|
|
4867
|
+
const s = E.responseDataCache.get(e);
|
|
4859
4868
|
if (s && s.validTo > /* @__PURE__ */ new Date())
|
|
4860
4869
|
return s.val;
|
|
4861
4870
|
}
|
|
@@ -4866,8 +4875,8 @@ const V = class V extends h {
|
|
|
4866
4875
|
* @param data Данные для кэширования.
|
|
4867
4876
|
*/
|
|
4868
4877
|
cacheResponse(e, s) {
|
|
4869
|
-
|
|
4870
|
-
validTo:
|
|
4878
|
+
E.responseDataCache.set(e, {
|
|
4879
|
+
validTo: Ir(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
4871
4880
|
val: s
|
|
4872
4881
|
});
|
|
4873
4882
|
}
|
|
@@ -4882,7 +4891,7 @@ const V = class V extends h {
|
|
|
4882
4891
|
*/
|
|
4883
4892
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
4884
4893
|
getTypedDataArrayRequester(e, s, i = !1, o = {}) {
|
|
4885
|
-
const c = s + (ve(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ?
|
|
4894
|
+
const c = s + (ve(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? E.getCachedResponse(c) : void 0;
|
|
4886
4895
|
return p ? Promise.resolve(p) : this.get(s, o).then((u) => {
|
|
4887
4896
|
const m = u.map((v) => Ue.instanceInitializer(e, v));
|
|
4888
4897
|
return i && m && this.cacheResponse(s, m), m;
|
|
@@ -4892,9 +4901,9 @@ const V = class V extends h {
|
|
|
4892
4901
|
/**
|
|
4893
4902
|
* Кэш результатов запросов.
|
|
4894
4903
|
*/
|
|
4895
|
-
t(
|
|
4896
|
-
let pe =
|
|
4897
|
-
class
|
|
4904
|
+
t(E, "responseDataCache", /* @__PURE__ */ new Map());
|
|
4905
|
+
let pe = E;
|
|
4906
|
+
class Yt extends h {
|
|
4898
4907
|
/**
|
|
4899
4908
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
4900
4909
|
*
|
|
@@ -4908,7 +4917,7 @@ class Qt extends h {
|
|
|
4908
4917
|
});
|
|
4909
4918
|
}
|
|
4910
4919
|
}
|
|
4911
|
-
class
|
|
4920
|
+
class Xt extends h {
|
|
4912
4921
|
/**
|
|
4913
4922
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
4914
4923
|
*
|
|
@@ -4979,29 +4988,29 @@ class Yt extends h {
|
|
|
4979
4988
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
|
|
4980
4989
|
}
|
|
4981
4990
|
}
|
|
4982
|
-
class
|
|
4991
|
+
class Zt {
|
|
4983
4992
|
/**
|
|
4984
4993
|
* Возвращает диапазон дат по умолчанию.
|
|
4985
4994
|
*/
|
|
4986
4995
|
static defaultDateRanges() {
|
|
4987
|
-
const r =
|
|
4996
|
+
const r = dr(/* @__PURE__ */ new Date(), 1);
|
|
4988
4997
|
return {
|
|
4989
4998
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
4990
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
4991
|
-
today: { label: "Сегодня", from:
|
|
4992
|
-
yesterday: { label: "Вчера", from:
|
|
4993
|
-
tomorrow: { label: "Завтра", from:
|
|
4999
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: Ur(r), to: qr(r) },
|
|
5000
|
+
today: { label: "Сегодня", from: er(), to: Or() },
|
|
5001
|
+
yesterday: { label: "Вчера", from: Nr(), to: xr() },
|
|
5002
|
+
tomorrow: { label: "Завтра", from: Lr(), to: kr() }
|
|
4994
5003
|
};
|
|
4995
5004
|
}
|
|
4996
5005
|
}
|
|
4997
|
-
const
|
|
5006
|
+
const V = class V {
|
|
4998
5007
|
/**
|
|
4999
5008
|
* Устанавливает список единиц измерения линейной величины.
|
|
5000
5009
|
*
|
|
5001
5010
|
* @param linearValues Список единиц измерения линейной величины.
|
|
5002
5011
|
*/
|
|
5003
5012
|
static setLinearValues(r) {
|
|
5004
|
-
|
|
5013
|
+
V.linearValues = r;
|
|
5005
5014
|
}
|
|
5006
5015
|
/**
|
|
5007
5016
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
@@ -5009,7 +5018,7 @@ const E = class E {
|
|
|
5009
5018
|
* @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
|
|
5010
5019
|
*/
|
|
5011
5020
|
static productIsMeasurable(r) {
|
|
5012
|
-
return
|
|
5021
|
+
return V.linearValues.includes(r.unit);
|
|
5013
5022
|
}
|
|
5014
5023
|
/**
|
|
5015
5024
|
* Возвращает кратность количества для указанного товара.
|
|
@@ -5018,7 +5027,7 @@ const E = class E {
|
|
|
5018
5027
|
*/
|
|
5019
5028
|
static getProductMultiplicity(r) {
|
|
5020
5029
|
var e, s;
|
|
5021
|
-
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !
|
|
5030
|
+
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !V.productIsMeasurable(r) ? r.properties.minCount : 1;
|
|
5022
5031
|
}
|
|
5023
5032
|
/**
|
|
5024
5033
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -5033,9 +5042,9 @@ const E = class E {
|
|
|
5033
5042
|
/**
|
|
5034
5043
|
* Список единиц измерения линейной величины.
|
|
5035
5044
|
*/
|
|
5036
|
-
t(
|
|
5037
|
-
let Ve =
|
|
5038
|
-
class
|
|
5045
|
+
t(V, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5046
|
+
let Ve = V;
|
|
5047
|
+
class es {
|
|
5039
5048
|
/**
|
|
5040
5049
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5041
5050
|
*/
|
|
@@ -5051,7 +5060,7 @@ class Zt {
|
|
|
5051
5060
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5052
5061
|
}
|
|
5053
5062
|
}
|
|
5054
|
-
class
|
|
5063
|
+
class mt extends pe {
|
|
5055
5064
|
/**
|
|
5056
5065
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5057
5066
|
*/
|
|
@@ -5063,7 +5072,7 @@ class gt extends pe {
|
|
|
5063
5072
|
return this.cacheResponse(r, i), i;
|
|
5064
5073
|
}
|
|
5065
5074
|
}
|
|
5066
|
-
class
|
|
5075
|
+
class yr extends fr {
|
|
5067
5076
|
/**
|
|
5068
5077
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
5069
5078
|
*
|
|
@@ -5124,7 +5133,7 @@ class fr extends mr {
|
|
|
5124
5133
|
}, this.attachedUser = new G(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 = y(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = y(e == null ? void 0 : e.processedAt) ? C(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;
|
|
5125
5134
|
}
|
|
5126
5135
|
}
|
|
5127
|
-
class
|
|
5136
|
+
class ft extends M {
|
|
5128
5137
|
/**
|
|
5129
5138
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5130
5139
|
*
|
|
@@ -5207,7 +5216,7 @@ class mt extends M {
|
|
|
5207
5216
|
this.product = new Q(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;
|
|
5208
5217
|
}
|
|
5209
5218
|
}
|
|
5210
|
-
class
|
|
5219
|
+
class yt extends yr {
|
|
5211
5220
|
/**
|
|
5212
5221
|
* Инициализирует экземпляр класса {@link Order}.
|
|
5213
5222
|
*
|
|
@@ -5247,10 +5256,10 @@ class ft extends fr {
|
|
|
5247
5256
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
5248
5257
|
*/
|
|
5249
5258
|
t(this, "isAllowProcessingWithoutPayment");
|
|
5250
|
-
this.products = (e.products ?? []).map((s) => new
|
|
5259
|
+
this.products = (e.products ?? []).map((s) => new ft(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? we.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5251
5260
|
}
|
|
5252
5261
|
}
|
|
5253
|
-
class
|
|
5262
|
+
class rs extends De {
|
|
5254
5263
|
/**
|
|
5255
5264
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5256
5265
|
*
|
|
@@ -5263,7 +5272,7 @@ class es extends De {
|
|
|
5263
5272
|
getOrders(r, e, s) {
|
|
5264
5273
|
return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
|
|
5265
5274
|
const o = { ...i.data };
|
|
5266
|
-
return o.data = o.data.map((c) => new
|
|
5275
|
+
return o.data = o.data.map((c) => new yr(c)), o;
|
|
5267
5276
|
});
|
|
5268
5277
|
}
|
|
5269
5278
|
/**
|
|
@@ -5281,7 +5290,7 @@ class es extends De {
|
|
|
5281
5290
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
5282
5291
|
*/
|
|
5283
5292
|
getOrder(r) {
|
|
5284
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
5293
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new yt(e.data));
|
|
5285
5294
|
}
|
|
5286
5295
|
}
|
|
5287
5296
|
class _e {
|
|
@@ -5316,7 +5325,7 @@ class _e {
|
|
|
5316
5325
|
}
|
|
5317
5326
|
const Se = (n) => {
|
|
5318
5327
|
var r, e, s, i, o;
|
|
5319
|
-
return n ?
|
|
5328
|
+
return n ? Xe(
|
|
5320
5329
|
{
|
|
5321
5330
|
cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
|
|
5322
5331
|
clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
|
|
@@ -5325,13 +5334,13 @@ const Se = (n) => {
|
|
|
5325
5334
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
5326
5335
|
hideNotActive: n.hideNotActive
|
|
5327
5336
|
},
|
|
5328
|
-
(c) => $(c) || (J(c) ||
|
|
5337
|
+
(c) => $(c) || (J(c) || Ze(c)) && ve(c)
|
|
5329
5338
|
) : {};
|
|
5330
|
-
},
|
|
5339
|
+
}, Je = (n) => {
|
|
5331
5340
|
const r = {};
|
|
5332
5341
|
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;
|
|
5333
5342
|
};
|
|
5334
|
-
class
|
|
5343
|
+
class ts extends h {
|
|
5335
5344
|
/**
|
|
5336
5345
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
5337
5346
|
*
|
|
@@ -5345,7 +5354,7 @@ class rs extends h {
|
|
|
5345
5354
|
return this.get(
|
|
5346
5355
|
`/internal/price/products/${r}/analyze`,
|
|
5347
5356
|
{
|
|
5348
|
-
...
|
|
5357
|
+
...Je(e),
|
|
5349
5358
|
filters: Se(s)
|
|
5350
5359
|
},
|
|
5351
5360
|
(i) => i.data.map((o) => new _e(o))
|
|
@@ -5364,7 +5373,7 @@ class rs extends h {
|
|
|
5364
5373
|
return this.get(
|
|
5365
5374
|
`/internal/price/categories/${r}/analyze`,
|
|
5366
5375
|
{
|
|
5367
|
-
...
|
|
5376
|
+
...Je(e),
|
|
5368
5377
|
filters: Se(s)
|
|
5369
5378
|
},
|
|
5370
5379
|
(i) => i.data.map((o) => new _e(o))
|
|
@@ -5392,7 +5401,7 @@ class rs extends h {
|
|
|
5392
5401
|
);
|
|
5393
5402
|
}
|
|
5394
5403
|
}
|
|
5395
|
-
class
|
|
5404
|
+
class wt {
|
|
5396
5405
|
/**
|
|
5397
5406
|
* Инициализирует экземпляр класса {@link PriceHistoryItem}.
|
|
5398
5407
|
*
|
|
@@ -5442,7 +5451,7 @@ class yt {
|
|
|
5442
5451
|
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = y(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ne(r.product) : void 0, this.client = r.client ? new G(r.client) : void 0, this.executor = r.executor ? new G(r.executor) : void 0, this.currency = r.currency ? new ye(r.currency) : void 0;
|
|
5443
5452
|
}
|
|
5444
5453
|
}
|
|
5445
|
-
class
|
|
5454
|
+
class Ct extends ne {
|
|
5446
5455
|
/**
|
|
5447
5456
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
5448
5457
|
*
|
|
@@ -5454,10 +5463,10 @@ class wt extends ne {
|
|
|
5454
5463
|
* @inheritDoc
|
|
5455
5464
|
*/
|
|
5456
5465
|
t(this, "history");
|
|
5457
|
-
this.history = ue(e.history, (s) => new
|
|
5466
|
+
this.history = ue(e.history, (s) => new wt(s));
|
|
5458
5467
|
}
|
|
5459
5468
|
}
|
|
5460
|
-
class
|
|
5469
|
+
class ss extends h {
|
|
5461
5470
|
/**
|
|
5462
5471
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
5463
5472
|
*/
|
|
@@ -5473,19 +5482,19 @@ class ts extends h {
|
|
|
5473
5482
|
*/
|
|
5474
5483
|
getProductPriceHistory(r) {
|
|
5475
5484
|
var i, o, c, p;
|
|
5476
|
-
const e = D.getConfig().dateFormats.api, s =
|
|
5485
|
+
const e = D.getConfig().dateFormats.api, s = Xe(
|
|
5477
5486
|
xe(r, {
|
|
5478
5487
|
costDate: {
|
|
5479
5488
|
from: Ie((i = r.costDate) == null ? void 0 : i.from) ? q(r.costDate.from, e) : (o = r.costDate) == null ? void 0 : o.from,
|
|
5480
5489
|
to: Ie((c = r.costDate) == null ? void 0 : c.to) ? q(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
|
|
5481
5490
|
}
|
|
5482
5491
|
}),
|
|
5483
|
-
(u) => $(u) || (J(u) ||
|
|
5492
|
+
(u) => $(u) || (J(u) || Ze(u)) && ve(u)
|
|
5484
5493
|
);
|
|
5485
|
-
return this.get("/internal/history", s, (u) => ue(u.data, (m) => new
|
|
5494
|
+
return this.get("/internal/history", s, (u) => ue(u.data, (m) => new Ct(m)));
|
|
5486
5495
|
}
|
|
5487
5496
|
}
|
|
5488
|
-
class
|
|
5497
|
+
class Ke {
|
|
5489
5498
|
/**
|
|
5490
5499
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
5491
5500
|
*
|
|
@@ -5503,7 +5512,7 @@ class Je {
|
|
|
5503
5512
|
r != null && r.products && (this.products = r.products.map((e) => new ne(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new ne(e)));
|
|
5504
5513
|
}
|
|
5505
5514
|
}
|
|
5506
|
-
class
|
|
5515
|
+
class is extends h {
|
|
5507
5516
|
/**
|
|
5508
5517
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
5509
5518
|
*/
|
|
@@ -5517,7 +5526,7 @@ class ss extends h {
|
|
|
5517
5526
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
5518
5527
|
*/
|
|
5519
5528
|
getProductCategoryRecommendations(r) {
|
|
5520
|
-
return this.get(`/internal/recommendations/categories/${r.id}`, {}, (e) => new
|
|
5529
|
+
return this.get(`/internal/recommendations/categories/${r.id}`, {}, (e) => new Ke(e.data));
|
|
5521
5530
|
}
|
|
5522
5531
|
/**
|
|
5523
5532
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -5526,7 +5535,7 @@ class ss extends h {
|
|
|
5526
5535
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
5527
5536
|
*/
|
|
5528
5537
|
getProductRecommendations(r) {
|
|
5529
|
-
return this.get(`/internal/recommendations/products/${r.id}`, {}, (e) => new
|
|
5538
|
+
return this.get(`/internal/recommendations/products/${r.id}`, {}, (e) => new Ke(e.data));
|
|
5530
5539
|
}
|
|
5531
5540
|
/**
|
|
5532
5541
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -5564,20 +5573,20 @@ class a extends pe {
|
|
|
5564
5573
|
* и использовать в случае аналогичных запросов.
|
|
5565
5574
|
*/
|
|
5566
5575
|
getReference(r, e = !1) {
|
|
5567
|
-
return this.getTypedDataArrayRequester(
|
|
5576
|
+
return this.getTypedDataArrayRequester(tt, `/internal/references/${r}`, e);
|
|
5568
5577
|
}
|
|
5569
5578
|
/**
|
|
5570
5579
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
5571
5580
|
* первичного интереса.
|
|
5572
5581
|
*/
|
|
5573
5582
|
getChannelPrimaryInterest() {
|
|
5574
|
-
return this.getTypedDataArrayRequester(
|
|
5583
|
+
return this.getTypedDataArrayRequester(lr, "/internal/references/channel-primary-interest", !0);
|
|
5575
5584
|
}
|
|
5576
5585
|
/**
|
|
5577
5586
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
5578
5587
|
*/
|
|
5579
5588
|
getContactPositions() {
|
|
5580
|
-
return this.getTypedDataArrayRequester(
|
|
5589
|
+
return this.getTypedDataArrayRequester(st, "/internal/references/contact-position", !0);
|
|
5581
5590
|
}
|
|
5582
5591
|
/**
|
|
5583
5592
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
@@ -5602,25 +5611,25 @@ class a extends pe {
|
|
|
5602
5611
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
5603
5612
|
*/
|
|
5604
5613
|
getOrderPaymentStatuses() {
|
|
5605
|
-
return this.getTypedDataArrayRequester(
|
|
5614
|
+
return this.getTypedDataArrayRequester(it, "/public/references/order-payment-status", !0);
|
|
5606
5615
|
}
|
|
5607
5616
|
/**
|
|
5608
5617
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
5609
5618
|
*/
|
|
5610
5619
|
getOrderStatuses() {
|
|
5611
|
-
return this.getTypedDataArrayRequester(
|
|
5620
|
+
return this.getTypedDataArrayRequester(nt, "/public/references/order-status", !0);
|
|
5612
5621
|
}
|
|
5613
5622
|
/**
|
|
5614
5623
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
5615
5624
|
*/
|
|
5616
5625
|
getPaymentTypes() {
|
|
5617
|
-
return this.getTypedDataArrayRequester(
|
|
5626
|
+
return this.getTypedDataArrayRequester(ot, "/public/references/payment-type", !0);
|
|
5618
5627
|
}
|
|
5619
5628
|
/**
|
|
5620
5629
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
5621
5630
|
*/
|
|
5622
5631
|
getResourceTypes() {
|
|
5623
|
-
return this.getTypedDataArrayRequester(
|
|
5632
|
+
return this.getTypedDataArrayRequester(pr, "/internal/references/resource-type", !0);
|
|
5624
5633
|
}
|
|
5625
5634
|
/**
|
|
5626
5635
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
@@ -5632,7 +5641,7 @@ class a extends pe {
|
|
|
5632
5641
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
5633
5642
|
*/
|
|
5634
5643
|
getSourcePrimaryInterest() {
|
|
5635
|
-
return this.getTypedDataArrayRequester(
|
|
5644
|
+
return this.getTypedDataArrayRequester(ur, "/internal/references/source-primary-interest", !0);
|
|
5636
5645
|
}
|
|
5637
5646
|
/**
|
|
5638
5647
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -5674,7 +5683,7 @@ class a extends pe {
|
|
|
5674
5683
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
5675
5684
|
*/
|
|
5676
5685
|
getPropertyTypes() {
|
|
5677
|
-
return this.getTypedDataArrayRequester(
|
|
5686
|
+
return this.getTypedDataArrayRequester(cr, "/internal/references/property-type", !0);
|
|
5678
5687
|
}
|
|
5679
5688
|
/**
|
|
5680
5689
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
@@ -5686,7 +5695,7 @@ class a extends pe {
|
|
|
5686
5695
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
5687
5696
|
*/
|
|
5688
5697
|
getProductFileType() {
|
|
5689
|
-
return this.getTypedDataArrayRequester(
|
|
5698
|
+
return this.getTypedDataArrayRequester(ct, "/public/references/product-file-type", !0);
|
|
5690
5699
|
}
|
|
5691
5700
|
}
|
|
5692
5701
|
const A = Z("__references_private", () => {
|
|
@@ -5765,7 +5774,7 @@ const A = Z("__references_private", () => {
|
|
|
5765
5774
|
*/
|
|
5766
5775
|
priceCoefficientsReference: l
|
|
5767
5776
|
};
|
|
5768
|
-
}),
|
|
5777
|
+
}), ns = Z("references", () => {
|
|
5769
5778
|
const n = R(() => {
|
|
5770
5779
|
const l = A();
|
|
5771
5780
|
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(a).getChannelPrimaryInterest().then((g) => {
|
|
@@ -5833,7 +5842,7 @@ const A = Z("__references_private", () => {
|
|
|
5833
5842
|
}).catch(w)), l.deliveryTypeReference;
|
|
5834
5843
|
}), b = R(() => {
|
|
5835
5844
|
const l = A();
|
|
5836
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(
|
|
5845
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(mt).getManagers().then((g) => {
|
|
5837
5846
|
l.managersList = g;
|
|
5838
5847
|
}).catch(w)), l.managersList;
|
|
5839
5848
|
}), _ = R(() => {
|
|
@@ -5923,7 +5932,7 @@ const A = Z("__references_private", () => {
|
|
|
5923
5932
|
priceCoefficientsReference: U
|
|
5924
5933
|
};
|
|
5925
5934
|
});
|
|
5926
|
-
class
|
|
5935
|
+
class vt {
|
|
5927
5936
|
/**
|
|
5928
5937
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
5929
5938
|
*
|
|
@@ -5941,7 +5950,7 @@ class Ct {
|
|
|
5941
5950
|
this.name = r.name, this.content = r.content;
|
|
5942
5951
|
}
|
|
5943
5952
|
}
|
|
5944
|
-
class
|
|
5953
|
+
class Qe {
|
|
5945
5954
|
/**
|
|
5946
5955
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
5947
5956
|
*
|
|
@@ -5977,10 +5986,10 @@ class Ke {
|
|
|
5977
5986
|
*/
|
|
5978
5987
|
t(this, "meta");
|
|
5979
5988
|
var e;
|
|
5980
|
-
this.resourceType = new
|
|
5989
|
+
this.resourceType = new pr(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 vt(s))) ?? [];
|
|
5981
5990
|
}
|
|
5982
5991
|
}
|
|
5983
|
-
class
|
|
5992
|
+
class os extends h {
|
|
5984
5993
|
/**
|
|
5985
5994
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
5986
5995
|
*
|
|
@@ -5988,7 +5997,7 @@ class ns extends h {
|
|
|
5988
5997
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
5989
5998
|
*/
|
|
5990
5999
|
getResourceSeoData(r, e) {
|
|
5991
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new
|
|
6000
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new Qe(s.data));
|
|
5992
6001
|
}
|
|
5993
6002
|
/**
|
|
5994
6003
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -5999,7 +6008,7 @@ class ns extends h {
|
|
|
5999
6008
|
* в случае ошибок в запросах.
|
|
6000
6009
|
*/
|
|
6001
6010
|
saveResourceSeoData(r, e = {}) {
|
|
6002
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new
|
|
6011
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new Qe(s.data), e);
|
|
6003
6012
|
}
|
|
6004
6013
|
/**
|
|
6005
6014
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -6011,7 +6020,7 @@ class ns extends h {
|
|
|
6011
6020
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
6012
6021
|
}
|
|
6013
6022
|
}
|
|
6014
|
-
class
|
|
6023
|
+
class cs extends h {
|
|
6015
6024
|
/**
|
|
6016
6025
|
* Возвращает подсказки по адресам.
|
|
6017
6026
|
*
|
|
@@ -6058,8 +6067,8 @@ class os extends h {
|
|
|
6058
6067
|
});
|
|
6059
6068
|
}
|
|
6060
6069
|
}
|
|
6061
|
-
var
|
|
6062
|
-
class
|
|
6070
|
+
var Pt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Pt || {});
|
|
6071
|
+
class Rt extends or {
|
|
6063
6072
|
/**
|
|
6064
6073
|
* Инициализирует экземпляр класса {@link User}.
|
|
6065
6074
|
*
|
|
@@ -6082,7 +6091,7 @@ class Pt extends nr {
|
|
|
6082
6091
|
this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo;
|
|
6083
6092
|
}
|
|
6084
6093
|
}
|
|
6085
|
-
class
|
|
6094
|
+
class ls extends h {
|
|
6086
6095
|
/**
|
|
6087
6096
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
6088
6097
|
*/
|
|
@@ -6098,16 +6107,16 @@ class cs extends h {
|
|
|
6098
6107
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
6099
6108
|
}
|
|
6100
6109
|
}
|
|
6101
|
-
class
|
|
6110
|
+
class At extends h {
|
|
6102
6111
|
/**
|
|
6103
6112
|
* Возвращает данные о текущем пользователе.
|
|
6104
6113
|
*/
|
|
6105
6114
|
// eslint-disable-next-line class-methods-use-this
|
|
6106
6115
|
getCurrentUser() {
|
|
6107
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
6116
|
+
return this.get("/internal/users/info", {}, (r) => new Rt(r.data));
|
|
6108
6117
|
}
|
|
6109
6118
|
}
|
|
6110
|
-
const
|
|
6119
|
+
const Dt = Z("__user_state_private", () => {
|
|
6111
6120
|
const n = f({}), r = f(void 0);
|
|
6112
6121
|
return {
|
|
6113
6122
|
/**
|
|
@@ -6119,20 +6128,20 @@ const At = Z("__user_state_private", () => {
|
|
|
6119
6128
|
*/
|
|
6120
6129
|
currentUser: r
|
|
6121
6130
|
};
|
|
6122
|
-
}),
|
|
6131
|
+
}), ps = Z("user_state", () => ({
|
|
6123
6132
|
/**
|
|
6124
6133
|
* Данные о текущем пользователе.
|
|
6125
6134
|
*/
|
|
6126
6135
|
currentUser: R(() => {
|
|
6127
|
-
const r =
|
|
6128
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(
|
|
6136
|
+
const r = Dt();
|
|
6137
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(At).getCurrentUser().then((e) => {
|
|
6129
6138
|
r.currentUser = e;
|
|
6130
6139
|
}).catch(w).finally(() => {
|
|
6131
6140
|
r.dataLoaderList.currentUser = !1;
|
|
6132
6141
|
})), r.currentUser;
|
|
6133
6142
|
})
|
|
6134
6143
|
}));
|
|
6135
|
-
class
|
|
6144
|
+
class us {
|
|
6136
6145
|
/**
|
|
6137
6146
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
6138
6147
|
*
|
|
@@ -6156,148 +6165,149 @@ class ps {
|
|
|
6156
6165
|
}
|
|
6157
6166
|
}
|
|
6158
6167
|
export {
|
|
6159
|
-
|
|
6160
|
-
|
|
6168
|
+
tt as AnyReference,
|
|
6169
|
+
Ot as AppBaseConfig,
|
|
6161
6170
|
D as AppConfigProvider,
|
|
6162
6171
|
ke as BankAccount,
|
|
6163
6172
|
De as BasePaginationProvider,
|
|
6164
|
-
|
|
6173
|
+
zr as CalculationTypeEnum,
|
|
6165
6174
|
me as Cart,
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6175
|
+
Br as CartItem,
|
|
6176
|
+
Hr as CartItemBase,
|
|
6177
|
+
Lt as CartProvider,
|
|
6178
|
+
qt as CatalogProvider,
|
|
6179
|
+
rr as CatalogableItem,
|
|
6171
6180
|
B as Category,
|
|
6172
6181
|
He as CategoryPricingRule,
|
|
6173
|
-
|
|
6174
|
-
|
|
6182
|
+
lr as ChannelPrimaryInterest,
|
|
6183
|
+
Et as City,
|
|
6175
6184
|
je as CityWithRegionAndCountry,
|
|
6176
|
-
|
|
6177
|
-
|
|
6185
|
+
Ee as Client,
|
|
6186
|
+
ht as ClientAdditionalData,
|
|
6178
6187
|
fe as ClientCategory,
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6188
|
+
Qt as ClientDataProvider,
|
|
6189
|
+
Ut as ClientPriceProvider,
|
|
6190
|
+
Gt as ClientPriceTemplateProvider,
|
|
6182
6191
|
Q as ClientProduct,
|
|
6183
|
-
|
|
6184
|
-
|
|
6192
|
+
Mt as ClientProductCategoryDataProvider,
|
|
6193
|
+
Ht as ClientProductDataProvider,
|
|
6185
6194
|
ge as ClientShortInfo,
|
|
6186
|
-
|
|
6195
|
+
rt as ClientsAdditionalDataRequestTypeEnum,
|
|
6187
6196
|
Vt as ClientsListFilters,
|
|
6188
6197
|
ne as CodedIdentity,
|
|
6189
|
-
|
|
6198
|
+
Xt as ConfiguratorProvider,
|
|
6190
6199
|
Le as Contact,
|
|
6191
|
-
|
|
6200
|
+
Jr as ContactLinks,
|
|
6192
6201
|
F as ContactPerson,
|
|
6193
|
-
|
|
6194
|
-
|
|
6202
|
+
ut as ContactPersonRelated,
|
|
6203
|
+
st as ContactPosition,
|
|
6195
6204
|
be as ContactRelation,
|
|
6196
|
-
|
|
6205
|
+
hr as ContragentBase,
|
|
6197
6206
|
we as ContragentFactory,
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6207
|
+
gr as ContragentIc,
|
|
6208
|
+
lt as ContragentPerson,
|
|
6209
|
+
pt as ContragentUlNr,
|
|
6210
|
+
mr as ContragentUlR,
|
|
6202
6211
|
Ge as CostSourceEnum,
|
|
6203
6212
|
Y as Country,
|
|
6204
6213
|
ye as Currency,
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6214
|
+
cs as DataSuggestionProvider,
|
|
6215
|
+
Jt as DataTablePagination,
|
|
6216
|
+
gt as DataTablePaginationRequestParams,
|
|
6217
|
+
Kt as DataTableSortRequestParams,
|
|
6218
|
+
Zt as DateTimeProvider,
|
|
6219
|
+
Er as DeletableNamedIdentity,
|
|
6211
6220
|
Ce as DeliveryAddress,
|
|
6212
6221
|
K as DeliveryType,
|
|
6213
|
-
|
|
6214
|
-
|
|
6222
|
+
kt as DetailedJwtPayload,
|
|
6223
|
+
Qr as DeviceTypeResolutionConfig,
|
|
6215
6224
|
Vr as DiscountShortInfo,
|
|
6216
|
-
|
|
6225
|
+
us as FieldValidationResultData,
|
|
6217
6226
|
le as FilterGroup,
|
|
6218
6227
|
Be as FilterItem,
|
|
6219
6228
|
Fe as FilterOpEnum,
|
|
6220
|
-
|
|
6221
|
-
|
|
6229
|
+
sr as GeoCoordinates,
|
|
6230
|
+
Fr as HiddenCatalogableItem,
|
|
6222
6231
|
pe as HttpCachedRequester,
|
|
6223
|
-
|
|
6232
|
+
Yr as HttpParamsConfig,
|
|
6224
6233
|
h as HttpRequester,
|
|
6225
6234
|
M as Identity,
|
|
6226
|
-
|
|
6235
|
+
Mr as Image,
|
|
6227
6236
|
ie as JwtPayload,
|
|
6228
6237
|
Ae as Manager,
|
|
6229
6238
|
oe as ManagerCommon,
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6239
|
+
es as ManagerDataFactory,
|
|
6240
|
+
mt as ManagerDataProvider,
|
|
6241
|
+
vt as MetaTagItem,
|
|
6233
6242
|
T as NamedIdentity,
|
|
6234
6243
|
j as Opf,
|
|
6235
6244
|
d as OpfEnum,
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6245
|
+
yt as Order,
|
|
6246
|
+
yr as OrderInfo,
|
|
6247
|
+
it as OrderPaymentStatus,
|
|
6248
|
+
ft as OrderProduct,
|
|
6249
|
+
fr as OrderShortInfo,
|
|
6250
|
+
nt as OrderStatus,
|
|
6251
|
+
rs as OrdersDataProvider,
|
|
6243
6252
|
X as PartnerGroup,
|
|
6244
|
-
|
|
6245
|
-
|
|
6253
|
+
ot as PaymentType,
|
|
6254
|
+
xt as PreferencesStorageProvider,
|
|
6246
6255
|
_e as PriceAnalyze,
|
|
6247
|
-
|
|
6256
|
+
ts as PriceAnalyzeProvider,
|
|
6248
6257
|
Pe as PriceCoefficient,
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6258
|
+
tr as PriceCoefficientEnum,
|
|
6259
|
+
ss as PriceHistoryDataProvider,
|
|
6260
|
+
wt as PriceHistoryItem,
|
|
6252
6261
|
z as PriceTemplate,
|
|
6253
6262
|
$e as PriceTemplateCategory,
|
|
6254
6263
|
re as PriceTemplateClient,
|
|
6255
|
-
|
|
6264
|
+
nr as PriceTemplateICatalogableItem,
|
|
6256
6265
|
Te as PriceTemplateProduct,
|
|
6257
|
-
|
|
6266
|
+
Bt as PriceTemplateProvider,
|
|
6258
6267
|
se as PricingRole,
|
|
6259
|
-
|
|
6268
|
+
zt as PricingRoleProvider,
|
|
6260
6269
|
de as PrimaryCatalogableItem,
|
|
6261
6270
|
L as Product,
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6271
|
+
jt as ProductCategoryDataProvider,
|
|
6272
|
+
Ft as ProductDataProvider,
|
|
6273
|
+
ct as ProductFileType,
|
|
6265
6274
|
qe as ProductPriceCoefficient,
|
|
6266
|
-
|
|
6267
|
-
|
|
6275
|
+
Ct as ProductPriceHistory,
|
|
6276
|
+
Wt as PropertiesProvider,
|
|
6268
6277
|
te as Property,
|
|
6269
|
-
|
|
6270
|
-
|
|
6278
|
+
cr as PropertyType,
|
|
6279
|
+
Wr as PropertyTypeEnum,
|
|
6271
6280
|
H as PropertyValue,
|
|
6272
|
-
|
|
6273
|
-
|
|
6281
|
+
is as RecommendationsDataProvider,
|
|
6282
|
+
Ke as RecommendationsList,
|
|
6274
6283
|
P as Reference,
|
|
6275
6284
|
a as ReferenceDataProvider,
|
|
6276
6285
|
ce as Region,
|
|
6277
|
-
|
|
6286
|
+
pr as ResourceType,
|
|
6278
6287
|
x as SalesDirection,
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6288
|
+
Xr as SentryConfig,
|
|
6289
|
+
Qe as Seo,
|
|
6290
|
+
os as SeoDataProvider,
|
|
6291
|
+
ur as SourcePrimaryInterest,
|
|
6292
|
+
jr as StockCount,
|
|
6293
|
+
Nt as TemplatesListFilters,
|
|
6285
6294
|
Ue as TypedInstanceFactory,
|
|
6286
6295
|
Ve as UnitsHelper,
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6296
|
+
Yt as UnknownClientDataProvider,
|
|
6297
|
+
ir as UpdatableNamedIdentity,
|
|
6298
|
+
Rt as User,
|
|
6299
|
+
ls as UserAuthDataProvider,
|
|
6300
|
+
or as UserCommonInfo,
|
|
6301
|
+
At as UserDataProvider,
|
|
6293
6302
|
G as UserShortInfo,
|
|
6294
|
-
|
|
6295
|
-
|
|
6303
|
+
Pt as UserTypeEnum,
|
|
6304
|
+
Zr as VersionConfig,
|
|
6296
6305
|
Re as Warehouse,
|
|
6297
|
-
|
|
6306
|
+
et as WebSocketConfig,
|
|
6298
6307
|
ze as findCatalogItemByIdRecursive,
|
|
6308
|
+
We as flattenCatalogItems,
|
|
6299
6309
|
ae as useAuthStateStore,
|
|
6300
|
-
|
|
6301
|
-
|
|
6310
|
+
ns as useReferencesStore,
|
|
6311
|
+
ps as useUserStateStore
|
|
6302
6312
|
};
|
|
6303
6313
|
//# sourceMappingURL=sc-common-lib.js.map
|