@snabcentr/common-lib 1.74.1 → 1.74.2
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 +155 -151
- 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-additional-data.d.ts +11 -6
- package/dist/src/clients/classes/client-additional-data.d.ts.map +1 -1
- package/dist/src/clients/classes/client-short-info.d.ts +1 -1
- package/dist/src/clients/classes/client-short-info.d.ts.map +1 -1
- package/dist/src/clients/enums/clients-additional-data-request-type-enum.d.ts +1 -5
- package/dist/src/clients/enums/clients-additional-data-request-type-enum.d.ts.map +1 -1
- package/dist/src/clients/interfaces/i-client-additional-data.d.ts +5 -0
- package/dist/src/clients/interfaces/i-client-additional-data.d.ts.map +1 -1
- package/dist/src/clients/interfaces/i-client-short-info.d.ts +1 -1
- package/dist/src/clients/interfaces/i-client-short-info.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var $r = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var t = (n, r, e) =>
|
|
4
|
-
import { jwtDecode as
|
|
5
|
-
import { merge as ye, isUndefined as
|
|
6
|
-
import { objectToCamel as Fe, objectToSnake as
|
|
7
|
-
import { isAfter as
|
|
2
|
+
var ar = (n, r, e) => r in n ? $r(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var t = (n, r, e) => ar(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jwtDecode as ir } from "jwt-decode";
|
|
5
|
+
import { merge as ye, isUndefined as br, isNil as A, isEmpty as Y, noop as w, mapValues as nr, isArray as Q, every as Sr, split as Ir, toUpper as xr, constant as Lr, isString as C, cloneDeep as kr, toLower as _r, isFunction as Ue, map as Re, forEach as dr, isDate as _e, omitBy as or, isObject as cr } from "lodash-es";
|
|
6
|
+
import { objectToCamel as Fe, objectToSnake as We } from "ts-case-convert";
|
|
7
|
+
import { isAfter as Je, parseISO as v, startOfToday as de, format as O, addSeconds as Or, addBusinessDays as qr, endOfTomorrow as Nr, startOfTomorrow as Ur, endOfYesterday as Fr, startOfYesterday as Mr, endOfToday as jr, endOfDay as Gr, startOfDay as Br } from "date-fns";
|
|
8
8
|
import { defineStore as te } from "pinia";
|
|
9
|
-
import { ref as y, markRaw as
|
|
10
|
-
import
|
|
9
|
+
import { ref as y, markRaw as Er, computed as R } from "vue";
|
|
10
|
+
import Hr from "axios";
|
|
11
11
|
class N {
|
|
12
12
|
/**
|
|
13
13
|
* Инициализирует экземпляр класса {@link JwtPayload}.
|
|
@@ -107,7 +107,7 @@ class N {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
const e =
|
|
110
|
+
const e = ir(r), s = new N(Fe(e));
|
|
111
111
|
return s.resourceAccess = e.resource_access, s;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -151,7 +151,7 @@ class Ut extends N {
|
|
|
151
151
|
* @param jwtToken JWT-ключ доступа.
|
|
152
152
|
*/
|
|
153
153
|
static getJwtPayload(e) {
|
|
154
|
-
return new N(Fe(
|
|
154
|
+
return new N(Fe(ir(e)));
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
const J = class J {
|
|
@@ -168,7 +168,7 @@ const J = class J {
|
|
|
168
168
|
*/
|
|
169
169
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
170
170
|
static getConfig() {
|
|
171
|
-
if (
|
|
171
|
+
if (br(J.config))
|
|
172
172
|
throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
|
|
173
173
|
return J.config;
|
|
174
174
|
}
|
|
@@ -210,7 +210,7 @@ class fe {
|
|
|
210
210
|
if (e)
|
|
211
211
|
try {
|
|
212
212
|
const s = JSON.parse(e);
|
|
213
|
-
if (!s.availableFor ||
|
|
213
|
+
if (!s.availableFor || Je(v(s.availableFor) || de(), /* @__PURE__ */ new Date())) {
|
|
214
214
|
if (A(s.data) || Y(s.data))
|
|
215
215
|
throw new Error("Data is empty");
|
|
216
216
|
return s.data;
|
|
@@ -284,7 +284,7 @@ class fe {
|
|
|
284
284
|
const i = localStorage.getItem(s);
|
|
285
285
|
if (i) {
|
|
286
286
|
const o = JSON.parse(i);
|
|
287
|
-
o.availableFor && !
|
|
287
|
+
o.availableFor && !Je(v(o.availableFor) || de(), /* @__PURE__ */ new Date()) && r.push(s);
|
|
288
288
|
}
|
|
289
289
|
} catch {
|
|
290
290
|
r.push(s);
|
|
@@ -300,7 +300,7 @@ class fe {
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function Ve(n) {
|
|
304
304
|
try {
|
|
305
305
|
const r = N.getJwtPayload(n);
|
|
306
306
|
return new Date(r.exp * 1e3);
|
|
@@ -308,7 +308,7 @@ function Je(n) {
|
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
const
|
|
311
|
+
const E = te("__auth_state_private", () => {
|
|
312
312
|
const n = y(
|
|
313
313
|
(() => {
|
|
314
314
|
var u;
|
|
@@ -321,11 +321,11 @@ const H = te("__auth_state_private", () => {
|
|
|
321
321
|
const c = (u = $.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 = Er(/* @__PURE__ */ new Map());
|
|
325
325
|
function i() {
|
|
326
326
|
e.value = void 0, A(n.value) || n.value.then((o) => {
|
|
327
327
|
const c = N.getJwtPayload(o);
|
|
328
|
-
e.value = c.exp * 1e3 > Date.now() ?
|
|
328
|
+
e.value = c.exp * 1e3 > Date.now() ? nr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
|
|
329
329
|
}).catch(w);
|
|
330
330
|
}
|
|
331
331
|
return {
|
|
@@ -350,33 +350,33 @@ const H = te("__auth_state_private", () => {
|
|
|
350
350
|
*/
|
|
351
351
|
recalculateUserPermissions: i
|
|
352
352
|
};
|
|
353
|
-
}),
|
|
353
|
+
}), be = te("__auth_state", () => {
|
|
354
354
|
const n = R(() => {
|
|
355
|
-
const o =
|
|
355
|
+
const o = E();
|
|
356
356
|
if (A(o.jwtToken) && !A(o.jwtTokenUpdater)) {
|
|
357
357
|
const c = o.jwtTokenUpdater();
|
|
358
358
|
o.jwtToken = c, c.then((u) => {
|
|
359
|
-
o.jwtToken = Promise.resolve(u), fe.saveActualDataToStorage("sc.token", u,
|
|
359
|
+
o.jwtToken = Promise.resolve(u), fe.saveActualDataToStorage("sc.token", u, Ve(u)), o.recalculateUserPermissions();
|
|
360
360
|
}).catch(w);
|
|
361
361
|
}
|
|
362
362
|
return o.jwtToken;
|
|
363
363
|
});
|
|
364
364
|
function r(o) {
|
|
365
|
-
|
|
365
|
+
E().jwtTokenUpdater = o;
|
|
366
366
|
}
|
|
367
367
|
function e(o) {
|
|
368
|
-
const c =
|
|
369
|
-
c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o,
|
|
368
|
+
const c = E();
|
|
369
|
+
c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o, Ve(o)), c.recalculateUserPermissions();
|
|
370
370
|
}
|
|
371
371
|
function s() {
|
|
372
|
-
const o =
|
|
372
|
+
const o = E();
|
|
373
373
|
o.jwtToken = void 0, o.userPermissions = void 0, fe.saveActualDataToStorage("sc.token", void 0);
|
|
374
374
|
}
|
|
375
375
|
function i(o) {
|
|
376
|
-
const c =
|
|
376
|
+
const c = E();
|
|
377
377
|
!A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((f) => {
|
|
378
378
|
const g = N.getJwtPayload(f);
|
|
379
|
-
c.userPermissions = g.exp * 1e3 > Date.now() ?
|
|
379
|
+
c.userPermissions = g.exp * 1e3 > Date.now() ? nr(g.resourceAccess, (b) => (b == null ? void 0 : b.roles) ?? []) : void 0;
|
|
380
380
|
}).catch(w);
|
|
381
381
|
const u = Q(o) ? o.join(" && ") : o;
|
|
382
382
|
if (c.userPermissionsComputedRefs.has(u))
|
|
@@ -384,10 +384,10 @@ const H = te("__auth_state_private", () => {
|
|
|
384
384
|
const h = R(() => {
|
|
385
385
|
const f = (g) => {
|
|
386
386
|
var B;
|
|
387
|
-
const
|
|
388
|
-
if (
|
|
387
|
+
const b = Ir(g, ".");
|
|
388
|
+
if (b.length < 2)
|
|
389
389
|
return !1;
|
|
390
|
-
const [_, d] =
|
|
390
|
+
const [_, d] = b, G = (B = E().userPermissions) == null ? void 0 : B[_];
|
|
391
391
|
return Q(G) && G.includes(d);
|
|
392
392
|
};
|
|
393
393
|
return Q(o) ? Sr(o, (g) => f(g)) : f(o);
|
|
@@ -448,7 +448,7 @@ class j {
|
|
|
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
|
|
451
|
+
class a extends j {
|
|
452
452
|
/**
|
|
453
453
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
454
454
|
*
|
|
@@ -463,7 +463,7 @@ class b extends j {
|
|
|
463
463
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
class oe extends
|
|
466
|
+
class oe extends a {
|
|
467
467
|
/**
|
|
468
468
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
469
469
|
*
|
|
@@ -478,7 +478,7 @@ class oe extends b {
|
|
|
478
478
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
class
|
|
481
|
+
class lr extends oe {
|
|
482
482
|
/**
|
|
483
483
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
484
484
|
*
|
|
@@ -497,7 +497,7 @@ class cr extends oe {
|
|
|
497
497
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
class Oe extends
|
|
500
|
+
class Oe extends lr {
|
|
501
501
|
/**
|
|
502
502
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
503
503
|
*
|
|
@@ -539,8 +539,8 @@ class he extends Oe {
|
|
|
539
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]) => [xr(s), i])) : void 0;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
var
|
|
543
|
-
class P extends
|
|
542
|
+
var ur = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ur || {});
|
|
543
|
+
class P extends a {
|
|
544
544
|
/**
|
|
545
545
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
546
546
|
*
|
|
@@ -564,7 +564,7 @@ class De extends P {
|
|
|
564
564
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
565
565
|
*/
|
|
566
566
|
static getRetailPriceCoefficient() {
|
|
567
|
-
return { id: -2, slug:
|
|
567
|
+
return { id: -2, slug: ur.Retail, name: "Розн. цена", guid: "", isNewRec: Lr(!0) };
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
class Me {
|
|
@@ -597,7 +597,7 @@ class Me {
|
|
|
597
597
|
this.coefficient = new De(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
class
|
|
600
|
+
class pr {
|
|
601
601
|
/**
|
|
602
602
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
603
603
|
*
|
|
@@ -646,7 +646,7 @@ class Ae extends P {
|
|
|
646
646
|
* Координаты склада.
|
|
647
647
|
*/
|
|
648
648
|
t(this, "coordinates");
|
|
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 X(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new
|
|
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 X(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new pr(e == null ? void 0 : e.coordinates);
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
class zr {
|
|
@@ -667,7 +667,7 @@ class zr {
|
|
|
667
667
|
this.warehouse = new Ae(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
class Wr extends
|
|
670
|
+
class Wr extends lr {
|
|
671
671
|
/**
|
|
672
672
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
673
673
|
*
|
|
@@ -1000,7 +1000,7 @@ const S = class S {
|
|
|
1000
1000
|
// eslint-disable-next-line class-methods-use-this
|
|
1001
1001
|
t(this, "authRequestInterceptor", async (r) => {
|
|
1002
1002
|
let e;
|
|
1003
|
-
return A(
|
|
1003
|
+
return A(be().jwtToken) || (e = await be().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
|
|
1004
1004
|
});
|
|
1005
1005
|
/**
|
|
1006
1006
|
* Перехватчик запроса для преобразования данных запроса.
|
|
@@ -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 = We(r.params)), ["put", "patch", "post"].includes(_r(r.method)) && r.data && (r.data = We(r.data))), r));
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Перехватчик ошибок ответов на запрос.
|
|
1014
1014
|
*
|
|
@@ -1017,7 +1017,7 @@ const S = class S {
|
|
|
1017
1017
|
t(this, "authErrorsResponseInterceptors", (r) => {
|
|
1018
1018
|
var s;
|
|
1019
1019
|
const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
|
|
1020
|
-
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (
|
|
1020
|
+
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (be().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
|
|
1021
1021
|
});
|
|
1022
1022
|
/**
|
|
1023
1023
|
* Перехватчик ответа для преобразования данных ответа на запрос.
|
|
@@ -1027,7 +1027,7 @@ const S = class S {
|
|
|
1027
1027
|
// eslint-disable-next-line class-methods-use-this
|
|
1028
1028
|
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Fe(r.data)), r));
|
|
1029
1029
|
const r = $.getConfig().version;
|
|
1030
|
-
this.errorResponseHandler = S.defaultErrorsResponseHandler, this.httpClient =
|
|
1030
|
+
this.errorResponseHandler = S.defaultErrorsResponseHandler, this.httpClient = Hr.create({
|
|
1031
1031
|
headers: {
|
|
1032
1032
|
"APP-VERSION": `${r.name} (${r.version}, ${O(r.date, $.getConfig().dateFormats.uiDate)})`,
|
|
1033
1033
|
Accept: "application/json",
|
|
@@ -1300,7 +1300,7 @@ class z extends he {
|
|
|
1300
1300
|
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new z(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
class
|
|
1303
|
+
class hr extends a {
|
|
1304
1304
|
/**
|
|
1305
1305
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1306
1306
|
*
|
|
@@ -1315,7 +1315,7 @@ class pr extends b {
|
|
|
1315
1315
|
this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
|
-
class Xr extends
|
|
1318
|
+
class Xr extends hr {
|
|
1319
1319
|
/**
|
|
1320
1320
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1321
1321
|
*
|
|
@@ -1330,7 +1330,7 @@ class Xr extends pr {
|
|
|
1330
1330
|
this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
class U extends
|
|
1333
|
+
class U extends a {
|
|
1334
1334
|
/**
|
|
1335
1335
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
1336
1336
|
*
|
|
@@ -1345,7 +1345,7 @@ class U extends b {
|
|
|
1345
1345
|
this.type = e == null ? void 0 : e.type;
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
|
-
class Zr extends
|
|
1348
|
+
class Zr extends a {
|
|
1349
1349
|
/**
|
|
1350
1350
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1351
1351
|
*
|
|
@@ -1384,7 +1384,7 @@ class Zr 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 U(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 W extends
|
|
1387
|
+
class W extends hr {
|
|
1388
1388
|
/**
|
|
1389
1389
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1390
1390
|
*
|
|
@@ -1442,7 +1442,7 @@ class Z extends I {
|
|
|
1442
1442
|
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 Zr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(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
|
-
class
|
|
1445
|
+
class gr {
|
|
1446
1446
|
/**
|
|
1447
1447
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1448
1448
|
*
|
|
@@ -1462,7 +1462,7 @@ class hr {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
class x extends P {
|
|
1464
1464
|
}
|
|
1465
|
-
class ce extends
|
|
1465
|
+
class ce extends a {
|
|
1466
1466
|
/**
|
|
1467
1467
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1468
1468
|
*
|
|
@@ -1490,12 +1490,12 @@ class ce extends b {
|
|
|
1490
1490
|
* @inheritDoc
|
|
1491
1491
|
*/
|
|
1492
1492
|
t(this, "isRegionalDirector");
|
|
1493
|
-
this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : new x(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new
|
|
1493
|
+
this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : new x(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new gr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
1496
|
class Be extends P {
|
|
1497
1497
|
}
|
|
1498
|
-
class et extends
|
|
1498
|
+
class et extends a {
|
|
1499
1499
|
/**
|
|
1500
1500
|
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
1501
1501
|
*
|
|
@@ -1609,7 +1609,7 @@ class we extends rt {
|
|
|
1609
1609
|
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new we(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Z(o));
|
|
1610
1610
|
}
|
|
1611
1611
|
}
|
|
1612
|
-
class
|
|
1612
|
+
class mr {
|
|
1613
1613
|
/**
|
|
1614
1614
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
1615
1615
|
*
|
|
@@ -1627,7 +1627,7 @@ class gr {
|
|
|
1627
1627
|
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new De(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1628
1628
|
}
|
|
1629
1629
|
}
|
|
1630
|
-
class Se extends
|
|
1630
|
+
class Se extends mr {
|
|
1631
1631
|
/**
|
|
1632
1632
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1633
1633
|
*
|
|
@@ -1642,7 +1642,7 @@ class Se extends gr {
|
|
|
1642
1642
|
this.productCategory = new he(e == null ? void 0 : e.productCategory);
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
|
-
class
|
|
1645
|
+
class Ee extends a {
|
|
1646
1646
|
/**
|
|
1647
1647
|
* Инициализирует экземпляр класса {@link Curator}.
|
|
1648
1648
|
*
|
|
@@ -1662,7 +1662,7 @@ class mr extends b {
|
|
|
1662
1662
|
* @inheritDoc
|
|
1663
1663
|
*/
|
|
1664
1664
|
t(this, "curatedDirection");
|
|
1665
|
-
this.photo = e.photo, this.contacts = new
|
|
1665
|
+
this.photo = e.photo, this.contacts = new gr(e.contacts), this.curatedDirection = new Be(e.curatedDirection);
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
1668
1668
|
class ee extends P {
|
|
@@ -1697,7 +1697,7 @@ class He extends P {
|
|
|
1697
1697
|
e && (this.region = new le(e.region));
|
|
1698
1698
|
}
|
|
1699
1699
|
}
|
|
1700
|
-
class fr extends
|
|
1700
|
+
class fr extends a {
|
|
1701
1701
|
/**
|
|
1702
1702
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1703
1703
|
*
|
|
@@ -1782,7 +1782,7 @@ class ge extends fr {
|
|
|
1782
1782
|
* @inheritDoc
|
|
1783
1783
|
*/
|
|
1784
1784
|
t(this, "curators");
|
|
1785
|
-
this.salesDirection = new x(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 He(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 ce(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new
|
|
1785
|
+
this.salesDirection = new x(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 He(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 ce(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Ee(o))) ?? void 0;
|
|
1786
1786
|
}
|
|
1787
1787
|
}
|
|
1788
1788
|
class se extends j {
|
|
@@ -1812,7 +1812,7 @@ class se extends j {
|
|
|
1812
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 ge(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
|
-
class Ie extends
|
|
1815
|
+
class Ie extends mr {
|
|
1816
1816
|
/**
|
|
1817
1817
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1818
1818
|
*
|
|
@@ -1829,7 +1829,7 @@ class Ie extends gr {
|
|
|
1829
1829
|
}
|
|
1830
1830
|
class yr extends P {
|
|
1831
1831
|
}
|
|
1832
|
-
class ie extends
|
|
1832
|
+
class ie extends a {
|
|
1833
1833
|
/**
|
|
1834
1834
|
* Инициализирует экземпляр класса {@link Property}.
|
|
1835
1835
|
*
|
|
@@ -1852,7 +1852,7 @@ class ie extends b {
|
|
|
1852
1852
|
this.type = new yr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
|
-
class
|
|
1855
|
+
class H {
|
|
1856
1856
|
/**
|
|
1857
1857
|
* Инициализирует экземпляр класса {@link PropertyValue}.
|
|
1858
1858
|
*
|
|
@@ -1953,7 +1953,7 @@ class Mt {
|
|
|
1953
1953
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
|
-
class ne extends
|
|
1956
|
+
class ne extends a {
|
|
1957
1957
|
/**
|
|
1958
1958
|
* Инициализирует экземпляр класса {@link PricingRole}.
|
|
1959
1959
|
*
|
|
@@ -1988,7 +1988,7 @@ class ne extends b {
|
|
|
1988
1988
|
this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
|
|
1989
1989
|
}
|
|
1990
1990
|
}
|
|
1991
|
-
class
|
|
1991
|
+
class Ke {
|
|
1992
1992
|
/**
|
|
1993
1993
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
1994
1994
|
*
|
|
@@ -2448,7 +2448,7 @@ class Bt extends p {
|
|
|
2448
2448
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2449
2449
|
}
|
|
2450
2450
|
}
|
|
2451
|
-
class
|
|
2451
|
+
class Et extends p {
|
|
2452
2452
|
/**
|
|
2453
2453
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2454
2454
|
*
|
|
@@ -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 Ht extends p {
|
|
2544
2544
|
/**
|
|
2545
2545
|
* Возвращает список данных о корневых категориях.
|
|
2546
2546
|
*
|
|
@@ -2765,8 +2765,8 @@ class Jt extends p {
|
|
|
2765
2765
|
);
|
|
2766
2766
|
}
|
|
2767
2767
|
}
|
|
2768
|
-
var
|
|
2769
|
-
class
|
|
2768
|
+
var ze = /* @__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))(ze || {});
|
|
2769
|
+
class Qe {
|
|
2770
2770
|
/**
|
|
2771
2771
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
2772
2772
|
*
|
|
@@ -2785,7 +2785,7 @@ class Ke {
|
|
|
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) ?? ze.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2789
2789
|
}
|
|
2790
2790
|
/**
|
|
2791
2791
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -2820,7 +2820,7 @@ class ue {
|
|
|
2820
2820
|
*/
|
|
2821
2821
|
t(this, "groups");
|
|
2822
2822
|
var e, s;
|
|
2823
|
-
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new
|
|
2823
|
+
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Qe(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new ue(i))) ?? [];
|
|
2824
2824
|
}
|
|
2825
2825
|
/**
|
|
2826
2826
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2830,7 +2830,7 @@ class ue {
|
|
|
2830
2830
|
toPrimitive() {
|
|
2831
2831
|
return {
|
|
2832
2832
|
groupOp: this.groupOp,
|
|
2833
|
-
filters: this.filters.map((r) => r instanceof
|
|
2833
|
+
filters: this.filters.map((r) => r instanceof Qe && Ue(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2834
2834
|
groups: this.groups.map((r) => r instanceof ue ? r.toPrimitive() : r)
|
|
2835
2835
|
};
|
|
2836
2836
|
}
|
|
@@ -3120,7 +3120,7 @@ class Kt extends p {
|
|
|
3120
3120
|
return this.get(
|
|
3121
3121
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3122
3122
|
{},
|
|
3123
|
-
(e) => e.data.map((s) => new
|
|
3123
|
+
(e) => e.data.map((s) => new Ke(s))
|
|
3124
3124
|
);
|
|
3125
3125
|
}
|
|
3126
3126
|
/**
|
|
@@ -3135,7 +3135,7 @@ class Kt extends p {
|
|
|
3135
3135
|
return this.patch(
|
|
3136
3136
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3137
3137
|
e,
|
|
3138
|
-
(s) => s.data.map((i) => new
|
|
3138
|
+
(s) => s.data.map((i) => new Ke(i))
|
|
3139
3139
|
);
|
|
3140
3140
|
}
|
|
3141
3141
|
}
|
|
@@ -3215,7 +3215,7 @@ class Qt extends $e {
|
|
|
3215
3215
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
|
|
3216
3216
|
*/
|
|
3217
3217
|
getProductProperties(r) {
|
|
3218
|
-
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
3218
|
+
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
|
|
3219
3219
|
}
|
|
3220
3220
|
/**
|
|
3221
3221
|
* Возвращает значение свойства продукта.
|
|
@@ -3225,7 +3225,7 @@ class Qt extends $e {
|
|
|
3225
3225
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
|
|
3226
3226
|
*/
|
|
3227
3227
|
getProductProperty(r, e) {
|
|
3228
|
-
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new
|
|
3228
|
+
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new H(s.data));
|
|
3229
3229
|
}
|
|
3230
3230
|
/**
|
|
3231
3231
|
* Обновляет значение свойства продукта.
|
|
@@ -3236,7 +3236,7 @@ class Qt extends $e {
|
|
|
3236
3236
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
|
|
3237
3237
|
*/
|
|
3238
3238
|
updateProductProperty(r, e, s) {
|
|
3239
|
-
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new
|
|
3239
|
+
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
|
|
3240
3240
|
}
|
|
3241
3241
|
/**
|
|
3242
3242
|
* Удаляет значение свойства продукта.
|
|
@@ -3361,7 +3361,7 @@ class Qt extends $e {
|
|
|
3361
3361
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
|
|
3362
3362
|
*/
|
|
3363
3363
|
getCategoryProperties(r) {
|
|
3364
|
-
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
3364
|
+
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
|
|
3365
3365
|
}
|
|
3366
3366
|
/**
|
|
3367
3367
|
* Возвращает значение свойства категории.
|
|
@@ -3371,7 +3371,7 @@ class Qt extends $e {
|
|
|
3371
3371
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
|
|
3372
3372
|
*/
|
|
3373
3373
|
getCategoryProperty(r, e) {
|
|
3374
|
-
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new
|
|
3374
|
+
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new H(s.data));
|
|
3375
3375
|
}
|
|
3376
3376
|
/**
|
|
3377
3377
|
* Обновляет значение свойства категории.
|
|
@@ -3382,7 +3382,7 @@ class Qt extends $e {
|
|
|
3382
3382
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
|
|
3383
3383
|
*/
|
|
3384
3384
|
updateCategoryProperty(r, e, s) {
|
|
3385
|
-
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new
|
|
3385
|
+
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
|
|
3386
3386
|
}
|
|
3387
3387
|
/**
|
|
3388
3388
|
* Удаляет значение свойства категории.
|
|
@@ -3511,7 +3511,7 @@ class Qt extends $e {
|
|
|
3511
3511
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3512
3512
|
}
|
|
3513
3513
|
}
|
|
3514
|
-
function
|
|
3514
|
+
function Ye(n, r, e) {
|
|
3515
3515
|
let s;
|
|
3516
3516
|
return n.some((i) => {
|
|
3517
3517
|
if (i.type === e && i.id === r)
|
|
@@ -3520,28 +3520,28 @@ function Qe(n, r, e) {
|
|
|
3520
3520
|
return !1;
|
|
3521
3521
|
const o = i;
|
|
3522
3522
|
if (o.products && o.products.length > 0) {
|
|
3523
|
-
const c =
|
|
3523
|
+
const c = Ye(o.products, r, e);
|
|
3524
3524
|
if (c)
|
|
3525
3525
|
return s = c, !0;
|
|
3526
3526
|
}
|
|
3527
3527
|
if (o.categories && o.categories.length > 0) {
|
|
3528
|
-
const c =
|
|
3528
|
+
const c = Ye(o.categories, r, e);
|
|
3529
3529
|
if (c)
|
|
3530
3530
|
return s = c, !0;
|
|
3531
3531
|
}
|
|
3532
3532
|
return !1;
|
|
3533
3533
|
}), s;
|
|
3534
3534
|
}
|
|
3535
|
-
function
|
|
3535
|
+
function Xe(n) {
|
|
3536
3536
|
const r = [];
|
|
3537
3537
|
return n.forEach((e) => {
|
|
3538
3538
|
if (r.push(e), e.type === "category") {
|
|
3539
3539
|
const s = e;
|
|
3540
|
-
s.products && s.products.length > 0 && r.push(...
|
|
3540
|
+
s.products && s.products.length > 0 && r.push(...Xe(s.products)), s.categories && s.categories.length > 0 && r.push(...Xe(s.categories));
|
|
3541
3541
|
}
|
|
3542
3542
|
}), r;
|
|
3543
3543
|
}
|
|
3544
|
-
var ct = /* @__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
|
|
3544
|
+
var ct = /* @__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))(ct || {}), q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(q || {});
|
|
3545
3545
|
class lt extends P {
|
|
3546
3546
|
}
|
|
3547
3547
|
class wr extends P {
|
|
@@ -3550,7 +3550,7 @@ class Yt extends P {
|
|
|
3550
3550
|
}
|
|
3551
3551
|
class ut extends P {
|
|
3552
3552
|
}
|
|
3553
|
-
class Ce extends
|
|
3553
|
+
class Ce extends a {
|
|
3554
3554
|
/**
|
|
3555
3555
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
3556
3556
|
*
|
|
@@ -3627,7 +3627,7 @@ class qe extends j {
|
|
|
3627
3627
|
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new Ce(e.currency));
|
|
3628
3628
|
}
|
|
3629
3629
|
}
|
|
3630
|
-
class Ne extends
|
|
3630
|
+
class Ne extends a {
|
|
3631
3631
|
/**
|
|
3632
3632
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3633
3633
|
*
|
|
@@ -3681,7 +3681,7 @@ class M extends Ne {
|
|
|
3681
3681
|
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 = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3682
3682
|
}
|
|
3683
3683
|
}
|
|
3684
|
-
class Pr extends
|
|
3684
|
+
class Pr extends a {
|
|
3685
3685
|
/**
|
|
3686
3686
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3687
3687
|
*
|
|
@@ -3944,10 +3944,10 @@ class Pe extends Xr {
|
|
|
3944
3944
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
3945
3945
|
*/
|
|
3946
3946
|
t(this, "isTransportCompanyAddress");
|
|
3947
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
3947
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new pr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new M(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;
|
|
3948
3948
|
}
|
|
3949
3949
|
}
|
|
3950
|
-
class
|
|
3950
|
+
class Ze extends ge {
|
|
3951
3951
|
/**
|
|
3952
3952
|
* Инициализирует экземпляр класса {@link Client}.
|
|
3953
3953
|
*
|
|
@@ -4112,7 +4112,7 @@ class Xt {
|
|
|
4112
4112
|
*/
|
|
4113
4113
|
t(this, "isExcludedFromMsCallsToClients");
|
|
4114
4114
|
var e, s, i, o, c, u, h, f;
|
|
4115
|
-
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 He(g)), this.region = new le(r == null ? void 0 : r.region), this.country = new ee(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 k(r == null ? void 0 : r.createdAt), this.lastLoginDate = new k(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 Te(g))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((g) => new
|
|
4115
|
+
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 He(g)), this.region = new le(r == null ? void 0 : r.region), this.country = new ee(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 k(r == null ? void 0 : r.createdAt), this.lastLoginDate = new k(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 Te(g))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((g) => new Ee(g))) ?? [], this.salesDirections = (o = r == null ? void 0 : r.salesDirections) == null ? void 0 : o.map((g) => new x(g)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new F(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new X(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (c = r == null ? void 0 : r.partnerGroups) == null ? void 0 : c.map((g) => new re(g)), this.contact = new Ne(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
4116
4116
|
createdAt: new k((u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.createdAt),
|
|
4117
4117
|
creator: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.creator,
|
|
4118
4118
|
isApproved: (f = r == null ? void 0 : r.lastOrder) == null ? void 0 : f.isApproved
|
|
@@ -4207,40 +4207,44 @@ class Ar extends j {
|
|
|
4207
4207
|
this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new U(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
4208
4208
|
}
|
|
4209
4209
|
}
|
|
4210
|
-
class Ct extends
|
|
4210
|
+
class Ct extends a {
|
|
4211
4211
|
/**
|
|
4212
4212
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4213
4213
|
*
|
|
4214
4214
|
* @param data Данные для первоначальной инициализации.
|
|
4215
4215
|
*/
|
|
4216
4216
|
constructor(e) {
|
|
4217
|
-
var s, i;
|
|
4217
|
+
var s, i, o, c;
|
|
4218
4218
|
super(e);
|
|
4219
4219
|
/**
|
|
4220
|
-
*
|
|
4220
|
+
* @inheritDoc
|
|
4221
4221
|
*/
|
|
4222
4222
|
t(this, "contacts", []);
|
|
4223
4223
|
/**
|
|
4224
|
-
*
|
|
4224
|
+
* @inheritDoc
|
|
4225
4225
|
*/
|
|
4226
4226
|
t(this, "preferredDeliveryType");
|
|
4227
4227
|
/**
|
|
4228
|
-
*
|
|
4228
|
+
* @inheritDoc
|
|
4229
4229
|
*/
|
|
4230
4230
|
t(this, "partnerGroups", []);
|
|
4231
4231
|
/**
|
|
4232
|
-
*
|
|
4232
|
+
* @inheritDoc
|
|
4233
4233
|
*/
|
|
4234
4234
|
t(this, "lastOrder");
|
|
4235
4235
|
/**
|
|
4236
|
-
*
|
|
4236
|
+
* @inheritDoc
|
|
4237
4237
|
*/
|
|
4238
4238
|
t(this, "salesDirection");
|
|
4239
4239
|
/**
|
|
4240
|
-
*
|
|
4240
|
+
* @inheritDoc
|
|
4241
4241
|
*/
|
|
4242
4242
|
t(this, "managers");
|
|
4243
|
-
|
|
4243
|
+
/**
|
|
4244
|
+
* @inheritDoc
|
|
4245
|
+
*/
|
|
4246
|
+
t(this, "curators");
|
|
4247
|
+
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new M(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Ar(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new X(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new x(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new ce(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Ee(u))) ?? void 0;
|
|
4244
4248
|
}
|
|
4245
4249
|
}
|
|
4246
4250
|
class vt {
|
|
@@ -4340,7 +4344,7 @@ class L extends $e {
|
|
|
4340
4344
|
* @param contragent Данные о контрагенте клиента.
|
|
4341
4345
|
*/
|
|
4342
4346
|
static transformContragentClientDataToRequest(r) {
|
|
4343
|
-
var c, u, h, f, g,
|
|
4347
|
+
var c, u, h, f, g, b, _, d;
|
|
4344
4348
|
let e;
|
|
4345
4349
|
const s = r, i = r, o = r;
|
|
4346
4350
|
switch (r.opf.slug) {
|
|
@@ -4387,7 +4391,7 @@ class L extends $e {
|
|
|
4387
4391
|
name: o.name,
|
|
4388
4392
|
alternative_name: o.alternativeName,
|
|
4389
4393
|
partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
|
|
4390
|
-
manager_id: (
|
|
4394
|
+
manager_id: (b = o.manager) == null ? void 0 : b.id,
|
|
4391
4395
|
comment: o.comment,
|
|
4392
4396
|
director_name: o.directorName,
|
|
4393
4397
|
director_position: o.directorPosition,
|
|
@@ -4455,7 +4459,7 @@ class L extends $e {
|
|
|
4455
4459
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
4456
4460
|
*/
|
|
4457
4461
|
getClient(r) {
|
|
4458
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
4462
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new Ze(e.data));
|
|
4459
4463
|
}
|
|
4460
4464
|
/**
|
|
4461
4465
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -4483,7 +4487,7 @@ class L extends $e {
|
|
|
4483
4487
|
return this.getClientsList({
|
|
4484
4488
|
groupOp: "and",
|
|
4485
4489
|
groups: [],
|
|
4486
|
-
filters: [{ field: "phone", op:
|
|
4490
|
+
filters: [{ field: "phone", op: ze.Contains, value: r }]
|
|
4487
4491
|
});
|
|
4488
4492
|
}
|
|
4489
4493
|
/**
|
|
@@ -4520,7 +4524,7 @@ class L extends $e {
|
|
|
4520
4524
|
* @see /doc/api/internal#/Клиенты/api_internal_client_create
|
|
4521
4525
|
*/
|
|
4522
4526
|
createClientCommonData(r, e = {}) {
|
|
4523
|
-
return this.post("/internal/clients", L.transformClientDataToRequest(r), (s) => new
|
|
4527
|
+
return this.post("/internal/clients", L.transformClientDataToRequest(r), (s) => new Ze(s.data), e);
|
|
4524
4528
|
}
|
|
4525
4529
|
/**
|
|
4526
4530
|
* Обновляет данные указанного клиента.
|
|
@@ -5184,7 +5188,7 @@ const K = class K {
|
|
|
5184
5188
|
* Список единиц измерения линейной величины.
|
|
5185
5189
|
*/
|
|
5186
5190
|
t(K, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5187
|
-
let
|
|
5191
|
+
let er = K;
|
|
5188
5192
|
class is {
|
|
5189
5193
|
/**
|
|
5190
5194
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
@@ -5466,7 +5470,7 @@ class Le {
|
|
|
5466
5470
|
}
|
|
5467
5471
|
const ke = (n) => {
|
|
5468
5472
|
var r, e, s, i, o;
|
|
5469
|
-
return n ?
|
|
5473
|
+
return n ? or(
|
|
5470
5474
|
{
|
|
5471
5475
|
cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
|
|
5472
5476
|
clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
|
|
@@ -5475,9 +5479,9 @@ const ke = (n) => {
|
|
|
5475
5479
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
5476
5480
|
hideNotActive: n.hideNotActive
|
|
5477
5481
|
},
|
|
5478
|
-
(c) => A(c) || (Q(c) ||
|
|
5482
|
+
(c) => A(c) || (Q(c) || cr(c)) && Y(c)
|
|
5479
5483
|
) : {};
|
|
5480
|
-
},
|
|
5484
|
+
}, rr = (n) => {
|
|
5481
5485
|
const r = {};
|
|
5482
5486
|
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;
|
|
5483
5487
|
};
|
|
@@ -5495,7 +5499,7 @@ class os extends p {
|
|
|
5495
5499
|
return this.get(
|
|
5496
5500
|
`/internal/price/products/${r}/analyze`,
|
|
5497
5501
|
{
|
|
5498
|
-
...
|
|
5502
|
+
...rr(e),
|
|
5499
5503
|
filters: ke(s)
|
|
5500
5504
|
},
|
|
5501
5505
|
(i) => i.data.map((o) => new Le(o))
|
|
@@ -5514,7 +5518,7 @@ class os extends p {
|
|
|
5514
5518
|
return this.get(
|
|
5515
5519
|
`/internal/price/categories/${r}/analyze`,
|
|
5516
5520
|
{
|
|
5517
|
-
...
|
|
5521
|
+
...rr(e),
|
|
5518
5522
|
filters: ke(s)
|
|
5519
5523
|
},
|
|
5520
5524
|
(i) => i.data.map((o) => new Le(o))
|
|
@@ -5617,21 +5621,21 @@ class cs extends p {
|
|
|
5617
5621
|
*/
|
|
5618
5622
|
getProductPriceHistory(r) {
|
|
5619
5623
|
var o, c, u, h, f;
|
|
5620
|
-
const e = $.getConfig().dateFormats.api, s =
|
|
5624
|
+
const e = $.getConfig().dateFormats.api, s = or(
|
|
5621
5625
|
ye(r, {
|
|
5622
5626
|
costDate: {
|
|
5623
5627
|
from: _e((o = r.costDate) == null ? void 0 : o.from) ? O(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
5624
5628
|
to: _e((u = r.costDate) == null ? void 0 : u.to) ? O(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
|
|
5625
5629
|
}
|
|
5626
5630
|
}),
|
|
5627
|
-
(g) => A(g) || (Q(g) ||
|
|
5631
|
+
(g) => A(g) || (Q(g) || cr(g)) && Y(g)
|
|
5628
5632
|
), i = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
|
|
5629
5633
|
return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((g) => [
|
|
5630
5634
|
new Tt(ye(g[0], { history: g }))
|
|
5631
5635
|
]);
|
|
5632
5636
|
}
|
|
5633
5637
|
}
|
|
5634
|
-
class
|
|
5638
|
+
class tr {
|
|
5635
5639
|
/**
|
|
5636
5640
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
5637
5641
|
*
|
|
@@ -5657,7 +5661,7 @@ class ls extends p {
|
|
|
5657
5661
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
5658
5662
|
*/
|
|
5659
5663
|
getProductCategoryRecommendations(r) {
|
|
5660
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new
|
|
5664
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new tr(e.data));
|
|
5661
5665
|
}
|
|
5662
5666
|
/**
|
|
5663
5667
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -5666,7 +5670,7 @@ class ls extends p {
|
|
|
5666
5670
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
5667
5671
|
*/
|
|
5668
5672
|
getProductRecommendations(r) {
|
|
5669
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new
|
|
5673
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new tr(e.data));
|
|
5670
5674
|
}
|
|
5671
5675
|
/**
|
|
5672
5676
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -5836,7 +5840,7 @@ class T extends pe {
|
|
|
5836
5840
|
}
|
|
5837
5841
|
}
|
|
5838
5842
|
const D = te("__references_private", () => {
|
|
5839
|
-
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),
|
|
5843
|
+
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), b = y(void 0), _ = y(void 0), d = y(void 0), G = y(void 0), B = y(void 0), ae = y(void 0), l = y(void 0);
|
|
5840
5844
|
return {
|
|
5841
5845
|
/**
|
|
5842
5846
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5885,7 +5889,7 @@ const D = te("__references_private", () => {
|
|
|
5885
5889
|
/**
|
|
5886
5890
|
* Справочник типов файлов продукктов/категорий.
|
|
5887
5891
|
*/
|
|
5888
|
-
productFileTypeReference:
|
|
5892
|
+
productFileTypeReference: b,
|
|
5889
5893
|
/**
|
|
5890
5894
|
* Справочник типов ресурсов.
|
|
5891
5895
|
*/
|
|
@@ -5905,7 +5909,7 @@ const D = te("__references_private", () => {
|
|
|
5905
5909
|
/**
|
|
5906
5910
|
* Справочник типов свойств.
|
|
5907
5911
|
*/
|
|
5908
|
-
propertyTypesReference:
|
|
5912
|
+
propertyTypesReference: ae,
|
|
5909
5913
|
/**
|
|
5910
5914
|
* Справочник коэффициентов цен.
|
|
5911
5915
|
*/
|
|
@@ -5967,7 +5971,7 @@ const D = te("__references_private", () => {
|
|
|
5967
5971
|
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(T).getSalesDirections().then((m) => {
|
|
5968
5972
|
l.salesDirectionsReference = m;
|
|
5969
5973
|
}).catch(w)), l.salesDirectionsReference;
|
|
5970
|
-
}),
|
|
5974
|
+
}), b = R(() => {
|
|
5971
5975
|
const l = D();
|
|
5972
5976
|
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(T).getSourcePrimaryInterest().then((m) => {
|
|
5973
5977
|
l.sourcePrimaryInterestReference = m;
|
|
@@ -5992,7 +5996,7 @@ const D = te("__references_private", () => {
|
|
|
5992
5996
|
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(T).getPropertyTypes().then((m) => {
|
|
5993
5997
|
l.propertyTypesReference = m;
|
|
5994
5998
|
}).catch(w)), l.propertyTypesReference;
|
|
5995
|
-
}),
|
|
5999
|
+
}), ae = R(() => {
|
|
5996
6000
|
const l = D();
|
|
5997
6001
|
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(T).getPriceCoefficients().then((m) => {
|
|
5998
6002
|
l.priceCoefficientsReference = m;
|
|
@@ -6046,7 +6050,7 @@ const D = te("__references_private", () => {
|
|
|
6046
6050
|
/**
|
|
6047
6051
|
* Справочник каналов первичного интереса.
|
|
6048
6052
|
*/
|
|
6049
|
-
sourcePrimaryInterestsReference:
|
|
6053
|
+
sourcePrimaryInterestsReference: b,
|
|
6050
6054
|
/**
|
|
6051
6055
|
* Справочник типов доставки.
|
|
6052
6056
|
*/
|
|
@@ -6066,7 +6070,7 @@ const D = te("__references_private", () => {
|
|
|
6066
6070
|
/**
|
|
6067
6071
|
* Справочник коэффициентов цен.
|
|
6068
6072
|
*/
|
|
6069
|
-
priceCoefficientsReference:
|
|
6073
|
+
priceCoefficientsReference: ae
|
|
6070
6074
|
};
|
|
6071
6075
|
});
|
|
6072
6076
|
class $t {
|
|
@@ -6087,7 +6091,7 @@ class $t {
|
|
|
6087
6091
|
this.name = r.name, this.content = r.content;
|
|
6088
6092
|
}
|
|
6089
6093
|
}
|
|
6090
|
-
class
|
|
6094
|
+
class sr {
|
|
6091
6095
|
/**
|
|
6092
6096
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
6093
6097
|
*
|
|
@@ -6134,7 +6138,7 @@ class ps extends p {
|
|
|
6134
6138
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
6135
6139
|
*/
|
|
6136
6140
|
getResourceSeoData(r, e) {
|
|
6137
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new
|
|
6141
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new sr(s.data));
|
|
6138
6142
|
}
|
|
6139
6143
|
/**
|
|
6140
6144
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -6145,7 +6149,7 @@ class ps extends p {
|
|
|
6145
6149
|
* в случае ошибок в запросах.
|
|
6146
6150
|
*/
|
|
6147
6151
|
saveResourceSeoData(r, e = {}) {
|
|
6148
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new
|
|
6152
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new sr(s.data), e);
|
|
6149
6153
|
}
|
|
6150
6154
|
/**
|
|
6151
6155
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -6204,8 +6208,8 @@ class hs extends p {
|
|
|
6204
6208
|
});
|
|
6205
6209
|
}
|
|
6206
6210
|
}
|
|
6207
|
-
var
|
|
6208
|
-
class
|
|
6211
|
+
var at = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(at || {});
|
|
6212
|
+
class bt extends fr {
|
|
6209
6213
|
/**
|
|
6210
6214
|
* Инициализирует экземпляр класса {@link User}.
|
|
6211
6215
|
*
|
|
@@ -6250,7 +6254,7 @@ class St extends p {
|
|
|
6250
6254
|
*/
|
|
6251
6255
|
// eslint-disable-next-line class-methods-use-this
|
|
6252
6256
|
getCurrentUser() {
|
|
6253
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
6257
|
+
return this.get("/internal/users/info", {}, (r) => new bt(r.data));
|
|
6254
6258
|
}
|
|
6255
6259
|
}
|
|
6256
6260
|
const It = te("__user_state_private", () => {
|
|
@@ -6313,18 +6317,18 @@ export {
|
|
|
6313
6317
|
Vr as CartItemBase,
|
|
6314
6318
|
Ft as CartProvider,
|
|
6315
6319
|
Gt as CatalogProvider,
|
|
6316
|
-
|
|
6320
|
+
lr as CatalogableItem,
|
|
6317
6321
|
z as Category,
|
|
6318
|
-
|
|
6322
|
+
Ke as CategoryPricingRule,
|
|
6319
6323
|
wr as ChannelPrimaryInterest,
|
|
6320
6324
|
Yt as City,
|
|
6321
6325
|
He as CityWithRegionAndCountry,
|
|
6322
|
-
|
|
6326
|
+
Ze as Client,
|
|
6323
6327
|
Ct as ClientAdditionalData,
|
|
6324
6328
|
we as ClientCategory,
|
|
6325
6329
|
L as ClientDataProvider,
|
|
6326
6330
|
Bt as ClientPriceProvider,
|
|
6327
|
-
|
|
6331
|
+
Et as ClientPriceTemplateProvider,
|
|
6328
6332
|
Z as ClientProduct,
|
|
6329
6333
|
Wt as ClientProductCategoryDataProvider,
|
|
6330
6334
|
Jt as ClientProductDataProvider,
|
|
@@ -6334,7 +6338,7 @@ export {
|
|
|
6334
6338
|
oe as CodedIdentity,
|
|
6335
6339
|
ts as ConfiguratorProvider,
|
|
6336
6340
|
Ne as Contact,
|
|
6337
|
-
|
|
6341
|
+
gr as ContactLinks,
|
|
6338
6342
|
M as ContactPerson,
|
|
6339
6343
|
wt as ContactPersonRelated,
|
|
6340
6344
|
ut as ContactPosition,
|
|
@@ -6348,7 +6352,7 @@ export {
|
|
|
6348
6352
|
Ge as CostSourceEnum,
|
|
6349
6353
|
ee as Country,
|
|
6350
6354
|
Be as CuratedDirection,
|
|
6351
|
-
|
|
6355
|
+
Ee as Curator,
|
|
6352
6356
|
Ce as Currency,
|
|
6353
6357
|
hs as DataSuggestionProvider,
|
|
6354
6358
|
Zt as DataTablePagination,
|
|
@@ -6363,9 +6367,9 @@ export {
|
|
|
6363
6367
|
Zr as DiscountShortInfo,
|
|
6364
6368
|
fs as FieldValidationResultData,
|
|
6365
6369
|
ue as FilterGroup,
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6370
|
+
Qe as FilterItem,
|
|
6371
|
+
ze as FilterOpEnum,
|
|
6372
|
+
pr as GeoCoordinates,
|
|
6369
6373
|
Wr as HiddenCatalogableItem,
|
|
6370
6374
|
pe as HttpCachedRequester,
|
|
6371
6375
|
st as HttpParamsConfig,
|
|
@@ -6378,7 +6382,7 @@ export {
|
|
|
6378
6382
|
is as ManagerDataFactory,
|
|
6379
6383
|
Pt as ManagerDataProvider,
|
|
6380
6384
|
$t as MetaTagItem,
|
|
6381
|
-
|
|
6385
|
+
a as NamedIdentity,
|
|
6382
6386
|
F as Opf,
|
|
6383
6387
|
q as OpfEnum,
|
|
6384
6388
|
Dt as Order,
|
|
@@ -6394,20 +6398,20 @@ export {
|
|
|
6394
6398
|
Le as PriceAnalyze,
|
|
6395
6399
|
os as PriceAnalyzeProvider,
|
|
6396
6400
|
De as PriceCoefficient,
|
|
6397
|
-
|
|
6401
|
+
ur as PriceCoefficientEnum,
|
|
6398
6402
|
cs as PriceHistoryDataProvider,
|
|
6399
6403
|
At as PriceHistoryItem,
|
|
6400
6404
|
W as PriceTemplate,
|
|
6401
6405
|
Se as PriceTemplateCategory,
|
|
6402
6406
|
se as PriceTemplateClient,
|
|
6403
|
-
|
|
6407
|
+
mr as PriceTemplateICatalogableItem,
|
|
6404
6408
|
Ie as PriceTemplateProduct,
|
|
6405
6409
|
Vt as PriceTemplateProvider,
|
|
6406
6410
|
ne as PricingRole,
|
|
6407
6411
|
Kt as PricingRoleProvider,
|
|
6408
6412
|
Oe as PrimaryCatalogableItem,
|
|
6409
6413
|
I as Product,
|
|
6410
|
-
|
|
6414
|
+
Ht as ProductCategoryDataProvider,
|
|
6411
6415
|
zt as ProductDataProvider,
|
|
6412
6416
|
mt as ProductFileType,
|
|
6413
6417
|
Me as ProductPriceCoefficient,
|
|
@@ -6416,37 +6420,37 @@ export {
|
|
|
6416
6420
|
ie as Property,
|
|
6417
6421
|
yr as PropertyType,
|
|
6418
6422
|
Yr as PropertyTypeEnum,
|
|
6419
|
-
|
|
6423
|
+
H as PropertyValue,
|
|
6420
6424
|
ls as RecommendationsDataProvider,
|
|
6421
|
-
|
|
6425
|
+
tr as RecommendationsList,
|
|
6422
6426
|
P as Reference,
|
|
6423
6427
|
T as ReferenceDataProvider,
|
|
6424
6428
|
le as Region,
|
|
6425
6429
|
Cr as ResourceType,
|
|
6426
6430
|
x as SalesDirection,
|
|
6427
6431
|
it as SentryConfig,
|
|
6428
|
-
|
|
6432
|
+
sr as Seo,
|
|
6429
6433
|
ps as SeoDataProvider,
|
|
6430
6434
|
vr as SourcePrimaryInterest,
|
|
6431
6435
|
zr as StockCount,
|
|
6432
6436
|
Mt as TemplatesListFilters,
|
|
6433
6437
|
je as TypedInstanceFactory,
|
|
6434
|
-
|
|
6438
|
+
er as UnitsHelper,
|
|
6435
6439
|
rs as UnknownClientDataProvider,
|
|
6436
|
-
|
|
6437
|
-
|
|
6440
|
+
hr as UpdatableNamedIdentity,
|
|
6441
|
+
bt as User,
|
|
6438
6442
|
gs as UserAuthDataProvider,
|
|
6439
6443
|
fr as UserCommonInfo,
|
|
6440
6444
|
St as UserDataProvider,
|
|
6441
6445
|
et as UserPricingRole,
|
|
6442
6446
|
U as UserShortInfo,
|
|
6443
|
-
|
|
6447
|
+
at as UserTypeEnum,
|
|
6444
6448
|
nt as VersionConfig,
|
|
6445
6449
|
Ae as Warehouse,
|
|
6446
6450
|
ot as WebSocketConfig,
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6451
|
+
Ye as findCatalogItemByIdRecursive,
|
|
6452
|
+
Xe as flattenCatalogItems,
|
|
6453
|
+
be as useAuthStateStore,
|
|
6450
6454
|
us as useReferencesStore,
|
|
6451
6455
|
ms as useUserStateStore
|
|
6452
6456
|
};
|