@snabcentr/common-lib 1.75.2 → 1.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +1 -1
- package/dist/sc-common-lib.js +189 -204
- 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/clients/classes/client.d.ts +0 -8
- package/dist/src/clients/classes/client.d.ts.map +1 -1
- package/dist/src/clients/classes/clients-list-filters.d.ts +0 -4
- package/dist/src/clients/classes/clients-list-filters.d.ts.map +1 -1
- package/dist/src/clients/interfaces/i-client.d.ts +0 -8
- package/dist/src/clients/interfaces/i-client.d.ts.map +1 -1
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts +0 -4
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts.map +1 -1
- package/dist/src/clients/providers/client-data-provider.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -2,12 +2,12 @@ var br = Object.defineProperty;
|
|
|
2
2
|
var ar = (n, r, e) => r in n ? br(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
3
|
var t = (n, r, e) => ar(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { jwtDecode as nr } from "jwt-decode";
|
|
5
|
-
import { merge as fe, isUndefined as Sr, isNil as A, isEmpty as K, noop as w, mapValues as or, isArray as V, every as Ir, split as
|
|
6
|
-
import { objectToCamel as Ue, objectToSnake as
|
|
7
|
-
import { isAfter as Je, parseISO as v, startOfToday as de, format as
|
|
5
|
+
import { merge as fe, isUndefined as Sr, isNil as A, isEmpty as K, noop as w, mapValues as or, isArray as V, every as Ir, split as kr, toUpper as Lr, constant as xr, isString as C, cloneDeep as dr, toLower as _r, isFunction as Ne, map as Pe, forEach as Or, isDate as xe, omitBy as cr, isObject as lr } from "lodash-es";
|
|
6
|
+
import { objectToCamel as Ue, objectToSnake as Ee } from "ts-case-convert";
|
|
7
|
+
import { isAfter as Je, parseISO as v, startOfToday as de, format as x, addSeconds as qr, addBusinessDays as Nr, endOfTomorrow as Ur, startOfTomorrow as jr, endOfYesterday as Gr, startOfYesterday as Fr, endOfToday as Mr, endOfDay as Br, startOfDay as Hr } from "date-fns";
|
|
8
8
|
import { defineStore as ee } from "pinia";
|
|
9
|
-
import { ref as y, markRaw as
|
|
10
|
-
import
|
|
9
|
+
import { ref as y, markRaw as zr, computed as R } from "vue";
|
|
10
|
+
import Wr from "axios";
|
|
11
11
|
class O {
|
|
12
12
|
/**
|
|
13
13
|
* Инициализирует экземпляр класса {@link JwtPayload}.
|
|
@@ -154,23 +154,23 @@ class Ut extends O {
|
|
|
154
154
|
return new O(Ue(nr(e)));
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const W = class W {
|
|
158
158
|
/**
|
|
159
159
|
* Инициализирует и возвращает конфигурацию приложения.
|
|
160
160
|
*
|
|
161
161
|
* @param config Данные для первоначальной инициализации.
|
|
162
162
|
*/
|
|
163
163
|
static init(r) {
|
|
164
|
-
|
|
164
|
+
W.config = r;
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* Возвращает текущую конфигурацию приложения.
|
|
168
168
|
*/
|
|
169
169
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
170
170
|
static getConfig() {
|
|
171
|
-
if (Sr(
|
|
171
|
+
if (Sr(W.config))
|
|
172
172
|
throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
|
|
173
|
-
return
|
|
173
|
+
return W.config;
|
|
174
174
|
}
|
|
175
175
|
/**
|
|
176
176
|
* Выполняет загрузку конфигурации по указанному пути.
|
|
@@ -189,8 +189,8 @@ const z = class z {
|
|
|
189
189
|
/**
|
|
190
190
|
* Конфигурация приложения.
|
|
191
191
|
*/
|
|
192
|
-
t(
|
|
193
|
-
let
|
|
192
|
+
t(W, "config");
|
|
193
|
+
let T = W;
|
|
194
194
|
class me {
|
|
195
195
|
/**
|
|
196
196
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
@@ -308,7 +308,7 @@ function Ve(n) {
|
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
const
|
|
311
|
+
const M = ee("__auth_state_private", () => {
|
|
312
312
|
const n = y(
|
|
313
313
|
(() => {
|
|
314
314
|
var u;
|
|
@@ -318,10 +318,10 @@ const G = ee("__auth_state_private", () => {
|
|
|
318
318
|
);
|
|
319
319
|
if (o)
|
|
320
320
|
return Promise.resolve(o);
|
|
321
|
-
const c = (u =
|
|
321
|
+
const c = (u = T.getConfig().devMode) == null ? void 0 : u.initAuthBearerToken;
|
|
322
322
|
return c ? Promise.resolve(c) : void 0;
|
|
323
323
|
})()
|
|
324
|
-
), r = y(void 0), e = y(void 0), s =
|
|
324
|
+
), r = y(void 0), e = y(void 0), s = zr(/* @__PURE__ */ new Map());
|
|
325
325
|
function i() {
|
|
326
326
|
e.value = void 0, A(n.value) || n.value.then((o) => {
|
|
327
327
|
const c = O.getJwtPayload(o);
|
|
@@ -352,7 +352,7 @@ const G = ee("__auth_state_private", () => {
|
|
|
352
352
|
};
|
|
353
353
|
}), be = ee("__auth_state", () => {
|
|
354
354
|
const n = R(() => {
|
|
355
|
-
const o =
|
|
355
|
+
const o = M();
|
|
356
356
|
if (A(o.jwtToken) && !A(o.jwtTokenUpdater)) {
|
|
357
357
|
const c = o.jwtTokenUpdater();
|
|
358
358
|
o.jwtToken = c, c.then((u) => {
|
|
@@ -362,18 +362,18 @@ const G = ee("__auth_state_private", () => {
|
|
|
362
362
|
return o.jwtToken;
|
|
363
363
|
});
|
|
364
364
|
function r(o) {
|
|
365
|
-
|
|
365
|
+
M().jwtTokenUpdater = o;
|
|
366
366
|
}
|
|
367
367
|
function e(o) {
|
|
368
|
-
const c =
|
|
368
|
+
const c = M();
|
|
369
369
|
c.jwtToken = Promise.resolve(o), me.saveActualDataToStorage("sc.token", o, Ve(o)), c.recalculateUserPermissions();
|
|
370
370
|
}
|
|
371
371
|
function s() {
|
|
372
|
-
const o =
|
|
372
|
+
const o = M();
|
|
373
373
|
o.jwtToken = void 0, o.userPermissions = void 0, me.saveActualDataToStorage("sc.token", void 0);
|
|
374
374
|
}
|
|
375
375
|
function i(o) {
|
|
376
|
-
const c =
|
|
376
|
+
const c = M();
|
|
377
377
|
!A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((f) => {
|
|
378
378
|
const g = O.getJwtPayload(f);
|
|
379
379
|
c.userPermissions = g.exp * 1e3 > Date.now() ? or(g.resourceAccess, (a) => (a == null ? void 0 : a.roles) ?? []) : void 0;
|
|
@@ -383,12 +383,12 @@ const G = ee("__auth_state_private", () => {
|
|
|
383
383
|
return c.userPermissionsComputedRefs.get(u);
|
|
384
384
|
const h = R(() => {
|
|
385
385
|
const f = (g) => {
|
|
386
|
-
var
|
|
387
|
-
const a =
|
|
386
|
+
var F;
|
|
387
|
+
const a = kr(g, ".");
|
|
388
388
|
if (a.length < 2)
|
|
389
389
|
return !1;
|
|
390
|
-
const [re, te] = a,
|
|
391
|
-
return V(
|
|
390
|
+
const [re, te] = a, G = (F = M().userPermissions) == null ? void 0 : F[re];
|
|
391
|
+
return V(G) && G.includes(te);
|
|
392
392
|
};
|
|
393
393
|
return V(o) ? Ir(o, (g) => f(g)) : f(o);
|
|
394
394
|
});
|
|
@@ -423,7 +423,7 @@ const G = ee("__auth_state_private", () => {
|
|
|
423
423
|
hasUserPermission: i
|
|
424
424
|
};
|
|
425
425
|
});
|
|
426
|
-
class
|
|
426
|
+
class j {
|
|
427
427
|
/**
|
|
428
428
|
* Инициализирует экземпляр класса {@link Identity}.
|
|
429
429
|
*
|
|
@@ -448,7 +448,7 @@ class F {
|
|
|
448
448
|
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : A(this.id);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
class b extends
|
|
451
|
+
class b extends j {
|
|
452
452
|
/**
|
|
453
453
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
454
454
|
*
|
|
@@ -536,7 +536,7 @@ class pe extends _e {
|
|
|
536
536
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
537
537
|
*/
|
|
538
538
|
t(this, "currencyRates");
|
|
539
|
-
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [
|
|
539
|
+
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [Lr(s), i])) : void 0;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
var pr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(pr || {});
|
|
@@ -564,10 +564,10 @@ class Re extends P {
|
|
|
564
564
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
565
565
|
*/
|
|
566
566
|
static getRetailPriceCoefficient() {
|
|
567
|
-
return { id: -2, slug: pr.Retail, name: "Розн. цена", guid: "", isNewRec:
|
|
567
|
+
return { id: -2, slug: pr.Retail, name: "Розн. цена", guid: "", isNewRec: xr(!0) };
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
class
|
|
570
|
+
class je {
|
|
571
571
|
/**
|
|
572
572
|
* Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
|
|
573
573
|
*
|
|
@@ -649,7 +649,7 @@ class De extends P {
|
|
|
649
649
|
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new Q(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new hr(e == null ? void 0 : e.coordinates);
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
class
|
|
652
|
+
class Er {
|
|
653
653
|
/**
|
|
654
654
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
655
655
|
*
|
|
@@ -790,16 +790,16 @@ class I extends Jr {
|
|
|
790
790
|
* Список коэффициентов цен на продукт.
|
|
791
791
|
*/
|
|
792
792
|
t(this, "priceCoefficients");
|
|
793
|
-
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? v(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((h) => new
|
|
793
|
+
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? v(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((h) => new Er(h))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
794
794
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
|
|
795
|
-
s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new Vr(h,
|
|
795
|
+
s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new Vr(h, T.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new je(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
796
796
|
}
|
|
797
797
|
/**
|
|
798
798
|
* Возвращает признак, что это измеряемый товар.
|
|
799
799
|
*/
|
|
800
800
|
getIsMeasurable() {
|
|
801
801
|
var s;
|
|
802
|
-
const e = (s =
|
|
802
|
+
const e = (s = T.getConfig().catalog) == null ? void 0 : s.products.units;
|
|
803
803
|
return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
|
|
804
804
|
}
|
|
805
805
|
/**
|
|
@@ -815,7 +815,7 @@ class I extends Jr {
|
|
|
815
815
|
return this.retailCostRub ?? this.costRub;
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
|
-
class Kr extends
|
|
818
|
+
class Kr extends j {
|
|
819
819
|
/**
|
|
820
820
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
821
821
|
*
|
|
@@ -942,7 +942,7 @@ class ge {
|
|
|
942
942
|
this.items = r.items.map((e) => new Qr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
|
-
class
|
|
945
|
+
class Ge {
|
|
946
946
|
/**
|
|
947
947
|
* Инициализирует экземпляр указанного класса.
|
|
948
948
|
*
|
|
@@ -973,7 +973,7 @@ const S = class S {
|
|
|
973
973
|
/**
|
|
974
974
|
* Базовый URL путь для выполнения запросов.
|
|
975
975
|
*/
|
|
976
|
-
t(this, "baseUrl", `${
|
|
976
|
+
t(this, "baseUrl", `${T.getConfig().http.portalApiUrl}/api`);
|
|
977
977
|
/**
|
|
978
978
|
* Обработчик ошибок выполнения запросов текущего экземпляра класса.
|
|
979
979
|
*
|
|
@@ -1008,7 +1008,7 @@ const S = class S {
|
|
|
1008
1008
|
* @param request Данные запроса.
|
|
1009
1009
|
*/
|
|
1010
1010
|
// eslint-disable-next-line class-methods-use-this
|
|
1011
|
-
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params =
|
|
1011
|
+
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ee(r.params)), ["put", "patch", "post"].includes(_r(r.method)) && r.data && (r.data = Ee(r.data))), r));
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Перехватчик ошибок ответов на запрос.
|
|
1014
1014
|
*
|
|
@@ -1026,10 +1026,10 @@ const S = class S {
|
|
|
1026
1026
|
*/
|
|
1027
1027
|
// eslint-disable-next-line class-methods-use-this
|
|
1028
1028
|
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Ue(r.data)), r));
|
|
1029
|
-
const r =
|
|
1030
|
-
this.errorResponseHandler = S.defaultErrorsResponseHandler, this.httpClient =
|
|
1029
|
+
const r = T.getConfig().version;
|
|
1030
|
+
this.errorResponseHandler = S.defaultErrorsResponseHandler, this.httpClient = Wr.create({
|
|
1031
1031
|
headers: {
|
|
1032
|
-
"APP-VERSION": `${r.name} (${r.version}, ${
|
|
1032
|
+
"APP-VERSION": `${r.name} (${r.version}, ${x(r.date, T.getConfig().dateFormats.uiDate)})`,
|
|
1033
1033
|
Accept: "application/json",
|
|
1034
1034
|
"Content-Type": "application/json"
|
|
1035
1035
|
}
|
|
@@ -1058,7 +1058,7 @@ const S = class S {
|
|
|
1058
1058
|
* @param type Тип данных, которыми оперирует метод.
|
|
1059
1059
|
*/
|
|
1060
1060
|
static getInstance(r) {
|
|
1061
|
-
return Object.prototype.hasOwnProperty.call(S.instances, r.name) || (S.instances[r.name] =
|
|
1061
|
+
return Object.prototype.hasOwnProperty.call(S.instances, r.name) || (S.instances[r.name] = Ge.simpleInstanceInitializer(r)), S.instances[r.name];
|
|
1062
1062
|
}
|
|
1063
1063
|
/**
|
|
1064
1064
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -1165,7 +1165,7 @@ t(S, "instances", {}), /**
|
|
|
1165
1165
|
*/
|
|
1166
1166
|
t(S, "defaultErrorsResponseHandler", w);
|
|
1167
1167
|
let p = S;
|
|
1168
|
-
class
|
|
1168
|
+
class jt extends p {
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Возвращает содержимое корзины указанного клиента.
|
|
1171
1171
|
*
|
|
@@ -1279,7 +1279,7 @@ class Ft extends p {
|
|
|
1279
1279
|
return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
|
-
var Yr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Yr || {}),
|
|
1282
|
+
var Yr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Yr || {}), Fe = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Fe || {}), Xr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(Xr || {});
|
|
1283
1283
|
class H extends pe {
|
|
1284
1284
|
/**
|
|
1285
1285
|
* Инициализирует экземпляр класса {@link Category}.
|
|
@@ -1384,7 +1384,7 @@ class et extends b {
|
|
|
1384
1384
|
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? v(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new q(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
class
|
|
1387
|
+
class z extends gr {
|
|
1388
1388
|
/**
|
|
1389
1389
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1390
1390
|
*
|
|
@@ -1439,7 +1439,7 @@ class Y extends I {
|
|
|
1439
1439
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1440
1440
|
*/
|
|
1441
1441
|
t(this, "isFavorite");
|
|
1442
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ??
|
|
1442
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Fe.Product, this.discount = e != null && e.discount ? new et(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;
|
|
1443
1443
|
}
|
|
1444
1444
|
}
|
|
1445
1445
|
class mr {
|
|
@@ -1462,7 +1462,7 @@ class mr {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
class _ extends P {
|
|
1464
1464
|
}
|
|
1465
|
-
class
|
|
1465
|
+
class Me extends b {
|
|
1466
1466
|
/**
|
|
1467
1467
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1468
1468
|
*
|
|
@@ -1518,7 +1518,7 @@ class rt extends b {
|
|
|
1518
1518
|
this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
|
|
1519
1519
|
}
|
|
1520
1520
|
}
|
|
1521
|
-
class Ae extends
|
|
1521
|
+
class Ae extends Me {
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1524
1524
|
*
|
|
@@ -1682,7 +1682,7 @@ class ce extends P {
|
|
|
1682
1682
|
e && (this.country = new X(e.country));
|
|
1683
1683
|
}
|
|
1684
1684
|
}
|
|
1685
|
-
class
|
|
1685
|
+
class ze extends P {
|
|
1686
1686
|
/**
|
|
1687
1687
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
1688
1688
|
*
|
|
@@ -1782,10 +1782,10 @@ class he extends yr {
|
|
|
1782
1782
|
* @inheritDoc
|
|
1783
1783
|
*/
|
|
1784
1784
|
t(this, "curators");
|
|
1785
|
-
this.salesDirection = new _(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new
|
|
1785
|
+
this.salesDirection = new _(e == null ? void 0 : e.salesDirection), this.debt = (e == null ? void 0 : e.debt) ?? 0, this.alternativeName = (e == null ? void 0 : e.alternativeName) ?? "", this.city = new ze(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new Me(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new He(o))) ?? void 0;
|
|
1786
1786
|
}
|
|
1787
1787
|
}
|
|
1788
|
-
class se extends
|
|
1788
|
+
class se extends j {
|
|
1789
1789
|
/**
|
|
1790
1790
|
* Инициализирует новый экземпляр класса.
|
|
1791
1791
|
*
|
|
@@ -1809,7 +1809,7 @@ class se extends F {
|
|
|
1809
1809
|
* Данные шаблона прайс-листа.
|
|
1810
1810
|
*/
|
|
1811
1811
|
t(this, "priceTemplate");
|
|
1812
|
-
this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new he(e == null ? void 0 : e.client), this.priceTemplate = new
|
|
1812
|
+
this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new he(e == null ? void 0 : e.client), this.priceTemplate = new z(e == null ? void 0 : e.priceTemplate);
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
1815
|
class Se extends fr {
|
|
@@ -1871,7 +1871,7 @@ class B {
|
|
|
1871
1871
|
this.property = new ie(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
|
-
class
|
|
1874
|
+
class L {
|
|
1875
1875
|
/**
|
|
1876
1876
|
* Инициализирует экземпляр класса {@link DatePeriod}.
|
|
1877
1877
|
*
|
|
@@ -1889,7 +1889,7 @@ class k {
|
|
|
1889
1889
|
this.from = C(r == null ? void 0 : r.from) ? v(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = C(r == null ? void 0 : r.to) ? v(r.to) : (r == null ? void 0 : r.to) ?? null;
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
|
-
class
|
|
1892
|
+
class Gt {
|
|
1893
1893
|
/**
|
|
1894
1894
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
1895
1895
|
*
|
|
@@ -1911,12 +1911,12 @@ class Mt {
|
|
|
1911
1911
|
/**
|
|
1912
1912
|
* Период создания.
|
|
1913
1913
|
*/
|
|
1914
|
-
t(this, "createdAt", new
|
|
1914
|
+
t(this, "createdAt", new L());
|
|
1915
1915
|
/**
|
|
1916
1916
|
* Период изменения.
|
|
1917
1917
|
*/
|
|
1918
|
-
t(this, "updatedAt", new
|
|
1919
|
-
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new
|
|
1918
|
+
t(this, "updatedAt", new L());
|
|
1919
|
+
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new L(r == null ? void 0 : r.createdAt), this.updatedAt = new L(r == null ? void 0 : r.updatedAt);
|
|
1920
1920
|
}
|
|
1921
1921
|
/**
|
|
1922
1922
|
* Выполняет сброс указанного фильтра в значение по умолчанию.
|
|
@@ -2160,7 +2160,7 @@ class ct {
|
|
|
2160
2160
|
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"];
|
|
2161
2161
|
}
|
|
2162
2162
|
}
|
|
2163
|
-
class
|
|
2163
|
+
class Ft {
|
|
2164
2164
|
/**
|
|
2165
2165
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
2166
2166
|
*
|
|
@@ -2218,7 +2218,7 @@ class jt {
|
|
|
2218
2218
|
};
|
|
2219
2219
|
}
|
|
2220
2220
|
}
|
|
2221
|
-
class
|
|
2221
|
+
class Mt extends p {
|
|
2222
2222
|
/**
|
|
2223
2223
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
2224
2224
|
*
|
|
@@ -2245,7 +2245,7 @@ class Gt extends p {
|
|
|
2245
2245
|
*/
|
|
2246
2246
|
// eslint-disable-next-line class-methods-use-this
|
|
2247
2247
|
getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
|
|
2248
|
-
let c = `${
|
|
2248
|
+
let c = `${T.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
|
|
2249
2249
|
return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
|
|
2250
2250
|
}
|
|
2251
2251
|
}
|
|
@@ -2483,12 +2483,12 @@ class Ht extends p {
|
|
|
2483
2483
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_attach
|
|
2484
2484
|
*/
|
|
2485
2485
|
attachTemplate(r, e, s) {
|
|
2486
|
-
const i =
|
|
2486
|
+
const i = T.getConfig().dateFormats.api;
|
|
2487
2487
|
return this.post(
|
|
2488
2488
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
2489
2489
|
s && {
|
|
2490
|
-
startAt: s.startAt &&
|
|
2491
|
-
endAt: s.endAt &&
|
|
2490
|
+
startAt: s.startAt && x(s.startAt, i),
|
|
2491
|
+
endAt: s.endAt && x(s.endAt, i)
|
|
2492
2492
|
},
|
|
2493
2493
|
(o) => new se(o.data),
|
|
2494
2494
|
{},
|
|
@@ -2517,12 +2517,12 @@ class Ht extends p {
|
|
|
2517
2517
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_change
|
|
2518
2518
|
*/
|
|
2519
2519
|
changeTemplate(r, e, s, i) {
|
|
2520
|
-
const o =
|
|
2520
|
+
const o = T.getConfig().dateFormats.api;
|
|
2521
2521
|
return this.patch(
|
|
2522
2522
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
2523
2523
|
i && {
|
|
2524
|
-
startAt: i.startAt &&
|
|
2525
|
-
endAt: i.endAt &&
|
|
2524
|
+
startAt: i.startAt && x(i.startAt, o),
|
|
2525
|
+
endAt: i.endAt && x(i.endAt, o)
|
|
2526
2526
|
},
|
|
2527
2527
|
(c) => new se(c.data)
|
|
2528
2528
|
);
|
|
@@ -2540,7 +2540,7 @@ class Ht extends p {
|
|
|
2540
2540
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2541
2541
|
}
|
|
2542
2542
|
}
|
|
2543
|
-
class
|
|
2543
|
+
class zt extends p {
|
|
2544
2544
|
/**
|
|
2545
2545
|
* Возвращает список данных о корневых категориях.
|
|
2546
2546
|
*
|
|
@@ -2613,7 +2613,7 @@ class Et extends p {
|
|
|
2613
2613
|
getCategoryProductsCoefficients(r) {
|
|
2614
2614
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2615
2615
|
const { data: s } = e;
|
|
2616
|
-
return Or(s, (i) => i.map((o) => new
|
|
2616
|
+
return Or(s, (i) => i.map((o) => new je(o))), s;
|
|
2617
2617
|
});
|
|
2618
2618
|
}
|
|
2619
2619
|
/**
|
|
@@ -2632,7 +2632,7 @@ class Et extends p {
|
|
|
2632
2632
|
});
|
|
2633
2633
|
}
|
|
2634
2634
|
}
|
|
2635
|
-
class
|
|
2635
|
+
class Wt extends p {
|
|
2636
2636
|
/**
|
|
2637
2637
|
* Возвращает данные об указанном продукте.
|
|
2638
2638
|
*
|
|
@@ -2663,7 +2663,7 @@ class zt extends p {
|
|
|
2663
2663
|
return this.get(
|
|
2664
2664
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2665
2665
|
{},
|
|
2666
|
-
(e) => Pe(e.data, (s) => new
|
|
2666
|
+
(e) => Pe(e.data, (s) => new je(s))
|
|
2667
2667
|
);
|
|
2668
2668
|
}
|
|
2669
2669
|
/**
|
|
@@ -2682,7 +2682,7 @@ class zt extends p {
|
|
|
2682
2682
|
});
|
|
2683
2683
|
}
|
|
2684
2684
|
}
|
|
2685
|
-
class
|
|
2685
|
+
class Et extends p {
|
|
2686
2686
|
/**
|
|
2687
2687
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2688
2688
|
*
|
|
@@ -2765,7 +2765,7 @@ class Jt extends p {
|
|
|
2765
2765
|
);
|
|
2766
2766
|
}
|
|
2767
2767
|
}
|
|
2768
|
-
var
|
|
2768
|
+
var We = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(We || {});
|
|
2769
2769
|
class Qe {
|
|
2770
2770
|
/**
|
|
2771
2771
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
@@ -2785,7 +2785,7 @@ class Qe {
|
|
|
2785
2785
|
* Значение с которым сравнивается поле.
|
|
2786
2786
|
*/
|
|
2787
2787
|
t(this, "value");
|
|
2788
|
-
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ??
|
|
2788
|
+
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? We.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2789
2789
|
}
|
|
2790
2790
|
/**
|
|
2791
2791
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -2797,7 +2797,7 @@ class Qe {
|
|
|
2797
2797
|
field: this.field,
|
|
2798
2798
|
op: this.op
|
|
2799
2799
|
};
|
|
2800
|
-
return r.value =
|
|
2800
|
+
return r.value = xe(this.value) ? x(this.value, T.getConfig().dateFormats.api) : this.value, r;
|
|
2801
2801
|
}
|
|
2802
2802
|
}
|
|
2803
2803
|
class le {
|
|
@@ -2835,7 +2835,7 @@ class le {
|
|
|
2835
2835
|
};
|
|
2836
2836
|
}
|
|
2837
2837
|
}
|
|
2838
|
-
class
|
|
2838
|
+
class $e extends p {
|
|
2839
2839
|
/**
|
|
2840
2840
|
* Получает пагинированный список данных.
|
|
2841
2841
|
*
|
|
@@ -2855,7 +2855,7 @@ class Te extends p {
|
|
|
2855
2855
|
return e && (h.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), K(s) || (h.sort = V(s) ? s : [s]), o && (h = { ...h, ...o }), this.get(r, h, c, u);
|
|
2856
2856
|
}
|
|
2857
2857
|
}
|
|
2858
|
-
class Vt extends
|
|
2858
|
+
class Vt extends $e {
|
|
2859
2859
|
/**
|
|
2860
2860
|
* Возвращает список шаблонов прайс-листа.
|
|
2861
2861
|
*
|
|
@@ -2868,7 +2868,7 @@ class Vt extends Te {
|
|
|
2868
2868
|
getTemplateList(r, e, s) {
|
|
2869
2869
|
return this.getPaginated("/internal/price/templates", r, e, s, {}, (i) => {
|
|
2870
2870
|
const o = { ...i.data };
|
|
2871
|
-
return o.data = o.data.map((c) => new
|
|
2871
|
+
return o.data = o.data.map((c) => new z(c)), o;
|
|
2872
2872
|
});
|
|
2873
2873
|
}
|
|
2874
2874
|
/**
|
|
@@ -2881,7 +2881,7 @@ class Vt extends Te {
|
|
|
2881
2881
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
|
|
2882
2882
|
*/
|
|
2883
2883
|
createTemplate(r, e = {}) {
|
|
2884
|
-
return this.post("/internal/price/templates", r, (s) => new
|
|
2884
|
+
return this.post("/internal/price/templates", r, (s) => new z(s.data), e);
|
|
2885
2885
|
}
|
|
2886
2886
|
/**
|
|
2887
2887
|
* Возвращает данные о шаблоне прайс-листа.
|
|
@@ -2891,7 +2891,7 @@ class Vt extends Te {
|
|
|
2891
2891
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
|
|
2892
2892
|
*/
|
|
2893
2893
|
getTemplate(r) {
|
|
2894
|
-
return this.get(`/internal/price/templates/${r}`, {}, (e) => new
|
|
2894
|
+
return this.get(`/internal/price/templates/${r}`, {}, (e) => new z(e.data));
|
|
2895
2895
|
}
|
|
2896
2896
|
/**
|
|
2897
2897
|
* Изменяет данные о шаблоне прайс-листа.
|
|
@@ -2904,7 +2904,7 @@ class Vt extends Te {
|
|
|
2904
2904
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
|
|
2905
2905
|
*/
|
|
2906
2906
|
updateTemplate(r, e, s = {}) {
|
|
2907
|
-
return this.patch(`/internal/price/templates/${r}`, e, (i) => new
|
|
2907
|
+
return this.patch(`/internal/price/templates/${r}`, e, (i) => new z(i.data), s);
|
|
2908
2908
|
}
|
|
2909
2909
|
/**
|
|
2910
2910
|
* Удаляет данные о шаблоне прайс-листа.
|
|
@@ -3139,7 +3139,7 @@ class Kt extends p {
|
|
|
3139
3139
|
);
|
|
3140
3140
|
}
|
|
3141
3141
|
}
|
|
3142
|
-
class Qt extends
|
|
3142
|
+
class Qt extends $e {
|
|
3143
3143
|
/**
|
|
3144
3144
|
* Возвращает пагинированный список свойств.
|
|
3145
3145
|
*
|
|
@@ -3596,7 +3596,7 @@ class vr extends P {
|
|
|
3596
3596
|
}
|
|
3597
3597
|
class Pr extends P {
|
|
3598
3598
|
}
|
|
3599
|
-
class Oe extends
|
|
3599
|
+
class Oe extends j {
|
|
3600
3600
|
/**
|
|
3601
3601
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3602
3602
|
*
|
|
@@ -3856,7 +3856,7 @@ class Ce {
|
|
|
3856
3856
|
}
|
|
3857
3857
|
}
|
|
3858
3858
|
}
|
|
3859
|
-
class Ie extends
|
|
3859
|
+
class Ie extends j {
|
|
3860
3860
|
/**
|
|
3861
3861
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
3862
3862
|
*
|
|
@@ -3981,14 +3981,6 @@ class Ze extends he {
|
|
|
3981
3981
|
* @inheritDoc
|
|
3982
3982
|
*/
|
|
3983
3983
|
t(this, "primaryDemand");
|
|
3984
|
-
/**
|
|
3985
|
-
* @inheritDoc
|
|
3986
|
-
*/
|
|
3987
|
-
t(this, "isExcludedFromMsCallsToClients");
|
|
3988
|
-
/**
|
|
3989
|
-
* @inheritDoc
|
|
3990
|
-
*/
|
|
3991
|
-
t(this, "reasonExcludedFromMsCallsToClients");
|
|
3992
3984
|
/**
|
|
3993
3985
|
* @inheritDoc
|
|
3994
3986
|
*/
|
|
@@ -3997,7 +3989,7 @@ class Ze extends he {
|
|
|
3997
3989
|
* @inheritDoc
|
|
3998
3990
|
*/
|
|
3999
3991
|
t(this, "extraData");
|
|
4000
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Ce.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new U(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ve(u))) ?? [], this.channelPrimaryInterest = new Cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Pr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new Q(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.
|
|
3992
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Ce.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new U(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ve(u))) ?? [], this.channelPrimaryInterest = new Cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Pr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new Q(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new De(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
4001
3993
|
}
|
|
4002
3994
|
}
|
|
4003
3995
|
class Xt {
|
|
@@ -4050,11 +4042,11 @@ class Xt {
|
|
|
4050
4042
|
/**
|
|
4051
4043
|
* @inheritDoc
|
|
4052
4044
|
*/
|
|
4053
|
-
t(this, "createdAt", new
|
|
4045
|
+
t(this, "createdAt", new L());
|
|
4054
4046
|
/**
|
|
4055
4047
|
* @inheritDoc
|
|
4056
4048
|
*/
|
|
4057
|
-
t(this, "lastLoginDate", new
|
|
4049
|
+
t(this, "lastLoginDate", new L());
|
|
4058
4050
|
/**
|
|
4059
4051
|
* @inheritDoc
|
|
4060
4052
|
*/
|
|
@@ -4099,16 +4091,12 @@ class Xt {
|
|
|
4099
4091
|
* @inheritDoc
|
|
4100
4092
|
*/
|
|
4101
4093
|
t(this, "lastOrder");
|
|
4102
|
-
/**
|
|
4103
|
-
* @inheritDoc
|
|
4104
|
-
*/
|
|
4105
|
-
t(this, "isExcludedFromMsCallsToClients");
|
|
4106
4094
|
var e, s, i, o, c, u, h, f;
|
|
4107
|
-
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((g) => new
|
|
4108
|
-
createdAt: new
|
|
4095
|
+
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((g) => new ze(g)), this.region = new ce(r == null ? void 0 : r.region), this.country = new X(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new L(r == null ? void 0 : r.createdAt), this.lastLoginDate = new L(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = ((s = r == null ? void 0 : r.managers) == null ? void 0 : s.map((g) => new Ae(g))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((g) => new He(g))) ?? [], this.salesDirections = (o = r == null ? void 0 : r.salesDirections) == null ? void 0 : o.map((g) => new _(g)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new N(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new Q(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (c = r == null ? void 0 : r.partnerGroups) == null ? void 0 : c.map((g) => new Z(g)), this.contact = new qe(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
4096
|
+
createdAt: new L((u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.createdAt),
|
|
4109
4097
|
creator: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.creator,
|
|
4110
4098
|
isApproved: (f = r == null ? void 0 : r.lastOrder) == null ? void 0 : f.isApproved
|
|
4111
|
-
}
|
|
4099
|
+
};
|
|
4112
4100
|
}
|
|
4113
4101
|
/**
|
|
4114
4102
|
* Выполняет сброс указанного фильтра в значение по умолчанию.
|
|
@@ -4176,7 +4164,7 @@ class Xt {
|
|
|
4176
4164
|
}), !((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;
|
|
4177
4165
|
}
|
|
4178
4166
|
}
|
|
4179
|
-
class
|
|
4167
|
+
class $r extends j {
|
|
4180
4168
|
/**
|
|
4181
4169
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
4182
4170
|
*
|
|
@@ -4236,7 +4224,7 @@ class vt extends b {
|
|
|
4236
4224
|
* @inheritDoc
|
|
4237
4225
|
*/
|
|
4238
4226
|
t(this, "curators");
|
|
4239
|
-
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new U(u))) ?? void 0, this.lastOrder = e.lastOrder ? new
|
|
4227
|
+
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new U(u))) ?? void 0, this.lastOrder = e.lastOrder ? new $r(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new Q(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new _(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Me(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new He(u))) ?? void 0;
|
|
4240
4228
|
}
|
|
4241
4229
|
}
|
|
4242
4230
|
class Pt {
|
|
@@ -4306,7 +4294,7 @@ class es {
|
|
|
4306
4294
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4307
4295
|
}
|
|
4308
4296
|
}
|
|
4309
|
-
class
|
|
4297
|
+
class k extends $e {
|
|
4310
4298
|
/**
|
|
4311
4299
|
* Преобразует данные о клиенте в данные требуемые для запроса.
|
|
4312
4300
|
*
|
|
@@ -4314,7 +4302,7 @@ class x extends Te {
|
|
|
4314
4302
|
*/
|
|
4315
4303
|
static transformClientDataToRequest(r) {
|
|
4316
4304
|
var s;
|
|
4317
|
-
|
|
4305
|
+
return {
|
|
4318
4306
|
name: r.name,
|
|
4319
4307
|
alternative_name: r.alternativeName,
|
|
4320
4308
|
partner_groups: r.partnerGroups.map((i) => i.id),
|
|
@@ -4325,10 +4313,8 @@ class x extends Te {
|
|
|
4325
4313
|
channel_primary_interest_id: r.channelPrimaryInterest.id,
|
|
4326
4314
|
source_primary_interest_id: r.sourcePrimaryInterest.id,
|
|
4327
4315
|
primary_demand: r.primaryDemand,
|
|
4328
|
-
is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
|
|
4329
4316
|
preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
|
|
4330
4317
|
};
|
|
4331
|
-
return r.isExcludedFromMsCallsToClients && (e.reason_excluded_from_ms_calls_to_clients = r.reasonExcludedFromMsCallsToClients), e;
|
|
4332
4318
|
}
|
|
4333
4319
|
/**
|
|
4334
4320
|
* Преобразует данные о контрагенте клиента в данные требуемые для запроса.
|
|
@@ -4475,7 +4461,7 @@ class x extends Te {
|
|
|
4475
4461
|
return this.getClientsList({
|
|
4476
4462
|
groupOp: "and",
|
|
4477
4463
|
groups: [],
|
|
4478
|
-
filters: [{ field: "phone", op:
|
|
4464
|
+
filters: [{ field: "phone", op: We.Contains, value: r }]
|
|
4479
4465
|
});
|
|
4480
4466
|
}
|
|
4481
4467
|
/**
|
|
@@ -4512,7 +4498,7 @@ class x extends Te {
|
|
|
4512
4498
|
* @see /doc/api/internal#/Клиенты/api_internal_client_create
|
|
4513
4499
|
*/
|
|
4514
4500
|
createClientCommonData(r, e = {}) {
|
|
4515
|
-
return this.post("/internal/clients",
|
|
4501
|
+
return this.post("/internal/clients", k.transformClientDataToRequest(r), (s) => new Ze(s.data), e);
|
|
4516
4502
|
}
|
|
4517
4503
|
/**
|
|
4518
4504
|
* Обновляет данные указанного клиента.
|
|
@@ -4522,7 +4508,7 @@ class x extends Te {
|
|
|
4522
4508
|
* @see /doc/api/internal#/Клиенты/api_internal_client_change
|
|
4523
4509
|
*/
|
|
4524
4510
|
updateClientCommonData(r, e = {}) {
|
|
4525
|
-
return this.patch(`/internal/clients/${r.id}`,
|
|
4511
|
+
return this.patch(`/internal/clients/${r.id}`, k.transformClientDataToRequest(r), void 0, e);
|
|
4526
4512
|
}
|
|
4527
4513
|
/**
|
|
4528
4514
|
* Обновляет данные "Не беспокоить" указанного клиента.
|
|
@@ -4533,10 +4519,9 @@ class x extends Te {
|
|
|
4533
4519
|
*/
|
|
4534
4520
|
updateClientNotDistribCommonData(r, e = {}) {
|
|
4535
4521
|
const s = {
|
|
4536
|
-
get_news: r.getNews
|
|
4537
|
-
is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients
|
|
4522
|
+
get_news: r.getNews
|
|
4538
4523
|
};
|
|
4539
|
-
return
|
|
4524
|
+
return this.patch(`/internal/clients/${r.id}`, s, void 0, e);
|
|
4540
4525
|
}
|
|
4541
4526
|
/**
|
|
4542
4527
|
* Изменяет пароль клиента.
|
|
@@ -4652,7 +4637,7 @@ class x extends Te {
|
|
|
4652
4637
|
createContragentClientData(r, e, s = {}) {
|
|
4653
4638
|
return this.post(
|
|
4654
4639
|
`/internal/clients/${r}/contragents`,
|
|
4655
|
-
|
|
4640
|
+
k.transformContragentClientDataToRequest(e),
|
|
4656
4641
|
(i) => Ce.createInstance(i.data),
|
|
4657
4642
|
s
|
|
4658
4643
|
);
|
|
@@ -4668,7 +4653,7 @@ class x extends Te {
|
|
|
4668
4653
|
updateContragentClientData(r, e, s = {}) {
|
|
4669
4654
|
return this.patch(
|
|
4670
4655
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
4671
|
-
|
|
4656
|
+
k.transformContragentClientDataToRequest(e),
|
|
4672
4657
|
(i) => Ce.createInstance(i.data),
|
|
4673
4658
|
s
|
|
4674
4659
|
);
|
|
@@ -4694,7 +4679,7 @@ class x extends Te {
|
|
|
4694
4679
|
createClientDeliveryAddress(r, e, s = {}) {
|
|
4695
4680
|
return this.post(
|
|
4696
4681
|
`/internal/clients/${r}/delivery-addresses`,
|
|
4697
|
-
|
|
4682
|
+
k.transformClientDeliveryAddressToRequest(e),
|
|
4698
4683
|
(i) => new ve(i.data),
|
|
4699
4684
|
s
|
|
4700
4685
|
);
|
|
@@ -4710,7 +4695,7 @@ class x extends Te {
|
|
|
4710
4695
|
updateClientDeliveryAddress(r, e, s = {}) {
|
|
4711
4696
|
return this.patch(
|
|
4712
4697
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
4713
|
-
|
|
4698
|
+
k.transformClientDeliveryAddressToRequest(e),
|
|
4714
4699
|
(i) => new ve(i.data),
|
|
4715
4700
|
s
|
|
4716
4701
|
);
|
|
@@ -4737,7 +4722,7 @@ class x extends Te {
|
|
|
4737
4722
|
createContragentBankAccount(r, e, s, i = {}) {
|
|
4738
4723
|
return this.post(
|
|
4739
4724
|
`/internal/clients/${r}/contragents/${e}/bank-accounts`,
|
|
4740
|
-
|
|
4725
|
+
k.transformClientContragentBankAccountToRequest(s),
|
|
4741
4726
|
(o) => new Oe(o.data),
|
|
4742
4727
|
i
|
|
4743
4728
|
);
|
|
@@ -4754,7 +4739,7 @@ class x extends Te {
|
|
|
4754
4739
|
updateContragentBankAccount(r, e, s, i = {}) {
|
|
4755
4740
|
return this.patch(
|
|
4756
4741
|
`/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
|
|
4757
|
-
|
|
4742
|
+
k.transformClientContragentBankAccountToRequest(s),
|
|
4758
4743
|
(o) => new Oe(o.data),
|
|
4759
4744
|
i
|
|
4760
4745
|
);
|
|
@@ -4977,7 +4962,7 @@ class x extends Te {
|
|
|
4977
4962
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
4978
4963
|
}
|
|
4979
4964
|
}
|
|
4980
|
-
const
|
|
4965
|
+
const E = class E extends p {
|
|
4981
4966
|
/**
|
|
4982
4967
|
* Инициализирует экземпляр класса {@link HttpCachedRequester}.
|
|
4983
4968
|
*/
|
|
@@ -4987,7 +4972,7 @@ const W = class W extends p {
|
|
|
4987
4972
|
* Время кэширования данных ответов на запросы (секунд).
|
|
4988
4973
|
*/
|
|
4989
4974
|
t(this, "responseDataCacheTimeout");
|
|
4990
|
-
this.responseDataCacheTimeout =
|
|
4975
|
+
this.responseDataCacheTimeout = T.getConfig().http.responseDataCacheTimeout;
|
|
4991
4976
|
}
|
|
4992
4977
|
/**
|
|
4993
4978
|
* Возвращает кэшированные данные.
|
|
@@ -4997,7 +4982,7 @@ const W = class W extends p {
|
|
|
4997
4982
|
*/
|
|
4998
4983
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
4999
4984
|
static getCachedResponse(e) {
|
|
5000
|
-
const s =
|
|
4985
|
+
const s = E.responseDataCache.get(e);
|
|
5001
4986
|
if (s && s.validTo > /* @__PURE__ */ new Date())
|
|
5002
4987
|
return s.val;
|
|
5003
4988
|
}
|
|
@@ -5008,7 +4993,7 @@ const W = class W extends p {
|
|
|
5008
4993
|
* @param data Данные для кэширования.
|
|
5009
4994
|
*/
|
|
5010
4995
|
cacheResponse(e, s) {
|
|
5011
|
-
|
|
4996
|
+
E.responseDataCache.set(e, {
|
|
5012
4997
|
validTo: qr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
5013
4998
|
val: s
|
|
5014
4999
|
});
|
|
@@ -5024,9 +5009,9 @@ const W = class W extends p {
|
|
|
5024
5009
|
*/
|
|
5025
5010
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
5026
5011
|
getTypedDataArrayRequester(e, s, i = !1, o = {}) {
|
|
5027
|
-
const c = s + (K(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ?
|
|
5012
|
+
const c = s + (K(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? E.getCachedResponse(c) : void 0;
|
|
5028
5013
|
return u ? Promise.resolve(u) : this.get(s, o).then((h) => {
|
|
5029
|
-
const f = h.map((g) =>
|
|
5014
|
+
const f = h.map((g) => Ge.instanceInitializer(e, g));
|
|
5030
5015
|
return i && f && this.cacheResponse(s, f), f;
|
|
5031
5016
|
});
|
|
5032
5017
|
}
|
|
@@ -5034,8 +5019,8 @@ const W = class W extends p {
|
|
|
5034
5019
|
/**
|
|
5035
5020
|
* Кэш результатов запросов.
|
|
5036
5021
|
*/
|
|
5037
|
-
t(
|
|
5038
|
-
let ue =
|
|
5022
|
+
t(E, "responseDataCache", /* @__PURE__ */ new Map());
|
|
5023
|
+
let ue = E;
|
|
5039
5024
|
class rs extends p {
|
|
5040
5025
|
/**
|
|
5041
5026
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
@@ -5134,9 +5119,9 @@ class ss {
|
|
|
5134
5119
|
return {
|
|
5135
5120
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5136
5121
|
nextWorkingDay: { label: "Следующий рабочий день", from: Hr(r), to: Br(r) },
|
|
5137
|
-
today: { label: "Сегодня", from: de(), to:
|
|
5138
|
-
yesterday: { label: "Вчера", from:
|
|
5139
|
-
tomorrow: { label: "Завтра", from:
|
|
5122
|
+
today: { label: "Сегодня", from: de(), to: Mr() },
|
|
5123
|
+
yesterday: { label: "Вчера", from: Fr(), to: Gr() },
|
|
5124
|
+
tomorrow: { label: "Завтра", from: jr(), to: Ur() }
|
|
5140
5125
|
};
|
|
5141
5126
|
}
|
|
5142
5127
|
}
|
|
@@ -5205,11 +5190,11 @@ class Rt extends ue {
|
|
|
5205
5190
|
const r = "/internal/managers", e = ue.getCachedResponse(r);
|
|
5206
5191
|
if (e)
|
|
5207
5192
|
return e;
|
|
5208
|
-
const i = (await this.get(r)).data.map((o) =>
|
|
5193
|
+
const i = (await this.get(r)).data.map((o) => Ge.instanceInitializer(Ae, o));
|
|
5209
5194
|
return this.cacheResponse(r, i), i;
|
|
5210
5195
|
}
|
|
5211
5196
|
}
|
|
5212
|
-
class
|
|
5197
|
+
class Tr extends $r {
|
|
5213
5198
|
/**
|
|
5214
5199
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
5215
5200
|
*
|
|
@@ -5270,7 +5255,7 @@ class $r extends Tr {
|
|
|
5270
5255
|
}, this.attachedUser = new q(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new _(e == null ? void 0 : e.salesDirection), this.pendingAt = C(e == null ? void 0 : e.pendingAt) ? v(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = C(e == null ? void 0 : e.processedAt) ? v(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
|
|
5271
5256
|
}
|
|
5272
5257
|
}
|
|
5273
|
-
class Dt extends
|
|
5258
|
+
class Dt extends j {
|
|
5274
5259
|
/**
|
|
5275
5260
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5276
5261
|
*
|
|
@@ -5353,7 +5338,7 @@ class Dt extends F {
|
|
|
5353
5338
|
this.product = new Y(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;
|
|
5354
5339
|
}
|
|
5355
5340
|
}
|
|
5356
|
-
class rr extends
|
|
5341
|
+
class rr extends Tr {
|
|
5357
5342
|
/**
|
|
5358
5343
|
* Инициализирует экземпляр класса {@link Order}.
|
|
5359
5344
|
*
|
|
@@ -5396,7 +5381,7 @@ class rr extends $r {
|
|
|
5396
5381
|
this.products = (e.products ?? []).map((s) => new Dt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ce.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5397
5382
|
}
|
|
5398
5383
|
}
|
|
5399
|
-
class ns extends
|
|
5384
|
+
class ns extends $e {
|
|
5400
5385
|
/**
|
|
5401
5386
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5402
5387
|
*
|
|
@@ -5409,7 +5394,7 @@ class ns extends Te {
|
|
|
5409
5394
|
getOrders(r, e, s) {
|
|
5410
5395
|
return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
|
|
5411
5396
|
const o = { ...i.data };
|
|
5412
|
-
return o.data = o.data.map((c) => new
|
|
5397
|
+
return o.data = o.data.map((c) => new Tr(c)), o;
|
|
5413
5398
|
});
|
|
5414
5399
|
}
|
|
5415
5400
|
/**
|
|
@@ -5460,7 +5445,7 @@ class ns extends Te {
|
|
|
5460
5445
|
);
|
|
5461
5446
|
}
|
|
5462
5447
|
}
|
|
5463
|
-
class
|
|
5448
|
+
class ke {
|
|
5464
5449
|
/**
|
|
5465
5450
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
5466
5451
|
*
|
|
@@ -5487,10 +5472,10 @@ class xe {
|
|
|
5487
5472
|
* Источник клиентской цены.
|
|
5488
5473
|
*/
|
|
5489
5474
|
t(this, "source");
|
|
5490
|
-
this.client = new he(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ??
|
|
5475
|
+
this.client = new he(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Fe.Product;
|
|
5491
5476
|
}
|
|
5492
5477
|
}
|
|
5493
|
-
const
|
|
5478
|
+
const Le = (n) => {
|
|
5494
5479
|
var r, e, s, i, o;
|
|
5495
5480
|
return n ? cr(
|
|
5496
5481
|
{
|
|
@@ -5522,9 +5507,9 @@ class os extends p {
|
|
|
5522
5507
|
`/internal/price/products/${r}/analyze`,
|
|
5523
5508
|
{
|
|
5524
5509
|
...tr(e),
|
|
5525
|
-
filters:
|
|
5510
|
+
filters: Le(s)
|
|
5526
5511
|
},
|
|
5527
|
-
(i) => i.data.map((o) => new
|
|
5512
|
+
(i) => i.data.map((o) => new ke(o))
|
|
5528
5513
|
);
|
|
5529
5514
|
}
|
|
5530
5515
|
/**
|
|
@@ -5541,9 +5526,9 @@ class os extends p {
|
|
|
5541
5526
|
`/internal/price/categories/${r}/analyze`,
|
|
5542
5527
|
{
|
|
5543
5528
|
...tr(e),
|
|
5544
|
-
filters:
|
|
5529
|
+
filters: Le(s)
|
|
5545
5530
|
},
|
|
5546
|
-
(i) => i.data.map((o) => new
|
|
5531
|
+
(i) => i.data.map((o) => new ke(o))
|
|
5547
5532
|
);
|
|
5548
5533
|
}
|
|
5549
5534
|
/**
|
|
@@ -5562,9 +5547,9 @@ class os extends p {
|
|
|
5562
5547
|
`/internal/price/categories/${r}/analyze/square`,
|
|
5563
5548
|
{
|
|
5564
5549
|
...e,
|
|
5565
|
-
filters:
|
|
5550
|
+
filters: Le(s)
|
|
5566
5551
|
},
|
|
5567
|
-
(i) => i.data.map((o) => new
|
|
5552
|
+
(i) => i.data.map((o) => new ke(o))
|
|
5568
5553
|
);
|
|
5569
5554
|
}
|
|
5570
5555
|
}
|
|
@@ -5618,7 +5603,7 @@ class At {
|
|
|
5618
5603
|
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? v(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new oe(r.product) : void 0, this.client = r.client ? new q(r.client) : void 0, this.executor = r.executor ? new q(r.executor) : void 0, this.currency = r.currency ? new we(r.currency) : void 0;
|
|
5619
5604
|
}
|
|
5620
5605
|
}
|
|
5621
|
-
class
|
|
5606
|
+
class $t extends oe {
|
|
5622
5607
|
/**
|
|
5623
5608
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
5624
5609
|
*
|
|
@@ -5643,17 +5628,17 @@ class cs extends p {
|
|
|
5643
5628
|
*/
|
|
5644
5629
|
getProductPriceHistory(r) {
|
|
5645
5630
|
var o, c, u, h, f;
|
|
5646
|
-
const e =
|
|
5631
|
+
const e = T.getConfig().dateFormats.api, s = cr(
|
|
5647
5632
|
fe(r, {
|
|
5648
5633
|
costDate: {
|
|
5649
|
-
from:
|
|
5650
|
-
to:
|
|
5634
|
+
from: xe((o = r.costDate) == null ? void 0 : o.from) ? x(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
5635
|
+
to: xe((u = r.costDate) == null ? void 0 : u.to) ? x(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
|
|
5651
5636
|
}
|
|
5652
5637
|
}),
|
|
5653
5638
|
(g) => A(g) || (V(g) || lr(g)) && K(g)
|
|
5654
5639
|
), i = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
|
|
5655
5640
|
return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((g) => [
|
|
5656
|
-
new
|
|
5641
|
+
new $t(fe(g[0], { history: g }))
|
|
5657
5642
|
]);
|
|
5658
5643
|
}
|
|
5659
5644
|
}
|
|
@@ -5721,7 +5706,7 @@ class ls extends p {
|
|
|
5721
5706
|
});
|
|
5722
5707
|
}
|
|
5723
5708
|
}
|
|
5724
|
-
class
|
|
5709
|
+
class $ extends ue {
|
|
5725
5710
|
/**
|
|
5726
5711
|
* Возвращает {@link Promise} для получения данных указанного справочника.
|
|
5727
5712
|
*
|
|
@@ -5812,7 +5797,7 @@ class T extends ue {
|
|
|
5812
5797
|
* @param term Терм поиска.
|
|
5813
5798
|
*/
|
|
5814
5799
|
searchCity(r) {
|
|
5815
|
-
return this.getTypedDataArrayRequester(
|
|
5800
|
+
return this.getTypedDataArrayRequester(ze, `/internal/references/city-with-region-and-country/search?term=${r}`);
|
|
5816
5801
|
}
|
|
5817
5802
|
/**
|
|
5818
5803
|
* Выполняет поиск данных о регионах по терму в названии.
|
|
@@ -5862,7 +5847,7 @@ class T extends ue {
|
|
|
5862
5847
|
}
|
|
5863
5848
|
}
|
|
5864
5849
|
const D = ee("__references_private", () => {
|
|
5865
|
-
const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), h = y(void 0), f = y(void 0), g = y(void 0), a = y(void 0), re = y(void 0), te = y(void 0),
|
|
5850
|
+
const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), h = y(void 0), f = y(void 0), g = y(void 0), a = y(void 0), re = y(void 0), te = y(void 0), G = y(void 0), F = y(void 0), Te = y(void 0), l = y(void 0);
|
|
5866
5851
|
return {
|
|
5867
5852
|
/**
|
|
5868
5853
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5923,15 +5908,15 @@ const D = ee("__references_private", () => {
|
|
|
5923
5908
|
/**
|
|
5924
5909
|
* Справочник источников первичного интереса.
|
|
5925
5910
|
*/
|
|
5926
|
-
sourcePrimaryInterestReference:
|
|
5911
|
+
sourcePrimaryInterestReference: G,
|
|
5927
5912
|
/**
|
|
5928
5913
|
* Справочник складов.
|
|
5929
5914
|
*/
|
|
5930
|
-
warehousesReference:
|
|
5915
|
+
warehousesReference: F,
|
|
5931
5916
|
/**
|
|
5932
5917
|
* Справочник типов свойств.
|
|
5933
5918
|
*/
|
|
5934
|
-
propertyTypesReference:
|
|
5919
|
+
propertyTypesReference: Te,
|
|
5935
5920
|
/**
|
|
5936
5921
|
* Справочник коэффициентов цен.
|
|
5937
5922
|
*/
|
|
@@ -5940,67 +5925,67 @@ const D = ee("__references_private", () => {
|
|
|
5940
5925
|
}), us = ee("references", () => {
|
|
5941
5926
|
const n = R(() => {
|
|
5942
5927
|
const l = D();
|
|
5943
|
-
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(
|
|
5928
|
+
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance($).getChannelPrimaryInterest().then((m) => {
|
|
5944
5929
|
l.channelPrimaryInterestReference = m;
|
|
5945
5930
|
}).catch(w)), l.channelPrimaryInterestReference;
|
|
5946
5931
|
}), r = R(() => {
|
|
5947
5932
|
const l = D();
|
|
5948
|
-
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance(
|
|
5933
|
+
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance($).getContactPositions().then((m) => {
|
|
5949
5934
|
l.contactPositionsReference = m;
|
|
5950
5935
|
}).catch(w)), l.contactPositionsReference;
|
|
5951
5936
|
}), e = R(() => {
|
|
5952
5937
|
const l = D();
|
|
5953
|
-
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance(
|
|
5938
|
+
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance($).getCurrency().then((m) => {
|
|
5954
5939
|
l.currencyReference = m;
|
|
5955
5940
|
}).catch(w)), l.currencyReference;
|
|
5956
5941
|
}), s = R(() => {
|
|
5957
5942
|
const l = D();
|
|
5958
|
-
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance(
|
|
5943
|
+
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance($).getOpf().then((m) => {
|
|
5959
5944
|
l.opfReference = m;
|
|
5960
5945
|
}).catch(w)), l.opfReference;
|
|
5961
5946
|
}), i = R(() => {
|
|
5962
5947
|
const l = D();
|
|
5963
|
-
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(
|
|
5948
|
+
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance($).getOrderPaymentStatuses().then((m) => {
|
|
5964
5949
|
l.orderPaymentStatusReference = m;
|
|
5965
5950
|
}).catch(w)), l.orderPaymentStatusReference;
|
|
5966
5951
|
}), o = R(() => {
|
|
5967
5952
|
const l = D();
|
|
5968
|
-
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance(
|
|
5953
|
+
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance($).getOrderStatuses().then((m) => {
|
|
5969
5954
|
l.orderStatusReference = m;
|
|
5970
5955
|
}).catch(w)), l.orderStatusReference;
|
|
5971
5956
|
}), c = R(() => {
|
|
5972
5957
|
const l = D();
|
|
5973
|
-
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance(
|
|
5958
|
+
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance($).getPaymentTypes().then((m) => {
|
|
5974
5959
|
l.paymentTypeReference = m;
|
|
5975
5960
|
}).catch(w)), l.paymentTypeReference;
|
|
5976
5961
|
}), u = R(() => {
|
|
5977
5962
|
const l = D();
|
|
5978
|
-
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance(
|
|
5963
|
+
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance($).getPartnerGroup().then((m) => {
|
|
5979
5964
|
l.partnerGroupReference = m;
|
|
5980
5965
|
}).catch(w)), l.partnerGroupReference;
|
|
5981
5966
|
}), h = R(() => {
|
|
5982
5967
|
const l = D();
|
|
5983
|
-
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance(
|
|
5968
|
+
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance($).getProductFileType().then((m) => {
|
|
5984
5969
|
l.productFileTypeReference = m;
|
|
5985
5970
|
}).catch(w)), l.productFileTypeReference;
|
|
5986
5971
|
}), f = R(() => {
|
|
5987
5972
|
const l = D();
|
|
5988
|
-
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance(
|
|
5973
|
+
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance($).getResourceTypes().then((m) => {
|
|
5989
5974
|
l.resourceTypesReference = m;
|
|
5990
5975
|
}).catch(w)), l.resourceTypesReference;
|
|
5991
5976
|
}), g = R(() => {
|
|
5992
5977
|
const l = D();
|
|
5993
|
-
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(
|
|
5978
|
+
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance($).getSalesDirections().then((m) => {
|
|
5994
5979
|
l.salesDirectionsReference = m;
|
|
5995
5980
|
}).catch(w)), l.salesDirectionsReference;
|
|
5996
5981
|
}), a = R(() => {
|
|
5997
5982
|
const l = D();
|
|
5998
|
-
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(
|
|
5983
|
+
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance($).getSourcePrimaryInterest().then((m) => {
|
|
5999
5984
|
l.sourcePrimaryInterestReference = m;
|
|
6000
5985
|
}).catch(w)), l.sourcePrimaryInterestReference;
|
|
6001
5986
|
}), re = R(() => {
|
|
6002
5987
|
const l = D();
|
|
6003
|
-
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(
|
|
5988
|
+
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance($).getDeliveryTypes().then((m) => {
|
|
6004
5989
|
l.deliveryTypeReference = m;
|
|
6005
5990
|
}).catch(w)), l.deliveryTypeReference;
|
|
6006
5991
|
}), te = R(() => {
|
|
@@ -6008,19 +5993,19 @@ const D = ee("__references_private", () => {
|
|
|
6008
5993
|
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(Rt).getManagers().then((m) => {
|
|
6009
5994
|
l.managersList = m;
|
|
6010
5995
|
}).catch(w)), l.managersList;
|
|
6011
|
-
}),
|
|
5996
|
+
}), G = R(() => {
|
|
6012
5997
|
const l = D();
|
|
6013
|
-
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance(
|
|
5998
|
+
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance($).getWarehouses().then((m) => {
|
|
6014
5999
|
l.warehousesReference = m;
|
|
6015
6000
|
}).catch(w)), l.warehousesReference;
|
|
6016
|
-
}),
|
|
6001
|
+
}), F = R(() => {
|
|
6017
6002
|
const l = D();
|
|
6018
|
-
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(
|
|
6003
|
+
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance($).getPropertyTypes().then((m) => {
|
|
6019
6004
|
l.propertyTypesReference = m;
|
|
6020
6005
|
}).catch(w)), l.propertyTypesReference;
|
|
6021
|
-
}),
|
|
6006
|
+
}), Te = R(() => {
|
|
6022
6007
|
const l = D();
|
|
6023
|
-
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(
|
|
6008
|
+
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance($).getPriceCoefficients().then((m) => {
|
|
6024
6009
|
l.priceCoefficientsReference = m;
|
|
6025
6010
|
}).catch(w)), l.priceCoefficientsReference;
|
|
6026
6011
|
});
|
|
@@ -6084,18 +6069,18 @@ const D = ee("__references_private", () => {
|
|
|
6084
6069
|
/**
|
|
6085
6070
|
* Справочник складов.
|
|
6086
6071
|
*/
|
|
6087
|
-
warehousesReference:
|
|
6072
|
+
warehousesReference: G,
|
|
6088
6073
|
/**
|
|
6089
6074
|
* Справочник типов свойств.
|
|
6090
6075
|
*/
|
|
6091
|
-
propertyTypesReference:
|
|
6076
|
+
propertyTypesReference: F,
|
|
6092
6077
|
/**
|
|
6093
6078
|
* Справочник коэффициентов цен.
|
|
6094
6079
|
*/
|
|
6095
|
-
priceCoefficientsReference:
|
|
6080
|
+
priceCoefficientsReference: Te
|
|
6096
6081
|
};
|
|
6097
6082
|
});
|
|
6098
|
-
class
|
|
6083
|
+
class Tt {
|
|
6099
6084
|
/**
|
|
6100
6085
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
6101
6086
|
*
|
|
@@ -6149,7 +6134,7 @@ class ir {
|
|
|
6149
6134
|
*/
|
|
6150
6135
|
t(this, "meta");
|
|
6151
6136
|
var e;
|
|
6152
|
-
this.resourceType = new vr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new
|
|
6137
|
+
this.resourceType = new vr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new Tt(s))) ?? [];
|
|
6153
6138
|
}
|
|
6154
6139
|
}
|
|
6155
6140
|
class ps extends p {
|
|
@@ -6259,7 +6244,7 @@ class gs extends p {
|
|
|
6259
6244
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
6260
6245
|
*/
|
|
6261
6246
|
constructor() {
|
|
6262
|
-
super(), this.baseUrl = `${
|
|
6247
|
+
super(), this.baseUrl = `${T.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
|
|
6263
6248
|
}
|
|
6264
6249
|
/**
|
|
6265
6250
|
* Функция для получения обновленных токенов доступа.
|
|
@@ -6329,30 +6314,30 @@ class fs {
|
|
|
6329
6314
|
}
|
|
6330
6315
|
export {
|
|
6331
6316
|
ut as AnyReference,
|
|
6332
|
-
|
|
6333
|
-
|
|
6317
|
+
Ft as AppBaseConfig,
|
|
6318
|
+
T as AppConfigProvider,
|
|
6334
6319
|
Oe as BankAccount,
|
|
6335
|
-
|
|
6320
|
+
$e as BasePaginationProvider,
|
|
6336
6321
|
Yr as CalculationTypeEnum,
|
|
6337
6322
|
ge as Cart,
|
|
6338
6323
|
Qr as CartItem,
|
|
6339
6324
|
Kr as CartItemBase,
|
|
6340
|
-
|
|
6341
|
-
|
|
6325
|
+
jt as CartProvider,
|
|
6326
|
+
Mt as CatalogProvider,
|
|
6342
6327
|
ur as CatalogableItem,
|
|
6343
6328
|
H as Category,
|
|
6344
6329
|
Ke as CategoryPricingRule,
|
|
6345
6330
|
Cr as ChannelPrimaryInterest,
|
|
6346
6331
|
Yt as City,
|
|
6347
|
-
|
|
6332
|
+
ze as CityWithRegionAndCountry,
|
|
6348
6333
|
Ze as Client,
|
|
6349
6334
|
vt as ClientAdditionalData,
|
|
6350
6335
|
ye as ClientCategory,
|
|
6351
|
-
|
|
6336
|
+
k as ClientDataProvider,
|
|
6352
6337
|
Bt as ClientPriceProvider,
|
|
6353
6338
|
Ht as ClientPriceTemplateProvider,
|
|
6354
6339
|
Y as ClientProduct,
|
|
6355
|
-
|
|
6340
|
+
Et as ClientProductCategoryDataProvider,
|
|
6356
6341
|
Jt as ClientProductDataProvider,
|
|
6357
6342
|
he as ClientShortInfo,
|
|
6358
6343
|
lt as ClientsAdditionalDataRequestTypeEnum,
|
|
@@ -6371,7 +6356,7 @@ export {
|
|
|
6371
6356
|
yt as ContragentPerson,
|
|
6372
6357
|
wt as ContragentUlNr,
|
|
6373
6358
|
Ar as ContragentUlR,
|
|
6374
|
-
|
|
6359
|
+
Fe as CostSourceEnum,
|
|
6375
6360
|
X as Country,
|
|
6376
6361
|
Be as CuratedDirection,
|
|
6377
6362
|
He as Curator,
|
|
@@ -6390,40 +6375,40 @@ export {
|
|
|
6390
6375
|
fs as FieldValidationResultData,
|
|
6391
6376
|
le as FilterGroup,
|
|
6392
6377
|
Qe as FilterItem,
|
|
6393
|
-
|
|
6378
|
+
We as FilterOpEnum,
|
|
6394
6379
|
hr as GeoCoordinates,
|
|
6395
6380
|
Jr as HiddenCatalogableItem,
|
|
6396
6381
|
ue as HttpCachedRequester,
|
|
6397
6382
|
it as HttpParamsConfig,
|
|
6398
6383
|
p as HttpRequester,
|
|
6399
|
-
|
|
6384
|
+
j as Identity,
|
|
6400
6385
|
Vr as Image,
|
|
6401
6386
|
O as JwtPayload,
|
|
6402
6387
|
Ae as Manager,
|
|
6403
|
-
|
|
6388
|
+
Me as ManagerCommon,
|
|
6404
6389
|
is as ManagerDataFactory,
|
|
6405
6390
|
Rt as ManagerDataProvider,
|
|
6406
|
-
|
|
6391
|
+
Tt as MetaTagItem,
|
|
6407
6392
|
b as NamedIdentity,
|
|
6408
6393
|
N as Opf,
|
|
6409
6394
|
d as OpfEnum,
|
|
6410
6395
|
rr as Order,
|
|
6411
|
-
|
|
6396
|
+
Tr as OrderInfo,
|
|
6412
6397
|
ht as OrderPaymentStatus,
|
|
6413
6398
|
Dt as OrderProduct,
|
|
6414
|
-
|
|
6399
|
+
$r as OrderShortInfo,
|
|
6415
6400
|
gt as OrderStatus,
|
|
6416
6401
|
ns as OrdersDataProvider,
|
|
6417
6402
|
Z as PartnerGroup,
|
|
6418
6403
|
mt as PaymentType,
|
|
6419
6404
|
me as PreferencesStorageProvider,
|
|
6420
|
-
|
|
6405
|
+
ke as PriceAnalyze,
|
|
6421
6406
|
os as PriceAnalyzeProvider,
|
|
6422
6407
|
Re as PriceCoefficient,
|
|
6423
6408
|
pr as PriceCoefficientEnum,
|
|
6424
6409
|
cs as PriceHistoryDataProvider,
|
|
6425
6410
|
At as PriceHistoryItem,
|
|
6426
|
-
|
|
6411
|
+
z as PriceTemplate,
|
|
6427
6412
|
ae as PriceTemplateCategory,
|
|
6428
6413
|
se as PriceTemplateClient,
|
|
6429
6414
|
fr as PriceTemplateICatalogableItem,
|
|
@@ -6433,11 +6418,11 @@ export {
|
|
|
6433
6418
|
Kt as PricingRoleProvider,
|
|
6434
6419
|
_e as PrimaryCatalogableItem,
|
|
6435
6420
|
I as Product,
|
|
6436
|
-
|
|
6437
|
-
|
|
6421
|
+
zt as ProductCategoryDataProvider,
|
|
6422
|
+
Wt as ProductDataProvider,
|
|
6438
6423
|
ft as ProductFileType,
|
|
6439
|
-
|
|
6440
|
-
|
|
6424
|
+
je as ProductPriceCoefficient,
|
|
6425
|
+
$t as ProductPriceHistory,
|
|
6441
6426
|
Qt as PropertiesProvider,
|
|
6442
6427
|
ie as Property,
|
|
6443
6428
|
wr as PropertyType,
|
|
@@ -6446,7 +6431,7 @@ export {
|
|
|
6446
6431
|
ls as RecommendationsDataProvider,
|
|
6447
6432
|
sr as RecommendationsList,
|
|
6448
6433
|
P as Reference,
|
|
6449
|
-
|
|
6434
|
+
$ as ReferenceDataProvider,
|
|
6450
6435
|
ce as Region,
|
|
6451
6436
|
vr as ResourceType,
|
|
6452
6437
|
_ as SalesDirection,
|
|
@@ -6454,9 +6439,9 @@ export {
|
|
|
6454
6439
|
ir as Seo,
|
|
6455
6440
|
ps as SeoDataProvider,
|
|
6456
6441
|
Pr as SourcePrimaryInterest,
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6442
|
+
Er as StockCount,
|
|
6443
|
+
Gt as TemplatesListFilters,
|
|
6444
|
+
Ge as TypedInstanceFactory,
|
|
6460
6445
|
er as UnitsHelper,
|
|
6461
6446
|
rs as UnknownClientDataProvider,
|
|
6462
6447
|
gr as UpdatableNamedIdentity,
|