@snabcentr/common-lib 1.70.2 → 1.71.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +1 -1
- package/dist/release_notes.tmp +3 -3
- package/dist/sc-common-lib.js +360 -306
- package/dist/sc-common-lib.js.map +1 -1
- package/dist/sc-common-lib.umd.cjs +1 -1
- package/dist/sc-common-lib.umd.cjs.map +1 -1
- package/dist/src/catalog/methods/find-catalog-item.d.ts +3 -3
- package/dist/src/catalog/methods/find-catalog-item.d.ts.map +1 -1
- package/dist/src/catalog/methods/flatten-catalog-items.d.ts +8 -0
- package/dist/src/catalog/methods/flatten-catalog-items.d.ts.map +1 -0
- package/dist/src/catalog/methods/index.d.ts +1 -0
- package/dist/src/catalog/methods/index.d.ts.map +1 -1
- package/dist/src/config/classes/app-base-config.d.ts +13 -8
- package/dist/src/config/classes/app-base-config.d.ts.map +1 -1
- package/dist/src/config/classes/index.d.ts +1 -0
- package/dist/src/config/classes/index.d.ts.map +1 -1
- package/dist/src/config/classes/websocket-config.d.ts +38 -0
- package/dist/src/config/classes/websocket-config.d.ts.map +1 -0
- package/dist/src/config/interfaces/i-app-base-config.d.ts +5 -0
- package/dist/src/config/interfaces/i-app-base-config.d.ts.map +1 -1
- package/dist/src/config/interfaces/i-websocket-config.d.ts +34 -0
- package/dist/src/config/interfaces/i-websocket-config.d.ts.map +1 -0
- package/dist/src/config/interfaces/index.d.ts +1 -0
- package/dist/src/config/interfaces/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (n, r, e) =>
|
|
4
|
-
import { jwtDecode as
|
|
5
|
-
import { merge as xe, isUndefined as
|
|
1
|
+
var wr = Object.defineProperty;
|
|
2
|
+
var Cr = (n, r, e) => r in n ? wr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var t = (n, r, e) => Cr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jwtDecode as Ye } from "jwt-decode";
|
|
5
|
+
import { merge as xe, isUndefined as vr, isNil as $, noop as w, mapValues as Pr, isArray as J, every as Rr, split as Ar, toUpper as Dr, constant as ar, isString as y, cloneDeep as $r, toLower as Tr, isFunction as Ne, map as ue, forEach as br, isDate as Ie, isEmpty as ve, omitBy as Xe, isObject as Ze } from "lodash-es";
|
|
6
6
|
import { objectToCamel as Oe, objectToSnake as Me } from "ts-case-convert";
|
|
7
7
|
import { defineStore as Z } from "pinia";
|
|
8
|
-
import { ref as f, markRaw as
|
|
9
|
-
import { parseISO as C, format as q, isAfter as
|
|
10
|
-
import
|
|
8
|
+
import { ref as f, markRaw as _r, computed as R } from "vue";
|
|
9
|
+
import { parseISO as C, format as q, isAfter as Sr, startOfToday as er, addSeconds as Ir, addBusinessDays as dr, endOfTomorrow as kr, startOfTomorrow as Lr, endOfYesterday as xr, startOfYesterday as Nr, endOfToday as Or, endOfDay as qr, startOfDay as Ur } from "date-fns";
|
|
10
|
+
import Gr from "axios";
|
|
11
11
|
class ie {
|
|
12
12
|
/**
|
|
13
13
|
* Инициализирует экземпляр класса {@link JwtPayload}.
|
|
@@ -107,11 +107,11 @@ class ie {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
const e =
|
|
110
|
+
const e = Ye(r), s = new ie(Oe(e));
|
|
111
111
|
return s.resourceAccess = e.resource_access, s;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class kt extends ie {
|
|
115
115
|
/**
|
|
116
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
117
117
|
*
|
|
@@ -151,7 +151,7 @@ class It extends ie {
|
|
|
151
151
|
* @param jwtToken JWT-ключ доступа.
|
|
152
152
|
*/
|
|
153
153
|
static getJwtPayload(e) {
|
|
154
|
-
return new ie(Oe(
|
|
154
|
+
return new ie(Oe(Ye(e)));
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
const W = class W {
|
|
@@ -168,7 +168,7 @@ const W = class W {
|
|
|
168
168
|
*/
|
|
169
169
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
170
170
|
static getConfig() {
|
|
171
|
-
if (
|
|
171
|
+
if (vr(W.config))
|
|
172
172
|
throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
|
|
173
173
|
return W.config;
|
|
174
174
|
}
|
|
@@ -193,7 +193,7 @@ t(W, "config");
|
|
|
193
193
|
let D = W;
|
|
194
194
|
const ee = Z("__auth_state_private", () => {
|
|
195
195
|
var i;
|
|
196
|
-
const n = f(Promise.resolve((i = D.getConfig().devMode) == null ? void 0 : i.initAuthBearerToken)), r = f(void 0), e = f(void 0), s =
|
|
196
|
+
const n = f(Promise.resolve((i = D.getConfig().devMode) == null ? void 0 : i.initAuthBearerToken)), r = f(void 0), e = f(void 0), s = _r(/* @__PURE__ */ new Map());
|
|
197
197
|
return {
|
|
198
198
|
/**
|
|
199
199
|
* {@link Promise<string>} для получения jwt-ключа доступа к системам.
|
|
@@ -233,7 +233,7 @@ const ee = Z("__auth_state_private", () => {
|
|
|
233
233
|
const o = ee();
|
|
234
234
|
!$(o.jwtToken) && $(o.userPermissions) && o.jwtToken.then((u) => {
|
|
235
235
|
const m = ie.getJwtPayload(u);
|
|
236
|
-
o.userPermissions = m.exp * 1e3 > Date.now() ?
|
|
236
|
+
o.userPermissions = m.exp * 1e3 > Date.now() ? Pr(m.resourceAccess, (v) => (v == null ? void 0 : v.roles) ?? []) : void 0;
|
|
237
237
|
}).catch(w);
|
|
238
238
|
const c = J(i) ? i.join(" && ") : i;
|
|
239
239
|
if (o.userPermissionsComputedRefs.has(c))
|
|
@@ -241,13 +241,13 @@ const ee = Z("__auth_state_private", () => {
|
|
|
241
241
|
const p = R(() => {
|
|
242
242
|
const u = (m) => {
|
|
243
243
|
var _;
|
|
244
|
-
const v =
|
|
244
|
+
const v = Ar(m, ".");
|
|
245
245
|
if (v.length < 2)
|
|
246
246
|
return !1;
|
|
247
247
|
const [S, I] = v, b = (_ = ee().userPermissions) == null ? void 0 : _[S];
|
|
248
248
|
return J(b) && b.includes(I);
|
|
249
249
|
};
|
|
250
|
-
return J(i) ?
|
|
250
|
+
return J(i) ? Rr(i, (m) => u(m)) : u(i);
|
|
251
251
|
});
|
|
252
252
|
return o.userPermissionsComputedRefs.set(c, p), p;
|
|
253
253
|
}
|
|
@@ -329,7 +329,7 @@ class ne extends T {
|
|
|
329
329
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
class
|
|
332
|
+
class rr extends ne {
|
|
333
333
|
/**
|
|
334
334
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
335
335
|
*
|
|
@@ -348,7 +348,7 @@ class er extends ne {
|
|
|
348
348
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
class de extends
|
|
351
|
+
class de extends rr {
|
|
352
352
|
/**
|
|
353
353
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
354
354
|
*
|
|
@@ -387,10 +387,10 @@ class he extends de {
|
|
|
387
387
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
388
388
|
*/
|
|
389
389
|
t(this, "currencyRates");
|
|
390
|
-
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [
|
|
390
|
+
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [Dr(s), i])) : void 0;
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
var
|
|
393
|
+
var tr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(tr || {});
|
|
394
394
|
class P extends T {
|
|
395
395
|
/**
|
|
396
396
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
@@ -415,7 +415,7 @@ class Pe extends P {
|
|
|
415
415
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
416
416
|
*/
|
|
417
417
|
static getRetailPriceCoefficient() {
|
|
418
|
-
return { id: -2, slug:
|
|
418
|
+
return { id: -2, slug: tr.Retail, name: "Розн. цена", guid: "", isNewRec: ar(!0) };
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
class qe {
|
|
@@ -448,7 +448,7 @@ class qe {
|
|
|
448
448
|
this.coefficient = new Pe(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
class
|
|
451
|
+
class sr {
|
|
452
452
|
/**
|
|
453
453
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
454
454
|
*
|
|
@@ -497,10 +497,10 @@ class Re extends P {
|
|
|
497
497
|
* Координаты склада.
|
|
498
498
|
*/
|
|
499
499
|
t(this, "coordinates");
|
|
500
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new
|
|
500
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new sr(e == null ? void 0 : e.coordinates);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
class
|
|
503
|
+
class jr {
|
|
504
504
|
/**
|
|
505
505
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
506
506
|
*
|
|
@@ -518,7 +518,7 @@ class Gr {
|
|
|
518
518
|
this.warehouse = new Re(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
class
|
|
521
|
+
class Fr extends rr {
|
|
522
522
|
/**
|
|
523
523
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
524
524
|
*
|
|
@@ -533,7 +533,7 @@ class jr extends er {
|
|
|
533
533
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
class
|
|
536
|
+
class Mr {
|
|
537
537
|
/**
|
|
538
538
|
* Инициализирует экземпляр класса {@link Image}.
|
|
539
539
|
*
|
|
@@ -556,7 +556,7 @@ class Fr {
|
|
|
556
556
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
class
|
|
559
|
+
class L extends Fr {
|
|
560
560
|
/**
|
|
561
561
|
* Инициализирует экземпляр класса {@link Product}.
|
|
562
562
|
*
|
|
@@ -641,9 +641,9 @@ class k extends jr {
|
|
|
641
641
|
* Список коэффициентов цен на продукт.
|
|
642
642
|
*/
|
|
643
643
|
t(this, "priceCoefficients");
|
|
644
|
-
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = y(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((u) => new
|
|
644
|
+
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = y(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((u) => new jr(u))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
645
645
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((u) => u.isPrimary));
|
|
646
|
-
s && (this.category = new de({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((u) => new de(u))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((u) => new
|
|
646
|
+
s && (this.category = new de({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((u) => new de(u))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((u) => new Mr(u, D.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((u) => new qe(u))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
647
647
|
}
|
|
648
648
|
/**
|
|
649
649
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -666,7 +666,7 @@ class k extends jr {
|
|
|
666
666
|
return this.retailCostRub ?? this.costRub;
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
|
-
class
|
|
669
|
+
class Hr extends M {
|
|
670
670
|
/**
|
|
671
671
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
672
672
|
*
|
|
@@ -718,10 +718,10 @@ class Mr extends M {
|
|
|
718
718
|
* Признак того, что позиция является дополнительной продажей.
|
|
719
719
|
*/
|
|
720
720
|
t(this, "isAdditionalSale");
|
|
721
|
-
this.product = new
|
|
721
|
+
this.product = new L(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && $r(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
class
|
|
724
|
+
class Br extends Hr {
|
|
725
725
|
/**
|
|
726
726
|
* Инициализирует экземпляр класса {@link CartItem}.
|
|
727
727
|
*
|
|
@@ -790,7 +790,7 @@ class me {
|
|
|
790
790
|
* Список итоговых сумм по направлениям продаж.
|
|
791
791
|
*/
|
|
792
792
|
t(this, "directionsSum");
|
|
793
|
-
this.items = r.items.map((e) => new
|
|
793
|
+
this.items = r.items.map((e) => new Br(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
class Ue {
|
|
@@ -812,7 +812,7 @@ class Ue {
|
|
|
812
812
|
return new r(e);
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
|
-
const
|
|
815
|
+
const k = class k {
|
|
816
816
|
/**
|
|
817
817
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
818
818
|
*/
|
|
@@ -859,7 +859,7 @@ const L = class L {
|
|
|
859
859
|
* @param request Данные запроса.
|
|
860
860
|
*/
|
|
861
861
|
// eslint-disable-next-line class-methods-use-this
|
|
862
|
-
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Me(r.params)), ["put", "patch", "post"].includes(
|
|
862
|
+
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Me(r.params)), ["put", "patch", "post"].includes(Tr(r.method)) && r.data && (r.data = Me(r.data))), r));
|
|
863
863
|
/**
|
|
864
864
|
* Перехватчик ошибок ответов на запрос.
|
|
865
865
|
*
|
|
@@ -878,7 +878,7 @@ const L = class L {
|
|
|
878
878
|
// eslint-disable-next-line class-methods-use-this
|
|
879
879
|
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Oe(r.data)), r));
|
|
880
880
|
const r = D.getConfig().version;
|
|
881
|
-
this.errorResponseHandler =
|
|
881
|
+
this.errorResponseHandler = k.defaultErrorsResponseHandler, this.httpClient = Gr.create({
|
|
882
882
|
headers: {
|
|
883
883
|
"APP-VERSION": `${r.name} (${r.version}, ${q(r.date, D.getConfig().dateFormats.uiDate)})`,
|
|
884
884
|
Accept: "application/json",
|
|
@@ -889,7 +889,7 @@ const L = class L {
|
|
|
889
889
|
(e) => Promise.reject(e)
|
|
890
890
|
), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
|
|
891
891
|
(e) => e,
|
|
892
|
-
(e) =>
|
|
892
|
+
(e) => k.convertHttpErrorResponse(e)
|
|
893
893
|
), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((e) => e, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
|
|
894
894
|
this.dataConverterResponseInterceptor,
|
|
895
895
|
(e) => Promise.reject(e)
|
|
@@ -901,7 +901,7 @@ const L = class L {
|
|
|
901
901
|
* @param handler Ссылка на функцию-обработчик ошибок.
|
|
902
902
|
*/
|
|
903
903
|
static setDefaultErrorsResponseHandler(r) {
|
|
904
|
-
|
|
904
|
+
k.defaultErrorsResponseHandler = r;
|
|
905
905
|
}
|
|
906
906
|
/**
|
|
907
907
|
* Возвращает экземпляр объекта текущего класса.
|
|
@@ -909,7 +909,7 @@ const L = class L {
|
|
|
909
909
|
* @param type Тип данных, которыми оперирует метод.
|
|
910
910
|
*/
|
|
911
911
|
static getInstance(r) {
|
|
912
|
-
return Object.prototype.hasOwnProperty.call(
|
|
912
|
+
return Object.prototype.hasOwnProperty.call(k.instances, r.name) || (k.instances[r.name] = Ue.simpleInstanceInitializer(r)), k.instances[r.name];
|
|
913
913
|
}
|
|
914
914
|
/**
|
|
915
915
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -1007,16 +1007,16 @@ const L = class L {
|
|
|
1007
1007
|
* Экземпляр объекта текущего класса.
|
|
1008
1008
|
*/
|
|
1009
1009
|
// eslint-disable-next-line no-use-before-define
|
|
1010
|
-
t(
|
|
1010
|
+
t(k, "instances", {}), /**
|
|
1011
1011
|
* Базовый обработчик ошибок выполнения запросов.
|
|
1012
1012
|
*
|
|
1013
1013
|
* @param error Данные об ошибке.
|
|
1014
1014
|
* @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
1015
1015
|
* @param disableNotifications Признак необходимости отключить уведомления об ошибках.
|
|
1016
1016
|
*/
|
|
1017
|
-
t(
|
|
1018
|
-
let h =
|
|
1019
|
-
class
|
|
1017
|
+
t(k, "defaultErrorsResponseHandler", w);
|
|
1018
|
+
let h = k;
|
|
1019
|
+
class Lt extends h {
|
|
1020
1020
|
/**
|
|
1021
1021
|
* Возвращает содержимое корзины указанного клиента.
|
|
1022
1022
|
*
|
|
@@ -1119,7 +1119,7 @@ class dt extends h {
|
|
|
1119
1119
|
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new me(e.data));
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
1122
|
-
var
|
|
1122
|
+
var zr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(zr || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), Wr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(Wr || {});
|
|
1123
1123
|
class B extends he {
|
|
1124
1124
|
/**
|
|
1125
1125
|
* Инициализирует экземпляр класса {@link Category}.
|
|
@@ -1137,10 +1137,10 @@ class B extends he {
|
|
|
1137
1137
|
* Список продуктов категории.
|
|
1138
1138
|
*/
|
|
1139
1139
|
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
|
|
1140
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new B(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new L(o));
|
|
1141
1141
|
}
|
|
1142
1142
|
}
|
|
1143
|
-
class
|
|
1143
|
+
class ir extends T {
|
|
1144
1144
|
/**
|
|
1145
1145
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1146
1146
|
*
|
|
@@ -1155,7 +1155,7 @@ class sr extends T {
|
|
|
1155
1155
|
this.updatedAt = y(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
|
-
class
|
|
1158
|
+
class Er extends ir {
|
|
1159
1159
|
/**
|
|
1160
1160
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1161
1161
|
*
|
|
@@ -1170,7 +1170,7 @@ class Wr extends sr {
|
|
|
1170
1170
|
this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
|
-
class
|
|
1173
|
+
class xt {
|
|
1174
1174
|
/**
|
|
1175
1175
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
1176
1176
|
*
|
|
@@ -1181,7 +1181,7 @@ class Lt {
|
|
|
1181
1181
|
if (e)
|
|
1182
1182
|
try {
|
|
1183
1183
|
const s = JSON.parse(e);
|
|
1184
|
-
if (
|
|
1184
|
+
if (Sr(C(s.availableFor) || er(), /* @__PURE__ */ new Date()))
|
|
1185
1185
|
return s.data ?? {};
|
|
1186
1186
|
} catch {
|
|
1187
1187
|
localStorage.removeItem(r);
|
|
@@ -1258,7 +1258,7 @@ class Vr extends T {
|
|
|
1258
1258
|
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = y(e == null ? void 0 : e.publishedAt) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new G(e == null ? void 0 : e.owner), this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
|
-
class z extends
|
|
1261
|
+
class z extends ir {
|
|
1262
1262
|
/**
|
|
1263
1263
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1264
1264
|
*
|
|
@@ -1277,7 +1277,7 @@ class z extends sr {
|
|
|
1277
1277
|
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
1278
|
}
|
|
1279
1279
|
}
|
|
1280
|
-
class Q extends
|
|
1280
|
+
class Q extends L {
|
|
1281
1281
|
/**
|
|
1282
1282
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1283
1283
|
*
|
|
@@ -1316,7 +1316,7 @@ class Q extends k {
|
|
|
1316
1316
|
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new Vr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new z(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
1319
|
-
class
|
|
1319
|
+
class Jr {
|
|
1320
1320
|
/**
|
|
1321
1321
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1322
1322
|
*
|
|
@@ -1360,7 +1360,7 @@ class oe extends T {
|
|
|
1360
1360
|
* Признак того, что менеджер является основным для клиента.
|
|
1361
1361
|
*/
|
|
1362
1362
|
t(this, "isDefault");
|
|
1363
|
-
e && (this.salesDirection = new x(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new
|
|
1363
|
+
e && (this.salesDirection = new x(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Jr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1364
1364
|
}
|
|
1365
1365
|
}
|
|
1366
1366
|
class Ae extends oe {
|
|
@@ -1394,7 +1394,7 @@ class Ae extends oe {
|
|
|
1394
1394
|
this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId;
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
|
-
class
|
|
1397
|
+
class Kr extends he {
|
|
1398
1398
|
/**
|
|
1399
1399
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1400
1400
|
*
|
|
@@ -1425,7 +1425,7 @@ class Jr extends he {
|
|
|
1425
1425
|
this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new Ae(e.manager) : void 0;
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
|
-
class fe extends
|
|
1428
|
+
class fe extends Kr {
|
|
1429
1429
|
/**
|
|
1430
1430
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1431
1431
|
*
|
|
@@ -1445,7 +1445,7 @@ class fe extends Jr {
|
|
|
1445
1445
|
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new fe(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Q(o));
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
|
-
class
|
|
1448
|
+
class nr {
|
|
1449
1449
|
/**
|
|
1450
1450
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
1451
1451
|
*
|
|
@@ -1463,7 +1463,7 @@ class ir {
|
|
|
1463
1463
|
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
class $e extends
|
|
1466
|
+
class $e extends nr {
|
|
1467
1467
|
/**
|
|
1468
1468
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1469
1469
|
*
|
|
@@ -1510,7 +1510,7 @@ class je extends P {
|
|
|
1510
1510
|
e && (this.region = new ce(e.region));
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
|
-
class
|
|
1513
|
+
class or extends T {
|
|
1514
1514
|
/**
|
|
1515
1515
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1516
1516
|
*
|
|
@@ -1549,7 +1549,7 @@ class nr extends T {
|
|
|
1549
1549
|
this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : void 0, this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = y(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1550
1550
|
}
|
|
1551
1551
|
}
|
|
1552
|
-
class ge extends
|
|
1552
|
+
class ge extends or {
|
|
1553
1553
|
/**
|
|
1554
1554
|
* Инициализирует экземпляр класса {@link Client}.
|
|
1555
1555
|
*
|
|
@@ -1621,7 +1621,7 @@ class re extends M {
|
|
|
1621
1621
|
this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ge(e == null ? void 0 : e.client), this.priceTemplate = new z(e == null ? void 0 : e.priceTemplate);
|
|
1622
1622
|
}
|
|
1623
1623
|
}
|
|
1624
|
-
class Te extends
|
|
1624
|
+
class Te extends nr {
|
|
1625
1625
|
/**
|
|
1626
1626
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1627
1627
|
*
|
|
@@ -1633,10 +1633,10 @@ class Te extends ir {
|
|
|
1633
1633
|
* Базовые данные о продукте.
|
|
1634
1634
|
*/
|
|
1635
1635
|
t(this, "product");
|
|
1636
|
-
this.product = new
|
|
1636
|
+
this.product = new L(e == null ? void 0 : e.product);
|
|
1637
1637
|
}
|
|
1638
1638
|
}
|
|
1639
|
-
class
|
|
1639
|
+
class cr extends P {
|
|
1640
1640
|
}
|
|
1641
1641
|
class te extends T {
|
|
1642
1642
|
/**
|
|
@@ -1658,7 +1658,7 @@ class te extends T {
|
|
|
1658
1658
|
* Дополнительные метаданные свойства.
|
|
1659
1659
|
*/
|
|
1660
1660
|
t(this, "metadata");
|
|
1661
|
-
this.type = new
|
|
1661
|
+
this.type = new cr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
1662
1662
|
}
|
|
1663
1663
|
}
|
|
1664
1664
|
class H {
|
|
@@ -1698,7 +1698,7 @@ class O {
|
|
|
1698
1698
|
this.from = y(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = y(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
|
|
1699
1699
|
}
|
|
1700
1700
|
}
|
|
1701
|
-
class
|
|
1701
|
+
class Nt {
|
|
1702
1702
|
/**
|
|
1703
1703
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
1704
1704
|
*
|
|
@@ -1819,7 +1819,7 @@ class He {
|
|
|
1819
1819
|
this.role = new se(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
|
-
class
|
|
1822
|
+
class Qr {
|
|
1823
1823
|
/**
|
|
1824
1824
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
1825
1825
|
*
|
|
@@ -1841,7 +1841,7 @@ class Kr {
|
|
|
1841
1841
|
this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
1844
|
-
class
|
|
1844
|
+
class Yr {
|
|
1845
1845
|
/**
|
|
1846
1846
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
1847
1847
|
*
|
|
@@ -1871,7 +1871,7 @@ class Qr {
|
|
|
1871
1871
|
this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.priceHistoryApiUrl = (r == null ? void 0 : r.priceHistoryApiUrl) ?? "", this.recommendationsApiUrl = (r == null ? void 0 : r.recommendationsApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
|
-
class
|
|
1874
|
+
class Xr {
|
|
1875
1875
|
/**
|
|
1876
1876
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
1877
1877
|
*
|
|
@@ -1916,7 +1916,7 @@ class Yr {
|
|
|
1916
1916
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
|
-
class
|
|
1919
|
+
class Zr {
|
|
1920
1920
|
/**
|
|
1921
1921
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
1922
1922
|
*
|
|
@@ -1938,7 +1938,46 @@ class Xr {
|
|
|
1938
1938
|
this.date = y(r == null ? void 0 : r.date) ? C(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
|
-
class
|
|
1941
|
+
class et {
|
|
1942
|
+
/**
|
|
1943
|
+
* Инициализирует экземпляр класса {@link WebSocketConfig}.
|
|
1944
|
+
*
|
|
1945
|
+
* @param data Данные для первоначальной инициализации.
|
|
1946
|
+
*/
|
|
1947
|
+
constructor(r) {
|
|
1948
|
+
/**
|
|
1949
|
+
* @inheritDoc
|
|
1950
|
+
*/
|
|
1951
|
+
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
|
|
1952
|
+
t(this, "broadcaster");
|
|
1953
|
+
/**
|
|
1954
|
+
* @inheritDoc
|
|
1955
|
+
*/
|
|
1956
|
+
t(this, "key");
|
|
1957
|
+
/**
|
|
1958
|
+
* @inheritDoc
|
|
1959
|
+
*/
|
|
1960
|
+
t(this, "wsHost");
|
|
1961
|
+
/**
|
|
1962
|
+
* @inheritDoc
|
|
1963
|
+
*/
|
|
1964
|
+
t(this, "wsPort");
|
|
1965
|
+
/**
|
|
1966
|
+
* @inheritDoc
|
|
1967
|
+
*/
|
|
1968
|
+
t(this, "wssPort");
|
|
1969
|
+
/**
|
|
1970
|
+
* @inheritDoc
|
|
1971
|
+
*/
|
|
1972
|
+
t(this, "forceTLS");
|
|
1973
|
+
/**
|
|
1974
|
+
* @inheritDoc
|
|
1975
|
+
*/
|
|
1976
|
+
t(this, "enabledTransports");
|
|
1977
|
+
this.broadcaster = r.broadcaster ?? "reverb", this.key = r.key ?? "", this.wsHost = r.wsHost ?? "", this.wsPort = r.wsPort ?? 8080, this.wssPort = r.wssPort ?? 8080, this.forceTLS = r.forceTLS ?? !1, this.enabledTransports = r.enabledTransports ?? ["wss"];
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
class Ot {
|
|
1942
1981
|
/**
|
|
1943
1982
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
1944
1983
|
*
|
|
@@ -1946,49 +1985,53 @@ class xt {
|
|
|
1946
1985
|
*/
|
|
1947
1986
|
constructor(r) {
|
|
1948
1987
|
/**
|
|
1949
|
-
*
|
|
1988
|
+
* @inheritDoc
|
|
1950
1989
|
*/
|
|
1951
1990
|
t(this, "environment");
|
|
1952
1991
|
/**
|
|
1953
|
-
*
|
|
1992
|
+
* @inheritDoc
|
|
1954
1993
|
*/
|
|
1955
1994
|
t(this, "devMode");
|
|
1956
1995
|
/**
|
|
1957
|
-
*
|
|
1996
|
+
* @inheritDoc
|
|
1958
1997
|
*/
|
|
1959
1998
|
t(this, "http");
|
|
1960
1999
|
/**
|
|
1961
|
-
*
|
|
2000
|
+
* @inheritDoc
|
|
1962
2001
|
*/
|
|
1963
2002
|
t(this, "deviceTypeByResolution");
|
|
1964
2003
|
/**
|
|
1965
|
-
*
|
|
2004
|
+
* @inheritDoc
|
|
1966
2005
|
*/
|
|
1967
2006
|
t(this, "sentry");
|
|
1968
2007
|
/**
|
|
1969
|
-
*
|
|
2008
|
+
* @inheritDoc
|
|
1970
2009
|
*/
|
|
1971
2010
|
t(this, "urls");
|
|
1972
2011
|
/**
|
|
1973
|
-
*
|
|
2012
|
+
* @inheritDoc
|
|
1974
2013
|
*/
|
|
1975
2014
|
t(this, "version");
|
|
1976
2015
|
/**
|
|
1977
|
-
*
|
|
2016
|
+
* Конфигурация web-сокета.
|
|
2017
|
+
*/
|
|
2018
|
+
t(this, "websocket");
|
|
2019
|
+
/**
|
|
2020
|
+
* @inheritDoc
|
|
1978
2021
|
*/
|
|
1979
2022
|
t(this, "dateFormats");
|
|
1980
2023
|
var e, s, i;
|
|
1981
|
-
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new
|
|
2024
|
+
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Yr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Qr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Xr({
|
|
1982
2025
|
environment: this.environment,
|
|
1983
2026
|
...r == null ? void 0 : r.sentry
|
|
1984
|
-
}), this.urls = r == null ? void 0 : r.urls, this.version = new
|
|
2027
|
+
}), this.urls = r == null ? void 0 : r.urls, this.version = new Zr(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new et(r.websocket) : void 0, this.dateFormats = {
|
|
1985
2028
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
1986
2029
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
1987
2030
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
1988
2031
|
};
|
|
1989
2032
|
}
|
|
1990
2033
|
}
|
|
1991
|
-
class
|
|
2034
|
+
class qt extends h {
|
|
1992
2035
|
/**
|
|
1993
2036
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
1994
2037
|
*
|
|
@@ -2019,7 +2062,7 @@ class Nt extends h {
|
|
|
2019
2062
|
return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
|
|
2020
2063
|
}
|
|
2021
2064
|
}
|
|
2022
|
-
class
|
|
2065
|
+
class Ut extends h {
|
|
2023
2066
|
/**
|
|
2024
2067
|
* Импортирует цены клиента из CSV файла.
|
|
2025
2068
|
*
|
|
@@ -2218,7 +2261,7 @@ class Ot extends h {
|
|
|
2218
2261
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2219
2262
|
}
|
|
2220
2263
|
}
|
|
2221
|
-
class
|
|
2264
|
+
class Gt extends h {
|
|
2222
2265
|
/**
|
|
2223
2266
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2224
2267
|
*
|
|
@@ -2310,7 +2353,7 @@ class qt extends h {
|
|
|
2310
2353
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2311
2354
|
}
|
|
2312
2355
|
}
|
|
2313
|
-
class
|
|
2356
|
+
class jt extends h {
|
|
2314
2357
|
/**
|
|
2315
2358
|
* Возвращает список данных о корневых категориях.
|
|
2316
2359
|
*
|
|
@@ -2370,7 +2413,7 @@ class Ut extends h {
|
|
|
2370
2413
|
showHidden: s,
|
|
2371
2414
|
withPriceCoefficients: e
|
|
2372
2415
|
},
|
|
2373
|
-
(i) => ue(i.data, (o) => new
|
|
2416
|
+
(i) => ue(i.data, (o) => new L(o))
|
|
2374
2417
|
);
|
|
2375
2418
|
}
|
|
2376
2419
|
/**
|
|
@@ -2383,7 +2426,7 @@ class Ut extends h {
|
|
|
2383
2426
|
getCategoryProductsCoefficients(r) {
|
|
2384
2427
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2385
2428
|
const { data: s } = e;
|
|
2386
|
-
return
|
|
2429
|
+
return br(s, (i) => i.map((o) => new qe(o))), s;
|
|
2387
2430
|
});
|
|
2388
2431
|
}
|
|
2389
2432
|
/**
|
|
@@ -2402,7 +2445,7 @@ class Ut extends h {
|
|
|
2402
2445
|
});
|
|
2403
2446
|
}
|
|
2404
2447
|
}
|
|
2405
|
-
class
|
|
2448
|
+
class Ft extends h {
|
|
2406
2449
|
/**
|
|
2407
2450
|
* Возвращает данные об указанном продукте.
|
|
2408
2451
|
*
|
|
@@ -2412,7 +2455,7 @@ class Gt extends h {
|
|
|
2412
2455
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
2413
2456
|
*/
|
|
2414
2457
|
getProductData(r, e = !1) {
|
|
2415
|
-
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new
|
|
2458
|
+
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new L(s.data));
|
|
2416
2459
|
}
|
|
2417
2460
|
/**
|
|
2418
2461
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -2420,7 +2463,7 @@ class Gt extends h {
|
|
|
2420
2463
|
* @param productId Идентификатор продукта.
|
|
2421
2464
|
*/
|
|
2422
2465
|
getPublicProductData(r) {
|
|
2423
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
2466
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new L(e.data));
|
|
2424
2467
|
}
|
|
2425
2468
|
/**
|
|
2426
2469
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -2445,14 +2488,14 @@ class Gt extends h {
|
|
|
2445
2488
|
publicSimpleSearch(r, e = 10) {
|
|
2446
2489
|
return new Promise((s, i) => {
|
|
2447
2490
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2448
|
-
s(o.products.map((c) => new
|
|
2491
|
+
s(o.products.map((c) => new L(c)));
|
|
2449
2492
|
}).catch((o) => {
|
|
2450
2493
|
i(o);
|
|
2451
2494
|
});
|
|
2452
2495
|
});
|
|
2453
2496
|
}
|
|
2454
2497
|
}
|
|
2455
|
-
class
|
|
2498
|
+
class Mt extends h {
|
|
2456
2499
|
/**
|
|
2457
2500
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2458
2501
|
*
|
|
@@ -2514,7 +2557,7 @@ class jt extends h {
|
|
|
2514
2557
|
);
|
|
2515
2558
|
}
|
|
2516
2559
|
}
|
|
2517
|
-
class
|
|
2560
|
+
class Ht extends h {
|
|
2518
2561
|
/**
|
|
2519
2562
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2520
2563
|
*
|
|
@@ -2625,7 +2668,7 @@ class De extends h {
|
|
|
2625
2668
|
return e && (u.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), ve(s) || (u.sort = J(s) ? s : [s]), o && (u = { ...u, ...o }), this.get(r, u, c, p);
|
|
2626
2669
|
}
|
|
2627
2670
|
}
|
|
2628
|
-
class
|
|
2671
|
+
class Bt extends De {
|
|
2629
2672
|
/**
|
|
2630
2673
|
* Возвращает список шаблонов прайс-листа.
|
|
2631
2674
|
*
|
|
@@ -2829,7 +2872,7 @@ class Mt extends De {
|
|
|
2829
2872
|
);
|
|
2830
2873
|
}
|
|
2831
2874
|
}
|
|
2832
|
-
class
|
|
2875
|
+
class zt extends h {
|
|
2833
2876
|
/**
|
|
2834
2877
|
* Возвращает список ролей ценообразования.
|
|
2835
2878
|
*
|
|
@@ -2909,7 +2952,7 @@ class Ht extends h {
|
|
|
2909
2952
|
);
|
|
2910
2953
|
}
|
|
2911
2954
|
}
|
|
2912
|
-
class
|
|
2955
|
+
class Wt extends De {
|
|
2913
2956
|
/**
|
|
2914
2957
|
* Возвращает пагинированный список свойств.
|
|
2915
2958
|
*
|
|
@@ -3302,14 +3345,23 @@ function ze(n, r, e) {
|
|
|
3302
3345
|
return !1;
|
|
3303
3346
|
}), s;
|
|
3304
3347
|
}
|
|
3305
|
-
|
|
3306
|
-
|
|
3348
|
+
function We(n) {
|
|
3349
|
+
const r = [];
|
|
3350
|
+
return n.forEach((e) => {
|
|
3351
|
+
if (r.push(e), e.type === "category") {
|
|
3352
|
+
const s = e;
|
|
3353
|
+
s.products && s.products.length > 0 && r.push(...We(s.products)), s.categories && s.categories.length > 0 && r.push(...We(s.categories));
|
|
3354
|
+
}
|
|
3355
|
+
}), r;
|
|
3307
3356
|
}
|
|
3308
|
-
|
|
3357
|
+
var rt = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n))(rt || {}), d = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(d || {});
|
|
3358
|
+
class tt extends P {
|
|
3309
3359
|
}
|
|
3310
|
-
class
|
|
3360
|
+
class lr extends P {
|
|
3311
3361
|
}
|
|
3312
|
-
class
|
|
3362
|
+
class Et extends P {
|
|
3363
|
+
}
|
|
3364
|
+
class st extends P {
|
|
3313
3365
|
}
|
|
3314
3366
|
class ye extends T {
|
|
3315
3367
|
/**
|
|
@@ -3343,21 +3395,21 @@ class j extends P {
|
|
|
3343
3395
|
});
|
|
3344
3396
|
}
|
|
3345
3397
|
}
|
|
3346
|
-
class
|
|
3398
|
+
class it extends P {
|
|
3347
3399
|
}
|
|
3348
|
-
class
|
|
3400
|
+
class nt extends P {
|
|
3349
3401
|
}
|
|
3350
3402
|
class X extends P {
|
|
3351
3403
|
}
|
|
3352
|
-
class
|
|
3404
|
+
class ot extends P {
|
|
3353
3405
|
}
|
|
3354
|
-
class
|
|
3355
|
-
}
|
|
3356
|
-
class lr extends P {
|
|
3406
|
+
class ct extends P {
|
|
3357
3407
|
}
|
|
3358
3408
|
class pr extends P {
|
|
3359
3409
|
}
|
|
3360
|
-
class
|
|
3410
|
+
class ur extends P {
|
|
3411
|
+
}
|
|
3412
|
+
class ke extends M {
|
|
3361
3413
|
/**
|
|
3362
3414
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3363
3415
|
*
|
|
@@ -3388,7 +3440,7 @@ class Le extends M {
|
|
|
3388
3440
|
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ye(e.currency));
|
|
3389
3441
|
}
|
|
3390
3442
|
}
|
|
3391
|
-
class
|
|
3443
|
+
class Le extends T {
|
|
3392
3444
|
/**
|
|
3393
3445
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3394
3446
|
*
|
|
@@ -3407,7 +3459,7 @@ class ke extends T {
|
|
|
3407
3459
|
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;
|
|
3408
3460
|
}
|
|
3409
3461
|
}
|
|
3410
|
-
class F extends
|
|
3462
|
+
class F extends Le {
|
|
3411
3463
|
/**
|
|
3412
3464
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3413
3465
|
*
|
|
@@ -3442,7 +3494,7 @@ class F extends ke {
|
|
|
3442
3494
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3443
3495
|
}
|
|
3444
3496
|
}
|
|
3445
|
-
class
|
|
3497
|
+
class hr extends T {
|
|
3446
3498
|
/**
|
|
3447
3499
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3448
3500
|
*
|
|
@@ -3509,13 +3561,13 @@ class ur extends T {
|
|
|
3509
3561
|
if (e.bankAccounts) {
|
|
3510
3562
|
const s = [];
|
|
3511
3563
|
e.bankAccounts.forEach((i) => {
|
|
3512
|
-
s.push(new
|
|
3564
|
+
s.push(new ke(i));
|
|
3513
3565
|
}), this.bankAccounts = s;
|
|
3514
3566
|
}
|
|
3515
3567
|
}
|
|
3516
3568
|
}
|
|
3517
3569
|
}
|
|
3518
|
-
class
|
|
3570
|
+
class lt extends hr {
|
|
3519
3571
|
/**
|
|
3520
3572
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3521
3573
|
*
|
|
@@ -3525,7 +3577,7 @@ class ot extends ur {
|
|
|
3525
3577
|
super(r);
|
|
3526
3578
|
}
|
|
3527
3579
|
}
|
|
3528
|
-
class
|
|
3580
|
+
class gr extends hr {
|
|
3529
3581
|
/**
|
|
3530
3582
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
3531
3583
|
*
|
|
@@ -3568,7 +3620,7 @@ class hr extends ur {
|
|
|
3568
3620
|
e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
|
|
3569
3621
|
}
|
|
3570
3622
|
}
|
|
3571
|
-
class
|
|
3623
|
+
class mr extends gr {
|
|
3572
3624
|
/**
|
|
3573
3625
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
3574
3626
|
*
|
|
@@ -3583,7 +3635,7 @@ class gr extends hr {
|
|
|
3583
3635
|
e && (this.kpp = e.kpp ?? "");
|
|
3584
3636
|
}
|
|
3585
3637
|
}
|
|
3586
|
-
class
|
|
3638
|
+
class pt extends mr {
|
|
3587
3639
|
/**
|
|
3588
3640
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3589
3641
|
*
|
|
@@ -3615,13 +3667,13 @@ class we {
|
|
|
3615
3667
|
static createInstance(r) {
|
|
3616
3668
|
switch (r.opf.slug) {
|
|
3617
3669
|
case d.Ic:
|
|
3618
|
-
return new hr(r);
|
|
3619
|
-
case d.UlR:
|
|
3620
3670
|
return new gr(r);
|
|
3671
|
+
case d.UlR:
|
|
3672
|
+
return new mr(r);
|
|
3621
3673
|
case d.UlNr:
|
|
3622
|
-
return new
|
|
3674
|
+
return new pt(r);
|
|
3623
3675
|
default:
|
|
3624
|
-
return new
|
|
3676
|
+
return new lt(r);
|
|
3625
3677
|
}
|
|
3626
3678
|
}
|
|
3627
3679
|
}
|
|
@@ -3640,7 +3692,7 @@ class be extends M {
|
|
|
3640
3692
|
this.isPrimary = e.isPrimary;
|
|
3641
3693
|
}
|
|
3642
3694
|
}
|
|
3643
|
-
class
|
|
3695
|
+
class ut extends F {
|
|
3644
3696
|
/**
|
|
3645
3697
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3646
3698
|
*
|
|
@@ -3668,7 +3720,7 @@ class lt extends F {
|
|
|
3668
3720
|
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new be(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new be(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new be(s))));
|
|
3669
3721
|
}
|
|
3670
3722
|
}
|
|
3671
|
-
class Ce extends
|
|
3723
|
+
class Ce extends Er {
|
|
3672
3724
|
/**
|
|
3673
3725
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
3674
3726
|
*
|
|
@@ -3705,10 +3757,10 @@ class Ce extends Wr {
|
|
|
3705
3757
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
3706
3758
|
*/
|
|
3707
3759
|
t(this, "isTransportCompanyAddress");
|
|
3708
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
3760
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new sr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new F(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
|
|
3709
3761
|
}
|
|
3710
3762
|
}
|
|
3711
|
-
class
|
|
3763
|
+
class Ee extends ge {
|
|
3712
3764
|
/**
|
|
3713
3765
|
* Инициализирует экземпляр класса {@link Client}.
|
|
3714
3766
|
*
|
|
@@ -3762,10 +3814,10 @@ class We extends ge {
|
|
|
3762
3814
|
* Дополнительные данные о клиенте.
|
|
3763
3815
|
*/
|
|
3764
3816
|
t(this, "extraData");
|
|
3765
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => we.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new X(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((p) => new Ce(p))) ?? [], this.channelPrimaryInterest = new
|
|
3817
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => we.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new X(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((p) => new Ce(p))) ?? [], this.channelPrimaryInterest = new lr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new ur(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Re(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
3766
3818
|
}
|
|
3767
3819
|
}
|
|
3768
|
-
class
|
|
3820
|
+
class Vt {
|
|
3769
3821
|
/**
|
|
3770
3822
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
3771
3823
|
*
|
|
@@ -3861,7 +3913,7 @@ class Wt {
|
|
|
3861
3913
|
*/
|
|
3862
3914
|
t(this, "lastOrder");
|
|
3863
3915
|
var e, s, i, o, c, p;
|
|
3864
|
-
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
|
|
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 Le(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
3865
3917
|
createdAt: new O((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
|
|
3866
3918
|
creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
|
|
3867
3919
|
isApproved: (p = r == null ? void 0 : r.lastOrder) == null ? void 0 : p.isApproved
|
|
@@ -3920,7 +3972,7 @@ class Wt {
|
|
|
3920
3972
|
this.partnerGroups = [];
|
|
3921
3973
|
break;
|
|
3922
3974
|
case "contact":
|
|
3923
|
-
this.contact = new
|
|
3975
|
+
this.contact = new Le();
|
|
3924
3976
|
break;
|
|
3925
3977
|
}
|
|
3926
3978
|
return this;
|
|
@@ -3939,7 +3991,7 @@ class Wt {
|
|
|
3939
3991
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.lastLoginDate) != null && i.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
|
|
3940
3992
|
}
|
|
3941
3993
|
}
|
|
3942
|
-
class
|
|
3994
|
+
class fr extends M {
|
|
3943
3995
|
/**
|
|
3944
3996
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
3945
3997
|
*
|
|
@@ -3962,7 +4014,7 @@ class mr extends M {
|
|
|
3962
4014
|
this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new G(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
3963
4015
|
}
|
|
3964
4016
|
}
|
|
3965
|
-
class
|
|
4017
|
+
class ht extends T {
|
|
3966
4018
|
/**
|
|
3967
4019
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
3968
4020
|
*
|
|
@@ -3995,10 +4047,10 @@ class pt extends T {
|
|
|
3995
4047
|
* Список менеджеров.
|
|
3996
4048
|
*/
|
|
3997
4049
|
t(this, "managers");
|
|
3998
|
-
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new
|
|
4050
|
+
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new fr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new X(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new x(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new oe(o)));
|
|
3999
4051
|
}
|
|
4000
4052
|
}
|
|
4001
|
-
class
|
|
4053
|
+
class gt {
|
|
4002
4054
|
/**
|
|
4003
4055
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
4004
4056
|
*
|
|
@@ -4016,7 +4068,7 @@ class ut {
|
|
|
4016
4068
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4017
4069
|
}
|
|
4018
4070
|
}
|
|
4019
|
-
class
|
|
4071
|
+
class Jt extends gt {
|
|
4020
4072
|
/**
|
|
4021
4073
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4022
4074
|
*
|
|
@@ -4047,7 +4099,7 @@ class Vt extends ut {
|
|
|
4047
4099
|
this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
|
|
4048
4100
|
}
|
|
4049
4101
|
}
|
|
4050
|
-
class
|
|
4102
|
+
class Kt {
|
|
4051
4103
|
/**
|
|
4052
4104
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
4053
4105
|
*
|
|
@@ -4065,7 +4117,7 @@ class Et {
|
|
|
4065
4117
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4066
4118
|
}
|
|
4067
4119
|
}
|
|
4068
|
-
class
|
|
4120
|
+
class Qt extends De {
|
|
4069
4121
|
/**
|
|
4070
4122
|
* Возвращает данные об указанном клиенте.
|
|
4071
4123
|
*
|
|
@@ -4073,7 +4125,7 @@ class Jt extends De {
|
|
|
4073
4125
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
4074
4126
|
*/
|
|
4075
4127
|
getClient(r) {
|
|
4076
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
4128
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new Ee(e.data));
|
|
4077
4129
|
}
|
|
4078
4130
|
/**
|
|
4079
4131
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -4115,7 +4167,7 @@ class Jt extends De {
|
|
|
4115
4167
|
const s = r.map((i) => i.id);
|
|
4116
4168
|
return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
|
|
4117
4169
|
let o = [];
|
|
4118
|
-
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new
|
|
4170
|
+
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new ht(c))), o;
|
|
4119
4171
|
});
|
|
4120
4172
|
}
|
|
4121
4173
|
/**
|
|
@@ -4127,7 +4179,7 @@ class Jt extends De {
|
|
|
4127
4179
|
getAllClientContacts(r) {
|
|
4128
4180
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
4129
4181
|
let s = [];
|
|
4130
|
-
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new
|
|
4182
|
+
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new ut(i))), s;
|
|
4131
4183
|
});
|
|
4132
4184
|
}
|
|
4133
4185
|
/**
|
|
@@ -4157,7 +4209,7 @@ class Jt extends De {
|
|
|
4157
4209
|
is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
|
|
4158
4210
|
preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
|
|
4159
4211
|
},
|
|
4160
|
-
(i) => new
|
|
4212
|
+
(i) => new Ee(i.data),
|
|
4161
4213
|
e
|
|
4162
4214
|
);
|
|
4163
4215
|
}
|
|
@@ -4533,7 +4585,7 @@ class Jt extends De {
|
|
|
4533
4585
|
correspondent_account: s.correspondentAccount,
|
|
4534
4586
|
currency_id: s.currency.id
|
|
4535
4587
|
},
|
|
4536
|
-
(o) => new
|
|
4588
|
+
(o) => new ke(o.data),
|
|
4537
4589
|
i
|
|
4538
4590
|
);
|
|
4539
4591
|
}
|
|
@@ -4559,7 +4611,7 @@ class Jt extends De {
|
|
|
4559
4611
|
correspondent_account: s.correspondentAccount,
|
|
4560
4612
|
currency_id: s.currency.id
|
|
4561
4613
|
},
|
|
4562
|
-
(o) => new
|
|
4614
|
+
(o) => new ke(o.data),
|
|
4563
4615
|
i
|
|
4564
4616
|
);
|
|
4565
4617
|
}
|
|
@@ -4792,7 +4844,7 @@ class Jt extends De {
|
|
|
4792
4844
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
4793
4845
|
}
|
|
4794
4846
|
}
|
|
4795
|
-
const
|
|
4847
|
+
const E = class E extends h {
|
|
4796
4848
|
/**
|
|
4797
4849
|
* Инициализирует экземпляр класса {@link HttpCachedRequester}.
|
|
4798
4850
|
*/
|
|
@@ -4812,7 +4864,7 @@ const V = class V extends h {
|
|
|
4812
4864
|
*/
|
|
4813
4865
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
4814
4866
|
static getCachedResponse(e) {
|
|
4815
|
-
const s =
|
|
4867
|
+
const s = E.responseDataCache.get(e);
|
|
4816
4868
|
if (s && s.validTo > /* @__PURE__ */ new Date())
|
|
4817
4869
|
return s.val;
|
|
4818
4870
|
}
|
|
@@ -4823,8 +4875,8 @@ const V = class V extends h {
|
|
|
4823
4875
|
* @param data Данные для кэширования.
|
|
4824
4876
|
*/
|
|
4825
4877
|
cacheResponse(e, s) {
|
|
4826
|
-
|
|
4827
|
-
validTo:
|
|
4878
|
+
E.responseDataCache.set(e, {
|
|
4879
|
+
validTo: Ir(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
4828
4880
|
val: s
|
|
4829
4881
|
});
|
|
4830
4882
|
}
|
|
@@ -4839,7 +4891,7 @@ const V = class V extends h {
|
|
|
4839
4891
|
*/
|
|
4840
4892
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
4841
4893
|
getTypedDataArrayRequester(e, s, i = !1, o = {}) {
|
|
4842
|
-
const c = s + (ve(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ?
|
|
4894
|
+
const c = s + (ve(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? E.getCachedResponse(c) : void 0;
|
|
4843
4895
|
return p ? Promise.resolve(p) : this.get(s, o).then((u) => {
|
|
4844
4896
|
const m = u.map((v) => Ue.instanceInitializer(e, v));
|
|
4845
4897
|
return i && m && this.cacheResponse(s, m), m;
|
|
@@ -4849,9 +4901,9 @@ const V = class V extends h {
|
|
|
4849
4901
|
/**
|
|
4850
4902
|
* Кэш результатов запросов.
|
|
4851
4903
|
*/
|
|
4852
|
-
t(
|
|
4853
|
-
let pe =
|
|
4854
|
-
class
|
|
4904
|
+
t(E, "responseDataCache", /* @__PURE__ */ new Map());
|
|
4905
|
+
let pe = E;
|
|
4906
|
+
class Yt extends h {
|
|
4855
4907
|
/**
|
|
4856
4908
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
4857
4909
|
*
|
|
@@ -4865,7 +4917,7 @@ class Kt extends h {
|
|
|
4865
4917
|
});
|
|
4866
4918
|
}
|
|
4867
4919
|
}
|
|
4868
|
-
class
|
|
4920
|
+
class Xt extends h {
|
|
4869
4921
|
/**
|
|
4870
4922
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
4871
4923
|
*
|
|
@@ -4893,7 +4945,7 @@ class Qt extends h {
|
|
|
4893
4945
|
const i = this.get(
|
|
4894
4946
|
`internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
|
|
4895
4947
|
{ params: e },
|
|
4896
|
-
(c) => new
|
|
4948
|
+
(c) => new L(c.data)
|
|
4897
4949
|
);
|
|
4898
4950
|
return i.catch((c) => {
|
|
4899
4951
|
this.errorResponseHandler(c, s);
|
|
@@ -4936,29 +4988,29 @@ class Qt extends h {
|
|
|
4936
4988
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
|
|
4937
4989
|
}
|
|
4938
4990
|
}
|
|
4939
|
-
class
|
|
4991
|
+
class Zt {
|
|
4940
4992
|
/**
|
|
4941
4993
|
* Возвращает диапазон дат по умолчанию.
|
|
4942
4994
|
*/
|
|
4943
4995
|
static defaultDateRanges() {
|
|
4944
|
-
const r =
|
|
4996
|
+
const r = dr(/* @__PURE__ */ new Date(), 1);
|
|
4945
4997
|
return {
|
|
4946
4998
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
4947
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
4948
|
-
today: { label: "Сегодня", from:
|
|
4949
|
-
yesterday: { label: "Вчера", from:
|
|
4950
|
-
tomorrow: { label: "Завтра", from: Lr(), to:
|
|
4999
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: Ur(r), to: qr(r) },
|
|
5000
|
+
today: { label: "Сегодня", from: er(), to: Or() },
|
|
5001
|
+
yesterday: { label: "Вчера", from: Nr(), to: xr() },
|
|
5002
|
+
tomorrow: { label: "Завтра", from: Lr(), to: kr() }
|
|
4951
5003
|
};
|
|
4952
5004
|
}
|
|
4953
5005
|
}
|
|
4954
|
-
const
|
|
5006
|
+
const V = class V {
|
|
4955
5007
|
/**
|
|
4956
5008
|
* Устанавливает список единиц измерения линейной величины.
|
|
4957
5009
|
*
|
|
4958
5010
|
* @param linearValues Список единиц измерения линейной величины.
|
|
4959
5011
|
*/
|
|
4960
5012
|
static setLinearValues(r) {
|
|
4961
|
-
|
|
5013
|
+
V.linearValues = r;
|
|
4962
5014
|
}
|
|
4963
5015
|
/**
|
|
4964
5016
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
@@ -4966,7 +5018,7 @@ const E = class E {
|
|
|
4966
5018
|
* @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
|
|
4967
5019
|
*/
|
|
4968
5020
|
static productIsMeasurable(r) {
|
|
4969
|
-
return
|
|
5021
|
+
return V.linearValues.includes(r.unit);
|
|
4970
5022
|
}
|
|
4971
5023
|
/**
|
|
4972
5024
|
* Возвращает кратность количества для указанного товара.
|
|
@@ -4975,7 +5027,7 @@ const E = class E {
|
|
|
4975
5027
|
*/
|
|
4976
5028
|
static getProductMultiplicity(r) {
|
|
4977
5029
|
var e, s;
|
|
4978
|
-
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !
|
|
5030
|
+
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !V.productIsMeasurable(r) ? r.properties.minCount : 1;
|
|
4979
5031
|
}
|
|
4980
5032
|
/**
|
|
4981
5033
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -4990,9 +5042,9 @@ const E = class E {
|
|
|
4990
5042
|
/**
|
|
4991
5043
|
* Список единиц измерения линейной величины.
|
|
4992
5044
|
*/
|
|
4993
|
-
t(
|
|
4994
|
-
let Ve =
|
|
4995
|
-
class
|
|
5045
|
+
t(V, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5046
|
+
let Ve = V;
|
|
5047
|
+
class es {
|
|
4996
5048
|
/**
|
|
4997
5049
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
4998
5050
|
*/
|
|
@@ -5008,7 +5060,7 @@ class Xt {
|
|
|
5008
5060
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5009
5061
|
}
|
|
5010
5062
|
}
|
|
5011
|
-
class
|
|
5063
|
+
class mt extends pe {
|
|
5012
5064
|
/**
|
|
5013
5065
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5014
5066
|
*/
|
|
@@ -5020,7 +5072,7 @@ class ht extends pe {
|
|
|
5020
5072
|
return this.cacheResponse(r, i), i;
|
|
5021
5073
|
}
|
|
5022
5074
|
}
|
|
5023
|
-
class
|
|
5075
|
+
class yr extends fr {
|
|
5024
5076
|
/**
|
|
5025
5077
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
5026
5078
|
*
|
|
@@ -5081,7 +5133,7 @@ class fr extends mr {
|
|
|
5081
5133
|
}, this.attachedUser = new G(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new x(e == null ? void 0 : e.salesDirection), this.pendingAt = y(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = y(e == null ? void 0 : e.processedAt) ? C(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
|
|
5082
5134
|
}
|
|
5083
5135
|
}
|
|
5084
|
-
class
|
|
5136
|
+
class ft extends M {
|
|
5085
5137
|
/**
|
|
5086
5138
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5087
5139
|
*
|
|
@@ -5164,7 +5216,7 @@ class gt extends M {
|
|
|
5164
5216
|
this.product = new Q(e.product), this.quantity = e.quantity, this.currency = e.currency, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing;
|
|
5165
5217
|
}
|
|
5166
5218
|
}
|
|
5167
|
-
class
|
|
5219
|
+
class yt extends yr {
|
|
5168
5220
|
/**
|
|
5169
5221
|
* Инициализирует экземпляр класса {@link Order}.
|
|
5170
5222
|
*
|
|
@@ -5204,10 +5256,10 @@ class mt extends fr {
|
|
|
5204
5256
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
5205
5257
|
*/
|
|
5206
5258
|
t(this, "isAllowProcessingWithoutPayment");
|
|
5207
|
-
this.products = (e.products ?? []).map((s) => new
|
|
5259
|
+
this.products = (e.products ?? []).map((s) => new ft(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? we.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5208
5260
|
}
|
|
5209
5261
|
}
|
|
5210
|
-
class
|
|
5262
|
+
class rs extends De {
|
|
5211
5263
|
/**
|
|
5212
5264
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5213
5265
|
*
|
|
@@ -5220,7 +5272,7 @@ class Zt extends De {
|
|
|
5220
5272
|
getOrders(r, e, s) {
|
|
5221
5273
|
return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
|
|
5222
5274
|
const o = { ...i.data };
|
|
5223
|
-
return o.data = o.data.map((c) => new
|
|
5275
|
+
return o.data = o.data.map((c) => new yr(c)), o;
|
|
5224
5276
|
});
|
|
5225
5277
|
}
|
|
5226
5278
|
/**
|
|
@@ -5238,7 +5290,7 @@ class Zt extends De {
|
|
|
5238
5290
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
5239
5291
|
*/
|
|
5240
5292
|
getOrder(r) {
|
|
5241
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
5293
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new yt(e.data));
|
|
5242
5294
|
}
|
|
5243
5295
|
}
|
|
5244
5296
|
class _e {
|
|
@@ -5268,12 +5320,12 @@ class _e {
|
|
|
5268
5320
|
* Источник клиентской цены.
|
|
5269
5321
|
*/
|
|
5270
5322
|
t(this, "source");
|
|
5271
|
-
this.client = new ge(r == null ? void 0 : r.client), this.product = new
|
|
5323
|
+
this.client = new ge(r == null ? void 0 : r.client), this.product = new L(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;
|
|
5272
5324
|
}
|
|
5273
5325
|
}
|
|
5274
5326
|
const Se = (n) => {
|
|
5275
5327
|
var r, e, s, i, o;
|
|
5276
|
-
return n ?
|
|
5328
|
+
return n ? Xe(
|
|
5277
5329
|
{
|
|
5278
5330
|
cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
|
|
5279
5331
|
clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
|
|
@@ -5282,13 +5334,13 @@ const Se = (n) => {
|
|
|
5282
5334
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
5283
5335
|
hideNotActive: n.hideNotActive
|
|
5284
5336
|
},
|
|
5285
|
-
(c) => $(c) || (J(c) ||
|
|
5337
|
+
(c) => $(c) || (J(c) || Ze(c)) && ve(c)
|
|
5286
5338
|
) : {};
|
|
5287
|
-
},
|
|
5339
|
+
}, Je = (n) => {
|
|
5288
5340
|
const r = {};
|
|
5289
5341
|
return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
|
|
5290
5342
|
};
|
|
5291
|
-
class
|
|
5343
|
+
class ts extends h {
|
|
5292
5344
|
/**
|
|
5293
5345
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
5294
5346
|
*
|
|
@@ -5302,7 +5354,7 @@ class es extends h {
|
|
|
5302
5354
|
return this.get(
|
|
5303
5355
|
`/internal/price/products/${r}/analyze`,
|
|
5304
5356
|
{
|
|
5305
|
-
...
|
|
5357
|
+
...Je(e),
|
|
5306
5358
|
filters: Se(s)
|
|
5307
5359
|
},
|
|
5308
5360
|
(i) => i.data.map((o) => new _e(o))
|
|
@@ -5321,7 +5373,7 @@ class es extends h {
|
|
|
5321
5373
|
return this.get(
|
|
5322
5374
|
`/internal/price/categories/${r}/analyze`,
|
|
5323
5375
|
{
|
|
5324
|
-
...
|
|
5376
|
+
...Je(e),
|
|
5325
5377
|
filters: Se(s)
|
|
5326
5378
|
},
|
|
5327
5379
|
(i) => i.data.map((o) => new _e(o))
|
|
@@ -5349,7 +5401,7 @@ class es extends h {
|
|
|
5349
5401
|
);
|
|
5350
5402
|
}
|
|
5351
5403
|
}
|
|
5352
|
-
class
|
|
5404
|
+
class wt {
|
|
5353
5405
|
/**
|
|
5354
5406
|
* Инициализирует экземпляр класса {@link PriceHistoryItem}.
|
|
5355
5407
|
*
|
|
@@ -5399,7 +5451,7 @@ class ft {
|
|
|
5399
5451
|
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = y(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ne(r.product) : void 0, this.client = r.client ? new G(r.client) : void 0, this.executor = r.executor ? new G(r.executor) : void 0, this.currency = r.currency ? new ye(r.currency) : void 0;
|
|
5400
5452
|
}
|
|
5401
5453
|
}
|
|
5402
|
-
class
|
|
5454
|
+
class Ct extends ne {
|
|
5403
5455
|
/**
|
|
5404
5456
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
5405
5457
|
*
|
|
@@ -5411,10 +5463,10 @@ class yt extends ne {
|
|
|
5411
5463
|
* @inheritDoc
|
|
5412
5464
|
*/
|
|
5413
5465
|
t(this, "history");
|
|
5414
|
-
this.history = ue(e.history, (s) => new
|
|
5466
|
+
this.history = ue(e.history, (s) => new wt(s));
|
|
5415
5467
|
}
|
|
5416
5468
|
}
|
|
5417
|
-
class
|
|
5469
|
+
class ss extends h {
|
|
5418
5470
|
/**
|
|
5419
5471
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
5420
5472
|
*/
|
|
@@ -5430,19 +5482,19 @@ class rs extends h {
|
|
|
5430
5482
|
*/
|
|
5431
5483
|
getProductPriceHistory(r) {
|
|
5432
5484
|
var i, o, c, p;
|
|
5433
|
-
const e = D.getConfig().dateFormats.api, s =
|
|
5485
|
+
const e = D.getConfig().dateFormats.api, s = Xe(
|
|
5434
5486
|
xe(r, {
|
|
5435
5487
|
costDate: {
|
|
5436
5488
|
from: Ie((i = r.costDate) == null ? void 0 : i.from) ? q(r.costDate.from, e) : (o = r.costDate) == null ? void 0 : o.from,
|
|
5437
5489
|
to: Ie((c = r.costDate) == null ? void 0 : c.to) ? q(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
|
|
5438
5490
|
}
|
|
5439
5491
|
}),
|
|
5440
|
-
(u) => $(u) || (J(u) ||
|
|
5492
|
+
(u) => $(u) || (J(u) || Ze(u)) && ve(u)
|
|
5441
5493
|
);
|
|
5442
|
-
return this.get("/internal/history", s, (u) => ue(u.data, (m) => new
|
|
5494
|
+
return this.get("/internal/history", s, (u) => ue(u.data, (m) => new Ct(m)));
|
|
5443
5495
|
}
|
|
5444
5496
|
}
|
|
5445
|
-
class
|
|
5497
|
+
class Ke {
|
|
5446
5498
|
/**
|
|
5447
5499
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
5448
5500
|
*
|
|
@@ -5460,7 +5512,7 @@ class Je {
|
|
|
5460
5512
|
r != null && r.products && (this.products = r.products.map((e) => new ne(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new ne(e)));
|
|
5461
5513
|
}
|
|
5462
5514
|
}
|
|
5463
|
-
class
|
|
5515
|
+
class is extends h {
|
|
5464
5516
|
/**
|
|
5465
5517
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
5466
5518
|
*/
|
|
@@ -5474,7 +5526,7 @@ class ts extends h {
|
|
|
5474
5526
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
5475
5527
|
*/
|
|
5476
5528
|
getProductCategoryRecommendations(r) {
|
|
5477
|
-
return this.get(`/internal/recommendations/categories/${r.id}`, {}, (e) => new
|
|
5529
|
+
return this.get(`/internal/recommendations/categories/${r.id}`, {}, (e) => new Ke(e.data));
|
|
5478
5530
|
}
|
|
5479
5531
|
/**
|
|
5480
5532
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -5483,7 +5535,7 @@ class ts extends h {
|
|
|
5483
5535
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
5484
5536
|
*/
|
|
5485
5537
|
getProductRecommendations(r) {
|
|
5486
|
-
return this.get(`/internal/recommendations/products/${r.id}`, {}, (e) => new
|
|
5538
|
+
return this.get(`/internal/recommendations/products/${r.id}`, {}, (e) => new Ke(e.data));
|
|
5487
5539
|
}
|
|
5488
5540
|
/**
|
|
5489
5541
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -5521,20 +5573,20 @@ class a extends pe {
|
|
|
5521
5573
|
* и использовать в случае аналогичных запросов.
|
|
5522
5574
|
*/
|
|
5523
5575
|
getReference(r, e = !1) {
|
|
5524
|
-
return this.getTypedDataArrayRequester(
|
|
5576
|
+
return this.getTypedDataArrayRequester(tt, `/internal/references/${r}`, e);
|
|
5525
5577
|
}
|
|
5526
5578
|
/**
|
|
5527
5579
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
5528
5580
|
* первичного интереса.
|
|
5529
5581
|
*/
|
|
5530
5582
|
getChannelPrimaryInterest() {
|
|
5531
|
-
return this.getTypedDataArrayRequester(
|
|
5583
|
+
return this.getTypedDataArrayRequester(lr, "/internal/references/channel-primary-interest", !0);
|
|
5532
5584
|
}
|
|
5533
5585
|
/**
|
|
5534
5586
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
5535
5587
|
*/
|
|
5536
5588
|
getContactPositions() {
|
|
5537
|
-
return this.getTypedDataArrayRequester(
|
|
5589
|
+
return this.getTypedDataArrayRequester(st, "/internal/references/contact-position", !0);
|
|
5538
5590
|
}
|
|
5539
5591
|
/**
|
|
5540
5592
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
@@ -5559,25 +5611,25 @@ class a extends pe {
|
|
|
5559
5611
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
5560
5612
|
*/
|
|
5561
5613
|
getOrderPaymentStatuses() {
|
|
5562
|
-
return this.getTypedDataArrayRequester(
|
|
5614
|
+
return this.getTypedDataArrayRequester(it, "/public/references/order-payment-status", !0);
|
|
5563
5615
|
}
|
|
5564
5616
|
/**
|
|
5565
5617
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
5566
5618
|
*/
|
|
5567
5619
|
getOrderStatuses() {
|
|
5568
|
-
return this.getTypedDataArrayRequester(
|
|
5620
|
+
return this.getTypedDataArrayRequester(nt, "/public/references/order-status", !0);
|
|
5569
5621
|
}
|
|
5570
5622
|
/**
|
|
5571
5623
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
5572
5624
|
*/
|
|
5573
5625
|
getPaymentTypes() {
|
|
5574
|
-
return this.getTypedDataArrayRequester(
|
|
5626
|
+
return this.getTypedDataArrayRequester(ot, "/public/references/payment-type", !0);
|
|
5575
5627
|
}
|
|
5576
5628
|
/**
|
|
5577
5629
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
5578
5630
|
*/
|
|
5579
5631
|
getResourceTypes() {
|
|
5580
|
-
return this.getTypedDataArrayRequester(
|
|
5632
|
+
return this.getTypedDataArrayRequester(pr, "/internal/references/resource-type", !0);
|
|
5581
5633
|
}
|
|
5582
5634
|
/**
|
|
5583
5635
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
@@ -5589,7 +5641,7 @@ class a extends pe {
|
|
|
5589
5641
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
5590
5642
|
*/
|
|
5591
5643
|
getSourcePrimaryInterest() {
|
|
5592
|
-
return this.getTypedDataArrayRequester(
|
|
5644
|
+
return this.getTypedDataArrayRequester(ur, "/internal/references/source-primary-interest", !0);
|
|
5593
5645
|
}
|
|
5594
5646
|
/**
|
|
5595
5647
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -5631,7 +5683,7 @@ class a extends pe {
|
|
|
5631
5683
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
5632
5684
|
*/
|
|
5633
5685
|
getPropertyTypes() {
|
|
5634
|
-
return this.getTypedDataArrayRequester(
|
|
5686
|
+
return this.getTypedDataArrayRequester(cr, "/internal/references/property-type", !0);
|
|
5635
5687
|
}
|
|
5636
5688
|
/**
|
|
5637
5689
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
@@ -5643,7 +5695,7 @@ class a extends pe {
|
|
|
5643
5695
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
5644
5696
|
*/
|
|
5645
5697
|
getProductFileType() {
|
|
5646
|
-
return this.getTypedDataArrayRequester(
|
|
5698
|
+
return this.getTypedDataArrayRequester(ct, "/public/references/product-file-type", !0);
|
|
5647
5699
|
}
|
|
5648
5700
|
}
|
|
5649
5701
|
const A = Z("__references_private", () => {
|
|
@@ -5722,7 +5774,7 @@ const A = Z("__references_private", () => {
|
|
|
5722
5774
|
*/
|
|
5723
5775
|
priceCoefficientsReference: l
|
|
5724
5776
|
};
|
|
5725
|
-
}),
|
|
5777
|
+
}), ns = Z("references", () => {
|
|
5726
5778
|
const n = R(() => {
|
|
5727
5779
|
const l = A();
|
|
5728
5780
|
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(a).getChannelPrimaryInterest().then((g) => {
|
|
@@ -5790,7 +5842,7 @@ const A = Z("__references_private", () => {
|
|
|
5790
5842
|
}).catch(w)), l.deliveryTypeReference;
|
|
5791
5843
|
}), b = R(() => {
|
|
5792
5844
|
const l = A();
|
|
5793
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(
|
|
5845
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(mt).getManagers().then((g) => {
|
|
5794
5846
|
l.managersList = g;
|
|
5795
5847
|
}).catch(w)), l.managersList;
|
|
5796
5848
|
}), _ = R(() => {
|
|
@@ -5880,7 +5932,7 @@ const A = Z("__references_private", () => {
|
|
|
5880
5932
|
priceCoefficientsReference: U
|
|
5881
5933
|
};
|
|
5882
5934
|
});
|
|
5883
|
-
class
|
|
5935
|
+
class vt {
|
|
5884
5936
|
/**
|
|
5885
5937
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
5886
5938
|
*
|
|
@@ -5898,7 +5950,7 @@ class wt {
|
|
|
5898
5950
|
this.name = r.name, this.content = r.content;
|
|
5899
5951
|
}
|
|
5900
5952
|
}
|
|
5901
|
-
class
|
|
5953
|
+
class Qe {
|
|
5902
5954
|
/**
|
|
5903
5955
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
5904
5956
|
*
|
|
@@ -5934,10 +5986,10 @@ class Ke {
|
|
|
5934
5986
|
*/
|
|
5935
5987
|
t(this, "meta");
|
|
5936
5988
|
var e;
|
|
5937
|
-
this.resourceType = new
|
|
5989
|
+
this.resourceType = new pr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new vt(s))) ?? [];
|
|
5938
5990
|
}
|
|
5939
5991
|
}
|
|
5940
|
-
class
|
|
5992
|
+
class os extends h {
|
|
5941
5993
|
/**
|
|
5942
5994
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
5943
5995
|
*
|
|
@@ -5945,7 +5997,7 @@ class is extends h {
|
|
|
5945
5997
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
5946
5998
|
*/
|
|
5947
5999
|
getResourceSeoData(r, e) {
|
|
5948
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new
|
|
6000
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new Qe(s.data));
|
|
5949
6001
|
}
|
|
5950
6002
|
/**
|
|
5951
6003
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -5956,7 +6008,7 @@ class is extends h {
|
|
|
5956
6008
|
* в случае ошибок в запросах.
|
|
5957
6009
|
*/
|
|
5958
6010
|
saveResourceSeoData(r, e = {}) {
|
|
5959
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new
|
|
6011
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new Qe(s.data), e);
|
|
5960
6012
|
}
|
|
5961
6013
|
/**
|
|
5962
6014
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -5968,7 +6020,7 @@ class is extends h {
|
|
|
5968
6020
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
5969
6021
|
}
|
|
5970
6022
|
}
|
|
5971
|
-
class
|
|
6023
|
+
class cs extends h {
|
|
5972
6024
|
/**
|
|
5973
6025
|
* Возвращает подсказки по адресам.
|
|
5974
6026
|
*
|
|
@@ -6015,8 +6067,8 @@ class ns extends h {
|
|
|
6015
6067
|
});
|
|
6016
6068
|
}
|
|
6017
6069
|
}
|
|
6018
|
-
var
|
|
6019
|
-
class
|
|
6070
|
+
var Pt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Pt || {});
|
|
6071
|
+
class Rt extends or {
|
|
6020
6072
|
/**
|
|
6021
6073
|
* Инициализирует экземпляр класса {@link User}.
|
|
6022
6074
|
*
|
|
@@ -6039,7 +6091,7 @@ class vt extends nr {
|
|
|
6039
6091
|
this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo;
|
|
6040
6092
|
}
|
|
6041
6093
|
}
|
|
6042
|
-
class
|
|
6094
|
+
class ls extends h {
|
|
6043
6095
|
/**
|
|
6044
6096
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
6045
6097
|
*/
|
|
@@ -6055,16 +6107,16 @@ class os extends h {
|
|
|
6055
6107
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
6056
6108
|
}
|
|
6057
6109
|
}
|
|
6058
|
-
class
|
|
6110
|
+
class At extends h {
|
|
6059
6111
|
/**
|
|
6060
6112
|
* Возвращает данные о текущем пользователе.
|
|
6061
6113
|
*/
|
|
6062
6114
|
// eslint-disable-next-line class-methods-use-this
|
|
6063
6115
|
getCurrentUser() {
|
|
6064
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
6116
|
+
return this.get("/internal/users/info", {}, (r) => new Rt(r.data));
|
|
6065
6117
|
}
|
|
6066
6118
|
}
|
|
6067
|
-
const
|
|
6119
|
+
const Dt = Z("__user_state_private", () => {
|
|
6068
6120
|
const n = f({}), r = f(void 0);
|
|
6069
6121
|
return {
|
|
6070
6122
|
/**
|
|
@@ -6076,20 +6128,20 @@ const Rt = Z("__user_state_private", () => {
|
|
|
6076
6128
|
*/
|
|
6077
6129
|
currentUser: r
|
|
6078
6130
|
};
|
|
6079
|
-
}),
|
|
6131
|
+
}), ps = Z("user_state", () => ({
|
|
6080
6132
|
/**
|
|
6081
6133
|
* Данные о текущем пользователе.
|
|
6082
6134
|
*/
|
|
6083
6135
|
currentUser: R(() => {
|
|
6084
|
-
const r =
|
|
6085
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(
|
|
6136
|
+
const r = Dt();
|
|
6137
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(At).getCurrentUser().then((e) => {
|
|
6086
6138
|
r.currentUser = e;
|
|
6087
6139
|
}).catch(w).finally(() => {
|
|
6088
6140
|
r.dataLoaderList.currentUser = !1;
|
|
6089
6141
|
})), r.currentUser;
|
|
6090
6142
|
})
|
|
6091
6143
|
}));
|
|
6092
|
-
class
|
|
6144
|
+
class us {
|
|
6093
6145
|
/**
|
|
6094
6146
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
6095
6147
|
*
|
|
@@ -6113,147 +6165,149 @@ class ls {
|
|
|
6113
6165
|
}
|
|
6114
6166
|
}
|
|
6115
6167
|
export {
|
|
6116
|
-
|
|
6117
|
-
|
|
6168
|
+
tt as AnyReference,
|
|
6169
|
+
Ot as AppBaseConfig,
|
|
6118
6170
|
D as AppConfigProvider,
|
|
6119
|
-
|
|
6171
|
+
ke as BankAccount,
|
|
6120
6172
|
De as BasePaginationProvider,
|
|
6121
|
-
|
|
6173
|
+
zr as CalculationTypeEnum,
|
|
6122
6174
|
me as Cart,
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6175
|
+
Br as CartItem,
|
|
6176
|
+
Hr as CartItemBase,
|
|
6177
|
+
Lt as CartProvider,
|
|
6178
|
+
qt as CatalogProvider,
|
|
6179
|
+
rr as CatalogableItem,
|
|
6128
6180
|
B as Category,
|
|
6129
6181
|
He as CategoryPricingRule,
|
|
6130
|
-
|
|
6131
|
-
|
|
6182
|
+
lr as ChannelPrimaryInterest,
|
|
6183
|
+
Et as City,
|
|
6132
6184
|
je as CityWithRegionAndCountry,
|
|
6133
|
-
|
|
6134
|
-
|
|
6185
|
+
Ee as Client,
|
|
6186
|
+
ht as ClientAdditionalData,
|
|
6135
6187
|
fe as ClientCategory,
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6188
|
+
Qt as ClientDataProvider,
|
|
6189
|
+
Ut as ClientPriceProvider,
|
|
6190
|
+
Gt as ClientPriceTemplateProvider,
|
|
6139
6191
|
Q as ClientProduct,
|
|
6140
|
-
|
|
6141
|
-
|
|
6192
|
+
Mt as ClientProductCategoryDataProvider,
|
|
6193
|
+
Ht as ClientProductDataProvider,
|
|
6142
6194
|
ge as ClientShortInfo,
|
|
6143
|
-
|
|
6144
|
-
|
|
6195
|
+
rt as ClientsAdditionalDataRequestTypeEnum,
|
|
6196
|
+
Vt as ClientsListFilters,
|
|
6145
6197
|
ne as CodedIdentity,
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6198
|
+
Xt as ConfiguratorProvider,
|
|
6199
|
+
Le as Contact,
|
|
6200
|
+
Jr as ContactLinks,
|
|
6149
6201
|
F as ContactPerson,
|
|
6150
|
-
|
|
6151
|
-
|
|
6202
|
+
ut as ContactPersonRelated,
|
|
6203
|
+
st as ContactPosition,
|
|
6152
6204
|
be as ContactRelation,
|
|
6153
|
-
|
|
6205
|
+
hr as ContragentBase,
|
|
6154
6206
|
we as ContragentFactory,
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6207
|
+
gr as ContragentIc,
|
|
6208
|
+
lt as ContragentPerson,
|
|
6209
|
+
pt as ContragentUlNr,
|
|
6210
|
+
mr as ContragentUlR,
|
|
6159
6211
|
Ge as CostSourceEnum,
|
|
6160
6212
|
Y as Country,
|
|
6161
6213
|
ye as Currency,
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6214
|
+
cs as DataSuggestionProvider,
|
|
6215
|
+
Jt as DataTablePagination,
|
|
6216
|
+
gt as DataTablePaginationRequestParams,
|
|
6217
|
+
Kt as DataTableSortRequestParams,
|
|
6218
|
+
Zt as DateTimeProvider,
|
|
6219
|
+
Er as DeletableNamedIdentity,
|
|
6168
6220
|
Ce as DeliveryAddress,
|
|
6169
6221
|
K as DeliveryType,
|
|
6170
|
-
|
|
6171
|
-
|
|
6222
|
+
kt as DetailedJwtPayload,
|
|
6223
|
+
Qr as DeviceTypeResolutionConfig,
|
|
6172
6224
|
Vr as DiscountShortInfo,
|
|
6173
|
-
|
|
6225
|
+
us as FieldValidationResultData,
|
|
6174
6226
|
le as FilterGroup,
|
|
6175
6227
|
Be as FilterItem,
|
|
6176
6228
|
Fe as FilterOpEnum,
|
|
6177
|
-
|
|
6178
|
-
|
|
6229
|
+
sr as GeoCoordinates,
|
|
6230
|
+
Fr as HiddenCatalogableItem,
|
|
6179
6231
|
pe as HttpCachedRequester,
|
|
6180
|
-
|
|
6232
|
+
Yr as HttpParamsConfig,
|
|
6181
6233
|
h as HttpRequester,
|
|
6182
6234
|
M as Identity,
|
|
6183
|
-
|
|
6235
|
+
Mr as Image,
|
|
6184
6236
|
ie as JwtPayload,
|
|
6185
6237
|
Ae as Manager,
|
|
6186
6238
|
oe as ManagerCommon,
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6239
|
+
es as ManagerDataFactory,
|
|
6240
|
+
mt as ManagerDataProvider,
|
|
6241
|
+
vt as MetaTagItem,
|
|
6190
6242
|
T as NamedIdentity,
|
|
6191
6243
|
j as Opf,
|
|
6192
6244
|
d as OpfEnum,
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6245
|
+
yt as Order,
|
|
6246
|
+
yr as OrderInfo,
|
|
6247
|
+
it as OrderPaymentStatus,
|
|
6248
|
+
ft as OrderProduct,
|
|
6249
|
+
fr as OrderShortInfo,
|
|
6250
|
+
nt as OrderStatus,
|
|
6251
|
+
rs as OrdersDataProvider,
|
|
6200
6252
|
X as PartnerGroup,
|
|
6201
|
-
|
|
6202
|
-
|
|
6253
|
+
ot as PaymentType,
|
|
6254
|
+
xt as PreferencesStorageProvider,
|
|
6203
6255
|
_e as PriceAnalyze,
|
|
6204
|
-
|
|
6256
|
+
ts as PriceAnalyzeProvider,
|
|
6205
6257
|
Pe as PriceCoefficient,
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6258
|
+
tr as PriceCoefficientEnum,
|
|
6259
|
+
ss as PriceHistoryDataProvider,
|
|
6260
|
+
wt as PriceHistoryItem,
|
|
6209
6261
|
z as PriceTemplate,
|
|
6210
6262
|
$e as PriceTemplateCategory,
|
|
6211
6263
|
re as PriceTemplateClient,
|
|
6212
|
-
|
|
6264
|
+
nr as PriceTemplateICatalogableItem,
|
|
6213
6265
|
Te as PriceTemplateProduct,
|
|
6214
|
-
|
|
6266
|
+
Bt as PriceTemplateProvider,
|
|
6215
6267
|
se as PricingRole,
|
|
6216
|
-
|
|
6268
|
+
zt as PricingRoleProvider,
|
|
6217
6269
|
de as PrimaryCatalogableItem,
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6270
|
+
L as Product,
|
|
6271
|
+
jt as ProductCategoryDataProvider,
|
|
6272
|
+
Ft as ProductDataProvider,
|
|
6273
|
+
ct as ProductFileType,
|
|
6222
6274
|
qe as ProductPriceCoefficient,
|
|
6223
|
-
|
|
6224
|
-
|
|
6275
|
+
Ct as ProductPriceHistory,
|
|
6276
|
+
Wt as PropertiesProvider,
|
|
6225
6277
|
te as Property,
|
|
6226
|
-
|
|
6227
|
-
|
|
6278
|
+
cr as PropertyType,
|
|
6279
|
+
Wr as PropertyTypeEnum,
|
|
6228
6280
|
H as PropertyValue,
|
|
6229
|
-
|
|
6230
|
-
|
|
6281
|
+
is as RecommendationsDataProvider,
|
|
6282
|
+
Ke as RecommendationsList,
|
|
6231
6283
|
P as Reference,
|
|
6232
6284
|
a as ReferenceDataProvider,
|
|
6233
6285
|
ce as Region,
|
|
6234
|
-
|
|
6286
|
+
pr as ResourceType,
|
|
6235
6287
|
x as SalesDirection,
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6288
|
+
Xr as SentryConfig,
|
|
6289
|
+
Qe as Seo,
|
|
6290
|
+
os as SeoDataProvider,
|
|
6291
|
+
ur as SourcePrimaryInterest,
|
|
6292
|
+
jr as StockCount,
|
|
6293
|
+
Nt as TemplatesListFilters,
|
|
6242
6294
|
Ue as TypedInstanceFactory,
|
|
6243
6295
|
Ve as UnitsHelper,
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6296
|
+
Yt as UnknownClientDataProvider,
|
|
6297
|
+
ir as UpdatableNamedIdentity,
|
|
6298
|
+
Rt as User,
|
|
6299
|
+
ls as UserAuthDataProvider,
|
|
6300
|
+
or as UserCommonInfo,
|
|
6301
|
+
At as UserDataProvider,
|
|
6250
6302
|
G as UserShortInfo,
|
|
6251
|
-
|
|
6252
|
-
|
|
6303
|
+
Pt as UserTypeEnum,
|
|
6304
|
+
Zr as VersionConfig,
|
|
6253
6305
|
Re as Warehouse,
|
|
6306
|
+
et as WebSocketConfig,
|
|
6254
6307
|
ze as findCatalogItemByIdRecursive,
|
|
6308
|
+
We as flattenCatalogItems,
|
|
6255
6309
|
ae as useAuthStateStore,
|
|
6256
|
-
|
|
6257
|
-
|
|
6310
|
+
ns as useReferencesStore,
|
|
6311
|
+
ps as useUserStateStore
|
|
6258
6312
|
};
|
|
6259
6313
|
//# sourceMappingURL=sc-common-lib.js.map
|