@snabcentr/common-lib 1.73.0 → 1.74.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/release_notes.tmp +1 -27
- package/dist/sc-common-lib.js +547 -457
- 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-short-info.d.ts +5 -0
- package/dist/src/clients/classes/client-short-info.d.ts.map +1 -1
- package/dist/src/clients/classes/client.d.ts +9 -2
- package/dist/src/clients/classes/client.d.ts.map +1 -1
- package/dist/src/clients/classes/clients-list-filters.d.ts +12 -1
- package/dist/src/clients/classes/clients-list-filters.d.ts.map +1 -1
- package/dist/src/clients/interfaces/i-client-short-info.d.ts +5 -0
- package/dist/src/clients/interfaces/i-client-short-info.d.ts.map +1 -1
- package/dist/src/clients/interfaces/i-client.d.ts +9 -2
- package/dist/src/clients/interfaces/i-client.d.ts.map +1 -1
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts +5 -0
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts.map +1 -1
- package/dist/src/clients/providers/client-data-provider.d.ts +34 -0
- package/dist/src/clients/providers/client-data-provider.d.ts.map +1 -1
- package/dist/src/managers/classes/curator.d.ts +28 -0
- package/dist/src/managers/classes/curator.d.ts.map +1 -0
- package/dist/src/managers/classes/index.d.ts +1 -0
- package/dist/src/managers/classes/index.d.ts.map +1 -1
- package/dist/src/managers/classes/manager.d.ts +5 -0
- package/dist/src/managers/classes/manager.d.ts.map +1 -1
- package/dist/src/managers/interfaces/i-curator.d.ts +21 -0
- package/dist/src/managers/interfaces/i-curator.d.ts.map +1 -0
- package/dist/src/managers/interfaces/i-manager.d.ts +5 -0
- package/dist/src/managers/interfaces/i-manager.d.ts.map +1 -1
- package/dist/src/managers/interfaces/index.d.ts +1 -0
- package/dist/src/managers/interfaces/index.d.ts.map +1 -1
- package/dist/src/references/classes/curated-direction.d.ts +8 -0
- package/dist/src/references/classes/curated-direction.d.ts.map +1 -0
- package/dist/src/references/classes/index.d.ts +1 -0
- package/dist/src/references/classes/index.d.ts.map +1 -1
- package/dist/src/references/interfaces/i-curated-direction.d.ts +7 -0
- package/dist/src/references/interfaces/i-curated-direction.d.ts.map +1 -0
- package/dist/src/references/interfaces/index.d.ts +1 -0
- package/dist/src/references/interfaces/index.d.ts.map +1 -1
- package/dist/src/references/providers/reference-data-provider.d.ts +5 -0
- package/dist/src/references/providers/reference-data-provider.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (n, r, e) =>
|
|
4
|
-
import { jwtDecode as
|
|
5
|
-
import { merge as ye, isUndefined as
|
|
6
|
-
import { objectToCamel as Fe, objectToSnake as
|
|
7
|
-
import { isAfter as
|
|
1
|
+
var $r = Object.defineProperty;
|
|
2
|
+
var br = (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) => br(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jwtDecode as sr } from "jwt-decode";
|
|
5
|
+
import { merge as ye, isUndefined as ar, isNil as A, isEmpty as Y, noop as w, mapValues as ir, 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 nr, isObject as or } from "lodash-es";
|
|
6
|
+
import { objectToCamel as Fe, objectToSnake as ze } from "ts-case-convert";
|
|
7
|
+
import { isAfter as We, 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
|
|
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,11 +107,11 @@ class N {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
const e =
|
|
110
|
+
const e = sr(r), s = new N(Fe(e));
|
|
111
111
|
return s.resourceAccess = e.resource_access, s;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class Ut extends N {
|
|
115
115
|
/**
|
|
116
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
117
117
|
*
|
|
@@ -151,7 +151,7 @@ class dt extends N {
|
|
|
151
151
|
* @param jwtToken JWT-ключ доступа.
|
|
152
152
|
*/
|
|
153
153
|
static getJwtPayload(e) {
|
|
154
|
-
return new N(Fe(
|
|
154
|
+
return new N(Fe(sr(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 (ar(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 || We(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 && !We(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 Je(n) {
|
|
304
304
|
try {
|
|
305
305
|
const r = N.getJwtPayload(n);
|
|
306
306
|
return new Date(r.exp * 1e3);
|
|
@@ -309,7 +309,7 @@ function We(n) {
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
const E = te("__auth_state_private", () => {
|
|
312
|
-
const n =
|
|
312
|
+
const n = y(
|
|
313
313
|
(() => {
|
|
314
314
|
var u;
|
|
315
315
|
const o = fe.getActualDataFromStorage(
|
|
@@ -321,12 +321,12 @@ const E = 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 =
|
|
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() ?
|
|
329
|
-
}).catch(
|
|
328
|
+
e.value = c.exp * 1e3 > Date.now() ? ir(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
|
|
329
|
+
}).catch(w);
|
|
330
330
|
}
|
|
331
331
|
return {
|
|
332
332
|
/**
|
|
@@ -350,14 +350,14 @@ const E = te("__auth_state_private", () => {
|
|
|
350
350
|
*/
|
|
351
351
|
recalculateUserPermissions: i
|
|
352
352
|
};
|
|
353
|
-
}),
|
|
353
|
+
}), ae = te("__auth_state", () => {
|
|
354
354
|
const n = R(() => {
|
|
355
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,
|
|
360
|
-
}).catch(
|
|
359
|
+
o.jwtToken = Promise.resolve(u), fe.saveActualDataToStorage("sc.token", u, Je(u)), o.recalculateUserPermissions();
|
|
360
|
+
}).catch(w);
|
|
361
361
|
}
|
|
362
362
|
return o.jwtToken;
|
|
363
363
|
});
|
|
@@ -366,7 +366,7 @@ const E = te("__auth_state_private", () => {
|
|
|
366
366
|
}
|
|
367
367
|
function e(o) {
|
|
368
368
|
const c = E();
|
|
369
|
-
c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o,
|
|
369
|
+
c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o, Je(o)), c.recalculateUserPermissions();
|
|
370
370
|
}
|
|
371
371
|
function s() {
|
|
372
372
|
const o = E();
|
|
@@ -374,25 +374,25 @@ const E = te("__auth_state_private", () => {
|
|
|
374
374
|
}
|
|
375
375
|
function i(o) {
|
|
376
376
|
const c = E();
|
|
377
|
-
!A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((
|
|
378
|
-
const
|
|
379
|
-
c.userPermissions =
|
|
380
|
-
}).catch(
|
|
377
|
+
!A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((f) => {
|
|
378
|
+
const g = N.getJwtPayload(f);
|
|
379
|
+
c.userPermissions = g.exp * 1e3 > Date.now() ? ir(g.resourceAccess, (a) => (a == null ? void 0 : a.roles) ?? []) : void 0;
|
|
380
|
+
}).catch(w);
|
|
381
381
|
const u = Q(o) ? o.join(" && ") : o;
|
|
382
382
|
if (c.userPermissionsComputedRefs.has(u))
|
|
383
383
|
return c.userPermissionsComputedRefs.get(u);
|
|
384
|
-
const
|
|
385
|
-
const
|
|
384
|
+
const h = R(() => {
|
|
385
|
+
const f = (g) => {
|
|
386
386
|
var B;
|
|
387
|
-
const
|
|
388
|
-
if (
|
|
387
|
+
const a = Ir(g, ".");
|
|
388
|
+
if (a.length < 2)
|
|
389
389
|
return !1;
|
|
390
|
-
const [_,
|
|
391
|
-
return Q(G) && G.includes(
|
|
390
|
+
const [_, d] = a, G = (B = E().userPermissions) == null ? void 0 : B[_];
|
|
391
|
+
return Q(G) && G.includes(d);
|
|
392
392
|
};
|
|
393
|
-
return Q(o) ?
|
|
393
|
+
return Q(o) ? Sr(o, (g) => f(g)) : f(o);
|
|
394
394
|
});
|
|
395
|
-
return c.userPermissionsComputedRefs.set(u,
|
|
395
|
+
return c.userPermissionsComputedRefs.set(u, h), h;
|
|
396
396
|
}
|
|
397
397
|
return {
|
|
398
398
|
/**
|
|
@@ -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 cr extends oe {
|
|
482
482
|
/**
|
|
483
483
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
484
484
|
*
|
|
@@ -497,7 +497,7 @@ class or extends oe {
|
|
|
497
497
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
class
|
|
500
|
+
class Oe extends cr {
|
|
501
501
|
/**
|
|
502
502
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
503
503
|
*
|
|
@@ -512,7 +512,7 @@ class qe extends or {
|
|
|
512
512
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
class he extends
|
|
515
|
+
class he extends Oe {
|
|
516
516
|
/**
|
|
517
517
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
518
518
|
*
|
|
@@ -536,10 +536,10 @@ class he extends qe {
|
|
|
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]) => [xr(s), i])) : void 0;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
var
|
|
542
|
+
var lr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(lr || {});
|
|
543
543
|
class P extends b {
|
|
544
544
|
/**
|
|
545
545
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
@@ -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: lr.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 ur {
|
|
601
601
|
/**
|
|
602
602
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
603
603
|
*
|
|
@@ -646,10 +646,10 @@ 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 ur(e == null ? void 0 : e.coordinates);
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
class
|
|
652
|
+
class zr {
|
|
653
653
|
/**
|
|
654
654
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
655
655
|
*
|
|
@@ -667,7 +667,7 @@ class Br {
|
|
|
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
|
|
670
|
+
class Wr extends cr {
|
|
671
671
|
/**
|
|
672
672
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
673
673
|
*
|
|
@@ -682,7 +682,7 @@ class Er extends or {
|
|
|
682
682
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
|
-
class
|
|
685
|
+
class Jr {
|
|
686
686
|
/**
|
|
687
687
|
* Инициализирует экземпляр класса {@link Image}.
|
|
688
688
|
*
|
|
@@ -705,7 +705,7 @@ class Hr {
|
|
|
705
705
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
class I extends
|
|
708
|
+
class I extends Wr {
|
|
709
709
|
/**
|
|
710
710
|
* Инициализирует экземпляр класса {@link Product}.
|
|
711
711
|
*
|
|
@@ -790,9 +790,9 @@ class I extends Er {
|
|
|
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 =
|
|
794
|
-
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((
|
|
795
|
-
s && (this.category = 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 zr(h))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
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 Oe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new Oe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new Jr(h, $.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 Me(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
796
796
|
}
|
|
797
797
|
/**
|
|
798
798
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -815,7 +815,7 @@ class I extends Er {
|
|
|
815
815
|
return this.retailCostRub ?? this.costRub;
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
|
-
class
|
|
818
|
+
class Vr extends j {
|
|
819
819
|
/**
|
|
820
820
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
821
821
|
*
|
|
@@ -867,10 +867,10 @@ class zr extends j {
|
|
|
867
867
|
* Признак того, что позиция является дополнительной продажей.
|
|
868
868
|
*/
|
|
869
869
|
t(this, "isAdditionalSale");
|
|
870
|
-
this.product = new I(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams &&
|
|
870
|
+
this.product = new I(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && kr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
|
-
class
|
|
873
|
+
class Kr extends Vr {
|
|
874
874
|
/**
|
|
875
875
|
* Инициализирует экземпляр класса {@link CartItem}.
|
|
876
876
|
*
|
|
@@ -939,7 +939,7 @@ class me {
|
|
|
939
939
|
* Список итоговых сумм по направлениям продаж.
|
|
940
940
|
*/
|
|
941
941
|
t(this, "directionsSum");
|
|
942
|
-
this.items = r.items.map((e) => new
|
|
942
|
+
this.items = r.items.map((e) => new Kr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
class je {
|
|
@@ -961,7 +961,7 @@ class je {
|
|
|
961
961
|
return new r(e);
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
|
-
const
|
|
964
|
+
const S = class S {
|
|
965
965
|
/**
|
|
966
966
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
967
967
|
*/
|
|
@@ -981,7 +981,7 @@ const a = class a {
|
|
|
981
981
|
* @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
982
982
|
* @param disableNotifications Признак необходимости отключить уведомления об ошибках.
|
|
983
983
|
*/
|
|
984
|
-
t(this, "errorResponseHandler",
|
|
984
|
+
t(this, "errorResponseHandler", w);
|
|
985
985
|
/**
|
|
986
986
|
* Список идентификаторов обработчиков запросов для возможности отключить те или иные обработчики.
|
|
987
987
|
*/
|
|
@@ -1000,7 +1000,7 @@ const a = class a {
|
|
|
1000
1000
|
// eslint-disable-next-line class-methods-use-this
|
|
1001
1001
|
t(this, "authRequestInterceptor", async (r) => {
|
|
1002
1002
|
let e;
|
|
1003
|
-
return A(
|
|
1003
|
+
return A(ae().jwtToken) || (e = await ae().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
|
|
1004
1004
|
});
|
|
1005
1005
|
/**
|
|
1006
1006
|
* Перехватчик запроса для преобразования данных запроса.
|
|
@@ -1008,7 +1008,7 @@ const a = class a {
|
|
|
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 = ze(r.params)), ["put", "patch", "post"].includes(_r(r.method)) && r.data && (r.data = ze(r.data))), r));
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Перехватчик ошибок ответов на запрос.
|
|
1014
1014
|
*
|
|
@@ -1017,7 +1017,7 @@ const a = class a {
|
|
|
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) : (ae().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
|
|
1021
1021
|
});
|
|
1022
1022
|
/**
|
|
1023
1023
|
* Перехватчик ответа для преобразования данных ответа на запрос.
|
|
@@ -1027,9 +1027,9 @@ const a = class a {
|
|
|
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 =
|
|
1030
|
+
this.errorResponseHandler = S.defaultErrorsResponseHandler, this.httpClient = Hr.create({
|
|
1031
1031
|
headers: {
|
|
1032
|
-
"APP-VERSION": `${r.name} (${r.version}, ${
|
|
1032
|
+
"APP-VERSION": `${r.name} (${r.version}, ${O(r.date, $.getConfig().dateFormats.uiDate)})`,
|
|
1033
1033
|
Accept: "application/json",
|
|
1034
1034
|
"Content-Type": "application/json"
|
|
1035
1035
|
}
|
|
@@ -1038,7 +1038,7 @@ const a = class a {
|
|
|
1038
1038
|
(e) => Promise.reject(e)
|
|
1039
1039
|
), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
|
|
1040
1040
|
(e) => e,
|
|
1041
|
-
(e) =>
|
|
1041
|
+
(e) => S.convertHttpErrorResponse(e)
|
|
1042
1042
|
), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((e) => e, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
|
|
1043
1043
|
this.dataConverterResponseInterceptor,
|
|
1044
1044
|
(e) => Promise.reject(e)
|
|
@@ -1050,7 +1050,7 @@ const a = class a {
|
|
|
1050
1050
|
* @param handler Ссылка на функцию-обработчик ошибок.
|
|
1051
1051
|
*/
|
|
1052
1052
|
static setDefaultErrorsResponseHandler(r) {
|
|
1053
|
-
|
|
1053
|
+
S.defaultErrorsResponseHandler = r;
|
|
1054
1054
|
}
|
|
1055
1055
|
/**
|
|
1056
1056
|
* Возвращает экземпляр объекта текущего класса.
|
|
@@ -1058,7 +1058,7 @@ const a = class a {
|
|
|
1058
1058
|
* @param type Тип данных, которыми оперирует метод.
|
|
1059
1059
|
*/
|
|
1060
1060
|
static getInstance(r) {
|
|
1061
|
-
return Object.prototype.hasOwnProperty.call(
|
|
1061
|
+
return Object.prototype.hasOwnProperty.call(S.instances, r.name) || (S.instances[r.name] = je.simpleInstanceInitializer(r)), S.instances[r.name];
|
|
1062
1062
|
}
|
|
1063
1063
|
/**
|
|
1064
1064
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -1156,16 +1156,16 @@ const a = class a {
|
|
|
1156
1156
|
* Экземпляр объекта текущего класса.
|
|
1157
1157
|
*/
|
|
1158
1158
|
// eslint-disable-next-line no-use-before-define
|
|
1159
|
-
t(
|
|
1159
|
+
t(S, "instances", {}), /**
|
|
1160
1160
|
* Базовый обработчик ошибок выполнения запросов.
|
|
1161
1161
|
*
|
|
1162
1162
|
* @param error Данные об ошибке.
|
|
1163
1163
|
* @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
1164
1164
|
* @param disableNotifications Признак необходимости отключить уведомления об ошибках.
|
|
1165
1165
|
*/
|
|
1166
|
-
t(
|
|
1167
|
-
let
|
|
1168
|
-
class
|
|
1166
|
+
t(S, "defaultErrorsResponseHandler", w);
|
|
1167
|
+
let p = S;
|
|
1168
|
+
class Ft extends p {
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Возвращает содержимое корзины указанного клиента.
|
|
1171
1171
|
*
|
|
@@ -1279,7 +1279,7 @@ class Nt extends h {
|
|
|
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
|
|
1282
|
+
var Qr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Qr || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), Yr = /* @__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))(Yr || {});
|
|
1283
1283
|
class z extends he {
|
|
1284
1284
|
/**
|
|
1285
1285
|
* Инициализирует экземпляр класса {@link Category}.
|
|
@@ -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 pr extends b {
|
|
1304
1304
|
/**
|
|
1305
1305
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1306
1306
|
*
|
|
@@ -1312,10 +1312,10 @@ class ur extends b {
|
|
|
1312
1312
|
* Дата и время последнего изменения.
|
|
1313
1313
|
*/
|
|
1314
1314
|
t(this, "updatedAt");
|
|
1315
|
-
this.updatedAt =
|
|
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
|
|
1318
|
+
class Xr extends pr {
|
|
1319
1319
|
/**
|
|
1320
1320
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1321
1321
|
*
|
|
@@ -1327,7 +1327,7 @@ class Kr extends ur {
|
|
|
1327
1327
|
* Дата и время последнего удаления.
|
|
1328
1328
|
*/
|
|
1329
1329
|
t(this, "deletedAt");
|
|
1330
|
-
this.deletedAt =
|
|
1330
|
+
this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
1333
|
class U extends b {
|
|
@@ -1345,7 +1345,7 @@ class U extends b {
|
|
|
1345
1345
|
this.type = e == null ? void 0 : e.type;
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
|
-
class
|
|
1348
|
+
class Zr extends b {
|
|
1349
1349
|
/**
|
|
1350
1350
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1351
1351
|
*
|
|
@@ -1381,10 +1381,10 @@ class Qr extends b {
|
|
|
1381
1381
|
* Дата и время удаления.
|
|
1382
1382
|
*/
|
|
1383
1383
|
t(this, "deletedAt");
|
|
1384
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt =
|
|
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 pr {
|
|
1388
1388
|
/**
|
|
1389
1389
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1390
1390
|
*
|
|
@@ -1400,7 +1400,7 @@ class W extends ur {
|
|
|
1400
1400
|
* Дата и время создания шаблона.
|
|
1401
1401
|
*/
|
|
1402
1402
|
t(this, "createdAt");
|
|
1403
|
-
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt =
|
|
1403
|
+
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
1406
|
class Z extends I {
|
|
@@ -1439,10 +1439,10 @@ class Z 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) ?? Ge.Product, this.discount = e != null && e.discount ? new
|
|
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 hr {
|
|
1446
1446
|
/**
|
|
1447
1447
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1448
1448
|
*
|
|
@@ -1490,10 +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 hr(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
|
-
class
|
|
1496
|
+
class Be extends P {
|
|
1497
|
+
}
|
|
1498
|
+
class et extends b {
|
|
1497
1499
|
/**
|
|
1498
1500
|
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
1499
1501
|
*
|
|
@@ -1523,6 +1525,7 @@ class Te extends ce {
|
|
|
1523
1525
|
* @param data Данные для первоначальной инициализации.
|
|
1524
1526
|
*/
|
|
1525
1527
|
constructor(e) {
|
|
1528
|
+
var s;
|
|
1526
1529
|
super(e);
|
|
1527
1530
|
/**
|
|
1528
1531
|
* Признак активности учетной записи менеджера.
|
|
@@ -1548,10 +1551,14 @@ class Te extends ce {
|
|
|
1548
1551
|
* Данные роли ценообразования менеджера.
|
|
1549
1552
|
*/
|
|
1550
1553
|
t(this, "pricingRole");
|
|
1551
|
-
|
|
1554
|
+
/**
|
|
1555
|
+
* Список направлений кураторства.
|
|
1556
|
+
*/
|
|
1557
|
+
t(this, "curatedDirections");
|
|
1558
|
+
this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new et(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new Be(i))) ?? [];
|
|
1552
1559
|
}
|
|
1553
1560
|
}
|
|
1554
|
-
class
|
|
1561
|
+
class rt extends he {
|
|
1555
1562
|
/**
|
|
1556
1563
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1557
1564
|
*
|
|
@@ -1582,7 +1589,7 @@ class Zr extends he {
|
|
|
1582
1589
|
this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new Te(e.manager) : void 0;
|
|
1583
1590
|
}
|
|
1584
1591
|
}
|
|
1585
|
-
class we extends
|
|
1592
|
+
class we extends rt {
|
|
1586
1593
|
/**
|
|
1587
1594
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1588
1595
|
*
|
|
@@ -1602,7 +1609,7 @@ class we extends Zr {
|
|
|
1602
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));
|
|
1603
1610
|
}
|
|
1604
1611
|
}
|
|
1605
|
-
class
|
|
1612
|
+
class gr {
|
|
1606
1613
|
/**
|
|
1607
1614
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
1608
1615
|
*
|
|
@@ -1620,7 +1627,7 @@ class pr {
|
|
|
1620
1627
|
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new De(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1621
1628
|
}
|
|
1622
1629
|
}
|
|
1623
|
-
class
|
|
1630
|
+
class Se extends gr {
|
|
1624
1631
|
/**
|
|
1625
1632
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1626
1633
|
*
|
|
@@ -1635,6 +1642,29 @@ class ae extends pr {
|
|
|
1635
1642
|
this.productCategory = new he(e == null ? void 0 : e.productCategory);
|
|
1636
1643
|
}
|
|
1637
1644
|
}
|
|
1645
|
+
class mr extends b {
|
|
1646
|
+
/**
|
|
1647
|
+
* Инициализирует экземпляр класса {@link Curator}.
|
|
1648
|
+
*
|
|
1649
|
+
* @param data Данные для первоначальной инициализации.
|
|
1650
|
+
*/
|
|
1651
|
+
constructor(e) {
|
|
1652
|
+
super(e);
|
|
1653
|
+
/**
|
|
1654
|
+
* @inheritDoc
|
|
1655
|
+
*/
|
|
1656
|
+
t(this, "photo");
|
|
1657
|
+
/**
|
|
1658
|
+
* @inheritDoc
|
|
1659
|
+
*/
|
|
1660
|
+
t(this, "contacts");
|
|
1661
|
+
/**
|
|
1662
|
+
* @inheritDoc
|
|
1663
|
+
*/
|
|
1664
|
+
t(this, "curatedDirection");
|
|
1665
|
+
this.photo = e.photo, this.contacts = new hr(e.contacts), this.curatedDirection = new Be(e.curatedDirection);
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1638
1668
|
class ee extends P {
|
|
1639
1669
|
}
|
|
1640
1670
|
class le extends P {
|
|
@@ -1652,7 +1682,7 @@ class le extends P {
|
|
|
1652
1682
|
e && (this.country = new ee(e.country));
|
|
1653
1683
|
}
|
|
1654
1684
|
}
|
|
1655
|
-
class
|
|
1685
|
+
class Ee extends P {
|
|
1656
1686
|
/**
|
|
1657
1687
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
1658
1688
|
*
|
|
@@ -1667,7 +1697,7 @@ class Be extends P {
|
|
|
1667
1697
|
e && (this.region = new le(e.region));
|
|
1668
1698
|
}
|
|
1669
1699
|
}
|
|
1670
|
-
class
|
|
1700
|
+
class fr extends b {
|
|
1671
1701
|
/**
|
|
1672
1702
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1673
1703
|
*
|
|
@@ -1703,10 +1733,10 @@ class hr extends b {
|
|
|
1703
1733
|
* Признак активности учетной записи пользователя.
|
|
1704
1734
|
*/
|
|
1705
1735
|
t(this, "isActive");
|
|
1706
|
-
this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : void 0, this.createdAt =
|
|
1736
|
+
this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new x(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? v(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1707
1737
|
}
|
|
1708
1738
|
}
|
|
1709
|
-
class ge extends
|
|
1739
|
+
class ge extends fr {
|
|
1710
1740
|
/**
|
|
1711
1741
|
* Инициализирует экземпляр класса {@link Client}.
|
|
1712
1742
|
*
|
|
@@ -1714,7 +1744,7 @@ class ge extends hr {
|
|
|
1714
1744
|
*/
|
|
1715
1745
|
// eslint-disable-next-line sonarjs/cognitive-complexity
|
|
1716
1746
|
constructor(e) {
|
|
1717
|
-
var s;
|
|
1747
|
+
var s, i;
|
|
1718
1748
|
super(e);
|
|
1719
1749
|
/**
|
|
1720
1750
|
* Направление продаж.
|
|
@@ -1748,7 +1778,11 @@ class ge extends hr {
|
|
|
1748
1778
|
* Список менеджеров клиента.
|
|
1749
1779
|
*/
|
|
1750
1780
|
t(this, "managers");
|
|
1751
|
-
|
|
1781
|
+
/**
|
|
1782
|
+
* @inheritDoc
|
|
1783
|
+
*/
|
|
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 Ee(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 mr(o))) ?? [];
|
|
1752
1786
|
}
|
|
1753
1787
|
}
|
|
1754
1788
|
class se extends j {
|
|
@@ -1775,10 +1809,10 @@ class se extends j {
|
|
|
1775
1809
|
* Данные шаблона прайс-листа.
|
|
1776
1810
|
*/
|
|
1777
1811
|
t(this, "priceTemplate");
|
|
1778
|
-
this.createdAt =
|
|
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);
|
|
1779
1813
|
}
|
|
1780
1814
|
}
|
|
1781
|
-
class Ie extends
|
|
1815
|
+
class Ie extends gr {
|
|
1782
1816
|
/**
|
|
1783
1817
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1784
1818
|
*
|
|
@@ -1793,7 +1827,7 @@ class Ie extends pr {
|
|
|
1793
1827
|
this.product = new I(e == null ? void 0 : e.product);
|
|
1794
1828
|
}
|
|
1795
1829
|
}
|
|
1796
|
-
class
|
|
1830
|
+
class yr extends P {
|
|
1797
1831
|
}
|
|
1798
1832
|
class ie extends b {
|
|
1799
1833
|
/**
|
|
@@ -1815,7 +1849,7 @@ class ie extends b {
|
|
|
1815
1849
|
* Дополнительные метаданные свойства.
|
|
1816
1850
|
*/
|
|
1817
1851
|
t(this, "metadata");
|
|
1818
|
-
this.type = new
|
|
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;
|
|
1819
1853
|
}
|
|
1820
1854
|
}
|
|
1821
1855
|
class H {
|
|
@@ -1852,10 +1886,10 @@ class k {
|
|
|
1852
1886
|
* Окончание периода.
|
|
1853
1887
|
*/
|
|
1854
1888
|
t(this, "to");
|
|
1855
|
-
this.from =
|
|
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;
|
|
1856
1890
|
}
|
|
1857
1891
|
}
|
|
1858
|
-
class
|
|
1892
|
+
class Mt {
|
|
1859
1893
|
/**
|
|
1860
1894
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
1861
1895
|
*
|
|
@@ -1915,7 +1949,7 @@ class Ut {
|
|
|
1915
1949
|
return Object.keys(this).forEach((c) => {
|
|
1916
1950
|
const u = this[c];
|
|
1917
1951
|
// eslint-disable-next-line prettier/prettier
|
|
1918
|
-
A(u) ||
|
|
1952
|
+
A(u) || C(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
1919
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;
|
|
1920
1954
|
}
|
|
1921
1955
|
}
|
|
@@ -1954,7 +1988,7 @@ class ne extends b {
|
|
|
1954
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;
|
|
1955
1989
|
}
|
|
1956
1990
|
}
|
|
1957
|
-
class
|
|
1991
|
+
class Ve {
|
|
1958
1992
|
/**
|
|
1959
1993
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
1960
1994
|
*
|
|
@@ -1976,7 +2010,7 @@ class Je {
|
|
|
1976
2010
|
this.role = new ne(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new De(r == null ? void 0 : r.minCoefficient);
|
|
1977
2011
|
}
|
|
1978
2012
|
}
|
|
1979
|
-
class
|
|
2013
|
+
class tt {
|
|
1980
2014
|
/**
|
|
1981
2015
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
1982
2016
|
*
|
|
@@ -1998,7 +2032,7 @@ class et {
|
|
|
1998
2032
|
this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
|
|
1999
2033
|
}
|
|
2000
2034
|
}
|
|
2001
|
-
class
|
|
2035
|
+
class st {
|
|
2002
2036
|
/**
|
|
2003
2037
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
2004
2038
|
*
|
|
@@ -2020,7 +2054,7 @@ class rt {
|
|
|
2020
2054
|
this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
|
|
2021
2055
|
}
|
|
2022
2056
|
}
|
|
2023
|
-
class
|
|
2057
|
+
class it {
|
|
2024
2058
|
/**
|
|
2025
2059
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
2026
2060
|
*
|
|
@@ -2065,7 +2099,7 @@ class tt {
|
|
|
2065
2099
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
2066
2100
|
}
|
|
2067
2101
|
}
|
|
2068
|
-
class
|
|
2102
|
+
class nt {
|
|
2069
2103
|
/**
|
|
2070
2104
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
2071
2105
|
*
|
|
@@ -2084,10 +2118,10 @@ class st {
|
|
|
2084
2118
|
* Текущая версия приложения.
|
|
2085
2119
|
*/
|
|
2086
2120
|
t(this, "version");
|
|
2087
|
-
this.date =
|
|
2121
|
+
this.date = C(r == null ? void 0 : r.date) ? v(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
|
|
2088
2122
|
}
|
|
2089
2123
|
}
|
|
2090
|
-
class
|
|
2124
|
+
class ot {
|
|
2091
2125
|
/**
|
|
2092
2126
|
* Инициализирует экземпляр класса {@link WebSocketConfig}.
|
|
2093
2127
|
*
|
|
@@ -2126,7 +2160,7 @@ class it {
|
|
|
2126
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"];
|
|
2127
2161
|
}
|
|
2128
2162
|
}
|
|
2129
|
-
class
|
|
2163
|
+
class jt {
|
|
2130
2164
|
/**
|
|
2131
2165
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
2132
2166
|
*
|
|
@@ -2174,17 +2208,17 @@ class Ft {
|
|
|
2174
2208
|
*/
|
|
2175
2209
|
t(this, "dateFormats");
|
|
2176
2210
|
var e, s, i;
|
|
2177
|
-
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new
|
|
2211
|
+
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new st(r == null ? void 0 : r.http), this.deviceTypeByResolution = new tt(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new it({
|
|
2178
2212
|
environment: this.environment,
|
|
2179
2213
|
...r == null ? void 0 : r.sentry
|
|
2180
|
-
}), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.version = new
|
|
2214
|
+
}), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.version = new nt(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new ot(r.websocket) : void 0, this.dateFormats = {
|
|
2181
2215
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
2182
2216
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
2183
2217
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
2184
2218
|
};
|
|
2185
2219
|
}
|
|
2186
2220
|
}
|
|
2187
|
-
class
|
|
2221
|
+
class Gt extends p {
|
|
2188
2222
|
/**
|
|
2189
2223
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
2190
2224
|
*
|
|
@@ -2215,7 +2249,7 @@ class Mt extends h {
|
|
|
2215
2249
|
return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
|
|
2216
2250
|
}
|
|
2217
2251
|
}
|
|
2218
|
-
class
|
|
2252
|
+
class Bt extends p {
|
|
2219
2253
|
/**
|
|
2220
2254
|
* Импортирует цены клиента из CSV файла.
|
|
2221
2255
|
*
|
|
@@ -2414,7 +2448,7 @@ class jt extends h {
|
|
|
2414
2448
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2415
2449
|
}
|
|
2416
2450
|
}
|
|
2417
|
-
class
|
|
2451
|
+
class Et extends p {
|
|
2418
2452
|
/**
|
|
2419
2453
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2420
2454
|
*
|
|
@@ -2453,8 +2487,8 @@ class Gt extends h {
|
|
|
2453
2487
|
return this.post(
|
|
2454
2488
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
2455
2489
|
s && {
|
|
2456
|
-
startAt: s.startAt &&
|
|
2457
|
-
endAt: s.endAt &&
|
|
2490
|
+
startAt: s.startAt && O(s.startAt, i),
|
|
2491
|
+
endAt: s.endAt && O(s.endAt, i)
|
|
2458
2492
|
},
|
|
2459
2493
|
(o) => new se(o.data),
|
|
2460
2494
|
{},
|
|
@@ -2487,8 +2521,8 @@ class Gt extends h {
|
|
|
2487
2521
|
return this.patch(
|
|
2488
2522
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
2489
2523
|
i && {
|
|
2490
|
-
startAt: i.startAt &&
|
|
2491
|
-
endAt: i.endAt &&
|
|
2524
|
+
startAt: i.startAt && O(i.startAt, o),
|
|
2525
|
+
endAt: i.endAt && O(i.endAt, o)
|
|
2492
2526
|
},
|
|
2493
2527
|
(c) => new se(c.data)
|
|
2494
2528
|
);
|
|
@@ -2506,7 +2540,7 @@ class Gt extends h {
|
|
|
2506
2540
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2507
2541
|
}
|
|
2508
2542
|
}
|
|
2509
|
-
class
|
|
2543
|
+
class Ht extends p {
|
|
2510
2544
|
/**
|
|
2511
2545
|
* Возвращает список данных о корневых категориях.
|
|
2512
2546
|
*
|
|
@@ -2579,7 +2613,7 @@ class Bt extends h {
|
|
|
2579
2613
|
getCategoryProductsCoefficients(r) {
|
|
2580
2614
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2581
2615
|
const { data: s } = e;
|
|
2582
|
-
return
|
|
2616
|
+
return dr(s, (i) => i.map((o) => new Me(o))), s;
|
|
2583
2617
|
});
|
|
2584
2618
|
}
|
|
2585
2619
|
/**
|
|
@@ -2598,7 +2632,7 @@ class Bt extends h {
|
|
|
2598
2632
|
});
|
|
2599
2633
|
}
|
|
2600
2634
|
}
|
|
2601
|
-
class
|
|
2635
|
+
class zt extends p {
|
|
2602
2636
|
/**
|
|
2603
2637
|
* Возвращает данные об указанном продукте.
|
|
2604
2638
|
*
|
|
@@ -2648,7 +2682,7 @@ class Et extends h {
|
|
|
2648
2682
|
});
|
|
2649
2683
|
}
|
|
2650
2684
|
}
|
|
2651
|
-
class
|
|
2685
|
+
class Wt extends p {
|
|
2652
2686
|
/**
|
|
2653
2687
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2654
2688
|
*
|
|
@@ -2710,7 +2744,7 @@ class Ht extends h {
|
|
|
2710
2744
|
);
|
|
2711
2745
|
}
|
|
2712
2746
|
}
|
|
2713
|
-
class
|
|
2747
|
+
class Jt extends p {
|
|
2714
2748
|
/**
|
|
2715
2749
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2716
2750
|
*
|
|
@@ -2731,8 +2765,8 @@ class zt extends h {
|
|
|
2731
2765
|
);
|
|
2732
2766
|
}
|
|
2733
2767
|
}
|
|
2734
|
-
var
|
|
2735
|
-
class
|
|
2768
|
+
var He = /* @__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))(He || {});
|
|
2769
|
+
class Ke {
|
|
2736
2770
|
/**
|
|
2737
2771
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
2738
2772
|
*
|
|
@@ -2751,7 +2785,7 @@ class Ve {
|
|
|
2751
2785
|
* Значение с которым сравнивается поле.
|
|
2752
2786
|
*/
|
|
2753
2787
|
t(this, "value");
|
|
2754
|
-
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) ?? He.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2755
2789
|
}
|
|
2756
2790
|
/**
|
|
2757
2791
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -2763,7 +2797,7 @@ class Ve {
|
|
|
2763
2797
|
field: this.field,
|
|
2764
2798
|
op: this.op
|
|
2765
2799
|
};
|
|
2766
|
-
return r.value = _e(this.value) ?
|
|
2800
|
+
return r.value = _e(this.value) ? O(this.value, $.getConfig().dateFormats.api) : this.value, r;
|
|
2767
2801
|
}
|
|
2768
2802
|
}
|
|
2769
2803
|
class ue {
|
|
@@ -2786,7 +2820,7 @@ class ue {
|
|
|
2786
2820
|
*/
|
|
2787
2821
|
t(this, "groups");
|
|
2788
2822
|
var e, s;
|
|
2789
|
-
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 Ke(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new ue(i))) ?? [];
|
|
2790
2824
|
}
|
|
2791
2825
|
/**
|
|
2792
2826
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2796,12 +2830,12 @@ class ue {
|
|
|
2796
2830
|
toPrimitive() {
|
|
2797
2831
|
return {
|
|
2798
2832
|
groupOp: this.groupOp,
|
|
2799
|
-
filters: this.filters.map((r) => r instanceof
|
|
2833
|
+
filters: this.filters.map((r) => r instanceof Ke && Ue(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2800
2834
|
groups: this.groups.map((r) => r instanceof ue ? r.toPrimitive() : r)
|
|
2801
2835
|
};
|
|
2802
2836
|
}
|
|
2803
2837
|
}
|
|
2804
|
-
class $e extends
|
|
2838
|
+
class $e extends p {
|
|
2805
2839
|
/**
|
|
2806
2840
|
* Получает пагинированный список данных.
|
|
2807
2841
|
*
|
|
@@ -2814,14 +2848,14 @@ class $e extends h {
|
|
|
2814
2848
|
* @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
|
|
2815
2849
|
*/
|
|
2816
2850
|
getPaginated(r, e, s, i, o, c, u) {
|
|
2817
|
-
let
|
|
2851
|
+
let h = {
|
|
2818
2852
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2819
2853
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2820
2854
|
};
|
|
2821
|
-
return e && (
|
|
2855
|
+
return e && (h.filters = JSON.stringify((e instanceof ue ? e : new ue(e)).toPrimitive())), Y(s) || (h.sort = Q(s) ? s : [s]), o && (h = { ...h, ...o }), this.get(r, h, c, u);
|
|
2822
2856
|
}
|
|
2823
2857
|
}
|
|
2824
|
-
class
|
|
2858
|
+
class Vt extends $e {
|
|
2825
2859
|
/**
|
|
2826
2860
|
* Возвращает список шаблонов прайс-листа.
|
|
2827
2861
|
*
|
|
@@ -2949,7 +2983,7 @@ class Wt extends $e {
|
|
|
2949
2983
|
return this.get(
|
|
2950
2984
|
`/internal/price/templates/${r}/categories`,
|
|
2951
2985
|
{},
|
|
2952
|
-
(e) => e.data.map((s) => new
|
|
2986
|
+
(e) => e.data.map((s) => new Se(s))
|
|
2953
2987
|
);
|
|
2954
2988
|
}
|
|
2955
2989
|
/**
|
|
@@ -2964,7 +2998,7 @@ class Wt extends $e {
|
|
|
2964
2998
|
return this.get(
|
|
2965
2999
|
`/internal/price/templates/${r}/categories/${e}`,
|
|
2966
3000
|
{},
|
|
2967
|
-
(s) => new
|
|
3001
|
+
(s) => new Se(s.data)
|
|
2968
3002
|
);
|
|
2969
3003
|
}
|
|
2970
3004
|
/**
|
|
@@ -2990,7 +3024,7 @@ class Wt extends $e {
|
|
|
2990
3024
|
},
|
|
2991
3025
|
params: i ? { recursively: !0 } : {}
|
|
2992
3026
|
},
|
|
2993
|
-
(c) => new
|
|
3027
|
+
(c) => new Se(c.data)
|
|
2994
3028
|
);
|
|
2995
3029
|
}
|
|
2996
3030
|
/**
|
|
@@ -3025,7 +3059,7 @@ class Wt extends $e {
|
|
|
3025
3059
|
);
|
|
3026
3060
|
}
|
|
3027
3061
|
}
|
|
3028
|
-
class
|
|
3062
|
+
class Kt extends p {
|
|
3029
3063
|
/**
|
|
3030
3064
|
* Возвращает список ролей ценообразования.
|
|
3031
3065
|
*
|
|
@@ -3086,7 +3120,7 @@ class Jt extends h {
|
|
|
3086
3120
|
return this.get(
|
|
3087
3121
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3088
3122
|
{},
|
|
3089
|
-
(e) => e.data.map((s) => new
|
|
3123
|
+
(e) => e.data.map((s) => new Ve(s))
|
|
3090
3124
|
);
|
|
3091
3125
|
}
|
|
3092
3126
|
/**
|
|
@@ -3101,11 +3135,11 @@ class Jt extends h {
|
|
|
3101
3135
|
return this.patch(
|
|
3102
3136
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3103
3137
|
e,
|
|
3104
|
-
(s) => s.data.map((i) => new
|
|
3138
|
+
(s) => s.data.map((i) => new Ve(i))
|
|
3105
3139
|
);
|
|
3106
3140
|
}
|
|
3107
3141
|
}
|
|
3108
|
-
class
|
|
3142
|
+
class Qt extends $e {
|
|
3109
3143
|
/**
|
|
3110
3144
|
* Возвращает пагинированный список свойств.
|
|
3111
3145
|
*
|
|
@@ -3477,7 +3511,7 @@ class Vt extends $e {
|
|
|
3477
3511
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3478
3512
|
}
|
|
3479
3513
|
}
|
|
3480
|
-
function
|
|
3514
|
+
function Qe(n, r, e) {
|
|
3481
3515
|
let s;
|
|
3482
3516
|
return n.some((i) => {
|
|
3483
3517
|
if (i.type === e && i.id === r)
|
|
@@ -3486,35 +3520,35 @@ function Ke(n, r, e) {
|
|
|
3486
3520
|
return !1;
|
|
3487
3521
|
const o = i;
|
|
3488
3522
|
if (o.products && o.products.length > 0) {
|
|
3489
|
-
const c =
|
|
3523
|
+
const c = Qe(o.products, r, e);
|
|
3490
3524
|
if (c)
|
|
3491
3525
|
return s = c, !0;
|
|
3492
3526
|
}
|
|
3493
3527
|
if (o.categories && o.categories.length > 0) {
|
|
3494
|
-
const c =
|
|
3528
|
+
const c = Qe(o.categories, r, e);
|
|
3495
3529
|
if (c)
|
|
3496
3530
|
return s = c, !0;
|
|
3497
3531
|
}
|
|
3498
3532
|
return !1;
|
|
3499
3533
|
}), s;
|
|
3500
3534
|
}
|
|
3501
|
-
function
|
|
3535
|
+
function Ye(n) {
|
|
3502
3536
|
const r = [];
|
|
3503
3537
|
return n.forEach((e) => {
|
|
3504
3538
|
if (r.push(e), e.type === "category") {
|
|
3505
3539
|
const s = e;
|
|
3506
|
-
s.products && s.products.length > 0 && r.push(...
|
|
3540
|
+
s.products && s.products.length > 0 && r.push(...Ye(s.products)), s.categories && s.categories.length > 0 && r.push(...Ye(s.categories));
|
|
3507
3541
|
}
|
|
3508
3542
|
}), r;
|
|
3509
3543
|
}
|
|
3510
|
-
var
|
|
3511
|
-
class
|
|
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
|
+
class lt extends P {
|
|
3512
3546
|
}
|
|
3513
|
-
class
|
|
3547
|
+
class wr extends P {
|
|
3514
3548
|
}
|
|
3515
|
-
class
|
|
3549
|
+
class Yt extends P {
|
|
3516
3550
|
}
|
|
3517
|
-
class
|
|
3551
|
+
class ut extends P {
|
|
3518
3552
|
}
|
|
3519
3553
|
class Ce extends b {
|
|
3520
3554
|
/**
|
|
@@ -3543,26 +3577,26 @@ class F extends P {
|
|
|
3543
3577
|
return new F({
|
|
3544
3578
|
id: 1,
|
|
3545
3579
|
guid: "",
|
|
3546
|
-
slug:
|
|
3580
|
+
slug: q.Person,
|
|
3547
3581
|
name: ""
|
|
3548
3582
|
});
|
|
3549
3583
|
}
|
|
3550
3584
|
}
|
|
3551
|
-
class
|
|
3585
|
+
class pt extends P {
|
|
3552
3586
|
}
|
|
3553
|
-
class
|
|
3587
|
+
class ht extends P {
|
|
3554
3588
|
}
|
|
3555
3589
|
class re extends P {
|
|
3556
3590
|
}
|
|
3557
|
-
class
|
|
3591
|
+
class gt extends P {
|
|
3558
3592
|
}
|
|
3559
|
-
class
|
|
3593
|
+
class mt extends P {
|
|
3560
3594
|
}
|
|
3561
|
-
class
|
|
3595
|
+
class Cr extends P {
|
|
3562
3596
|
}
|
|
3563
|
-
class
|
|
3597
|
+
class vr extends P {
|
|
3564
3598
|
}
|
|
3565
|
-
class
|
|
3599
|
+
class qe extends j {
|
|
3566
3600
|
/**
|
|
3567
3601
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3568
3602
|
*
|
|
@@ -3644,10 +3678,10 @@ class M extends Ne {
|
|
|
3644
3678
|
* Дата и время последнего удаления.
|
|
3645
3679
|
*/
|
|
3646
3680
|
t(this, "deletedAt");
|
|
3647
|
-
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 =
|
|
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;
|
|
3648
3682
|
}
|
|
3649
3683
|
}
|
|
3650
|
-
class
|
|
3684
|
+
class Pr extends b {
|
|
3651
3685
|
/**
|
|
3652
3686
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3653
3687
|
*
|
|
@@ -3705,7 +3739,7 @@ class wr extends b {
|
|
|
3705
3739
|
*/
|
|
3706
3740
|
t(this, "updater");
|
|
3707
3741
|
if (e) {
|
|
3708
|
-
if (this.opf = new F(e.opf), this.salesDirection = new x(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt =
|
|
3742
|
+
if (this.opf = new F(e.opf), this.salesDirection = new x(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new U(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new re(e.partnerGroup)), e.manager && (this.manager = new ce(e.manager)), e.contacts) {
|
|
3709
3743
|
const s = [];
|
|
3710
3744
|
e.contacts.forEach((i) => {
|
|
3711
3745
|
s.push(new M(i));
|
|
@@ -3714,13 +3748,13 @@ class wr extends b {
|
|
|
3714
3748
|
if (e.bankAccounts) {
|
|
3715
3749
|
const s = [];
|
|
3716
3750
|
e.bankAccounts.forEach((i) => {
|
|
3717
|
-
s.push(new
|
|
3751
|
+
s.push(new qe(i));
|
|
3718
3752
|
}), this.bankAccounts = s;
|
|
3719
3753
|
}
|
|
3720
3754
|
}
|
|
3721
3755
|
}
|
|
3722
3756
|
}
|
|
3723
|
-
class
|
|
3757
|
+
class ft extends Pr {
|
|
3724
3758
|
/**
|
|
3725
3759
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3726
3760
|
*
|
|
@@ -3730,7 +3764,7 @@ class gt extends wr {
|
|
|
3730
3764
|
super(r);
|
|
3731
3765
|
}
|
|
3732
3766
|
}
|
|
3733
|
-
class
|
|
3767
|
+
class Rr extends Pr {
|
|
3734
3768
|
/**
|
|
3735
3769
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
3736
3770
|
*
|
|
@@ -3773,7 +3807,7 @@ class Cr extends wr {
|
|
|
3773
3807
|
e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
|
|
3774
3808
|
}
|
|
3775
3809
|
}
|
|
3776
|
-
class
|
|
3810
|
+
class Dr extends Rr {
|
|
3777
3811
|
/**
|
|
3778
3812
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
3779
3813
|
*
|
|
@@ -3788,7 +3822,7 @@ class vr extends Cr {
|
|
|
3788
3822
|
e && (this.kpp = e.kpp ?? "");
|
|
3789
3823
|
}
|
|
3790
3824
|
}
|
|
3791
|
-
class
|
|
3825
|
+
class yt extends Dr {
|
|
3792
3826
|
/**
|
|
3793
3827
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3794
3828
|
*
|
|
@@ -3819,14 +3853,14 @@ class ve {
|
|
|
3819
3853
|
*/
|
|
3820
3854
|
static createInstance(r) {
|
|
3821
3855
|
switch (r.opf.slug) {
|
|
3822
|
-
case
|
|
3823
|
-
return new
|
|
3824
|
-
case
|
|
3825
|
-
return new
|
|
3826
|
-
case
|
|
3827
|
-
return new
|
|
3856
|
+
case q.Ic:
|
|
3857
|
+
return new Rr(r);
|
|
3858
|
+
case q.UlR:
|
|
3859
|
+
return new Dr(r);
|
|
3860
|
+
case q.UlNr:
|
|
3861
|
+
return new yt(r);
|
|
3828
3862
|
default:
|
|
3829
|
-
return new
|
|
3863
|
+
return new ft(r);
|
|
3830
3864
|
}
|
|
3831
3865
|
}
|
|
3832
3866
|
}
|
|
@@ -3845,7 +3879,7 @@ class xe extends j {
|
|
|
3845
3879
|
this.isPrimary = e.isPrimary;
|
|
3846
3880
|
}
|
|
3847
3881
|
}
|
|
3848
|
-
class
|
|
3882
|
+
class wt extends M {
|
|
3849
3883
|
/**
|
|
3850
3884
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3851
3885
|
*
|
|
@@ -3873,7 +3907,7 @@ class ft extends M {
|
|
|
3873
3907
|
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new xe(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new xe(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new xe(s))));
|
|
3874
3908
|
}
|
|
3875
3909
|
}
|
|
3876
|
-
class Pe extends
|
|
3910
|
+
class Pe extends Xr {
|
|
3877
3911
|
/**
|
|
3878
3912
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
3879
3913
|
*
|
|
@@ -3910,10 +3944,10 @@ class Pe extends Kr {
|
|
|
3910
3944
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
3911
3945
|
*/
|
|
3912
3946
|
t(this, "isTransportCompanyAddress");
|
|
3913
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
3947
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new ur(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;
|
|
3914
3948
|
}
|
|
3915
3949
|
}
|
|
3916
|
-
class
|
|
3950
|
+
class Xe extends ge {
|
|
3917
3951
|
/**
|
|
3918
3952
|
* Инициализирует экземпляр класса {@link Client}.
|
|
3919
3953
|
*
|
|
@@ -3971,10 +4005,10 @@ class Ye extends ge {
|
|
|
3971
4005
|
* @inheritDoc
|
|
3972
4006
|
*/
|
|
3973
4007
|
t(this, "extraData");
|
|
3974
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Pe(u))) ?? [], this.channelPrimaryInterest = new
|
|
4008
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => ve.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Pe(u))) ?? [], this.channelPrimaryInterest = new wr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new vr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.reasonExcludedFromMsCallsToClients = e == null ? void 0 : e.reasonExcludedFromMsCallsToClients, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Ae(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
3975
4009
|
}
|
|
3976
4010
|
}
|
|
3977
|
-
class
|
|
4011
|
+
class Xt {
|
|
3978
4012
|
/**
|
|
3979
4013
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
3980
4014
|
*
|
|
@@ -4037,6 +4071,10 @@ class Qt {
|
|
|
4037
4071
|
* @inheritDoc
|
|
4038
4072
|
*/
|
|
4039
4073
|
t(this, "managers");
|
|
4074
|
+
/**
|
|
4075
|
+
* @inheritDoc
|
|
4076
|
+
*/
|
|
4077
|
+
t(this, "curators");
|
|
4040
4078
|
/**
|
|
4041
4079
|
* @inheritDoc
|
|
4042
4080
|
*/
|
|
@@ -4073,11 +4111,11 @@ class Qt {
|
|
|
4073
4111
|
* @inheritDoc
|
|
4074
4112
|
*/
|
|
4075
4113
|
t(this, "isExcludedFromMsCallsToClients");
|
|
4076
|
-
var e, s, i, o, c, u;
|
|
4077
|
-
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((
|
|
4078
|
-
createdAt: new k((
|
|
4079
|
-
creator: (
|
|
4080
|
-
isApproved: (
|
|
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 Ee(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 mr(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
|
+
createdAt: new k((u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.createdAt),
|
|
4117
|
+
creator: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.creator,
|
|
4118
|
+
isApproved: (f = r == null ? void 0 : r.lastOrder) == null ? void 0 : f.isApproved
|
|
4081
4119
|
}, this.isExcludedFromMsCallsToClients = r == null ? void 0 : r.isExcludedFromMsCallsToClients;
|
|
4082
4120
|
}
|
|
4083
4121
|
/**
|
|
@@ -4108,6 +4146,9 @@ class Qt {
|
|
|
4108
4146
|
case "managers":
|
|
4109
4147
|
this.managers = [];
|
|
4110
4148
|
break;
|
|
4149
|
+
case "curators":
|
|
4150
|
+
this.curators = [];
|
|
4151
|
+
break;
|
|
4111
4152
|
case "salesDirections":
|
|
4112
4153
|
this.salesDirections = [];
|
|
4113
4154
|
break;
|
|
@@ -4139,11 +4180,11 @@ class Qt {
|
|
|
4139
4180
|
return Object.keys(this).forEach((c) => {
|
|
4140
4181
|
const u = this[c];
|
|
4141
4182
|
// eslint-disable-next-line prettier/prettier
|
|
4142
|
-
A(u) ||
|
|
4183
|
+
A(u) || C(u) && u.trim().length === 0 || Ue(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
4143
4184
|
}), !((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;
|
|
4144
4185
|
}
|
|
4145
4186
|
}
|
|
4146
|
-
class
|
|
4187
|
+
class Ar extends j {
|
|
4147
4188
|
/**
|
|
4148
4189
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
4149
4190
|
*
|
|
@@ -4163,10 +4204,10 @@ class Pr extends j {
|
|
|
4163
4204
|
* Признак того, что заказ подтвержден в 1С.
|
|
4164
4205
|
*/
|
|
4165
4206
|
t(this, "isApproved1c");
|
|
4166
|
-
this.createdAt =
|
|
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;
|
|
4167
4208
|
}
|
|
4168
4209
|
}
|
|
4169
|
-
class
|
|
4210
|
+
class Ct extends b {
|
|
4170
4211
|
/**
|
|
4171
4212
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4172
4213
|
*
|
|
@@ -4199,10 +4240,10 @@ class yt extends b {
|
|
|
4199
4240
|
* Список менеджеров.
|
|
4200
4241
|
*/
|
|
4201
4242
|
t(this, "managers");
|
|
4202
|
-
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new
|
|
4243
|
+
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new Ar(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new re(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new X(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new x(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new ce(o)));
|
|
4203
4244
|
}
|
|
4204
4245
|
}
|
|
4205
|
-
class
|
|
4246
|
+
class vt {
|
|
4206
4247
|
/**
|
|
4207
4248
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
4208
4249
|
*
|
|
@@ -4220,7 +4261,7 @@ class wt {
|
|
|
4220
4261
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4221
4262
|
}
|
|
4222
4263
|
}
|
|
4223
|
-
class
|
|
4264
|
+
class Zt extends vt {
|
|
4224
4265
|
/**
|
|
4225
4266
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4226
4267
|
*
|
|
@@ -4251,7 +4292,7 @@ class Yt extends wt {
|
|
|
4251
4292
|
this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
|
|
4252
4293
|
}
|
|
4253
4294
|
}
|
|
4254
|
-
class
|
|
4295
|
+
class es {
|
|
4255
4296
|
/**
|
|
4256
4297
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
4257
4298
|
*
|
|
@@ -4299,11 +4340,11 @@ class L extends $e {
|
|
|
4299
4340
|
* @param contragent Данные о контрагенте клиента.
|
|
4300
4341
|
*/
|
|
4301
4342
|
static transformContragentClientDataToRequest(r) {
|
|
4302
|
-
var c, u,
|
|
4343
|
+
var c, u, h, f, g, a, _, d;
|
|
4303
4344
|
let e;
|
|
4304
4345
|
const s = r, i = r, o = r;
|
|
4305
4346
|
switch (r.opf.slug) {
|
|
4306
|
-
case
|
|
4347
|
+
case q.Ic:
|
|
4307
4348
|
e = {
|
|
4308
4349
|
opf: s.opf.slug,
|
|
4309
4350
|
name: s.name,
|
|
@@ -4321,13 +4362,13 @@ class L extends $e {
|
|
|
4321
4362
|
actual_address: s.actualAddress
|
|
4322
4363
|
};
|
|
4323
4364
|
break;
|
|
4324
|
-
case
|
|
4365
|
+
case q.UlR:
|
|
4325
4366
|
e = {
|
|
4326
4367
|
opf: i.opf.slug,
|
|
4327
4368
|
name: i.name,
|
|
4328
4369
|
alternative_name: i.alternativeName,
|
|
4329
|
-
partner_group_id: (
|
|
4330
|
-
manager_id: (
|
|
4370
|
+
partner_group_id: (h = i.partnerGroup) == null ? void 0 : h.id,
|
|
4371
|
+
manager_id: (f = i.manager) == null ? void 0 : f.id,
|
|
4331
4372
|
comment: i.comment,
|
|
4332
4373
|
inn: i.inn,
|
|
4333
4374
|
kpp: i.kpp,
|
|
@@ -4340,13 +4381,13 @@ class L extends $e {
|
|
|
4340
4381
|
actual_address: i.actualAddress
|
|
4341
4382
|
};
|
|
4342
4383
|
break;
|
|
4343
|
-
case
|
|
4384
|
+
case q.UlNr:
|
|
4344
4385
|
e = {
|
|
4345
4386
|
opf: o.opf.slug,
|
|
4346
4387
|
name: o.name,
|
|
4347
4388
|
alternative_name: o.alternativeName,
|
|
4348
|
-
partner_group_id: (
|
|
4349
|
-
manager_id: (
|
|
4389
|
+
partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
|
|
4390
|
+
manager_id: (a = o.manager) == null ? void 0 : a.id,
|
|
4350
4391
|
comment: o.comment,
|
|
4351
4392
|
director_name: o.directorName,
|
|
4352
4393
|
director_position: o.directorPosition,
|
|
@@ -4365,7 +4406,7 @@ class L extends $e {
|
|
|
4365
4406
|
name: r.name,
|
|
4366
4407
|
alternative_name: r.alternativeName,
|
|
4367
4408
|
partner_group_id: (_ = r.partnerGroup) == null ? void 0 : _.id,
|
|
4368
|
-
manager_id: (
|
|
4409
|
+
manager_id: (d = r.manager) == null ? void 0 : d.id,
|
|
4369
4410
|
comment: r.comment
|
|
4370
4411
|
};
|
|
4371
4412
|
break;
|
|
@@ -4414,7 +4455,7 @@ class L extends $e {
|
|
|
4414
4455
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
4415
4456
|
*/
|
|
4416
4457
|
getClient(r) {
|
|
4417
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
4458
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new Xe(e.data));
|
|
4418
4459
|
}
|
|
4419
4460
|
/**
|
|
4420
4461
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -4442,7 +4483,7 @@ class L extends $e {
|
|
|
4442
4483
|
return this.getClientsList({
|
|
4443
4484
|
groupOp: "and",
|
|
4444
4485
|
groups: [],
|
|
4445
|
-
filters: [{ field: "phone", op:
|
|
4486
|
+
filters: [{ field: "phone", op: He.Contains, value: r }]
|
|
4446
4487
|
});
|
|
4447
4488
|
}
|
|
4448
4489
|
/**
|
|
@@ -4456,7 +4497,7 @@ class L extends $e {
|
|
|
4456
4497
|
const s = r.map((i) => i.id);
|
|
4457
4498
|
return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
|
|
4458
4499
|
let o = [];
|
|
4459
|
-
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new
|
|
4500
|
+
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new Ct(c))), o;
|
|
4460
4501
|
});
|
|
4461
4502
|
}
|
|
4462
4503
|
/**
|
|
@@ -4468,7 +4509,7 @@ class L extends $e {
|
|
|
4468
4509
|
getAllClientContacts(r) {
|
|
4469
4510
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
4470
4511
|
let s = [];
|
|
4471
|
-
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new
|
|
4512
|
+
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new wt(i))), s;
|
|
4472
4513
|
});
|
|
4473
4514
|
}
|
|
4474
4515
|
/**
|
|
@@ -4479,7 +4520,7 @@ class L extends $e {
|
|
|
4479
4520
|
* @see /doc/api/internal#/Клиенты/api_internal_client_create
|
|
4480
4521
|
*/
|
|
4481
4522
|
createClientCommonData(r, e = {}) {
|
|
4482
|
-
return this.post("/internal/clients", L.transformClientDataToRequest(r), (s) => new
|
|
4523
|
+
return this.post("/internal/clients", L.transformClientDataToRequest(r), (s) => new Xe(s.data), e);
|
|
4483
4524
|
}
|
|
4484
4525
|
/**
|
|
4485
4526
|
* Обновляет данные указанного клиента.
|
|
@@ -4567,6 +4608,47 @@ class L extends $e {
|
|
|
4567
4608
|
const s = e.map((i) => this.patch(`/internal/clients/${r}/managers/${i.id}/detach`));
|
|
4568
4609
|
await Promise.all(s);
|
|
4569
4610
|
}
|
|
4611
|
+
/**
|
|
4612
|
+
* Закрепляет клиента за указанным куратором.
|
|
4613
|
+
*
|
|
4614
|
+
* @param clientId Идентификатор клиента, которого необходимо закрепить за куратором.
|
|
4615
|
+
* @param curatorId Идентификатор куратора, за которого необходимо закрепить клиента.
|
|
4616
|
+
* @param curatedDirection Направление кураторства.
|
|
4617
|
+
*
|
|
4618
|
+
* @see /doc/api/internal#/Клиенты/api_internal_client_curator_attach
|
|
4619
|
+
*/
|
|
4620
|
+
attachToCurator(r, e, s) {
|
|
4621
|
+
return this.patch(`/internal/clients/${r}/curators/${e}/attach`, { curated_direction_id: s.id });
|
|
4622
|
+
}
|
|
4623
|
+
/**
|
|
4624
|
+
* Открепляет клиента от указанного куратора.
|
|
4625
|
+
*
|
|
4626
|
+
* @param clientId Идентификатор клиента, которого необходимо открепить от куратора.
|
|
4627
|
+
* @param curatorId Идентификатор куратора, от которого необходимо открепить клиента.
|
|
4628
|
+
* @param curatedDirection Направление кураторства.
|
|
4629
|
+
*
|
|
4630
|
+
* @see /doc/api/internal#/Клиенты/api_internal_client_curator_detach
|
|
4631
|
+
*/
|
|
4632
|
+
detachFromCurator(r, e, s) {
|
|
4633
|
+
return this.patch(`/internal/clients/${r}/curators/${e}/detach`, { curated_direction_id: s.id });
|
|
4634
|
+
}
|
|
4635
|
+
/**
|
|
4636
|
+
* Устанавливает кураторов для указанного клиента.
|
|
4637
|
+
* При этом все ранее установленные кураторы будут удалены.
|
|
4638
|
+
*
|
|
4639
|
+
* @param clientId Идентификатор клиента, для которого необходимо установить кураторов.
|
|
4640
|
+
* @param curators Список данных о кураторах.
|
|
4641
|
+
*
|
|
4642
|
+
* @see /doc/api/internal#/Клиенты/api_internal_client_curator_update_list
|
|
4643
|
+
*/
|
|
4644
|
+
setCurators(r, e) {
|
|
4645
|
+
return this.patch(`/internal/clients/${r}/curators`, {
|
|
4646
|
+
curators: e.map((s) => ({
|
|
4647
|
+
curator_id: s.curatorId,
|
|
4648
|
+
curated_direction_id: s.curatedDirection.id
|
|
4649
|
+
}))
|
|
4650
|
+
});
|
|
4651
|
+
}
|
|
4570
4652
|
/**
|
|
4571
4653
|
* Создаёт нового контрагента клиента.
|
|
4572
4654
|
*
|
|
@@ -4664,7 +4746,7 @@ class L extends $e {
|
|
|
4664
4746
|
return this.post(
|
|
4665
4747
|
`/internal/clients/${r}/contragents/${e}/bank-accounts`,
|
|
4666
4748
|
L.transformClientContragentBankAccountToRequest(s),
|
|
4667
|
-
(o) => new
|
|
4749
|
+
(o) => new qe(o.data),
|
|
4668
4750
|
i
|
|
4669
4751
|
);
|
|
4670
4752
|
}
|
|
@@ -4681,7 +4763,7 @@ class L extends $e {
|
|
|
4681
4763
|
return this.patch(
|
|
4682
4764
|
`/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
|
|
4683
4765
|
L.transformClientContragentBankAccountToRequest(s),
|
|
4684
|
-
(o) => new
|
|
4766
|
+
(o) => new qe(o.data),
|
|
4685
4767
|
i
|
|
4686
4768
|
);
|
|
4687
4769
|
}
|
|
@@ -4874,7 +4956,7 @@ class L extends $e {
|
|
|
4874
4956
|
comment: e.comment,
|
|
4875
4957
|
...s
|
|
4876
4958
|
};
|
|
4877
|
-
return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (
|
|
4959
|
+
return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new M(h.data), i);
|
|
4878
4960
|
}
|
|
4879
4961
|
/**
|
|
4880
4962
|
* Устанавливает признак основного контактного лица.
|
|
@@ -4903,7 +4985,7 @@ class L extends $e {
|
|
|
4903
4985
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
4904
4986
|
}
|
|
4905
4987
|
}
|
|
4906
|
-
const V = class V extends
|
|
4988
|
+
const V = class V extends p {
|
|
4907
4989
|
/**
|
|
4908
4990
|
* Инициализирует экземпляр класса {@link HttpCachedRequester}.
|
|
4909
4991
|
*/
|
|
@@ -4935,7 +5017,7 @@ const V = class V extends h {
|
|
|
4935
5017
|
*/
|
|
4936
5018
|
cacheResponse(e, s) {
|
|
4937
5019
|
V.responseDataCache.set(e, {
|
|
4938
|
-
validTo:
|
|
5020
|
+
validTo: Or(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
4939
5021
|
val: s
|
|
4940
5022
|
});
|
|
4941
5023
|
}
|
|
@@ -4951,9 +5033,9 @@ const V = class V extends h {
|
|
|
4951
5033
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
4952
5034
|
getTypedDataArrayRequester(e, s, i = !1, o = {}) {
|
|
4953
5035
|
const c = s + (Y(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? V.getCachedResponse(c) : void 0;
|
|
4954
|
-
return u ? Promise.resolve(u) : this.get(s, o).then((
|
|
4955
|
-
const
|
|
4956
|
-
return i &&
|
|
5036
|
+
return u ? Promise.resolve(u) : this.get(s, o).then((h) => {
|
|
5037
|
+
const f = h.map((g) => je.instanceInitializer(e, g));
|
|
5038
|
+
return i && f && this.cacheResponse(s, f), f;
|
|
4957
5039
|
});
|
|
4958
5040
|
}
|
|
4959
5041
|
};
|
|
@@ -4962,7 +5044,7 @@ const V = class V extends h {
|
|
|
4962
5044
|
*/
|
|
4963
5045
|
t(V, "responseDataCache", /* @__PURE__ */ new Map());
|
|
4964
5046
|
let pe = V;
|
|
4965
|
-
class
|
|
5047
|
+
class rs extends p {
|
|
4966
5048
|
/**
|
|
4967
5049
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
4968
5050
|
*
|
|
@@ -4976,7 +5058,7 @@ class Zt extends h {
|
|
|
4976
5058
|
});
|
|
4977
5059
|
}
|
|
4978
5060
|
}
|
|
4979
|
-
class
|
|
5061
|
+
class ts extends p {
|
|
4980
5062
|
/**
|
|
4981
5063
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
4982
5064
|
*
|
|
@@ -5047,18 +5129,18 @@ class es extends h {
|
|
|
5047
5129
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.configurator}/template/${e}`);
|
|
5048
5130
|
}
|
|
5049
5131
|
}
|
|
5050
|
-
class
|
|
5132
|
+
class ss {
|
|
5051
5133
|
/**
|
|
5052
5134
|
* Возвращает диапазон дат по умолчанию.
|
|
5053
5135
|
*/
|
|
5054
5136
|
static defaultDateRanges() {
|
|
5055
|
-
const r =
|
|
5137
|
+
const r = qr(/* @__PURE__ */ new Date(), 1);
|
|
5056
5138
|
return {
|
|
5057
5139
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5058
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
5059
|
-
today: { label: "Сегодня", from:
|
|
5060
|
-
yesterday: { label: "Вчера", from:
|
|
5061
|
-
tomorrow: { label: "Завтра", from:
|
|
5140
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: Br(r), to: Gr(r) },
|
|
5141
|
+
today: { label: "Сегодня", from: de(), to: jr() },
|
|
5142
|
+
yesterday: { label: "Вчера", from: Mr(), to: Fr() },
|
|
5143
|
+
tomorrow: { label: "Завтра", from: Ur(), to: Nr() }
|
|
5062
5144
|
};
|
|
5063
5145
|
}
|
|
5064
5146
|
}
|
|
@@ -5102,8 +5184,8 @@ const K = class K {
|
|
|
5102
5184
|
* Список единиц измерения линейной величины.
|
|
5103
5185
|
*/
|
|
5104
5186
|
t(K, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5105
|
-
let
|
|
5106
|
-
class
|
|
5187
|
+
let Ze = K;
|
|
5188
|
+
class is {
|
|
5107
5189
|
/**
|
|
5108
5190
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5109
5191
|
*/
|
|
@@ -5119,7 +5201,7 @@ class ts {
|
|
|
5119
5201
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5120
5202
|
}
|
|
5121
5203
|
}
|
|
5122
|
-
class
|
|
5204
|
+
class Pt extends pe {
|
|
5123
5205
|
/**
|
|
5124
5206
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5125
5207
|
*/
|
|
@@ -5131,14 +5213,14 @@ class Ct extends pe {
|
|
|
5131
5213
|
return this.cacheResponse(r, i), i;
|
|
5132
5214
|
}
|
|
5133
5215
|
}
|
|
5134
|
-
class
|
|
5216
|
+
class Tr extends Ar {
|
|
5135
5217
|
/**
|
|
5136
5218
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
5137
5219
|
*
|
|
5138
5220
|
* @param data Данные для первоначальной инициализации.
|
|
5139
5221
|
*/
|
|
5140
5222
|
constructor(e) {
|
|
5141
|
-
var s, i, o, c, u,
|
|
5223
|
+
var s, i, o, c, u, h, f, g;
|
|
5142
5224
|
super(e);
|
|
5143
5225
|
/**
|
|
5144
5226
|
* Краткие данные о клиенте.
|
|
@@ -5186,13 +5268,13 @@ class Rr extends Pr {
|
|
|
5186
5268
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
5187
5269
|
}, this.delivery = {
|
|
5188
5270
|
type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
|
|
5189
|
-
date:
|
|
5190
|
-
address: (
|
|
5191
|
-
warehouse: (
|
|
5192
|
-
}, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new x(e == null ? void 0 : e.salesDirection), this.pendingAt =
|
|
5271
|
+
date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? v(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
|
|
5272
|
+
address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new Pe(e.delivery.address) : void 0,
|
|
5273
|
+
warehouse: (g = e == null ? void 0 : e.delivery) != null && g.warehouse ? new Ae(e.delivery.warehouse) : void 0
|
|
5274
|
+
}, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new x(e == null ? void 0 : e.salesDirection), this.pendingAt = 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;
|
|
5193
5275
|
}
|
|
5194
5276
|
}
|
|
5195
|
-
class
|
|
5277
|
+
class Rt extends j {
|
|
5196
5278
|
/**
|
|
5197
5279
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5198
5280
|
*
|
|
@@ -5275,7 +5357,7 @@ class vt extends j {
|
|
|
5275
5357
|
this.product = new Z(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;
|
|
5276
5358
|
}
|
|
5277
5359
|
}
|
|
5278
|
-
class
|
|
5360
|
+
class Dt extends Tr {
|
|
5279
5361
|
/**
|
|
5280
5362
|
* Инициализирует экземпляр класса {@link Order}.
|
|
5281
5363
|
*
|
|
@@ -5315,10 +5397,10 @@ class Pt extends Rr {
|
|
|
5315
5397
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
5316
5398
|
*/
|
|
5317
5399
|
t(this, "isAllowProcessingWithoutPayment");
|
|
5318
|
-
this.products = (e.products ?? []).map((s) => new
|
|
5400
|
+
this.products = (e.products ?? []).map((s) => new Rt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ve.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5319
5401
|
}
|
|
5320
5402
|
}
|
|
5321
|
-
class
|
|
5403
|
+
class ns extends $e {
|
|
5322
5404
|
/**
|
|
5323
5405
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5324
5406
|
*
|
|
@@ -5331,7 +5413,7 @@ class ss extends $e {
|
|
|
5331
5413
|
getOrders(r, e, s) {
|
|
5332
5414
|
return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
|
|
5333
5415
|
const o = { ...i.data };
|
|
5334
|
-
return o.data = o.data.map((c) => new
|
|
5416
|
+
return o.data = o.data.map((c) => new Tr(c)), o;
|
|
5335
5417
|
});
|
|
5336
5418
|
}
|
|
5337
5419
|
/**
|
|
@@ -5349,7 +5431,7 @@ class ss extends $e {
|
|
|
5349
5431
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
5350
5432
|
*/
|
|
5351
5433
|
getOrder(r) {
|
|
5352
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
5434
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new Dt(e.data));
|
|
5353
5435
|
}
|
|
5354
5436
|
}
|
|
5355
5437
|
class Le {
|
|
@@ -5384,7 +5466,7 @@ class Le {
|
|
|
5384
5466
|
}
|
|
5385
5467
|
const ke = (n) => {
|
|
5386
5468
|
var r, e, s, i, o;
|
|
5387
|
-
return n ?
|
|
5469
|
+
return n ? nr(
|
|
5388
5470
|
{
|
|
5389
5471
|
cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
|
|
5390
5472
|
clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
|
|
@@ -5393,13 +5475,13 @@ const ke = (n) => {
|
|
|
5393
5475
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
5394
5476
|
hideNotActive: n.hideNotActive
|
|
5395
5477
|
},
|
|
5396
|
-
(c) => A(c) || (Q(c) ||
|
|
5478
|
+
(c) => A(c) || (Q(c) || or(c)) && Y(c)
|
|
5397
5479
|
) : {};
|
|
5398
|
-
},
|
|
5480
|
+
}, er = (n) => {
|
|
5399
5481
|
const r = {};
|
|
5400
5482
|
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;
|
|
5401
5483
|
};
|
|
5402
|
-
class
|
|
5484
|
+
class os extends p {
|
|
5403
5485
|
/**
|
|
5404
5486
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
5405
5487
|
*
|
|
@@ -5413,7 +5495,7 @@ class is extends h {
|
|
|
5413
5495
|
return this.get(
|
|
5414
5496
|
`/internal/price/products/${r}/analyze`,
|
|
5415
5497
|
{
|
|
5416
|
-
...
|
|
5498
|
+
...er(e),
|
|
5417
5499
|
filters: ke(s)
|
|
5418
5500
|
},
|
|
5419
5501
|
(i) => i.data.map((o) => new Le(o))
|
|
@@ -5432,7 +5514,7 @@ class is extends h {
|
|
|
5432
5514
|
return this.get(
|
|
5433
5515
|
`/internal/price/categories/${r}/analyze`,
|
|
5434
5516
|
{
|
|
5435
|
-
...
|
|
5517
|
+
...er(e),
|
|
5436
5518
|
filters: ke(s)
|
|
5437
5519
|
},
|
|
5438
5520
|
(i) => i.data.map((o) => new Le(o))
|
|
@@ -5460,7 +5542,7 @@ class is extends h {
|
|
|
5460
5542
|
);
|
|
5461
5543
|
}
|
|
5462
5544
|
}
|
|
5463
|
-
class
|
|
5545
|
+
class At {
|
|
5464
5546
|
/**
|
|
5465
5547
|
* Инициализирует экземпляр класса {@link PriceHistoryItem}.
|
|
5466
5548
|
*
|
|
@@ -5507,10 +5589,10 @@ class Rt {
|
|
|
5507
5589
|
* @inheritDoc
|
|
5508
5590
|
*/
|
|
5509
5591
|
t(this, "currency");
|
|
5510
|
-
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate =
|
|
5592
|
+
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 U(r.client) : void 0, this.executor = r.executor ? new U(r.executor) : void 0, this.currency = r.currency ? new Ce(r.currency) : void 0;
|
|
5511
5593
|
}
|
|
5512
5594
|
}
|
|
5513
|
-
class
|
|
5595
|
+
class Tt extends oe {
|
|
5514
5596
|
/**
|
|
5515
5597
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
5516
5598
|
*
|
|
@@ -5522,10 +5604,10 @@ class Dt extends oe {
|
|
|
5522
5604
|
* @inheritDoc
|
|
5523
5605
|
*/
|
|
5524
5606
|
t(this, "history");
|
|
5525
|
-
this.history = Re(e.history, (s) => new
|
|
5607
|
+
this.history = Re(e.history, (s) => new At(s));
|
|
5526
5608
|
}
|
|
5527
5609
|
}
|
|
5528
|
-
class
|
|
5610
|
+
class cs extends p {
|
|
5529
5611
|
/**
|
|
5530
5612
|
* Возвращает данные об истории изменения цен.
|
|
5531
5613
|
*
|
|
@@ -5534,22 +5616,22 @@ class ns extends h {
|
|
|
5534
5616
|
* @see /docs/api#/operations/api_internal_price_history_get
|
|
5535
5617
|
*/
|
|
5536
5618
|
getProductPriceHistory(r) {
|
|
5537
|
-
var o, c, u,
|
|
5538
|
-
const e = $.getConfig().dateFormats.api, s =
|
|
5619
|
+
var o, c, u, h, f;
|
|
5620
|
+
const e = $.getConfig().dateFormats.api, s = nr(
|
|
5539
5621
|
ye(r, {
|
|
5540
5622
|
costDate: {
|
|
5541
|
-
from: _e((o = r.costDate) == null ? void 0 : o.from) ?
|
|
5542
|
-
to: _e((u = r.costDate) == null ? void 0 : u.to) ?
|
|
5623
|
+
from: _e((o = r.costDate) == null ? void 0 : o.from) ? O(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
5624
|
+
to: _e((u = r.costDate) == null ? void 0 : u.to) ? O(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
|
|
5543
5625
|
}
|
|
5544
5626
|
}),
|
|
5545
|
-
(
|
|
5546
|
-
), i = ((
|
|
5547
|
-
return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((
|
|
5548
|
-
new
|
|
5627
|
+
(g) => A(g) || (Q(g) || or(g)) && Y(g)
|
|
5628
|
+
), i = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
|
|
5629
|
+
return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((g) => [
|
|
5630
|
+
new Tt(ye(g[0], { history: g }))
|
|
5549
5631
|
]);
|
|
5550
5632
|
}
|
|
5551
5633
|
}
|
|
5552
|
-
class
|
|
5634
|
+
class rr {
|
|
5553
5635
|
/**
|
|
5554
5636
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
5555
5637
|
*
|
|
@@ -5567,7 +5649,7 @@ class er {
|
|
|
5567
5649
|
r != null && r.products && (this.products = r.products.map((e) => new oe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new oe(e)));
|
|
5568
5650
|
}
|
|
5569
5651
|
}
|
|
5570
|
-
class
|
|
5652
|
+
class ls extends p {
|
|
5571
5653
|
/**
|
|
5572
5654
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
5573
5655
|
*
|
|
@@ -5575,7 +5657,7 @@ class os extends h {
|
|
|
5575
5657
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
5576
5658
|
*/
|
|
5577
5659
|
getProductCategoryRecommendations(r) {
|
|
5578
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new
|
|
5660
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new rr(e.data));
|
|
5579
5661
|
}
|
|
5580
5662
|
/**
|
|
5581
5663
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -5584,7 +5666,7 @@ class os extends h {
|
|
|
5584
5666
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
5585
5667
|
*/
|
|
5586
5668
|
getProductRecommendations(r) {
|
|
5587
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new
|
|
5669
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new rr(e.data));
|
|
5588
5670
|
}
|
|
5589
5671
|
/**
|
|
5590
5672
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -5622,20 +5704,26 @@ class T extends pe {
|
|
|
5622
5704
|
* и использовать в случае аналогичных запросов.
|
|
5623
5705
|
*/
|
|
5624
5706
|
getReference(r, e = !1) {
|
|
5625
|
-
return this.getTypedDataArrayRequester(
|
|
5707
|
+
return this.getTypedDataArrayRequester(lt, `/internal/references/${r}`, e);
|
|
5626
5708
|
}
|
|
5627
5709
|
/**
|
|
5628
5710
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
5629
5711
|
* первичного интереса.
|
|
5630
5712
|
*/
|
|
5631
5713
|
getChannelPrimaryInterest() {
|
|
5632
|
-
return this.getTypedDataArrayRequester(
|
|
5714
|
+
return this.getTypedDataArrayRequester(wr, "/internal/references/channel-primary-interest", !0);
|
|
5633
5715
|
}
|
|
5634
5716
|
/**
|
|
5635
5717
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
5636
5718
|
*/
|
|
5637
5719
|
getContactPositions() {
|
|
5638
|
-
return this.getTypedDataArrayRequester(
|
|
5720
|
+
return this.getTypedDataArrayRequester(ut, "/internal/references/contact-position", !0);
|
|
5721
|
+
}
|
|
5722
|
+
/**
|
|
5723
|
+
* Возвращает {@link Promise} для получения справочника списка направлений кураторства.
|
|
5724
|
+
*/
|
|
5725
|
+
getCuratedDirection() {
|
|
5726
|
+
return this.getTypedDataArrayRequester(Be, "/internal/references/curated-direction", !0);
|
|
5639
5727
|
}
|
|
5640
5728
|
/**
|
|
5641
5729
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
@@ -5660,25 +5748,25 @@ class T extends pe {
|
|
|
5660
5748
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
5661
5749
|
*/
|
|
5662
5750
|
getOrderPaymentStatuses() {
|
|
5663
|
-
return this.getTypedDataArrayRequester(
|
|
5751
|
+
return this.getTypedDataArrayRequester(pt, "/public/references/order-payment-status", !0);
|
|
5664
5752
|
}
|
|
5665
5753
|
/**
|
|
5666
5754
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
5667
5755
|
*/
|
|
5668
5756
|
getOrderStatuses() {
|
|
5669
|
-
return this.getTypedDataArrayRequester(
|
|
5757
|
+
return this.getTypedDataArrayRequester(ht, "/public/references/order-status", !0);
|
|
5670
5758
|
}
|
|
5671
5759
|
/**
|
|
5672
5760
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
5673
5761
|
*/
|
|
5674
5762
|
getPaymentTypes() {
|
|
5675
|
-
return this.getTypedDataArrayRequester(
|
|
5763
|
+
return this.getTypedDataArrayRequester(gt, "/public/references/payment-type", !0);
|
|
5676
5764
|
}
|
|
5677
5765
|
/**
|
|
5678
5766
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
5679
5767
|
*/
|
|
5680
5768
|
getResourceTypes() {
|
|
5681
|
-
return this.getTypedDataArrayRequester(
|
|
5769
|
+
return this.getTypedDataArrayRequester(Cr, "/internal/references/resource-type", !0);
|
|
5682
5770
|
}
|
|
5683
5771
|
/**
|
|
5684
5772
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
@@ -5690,7 +5778,7 @@ class T extends pe {
|
|
|
5690
5778
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
5691
5779
|
*/
|
|
5692
5780
|
getSourcePrimaryInterest() {
|
|
5693
|
-
return this.getTypedDataArrayRequester(
|
|
5781
|
+
return this.getTypedDataArrayRequester(vr, "/internal/references/source-primary-interest", !0);
|
|
5694
5782
|
}
|
|
5695
5783
|
/**
|
|
5696
5784
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -5698,7 +5786,7 @@ class T extends pe {
|
|
|
5698
5786
|
* @param term Терм поиска.
|
|
5699
5787
|
*/
|
|
5700
5788
|
searchCity(r) {
|
|
5701
|
-
return this.getTypedDataArrayRequester(
|
|
5789
|
+
return this.getTypedDataArrayRequester(Ee, `/internal/references/city-with-region-and-country/search?term=${r}`);
|
|
5702
5790
|
}
|
|
5703
5791
|
/**
|
|
5704
5792
|
* Выполняет поиск данных о регионах по терму в названии.
|
|
@@ -5732,7 +5820,7 @@ class T extends pe {
|
|
|
5732
5820
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
5733
5821
|
*/
|
|
5734
5822
|
getPropertyTypes() {
|
|
5735
|
-
return this.getTypedDataArrayRequester(
|
|
5823
|
+
return this.getTypedDataArrayRequester(yr, "/internal/references/property-type", !0);
|
|
5736
5824
|
}
|
|
5737
5825
|
/**
|
|
5738
5826
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
@@ -5744,11 +5832,11 @@ class T extends pe {
|
|
|
5744
5832
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
5745
5833
|
*/
|
|
5746
5834
|
getProductFileType() {
|
|
5747
|
-
return this.getTypedDataArrayRequester(
|
|
5835
|
+
return this.getTypedDataArrayRequester(mt, "/public/references/product-file-type", !0);
|
|
5748
5836
|
}
|
|
5749
5837
|
}
|
|
5750
5838
|
const D = te("__references_private", () => {
|
|
5751
|
-
const n =
|
|
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), a = y(void 0), _ = y(void 0), d = y(void 0), G = y(void 0), B = y(void 0), be = y(void 0), l = y(void 0);
|
|
5752
5840
|
return {
|
|
5753
5841
|
/**
|
|
5754
5842
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5785,19 +5873,19 @@ const D = te("__references_private", () => {
|
|
|
5785
5873
|
/**
|
|
5786
5874
|
* Справочник статусов заказов.
|
|
5787
5875
|
*/
|
|
5788
|
-
orderStatusReference:
|
|
5876
|
+
orderStatusReference: h,
|
|
5789
5877
|
/**
|
|
5790
5878
|
* Справочник типов оплаты заказов.
|
|
5791
5879
|
*/
|
|
5792
|
-
paymentTypeReference:
|
|
5880
|
+
paymentTypeReference: f,
|
|
5793
5881
|
/**
|
|
5794
5882
|
* Справочник групп партнеров.
|
|
5795
5883
|
*/
|
|
5796
|
-
partnerGroupReference:
|
|
5884
|
+
partnerGroupReference: g,
|
|
5797
5885
|
/**
|
|
5798
5886
|
* Справочник типов файлов продукктов/категорий.
|
|
5799
5887
|
*/
|
|
5800
|
-
productFileTypeReference:
|
|
5888
|
+
productFileTypeReference: a,
|
|
5801
5889
|
/**
|
|
5802
5890
|
* Справочник типов ресурсов.
|
|
5803
5891
|
*/
|
|
@@ -5805,7 +5893,7 @@ const D = te("__references_private", () => {
|
|
|
5805
5893
|
/**
|
|
5806
5894
|
* Справочник направлений продаж.
|
|
5807
5895
|
*/
|
|
5808
|
-
salesDirectionsReference:
|
|
5896
|
+
salesDirectionsReference: d,
|
|
5809
5897
|
/**
|
|
5810
5898
|
* Справочник источников первичного интереса.
|
|
5811
5899
|
*/
|
|
@@ -5823,92 +5911,92 @@ const D = te("__references_private", () => {
|
|
|
5823
5911
|
*/
|
|
5824
5912
|
priceCoefficientsReference: l
|
|
5825
5913
|
};
|
|
5826
|
-
}),
|
|
5914
|
+
}), us = te("references", () => {
|
|
5827
5915
|
const n = R(() => {
|
|
5828
5916
|
const l = D();
|
|
5829
|
-
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0,
|
|
5830
|
-
l.channelPrimaryInterestReference =
|
|
5831
|
-
}).catch(
|
|
5917
|
+
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(T).getChannelPrimaryInterest().then((m) => {
|
|
5918
|
+
l.channelPrimaryInterestReference = m;
|
|
5919
|
+
}).catch(w)), l.channelPrimaryInterestReference;
|
|
5832
5920
|
}), r = R(() => {
|
|
5833
5921
|
const l = D();
|
|
5834
|
-
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0,
|
|
5835
|
-
l.contactPositionsReference =
|
|
5836
|
-
}).catch(
|
|
5922
|
+
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance(T).getContactPositions().then((m) => {
|
|
5923
|
+
l.contactPositionsReference = m;
|
|
5924
|
+
}).catch(w)), l.contactPositionsReference;
|
|
5837
5925
|
}), e = R(() => {
|
|
5838
5926
|
const l = D();
|
|
5839
|
-
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0,
|
|
5840
|
-
l.currencyReference =
|
|
5841
|
-
}).catch(
|
|
5927
|
+
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance(T).getCurrency().then((m) => {
|
|
5928
|
+
l.currencyReference = m;
|
|
5929
|
+
}).catch(w)), l.currencyReference;
|
|
5842
5930
|
}), s = R(() => {
|
|
5843
5931
|
const l = D();
|
|
5844
|
-
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0,
|
|
5845
|
-
l.opfReference =
|
|
5846
|
-
}).catch(
|
|
5932
|
+
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance(T).getOpf().then((m) => {
|
|
5933
|
+
l.opfReference = m;
|
|
5934
|
+
}).catch(w)), l.opfReference;
|
|
5847
5935
|
}), i = R(() => {
|
|
5848
5936
|
const l = D();
|
|
5849
|
-
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0,
|
|
5850
|
-
l.orderPaymentStatusReference =
|
|
5851
|
-
}).catch(
|
|
5937
|
+
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(T).getOrderPaymentStatuses().then((m) => {
|
|
5938
|
+
l.orderPaymentStatusReference = m;
|
|
5939
|
+
}).catch(w)), l.orderPaymentStatusReference;
|
|
5852
5940
|
}), o = R(() => {
|
|
5853
5941
|
const l = D();
|
|
5854
|
-
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0,
|
|
5855
|
-
l.orderStatusReference =
|
|
5856
|
-
}).catch(
|
|
5942
|
+
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance(T).getOrderStatuses().then((m) => {
|
|
5943
|
+
l.orderStatusReference = m;
|
|
5944
|
+
}).catch(w)), l.orderStatusReference;
|
|
5857
5945
|
}), c = R(() => {
|
|
5858
5946
|
const l = D();
|
|
5859
|
-
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0,
|
|
5860
|
-
l.paymentTypeReference =
|
|
5861
|
-
}).catch(
|
|
5947
|
+
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance(T).getPaymentTypes().then((m) => {
|
|
5948
|
+
l.paymentTypeReference = m;
|
|
5949
|
+
}).catch(w)), l.paymentTypeReference;
|
|
5862
5950
|
}), u = R(() => {
|
|
5863
5951
|
const l = D();
|
|
5864
|
-
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0,
|
|
5865
|
-
l.partnerGroupReference =
|
|
5866
|
-
}).catch(
|
|
5867
|
-
}),
|
|
5952
|
+
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance(T).getPartnerGroup().then((m) => {
|
|
5953
|
+
l.partnerGroupReference = m;
|
|
5954
|
+
}).catch(w)), l.partnerGroupReference;
|
|
5955
|
+
}), h = R(() => {
|
|
5868
5956
|
const l = D();
|
|
5869
|
-
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0,
|
|
5870
|
-
l.productFileTypeReference =
|
|
5871
|
-
}).catch(
|
|
5872
|
-
}),
|
|
5957
|
+
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance(T).getProductFileType().then((m) => {
|
|
5958
|
+
l.productFileTypeReference = m;
|
|
5959
|
+
}).catch(w)), l.productFileTypeReference;
|
|
5960
|
+
}), f = R(() => {
|
|
5873
5961
|
const l = D();
|
|
5874
|
-
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0,
|
|
5875
|
-
l.resourceTypesReference =
|
|
5876
|
-
}).catch(
|
|
5877
|
-
}),
|
|
5962
|
+
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance(T).getResourceTypes().then((m) => {
|
|
5963
|
+
l.resourceTypesReference = m;
|
|
5964
|
+
}).catch(w)), l.resourceTypesReference;
|
|
5965
|
+
}), g = R(() => {
|
|
5878
5966
|
const l = D();
|
|
5879
|
-
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0,
|
|
5880
|
-
l.salesDirectionsReference =
|
|
5881
|
-
}).catch(
|
|
5882
|
-
}),
|
|
5967
|
+
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(T).getSalesDirections().then((m) => {
|
|
5968
|
+
l.salesDirectionsReference = m;
|
|
5969
|
+
}).catch(w)), l.salesDirectionsReference;
|
|
5970
|
+
}), a = R(() => {
|
|
5883
5971
|
const l = D();
|
|
5884
|
-
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0,
|
|
5885
|
-
l.sourcePrimaryInterestReference =
|
|
5886
|
-
}).catch(
|
|
5972
|
+
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(T).getSourcePrimaryInterest().then((m) => {
|
|
5973
|
+
l.sourcePrimaryInterestReference = m;
|
|
5974
|
+
}).catch(w)), l.sourcePrimaryInterestReference;
|
|
5887
5975
|
}), _ = R(() => {
|
|
5888
5976
|
const l = D();
|
|
5889
|
-
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0,
|
|
5890
|
-
l.deliveryTypeReference =
|
|
5891
|
-
}).catch(
|
|
5892
|
-
}),
|
|
5977
|
+
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(T).getDeliveryTypes().then((m) => {
|
|
5978
|
+
l.deliveryTypeReference = m;
|
|
5979
|
+
}).catch(w)), l.deliveryTypeReference;
|
|
5980
|
+
}), d = R(() => {
|
|
5893
5981
|
const l = D();
|
|
5894
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0,
|
|
5895
|
-
l.managersList =
|
|
5896
|
-
}).catch(
|
|
5982
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(Pt).getManagers().then((m) => {
|
|
5983
|
+
l.managersList = m;
|
|
5984
|
+
}).catch(w)), l.managersList;
|
|
5897
5985
|
}), G = R(() => {
|
|
5898
5986
|
const l = D();
|
|
5899
|
-
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0,
|
|
5900
|
-
l.warehousesReference =
|
|
5901
|
-
}).catch(
|
|
5987
|
+
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance(T).getWarehouses().then((m) => {
|
|
5988
|
+
l.warehousesReference = m;
|
|
5989
|
+
}).catch(w)), l.warehousesReference;
|
|
5902
5990
|
}), B = R(() => {
|
|
5903
5991
|
const l = D();
|
|
5904
|
-
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0,
|
|
5905
|
-
l.propertyTypesReference =
|
|
5906
|
-
}).catch(
|
|
5992
|
+
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(T).getPropertyTypes().then((m) => {
|
|
5993
|
+
l.propertyTypesReference = m;
|
|
5994
|
+
}).catch(w)), l.propertyTypesReference;
|
|
5907
5995
|
}), be = R(() => {
|
|
5908
5996
|
const l = D();
|
|
5909
|
-
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0,
|
|
5910
|
-
l.priceCoefficientsReference =
|
|
5911
|
-
}).catch(
|
|
5997
|
+
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(T).getPriceCoefficients().then((m) => {
|
|
5998
|
+
l.priceCoefficientsReference = m;
|
|
5999
|
+
}).catch(w)), l.priceCoefficientsReference;
|
|
5912
6000
|
});
|
|
5913
6001
|
return {
|
|
5914
6002
|
/**
|
|
@@ -5946,19 +6034,19 @@ const D = te("__references_private", () => {
|
|
|
5946
6034
|
/**
|
|
5947
6035
|
* Справочник типов файлов продуктов/категорий.
|
|
5948
6036
|
*/
|
|
5949
|
-
productFilesTypesReference:
|
|
6037
|
+
productFilesTypesReference: h,
|
|
5950
6038
|
/**
|
|
5951
6039
|
* Справочник типов ресурсов.
|
|
5952
6040
|
*/
|
|
5953
|
-
resourceTypesReference:
|
|
6041
|
+
resourceTypesReference: f,
|
|
5954
6042
|
/**
|
|
5955
6043
|
* Справочник направлений продаж.
|
|
5956
6044
|
*/
|
|
5957
|
-
salesDirectionsReference:
|
|
6045
|
+
salesDirectionsReference: g,
|
|
5958
6046
|
/**
|
|
5959
6047
|
* Справочник каналов первичного интереса.
|
|
5960
6048
|
*/
|
|
5961
|
-
sourcePrimaryInterestsReference:
|
|
6049
|
+
sourcePrimaryInterestsReference: a,
|
|
5962
6050
|
/**
|
|
5963
6051
|
* Справочник типов доставки.
|
|
5964
6052
|
*/
|
|
@@ -5966,7 +6054,7 @@ const D = te("__references_private", () => {
|
|
|
5966
6054
|
/**
|
|
5967
6055
|
* Список менеджеров.
|
|
5968
6056
|
*/
|
|
5969
|
-
managersList:
|
|
6057
|
+
managersList: d,
|
|
5970
6058
|
/**
|
|
5971
6059
|
* Справочник складов.
|
|
5972
6060
|
*/
|
|
@@ -5981,7 +6069,7 @@ const D = te("__references_private", () => {
|
|
|
5981
6069
|
priceCoefficientsReference: be
|
|
5982
6070
|
};
|
|
5983
6071
|
});
|
|
5984
|
-
class
|
|
6072
|
+
class $t {
|
|
5985
6073
|
/**
|
|
5986
6074
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
5987
6075
|
*
|
|
@@ -5999,7 +6087,7 @@ class At {
|
|
|
5999
6087
|
this.name = r.name, this.content = r.content;
|
|
6000
6088
|
}
|
|
6001
6089
|
}
|
|
6002
|
-
class
|
|
6090
|
+
class tr {
|
|
6003
6091
|
/**
|
|
6004
6092
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
6005
6093
|
*
|
|
@@ -6035,10 +6123,10 @@ class rr {
|
|
|
6035
6123
|
*/
|
|
6036
6124
|
t(this, "meta");
|
|
6037
6125
|
var e;
|
|
6038
|
-
this.resourceType = new
|
|
6126
|
+
this.resourceType = new Cr(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 $t(s))) ?? [];
|
|
6039
6127
|
}
|
|
6040
6128
|
}
|
|
6041
|
-
class
|
|
6129
|
+
class ps extends p {
|
|
6042
6130
|
/**
|
|
6043
6131
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
6044
6132
|
*
|
|
@@ -6046,7 +6134,7 @@ class ls extends h {
|
|
|
6046
6134
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
6047
6135
|
*/
|
|
6048
6136
|
getResourceSeoData(r, e) {
|
|
6049
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new
|
|
6137
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new tr(s.data));
|
|
6050
6138
|
}
|
|
6051
6139
|
/**
|
|
6052
6140
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -6057,7 +6145,7 @@ class ls extends h {
|
|
|
6057
6145
|
* в случае ошибок в запросах.
|
|
6058
6146
|
*/
|
|
6059
6147
|
saveResourceSeoData(r, e = {}) {
|
|
6060
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new
|
|
6148
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new tr(s.data), e);
|
|
6061
6149
|
}
|
|
6062
6150
|
/**
|
|
6063
6151
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -6069,7 +6157,7 @@ class ls extends h {
|
|
|
6069
6157
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
6070
6158
|
}
|
|
6071
6159
|
}
|
|
6072
|
-
class
|
|
6160
|
+
class hs extends p {
|
|
6073
6161
|
/**
|
|
6074
6162
|
* Возвращает подсказки по адресам.
|
|
6075
6163
|
*
|
|
@@ -6116,8 +6204,8 @@ class us extends h {
|
|
|
6116
6204
|
});
|
|
6117
6205
|
}
|
|
6118
6206
|
}
|
|
6119
|
-
var
|
|
6120
|
-
class
|
|
6207
|
+
var bt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(bt || {});
|
|
6208
|
+
class at extends fr {
|
|
6121
6209
|
/**
|
|
6122
6210
|
* Инициализирует экземпляр класса {@link User}.
|
|
6123
6211
|
*
|
|
@@ -6140,7 +6228,7 @@ class $t extends hr {
|
|
|
6140
6228
|
this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo;
|
|
6141
6229
|
}
|
|
6142
6230
|
}
|
|
6143
|
-
class
|
|
6231
|
+
class gs extends p {
|
|
6144
6232
|
/**
|
|
6145
6233
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
6146
6234
|
*/
|
|
@@ -6156,17 +6244,17 @@ class ps extends h {
|
|
|
6156
6244
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
6157
6245
|
}
|
|
6158
6246
|
}
|
|
6159
|
-
class
|
|
6247
|
+
class St extends p {
|
|
6160
6248
|
/**
|
|
6161
6249
|
* Возвращает данные о текущем пользователе.
|
|
6162
6250
|
*/
|
|
6163
6251
|
// eslint-disable-next-line class-methods-use-this
|
|
6164
6252
|
getCurrentUser() {
|
|
6165
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
6253
|
+
return this.get("/internal/users/info", {}, (r) => new at(r.data));
|
|
6166
6254
|
}
|
|
6167
6255
|
}
|
|
6168
|
-
const
|
|
6169
|
-
const n =
|
|
6256
|
+
const It = te("__user_state_private", () => {
|
|
6257
|
+
const n = y({}), r = y(void 0);
|
|
6170
6258
|
return {
|
|
6171
6259
|
/**
|
|
6172
6260
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -6177,20 +6265,20 @@ const St = te("__user_state_private", () => {
|
|
|
6177
6265
|
*/
|
|
6178
6266
|
currentUser: r
|
|
6179
6267
|
};
|
|
6180
|
-
}),
|
|
6268
|
+
}), ms = te("user_state", () => ({
|
|
6181
6269
|
/**
|
|
6182
6270
|
* Данные о текущем пользователе.
|
|
6183
6271
|
*/
|
|
6184
6272
|
currentUser: R(() => {
|
|
6185
|
-
const r =
|
|
6186
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0,
|
|
6273
|
+
const r = It();
|
|
6274
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(St).getCurrentUser().then((e) => {
|
|
6187
6275
|
r.currentUser = e;
|
|
6188
|
-
}).catch(
|
|
6276
|
+
}).catch(w).finally(() => {
|
|
6189
6277
|
r.dataLoaderList.currentUser = !1;
|
|
6190
6278
|
})), r.currentUser;
|
|
6191
6279
|
})
|
|
6192
6280
|
}));
|
|
6193
|
-
class
|
|
6281
|
+
class fs {
|
|
6194
6282
|
/**
|
|
6195
6283
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
6196
6284
|
*
|
|
@@ -6214,150 +6302,152 @@ class gs {
|
|
|
6214
6302
|
}
|
|
6215
6303
|
}
|
|
6216
6304
|
export {
|
|
6217
|
-
|
|
6218
|
-
|
|
6305
|
+
lt as AnyReference,
|
|
6306
|
+
jt as AppBaseConfig,
|
|
6219
6307
|
$ as AppConfigProvider,
|
|
6220
|
-
|
|
6308
|
+
qe as BankAccount,
|
|
6221
6309
|
$e as BasePaginationProvider,
|
|
6222
|
-
|
|
6310
|
+
Qr as CalculationTypeEnum,
|
|
6223
6311
|
me as Cart,
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6312
|
+
Kr as CartItem,
|
|
6313
|
+
Vr as CartItemBase,
|
|
6314
|
+
Ft as CartProvider,
|
|
6315
|
+
Gt as CatalogProvider,
|
|
6316
|
+
cr as CatalogableItem,
|
|
6229
6317
|
z as Category,
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6318
|
+
Ve as CategoryPricingRule,
|
|
6319
|
+
wr as ChannelPrimaryInterest,
|
|
6320
|
+
Yt as City,
|
|
6321
|
+
Ee as CityWithRegionAndCountry,
|
|
6322
|
+
Xe as Client,
|
|
6323
|
+
Ct as ClientAdditionalData,
|
|
6236
6324
|
we as ClientCategory,
|
|
6237
6325
|
L as ClientDataProvider,
|
|
6238
|
-
|
|
6239
|
-
|
|
6326
|
+
Bt as ClientPriceProvider,
|
|
6327
|
+
Et as ClientPriceTemplateProvider,
|
|
6240
6328
|
Z as ClientProduct,
|
|
6241
|
-
|
|
6242
|
-
|
|
6329
|
+
Wt as ClientProductCategoryDataProvider,
|
|
6330
|
+
Jt as ClientProductDataProvider,
|
|
6243
6331
|
ge as ClientShortInfo,
|
|
6244
|
-
|
|
6245
|
-
|
|
6332
|
+
ct as ClientsAdditionalDataRequestTypeEnum,
|
|
6333
|
+
Xt as ClientsListFilters,
|
|
6246
6334
|
oe as CodedIdentity,
|
|
6247
|
-
|
|
6335
|
+
ts as ConfiguratorProvider,
|
|
6248
6336
|
Ne as Contact,
|
|
6249
|
-
|
|
6337
|
+
hr as ContactLinks,
|
|
6250
6338
|
M as ContactPerson,
|
|
6251
|
-
|
|
6252
|
-
|
|
6339
|
+
wt as ContactPersonRelated,
|
|
6340
|
+
ut as ContactPosition,
|
|
6253
6341
|
xe as ContactRelation,
|
|
6254
|
-
|
|
6342
|
+
Pr as ContragentBase,
|
|
6255
6343
|
ve as ContragentFactory,
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6344
|
+
Rr as ContragentIc,
|
|
6345
|
+
ft as ContragentPerson,
|
|
6346
|
+
yt as ContragentUlNr,
|
|
6347
|
+
Dr as ContragentUlR,
|
|
6260
6348
|
Ge as CostSourceEnum,
|
|
6261
6349
|
ee as Country,
|
|
6350
|
+
Be as CuratedDirection,
|
|
6351
|
+
mr as Curator,
|
|
6262
6352
|
Ce as Currency,
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6353
|
+
hs as DataSuggestionProvider,
|
|
6354
|
+
Zt as DataTablePagination,
|
|
6355
|
+
vt as DataTablePaginationRequestParams,
|
|
6356
|
+
es as DataTableSortRequestParams,
|
|
6357
|
+
ss as DateTimeProvider,
|
|
6358
|
+
Xr as DeletableNamedIdentity,
|
|
6269
6359
|
Pe as DeliveryAddress,
|
|
6270
6360
|
X as DeliveryType,
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6361
|
+
Ut as DetailedJwtPayload,
|
|
6362
|
+
tt as DeviceTypeResolutionConfig,
|
|
6363
|
+
Zr as DiscountShortInfo,
|
|
6364
|
+
fs as FieldValidationResultData,
|
|
6275
6365
|
ue as FilterGroup,
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6366
|
+
Ke as FilterItem,
|
|
6367
|
+
He as FilterOpEnum,
|
|
6368
|
+
ur as GeoCoordinates,
|
|
6369
|
+
Wr as HiddenCatalogableItem,
|
|
6280
6370
|
pe as HttpCachedRequester,
|
|
6281
|
-
|
|
6282
|
-
|
|
6371
|
+
st as HttpParamsConfig,
|
|
6372
|
+
p as HttpRequester,
|
|
6283
6373
|
j as Identity,
|
|
6284
|
-
|
|
6374
|
+
Jr as Image,
|
|
6285
6375
|
N as JwtPayload,
|
|
6286
6376
|
Te as Manager,
|
|
6287
6377
|
ce as ManagerCommon,
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6378
|
+
is as ManagerDataFactory,
|
|
6379
|
+
Pt as ManagerDataProvider,
|
|
6380
|
+
$t as MetaTagItem,
|
|
6291
6381
|
b as NamedIdentity,
|
|
6292
6382
|
F as Opf,
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6383
|
+
q as OpfEnum,
|
|
6384
|
+
Dt as Order,
|
|
6385
|
+
Tr as OrderInfo,
|
|
6386
|
+
pt as OrderPaymentStatus,
|
|
6387
|
+
Rt as OrderProduct,
|
|
6388
|
+
Ar as OrderShortInfo,
|
|
6389
|
+
ht as OrderStatus,
|
|
6390
|
+
ns as OrdersDataProvider,
|
|
6301
6391
|
re as PartnerGroup,
|
|
6302
|
-
|
|
6392
|
+
gt as PaymentType,
|
|
6303
6393
|
fe as PreferencesStorageProvider,
|
|
6304
6394
|
Le as PriceAnalyze,
|
|
6305
|
-
|
|
6395
|
+
os as PriceAnalyzeProvider,
|
|
6306
6396
|
De as PriceCoefficient,
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6397
|
+
lr as PriceCoefficientEnum,
|
|
6398
|
+
cs as PriceHistoryDataProvider,
|
|
6399
|
+
At as PriceHistoryItem,
|
|
6310
6400
|
W as PriceTemplate,
|
|
6311
|
-
|
|
6401
|
+
Se as PriceTemplateCategory,
|
|
6312
6402
|
se as PriceTemplateClient,
|
|
6313
|
-
|
|
6403
|
+
gr as PriceTemplateICatalogableItem,
|
|
6314
6404
|
Ie as PriceTemplateProduct,
|
|
6315
|
-
|
|
6405
|
+
Vt as PriceTemplateProvider,
|
|
6316
6406
|
ne as PricingRole,
|
|
6317
|
-
|
|
6318
|
-
|
|
6407
|
+
Kt as PricingRoleProvider,
|
|
6408
|
+
Oe as PrimaryCatalogableItem,
|
|
6319
6409
|
I as Product,
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6410
|
+
Ht as ProductCategoryDataProvider,
|
|
6411
|
+
zt as ProductDataProvider,
|
|
6412
|
+
mt as ProductFileType,
|
|
6323
6413
|
Me as ProductPriceCoefficient,
|
|
6324
|
-
|
|
6325
|
-
|
|
6414
|
+
Tt as ProductPriceHistory,
|
|
6415
|
+
Qt as PropertiesProvider,
|
|
6326
6416
|
ie as Property,
|
|
6327
|
-
|
|
6328
|
-
|
|
6417
|
+
yr as PropertyType,
|
|
6418
|
+
Yr as PropertyTypeEnum,
|
|
6329
6419
|
H as PropertyValue,
|
|
6330
|
-
|
|
6331
|
-
|
|
6420
|
+
ls as RecommendationsDataProvider,
|
|
6421
|
+
rr as RecommendationsList,
|
|
6332
6422
|
P as Reference,
|
|
6333
6423
|
T as ReferenceDataProvider,
|
|
6334
6424
|
le as Region,
|
|
6335
|
-
|
|
6425
|
+
Cr as ResourceType,
|
|
6336
6426
|
x as SalesDirection,
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6427
|
+
it as SentryConfig,
|
|
6428
|
+
tr as Seo,
|
|
6429
|
+
ps as SeoDataProvider,
|
|
6430
|
+
vr as SourcePrimaryInterest,
|
|
6431
|
+
zr as StockCount,
|
|
6432
|
+
Mt as TemplatesListFilters,
|
|
6343
6433
|
je as TypedInstanceFactory,
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6434
|
+
Ze as UnitsHelper,
|
|
6435
|
+
rs as UnknownClientDataProvider,
|
|
6436
|
+
pr as UpdatableNamedIdentity,
|
|
6437
|
+
at as User,
|
|
6438
|
+
gs as UserAuthDataProvider,
|
|
6439
|
+
fr as UserCommonInfo,
|
|
6440
|
+
St as UserDataProvider,
|
|
6441
|
+
et as UserPricingRole,
|
|
6352
6442
|
U as UserShortInfo,
|
|
6353
|
-
|
|
6354
|
-
|
|
6443
|
+
bt as UserTypeEnum,
|
|
6444
|
+
nt as VersionConfig,
|
|
6355
6445
|
Ae as Warehouse,
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6446
|
+
ot as WebSocketConfig,
|
|
6447
|
+
Qe as findCatalogItemByIdRecursive,
|
|
6448
|
+
Ye as flattenCatalogItems,
|
|
6449
|
+
ae as useAuthStateStore,
|
|
6450
|
+
us as useReferencesStore,
|
|
6451
|
+
ms as useUserStateStore
|
|
6362
6452
|
};
|
|
6363
6453
|
//# sourceMappingURL=sc-common-lib.js.map
|