@snabcentr/common-lib 1.71.3 → 1.71.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/release_notes.tmp +2 -2
- package/dist/sc-common-lib.js +252 -223
- 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/cart/providers/cart-provider.d.ts +3 -1
- package/dist/src/cart/providers/cart-provider.d.ts.map +1 -1
- package/dist/src/managers/classes/manager.d.ts +5 -0
- package/dist/src/managers/classes/manager.d.ts.map +1 -1
- package/dist/src/managers/interfaces/i-manager.d.ts +5 -0
- package/dist/src/managers/interfaces/i-manager.d.ts.map +1 -1
- package/dist/src/user/classes/index.d.ts +1 -0
- package/dist/src/user/classes/index.d.ts.map +1 -1
- package/dist/src/user/classes/user-pricing-role.d.ts +26 -0
- package/dist/src/user/classes/user-pricing-role.d.ts.map +1 -0
- package/dist/src/user/interfaces/i-user-pricing-role.d.ts +19 -0
- package/dist/src/user/interfaces/i-user-pricing-role.d.ts.map +1 -0
- package/dist/src/user/interfaces/index.d.ts +1 -0
- package/dist/src/user/interfaces/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -2,11 +2,11 @@ var wr = Object.defineProperty;
|
|
|
2
2
|
var Cr = (n, r, e) => r in n ? wr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
3
|
var t = (n, r, e) => Cr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
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
|
|
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
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
|
|
9
|
+
import { parseISO as C, format as q, isAfter as Sr, startOfToday as er, addSeconds as Ir, addBusinessDays as Lr, endOfTomorrow as kr, startOfTomorrow as dr, endOfYesterday as xr, startOfYesterday as Nr, endOfToday as Or, endOfDay as qr, startOfDay as Ur } from "date-fns";
|
|
10
10
|
import Gr from "axios";
|
|
11
11
|
class ie {
|
|
12
12
|
/**
|
|
@@ -111,7 +111,7 @@ class ie {
|
|
|
111
111
|
return s.resourceAccess = e.resource_access, s;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class dt extends ie {
|
|
115
115
|
/**
|
|
116
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
117
117
|
*
|
|
@@ -190,10 +190,10 @@ const W = class W {
|
|
|
190
190
|
* Конфигурация приложения.
|
|
191
191
|
*/
|
|
192
192
|
t(W, "config");
|
|
193
|
-
let
|
|
193
|
+
let D = W;
|
|
194
194
|
const ee = Z("__auth_state_private", () => {
|
|
195
195
|
var i;
|
|
196
|
-
const n = f(Promise.resolve((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 = _r(/* @__PURE__ */ new Map());
|
|
197
197
|
return {
|
|
198
198
|
/**
|
|
199
199
|
* {@link Promise<string>} для получения jwt-ключа доступа к системам.
|
|
@@ -212,7 +212,7 @@ const ee = Z("__auth_state_private", () => {
|
|
|
212
212
|
*/
|
|
213
213
|
userPermissionsComputedRefs: s
|
|
214
214
|
};
|
|
215
|
-
}),
|
|
215
|
+
}), ae = Z("__auth_state", () => {
|
|
216
216
|
const n = R(() => {
|
|
217
217
|
const i = ee();
|
|
218
218
|
if ($(i.jwtToken) && !$(i.jwtTokenUpdater)) {
|
|
@@ -348,7 +348,7 @@ class rr extends ne {
|
|
|
348
348
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
class
|
|
351
|
+
class Le extends rr {
|
|
352
352
|
/**
|
|
353
353
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
354
354
|
*
|
|
@@ -363,7 +363,7 @@ class de extends rr {
|
|
|
363
363
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
class he extends
|
|
366
|
+
class he extends Le {
|
|
367
367
|
/**
|
|
368
368
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
369
369
|
*
|
|
@@ -387,7 +387,7 @@ 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
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 || {});
|
|
@@ -415,7 +415,7 @@ class Pe extends P {
|
|
|
415
415
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
416
416
|
*/
|
|
417
417
|
static getRetailPriceCoefficient() {
|
|
418
|
-
return { id: -2, slug: tr.Retail, name: "Розн. цена", guid: "", isNewRec:
|
|
418
|
+
return { id: -2, slug: tr.Retail, name: "Розн. цена", guid: "", isNewRec: ar(!0) };
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
class qe {
|
|
@@ -556,7 +556,7 @@ class Mr {
|
|
|
556
556
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
class
|
|
559
|
+
class d extends Fr {
|
|
560
560
|
/**
|
|
561
561
|
* Инициализирует экземпляр класса {@link Product}.
|
|
562
562
|
*
|
|
@@ -643,14 +643,14 @@ class L extends Fr {
|
|
|
643
643
|
t(this, "priceCoefficients");
|
|
644
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
|
|
646
|
+
s && (this.category = new Le({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((u) => new Le(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
|
* Возвращает признак, что это измеряемый товар.
|
|
650
650
|
*/
|
|
651
651
|
getIsMeasurable() {
|
|
652
652
|
var s;
|
|
653
|
-
const e = (s =
|
|
653
|
+
const e = (s = D.getConfig().catalog) == null ? void 0 : s.products.units;
|
|
654
654
|
return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
|
|
655
655
|
}
|
|
656
656
|
/**
|
|
@@ -718,7 +718,7 @@ class Hr extends M {
|
|
|
718
718
|
* Признак того, что позиция является дополнительной продажей.
|
|
719
719
|
*/
|
|
720
720
|
t(this, "isAdditionalSale");
|
|
721
|
-
this.product = new
|
|
721
|
+
this.product = new d(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
724
|
class Br extends Hr {
|
|
@@ -824,7 +824,7 @@ const k = class k {
|
|
|
824
824
|
/**
|
|
825
825
|
* Базовый URL путь для выполнения запросов.
|
|
826
826
|
*/
|
|
827
|
-
t(this, "baseUrl", `${
|
|
827
|
+
t(this, "baseUrl", `${D.getConfig().http.portalApiUrl}/api`);
|
|
828
828
|
/**
|
|
829
829
|
* Обработчик ошибок выполнения запросов текущего экземпляра класса.
|
|
830
830
|
*
|
|
@@ -851,7 +851,7 @@ const k = class k {
|
|
|
851
851
|
// eslint-disable-next-line class-methods-use-this
|
|
852
852
|
t(this, "authRequestInterceptor", async (r) => {
|
|
853
853
|
let e;
|
|
854
|
-
return $(
|
|
854
|
+
return $(ae().jwtToken) || (e = await ae().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
|
|
855
855
|
});
|
|
856
856
|
/**
|
|
857
857
|
* Перехватчик запроса для преобразования данных запроса.
|
|
@@ -868,7 +868,7 @@ const k = class k {
|
|
|
868
868
|
t(this, "authErrorsResponseInterceptors", (r) => {
|
|
869
869
|
var s;
|
|
870
870
|
const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
|
|
871
|
-
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (
|
|
871
|
+
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (ae().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
|
|
872
872
|
});
|
|
873
873
|
/**
|
|
874
874
|
* Перехватчик ответа для преобразования данных ответа на запрос.
|
|
@@ -877,10 +877,10 @@ const k = class k {
|
|
|
877
877
|
*/
|
|
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
|
-
const r =
|
|
880
|
+
const r = D.getConfig().version;
|
|
881
881
|
this.errorResponseHandler = k.defaultErrorsResponseHandler, this.httpClient = Gr.create({
|
|
882
882
|
headers: {
|
|
883
|
-
"APP-VERSION": `${r.name} (${r.version}, ${q(r.date,
|
|
883
|
+
"APP-VERSION": `${r.name} (${r.version}, ${q(r.date, D.getConfig().dateFormats.uiDate)})`,
|
|
884
884
|
Accept: "application/json",
|
|
885
885
|
"Content-Type": "application/json"
|
|
886
886
|
}
|
|
@@ -1016,7 +1016,7 @@ t(k, "instances", {}), /**
|
|
|
1016
1016
|
*/
|
|
1017
1017
|
t(k, "defaultErrorsResponseHandler", w);
|
|
1018
1018
|
let h = k;
|
|
1019
|
-
class
|
|
1019
|
+
class xt extends h {
|
|
1020
1020
|
/**
|
|
1021
1021
|
* Возвращает содержимое корзины указанного клиента.
|
|
1022
1022
|
*
|
|
@@ -1112,11 +1112,12 @@ class Lt extends h {
|
|
|
1112
1112
|
* Добавляет продукты в корзину из файла CSV.
|
|
1113
1113
|
*
|
|
1114
1114
|
* @param client Данные о клиенте, для которого необходимо добавить в корзину новые позиции заказываемого товара/услуги из файла CSV.
|
|
1115
|
+
* @param file Данные о файле CSV.
|
|
1115
1116
|
*
|
|
1116
1117
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
|
|
1117
1118
|
*/
|
|
1118
|
-
addCartItemFromCSV(r) {
|
|
1119
|
-
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`,
|
|
1119
|
+
addCartItemFromCSV(r, e) {
|
|
1120
|
+
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new me(s.data));
|
|
1120
1121
|
}
|
|
1121
1122
|
}
|
|
1122
1123
|
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 || {});
|
|
@@ -1137,7 +1138,7 @@ class B extends he {
|
|
|
1137
1138
|
* Список продуктов категории.
|
|
1138
1139
|
*/
|
|
1139
1140
|
t(this, "products");
|
|
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
|
|
1141
|
+
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 d(o));
|
|
1141
1142
|
}
|
|
1142
1143
|
}
|
|
1143
1144
|
class ir extends T {
|
|
@@ -1170,7 +1171,7 @@ class Er extends ir {
|
|
|
1170
1171
|
this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1171
1172
|
}
|
|
1172
1173
|
}
|
|
1173
|
-
class
|
|
1174
|
+
class Nt {
|
|
1174
1175
|
/**
|
|
1175
1176
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
1176
1177
|
*
|
|
@@ -1277,7 +1278,7 @@ class z extends ir {
|
|
|
1277
1278
|
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
|
|
1278
1279
|
}
|
|
1279
1280
|
}
|
|
1280
|
-
class Q extends
|
|
1281
|
+
class Q extends d {
|
|
1281
1282
|
/**
|
|
1282
1283
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1283
1284
|
*
|
|
@@ -1363,6 +1364,29 @@ class oe extends T {
|
|
|
1363
1364
|
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
1365
|
}
|
|
1365
1366
|
}
|
|
1367
|
+
class Kr extends T {
|
|
1368
|
+
/**
|
|
1369
|
+
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
1370
|
+
*
|
|
1371
|
+
* @param data Данные для первоначальной инициализации.
|
|
1372
|
+
*/
|
|
1373
|
+
constructor(e) {
|
|
1374
|
+
super(e);
|
|
1375
|
+
/**
|
|
1376
|
+
* @inheritDoc
|
|
1377
|
+
*/
|
|
1378
|
+
t(this, "description");
|
|
1379
|
+
/**
|
|
1380
|
+
* @inheritDoc
|
|
1381
|
+
*/
|
|
1382
|
+
t(this, "canChangeLowCost");
|
|
1383
|
+
/**
|
|
1384
|
+
* @inheritDoc
|
|
1385
|
+
*/
|
|
1386
|
+
t(this, "parentRoleId");
|
|
1387
|
+
this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1366
1390
|
class Ae extends oe {
|
|
1367
1391
|
/**
|
|
1368
1392
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
@@ -1391,10 +1415,14 @@ class Ae extends oe {
|
|
|
1391
1415
|
* Идентификатор супервайзера.
|
|
1392
1416
|
*/
|
|
1393
1417
|
t(this, "supervisorId");
|
|
1394
|
-
|
|
1418
|
+
/**
|
|
1419
|
+
* Данные роли ценообразования менеджера.
|
|
1420
|
+
*/
|
|
1421
|
+
t(this, "pricingRole");
|
|
1422
|
+
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 Kr(e.pricingRole) : void 0;
|
|
1395
1423
|
}
|
|
1396
1424
|
}
|
|
1397
|
-
class
|
|
1425
|
+
class Qr extends he {
|
|
1398
1426
|
/**
|
|
1399
1427
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1400
1428
|
*
|
|
@@ -1425,7 +1453,7 @@ class Kr extends he {
|
|
|
1425
1453
|
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
1454
|
}
|
|
1427
1455
|
}
|
|
1428
|
-
class fe extends
|
|
1456
|
+
class fe extends Qr {
|
|
1429
1457
|
/**
|
|
1430
1458
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1431
1459
|
*
|
|
@@ -1633,7 +1661,7 @@ class Te extends nr {
|
|
|
1633
1661
|
* Базовые данные о продукте.
|
|
1634
1662
|
*/
|
|
1635
1663
|
t(this, "product");
|
|
1636
|
-
this.product = new
|
|
1664
|
+
this.product = new d(e == null ? void 0 : e.product);
|
|
1637
1665
|
}
|
|
1638
1666
|
}
|
|
1639
1667
|
class cr extends P {
|
|
@@ -1698,7 +1726,7 @@ class O {
|
|
|
1698
1726
|
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
1727
|
}
|
|
1700
1728
|
}
|
|
1701
|
-
class
|
|
1729
|
+
class Ot {
|
|
1702
1730
|
/**
|
|
1703
1731
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
1704
1732
|
*
|
|
@@ -1819,7 +1847,7 @@ class He {
|
|
|
1819
1847
|
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
1848
|
}
|
|
1821
1849
|
}
|
|
1822
|
-
class
|
|
1850
|
+
class Yr {
|
|
1823
1851
|
/**
|
|
1824
1852
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
1825
1853
|
*
|
|
@@ -1841,7 +1869,7 @@ class Qr {
|
|
|
1841
1869
|
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
1870
|
}
|
|
1843
1871
|
}
|
|
1844
|
-
class
|
|
1872
|
+
class Xr {
|
|
1845
1873
|
/**
|
|
1846
1874
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
1847
1875
|
*
|
|
@@ -1871,7 +1899,7 @@ class Yr {
|
|
|
1871
1899
|
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
1900
|
}
|
|
1873
1901
|
}
|
|
1874
|
-
class
|
|
1902
|
+
class Zr {
|
|
1875
1903
|
/**
|
|
1876
1904
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
1877
1905
|
*
|
|
@@ -1916,7 +1944,7 @@ class Xr {
|
|
|
1916
1944
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
1917
1945
|
}
|
|
1918
1946
|
}
|
|
1919
|
-
class
|
|
1947
|
+
class et {
|
|
1920
1948
|
/**
|
|
1921
1949
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
1922
1950
|
*
|
|
@@ -1938,7 +1966,7 @@ class Zr {
|
|
|
1938
1966
|
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
1967
|
}
|
|
1940
1968
|
}
|
|
1941
|
-
class
|
|
1969
|
+
class rt {
|
|
1942
1970
|
/**
|
|
1943
1971
|
* Инициализирует экземпляр класса {@link WebSocketConfig}.
|
|
1944
1972
|
*
|
|
@@ -1977,7 +2005,7 @@ class et {
|
|
|
1977
2005
|
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
2006
|
}
|
|
1979
2007
|
}
|
|
1980
|
-
class
|
|
2008
|
+
class qt {
|
|
1981
2009
|
/**
|
|
1982
2010
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
1983
2011
|
*
|
|
@@ -2021,17 +2049,17 @@ class Ot {
|
|
|
2021
2049
|
*/
|
|
2022
2050
|
t(this, "dateFormats");
|
|
2023
2051
|
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
|
|
2052
|
+
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Xr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Yr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Zr({
|
|
2025
2053
|
environment: this.environment,
|
|
2026
2054
|
...r == null ? void 0 : r.sentry
|
|
2027
|
-
}), this.urls = r == null ? void 0 : r.urls, this.version = new
|
|
2055
|
+
}), this.urls = r == null ? void 0 : r.urls, this.version = new et(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new rt(r.websocket) : void 0, this.dateFormats = {
|
|
2028
2056
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
2029
2057
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
2030
2058
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
2031
2059
|
};
|
|
2032
2060
|
}
|
|
2033
2061
|
}
|
|
2034
|
-
class
|
|
2062
|
+
class Ut extends h {
|
|
2035
2063
|
/**
|
|
2036
2064
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
2037
2065
|
*
|
|
@@ -2058,11 +2086,11 @@ class qt extends h {
|
|
|
2058
2086
|
*/
|
|
2059
2087
|
// eslint-disable-next-line class-methods-use-this
|
|
2060
2088
|
getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
|
|
2061
|
-
let c = `${
|
|
2089
|
+
let c = `${D.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
|
|
2062
2090
|
return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
|
|
2063
2091
|
}
|
|
2064
2092
|
}
|
|
2065
|
-
class
|
|
2093
|
+
class Gt extends h {
|
|
2066
2094
|
/**
|
|
2067
2095
|
* Импортирует цены клиента из CSV файла.
|
|
2068
2096
|
*
|
|
@@ -2261,7 +2289,7 @@ class Ut extends h {
|
|
|
2261
2289
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2262
2290
|
}
|
|
2263
2291
|
}
|
|
2264
|
-
class
|
|
2292
|
+
class jt extends h {
|
|
2265
2293
|
/**
|
|
2266
2294
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2267
2295
|
*
|
|
@@ -2296,7 +2324,7 @@ class Gt extends h {
|
|
|
2296
2324
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_attach
|
|
2297
2325
|
*/
|
|
2298
2326
|
attachTemplate(r, e, s) {
|
|
2299
|
-
const i =
|
|
2327
|
+
const i = D.getConfig().dateFormats.api;
|
|
2300
2328
|
return this.post(
|
|
2301
2329
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
2302
2330
|
s && {
|
|
@@ -2330,7 +2358,7 @@ class Gt extends h {
|
|
|
2330
2358
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_change
|
|
2331
2359
|
*/
|
|
2332
2360
|
changeTemplate(r, e, s, i) {
|
|
2333
|
-
const o =
|
|
2361
|
+
const o = D.getConfig().dateFormats.api;
|
|
2334
2362
|
return this.patch(
|
|
2335
2363
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
2336
2364
|
i && {
|
|
@@ -2353,7 +2381,7 @@ class Gt extends h {
|
|
|
2353
2381
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2354
2382
|
}
|
|
2355
2383
|
}
|
|
2356
|
-
class
|
|
2384
|
+
class Ft extends h {
|
|
2357
2385
|
/**
|
|
2358
2386
|
* Возвращает список данных о корневых категориях.
|
|
2359
2387
|
*
|
|
@@ -2413,7 +2441,7 @@ class jt extends h {
|
|
|
2413
2441
|
showHidden: s,
|
|
2414
2442
|
withPriceCoefficients: e
|
|
2415
2443
|
},
|
|
2416
|
-
(i) => ue(i.data, (o) => new
|
|
2444
|
+
(i) => ue(i.data, (o) => new d(o))
|
|
2417
2445
|
);
|
|
2418
2446
|
}
|
|
2419
2447
|
/**
|
|
@@ -2445,7 +2473,7 @@ class jt extends h {
|
|
|
2445
2473
|
});
|
|
2446
2474
|
}
|
|
2447
2475
|
}
|
|
2448
|
-
class
|
|
2476
|
+
class Mt extends h {
|
|
2449
2477
|
/**
|
|
2450
2478
|
* Возвращает данные об указанном продукте.
|
|
2451
2479
|
*
|
|
@@ -2455,7 +2483,7 @@ class Ft extends h {
|
|
|
2455
2483
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
2456
2484
|
*/
|
|
2457
2485
|
getProductData(r, e = !1) {
|
|
2458
|
-
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new
|
|
2486
|
+
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new d(s.data));
|
|
2459
2487
|
}
|
|
2460
2488
|
/**
|
|
2461
2489
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -2463,7 +2491,7 @@ class Ft extends h {
|
|
|
2463
2491
|
* @param productId Идентификатор продукта.
|
|
2464
2492
|
*/
|
|
2465
2493
|
getPublicProductData(r) {
|
|
2466
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
2494
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new d(e.data));
|
|
2467
2495
|
}
|
|
2468
2496
|
/**
|
|
2469
2497
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -2488,14 +2516,14 @@ class Ft extends h {
|
|
|
2488
2516
|
publicSimpleSearch(r, e = 10) {
|
|
2489
2517
|
return new Promise((s, i) => {
|
|
2490
2518
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2491
|
-
s(o.products.map((c) => new
|
|
2519
|
+
s(o.products.map((c) => new d(c)));
|
|
2492
2520
|
}).catch((o) => {
|
|
2493
2521
|
i(o);
|
|
2494
2522
|
});
|
|
2495
2523
|
});
|
|
2496
2524
|
}
|
|
2497
2525
|
}
|
|
2498
|
-
class
|
|
2526
|
+
class Ht extends h {
|
|
2499
2527
|
/**
|
|
2500
2528
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2501
2529
|
*
|
|
@@ -2557,7 +2585,7 @@ class Mt extends h {
|
|
|
2557
2585
|
);
|
|
2558
2586
|
}
|
|
2559
2587
|
}
|
|
2560
|
-
class
|
|
2588
|
+
class Bt extends h {
|
|
2561
2589
|
/**
|
|
2562
2590
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2563
2591
|
*
|
|
@@ -2610,7 +2638,7 @@ class Be {
|
|
|
2610
2638
|
field: this.field,
|
|
2611
2639
|
op: this.op
|
|
2612
2640
|
};
|
|
2613
|
-
return r.value = Ie(this.value) ? q(this.value,
|
|
2641
|
+
return r.value = Ie(this.value) ? q(this.value, D.getConfig().dateFormats.api) : this.value, r;
|
|
2614
2642
|
}
|
|
2615
2643
|
}
|
|
2616
2644
|
class le {
|
|
@@ -2648,7 +2676,7 @@ class le {
|
|
|
2648
2676
|
};
|
|
2649
2677
|
}
|
|
2650
2678
|
}
|
|
2651
|
-
class
|
|
2679
|
+
class De extends h {
|
|
2652
2680
|
/**
|
|
2653
2681
|
* Получает пагинированный список данных.
|
|
2654
2682
|
*
|
|
@@ -2668,7 +2696,7 @@ class ae extends h {
|
|
|
2668
2696
|
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
2697
|
}
|
|
2670
2698
|
}
|
|
2671
|
-
class
|
|
2699
|
+
class zt extends De {
|
|
2672
2700
|
/**
|
|
2673
2701
|
* Возвращает список шаблонов прайс-листа.
|
|
2674
2702
|
*
|
|
@@ -2872,7 +2900,7 @@ class Bt extends ae {
|
|
|
2872
2900
|
);
|
|
2873
2901
|
}
|
|
2874
2902
|
}
|
|
2875
|
-
class
|
|
2903
|
+
class Wt extends h {
|
|
2876
2904
|
/**
|
|
2877
2905
|
* Возвращает список ролей ценообразования.
|
|
2878
2906
|
*
|
|
@@ -2952,7 +2980,7 @@ class zt extends h {
|
|
|
2952
2980
|
);
|
|
2953
2981
|
}
|
|
2954
2982
|
}
|
|
2955
|
-
class
|
|
2983
|
+
class Et extends De {
|
|
2956
2984
|
/**
|
|
2957
2985
|
* Возвращает пагинированный список свойств.
|
|
2958
2986
|
*
|
|
@@ -3354,14 +3382,14 @@ function We(n) {
|
|
|
3354
3382
|
}
|
|
3355
3383
|
}), r;
|
|
3356
3384
|
}
|
|
3357
|
-
var
|
|
3358
|
-
class
|
|
3385
|
+
var tt = /* @__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))(tt || {}), L = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(L || {});
|
|
3386
|
+
class st extends P {
|
|
3359
3387
|
}
|
|
3360
3388
|
class lr extends P {
|
|
3361
3389
|
}
|
|
3362
|
-
class
|
|
3390
|
+
class Vt extends P {
|
|
3363
3391
|
}
|
|
3364
|
-
class
|
|
3392
|
+
class it extends P {
|
|
3365
3393
|
}
|
|
3366
3394
|
class ye extends T {
|
|
3367
3395
|
/**
|
|
@@ -3390,21 +3418,21 @@ class j extends P {
|
|
|
3390
3418
|
return new j({
|
|
3391
3419
|
id: 1,
|
|
3392
3420
|
guid: "",
|
|
3393
|
-
slug:
|
|
3421
|
+
slug: L.Person,
|
|
3394
3422
|
name: ""
|
|
3395
3423
|
});
|
|
3396
3424
|
}
|
|
3397
3425
|
}
|
|
3398
|
-
class it extends P {
|
|
3399
|
-
}
|
|
3400
3426
|
class nt extends P {
|
|
3401
3427
|
}
|
|
3402
|
-
class X extends P {
|
|
3403
|
-
}
|
|
3404
3428
|
class ot extends P {
|
|
3405
3429
|
}
|
|
3430
|
+
class X extends P {
|
|
3431
|
+
}
|
|
3406
3432
|
class ct extends P {
|
|
3407
3433
|
}
|
|
3434
|
+
class lt extends P {
|
|
3435
|
+
}
|
|
3408
3436
|
class pr extends P {
|
|
3409
3437
|
}
|
|
3410
3438
|
class ur extends P {
|
|
@@ -3440,7 +3468,7 @@ class ke extends M {
|
|
|
3440
3468
|
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ye(e.currency));
|
|
3441
3469
|
}
|
|
3442
3470
|
}
|
|
3443
|
-
class
|
|
3471
|
+
class de extends T {
|
|
3444
3472
|
/**
|
|
3445
3473
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3446
3474
|
*
|
|
@@ -3459,7 +3487,7 @@ class Le extends T {
|
|
|
3459
3487
|
this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
|
|
3460
3488
|
}
|
|
3461
3489
|
}
|
|
3462
|
-
class F extends
|
|
3490
|
+
class F extends de {
|
|
3463
3491
|
/**
|
|
3464
3492
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3465
3493
|
*
|
|
@@ -3567,7 +3595,7 @@ class hr extends T {
|
|
|
3567
3595
|
}
|
|
3568
3596
|
}
|
|
3569
3597
|
}
|
|
3570
|
-
class
|
|
3598
|
+
class pt extends hr {
|
|
3571
3599
|
/**
|
|
3572
3600
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3573
3601
|
*
|
|
@@ -3635,7 +3663,7 @@ class mr extends gr {
|
|
|
3635
3663
|
e && (this.kpp = e.kpp ?? "");
|
|
3636
3664
|
}
|
|
3637
3665
|
}
|
|
3638
|
-
class
|
|
3666
|
+
class ut extends mr {
|
|
3639
3667
|
/**
|
|
3640
3668
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3641
3669
|
*
|
|
@@ -3666,14 +3694,14 @@ class we {
|
|
|
3666
3694
|
*/
|
|
3667
3695
|
static createInstance(r) {
|
|
3668
3696
|
switch (r.opf.slug) {
|
|
3669
|
-
case
|
|
3697
|
+
case L.Ic:
|
|
3670
3698
|
return new gr(r);
|
|
3671
|
-
case
|
|
3699
|
+
case L.UlR:
|
|
3672
3700
|
return new mr(r);
|
|
3673
|
-
case
|
|
3674
|
-
return new
|
|
3701
|
+
case L.UlNr:
|
|
3702
|
+
return new ut(r);
|
|
3675
3703
|
default:
|
|
3676
|
-
return new
|
|
3704
|
+
return new pt(r);
|
|
3677
3705
|
}
|
|
3678
3706
|
}
|
|
3679
3707
|
}
|
|
@@ -3692,7 +3720,7 @@ class be extends M {
|
|
|
3692
3720
|
this.isPrimary = e.isPrimary;
|
|
3693
3721
|
}
|
|
3694
3722
|
}
|
|
3695
|
-
class
|
|
3723
|
+
class ht extends F {
|
|
3696
3724
|
/**
|
|
3697
3725
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3698
3726
|
*
|
|
@@ -3817,7 +3845,7 @@ class Ee extends ge {
|
|
|
3817
3845
|
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) ?? {};
|
|
3818
3846
|
}
|
|
3819
3847
|
}
|
|
3820
|
-
class
|
|
3848
|
+
class Jt {
|
|
3821
3849
|
/**
|
|
3822
3850
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
3823
3851
|
*
|
|
@@ -3913,7 +3941,7 @@ class Vt {
|
|
|
3913
3941
|
*/
|
|
3914
3942
|
t(this, "lastOrder");
|
|
3915
3943
|
var e, s, i, o, c, p;
|
|
3916
|
-
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((u) => new je(u)), this.region = new ce(r == null ? void 0 : r.region), this.country = new Y(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new O(r == null ? void 0 : r.createdAt), this.lastLoginDate = new O(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((u) => new Ae(u)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((u) => new x(u)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new j(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new K(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((u) => new X(u)), this.contact = new
|
|
3944
|
+
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((u) => new je(u)), this.region = new ce(r == null ? void 0 : r.region), this.country = new Y(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new O(r == null ? void 0 : r.createdAt), this.lastLoginDate = new O(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((u) => new Ae(u)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((u) => new x(u)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new j(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new K(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((u) => new X(u)), this.contact = new de(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
3917
3945
|
createdAt: new O((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
|
|
3918
3946
|
creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
|
|
3919
3947
|
isApproved: (p = r == null ? void 0 : r.lastOrder) == null ? void 0 : p.isApproved
|
|
@@ -3972,7 +4000,7 @@ class Vt {
|
|
|
3972
4000
|
this.partnerGroups = [];
|
|
3973
4001
|
break;
|
|
3974
4002
|
case "contact":
|
|
3975
|
-
this.contact = new
|
|
4003
|
+
this.contact = new de();
|
|
3976
4004
|
break;
|
|
3977
4005
|
}
|
|
3978
4006
|
return this;
|
|
@@ -4014,7 +4042,7 @@ class fr extends M {
|
|
|
4014
4042
|
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;
|
|
4015
4043
|
}
|
|
4016
4044
|
}
|
|
4017
|
-
class
|
|
4045
|
+
class gt extends T {
|
|
4018
4046
|
/**
|
|
4019
4047
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4020
4048
|
*
|
|
@@ -4050,7 +4078,7 @@ class ht extends T {
|
|
|
4050
4078
|
(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)));
|
|
4051
4079
|
}
|
|
4052
4080
|
}
|
|
4053
|
-
class
|
|
4081
|
+
class mt {
|
|
4054
4082
|
/**
|
|
4055
4083
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
4056
4084
|
*
|
|
@@ -4068,7 +4096,7 @@ class gt {
|
|
|
4068
4096
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4069
4097
|
}
|
|
4070
4098
|
}
|
|
4071
|
-
class
|
|
4099
|
+
class Kt extends mt {
|
|
4072
4100
|
/**
|
|
4073
4101
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4074
4102
|
*
|
|
@@ -4099,7 +4127,7 @@ class Jt extends gt {
|
|
|
4099
4127
|
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;
|
|
4100
4128
|
}
|
|
4101
4129
|
}
|
|
4102
|
-
class
|
|
4130
|
+
class Qt {
|
|
4103
4131
|
/**
|
|
4104
4132
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
4105
4133
|
*
|
|
@@ -4117,7 +4145,7 @@ class Kt {
|
|
|
4117
4145
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4118
4146
|
}
|
|
4119
4147
|
}
|
|
4120
|
-
class
|
|
4148
|
+
class Yt extends De {
|
|
4121
4149
|
/**
|
|
4122
4150
|
* Возвращает данные об указанном клиенте.
|
|
4123
4151
|
*
|
|
@@ -4167,7 +4195,7 @@ class Qt extends ae {
|
|
|
4167
4195
|
const s = r.map((i) => i.id);
|
|
4168
4196
|
return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
|
|
4169
4197
|
let o = [];
|
|
4170
|
-
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new
|
|
4198
|
+
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new gt(c))), o;
|
|
4171
4199
|
});
|
|
4172
4200
|
}
|
|
4173
4201
|
/**
|
|
@@ -4179,7 +4207,7 @@ class Qt extends ae {
|
|
|
4179
4207
|
getAllClientContacts(r) {
|
|
4180
4208
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
4181
4209
|
let s = [];
|
|
4182
|
-
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new
|
|
4210
|
+
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new ht(i))), s;
|
|
4183
4211
|
});
|
|
4184
4212
|
}
|
|
4185
4213
|
/**
|
|
@@ -4323,7 +4351,7 @@ class Qt extends ae {
|
|
|
4323
4351
|
let i;
|
|
4324
4352
|
const o = e, c = e, p = e;
|
|
4325
4353
|
switch (e.opf.slug) {
|
|
4326
|
-
case
|
|
4354
|
+
case L.Ic:
|
|
4327
4355
|
i = {
|
|
4328
4356
|
opf: o.opf.slug,
|
|
4329
4357
|
name: o.name,
|
|
@@ -4341,7 +4369,7 @@ class Qt extends ae {
|
|
|
4341
4369
|
actual_address: o.actualAddress
|
|
4342
4370
|
};
|
|
4343
4371
|
break;
|
|
4344
|
-
case
|
|
4372
|
+
case L.UlR:
|
|
4345
4373
|
i = {
|
|
4346
4374
|
opf: c.opf.slug,
|
|
4347
4375
|
name: c.name,
|
|
@@ -4360,7 +4388,7 @@ class Qt extends ae {
|
|
|
4360
4388
|
actual_address: c.actualAddress
|
|
4361
4389
|
};
|
|
4362
4390
|
break;
|
|
4363
|
-
case
|
|
4391
|
+
case L.UlNr:
|
|
4364
4392
|
i = {
|
|
4365
4393
|
opf: p.opf.slug,
|
|
4366
4394
|
name: p.name,
|
|
@@ -4412,7 +4440,7 @@ class Qt extends ae {
|
|
|
4412
4440
|
let i;
|
|
4413
4441
|
const o = e, c = e, p = e;
|
|
4414
4442
|
switch (e.opf.slug) {
|
|
4415
|
-
case
|
|
4443
|
+
case L.Ic:
|
|
4416
4444
|
i = {
|
|
4417
4445
|
opf: o.opf.slug,
|
|
4418
4446
|
name: o.name,
|
|
@@ -4430,7 +4458,7 @@ class Qt extends ae {
|
|
|
4430
4458
|
actual_address: o.actualAddress
|
|
4431
4459
|
};
|
|
4432
4460
|
break;
|
|
4433
|
-
case
|
|
4461
|
+
case L.UlR:
|
|
4434
4462
|
i = {
|
|
4435
4463
|
opf: c.opf.slug,
|
|
4436
4464
|
name: c.name,
|
|
@@ -4449,7 +4477,7 @@ class Qt extends ae {
|
|
|
4449
4477
|
actual_address: c.actualAddress
|
|
4450
4478
|
};
|
|
4451
4479
|
break;
|
|
4452
|
-
case
|
|
4480
|
+
case L.UlNr:
|
|
4453
4481
|
i = {
|
|
4454
4482
|
opf: p.opf.slug,
|
|
4455
4483
|
name: p.name,
|
|
@@ -4854,7 +4882,7 @@ const E = class E extends h {
|
|
|
4854
4882
|
* Время кэширования данных ответов на запросы (секунд).
|
|
4855
4883
|
*/
|
|
4856
4884
|
t(this, "responseDataCacheTimeout");
|
|
4857
|
-
this.responseDataCacheTimeout =
|
|
4885
|
+
this.responseDataCacheTimeout = D.getConfig().http.responseDataCacheTimeout;
|
|
4858
4886
|
}
|
|
4859
4887
|
/**
|
|
4860
4888
|
* Возвращает кэшированные данные.
|
|
@@ -4903,7 +4931,7 @@ const E = class E extends h {
|
|
|
4903
4931
|
*/
|
|
4904
4932
|
t(E, "responseDataCache", /* @__PURE__ */ new Map());
|
|
4905
4933
|
let pe = E;
|
|
4906
|
-
class
|
|
4934
|
+
class Xt extends h {
|
|
4907
4935
|
/**
|
|
4908
4936
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
4909
4937
|
*
|
|
@@ -4917,7 +4945,7 @@ class Yt extends h {
|
|
|
4917
4945
|
});
|
|
4918
4946
|
}
|
|
4919
4947
|
}
|
|
4920
|
-
class
|
|
4948
|
+
class Zt extends h {
|
|
4921
4949
|
/**
|
|
4922
4950
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
4923
4951
|
*
|
|
@@ -4945,7 +4973,7 @@ class Xt extends h {
|
|
|
4945
4973
|
const i = this.get(
|
|
4946
4974
|
`internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.configurator}/product`,
|
|
4947
4975
|
{ params: e },
|
|
4948
|
-
(c) => new
|
|
4976
|
+
(c) => new d(c.data)
|
|
4949
4977
|
);
|
|
4950
4978
|
return i.catch((c) => {
|
|
4951
4979
|
this.errorResponseHandler(c, s);
|
|
@@ -4988,18 +5016,18 @@ class Xt extends h {
|
|
|
4988
5016
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.configurator}/template/${e}`);
|
|
4989
5017
|
}
|
|
4990
5018
|
}
|
|
4991
|
-
class
|
|
5019
|
+
class es {
|
|
4992
5020
|
/**
|
|
4993
5021
|
* Возвращает диапазон дат по умолчанию.
|
|
4994
5022
|
*/
|
|
4995
5023
|
static defaultDateRanges() {
|
|
4996
|
-
const r =
|
|
5024
|
+
const r = Lr(/* @__PURE__ */ new Date(), 1);
|
|
4997
5025
|
return {
|
|
4998
5026
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
4999
5027
|
nextWorkingDay: { label: "Следующий рабочий день", from: Ur(r), to: qr(r) },
|
|
5000
5028
|
today: { label: "Сегодня", from: er(), to: Or() },
|
|
5001
5029
|
yesterday: { label: "Вчера", from: Nr(), to: xr() },
|
|
5002
|
-
tomorrow: { label: "Завтра", from:
|
|
5030
|
+
tomorrow: { label: "Завтра", from: dr(), to: kr() }
|
|
5003
5031
|
};
|
|
5004
5032
|
}
|
|
5005
5033
|
}
|
|
@@ -5044,7 +5072,7 @@ const V = class V {
|
|
|
5044
5072
|
*/
|
|
5045
5073
|
t(V, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5046
5074
|
let Ve = V;
|
|
5047
|
-
class
|
|
5075
|
+
class rs {
|
|
5048
5076
|
/**
|
|
5049
5077
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5050
5078
|
*/
|
|
@@ -5060,7 +5088,7 @@ class es {
|
|
|
5060
5088
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5061
5089
|
}
|
|
5062
5090
|
}
|
|
5063
|
-
class
|
|
5091
|
+
class ft extends pe {
|
|
5064
5092
|
/**
|
|
5065
5093
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5066
5094
|
*/
|
|
@@ -5133,7 +5161,7 @@ class yr extends fr {
|
|
|
5133
5161
|
}, 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;
|
|
5134
5162
|
}
|
|
5135
5163
|
}
|
|
5136
|
-
class
|
|
5164
|
+
class yt extends M {
|
|
5137
5165
|
/**
|
|
5138
5166
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5139
5167
|
*
|
|
@@ -5216,7 +5244,7 @@ class ft extends M {
|
|
|
5216
5244
|
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;
|
|
5217
5245
|
}
|
|
5218
5246
|
}
|
|
5219
|
-
class
|
|
5247
|
+
class wt extends yr {
|
|
5220
5248
|
/**
|
|
5221
5249
|
* Инициализирует экземпляр класса {@link Order}.
|
|
5222
5250
|
*
|
|
@@ -5256,10 +5284,10 @@ class yt extends yr {
|
|
|
5256
5284
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
5257
5285
|
*/
|
|
5258
5286
|
t(this, "isAllowProcessingWithoutPayment");
|
|
5259
|
-
this.products = (e.products ?? []).map((s) => new
|
|
5287
|
+
this.products = (e.products ?? []).map((s) => new yt(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;
|
|
5260
5288
|
}
|
|
5261
5289
|
}
|
|
5262
|
-
class
|
|
5290
|
+
class ts extends De {
|
|
5263
5291
|
/**
|
|
5264
5292
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5265
5293
|
*
|
|
@@ -5290,7 +5318,7 @@ class rs extends ae {
|
|
|
5290
5318
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
5291
5319
|
*/
|
|
5292
5320
|
getOrder(r) {
|
|
5293
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
5321
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new wt(e.data));
|
|
5294
5322
|
}
|
|
5295
5323
|
}
|
|
5296
5324
|
class _e {
|
|
@@ -5320,7 +5348,7 @@ class _e {
|
|
|
5320
5348
|
* Источник клиентской цены.
|
|
5321
5349
|
*/
|
|
5322
5350
|
t(this, "source");
|
|
5323
|
-
this.client = new ge(r == null ? void 0 : r.client), this.product = new
|
|
5351
|
+
this.client = new ge(r == null ? void 0 : r.client), this.product = new d(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;
|
|
5324
5352
|
}
|
|
5325
5353
|
}
|
|
5326
5354
|
const Se = (n) => {
|
|
@@ -5340,7 +5368,7 @@ const Se = (n) => {
|
|
|
5340
5368
|
const r = {};
|
|
5341
5369
|
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;
|
|
5342
5370
|
};
|
|
5343
|
-
class
|
|
5371
|
+
class ss extends h {
|
|
5344
5372
|
/**
|
|
5345
5373
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
5346
5374
|
*
|
|
@@ -5401,7 +5429,7 @@ class ts extends h {
|
|
|
5401
5429
|
);
|
|
5402
5430
|
}
|
|
5403
5431
|
}
|
|
5404
|
-
class
|
|
5432
|
+
class Ct {
|
|
5405
5433
|
/**
|
|
5406
5434
|
* Инициализирует экземпляр класса {@link PriceHistoryItem}.
|
|
5407
5435
|
*
|
|
@@ -5451,7 +5479,7 @@ class wt {
|
|
|
5451
5479
|
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;
|
|
5452
5480
|
}
|
|
5453
5481
|
}
|
|
5454
|
-
class
|
|
5482
|
+
class vt extends ne {
|
|
5455
5483
|
/**
|
|
5456
5484
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
5457
5485
|
*
|
|
@@ -5463,15 +5491,15 @@ class Ct extends ne {
|
|
|
5463
5491
|
* @inheritDoc
|
|
5464
5492
|
*/
|
|
5465
5493
|
t(this, "history");
|
|
5466
|
-
this.history = ue(e.history, (s) => new
|
|
5494
|
+
this.history = ue(e.history, (s) => new Ct(s));
|
|
5467
5495
|
}
|
|
5468
5496
|
}
|
|
5469
|
-
class
|
|
5497
|
+
class is extends h {
|
|
5470
5498
|
/**
|
|
5471
5499
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
5472
5500
|
*/
|
|
5473
5501
|
constructor() {
|
|
5474
|
-
super(), this.baseUrl = `${
|
|
5502
|
+
super(), this.baseUrl = `${D.getConfig().http.priceHistoryApiUrl ?? ""}/api`;
|
|
5475
5503
|
}
|
|
5476
5504
|
/**
|
|
5477
5505
|
* Возвращает данные об истории изменения цен.
|
|
@@ -5482,7 +5510,7 @@ class ss extends h {
|
|
|
5482
5510
|
*/
|
|
5483
5511
|
getProductPriceHistory(r) {
|
|
5484
5512
|
var i, o, c, p;
|
|
5485
|
-
const e =
|
|
5513
|
+
const e = D.getConfig().dateFormats.api, s = Xe(
|
|
5486
5514
|
xe(r, {
|
|
5487
5515
|
costDate: {
|
|
5488
5516
|
from: Ie((i = r.costDate) == null ? void 0 : i.from) ? q(r.costDate.from, e) : (o = r.costDate) == null ? void 0 : o.from,
|
|
@@ -5491,7 +5519,7 @@ class ss extends h {
|
|
|
5491
5519
|
}),
|
|
5492
5520
|
(u) => $(u) || (J(u) || Ze(u)) && ve(u)
|
|
5493
5521
|
);
|
|
5494
|
-
return this.get("/internal/history", s, (u) => ue(u.data, (m) => new
|
|
5522
|
+
return this.get("/internal/history", s, (u) => ue(u.data, (m) => new vt(m)));
|
|
5495
5523
|
}
|
|
5496
5524
|
}
|
|
5497
5525
|
class Ke {
|
|
@@ -5512,12 +5540,12 @@ class Ke {
|
|
|
5512
5540
|
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)));
|
|
5513
5541
|
}
|
|
5514
5542
|
}
|
|
5515
|
-
class
|
|
5543
|
+
class ns extends h {
|
|
5516
5544
|
/**
|
|
5517
5545
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
5518
5546
|
*/
|
|
5519
5547
|
constructor() {
|
|
5520
|
-
super(), this.baseUrl = `${
|
|
5548
|
+
super(), this.baseUrl = `${D.getConfig().http.recommendationsApiUrl ?? ""}/api`;
|
|
5521
5549
|
}
|
|
5522
5550
|
/**
|
|
5523
5551
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
@@ -5564,7 +5592,7 @@ class is extends h {
|
|
|
5564
5592
|
});
|
|
5565
5593
|
}
|
|
5566
5594
|
}
|
|
5567
|
-
class
|
|
5595
|
+
class a extends pe {
|
|
5568
5596
|
/**
|
|
5569
5597
|
* Возвращает {@link Promise} для получения данных указанного справочника.
|
|
5570
5598
|
*
|
|
@@ -5573,7 +5601,7 @@ class D extends pe {
|
|
|
5573
5601
|
* и использовать в случае аналогичных запросов.
|
|
5574
5602
|
*/
|
|
5575
5603
|
getReference(r, e = !1) {
|
|
5576
|
-
return this.getTypedDataArrayRequester(
|
|
5604
|
+
return this.getTypedDataArrayRequester(st, `/internal/references/${r}`, e);
|
|
5577
5605
|
}
|
|
5578
5606
|
/**
|
|
5579
5607
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
@@ -5586,7 +5614,7 @@ class D extends pe {
|
|
|
5586
5614
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
5587
5615
|
*/
|
|
5588
5616
|
getContactPositions() {
|
|
5589
|
-
return this.getTypedDataArrayRequester(
|
|
5617
|
+
return this.getTypedDataArrayRequester(it, "/internal/references/contact-position", !0);
|
|
5590
5618
|
}
|
|
5591
5619
|
/**
|
|
5592
5620
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
@@ -5611,19 +5639,19 @@ class D extends pe {
|
|
|
5611
5639
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
5612
5640
|
*/
|
|
5613
5641
|
getOrderPaymentStatuses() {
|
|
5614
|
-
return this.getTypedDataArrayRequester(
|
|
5642
|
+
return this.getTypedDataArrayRequester(nt, "/public/references/order-payment-status", !0);
|
|
5615
5643
|
}
|
|
5616
5644
|
/**
|
|
5617
5645
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
5618
5646
|
*/
|
|
5619
5647
|
getOrderStatuses() {
|
|
5620
|
-
return this.getTypedDataArrayRequester(
|
|
5648
|
+
return this.getTypedDataArrayRequester(ot, "/public/references/order-status", !0);
|
|
5621
5649
|
}
|
|
5622
5650
|
/**
|
|
5623
5651
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
5624
5652
|
*/
|
|
5625
5653
|
getPaymentTypes() {
|
|
5626
|
-
return this.getTypedDataArrayRequester(
|
|
5654
|
+
return this.getTypedDataArrayRequester(ct, "/public/references/payment-type", !0);
|
|
5627
5655
|
}
|
|
5628
5656
|
/**
|
|
5629
5657
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
@@ -5695,7 +5723,7 @@ class D extends pe {
|
|
|
5695
5723
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
5696
5724
|
*/
|
|
5697
5725
|
getProductFileType() {
|
|
5698
|
-
return this.getTypedDataArrayRequester(
|
|
5726
|
+
return this.getTypedDataArrayRequester(lt, "/public/references/product-file-type", !0);
|
|
5699
5727
|
}
|
|
5700
5728
|
}
|
|
5701
5729
|
const A = Z("__references_private", () => {
|
|
@@ -5774,90 +5802,90 @@ const A = Z("__references_private", () => {
|
|
|
5774
5802
|
*/
|
|
5775
5803
|
priceCoefficientsReference: l
|
|
5776
5804
|
};
|
|
5777
|
-
}),
|
|
5805
|
+
}), os = Z("references", () => {
|
|
5778
5806
|
const n = R(() => {
|
|
5779
5807
|
const l = A();
|
|
5780
|
-
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(
|
|
5808
|
+
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(a).getChannelPrimaryInterest().then((g) => {
|
|
5781
5809
|
l.channelPrimaryInterestReference = g;
|
|
5782
5810
|
}).catch(w)), l.channelPrimaryInterestReference;
|
|
5783
5811
|
}), r = R(() => {
|
|
5784
5812
|
const l = A();
|
|
5785
|
-
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(
|
|
5813
|
+
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(a).getContactPositions().then((g) => {
|
|
5786
5814
|
l.contactPositionsReference = g;
|
|
5787
5815
|
}).catch(w)), l.contactPositionsReference;
|
|
5788
5816
|
}), e = R(() => {
|
|
5789
5817
|
const l = A();
|
|
5790
|
-
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(
|
|
5818
|
+
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(a).getCurrency().then((g) => {
|
|
5791
5819
|
l.currencyReference = g;
|
|
5792
5820
|
}).catch(w)), l.currencyReference;
|
|
5793
5821
|
}), s = R(() => {
|
|
5794
5822
|
const l = A();
|
|
5795
|
-
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(
|
|
5823
|
+
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(a).getOpf().then((g) => {
|
|
5796
5824
|
l.opfReference = g;
|
|
5797
5825
|
}).catch(w)), l.opfReference;
|
|
5798
5826
|
}), i = R(() => {
|
|
5799
5827
|
const l = A();
|
|
5800
|
-
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(
|
|
5828
|
+
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(a).getOrderPaymentStatuses().then((g) => {
|
|
5801
5829
|
l.orderPaymentStatusReference = g;
|
|
5802
5830
|
}).catch(w)), l.orderPaymentStatusReference;
|
|
5803
5831
|
}), o = R(() => {
|
|
5804
5832
|
const l = A();
|
|
5805
|
-
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(
|
|
5833
|
+
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(a).getOrderStatuses().then((g) => {
|
|
5806
5834
|
l.orderStatusReference = g;
|
|
5807
5835
|
}).catch(w)), l.orderStatusReference;
|
|
5808
5836
|
}), c = R(() => {
|
|
5809
5837
|
const l = A();
|
|
5810
|
-
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(
|
|
5838
|
+
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(a).getPaymentTypes().then((g) => {
|
|
5811
5839
|
l.paymentTypeReference = g;
|
|
5812
5840
|
}).catch(w)), l.paymentTypeReference;
|
|
5813
5841
|
}), p = R(() => {
|
|
5814
5842
|
const l = A();
|
|
5815
|
-
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(
|
|
5843
|
+
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(a).getPartnerGroup().then((g) => {
|
|
5816
5844
|
l.partnerGroupReference = g;
|
|
5817
5845
|
}).catch(w)), l.partnerGroupReference;
|
|
5818
5846
|
}), u = R(() => {
|
|
5819
5847
|
const l = A();
|
|
5820
|
-
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(
|
|
5848
|
+
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(a).getProductFileType().then((g) => {
|
|
5821
5849
|
l.productFileTypeReference = g;
|
|
5822
5850
|
}).catch(w)), l.productFileTypeReference;
|
|
5823
5851
|
}), m = R(() => {
|
|
5824
5852
|
const l = A();
|
|
5825
|
-
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(
|
|
5853
|
+
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(a).getResourceTypes().then((g) => {
|
|
5826
5854
|
l.resourceTypesReference = g;
|
|
5827
5855
|
}).catch(w)), l.resourceTypesReference;
|
|
5828
5856
|
}), v = R(() => {
|
|
5829
5857
|
const l = A();
|
|
5830
|
-
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(
|
|
5858
|
+
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(a).getSalesDirections().then((g) => {
|
|
5831
5859
|
l.salesDirectionsReference = g;
|
|
5832
5860
|
}).catch(w)), l.salesDirectionsReference;
|
|
5833
5861
|
}), S = R(() => {
|
|
5834
5862
|
const l = A();
|
|
5835
|
-
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(
|
|
5863
|
+
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(a).getSourcePrimaryInterest().then((g) => {
|
|
5836
5864
|
l.sourcePrimaryInterestReference = g;
|
|
5837
5865
|
}).catch(w)), l.sourcePrimaryInterestReference;
|
|
5838
5866
|
}), I = R(() => {
|
|
5839
5867
|
const l = A();
|
|
5840
|
-
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(
|
|
5868
|
+
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(a).getDeliveryTypes().then((g) => {
|
|
5841
5869
|
l.deliveryTypeReference = g;
|
|
5842
5870
|
}).catch(w)), l.deliveryTypeReference;
|
|
5843
5871
|
}), b = R(() => {
|
|
5844
5872
|
const l = A();
|
|
5845
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(
|
|
5873
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(ft).getManagers().then((g) => {
|
|
5846
5874
|
l.managersList = g;
|
|
5847
5875
|
}).catch(w)), l.managersList;
|
|
5848
5876
|
}), _ = R(() => {
|
|
5849
5877
|
const l = A();
|
|
5850
|
-
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(
|
|
5878
|
+
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(a).getWarehouses().then((g) => {
|
|
5851
5879
|
l.warehousesReference = g;
|
|
5852
5880
|
}).catch(w)), l.warehousesReference;
|
|
5853
5881
|
}), N = R(() => {
|
|
5854
5882
|
const l = A();
|
|
5855
|
-
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(
|
|
5883
|
+
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(a).getPropertyTypes().then((g) => {
|
|
5856
5884
|
l.propertyTypesReference = g;
|
|
5857
5885
|
}).catch(w)), l.propertyTypesReference;
|
|
5858
5886
|
}), U = R(() => {
|
|
5859
5887
|
const l = A();
|
|
5860
|
-
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(
|
|
5888
|
+
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(a).getPriceCoefficients().then((g) => {
|
|
5861
5889
|
l.priceCoefficientsReference = g;
|
|
5862
5890
|
}).catch(w)), l.priceCoefficientsReference;
|
|
5863
5891
|
});
|
|
@@ -5932,7 +5960,7 @@ const A = Z("__references_private", () => {
|
|
|
5932
5960
|
priceCoefficientsReference: U
|
|
5933
5961
|
};
|
|
5934
5962
|
});
|
|
5935
|
-
class
|
|
5963
|
+
class Pt {
|
|
5936
5964
|
/**
|
|
5937
5965
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
5938
5966
|
*
|
|
@@ -5986,10 +6014,10 @@ class Qe {
|
|
|
5986
6014
|
*/
|
|
5987
6015
|
t(this, "meta");
|
|
5988
6016
|
var e;
|
|
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
|
|
6017
|
+
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 Pt(s))) ?? [];
|
|
5990
6018
|
}
|
|
5991
6019
|
}
|
|
5992
|
-
class
|
|
6020
|
+
class cs extends h {
|
|
5993
6021
|
/**
|
|
5994
6022
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
5995
6023
|
*
|
|
@@ -6020,7 +6048,7 @@ class os extends h {
|
|
|
6020
6048
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
6021
6049
|
}
|
|
6022
6050
|
}
|
|
6023
|
-
class
|
|
6051
|
+
class ls extends h {
|
|
6024
6052
|
/**
|
|
6025
6053
|
* Возвращает подсказки по адресам.
|
|
6026
6054
|
*
|
|
@@ -6067,8 +6095,8 @@ class cs extends h {
|
|
|
6067
6095
|
});
|
|
6068
6096
|
}
|
|
6069
6097
|
}
|
|
6070
|
-
var
|
|
6071
|
-
class
|
|
6098
|
+
var Rt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Rt || {});
|
|
6099
|
+
class At extends or {
|
|
6072
6100
|
/**
|
|
6073
6101
|
* Инициализирует экземпляр класса {@link User}.
|
|
6074
6102
|
*
|
|
@@ -6091,12 +6119,12 @@ class Rt extends or {
|
|
|
6091
6119
|
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;
|
|
6092
6120
|
}
|
|
6093
6121
|
}
|
|
6094
|
-
class
|
|
6122
|
+
class ps extends h {
|
|
6095
6123
|
/**
|
|
6096
6124
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
6097
6125
|
*/
|
|
6098
6126
|
constructor() {
|
|
6099
|
-
super(), this.baseUrl = `${
|
|
6127
|
+
super(), this.baseUrl = `${D.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
|
|
6100
6128
|
}
|
|
6101
6129
|
/**
|
|
6102
6130
|
* Функция для получения обновленных токенов доступа.
|
|
@@ -6107,13 +6135,13 @@ class ls extends h {
|
|
|
6107
6135
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
6108
6136
|
}
|
|
6109
6137
|
}
|
|
6110
|
-
class
|
|
6138
|
+
class Dt extends h {
|
|
6111
6139
|
/**
|
|
6112
6140
|
* Возвращает данные о текущем пользователе.
|
|
6113
6141
|
*/
|
|
6114
6142
|
// eslint-disable-next-line class-methods-use-this
|
|
6115
6143
|
getCurrentUser() {
|
|
6116
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
6144
|
+
return this.get("/internal/users/info", {}, (r) => new At(r.data));
|
|
6117
6145
|
}
|
|
6118
6146
|
}
|
|
6119
6147
|
const at = Z("__user_state_private", () => {
|
|
@@ -6128,20 +6156,20 @@ const at = Z("__user_state_private", () => {
|
|
|
6128
6156
|
*/
|
|
6129
6157
|
currentUser: r
|
|
6130
6158
|
};
|
|
6131
|
-
}),
|
|
6159
|
+
}), us = Z("user_state", () => ({
|
|
6132
6160
|
/**
|
|
6133
6161
|
* Данные о текущем пользователе.
|
|
6134
6162
|
*/
|
|
6135
6163
|
currentUser: R(() => {
|
|
6136
6164
|
const r = at();
|
|
6137
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(
|
|
6165
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Dt).getCurrentUser().then((e) => {
|
|
6138
6166
|
r.currentUser = e;
|
|
6139
6167
|
}).catch(w).finally(() => {
|
|
6140
6168
|
r.dataLoaderList.currentUser = !1;
|
|
6141
6169
|
})), r.currentUser;
|
|
6142
6170
|
})
|
|
6143
6171
|
}));
|
|
6144
|
-
class
|
|
6172
|
+
class hs {
|
|
6145
6173
|
/**
|
|
6146
6174
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
6147
6175
|
*
|
|
@@ -6165,149 +6193,150 @@ class us {
|
|
|
6165
6193
|
}
|
|
6166
6194
|
}
|
|
6167
6195
|
export {
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6196
|
+
st as AnyReference,
|
|
6197
|
+
qt as AppBaseConfig,
|
|
6198
|
+
D as AppConfigProvider,
|
|
6171
6199
|
ke as BankAccount,
|
|
6172
|
-
|
|
6200
|
+
De as BasePaginationProvider,
|
|
6173
6201
|
zr as CalculationTypeEnum,
|
|
6174
6202
|
me as Cart,
|
|
6175
6203
|
Br as CartItem,
|
|
6176
6204
|
Hr as CartItemBase,
|
|
6177
|
-
|
|
6178
|
-
|
|
6205
|
+
xt as CartProvider,
|
|
6206
|
+
Ut as CatalogProvider,
|
|
6179
6207
|
rr as CatalogableItem,
|
|
6180
6208
|
B as Category,
|
|
6181
6209
|
He as CategoryPricingRule,
|
|
6182
6210
|
lr as ChannelPrimaryInterest,
|
|
6183
|
-
|
|
6211
|
+
Vt as City,
|
|
6184
6212
|
je as CityWithRegionAndCountry,
|
|
6185
6213
|
Ee as Client,
|
|
6186
|
-
|
|
6214
|
+
gt as ClientAdditionalData,
|
|
6187
6215
|
fe as ClientCategory,
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6216
|
+
Yt as ClientDataProvider,
|
|
6217
|
+
Gt as ClientPriceProvider,
|
|
6218
|
+
jt as ClientPriceTemplateProvider,
|
|
6191
6219
|
Q as ClientProduct,
|
|
6192
|
-
|
|
6193
|
-
|
|
6220
|
+
Ht as ClientProductCategoryDataProvider,
|
|
6221
|
+
Bt as ClientProductDataProvider,
|
|
6194
6222
|
ge as ClientShortInfo,
|
|
6195
|
-
|
|
6196
|
-
|
|
6223
|
+
tt as ClientsAdditionalDataRequestTypeEnum,
|
|
6224
|
+
Jt as ClientsListFilters,
|
|
6197
6225
|
ne as CodedIdentity,
|
|
6198
|
-
|
|
6199
|
-
|
|
6226
|
+
Zt as ConfiguratorProvider,
|
|
6227
|
+
de as Contact,
|
|
6200
6228
|
Jr as ContactLinks,
|
|
6201
6229
|
F as ContactPerson,
|
|
6202
|
-
|
|
6203
|
-
|
|
6230
|
+
ht as ContactPersonRelated,
|
|
6231
|
+
it as ContactPosition,
|
|
6204
6232
|
be as ContactRelation,
|
|
6205
6233
|
hr as ContragentBase,
|
|
6206
6234
|
we as ContragentFactory,
|
|
6207
6235
|
gr as ContragentIc,
|
|
6208
|
-
|
|
6209
|
-
|
|
6236
|
+
pt as ContragentPerson,
|
|
6237
|
+
ut as ContragentUlNr,
|
|
6210
6238
|
mr as ContragentUlR,
|
|
6211
6239
|
Ge as CostSourceEnum,
|
|
6212
6240
|
Y as Country,
|
|
6213
6241
|
ye as Currency,
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6242
|
+
ls as DataSuggestionProvider,
|
|
6243
|
+
Kt as DataTablePagination,
|
|
6244
|
+
mt as DataTablePaginationRequestParams,
|
|
6245
|
+
Qt as DataTableSortRequestParams,
|
|
6246
|
+
es as DateTimeProvider,
|
|
6219
6247
|
Er as DeletableNamedIdentity,
|
|
6220
6248
|
Ce as DeliveryAddress,
|
|
6221
6249
|
K as DeliveryType,
|
|
6222
|
-
|
|
6223
|
-
|
|
6250
|
+
dt as DetailedJwtPayload,
|
|
6251
|
+
Yr as DeviceTypeResolutionConfig,
|
|
6224
6252
|
Vr as DiscountShortInfo,
|
|
6225
|
-
|
|
6253
|
+
hs as FieldValidationResultData,
|
|
6226
6254
|
le as FilterGroup,
|
|
6227
6255
|
Be as FilterItem,
|
|
6228
6256
|
Fe as FilterOpEnum,
|
|
6229
6257
|
sr as GeoCoordinates,
|
|
6230
6258
|
Fr as HiddenCatalogableItem,
|
|
6231
6259
|
pe as HttpCachedRequester,
|
|
6232
|
-
|
|
6260
|
+
Xr as HttpParamsConfig,
|
|
6233
6261
|
h as HttpRequester,
|
|
6234
6262
|
M as Identity,
|
|
6235
6263
|
Mr as Image,
|
|
6236
6264
|
ie as JwtPayload,
|
|
6237
6265
|
Ae as Manager,
|
|
6238
6266
|
oe as ManagerCommon,
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6267
|
+
rs as ManagerDataFactory,
|
|
6268
|
+
ft as ManagerDataProvider,
|
|
6269
|
+
Pt as MetaTagItem,
|
|
6242
6270
|
T as NamedIdentity,
|
|
6243
6271
|
j as Opf,
|
|
6244
|
-
|
|
6245
|
-
|
|
6272
|
+
L as OpfEnum,
|
|
6273
|
+
wt as Order,
|
|
6246
6274
|
yr as OrderInfo,
|
|
6247
|
-
|
|
6248
|
-
|
|
6275
|
+
nt as OrderPaymentStatus,
|
|
6276
|
+
yt as OrderProduct,
|
|
6249
6277
|
fr as OrderShortInfo,
|
|
6250
|
-
|
|
6251
|
-
|
|
6278
|
+
ot as OrderStatus,
|
|
6279
|
+
ts as OrdersDataProvider,
|
|
6252
6280
|
X as PartnerGroup,
|
|
6253
|
-
|
|
6254
|
-
|
|
6281
|
+
ct as PaymentType,
|
|
6282
|
+
Nt as PreferencesStorageProvider,
|
|
6255
6283
|
_e as PriceAnalyze,
|
|
6256
|
-
|
|
6284
|
+
ss as PriceAnalyzeProvider,
|
|
6257
6285
|
Pe as PriceCoefficient,
|
|
6258
6286
|
tr as PriceCoefficientEnum,
|
|
6259
|
-
|
|
6260
|
-
|
|
6287
|
+
is as PriceHistoryDataProvider,
|
|
6288
|
+
Ct as PriceHistoryItem,
|
|
6261
6289
|
z as PriceTemplate,
|
|
6262
6290
|
$e as PriceTemplateCategory,
|
|
6263
6291
|
re as PriceTemplateClient,
|
|
6264
6292
|
nr as PriceTemplateICatalogableItem,
|
|
6265
6293
|
Te as PriceTemplateProduct,
|
|
6266
|
-
|
|
6294
|
+
zt as PriceTemplateProvider,
|
|
6267
6295
|
se as PricingRole,
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6296
|
+
Wt as PricingRoleProvider,
|
|
6297
|
+
Le as PrimaryCatalogableItem,
|
|
6298
|
+
d as Product,
|
|
6299
|
+
Ft as ProductCategoryDataProvider,
|
|
6300
|
+
Mt as ProductDataProvider,
|
|
6301
|
+
lt as ProductFileType,
|
|
6274
6302
|
qe as ProductPriceCoefficient,
|
|
6275
|
-
|
|
6276
|
-
|
|
6303
|
+
vt as ProductPriceHistory,
|
|
6304
|
+
Et as PropertiesProvider,
|
|
6277
6305
|
te as Property,
|
|
6278
6306
|
cr as PropertyType,
|
|
6279
6307
|
Wr as PropertyTypeEnum,
|
|
6280
6308
|
H as PropertyValue,
|
|
6281
|
-
|
|
6309
|
+
ns as RecommendationsDataProvider,
|
|
6282
6310
|
Ke as RecommendationsList,
|
|
6283
6311
|
P as Reference,
|
|
6284
|
-
|
|
6312
|
+
a as ReferenceDataProvider,
|
|
6285
6313
|
ce as Region,
|
|
6286
6314
|
pr as ResourceType,
|
|
6287
6315
|
x as SalesDirection,
|
|
6288
|
-
|
|
6316
|
+
Zr as SentryConfig,
|
|
6289
6317
|
Qe as Seo,
|
|
6290
|
-
|
|
6318
|
+
cs as SeoDataProvider,
|
|
6291
6319
|
ur as SourcePrimaryInterest,
|
|
6292
6320
|
jr as StockCount,
|
|
6293
|
-
|
|
6321
|
+
Ot as TemplatesListFilters,
|
|
6294
6322
|
Ue as TypedInstanceFactory,
|
|
6295
6323
|
Ve as UnitsHelper,
|
|
6296
|
-
|
|
6324
|
+
Xt as UnknownClientDataProvider,
|
|
6297
6325
|
ir as UpdatableNamedIdentity,
|
|
6298
|
-
|
|
6299
|
-
|
|
6326
|
+
At as User,
|
|
6327
|
+
ps as UserAuthDataProvider,
|
|
6300
6328
|
or as UserCommonInfo,
|
|
6301
|
-
|
|
6329
|
+
Dt as UserDataProvider,
|
|
6330
|
+
Kr as UserPricingRole,
|
|
6302
6331
|
G as UserShortInfo,
|
|
6303
|
-
|
|
6304
|
-
|
|
6332
|
+
Rt as UserTypeEnum,
|
|
6333
|
+
et as VersionConfig,
|
|
6305
6334
|
Re as Warehouse,
|
|
6306
|
-
|
|
6335
|
+
rt as WebSocketConfig,
|
|
6307
6336
|
ze as findCatalogItemByIdRecursive,
|
|
6308
6337
|
We as flattenCatalogItems,
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6338
|
+
ae as useAuthStateStore,
|
|
6339
|
+
os as useReferencesStore,
|
|
6340
|
+
us as useUserStateStore
|
|
6312
6341
|
};
|
|
6313
6342
|
//# sourceMappingURL=sc-common-lib.js.map
|