@snabcentr/common-lib 1.72.5 → 1.72.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +1 -1
- package/dist/release_notes.tmp +3 -2
- package/dist/sc-common-lib.js +100 -96
- 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/config/classes/app-base-config.d.ts +4 -0
- package/dist/src/config/classes/app-base-config.d.ts.map +1 -1
- package/dist/src/config/interfaces/i-app-base-config.d.ts +4 -0
- package/dist/src/config/interfaces/i-app-base-config.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (n, r, e) =>
|
|
1
|
+
var Dr = Object.defineProperty;
|
|
2
|
+
var Ar = (n, r, e) => r in n ? Dr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var t = (n, r, e) => Ar(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { jwtDecode as tr } from "jwt-decode";
|
|
5
|
-
import { merge as ye, isUndefined as Tr, isNil as
|
|
5
|
+
import { merge as ye, isUndefined as Tr, isNil as A, isEmpty as Y, noop as y, mapValues as sr, isArray as Q, every as $r, split as br, toUpper as Sr, constant as ar, isString as w, cloneDeep as Ir, toLower as xr, isFunction as Ue, map as Re, forEach as Lr, isDate as _e, omitBy as ir, isObject as nr } from "lodash-es";
|
|
6
6
|
import { objectToCamel as Fe, objectToSnake as He } from "ts-case-convert";
|
|
7
|
-
import { isAfter as ze, parseISO as C, startOfToday as
|
|
7
|
+
import { isAfter as ze, parseISO as C, startOfToday as Oe, format as q, addSeconds as kr, addBusinessDays as _r, endOfTomorrow as Or, startOfTomorrow as qr, endOfYesterday as dr, startOfYesterday as Nr, endOfToday as Ur, endOfDay as Fr, startOfDay as Mr } from "date-fns";
|
|
8
8
|
import { defineStore as te } from "pinia";
|
|
9
9
|
import { ref as f, markRaw as jr, computed as R } from "vue";
|
|
10
10
|
import Gr from "axios";
|
|
@@ -111,7 +111,7 @@ class N {
|
|
|
111
111
|
return s.resourceAccess = e.resource_access, s;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class dt extends N {
|
|
115
115
|
/**
|
|
116
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
117
117
|
*
|
|
@@ -210,8 +210,8 @@ class fe {
|
|
|
210
210
|
if (e)
|
|
211
211
|
try {
|
|
212
212
|
const s = JSON.parse(e);
|
|
213
|
-
if (!s.availableFor || ze(C(s.availableFor) ||
|
|
214
|
-
if (
|
|
213
|
+
if (!s.availableFor || ze(C(s.availableFor) || Oe(), /* @__PURE__ */ new Date())) {
|
|
214
|
+
if (A(s.data) || Y(s.data))
|
|
215
215
|
throw new Error("Data is empty");
|
|
216
216
|
return s.data;
|
|
217
217
|
}
|
|
@@ -233,7 +233,7 @@ class fe {
|
|
|
233
233
|
static saveActualDataToStorage(r, e, s) {
|
|
234
234
|
if (this.isLocalStorageAvailable())
|
|
235
235
|
try {
|
|
236
|
-
if (
|
|
236
|
+
if (A(e) || Y(e))
|
|
237
237
|
throw new Error("Data is empty");
|
|
238
238
|
const i = JSON.stringify({
|
|
239
239
|
availableFor: s,
|
|
@@ -284,7 +284,7 @@ class fe {
|
|
|
284
284
|
const i = localStorage.getItem(s);
|
|
285
285
|
if (i) {
|
|
286
286
|
const o = JSON.parse(i);
|
|
287
|
-
o.availableFor && !ze(C(o.availableFor) ||
|
|
287
|
+
o.availableFor && !ze(C(o.availableFor) || Oe(), /* @__PURE__ */ new Date()) && r.push(s);
|
|
288
288
|
}
|
|
289
289
|
} catch {
|
|
290
290
|
r.push(s);
|
|
@@ -323,7 +323,7 @@ const E = te("__auth_state_private", () => {
|
|
|
323
323
|
})()
|
|
324
324
|
), r = f(void 0), e = f(void 0), s = jr(/* @__PURE__ */ new Map());
|
|
325
325
|
function i() {
|
|
326
|
-
e.value = void 0,
|
|
326
|
+
e.value = void 0, A(n.value) || n.value.then((o) => {
|
|
327
327
|
const c = N.getJwtPayload(o);
|
|
328
328
|
e.value = c.exp * 1e3 > Date.now() ? sr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
|
|
329
329
|
}).catch(y);
|
|
@@ -353,7 +353,7 @@ const E = te("__auth_state_private", () => {
|
|
|
353
353
|
}), Se = te("__auth_state", () => {
|
|
354
354
|
const n = R(() => {
|
|
355
355
|
const o = E();
|
|
356
|
-
if (
|
|
356
|
+
if (A(o.jwtToken) && !A(o.jwtTokenUpdater)) {
|
|
357
357
|
const c = o.jwtTokenUpdater();
|
|
358
358
|
o.jwtToken = c, c.then((u) => {
|
|
359
359
|
o.jwtToken = Promise.resolve(u), fe.saveActualDataToStorage("sc.token", u, We(u)), o.recalculateUserPermissions();
|
|
@@ -374,7 +374,7 @@ const E = te("__auth_state_private", () => {
|
|
|
374
374
|
}
|
|
375
375
|
function i(o) {
|
|
376
376
|
const c = E();
|
|
377
|
-
!
|
|
377
|
+
!A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((v) => {
|
|
378
378
|
const m = N.getJwtPayload(v);
|
|
379
379
|
c.userPermissions = m.exp * 1e3 > Date.now() ? sr(m.resourceAccess, (S) => (S == null ? void 0 : S.roles) ?? []) : void 0;
|
|
380
380
|
}).catch(y);
|
|
@@ -387,8 +387,8 @@ const E = te("__auth_state_private", () => {
|
|
|
387
387
|
const S = br(m, ".");
|
|
388
388
|
if (S.length < 2)
|
|
389
389
|
return !1;
|
|
390
|
-
const [_,
|
|
391
|
-
return Q(G) && G.includes(
|
|
390
|
+
const [_, O] = S, G = (B = E().userPermissions) == null ? void 0 : B[_];
|
|
391
|
+
return Q(G) && G.includes(O);
|
|
392
392
|
};
|
|
393
393
|
return Q(o) ? $r(o, (m) => v(m)) : v(o);
|
|
394
394
|
});
|
|
@@ -439,13 +439,13 @@ class j {
|
|
|
439
439
|
* @inheritDoc
|
|
440
440
|
*/
|
|
441
441
|
t(this, "guid");
|
|
442
|
-
this.id = r == null ? void 0 : r.id,
|
|
442
|
+
this.id = r == null ? void 0 : r.id, A(this.id) && (A(e) ? typeof (r == null ? void 0 : r.id) == "number" ? this.id = -1 : typeof (r == null ? void 0 : r.id) == "string" && (this.id = "") : this.id = e), this.guid = (r == null ? void 0 : r.guid) ?? "";
|
|
443
443
|
}
|
|
444
444
|
/**
|
|
445
445
|
* Возвращает признак, что это новая запись.
|
|
446
446
|
*/
|
|
447
447
|
isNewRec() {
|
|
448
|
-
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" :
|
|
448
|
+
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : A(this.id);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
class b extends j {
|
|
@@ -497,7 +497,7 @@ class or extends oe {
|
|
|
497
497
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
class
|
|
500
|
+
class qe extends or {
|
|
501
501
|
/**
|
|
502
502
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
503
503
|
*
|
|
@@ -512,7 +512,7 @@ class Oe extends or {
|
|
|
512
512
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
class he extends
|
|
515
|
+
class he extends qe {
|
|
516
516
|
/**
|
|
517
517
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
518
518
|
*
|
|
@@ -559,7 +559,7 @@ class P extends b {
|
|
|
559
559
|
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
class
|
|
562
|
+
class De extends P {
|
|
563
563
|
/**
|
|
564
564
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
565
565
|
*/
|
|
@@ -594,7 +594,7 @@ class Me {
|
|
|
594
594
|
* Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
|
|
595
595
|
*/
|
|
596
596
|
t(this, "readOnly");
|
|
597
|
-
this.coefficient = new
|
|
597
|
+
this.coefficient = new De(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
class lr {
|
|
@@ -617,7 +617,7 @@ class lr {
|
|
|
617
617
|
}
|
|
618
618
|
class X extends P {
|
|
619
619
|
}
|
|
620
|
-
class
|
|
620
|
+
class Ae extends P {
|
|
621
621
|
/**
|
|
622
622
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
623
623
|
*
|
|
@@ -664,7 +664,7 @@ class Br {
|
|
|
664
664
|
* Количество остатков товара на складе.
|
|
665
665
|
*/
|
|
666
666
|
t(this, "count");
|
|
667
|
-
this.warehouse = new
|
|
667
|
+
this.warehouse = new Ae(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
class Er extends or {
|
|
@@ -792,7 +792,7 @@ class I extends Er {
|
|
|
792
792
|
t(this, "priceCoefficients");
|
|
793
793
|
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = w(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((p) => new Br(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
794
794
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
|
|
795
|
-
s && (this.category = new
|
|
795
|
+
s && (this.category = new qe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new qe(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new Hr(p, $.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Me(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
796
796
|
}
|
|
797
797
|
/**
|
|
798
798
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -1000,7 +1000,7 @@ const a = class a {
|
|
|
1000
1000
|
// eslint-disable-next-line class-methods-use-this
|
|
1001
1001
|
t(this, "authRequestInterceptor", async (r) => {
|
|
1002
1002
|
let e;
|
|
1003
|
-
return
|
|
1003
|
+
return A(Se().jwtToken) || (e = await Se().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
|
|
1004
1004
|
});
|
|
1005
1005
|
/**
|
|
1006
1006
|
* Перехватчик запроса для преобразования данных запроса.
|
|
@@ -1029,7 +1029,7 @@ const a = class a {
|
|
|
1029
1029
|
const r = $.getConfig().version;
|
|
1030
1030
|
this.errorResponseHandler = a.defaultErrorsResponseHandler, this.httpClient = Gr.create({
|
|
1031
1031
|
headers: {
|
|
1032
|
-
"APP-VERSION": `${r.name} (${r.version}, ${
|
|
1032
|
+
"APP-VERSION": `${r.name} (${r.version}, ${q(r.date, $.getConfig().dateFormats.uiDate)})`,
|
|
1033
1033
|
Accept: "application/json",
|
|
1034
1034
|
"Content-Type": "application/json"
|
|
1035
1035
|
}
|
|
@@ -1067,7 +1067,7 @@ const a = class a {
|
|
|
1067
1067
|
*/
|
|
1068
1068
|
static convertHttpErrorResponse(r) {
|
|
1069
1069
|
var e, s;
|
|
1070
|
-
if (!
|
|
1070
|
+
if (!A(r.request) || !A(r.response)) {
|
|
1071
1071
|
const i = r == null ? void 0 : r.response;
|
|
1072
1072
|
return Promise.reject({
|
|
1073
1073
|
status: (i == null ? void 0 : i.status) ?? 0,
|
|
@@ -1617,7 +1617,7 @@ class pr {
|
|
|
1617
1617
|
* Процент, который прибавляется к значению выбранного коэффициента.
|
|
1618
1618
|
*/
|
|
1619
1619
|
t(this, "increasePercent");
|
|
1620
|
-
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new
|
|
1620
|
+
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new De(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1621
1621
|
}
|
|
1622
1622
|
}
|
|
1623
1623
|
class ae extends pr {
|
|
@@ -1915,7 +1915,7 @@ class Ut {
|
|
|
1915
1915
|
return Object.keys(this).forEach((c) => {
|
|
1916
1916
|
const u = this[c];
|
|
1917
1917
|
// eslint-disable-next-line prettier/prettier
|
|
1918
|
-
|
|
1918
|
+
A(u) || w(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
1919
1919
|
}), !((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.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
|
|
1920
1920
|
}
|
|
1921
1921
|
}
|
|
@@ -1973,7 +1973,7 @@ class Je {
|
|
|
1973
1973
|
* Минимальный коэффициент цены.
|
|
1974
1974
|
*/
|
|
1975
1975
|
t(this, "minCoefficient");
|
|
1976
|
-
this.role = new ne(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new
|
|
1976
|
+
this.role = new ne(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new De(r == null ? void 0 : r.minCoefficient);
|
|
1977
1977
|
}
|
|
1978
1978
|
}
|
|
1979
1979
|
class et {
|
|
@@ -2153,6 +2153,10 @@ class Ft {
|
|
|
2153
2153
|
* @inheritDoc
|
|
2154
2154
|
*/
|
|
2155
2155
|
t(this, "sentry");
|
|
2156
|
+
/**
|
|
2157
|
+
* @inheritDoc
|
|
2158
|
+
*/
|
|
2159
|
+
t(this, "tableDefaultHeightCoefficient");
|
|
2156
2160
|
/**
|
|
2157
2161
|
* @inheritDoc
|
|
2158
2162
|
*/
|
|
@@ -2173,7 +2177,7 @@ class Ft {
|
|
|
2173
2177
|
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new rt(r == null ? void 0 : r.http), this.deviceTypeByResolution = new et(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new tt({
|
|
2174
2178
|
environment: this.environment,
|
|
2175
2179
|
...r == null ? void 0 : r.sentry
|
|
2176
|
-
}), this.urls = r == null ? void 0 : r.urls, this.version = new st(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new it(r.websocket) : void 0, this.dateFormats = {
|
|
2180
|
+
}), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.version = new st(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new it(r.websocket) : void 0, this.dateFormats = {
|
|
2177
2181
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
2178
2182
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
2179
2183
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
@@ -2449,8 +2453,8 @@ class Gt extends h {
|
|
|
2449
2453
|
return this.post(
|
|
2450
2454
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
2451
2455
|
s && {
|
|
2452
|
-
startAt: s.startAt &&
|
|
2453
|
-
endAt: s.endAt &&
|
|
2456
|
+
startAt: s.startAt && q(s.startAt, i),
|
|
2457
|
+
endAt: s.endAt && q(s.endAt, i)
|
|
2454
2458
|
},
|
|
2455
2459
|
(o) => new se(o.data),
|
|
2456
2460
|
{},
|
|
@@ -2483,8 +2487,8 @@ class Gt extends h {
|
|
|
2483
2487
|
return this.patch(
|
|
2484
2488
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
2485
2489
|
i && {
|
|
2486
|
-
startAt: i.startAt &&
|
|
2487
|
-
endAt: i.endAt &&
|
|
2490
|
+
startAt: i.startAt && q(i.startAt, o),
|
|
2491
|
+
endAt: i.endAt && q(i.endAt, o)
|
|
2488
2492
|
},
|
|
2489
2493
|
(c) => new se(c.data)
|
|
2490
2494
|
);
|
|
@@ -2759,7 +2763,7 @@ class Ve {
|
|
|
2759
2763
|
field: this.field,
|
|
2760
2764
|
op: this.op
|
|
2761
2765
|
};
|
|
2762
|
-
return r.value = _e(this.value) ?
|
|
2766
|
+
return r.value = _e(this.value) ? q(this.value, $.getConfig().dateFormats.api) : this.value, r;
|
|
2763
2767
|
}
|
|
2764
2768
|
}
|
|
2765
2769
|
class ue {
|
|
@@ -3503,7 +3507,7 @@ function Qe(n) {
|
|
|
3503
3507
|
}
|
|
3504
3508
|
}), r;
|
|
3505
3509
|
}
|
|
3506
|
-
var nt = /* @__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))(nt || {}),
|
|
3510
|
+
var nt = /* @__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))(nt || {}), d = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(d || {});
|
|
3507
3511
|
class ot extends P {
|
|
3508
3512
|
}
|
|
3509
3513
|
class mr extends P {
|
|
@@ -3539,7 +3543,7 @@ class F extends P {
|
|
|
3539
3543
|
return new F({
|
|
3540
3544
|
id: 1,
|
|
3541
3545
|
guid: "",
|
|
3542
|
-
slug:
|
|
3546
|
+
slug: d.Person,
|
|
3543
3547
|
name: ""
|
|
3544
3548
|
});
|
|
3545
3549
|
}
|
|
@@ -3558,7 +3562,7 @@ class fr extends P {
|
|
|
3558
3562
|
}
|
|
3559
3563
|
class yr extends P {
|
|
3560
3564
|
}
|
|
3561
|
-
class
|
|
3565
|
+
class de extends j {
|
|
3562
3566
|
/**
|
|
3563
3567
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3564
3568
|
*
|
|
@@ -3710,7 +3714,7 @@ class wr extends b {
|
|
|
3710
3714
|
if (e.bankAccounts) {
|
|
3711
3715
|
const s = [];
|
|
3712
3716
|
e.bankAccounts.forEach((i) => {
|
|
3713
|
-
s.push(new
|
|
3717
|
+
s.push(new de(i));
|
|
3714
3718
|
}), this.bankAccounts = s;
|
|
3715
3719
|
}
|
|
3716
3720
|
}
|
|
@@ -3815,11 +3819,11 @@ class ve {
|
|
|
3815
3819
|
*/
|
|
3816
3820
|
static createInstance(r) {
|
|
3817
3821
|
switch (r.opf.slug) {
|
|
3818
|
-
case
|
|
3822
|
+
case d.Ic:
|
|
3819
3823
|
return new Cr(r);
|
|
3820
|
-
case
|
|
3824
|
+
case d.UlR:
|
|
3821
3825
|
return new vr(r);
|
|
3822
|
-
case
|
|
3826
|
+
case d.UlNr:
|
|
3823
3827
|
return new mt(r);
|
|
3824
3828
|
default:
|
|
3825
3829
|
return new gt(r);
|
|
@@ -3967,7 +3971,7 @@ class Ye extends ge {
|
|
|
3967
3971
|
* @inheritDoc
|
|
3968
3972
|
*/
|
|
3969
3973
|
t(this, "extraData");
|
|
3970
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Pe(u))) ?? [], this.channelPrimaryInterest = new mr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new yr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.reasonExcludedFromMsCallsToClients = e == null ? void 0 : e.reasonExcludedFromMsCallsToClients, this.preferredWarehouse = e != null && e.preferredWarehouse ? new
|
|
3974
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Pe(u))) ?? [], this.channelPrimaryInterest = new mr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new yr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.reasonExcludedFromMsCallsToClients = e == null ? void 0 : e.reasonExcludedFromMsCallsToClients, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Ae(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
3971
3975
|
}
|
|
3972
3976
|
}
|
|
3973
3977
|
class Qt {
|
|
@@ -4135,7 +4139,7 @@ class Qt {
|
|
|
4135
4139
|
return Object.keys(this).forEach((c) => {
|
|
4136
4140
|
const u = this[c];
|
|
4137
4141
|
// eslint-disable-next-line prettier/prettier
|
|
4138
|
-
|
|
4142
|
+
A(u) || w(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
4139
4143
|
}), !((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;
|
|
4140
4144
|
}
|
|
4141
4145
|
}
|
|
@@ -4295,11 +4299,11 @@ class L extends $e {
|
|
|
4295
4299
|
* @param contragent Данные о контрагенте клиента.
|
|
4296
4300
|
*/
|
|
4297
4301
|
static transformContragentClientDataToRequest(r) {
|
|
4298
|
-
var c, u, p, v, m, S, _,
|
|
4302
|
+
var c, u, p, v, m, S, _, O;
|
|
4299
4303
|
let e;
|
|
4300
4304
|
const s = r, i = r, o = r;
|
|
4301
4305
|
switch (r.opf.slug) {
|
|
4302
|
-
case
|
|
4306
|
+
case d.Ic:
|
|
4303
4307
|
e = {
|
|
4304
4308
|
opf: s.opf.slug,
|
|
4305
4309
|
name: s.name,
|
|
@@ -4317,7 +4321,7 @@ class L extends $e {
|
|
|
4317
4321
|
actual_address: s.actualAddress
|
|
4318
4322
|
};
|
|
4319
4323
|
break;
|
|
4320
|
-
case
|
|
4324
|
+
case d.UlR:
|
|
4321
4325
|
e = {
|
|
4322
4326
|
opf: i.opf.slug,
|
|
4323
4327
|
name: i.name,
|
|
@@ -4336,7 +4340,7 @@ class L extends $e {
|
|
|
4336
4340
|
actual_address: i.actualAddress
|
|
4337
4341
|
};
|
|
4338
4342
|
break;
|
|
4339
|
-
case
|
|
4343
|
+
case d.UlNr:
|
|
4340
4344
|
e = {
|
|
4341
4345
|
opf: o.opf.slug,
|
|
4342
4346
|
name: o.name,
|
|
@@ -4361,7 +4365,7 @@ class L extends $e {
|
|
|
4361
4365
|
name: r.name,
|
|
4362
4366
|
alternative_name: r.alternativeName,
|
|
4363
4367
|
partner_group_id: (_ = r.partnerGroup) == null ? void 0 : _.id,
|
|
4364
|
-
manager_id: (
|
|
4368
|
+
manager_id: (O = r.manager) == null ? void 0 : O.id,
|
|
4365
4369
|
comment: r.comment
|
|
4366
4370
|
};
|
|
4367
4371
|
break;
|
|
@@ -4660,7 +4664,7 @@ class L extends $e {
|
|
|
4660
4664
|
return this.post(
|
|
4661
4665
|
`/internal/clients/${r}/contragents/${e}/bank-accounts`,
|
|
4662
4666
|
L.transformClientContragentBankAccountToRequest(s),
|
|
4663
|
-
(o) => new
|
|
4667
|
+
(o) => new de(o.data),
|
|
4664
4668
|
i
|
|
4665
4669
|
);
|
|
4666
4670
|
}
|
|
@@ -4677,7 +4681,7 @@ class L extends $e {
|
|
|
4677
4681
|
return this.patch(
|
|
4678
4682
|
`/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
|
|
4679
4683
|
L.transformClientContragentBankAccountToRequest(s),
|
|
4680
|
-
(o) => new
|
|
4684
|
+
(o) => new de(o.data),
|
|
4681
4685
|
i
|
|
4682
4686
|
);
|
|
4683
4687
|
}
|
|
@@ -5052,9 +5056,9 @@ class rs {
|
|
|
5052
5056
|
return {
|
|
5053
5057
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5054
5058
|
nextWorkingDay: { label: "Следующий рабочий день", from: Mr(r), to: Fr(r) },
|
|
5055
|
-
today: { label: "Сегодня", from:
|
|
5056
|
-
yesterday: { label: "Вчера", from: Nr(), to:
|
|
5057
|
-
tomorrow: { label: "Завтра", from:
|
|
5059
|
+
today: { label: "Сегодня", from: Oe(), to: Ur() },
|
|
5060
|
+
yesterday: { label: "Вчера", from: Nr(), to: dr() },
|
|
5061
|
+
tomorrow: { label: "Завтра", from: qr(), to: Or() }
|
|
5058
5062
|
};
|
|
5059
5063
|
}
|
|
5060
5064
|
}
|
|
@@ -5184,7 +5188,7 @@ class Rr extends Pr {
|
|
|
5184
5188
|
type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
|
|
5185
5189
|
date: w((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
|
|
5186
5190
|
address: (v = e == null ? void 0 : e.delivery) != null && v.address ? new Pe(e.delivery.address) : void 0,
|
|
5187
|
-
warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new
|
|
5191
|
+
warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new Ae(e.delivery.warehouse) : void 0
|
|
5188
5192
|
}, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new x(e == null ? void 0 : e.salesDirection), this.pendingAt = w(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = w(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;
|
|
5189
5193
|
}
|
|
5190
5194
|
}
|
|
@@ -5389,7 +5393,7 @@ const ke = (n) => {
|
|
|
5389
5393
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
5390
5394
|
hideNotActive: n.hideNotActive
|
|
5391
5395
|
},
|
|
5392
|
-
(c) =>
|
|
5396
|
+
(c) => A(c) || (Q(c) || nr(c)) && Y(c)
|
|
5393
5397
|
) : {};
|
|
5394
5398
|
}, Ze = (n) => {
|
|
5395
5399
|
const r = {};
|
|
@@ -5506,7 +5510,7 @@ class Rt {
|
|
|
5506
5510
|
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = w(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new oe(r.product) : void 0, this.client = r.client ? new U(r.client) : void 0, this.executor = r.executor ? new U(r.executor) : void 0, this.currency = r.currency ? new Ce(r.currency) : void 0;
|
|
5507
5511
|
}
|
|
5508
5512
|
}
|
|
5509
|
-
class
|
|
5513
|
+
class Dt extends oe {
|
|
5510
5514
|
/**
|
|
5511
5515
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
5512
5516
|
*
|
|
@@ -5534,14 +5538,14 @@ class ns extends h {
|
|
|
5534
5538
|
const e = $.getConfig().dateFormats.api, s = ir(
|
|
5535
5539
|
ye(r, {
|
|
5536
5540
|
costDate: {
|
|
5537
|
-
from: _e((o = r.costDate) == null ? void 0 : o.from) ?
|
|
5538
|
-
to: _e((u = r.costDate) == null ? void 0 : u.to) ?
|
|
5541
|
+
from: _e((o = r.costDate) == null ? void 0 : o.from) ? q(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
5542
|
+
to: _e((u = r.costDate) == null ? void 0 : u.to) ? q(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
|
|
5539
5543
|
}
|
|
5540
5544
|
}),
|
|
5541
|
-
(m) =>
|
|
5545
|
+
(m) => A(m) || (Q(m) || nr(m)) && Y(m)
|
|
5542
5546
|
), i = ((v = r.product) == null ? void 0 : v[0]) ?? 0;
|
|
5543
5547
|
return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((m) => [
|
|
5544
|
-
new
|
|
5548
|
+
new Dt(ye(m[0], { history: m }))
|
|
5545
5549
|
]);
|
|
5546
5550
|
}
|
|
5547
5551
|
}
|
|
@@ -5722,7 +5726,7 @@ class T extends pe {
|
|
|
5722
5726
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
5723
5727
|
*/
|
|
5724
5728
|
getWarehouses() {
|
|
5725
|
-
return this.getTypedDataArrayRequester(
|
|
5729
|
+
return this.getTypedDataArrayRequester(Ae, "/public/references/warehouse", !0);
|
|
5726
5730
|
}
|
|
5727
5731
|
/**
|
|
5728
5732
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
@@ -5734,7 +5738,7 @@ class T extends pe {
|
|
|
5734
5738
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
5735
5739
|
*/
|
|
5736
5740
|
getPriceCoefficients() {
|
|
5737
|
-
return this.getTypedDataArrayRequester(
|
|
5741
|
+
return this.getTypedDataArrayRequester(De, "/internal/references/price-coefficient", !0);
|
|
5738
5742
|
}
|
|
5739
5743
|
/**
|
|
5740
5744
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
@@ -5743,8 +5747,8 @@ class T extends pe {
|
|
|
5743
5747
|
return this.getTypedDataArrayRequester(ht, "/public/references/product-file-type", !0);
|
|
5744
5748
|
}
|
|
5745
5749
|
}
|
|
5746
|
-
const
|
|
5747
|
-
const n = f({}), r = f(void 0), e = f(void 0), s = f(void 0), i = f(void 0), o = f(void 0), c = f(void 0), u = f(void 0), p = f(void 0), v = f(void 0), m = f(void 0), S = f(void 0), _ = f(void 0),
|
|
5750
|
+
const D = te("__references_private", () => {
|
|
5751
|
+
const n = f({}), r = f(void 0), e = f(void 0), s = f(void 0), i = f(void 0), o = f(void 0), c = f(void 0), u = f(void 0), p = f(void 0), v = f(void 0), m = f(void 0), S = f(void 0), _ = f(void 0), O = f(void 0), G = f(void 0), B = f(void 0), be = f(void 0), l = f(void 0);
|
|
5748
5752
|
return {
|
|
5749
5753
|
/**
|
|
5750
5754
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5801,7 +5805,7 @@ const A = te("__references_private", () => {
|
|
|
5801
5805
|
/**
|
|
5802
5806
|
* Справочник направлений продаж.
|
|
5803
5807
|
*/
|
|
5804
|
-
salesDirectionsReference:
|
|
5808
|
+
salesDirectionsReference: O,
|
|
5805
5809
|
/**
|
|
5806
5810
|
* Справочник источников первичного интереса.
|
|
5807
5811
|
*/
|
|
@@ -5821,87 +5825,87 @@ const A = te("__references_private", () => {
|
|
|
5821
5825
|
};
|
|
5822
5826
|
}), cs = te("references", () => {
|
|
5823
5827
|
const n = R(() => {
|
|
5824
|
-
const l =
|
|
5828
|
+
const l = D();
|
|
5825
5829
|
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((g) => {
|
|
5826
5830
|
l.channelPrimaryInterestReference = g;
|
|
5827
5831
|
}).catch(y)), l.channelPrimaryInterestReference;
|
|
5828
5832
|
}), r = R(() => {
|
|
5829
|
-
const l =
|
|
5833
|
+
const l = D();
|
|
5830
5834
|
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(T).getContactPositions().then((g) => {
|
|
5831
5835
|
l.contactPositionsReference = g;
|
|
5832
5836
|
}).catch(y)), l.contactPositionsReference;
|
|
5833
5837
|
}), e = R(() => {
|
|
5834
|
-
const l =
|
|
5838
|
+
const l = D();
|
|
5835
5839
|
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(T).getCurrency().then((g) => {
|
|
5836
5840
|
l.currencyReference = g;
|
|
5837
5841
|
}).catch(y)), l.currencyReference;
|
|
5838
5842
|
}), s = R(() => {
|
|
5839
|
-
const l =
|
|
5843
|
+
const l = D();
|
|
5840
5844
|
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(T).getOpf().then((g) => {
|
|
5841
5845
|
l.opfReference = g;
|
|
5842
5846
|
}).catch(y)), l.opfReference;
|
|
5843
5847
|
}), i = R(() => {
|
|
5844
|
-
const l =
|
|
5848
|
+
const l = D();
|
|
5845
5849
|
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(T).getOrderPaymentStatuses().then((g) => {
|
|
5846
5850
|
l.orderPaymentStatusReference = g;
|
|
5847
5851
|
}).catch(y)), l.orderPaymentStatusReference;
|
|
5848
5852
|
}), o = R(() => {
|
|
5849
|
-
const l =
|
|
5853
|
+
const l = D();
|
|
5850
5854
|
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(T).getOrderStatuses().then((g) => {
|
|
5851
5855
|
l.orderStatusReference = g;
|
|
5852
5856
|
}).catch(y)), l.orderStatusReference;
|
|
5853
5857
|
}), c = R(() => {
|
|
5854
|
-
const l =
|
|
5858
|
+
const l = D();
|
|
5855
5859
|
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((g) => {
|
|
5856
5860
|
l.paymentTypeReference = g;
|
|
5857
5861
|
}).catch(y)), l.paymentTypeReference;
|
|
5858
5862
|
}), u = R(() => {
|
|
5859
|
-
const l =
|
|
5863
|
+
const l = D();
|
|
5860
5864
|
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((g) => {
|
|
5861
5865
|
l.partnerGroupReference = g;
|
|
5862
5866
|
}).catch(y)), l.partnerGroupReference;
|
|
5863
5867
|
}), p = R(() => {
|
|
5864
|
-
const l =
|
|
5868
|
+
const l = D();
|
|
5865
5869
|
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((g) => {
|
|
5866
5870
|
l.productFileTypeReference = g;
|
|
5867
5871
|
}).catch(y)), l.productFileTypeReference;
|
|
5868
5872
|
}), v = R(() => {
|
|
5869
|
-
const l =
|
|
5873
|
+
const l = D();
|
|
5870
5874
|
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((g) => {
|
|
5871
5875
|
l.resourceTypesReference = g;
|
|
5872
5876
|
}).catch(y)), l.resourceTypesReference;
|
|
5873
5877
|
}), m = R(() => {
|
|
5874
|
-
const l =
|
|
5878
|
+
const l = D();
|
|
5875
5879
|
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(T).getSalesDirections().then((g) => {
|
|
5876
5880
|
l.salesDirectionsReference = g;
|
|
5877
5881
|
}).catch(y)), l.salesDirectionsReference;
|
|
5878
5882
|
}), S = R(() => {
|
|
5879
|
-
const l =
|
|
5883
|
+
const l = D();
|
|
5880
5884
|
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((g) => {
|
|
5881
5885
|
l.sourcePrimaryInterestReference = g;
|
|
5882
5886
|
}).catch(y)), l.sourcePrimaryInterestReference;
|
|
5883
5887
|
}), _ = R(() => {
|
|
5884
|
-
const l =
|
|
5888
|
+
const l = D();
|
|
5885
5889
|
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(T).getDeliveryTypes().then((g) => {
|
|
5886
5890
|
l.deliveryTypeReference = g;
|
|
5887
5891
|
}).catch(y)), l.deliveryTypeReference;
|
|
5888
|
-
}),
|
|
5889
|
-
const l =
|
|
5892
|
+
}), O = R(() => {
|
|
5893
|
+
const l = D();
|
|
5890
5894
|
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Ct).getManagers().then((g) => {
|
|
5891
5895
|
l.managersList = g;
|
|
5892
5896
|
}).catch(y)), l.managersList;
|
|
5893
5897
|
}), G = R(() => {
|
|
5894
|
-
const l =
|
|
5898
|
+
const l = D();
|
|
5895
5899
|
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(T).getWarehouses().then((g) => {
|
|
5896
5900
|
l.warehousesReference = g;
|
|
5897
5901
|
}).catch(y)), l.warehousesReference;
|
|
5898
5902
|
}), B = R(() => {
|
|
5899
|
-
const l =
|
|
5903
|
+
const l = D();
|
|
5900
5904
|
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(T).getPropertyTypes().then((g) => {
|
|
5901
5905
|
l.propertyTypesReference = g;
|
|
5902
5906
|
}).catch(y)), l.propertyTypesReference;
|
|
5903
5907
|
}), be = R(() => {
|
|
5904
|
-
const l =
|
|
5908
|
+
const l = D();
|
|
5905
5909
|
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(T).getPriceCoefficients().then((g) => {
|
|
5906
5910
|
l.priceCoefficientsReference = g;
|
|
5907
5911
|
}).catch(y)), l.priceCoefficientsReference;
|
|
@@ -5962,7 +5966,7 @@ const A = te("__references_private", () => {
|
|
|
5962
5966
|
/**
|
|
5963
5967
|
* Список менеджеров.
|
|
5964
5968
|
*/
|
|
5965
|
-
managersList:
|
|
5969
|
+
managersList: O,
|
|
5966
5970
|
/**
|
|
5967
5971
|
* Справочник складов.
|
|
5968
5972
|
*/
|
|
@@ -5977,7 +5981,7 @@ const A = te("__references_private", () => {
|
|
|
5977
5981
|
priceCoefficientsReference: be
|
|
5978
5982
|
};
|
|
5979
5983
|
});
|
|
5980
|
-
class
|
|
5984
|
+
class At {
|
|
5981
5985
|
/**
|
|
5982
5986
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
5983
5987
|
*
|
|
@@ -6031,7 +6035,7 @@ class rr {
|
|
|
6031
6035
|
*/
|
|
6032
6036
|
t(this, "meta");
|
|
6033
6037
|
var e;
|
|
6034
|
-
this.resourceType = new fr(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
|
|
6038
|
+
this.resourceType = new fr(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 At(s))) ?? [];
|
|
6035
6039
|
}
|
|
6036
6040
|
}
|
|
6037
6041
|
class ls extends h {
|
|
@@ -6213,7 +6217,7 @@ export {
|
|
|
6213
6217
|
ot as AnyReference,
|
|
6214
6218
|
Ft as AppBaseConfig,
|
|
6215
6219
|
$ as AppConfigProvider,
|
|
6216
|
-
|
|
6220
|
+
de as BankAccount,
|
|
6217
6221
|
$e as BasePaginationProvider,
|
|
6218
6222
|
Jr as CalculationTypeEnum,
|
|
6219
6223
|
me as Cart,
|
|
@@ -6264,7 +6268,7 @@ export {
|
|
|
6264
6268
|
Kr as DeletableNamedIdentity,
|
|
6265
6269
|
Pe as DeliveryAddress,
|
|
6266
6270
|
X as DeliveryType,
|
|
6267
|
-
|
|
6271
|
+
dt as DetailedJwtPayload,
|
|
6268
6272
|
et as DeviceTypeResolutionConfig,
|
|
6269
6273
|
Qr as DiscountShortInfo,
|
|
6270
6274
|
gs as FieldValidationResultData,
|
|
@@ -6283,10 +6287,10 @@ export {
|
|
|
6283
6287
|
ce as ManagerCommon,
|
|
6284
6288
|
ts as ManagerDataFactory,
|
|
6285
6289
|
Ct as ManagerDataProvider,
|
|
6286
|
-
|
|
6290
|
+
At as MetaTagItem,
|
|
6287
6291
|
b as NamedIdentity,
|
|
6288
6292
|
F as Opf,
|
|
6289
|
-
|
|
6293
|
+
d as OpfEnum,
|
|
6290
6294
|
Pt as Order,
|
|
6291
6295
|
Rr as OrderInfo,
|
|
6292
6296
|
lt as OrderPaymentStatus,
|
|
@@ -6299,7 +6303,7 @@ export {
|
|
|
6299
6303
|
fe as PreferencesStorageProvider,
|
|
6300
6304
|
Le as PriceAnalyze,
|
|
6301
6305
|
is as PriceAnalyzeProvider,
|
|
6302
|
-
|
|
6306
|
+
De as PriceCoefficient,
|
|
6303
6307
|
cr as PriceCoefficientEnum,
|
|
6304
6308
|
ns as PriceHistoryDataProvider,
|
|
6305
6309
|
Rt as PriceHistoryItem,
|
|
@@ -6311,13 +6315,13 @@ export {
|
|
|
6311
6315
|
Wt as PriceTemplateProvider,
|
|
6312
6316
|
ne as PricingRole,
|
|
6313
6317
|
Jt as PricingRoleProvider,
|
|
6314
|
-
|
|
6318
|
+
qe as PrimaryCatalogableItem,
|
|
6315
6319
|
I as Product,
|
|
6316
6320
|
Bt as ProductCategoryDataProvider,
|
|
6317
6321
|
Et as ProductDataProvider,
|
|
6318
6322
|
ht as ProductFileType,
|
|
6319
6323
|
Me as ProductPriceCoefficient,
|
|
6320
|
-
|
|
6324
|
+
Dt as ProductPriceHistory,
|
|
6321
6325
|
Vt as PropertiesProvider,
|
|
6322
6326
|
ie as Property,
|
|
6323
6327
|
gr as PropertyType,
|
|
@@ -6348,7 +6352,7 @@ export {
|
|
|
6348
6352
|
U as UserShortInfo,
|
|
6349
6353
|
Tt as UserTypeEnum,
|
|
6350
6354
|
st as VersionConfig,
|
|
6351
|
-
|
|
6355
|
+
Ae as Warehouse,
|
|
6352
6356
|
it as WebSocketConfig,
|
|
6353
6357
|
Ke as findCatalogItemByIdRecursive,
|
|
6354
6358
|
Qe as flattenCatalogItems,
|