@snabcentr/common-lib 2.8.2 → 2.9.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 -1
- package/dist/sc-common-lib.js +306 -292
- 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/clients-list-filters.d.ts +4 -0
- package/dist/src/clients/classes/clients-list-filters.d.ts.map +1 -1
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts +4 -0
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts.map +1 -1
- package/dist/src/data-table/classes/filter-item.d.ts +3 -2
- package/dist/src/data-table/classes/filter-item.d.ts.map +1 -1
- package/dist/src/data-table/interfaces/i-filter-item.d.ts +2 -1
- package/dist/src/data-table/interfaces/i-filter-item.d.ts.map +1 -1
- package/dist/src/data-table/interfaces/i-filter-range-value.d.ts +17 -0
- package/dist/src/data-table/interfaces/i-filter-range-value.d.ts.map +1 -0
- package/dist/src/data-table/interfaces/index.d.ts +1 -0
- package/dist/src/data-table/interfaces/index.d.ts.map +1 -1
- package/dist/src/user/classes/user.d.ts +5 -0
- package/dist/src/user/classes/user.d.ts.map +1 -1
- package/dist/src/user/interfaces/i-user.d.ts +5 -0
- package/dist/src/user/interfaces/i-user.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 = (i, r, e) =>
|
|
4
|
-
import { jwtDecode as
|
|
5
|
-
import { merge as pe, isNil as A, isEmpty as X, noop as v, mapValues as
|
|
6
|
-
import { objectToCamel as
|
|
1
|
+
var _r = Object.defineProperty;
|
|
2
|
+
var xr = (i, r, e) => r in i ? _r(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
|
|
3
|
+
var t = (i, r, e) => xr(i, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jwtDecode as or } from "jwt-decode";
|
|
5
|
+
import { merge as pe, isNil as A, isEmpty as X, noop as v, mapValues as cr, isArray as H, every as Or, split as qr, isString as C, constant as Nr, toUpper as Ur, cloneDeep as Fr, toLower as Hr, isFunction as Fe, map as fe, forEach as Mr, isDate as xe, isObject as He, omitBy as lr } from "lodash-es";
|
|
6
|
+
import { objectToCamel as Me, objectToSnake as Ve } from "ts-case-convert";
|
|
7
7
|
import { defineStore as W } from "pinia";
|
|
8
|
-
import { ref as y, markRaw as
|
|
9
|
-
import { isAfter as
|
|
10
|
-
import
|
|
8
|
+
import { ref as y, markRaw as jr, computed as P } from "vue";
|
|
9
|
+
import { isAfter as Ke, parseISO as R, startOfToday as Oe, format as I, addSeconds as Gr, addBusinessDays as Br, endOfTomorrow as zr, startOfTomorrow as Wr, endOfYesterday as Jr, startOfYesterday as Er, endOfToday as Vr, endOfDay as Kr, startOfDay as Qr } from "date-fns";
|
|
10
|
+
import Yr, { CanceledError as Xr } from "axios";
|
|
11
11
|
class M {
|
|
12
12
|
/**
|
|
13
13
|
* Инициализирует экземпляр класса {@link JwtPayload}.
|
|
@@ -107,7 +107,7 @@ class M {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
const e =
|
|
110
|
+
const e = or(r), s = new M(Me(e));
|
|
111
111
|
return s.resourceAccess = e.resource_access, s;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -151,10 +151,10 @@ class zt extends M {
|
|
|
151
151
|
* @param jwtToken JWT-ключ доступа.
|
|
152
152
|
*/
|
|
153
153
|
static getJwtPayload(e) {
|
|
154
|
-
return new M(
|
|
154
|
+
return new M(Me(or(e)));
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
class
|
|
157
|
+
class Zr {
|
|
158
158
|
/**
|
|
159
159
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
160
160
|
*
|
|
@@ -176,7 +176,7 @@ class Xr {
|
|
|
176
176
|
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;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
class
|
|
179
|
+
class et {
|
|
180
180
|
/**
|
|
181
181
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
182
182
|
*
|
|
@@ -198,7 +198,7 @@ class Zr {
|
|
|
198
198
|
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;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
class
|
|
201
|
+
class rt {
|
|
202
202
|
/**
|
|
203
203
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
204
204
|
*
|
|
@@ -243,7 +243,7 @@ class et {
|
|
|
243
243
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
class
|
|
246
|
+
class tt {
|
|
247
247
|
/**
|
|
248
248
|
* Инициализирует экземпляр класса {@link WebSocketConfig}.
|
|
249
249
|
*
|
|
@@ -282,7 +282,7 @@ class rt {
|
|
|
282
282
|
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"];
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
|
-
class
|
|
285
|
+
class st {
|
|
286
286
|
/**
|
|
287
287
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
288
288
|
*
|
|
@@ -326,10 +326,10 @@ class tt {
|
|
|
326
326
|
*/
|
|
327
327
|
t(this, "dateFormats");
|
|
328
328
|
var e, s, n;
|
|
329
|
-
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new
|
|
329
|
+
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new et(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Zr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new rt({
|
|
330
330
|
environment: this.environment,
|
|
331
331
|
...r == null ? void 0 : r.sentry
|
|
332
|
-
}), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.websocket = r != null && r.websocket ? new
|
|
332
|
+
}), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.websocket = r != null && r.websocket ? new tt(r.websocket) : void 0, this.dateFormats = {
|
|
333
333
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
334
334
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
335
335
|
uiDateWithTime: ((n = r == null ? void 0 : r.dateFormats) == null ? void 0 : n.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
@@ -337,7 +337,7 @@ class tt {
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
const k = W("common.config", () => {
|
|
340
|
-
const i = y(new
|
|
340
|
+
const i = y(new st());
|
|
341
341
|
return {
|
|
342
342
|
/**
|
|
343
343
|
* Конфигурационные данные приложения.
|
|
@@ -378,7 +378,7 @@ class ae {
|
|
|
378
378
|
if (e)
|
|
379
379
|
try {
|
|
380
380
|
const s = JSON.parse(e);
|
|
381
|
-
if (!s.availableFor ||
|
|
381
|
+
if (!s.availableFor || Ke(R(s.availableFor) || Oe(), /* @__PURE__ */ new Date())) {
|
|
382
382
|
if (A(s.data) || X(s.data))
|
|
383
383
|
throw new Error("Data is empty");
|
|
384
384
|
return s.data;
|
|
@@ -452,7 +452,7 @@ class ae {
|
|
|
452
452
|
const n = localStorage.getItem(s);
|
|
453
453
|
if (n) {
|
|
454
454
|
const o = JSON.parse(n);
|
|
455
|
-
o.availableFor && !
|
|
455
|
+
o.availableFor && !Ke(R(o.availableFor) || Oe(), /* @__PURE__ */ new Date()) && r.push(s);
|
|
456
456
|
}
|
|
457
457
|
} catch {
|
|
458
458
|
r.push(s);
|
|
@@ -468,7 +468,7 @@ class ae {
|
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Qe(i) {
|
|
472
472
|
try {
|
|
473
473
|
const r = M.getJwtPayload(i);
|
|
474
474
|
return new Date(r.exp * 1e3);
|
|
@@ -489,11 +489,11 @@ const V = W("common.auth_state_private", () => {
|
|
|
489
489
|
const c = (u = k().config.devMode) == null ? void 0 : u.initAuthBearerToken;
|
|
490
490
|
return c ? Promise.resolve(c) : void 0;
|
|
491
491
|
})()
|
|
492
|
-
), r = y(void 0), e = y(void 0), s =
|
|
492
|
+
), r = y(void 0), e = y(void 0), s = jr(/* @__PURE__ */ new Map());
|
|
493
493
|
function n() {
|
|
494
494
|
e.value = void 0, A(i.value) || i.value.then((o) => {
|
|
495
495
|
const c = M.getJwtPayload(o);
|
|
496
|
-
e.value = c.exp * 1e3 > Date.now() ?
|
|
496
|
+
e.value = c.exp * 1e3 > Date.now() ? cr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
|
|
497
497
|
}).catch(v);
|
|
498
498
|
}
|
|
499
499
|
return {
|
|
@@ -518,13 +518,13 @@ const V = W("common.auth_state_private", () => {
|
|
|
518
518
|
*/
|
|
519
519
|
recalculateUserPermissions: n
|
|
520
520
|
};
|
|
521
|
-
}),
|
|
521
|
+
}), de = W("common.auth_state", () => {
|
|
522
522
|
const i = P(() => {
|
|
523
523
|
const o = V();
|
|
524
524
|
if (A(o.jwtToken) && !A(o.jwtTokenUpdater)) {
|
|
525
525
|
const c = o.jwtTokenUpdater();
|
|
526
526
|
o.jwtToken = c, c.then((u) => {
|
|
527
|
-
o.jwtToken = Promise.resolve(u), ae.saveActualDataToStorage("sc.token", u,
|
|
527
|
+
o.jwtToken = Promise.resolve(u), ae.saveActualDataToStorage("sc.token", u, Qe(u)), o.recalculateUserPermissions();
|
|
528
528
|
}).catch(v);
|
|
529
529
|
}
|
|
530
530
|
return o.jwtToken;
|
|
@@ -534,7 +534,7 @@ const V = W("common.auth_state_private", () => {
|
|
|
534
534
|
}
|
|
535
535
|
function e(o) {
|
|
536
536
|
const c = V();
|
|
537
|
-
c.jwtToken = Promise.resolve(o), ae.saveActualDataToStorage("sc.token", o,
|
|
537
|
+
c.jwtToken = Promise.resolve(o), ae.saveActualDataToStorage("sc.token", o, Qe(o)), c.recalculateUserPermissions();
|
|
538
538
|
}
|
|
539
539
|
function s() {
|
|
540
540
|
const o = V();
|
|
@@ -544,23 +544,23 @@ const V = W("common.auth_state_private", () => {
|
|
|
544
544
|
const c = V();
|
|
545
545
|
!A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((m) => {
|
|
546
546
|
const f = M.getJwtPayload(m);
|
|
547
|
-
c.userPermissions = f.exp * 1e3 > Date.now() ?
|
|
547
|
+
c.userPermissions = f.exp * 1e3 > Date.now() ? cr(f.resourceAccess, (D) => (D == null ? void 0 : D.roles) ?? []) : void 0;
|
|
548
548
|
}).catch(v);
|
|
549
549
|
const u = H(o) ? o.join(" && ") : o;
|
|
550
550
|
if (c.userPermissionsComputedRefs.has(u))
|
|
551
551
|
return c.userPermissionsComputedRefs.get(u);
|
|
552
|
-
const
|
|
552
|
+
const p = P(() => {
|
|
553
553
|
const m = (f) => {
|
|
554
554
|
var E;
|
|
555
|
-
const D =
|
|
555
|
+
const D = qr(f, ".");
|
|
556
556
|
if (D.length < 2)
|
|
557
557
|
return !1;
|
|
558
558
|
const [se, ie] = D, J = (E = V().userPermissions) == null ? void 0 : E[se];
|
|
559
559
|
return H(J) && J.includes(ie);
|
|
560
560
|
};
|
|
561
|
-
return H(o) ?
|
|
561
|
+
return H(o) ? Or(o, (f) => m(f)) : m(o);
|
|
562
562
|
});
|
|
563
|
-
return c.userPermissionsComputedRefs.set(u,
|
|
563
|
+
return c.userPermissionsComputedRefs.set(u, p), p;
|
|
564
564
|
}
|
|
565
565
|
return {
|
|
566
566
|
/**
|
|
@@ -616,7 +616,7 @@ class re {
|
|
|
616
616
|
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : A(this.id);
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
class
|
|
619
|
+
class d extends re {
|
|
620
620
|
/**
|
|
621
621
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
622
622
|
*
|
|
@@ -631,7 +631,7 @@ class S extends re {
|
|
|
631
631
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
class he extends
|
|
634
|
+
class he extends d {
|
|
635
635
|
/**
|
|
636
636
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
637
637
|
*
|
|
@@ -646,7 +646,7 @@ class he extends S {
|
|
|
646
646
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
class w extends
|
|
649
|
+
class w extends d {
|
|
650
650
|
/**
|
|
651
651
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
652
652
|
*
|
|
@@ -665,7 +665,7 @@ class w extends S {
|
|
|
665
665
|
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
class ur extends
|
|
668
|
+
class ur extends d {
|
|
669
669
|
/**
|
|
670
670
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
671
671
|
*
|
|
@@ -695,7 +695,7 @@ class pr extends ur {
|
|
|
695
695
|
this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
class
|
|
698
|
+
class it {
|
|
699
699
|
/**
|
|
700
700
|
* Инициализирует экземпляр класса {@link Image}.
|
|
701
701
|
*
|
|
@@ -737,7 +737,7 @@ class hr extends he {
|
|
|
737
737
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
class
|
|
740
|
+
class nt extends hr {
|
|
741
741
|
/**
|
|
742
742
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
743
743
|
*
|
|
@@ -767,7 +767,7 @@ class qe extends hr {
|
|
|
767
767
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
class
|
|
770
|
+
class je {
|
|
771
771
|
/**
|
|
772
772
|
* Инициализирует экземпляр указанного класса.
|
|
773
773
|
*
|
|
@@ -786,7 +786,7 @@ class Me {
|
|
|
786
786
|
return new r(e);
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
class _ extends
|
|
789
|
+
class _ extends d {
|
|
790
790
|
/**
|
|
791
791
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
792
792
|
*
|
|
@@ -801,7 +801,7 @@ class _ extends S {
|
|
|
801
801
|
this.type = e == null ? void 0 : e.type;
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
|
-
class
|
|
804
|
+
class ot extends d {
|
|
805
805
|
/**
|
|
806
806
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
807
807
|
*
|
|
@@ -865,10 +865,10 @@ class Pe extends w {
|
|
|
865
865
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
866
866
|
*/
|
|
867
867
|
static getRetailPriceCoefficient() {
|
|
868
|
-
return { id: -2, slug: gr.Retail, name: "Розн. цена", guid: "", isNewRec:
|
|
868
|
+
return { id: -2, slug: gr.Retail, name: "Розн. цена", guid: "", isNewRec: Nr(!0) };
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
|
-
class
|
|
871
|
+
class Ge {
|
|
872
872
|
/**
|
|
873
873
|
* Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
|
|
874
874
|
*
|
|
@@ -950,7 +950,7 @@ class ye extends w {
|
|
|
950
950
|
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((n) => new F(n))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new mr(e == null ? void 0 : e.coordinates);
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
|
-
class
|
|
953
|
+
class ct {
|
|
954
954
|
/**
|
|
955
955
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
956
956
|
*
|
|
@@ -968,7 +968,7 @@ class ot {
|
|
|
968
968
|
this.warehouse = new ye(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
969
969
|
}
|
|
970
970
|
}
|
|
971
|
-
class O extends
|
|
971
|
+
class O extends d {
|
|
972
972
|
/**
|
|
973
973
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
974
974
|
*
|
|
@@ -995,7 +995,7 @@ class O extends S {
|
|
|
995
995
|
e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
|
|
996
996
|
}
|
|
997
997
|
}
|
|
998
|
-
class
|
|
998
|
+
class Ye extends d {
|
|
999
999
|
/**
|
|
1000
1000
|
* Инициализирует экземпляр класса {@link ProductUnit}.
|
|
1001
1001
|
*
|
|
@@ -1022,7 +1022,7 @@ class Qe extends S {
|
|
|
1022
1022
|
e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
|
-
class L extends
|
|
1025
|
+
class L extends nt {
|
|
1026
1026
|
/**
|
|
1027
1027
|
* Инициализирует экземпляр класса {@link Product}.
|
|
1028
1028
|
*
|
|
@@ -1099,9 +1099,9 @@ class L extends it {
|
|
|
1099
1099
|
* Список коэффициентов цен на продукт.
|
|
1100
1100
|
*/
|
|
1101
1101
|
t(this, "priceCoefficients");
|
|
1102
|
-
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new
|
|
1103
|
-
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((
|
|
1104
|
-
s && (this.category = new qe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((
|
|
1102
|
+
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ye(e.unit) : new Ye(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new O(e.currency) : new O(), 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) ? R(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((p) => new ct(p))) ?? [], this.type = "product";
|
|
1103
|
+
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
|
|
1104
|
+
s && (this.category = new qe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new qe(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new it(p, k().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Ge(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
1105
1105
|
}
|
|
1106
1106
|
/**
|
|
1107
1107
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -1122,7 +1122,7 @@ class L extends it {
|
|
|
1122
1122
|
return this.retailCostRub ?? this.costRub;
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1125
|
+
var Be = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Be || {});
|
|
1126
1126
|
class j extends L {
|
|
1127
1127
|
/**
|
|
1128
1128
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
@@ -1159,7 +1159,7 @@ class j extends L {
|
|
|
1159
1159
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1160
1160
|
*/
|
|
1161
1161
|
t(this, "isFavorite");
|
|
1162
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ??
|
|
1162
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Be.Product, this.discount = e != null && e.discount ? new ot(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Q(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;
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
1165
|
class we extends qe {
|
|
@@ -1186,7 +1186,7 @@ class we extends qe {
|
|
|
1186
1186
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
1187
1187
|
*/
|
|
1188
1188
|
t(this, "currencyRates");
|
|
1189
|
-
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, n]) => [
|
|
1189
|
+
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, n]) => [Ur(s), n])) : void 0;
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
1192
|
class fr extends re {
|
|
@@ -1265,10 +1265,10 @@ class fr extends re {
|
|
|
1265
1265
|
* @inheritDoc
|
|
1266
1266
|
*/
|
|
1267
1267
|
t(this, "replacementId");
|
|
1268
|
-
this.product = new j(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new we(), this.currency = e.currency ? new O(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams &&
|
|
1268
|
+
this.product = new j(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new we(), this.currency = e.currency ? new O(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Fr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new _(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
|
-
let
|
|
1271
|
+
let lt = class extends fr {
|
|
1272
1272
|
/**
|
|
1273
1273
|
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
1274
1274
|
*
|
|
@@ -1334,7 +1334,7 @@ class ne {
|
|
|
1334
1334
|
* @inheritDoc
|
|
1335
1335
|
*/
|
|
1336
1336
|
t(this, "directionsSum");
|
|
1337
|
-
this.items = r.items.map((e) => new
|
|
1337
|
+
this.items = r.items.map((e) => new lt(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
1340
1340
|
const a = class a {
|
|
@@ -1376,7 +1376,7 @@ const a = class a {
|
|
|
1376
1376
|
// eslint-disable-next-line class-methods-use-this
|
|
1377
1377
|
t(this, "authRequestInterceptor", async (r) => {
|
|
1378
1378
|
let e;
|
|
1379
|
-
return A(
|
|
1379
|
+
return A(de().jwtToken) || (e = await de().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
|
|
1380
1380
|
});
|
|
1381
1381
|
/**
|
|
1382
1382
|
* Перехватчик запроса для вызова пользовательских хуков.
|
|
@@ -1391,7 +1391,7 @@ const a = class a {
|
|
|
1391
1391
|
* @param request Данные запроса.
|
|
1392
1392
|
*/
|
|
1393
1393
|
// eslint-disable-next-line class-methods-use-this
|
|
1394
|
-
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params =
|
|
1394
|
+
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ve(r.params)), ["put", "patch", "post"].includes(Hr(r.method)) && r.data && (r.data = Ve(r.data))), r));
|
|
1395
1395
|
/**
|
|
1396
1396
|
* Перехватчик ошибок ответов на запрос.
|
|
1397
1397
|
*
|
|
@@ -1400,7 +1400,7 @@ const a = class a {
|
|
|
1400
1400
|
t(this, "authErrorsResponseInterceptors", (r) => {
|
|
1401
1401
|
var s;
|
|
1402
1402
|
const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
|
|
1403
|
-
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (
|
|
1403
|
+
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (de().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
|
|
1404
1404
|
});
|
|
1405
1405
|
/**
|
|
1406
1406
|
* Перехватчик ответа для приведения отмены запроса (AbortController) к единому виду.
|
|
@@ -1411,7 +1411,7 @@ const a = class a {
|
|
|
1411
1411
|
t(this, "canceledResponseInterceptor", (r) => {
|
|
1412
1412
|
const e = r.rawError ?? r;
|
|
1413
1413
|
if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
|
|
1414
|
-
throw new
|
|
1414
|
+
throw new Xr("Request canceled");
|
|
1415
1415
|
return Promise.reject(r);
|
|
1416
1416
|
});
|
|
1417
1417
|
/**
|
|
@@ -1427,8 +1427,8 @@ const a = class a {
|
|
|
1427
1427
|
* @param response Данные ответа на запрос.
|
|
1428
1428
|
*/
|
|
1429
1429
|
// eslint-disable-next-line class-methods-use-this
|
|
1430
|
-
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data =
|
|
1431
|
-
this.errorResponseHandler = a.defaultErrorsResponseHandler, this.httpClient =
|
|
1430
|
+
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Me(r.data)), r));
|
|
1431
|
+
this.errorResponseHandler = a.defaultErrorsResponseHandler, this.httpClient = Yr.create({
|
|
1432
1432
|
headers: {
|
|
1433
1433
|
Accept: "application/json",
|
|
1434
1434
|
"Content-Type": "application/json"
|
|
@@ -1492,7 +1492,7 @@ const a = class a {
|
|
|
1492
1492
|
* @param type Тип данных, которыми оперирует метод.
|
|
1493
1493
|
*/
|
|
1494
1494
|
static getInstance(r) {
|
|
1495
|
-
return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] =
|
|
1495
|
+
return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = je.simpleInstanceInitializer(r)), a.instances[r.name];
|
|
1496
1496
|
}
|
|
1497
1497
|
/**
|
|
1498
1498
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -1605,8 +1605,8 @@ t(a, "requestHooks", []), /**
|
|
|
1605
1605
|
* Список зарегистрированных хуков для ответов.
|
|
1606
1606
|
*/
|
|
1607
1607
|
t(a, "responseHooks", []);
|
|
1608
|
-
let
|
|
1609
|
-
class Jt extends
|
|
1608
|
+
let h = a;
|
|
1609
|
+
class Jt extends h {
|
|
1610
1610
|
/**
|
|
1611
1611
|
* Возвращает содержимое корзины указанного клиента.
|
|
1612
1612
|
*
|
|
@@ -1720,7 +1720,7 @@ class Jt extends p {
|
|
|
1720
1720
|
return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
|
-
var
|
|
1723
|
+
var ut = /* @__PURE__ */ ((i) => (i.m2Cost = "m2Cost", i.percent = "percent", i.value = "value", i))(ut || {}), pt = /* @__PURE__ */ ((i) => (i.Unknown = "unknown", i.Bool = "bool", i.Integer = "integer", i.Float = "float", i.String = "string", i.Range = "range", i.Json = "json", i.Object = "object", i))(pt || {});
|
|
1724
1724
|
class N extends we {
|
|
1725
1725
|
/**
|
|
1726
1726
|
* Инициализирует экземпляр класса {@link Category}.
|
|
@@ -1761,7 +1761,7 @@ class yr {
|
|
|
1761
1761
|
}
|
|
1762
1762
|
class q extends w {
|
|
1763
1763
|
}
|
|
1764
|
-
class
|
|
1764
|
+
class ze extends d {
|
|
1765
1765
|
/**
|
|
1766
1766
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1767
1767
|
*
|
|
@@ -1792,9 +1792,9 @@ class Be extends S {
|
|
|
1792
1792
|
this.salesDirection = e != null && e.salesDirection ? new q(e.salesDirection) : new q(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new yr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
|
|
1793
1793
|
}
|
|
1794
1794
|
}
|
|
1795
|
-
class
|
|
1795
|
+
class We extends w {
|
|
1796
1796
|
}
|
|
1797
|
-
class
|
|
1797
|
+
class wr extends d {
|
|
1798
1798
|
/**
|
|
1799
1799
|
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
1800
1800
|
*
|
|
@@ -1817,7 +1817,7 @@ class pt extends S {
|
|
|
1817
1817
|
this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
|
|
1818
1818
|
}
|
|
1819
1819
|
}
|
|
1820
|
-
class ve extends
|
|
1820
|
+
class ve extends ze {
|
|
1821
1821
|
/**
|
|
1822
1822
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1823
1823
|
*
|
|
@@ -1854,7 +1854,7 @@ class ve extends Be {
|
|
|
1854
1854
|
* Список направлений кураторства.
|
|
1855
1855
|
*/
|
|
1856
1856
|
t(this, "curatedDirections");
|
|
1857
|
-
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
|
|
1857
|
+
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 wr(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((n) => new We(n))) ?? [];
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
1860
|
class ht extends we {
|
|
@@ -1908,7 +1908,7 @@ class Ce extends ht {
|
|
|
1908
1908
|
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new Ce(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new j(o));
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
1911
|
-
class
|
|
1911
|
+
class vr {
|
|
1912
1912
|
/**
|
|
1913
1913
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
1914
1914
|
*
|
|
@@ -1926,7 +1926,7 @@ class wr {
|
|
|
1926
1926
|
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1927
1927
|
}
|
|
1928
1928
|
}
|
|
1929
|
-
class
|
|
1929
|
+
class Se extends vr {
|
|
1930
1930
|
/**
|
|
1931
1931
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1932
1932
|
*
|
|
@@ -1941,7 +1941,7 @@ class de extends wr {
|
|
|
1941
1941
|
this.productCategory = new we(e == null ? void 0 : e.productCategory);
|
|
1942
1942
|
}
|
|
1943
1943
|
}
|
|
1944
|
-
class
|
|
1944
|
+
class Je extends d {
|
|
1945
1945
|
/**
|
|
1946
1946
|
* Инициализирует экземпляр класса {@link Curator}.
|
|
1947
1947
|
*
|
|
@@ -1961,7 +1961,7 @@ class We extends S {
|
|
|
1961
1961
|
* @inheritDoc
|
|
1962
1962
|
*/
|
|
1963
1963
|
t(this, "curatedDirection");
|
|
1964
|
-
this.photo = e.photo, this.contacts = new yr(e.contacts), this.curatedDirection = new
|
|
1964
|
+
this.photo = e.photo, this.contacts = new yr(e.contacts), this.curatedDirection = new We(e.curatedDirection);
|
|
1965
1965
|
}
|
|
1966
1966
|
}
|
|
1967
1967
|
class Z extends w {
|
|
@@ -1996,7 +1996,7 @@ class De extends w {
|
|
|
1996
1996
|
e && (this.region = new ge(e.region));
|
|
1997
1997
|
}
|
|
1998
1998
|
}
|
|
1999
|
-
class
|
|
1999
|
+
class ar extends d {
|
|
2000
2000
|
/**
|
|
2001
2001
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
2002
2002
|
*
|
|
@@ -2035,7 +2035,7 @@ class vr extends S {
|
|
|
2035
2035
|
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 q(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? R(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
|
-
class te extends
|
|
2038
|
+
class te extends ar {
|
|
2039
2039
|
/**
|
|
2040
2040
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2041
2041
|
*
|
|
@@ -2081,7 +2081,7 @@ class te extends vr {
|
|
|
2081
2081
|
* @inheritDoc
|
|
2082
2082
|
*/
|
|
2083
2083
|
t(this, "curators");
|
|
2084
|
-
this.salesDirection = new q(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 De(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
|
|
2084
|
+
this.salesDirection = new q(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 De(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 ze(o))) ?? [], this.curators = ((n = e == null ? void 0 : e.curators) == null ? void 0 : n.map((o) => new Je(o))) ?? void 0;
|
|
2085
2085
|
}
|
|
2086
2086
|
}
|
|
2087
2087
|
class oe extends re {
|
|
@@ -2111,7 +2111,7 @@ class oe extends re {
|
|
|
2111
2111
|
this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new te(e == null ? void 0 : e.client), this.priceTemplate = new Q(e == null ? void 0 : e.priceTemplate);
|
|
2112
2112
|
}
|
|
2113
2113
|
}
|
|
2114
|
-
class ke extends
|
|
2114
|
+
class ke extends vr {
|
|
2115
2115
|
/**
|
|
2116
2116
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
2117
2117
|
*
|
|
@@ -2126,9 +2126,9 @@ class ke extends wr {
|
|
|
2126
2126
|
this.product = new L(e == null ? void 0 : e.product);
|
|
2127
2127
|
}
|
|
2128
2128
|
}
|
|
2129
|
-
class
|
|
2129
|
+
class Cr extends w {
|
|
2130
2130
|
}
|
|
2131
|
-
class ce extends
|
|
2131
|
+
class ce extends d {
|
|
2132
2132
|
/**
|
|
2133
2133
|
* Инициализирует экземпляр класса {@link Property}.
|
|
2134
2134
|
*
|
|
@@ -2148,7 +2148,7 @@ class ce extends S {
|
|
|
2148
2148
|
* Дополнительные метаданные свойства.
|
|
2149
2149
|
*/
|
|
2150
2150
|
t(this, "metadata");
|
|
2151
|
-
this.type = new
|
|
2151
|
+
this.type = new Cr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
2152
2152
|
}
|
|
2153
2153
|
}
|
|
2154
2154
|
class K {
|
|
@@ -2252,7 +2252,7 @@ class Et {
|
|
|
2252
2252
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((n = r == null ? void 0 : r.updatedAt) != null && n.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
|
|
2253
2253
|
}
|
|
2254
2254
|
}
|
|
2255
|
-
class le extends
|
|
2255
|
+
class le extends d {
|
|
2256
2256
|
/**
|
|
2257
2257
|
* Инициализирует экземпляр класса {@link PricingRole}.
|
|
2258
2258
|
*
|
|
@@ -2287,7 +2287,7 @@ class le extends S {
|
|
|
2287
2287
|
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;
|
|
2288
2288
|
}
|
|
2289
2289
|
}
|
|
2290
|
-
class
|
|
2290
|
+
class Xe {
|
|
2291
2291
|
/**
|
|
2292
2292
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
2293
2293
|
*
|
|
@@ -2309,7 +2309,7 @@ class Ye {
|
|
|
2309
2309
|
this.role = new le(r == null ? void 0 : r.role), this.category = new we(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
|
|
2310
2310
|
}
|
|
2311
2311
|
}
|
|
2312
|
-
class Vt extends
|
|
2312
|
+
class Vt extends h {
|
|
2313
2313
|
/**
|
|
2314
2314
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
2315
2315
|
*
|
|
@@ -2340,7 +2340,7 @@ class Vt extends p {
|
|
|
2340
2340
|
return s && (c += `&category_id=${s}`), n && (c += `&client_id=${n}`), c;
|
|
2341
2341
|
}
|
|
2342
2342
|
}
|
|
2343
|
-
class Kt extends
|
|
2343
|
+
class Kt extends h {
|
|
2344
2344
|
/**
|
|
2345
2345
|
* Импортирует цены клиента из CSV файла.
|
|
2346
2346
|
*
|
|
@@ -2539,7 +2539,7 @@ class Kt extends p {
|
|
|
2539
2539
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2540
2540
|
}
|
|
2541
2541
|
}
|
|
2542
|
-
class Qt extends
|
|
2542
|
+
class Qt extends h {
|
|
2543
2543
|
/**
|
|
2544
2544
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2545
2545
|
*
|
|
@@ -2631,7 +2631,7 @@ class Qt extends p {
|
|
|
2631
2631
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2632
2632
|
}
|
|
2633
2633
|
}
|
|
2634
|
-
class Yt extends
|
|
2634
|
+
class Yt extends h {
|
|
2635
2635
|
/**
|
|
2636
2636
|
* Возвращает список данных о корневых категориях.
|
|
2637
2637
|
*
|
|
@@ -2704,7 +2704,7 @@ class Yt extends p {
|
|
|
2704
2704
|
getCategoryProductsCoefficients(r) {
|
|
2705
2705
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2706
2706
|
const { data: s } = e;
|
|
2707
|
-
return
|
|
2707
|
+
return Mr(s, (n) => n.map((o) => new Ge(o))), s;
|
|
2708
2708
|
});
|
|
2709
2709
|
}
|
|
2710
2710
|
/**
|
|
@@ -2723,7 +2723,7 @@ class Yt extends p {
|
|
|
2723
2723
|
});
|
|
2724
2724
|
}
|
|
2725
2725
|
}
|
|
2726
|
-
class Xt extends
|
|
2726
|
+
class Xt extends h {
|
|
2727
2727
|
/**
|
|
2728
2728
|
* Возвращает данные об указанном продукте.
|
|
2729
2729
|
*
|
|
@@ -2754,7 +2754,7 @@ class Xt extends p {
|
|
|
2754
2754
|
return this.get(
|
|
2755
2755
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2756
2756
|
{},
|
|
2757
|
-
(e) => fe(e.data, (s) => new
|
|
2757
|
+
(e) => fe(e.data, (s) => new Ge(s))
|
|
2758
2758
|
);
|
|
2759
2759
|
}
|
|
2760
2760
|
/**
|
|
@@ -2773,7 +2773,7 @@ class Xt extends p {
|
|
|
2773
2773
|
});
|
|
2774
2774
|
}
|
|
2775
2775
|
}
|
|
2776
|
-
class Zt extends
|
|
2776
|
+
class Zt extends h {
|
|
2777
2777
|
/**
|
|
2778
2778
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2779
2779
|
*
|
|
@@ -2835,7 +2835,7 @@ class Zt extends p {
|
|
|
2835
2835
|
);
|
|
2836
2836
|
}
|
|
2837
2837
|
}
|
|
2838
|
-
class es extends
|
|
2838
|
+
class es extends h {
|
|
2839
2839
|
/**
|
|
2840
2840
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2841
2841
|
*
|
|
@@ -2856,8 +2856,8 @@ class es extends p {
|
|
|
2856
2856
|
);
|
|
2857
2857
|
}
|
|
2858
2858
|
}
|
|
2859
|
-
var
|
|
2860
|
-
class
|
|
2859
|
+
var Ee = /* @__PURE__ */ ((i) => (i.BeginWith = "bw", i.Contains = "cn", i.Custom = "custom", i.EndsWith = "ew", i.Equals = "eq", i.GreaterOrEqual = "ge", i.GreaterThan = "gt", i.InList = "in", i.LessOrEqual = "le", i.LessThan = "lt", i.NotBeginWith = "bn", i.NotContains = "nc", i.NotEndsWith = "en", i.NotEqual = "ne", i.NotInList = "ni", i.NotNull = "nn", i.Null = "nu", i))(Ee || {});
|
|
2860
|
+
class Ze {
|
|
2861
2861
|
/**
|
|
2862
2862
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
2863
2863
|
*
|
|
@@ -2876,7 +2876,7 @@ class Xe {
|
|
|
2876
2876
|
* Значение с которым сравнивается поле.
|
|
2877
2877
|
*/
|
|
2878
2878
|
t(this, "value");
|
|
2879
|
-
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ??
|
|
2879
|
+
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Ee.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2880
2880
|
}
|
|
2881
2881
|
/**
|
|
2882
2882
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -2884,11 +2884,14 @@ class Xe {
|
|
|
2884
2884
|
* @returns Примитивное представление фильтра.
|
|
2885
2885
|
*/
|
|
2886
2886
|
toPrimitive() {
|
|
2887
|
-
const r = {
|
|
2887
|
+
const r = k().config.dateFormats.api, e = {
|
|
2888
2888
|
field: this.field,
|
|
2889
2889
|
op: this.op
|
|
2890
2890
|
};
|
|
2891
|
-
return
|
|
2891
|
+
return xe(this.value) ? e.value = I(this.value, r) : He(this.value) ? e.value = {
|
|
2892
|
+
from: this.value.from ? I(this.value.from, r) : null,
|
|
2893
|
+
to: this.value.to ? I(this.value.to, r) : null
|
|
2894
|
+
} : e.value = this.value, e;
|
|
2892
2895
|
}
|
|
2893
2896
|
}
|
|
2894
2897
|
class G {
|
|
@@ -2911,7 +2914,7 @@ class G {
|
|
|
2911
2914
|
*/
|
|
2912
2915
|
t(this, "groups");
|
|
2913
2916
|
var e, s;
|
|
2914
|
-
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((n) => new
|
|
2917
|
+
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((n) => new Ze(n))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((n) => new G(n))) ?? [];
|
|
2915
2918
|
}
|
|
2916
2919
|
/**
|
|
2917
2920
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2921,12 +2924,12 @@ class G {
|
|
|
2921
2924
|
toPrimitive() {
|
|
2922
2925
|
return {
|
|
2923
2926
|
groupOp: this.groupOp,
|
|
2924
|
-
filters: this.filters.map((r) => r instanceof
|
|
2927
|
+
filters: this.filters.map((r) => r instanceof Ze && Fe(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2925
2928
|
groups: this.groups.map((r) => r instanceof G ? r.toPrimitive() : r)
|
|
2926
2929
|
};
|
|
2927
2930
|
}
|
|
2928
2931
|
}
|
|
2929
|
-
class Ae extends
|
|
2932
|
+
class Ae extends h {
|
|
2930
2933
|
/**
|
|
2931
2934
|
* Получает пагинированный список данных.
|
|
2932
2935
|
*
|
|
@@ -2939,12 +2942,12 @@ class Ae extends p {
|
|
|
2939
2942
|
* @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
|
|
2940
2943
|
* @param signal Сигнал отмены запроса.
|
|
2941
2944
|
*/
|
|
2942
|
-
getPaginated(r, e, s, n, o, c, u,
|
|
2945
|
+
getPaginated(r, e, s, n, o, c, u, p = void 0) {
|
|
2943
2946
|
let m = {
|
|
2944
2947
|
page: (n == null ? void 0 : n.page) ?? 1,
|
|
2945
2948
|
perPage: (n == null ? void 0 : n.pageSize) ?? 10
|
|
2946
2949
|
};
|
|
2947
|
-
return e && (m.filters = JSON.stringify((e instanceof G ? e : new G(e)).toPrimitive())), X(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u,
|
|
2950
|
+
return e && (m.filters = JSON.stringify((e instanceof G ? e : new G(e)).toPrimitive())), X(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, p);
|
|
2948
2951
|
}
|
|
2949
2952
|
}
|
|
2950
2953
|
class rs extends Ae {
|
|
@@ -3075,7 +3078,7 @@ class rs extends Ae {
|
|
|
3075
3078
|
return this.get(
|
|
3076
3079
|
`/internal/price/templates/${r}/categories`,
|
|
3077
3080
|
{},
|
|
3078
|
-
(e) => e.data.map((s) => new
|
|
3081
|
+
(e) => e.data.map((s) => new Se(s))
|
|
3079
3082
|
);
|
|
3080
3083
|
}
|
|
3081
3084
|
/**
|
|
@@ -3090,7 +3093,7 @@ class rs extends Ae {
|
|
|
3090
3093
|
return this.get(
|
|
3091
3094
|
`/internal/price/templates/${r}/categories/${e}`,
|
|
3092
3095
|
{},
|
|
3093
|
-
(s) => new
|
|
3096
|
+
(s) => new Se(s.data)
|
|
3094
3097
|
);
|
|
3095
3098
|
}
|
|
3096
3099
|
/**
|
|
@@ -3116,7 +3119,7 @@ class rs extends Ae {
|
|
|
3116
3119
|
},
|
|
3117
3120
|
params: n ? { recursively: !0 } : {}
|
|
3118
3121
|
},
|
|
3119
|
-
(c) => new
|
|
3122
|
+
(c) => new Se(c.data)
|
|
3120
3123
|
);
|
|
3121
3124
|
}
|
|
3122
3125
|
/**
|
|
@@ -3151,7 +3154,7 @@ class rs extends Ae {
|
|
|
3151
3154
|
);
|
|
3152
3155
|
}
|
|
3153
3156
|
}
|
|
3154
|
-
class ts extends
|
|
3157
|
+
class ts extends h {
|
|
3155
3158
|
/**
|
|
3156
3159
|
* Возвращает список ролей ценообразования.
|
|
3157
3160
|
*
|
|
@@ -3212,7 +3215,7 @@ class ts extends p {
|
|
|
3212
3215
|
return this.get(
|
|
3213
3216
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3214
3217
|
{},
|
|
3215
|
-
(e) => e.data.map((s) => new
|
|
3218
|
+
(e) => e.data.map((s) => new Xe(s))
|
|
3216
3219
|
);
|
|
3217
3220
|
}
|
|
3218
3221
|
/**
|
|
@@ -3227,7 +3230,7 @@ class ts extends p {
|
|
|
3227
3230
|
return this.patch(
|
|
3228
3231
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3229
3232
|
e,
|
|
3230
|
-
(s) => s.data.map((n) => new
|
|
3233
|
+
(s) => s.data.map((n) => new Xe(n))
|
|
3231
3234
|
);
|
|
3232
3235
|
}
|
|
3233
3236
|
}
|
|
@@ -3603,7 +3606,7 @@ class ss extends Ae {
|
|
|
3603
3606
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3604
3607
|
}
|
|
3605
3608
|
}
|
|
3606
|
-
class is extends
|
|
3609
|
+
class is extends h {
|
|
3607
3610
|
/**
|
|
3608
3611
|
* Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
|
|
3609
3612
|
*
|
|
@@ -3665,7 +3668,7 @@ class is extends p {
|
|
|
3665
3668
|
);
|
|
3666
3669
|
}
|
|
3667
3670
|
}
|
|
3668
|
-
function
|
|
3671
|
+
function er(i, r, e) {
|
|
3669
3672
|
let s;
|
|
3670
3673
|
return i.some((n) => {
|
|
3671
3674
|
if (n.type === e && n.id === r)
|
|
@@ -3674,31 +3677,31 @@ function Ze(i, r, e) {
|
|
|
3674
3677
|
return !1;
|
|
3675
3678
|
const o = n;
|
|
3676
3679
|
if (o.products && o.products.length > 0) {
|
|
3677
|
-
const c =
|
|
3680
|
+
const c = er(o.products, r, e);
|
|
3678
3681
|
if (c)
|
|
3679
3682
|
return s = c, !0;
|
|
3680
3683
|
}
|
|
3681
3684
|
if (o.categories && o.categories.length > 0) {
|
|
3682
|
-
const c =
|
|
3685
|
+
const c = er(o.categories, r, e);
|
|
3683
3686
|
if (c)
|
|
3684
3687
|
return s = c, !0;
|
|
3685
3688
|
}
|
|
3686
3689
|
return !1;
|
|
3687
3690
|
}), s;
|
|
3688
3691
|
}
|
|
3689
|
-
function
|
|
3692
|
+
function rr(i) {
|
|
3690
3693
|
const r = [];
|
|
3691
3694
|
return i.forEach((e) => {
|
|
3692
3695
|
if (r.push(e), e.type === "category") {
|
|
3693
3696
|
const s = e;
|
|
3694
|
-
s.products && s.products.length > 0 && r.push(...
|
|
3697
|
+
s.products && s.products.length > 0 && r.push(...rr(s.products)), s.categories && s.categories.length > 0 && r.push(...rr(s.categories));
|
|
3695
3698
|
}
|
|
3696
3699
|
}), r;
|
|
3697
3700
|
}
|
|
3698
3701
|
var gt = /* @__PURE__ */ ((i) => (i.LastOrder = "last_order", i.Contacts = "contacts", i.PartnerGroups = "partner_groups", i.PreferredDeliveryType = "preferred_delivery_type", i.SalesDirection = "sales_direction", i.Managers = "managers", i.Curators = "curators", i))(gt || {}), U = /* @__PURE__ */ ((i) => (i.Person = "individual", i.Ic = "entrepreneur", i.UlR = "legal", i.UlNr = "non_resident_legal", i))(U || {});
|
|
3699
3702
|
class mt extends w {
|
|
3700
3703
|
}
|
|
3701
|
-
class
|
|
3704
|
+
class Rr extends w {
|
|
3702
3705
|
}
|
|
3703
3706
|
class ns extends w {
|
|
3704
3707
|
}
|
|
@@ -3717,7 +3720,7 @@ class B extends w {
|
|
|
3717
3720
|
});
|
|
3718
3721
|
}
|
|
3719
3722
|
}
|
|
3720
|
-
class
|
|
3723
|
+
class Pr extends w {
|
|
3721
3724
|
}
|
|
3722
3725
|
class yt extends w {
|
|
3723
3726
|
}
|
|
@@ -3725,7 +3728,7 @@ class $e extends w {
|
|
|
3725
3728
|
}
|
|
3726
3729
|
class ee extends w {
|
|
3727
3730
|
}
|
|
3728
|
-
class
|
|
3731
|
+
class Dr extends w {
|
|
3729
3732
|
}
|
|
3730
3733
|
class wt extends w {
|
|
3731
3734
|
}
|
|
@@ -3748,10 +3751,10 @@ class os {
|
|
|
3748
3751
|
return r.id === 0 && r.slug === "-undefined-";
|
|
3749
3752
|
}
|
|
3750
3753
|
}
|
|
3751
|
-
class Dr extends w {
|
|
3752
|
-
}
|
|
3753
3754
|
class Ar extends w {
|
|
3754
3755
|
}
|
|
3756
|
+
class $r extends w {
|
|
3757
|
+
}
|
|
3755
3758
|
class Ne extends re {
|
|
3756
3759
|
/**
|
|
3757
3760
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
@@ -3783,7 +3786,7 @@ class Ne extends re {
|
|
|
3783
3786
|
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new O(e.currency));
|
|
3784
3787
|
}
|
|
3785
3788
|
}
|
|
3786
|
-
class Ue extends
|
|
3789
|
+
class Ue extends d {
|
|
3787
3790
|
/**
|
|
3788
3791
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3789
3792
|
*
|
|
@@ -3837,7 +3840,7 @@ class z extends Ue {
|
|
|
3837
3840
|
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) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3838
3841
|
}
|
|
3839
3842
|
}
|
|
3840
|
-
class
|
|
3843
|
+
class Tr extends pr {
|
|
3841
3844
|
/**
|
|
3842
3845
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3843
3846
|
*
|
|
@@ -3898,7 +3901,7 @@ class $r extends pr {
|
|
|
3898
3901
|
}
|
|
3899
3902
|
}
|
|
3900
3903
|
}
|
|
3901
|
-
class vt extends
|
|
3904
|
+
class vt extends Tr {
|
|
3902
3905
|
/**
|
|
3903
3906
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3904
3907
|
*
|
|
@@ -3908,7 +3911,7 @@ class vt extends $r {
|
|
|
3908
3911
|
super(r);
|
|
3909
3912
|
}
|
|
3910
3913
|
}
|
|
3911
|
-
class
|
|
3914
|
+
class br extends Tr {
|
|
3912
3915
|
/**
|
|
3913
3916
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
3914
3917
|
*
|
|
@@ -3951,7 +3954,7 @@ class Tr extends $r {
|
|
|
3951
3954
|
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 ?? "");
|
|
3952
3955
|
}
|
|
3953
3956
|
}
|
|
3954
|
-
class
|
|
3957
|
+
class dr extends br {
|
|
3955
3958
|
/**
|
|
3956
3959
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
3957
3960
|
*
|
|
@@ -3966,7 +3969,7 @@ class br extends Tr {
|
|
|
3966
3969
|
e && (this.kpp = e.kpp ?? "");
|
|
3967
3970
|
}
|
|
3968
3971
|
}
|
|
3969
|
-
class at extends
|
|
3972
|
+
class at extends dr {
|
|
3970
3973
|
/**
|
|
3971
3974
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3972
3975
|
*
|
|
@@ -3998,9 +4001,9 @@ class Re {
|
|
|
3998
4001
|
static createInstance(r) {
|
|
3999
4002
|
switch (r.opf.slug) {
|
|
4000
4003
|
case U.Ic:
|
|
4001
|
-
return new Tr(r);
|
|
4002
|
-
case U.UlR:
|
|
4003
4004
|
return new br(r);
|
|
4005
|
+
case U.UlR:
|
|
4006
|
+
return new dr(r);
|
|
4004
4007
|
case U.UlNr:
|
|
4005
4008
|
return new at(r);
|
|
4006
4009
|
default:
|
|
@@ -4091,7 +4094,7 @@ class ue extends pr {
|
|
|
4091
4094
|
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new mr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((n) => new z(n))) ?? [], 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;
|
|
4092
4095
|
}
|
|
4093
4096
|
}
|
|
4094
|
-
class
|
|
4097
|
+
class tr extends te {
|
|
4095
4098
|
/**
|
|
4096
4099
|
* Инициализирует экземпляр класса {@link Client}.
|
|
4097
4100
|
*
|
|
@@ -4141,7 +4144,7 @@ class rr extends te {
|
|
|
4141
4144
|
* @inheritDoc
|
|
4142
4145
|
*/
|
|
4143
4146
|
t(this, "extraData");
|
|
4144
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Re.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new ee(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new z(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ue(u))) ?? [], this.channelPrimaryInterest = new
|
|
4147
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Re.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new ee(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new z(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ue(u))) ?? [], this.channelPrimaryInterest = new Rr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new $r(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new F(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ye(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
4145
4148
|
}
|
|
4146
4149
|
}
|
|
4147
4150
|
class Sr {
|
|
@@ -4165,7 +4168,7 @@ class cs extends Sr {
|
|
|
4165
4168
|
* @param data Данные для первоначальной инициализации.
|
|
4166
4169
|
*/
|
|
4167
4170
|
constructor(e) {
|
|
4168
|
-
var s, n, o, c, u,
|
|
4171
|
+
var s, n, o, c, u, p, m, f;
|
|
4169
4172
|
super();
|
|
4170
4173
|
/**
|
|
4171
4174
|
* @inheritDoc
|
|
@@ -4263,11 +4266,15 @@ class cs extends Sr {
|
|
|
4263
4266
|
* @inheritDoc
|
|
4264
4267
|
*/
|
|
4265
4268
|
t(this, "lastOrder");
|
|
4266
|
-
|
|
4267
|
-
|
|
4269
|
+
/**
|
|
4270
|
+
* @inheritDoc
|
|
4271
|
+
*/
|
|
4272
|
+
t(this, "noOrdersPeriod", new b());
|
|
4273
|
+
this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new De(D)), this.region = new ge(e == null ? void 0 : e.region), this.country = new Z(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new b(e == null ? void 0 : e.createdAt), this.lastLoginDate = new b(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((n = e == null ? void 0 : e.managers) == null ? void 0 : n.map((D) => new ve(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new Je(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new q(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new B(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new F(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new ee(D)), this.contact = new Ue(e == null ? void 0 : e.contact), this.lastOrder = {
|
|
4274
|
+
createdAt: new b((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
|
|
4268
4275
|
creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
|
|
4269
4276
|
isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
|
|
4270
|
-
};
|
|
4277
|
+
}, this.noOrdersPeriod = new b(e == null ? void 0 : e.noOrdersPeriod);
|
|
4271
4278
|
}
|
|
4272
4279
|
/**
|
|
4273
4280
|
* @inheritDoc
|
|
@@ -4289,6 +4296,9 @@ class cs extends Sr {
|
|
|
4289
4296
|
case "lastLoginDate":
|
|
4290
4297
|
this.lastLoginDate.from = null, this.lastLoginDate.to = null;
|
|
4291
4298
|
break;
|
|
4299
|
+
case "noOrdersPeriod":
|
|
4300
|
+
this.noOrdersPeriod.from = null, this.noOrdersPeriod.to = null;
|
|
4301
|
+
break;
|
|
4292
4302
|
case "lastOrder":
|
|
4293
4303
|
this.lastOrder = {};
|
|
4294
4304
|
break;
|
|
@@ -4323,12 +4333,12 @@ class cs extends Sr {
|
|
|
4323
4333
|
* @inheritDoc
|
|
4324
4334
|
*/
|
|
4325
4335
|
asClearRaw() {
|
|
4326
|
-
var s, n, o, c;
|
|
4336
|
+
var s, n, o, c, u, p;
|
|
4327
4337
|
const e = super.asClearRaw();
|
|
4328
|
-
return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, e;
|
|
4338
|
+
return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, !((u = e == null ? void 0 : e.noOrdersPeriod) != null && u.from) && !((p = e == null ? void 0 : e.noOrdersPeriod) != null && p.to) && delete e.noOrdersPeriod, e;
|
|
4329
4339
|
}
|
|
4330
4340
|
}
|
|
4331
|
-
class
|
|
4341
|
+
class kr extends re {
|
|
4332
4342
|
/**
|
|
4333
4343
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
4334
4344
|
*
|
|
@@ -4347,7 +4357,7 @@ class dr extends re {
|
|
|
4347
4357
|
this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new _(e == null ? void 0 : e.creator);
|
|
4348
4358
|
}
|
|
4349
4359
|
}
|
|
4350
|
-
class Rt extends
|
|
4360
|
+
class Rt extends d {
|
|
4351
4361
|
/**
|
|
4352
4362
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4353
4363
|
*
|
|
@@ -4384,7 +4394,7 @@ class Rt extends S {
|
|
|
4384
4394
|
* @inheritDoc
|
|
4385
4395
|
*/
|
|
4386
4396
|
t(this, "curators");
|
|
4387
|
-
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new z(u))) ?? void 0, this.lastOrder = e.lastOrder ? new
|
|
4397
|
+
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new z(u))) ?? void 0, this.lastOrder = e.lastOrder ? new kr(e.lastOrder) : void 0, this.partnerGroups = ((n = e.partnerGroups) == null ? void 0 : n.map((u) => new ee(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new F(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new q(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new ze(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Je(u))) ?? void 0;
|
|
4388
4398
|
}
|
|
4389
4399
|
}
|
|
4390
4400
|
class Pt {
|
|
@@ -4482,7 +4492,7 @@ class x extends Ae {
|
|
|
4482
4492
|
* @param contragent Данные о контрагенте клиента.
|
|
4483
4493
|
*/
|
|
4484
4494
|
static transformContragentClientDataToRequest(r) {
|
|
4485
|
-
var c, u,
|
|
4495
|
+
var c, u, p, m;
|
|
4486
4496
|
let e;
|
|
4487
4497
|
const s = r, n = r, o = r;
|
|
4488
4498
|
switch (r.opf.slug) {
|
|
@@ -4526,7 +4536,7 @@ class x extends Ae {
|
|
|
4526
4536
|
opf: o.opf.slug,
|
|
4527
4537
|
name: o.name,
|
|
4528
4538
|
alternative_name: o.alternativeName,
|
|
4529
|
-
partner_group_id: (
|
|
4539
|
+
partner_group_id: (p = o.partnerGroup) == null ? void 0 : p.id,
|
|
4530
4540
|
comment: o.comment,
|
|
4531
4541
|
director_name: o.directorName,
|
|
4532
4542
|
director_position: o.directorPosition,
|
|
@@ -4593,7 +4603,7 @@ class x extends Ae {
|
|
|
4593
4603
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
4594
4604
|
*/
|
|
4595
4605
|
getClient(r) {
|
|
4596
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
4606
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new tr(e.data));
|
|
4597
4607
|
}
|
|
4598
4608
|
/**
|
|
4599
4609
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -4615,7 +4625,7 @@ class x extends Ae {
|
|
|
4615
4625
|
n,
|
|
4616
4626
|
(c) => {
|
|
4617
4627
|
const u = { ...c.data };
|
|
4618
|
-
return u.data = u.data.map((
|
|
4628
|
+
return u.data = u.data.map((p) => new te(p)), u;
|
|
4619
4629
|
},
|
|
4620
4630
|
void 0,
|
|
4621
4631
|
o
|
|
@@ -4641,7 +4651,7 @@ class x extends Ae {
|
|
|
4641
4651
|
return this.getClientsList({
|
|
4642
4652
|
groupOp: "and",
|
|
4643
4653
|
groups: [],
|
|
4644
|
-
filters: [{ field: "phone", op:
|
|
4654
|
+
filters: [{ field: "phone", op: Ee.Contains, value: r }]
|
|
4645
4655
|
});
|
|
4646
4656
|
}
|
|
4647
4657
|
/**
|
|
@@ -4678,7 +4688,7 @@ class x extends Ae {
|
|
|
4678
4688
|
* @see /doc/api/internal#/Клиенты/api_internal_client_create
|
|
4679
4689
|
*/
|
|
4680
4690
|
createClientCommonData(r, e = {}) {
|
|
4681
|
-
return this.post("/internal/clients", x.transformClientDataToRequest(r), (s) => new
|
|
4691
|
+
return this.post("/internal/clients", x.transformClientDataToRequest(r), (s) => new tr(s.data), e);
|
|
4682
4692
|
}
|
|
4683
4693
|
/**
|
|
4684
4694
|
* Обновляет данные указанного клиента.
|
|
@@ -5126,7 +5136,7 @@ class x extends Ae {
|
|
|
5126
5136
|
comment: e.comment,
|
|
5127
5137
|
...s
|
|
5128
5138
|
};
|
|
5129
|
-
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, (
|
|
5139
|
+
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, (p) => new z(p.data), n);
|
|
5130
5140
|
}
|
|
5131
5141
|
/**
|
|
5132
5142
|
* Устанавливает признак основного контактного лица.
|
|
@@ -5155,7 +5165,7 @@ class x extends Ae {
|
|
|
5155
5165
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
5156
5166
|
}
|
|
5157
5167
|
}
|
|
5158
|
-
const Y = class Y extends
|
|
5168
|
+
const Y = class Y extends h {
|
|
5159
5169
|
/**
|
|
5160
5170
|
* Инициализирует экземпляр класса {@link HttpCachedRequester}.
|
|
5161
5171
|
*/
|
|
@@ -5187,7 +5197,7 @@ const Y = class Y extends p {
|
|
|
5187
5197
|
*/
|
|
5188
5198
|
cacheResponse(e, s) {
|
|
5189
5199
|
Y.responseDataCache.set(e, {
|
|
5190
|
-
validTo:
|
|
5200
|
+
validTo: Gr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
5191
5201
|
val: s
|
|
5192
5202
|
});
|
|
5193
5203
|
}
|
|
@@ -5203,8 +5213,8 @@ const Y = class Y extends p {
|
|
|
5203
5213
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
5204
5214
|
getTypedDataArrayRequester(e, s, n = !1, o = {}) {
|
|
5205
5215
|
const c = s + (X(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = n ? Y.getCachedResponse(c) : void 0;
|
|
5206
|
-
return u ? Promise.resolve(u) : this.get(s, o).then((
|
|
5207
|
-
const m =
|
|
5216
|
+
return u ? Promise.resolve(u) : this.get(s, o).then((p) => {
|
|
5217
|
+
const m = p.map((f) => je.instanceInitializer(e, f));
|
|
5208
5218
|
return n && m && this.cacheResponse(s, m), m;
|
|
5209
5219
|
});
|
|
5210
5220
|
}
|
|
@@ -5214,7 +5224,7 @@ const Y = class Y extends p {
|
|
|
5214
5224
|
*/
|
|
5215
5225
|
t(Y, "responseDataCache", /* @__PURE__ */ new Map());
|
|
5216
5226
|
let me = Y;
|
|
5217
|
-
class ps extends
|
|
5227
|
+
class ps extends h {
|
|
5218
5228
|
/**
|
|
5219
5229
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
5220
5230
|
*
|
|
@@ -5251,7 +5261,7 @@ class hs {
|
|
|
5251
5261
|
}
|
|
5252
5262
|
}
|
|
5253
5263
|
var Dt = /* @__PURE__ */ ((i) => (i.Kozyrek = "kozyrek", i.Mosquitto = "mosquitto", i.Strip = "strip", i.MetalForDoors = "metal_for_doors", i.Sandwich = "sandwich", i.SandwichM2 = "sandwich_m2", i))(Dt || {});
|
|
5254
|
-
class gs extends
|
|
5264
|
+
class gs extends h {
|
|
5255
5265
|
/**
|
|
5256
5266
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
5257
5267
|
*
|
|
@@ -5347,17 +5357,17 @@ class ms {
|
|
|
5347
5357
|
* Возвращает диапазон дат по умолчанию.
|
|
5348
5358
|
*/
|
|
5349
5359
|
static defaultDateRanges() {
|
|
5350
|
-
const r =
|
|
5360
|
+
const r = Br(/* @__PURE__ */ new Date(), 1);
|
|
5351
5361
|
return {
|
|
5352
5362
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5353
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
5354
|
-
today: { label: "Сегодня", from: Oe(), to:
|
|
5355
|
-
yesterday: { label: "Вчера", from:
|
|
5356
|
-
tomorrow: { label: "Завтра", from:
|
|
5363
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: Qr(r), to: Kr(r) },
|
|
5364
|
+
today: { label: "Сегодня", from: Oe(), to: Vr() },
|
|
5365
|
+
yesterday: { label: "Вчера", from: Er(), to: Jr() },
|
|
5366
|
+
tomorrow: { label: "Завтра", from: Wr(), to: zr() }
|
|
5357
5367
|
};
|
|
5358
5368
|
}
|
|
5359
5369
|
}
|
|
5360
|
-
class
|
|
5370
|
+
class Ir {
|
|
5361
5371
|
/**
|
|
5362
5372
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
5363
5373
|
*
|
|
@@ -5373,7 +5383,7 @@ class kr {
|
|
|
5373
5383
|
*/
|
|
5374
5384
|
static getProductMultiplicity(r) {
|
|
5375
5385
|
var e, s;
|
|
5376
|
-
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !
|
|
5386
|
+
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !Ir.productIsMeasurable(r) ? r.properties.minCount : 1;
|
|
5377
5387
|
}
|
|
5378
5388
|
/**
|
|
5379
5389
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -5413,7 +5423,7 @@ class At extends me {
|
|
|
5413
5423
|
const r = "/internal/managers", e = me.getCachedResponse(r);
|
|
5414
5424
|
if (e)
|
|
5415
5425
|
return e;
|
|
5416
|
-
const n = (await this.get(r)).data.map((o) =>
|
|
5426
|
+
const n = (await this.get(r)).data.map((o) => je.instanceInitializer(ve, o));
|
|
5417
5427
|
return this.cacheResponse(r, n), n;
|
|
5418
5428
|
}
|
|
5419
5429
|
}
|
|
@@ -5485,14 +5495,14 @@ class ws {
|
|
|
5485
5495
|
this.paymentType = r == null ? void 0 : r.payment.type, this.deliveryType = r == null ? void 0 : r.delivery.type, this.contragentId = (e = r == null ? void 0 : r.contragent) == null ? void 0 : e.id, this.deliveryDate = r != null && r.delivery.date ? new Date(r.delivery.date) : void 0, this.addressId = (s = r == null ? void 0 : r.delivery.address) == null ? void 0 : s.id, this.warehouseId = (n = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : n.id, this.comment = r == null ? void 0 : r.comment, this.barcode = r == null ? void 0 : r.barcode, this.operatorsComment = r == null ? void 0 : r.operatorsComment, this.operatorsForWarehouseComment = r == null ? void 0 : r.operatorsForWarehouseComment, this.isAllowProcessingWithoutPayment = r == null ? void 0 : r.isAllowProcessingWithoutPayment;
|
|
5486
5496
|
}
|
|
5487
5497
|
}
|
|
5488
|
-
class
|
|
5498
|
+
class Lr extends kr {
|
|
5489
5499
|
/**
|
|
5490
5500
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
5491
5501
|
*
|
|
5492
5502
|
* @param data Данные для первоначальной инициализации.
|
|
5493
5503
|
*/
|
|
5494
5504
|
constructor(e) {
|
|
5495
|
-
var s, n, o, c, u,
|
|
5505
|
+
var s, n, o, c, u, p, m, f;
|
|
5496
5506
|
super(e);
|
|
5497
5507
|
/**
|
|
5498
5508
|
* @inheritDoc
|
|
@@ -5548,7 +5558,7 @@ class Ir extends dr {
|
|
|
5548
5558
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
5549
5559
|
}, this.delivery = {
|
|
5550
5560
|
type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
|
|
5551
|
-
date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? R(e.delivery.date) : ((
|
|
5561
|
+
date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? R(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
|
|
5552
5562
|
address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new ue(e.delivery.address) : void 0,
|
|
5553
5563
|
warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new ye(e.delivery.warehouse) : void 0
|
|
5554
5564
|
}, this.attachedUser = e != null && e.attachedUser ? new _(e == null ? void 0 : e.attachedUser) : void 0, this.status = new $e(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new w(e.statusDetail) : void 0, this.salesDirection = new q(e == null ? void 0 : e.salesDirection), this.attachedAt = C(e == null ? void 0 : e.attachedAt) ? R(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
|
|
@@ -5571,7 +5581,7 @@ class T extends me {
|
|
|
5571
5581
|
* первичного интереса.
|
|
5572
5582
|
*/
|
|
5573
5583
|
getChannelPrimaryInterest() {
|
|
5574
|
-
return this.getTypedDataArrayRequester(
|
|
5584
|
+
return this.getTypedDataArrayRequester(Rr, "/internal/references/channel-primary-interest", !0);
|
|
5575
5585
|
}
|
|
5576
5586
|
/**
|
|
5577
5587
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
@@ -5583,7 +5593,7 @@ class T extends me {
|
|
|
5583
5593
|
* Возвращает {@link Promise} для получения справочника списка направлений кураторства.
|
|
5584
5594
|
*/
|
|
5585
5595
|
getCuratedDirection() {
|
|
5586
|
-
return this.getTypedDataArrayRequester(
|
|
5596
|
+
return this.getTypedDataArrayRequester(We, "/internal/references/curated-direction", !0);
|
|
5587
5597
|
}
|
|
5588
5598
|
/**
|
|
5589
5599
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
@@ -5608,7 +5618,7 @@ class T extends me {
|
|
|
5608
5618
|
* Возвращает {@link Promise} для получения справочника операторов.
|
|
5609
5619
|
*/
|
|
5610
5620
|
getOperators() {
|
|
5611
|
-
return this.getTypedDataArrayRequester(
|
|
5621
|
+
return this.getTypedDataArrayRequester(Pr, "/internal/references/operator", !0);
|
|
5612
5622
|
}
|
|
5613
5623
|
/**
|
|
5614
5624
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
@@ -5626,13 +5636,13 @@ class T extends me {
|
|
|
5626
5636
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
5627
5637
|
*/
|
|
5628
5638
|
getPaymentTypes() {
|
|
5629
|
-
return this.getTypedDataArrayRequester(
|
|
5639
|
+
return this.getTypedDataArrayRequester(Dr, "/public/references/payment-type", !0);
|
|
5630
5640
|
}
|
|
5631
5641
|
/**
|
|
5632
5642
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
5633
5643
|
*/
|
|
5634
5644
|
getResourceTypes() {
|
|
5635
|
-
return this.getTypedDataArrayRequester(
|
|
5645
|
+
return this.getTypedDataArrayRequester(Ar, "/internal/references/resource-type", !0);
|
|
5636
5646
|
}
|
|
5637
5647
|
/**
|
|
5638
5648
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
@@ -5644,7 +5654,7 @@ class T extends me {
|
|
|
5644
5654
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
5645
5655
|
*/
|
|
5646
5656
|
getSourcePrimaryInterest() {
|
|
5647
|
-
return this.getTypedDataArrayRequester(
|
|
5657
|
+
return this.getTypedDataArrayRequester($r, "/internal/references/source-primary-interest", !0);
|
|
5648
5658
|
}
|
|
5649
5659
|
/**
|
|
5650
5660
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -5686,7 +5696,7 @@ class T extends me {
|
|
|
5686
5696
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
5687
5697
|
*/
|
|
5688
5698
|
getPropertyTypes() {
|
|
5689
|
-
return this.getTypedDataArrayRequester(
|
|
5699
|
+
return this.getTypedDataArrayRequester(Cr, "/internal/references/property-type", !0);
|
|
5690
5700
|
}
|
|
5691
5701
|
/**
|
|
5692
5702
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
@@ -5702,7 +5712,7 @@ class T extends me {
|
|
|
5702
5712
|
}
|
|
5703
5713
|
}
|
|
5704
5714
|
const $ = W("common.references_private", () => {
|
|
5705
|
-
const i = y({}), r = y(void 0), e = y(void 0), s = y(void 0), n = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0),
|
|
5715
|
+
const i = y({}), r = y(void 0), e = y(void 0), s = y(void 0), n = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), p = y(void 0), m = y(void 0), f = y(void 0), D = y(void 0), se = y(void 0), ie = y(void 0), J = y(void 0), E = y(void 0), Te = y(void 0), be = y(void 0), l = y(void 0);
|
|
5706
5716
|
return {
|
|
5707
5717
|
/**
|
|
5708
5718
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5739,7 +5749,7 @@ const $ = W("common.references_private", () => {
|
|
|
5739
5749
|
/**
|
|
5740
5750
|
* Справочник статусов оплаты заказа.
|
|
5741
5751
|
*/
|
|
5742
|
-
orderPaymentStatusReference:
|
|
5752
|
+
orderPaymentStatusReference: p,
|
|
5743
5753
|
/**
|
|
5744
5754
|
* Справочник статусов заказов.
|
|
5745
5755
|
*/
|
|
@@ -5784,92 +5794,92 @@ const $ = W("common.references_private", () => {
|
|
|
5784
5794
|
}), vs = W("common.references", () => {
|
|
5785
5795
|
const i = P(() => {
|
|
5786
5796
|
const l = $();
|
|
5787
|
-
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0,
|
|
5797
|
+
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((g) => {
|
|
5788
5798
|
l.channelPrimaryInterestReference = g;
|
|
5789
5799
|
}).catch(v)), l.channelPrimaryInterestReference;
|
|
5790
5800
|
}), r = P(() => {
|
|
5791
5801
|
const l = $();
|
|
5792
|
-
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0,
|
|
5802
|
+
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(T).getContactPositions().then((g) => {
|
|
5793
5803
|
l.contactPositionsReference = g;
|
|
5794
5804
|
}).catch(v)), l.contactPositionsReference;
|
|
5795
5805
|
}), e = P(() => {
|
|
5796
5806
|
const l = $();
|
|
5797
|
-
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0,
|
|
5807
|
+
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(T).getCurrency().then((g) => {
|
|
5798
5808
|
l.currencyReference = g;
|
|
5799
5809
|
}).catch(v)), l.currencyReference;
|
|
5800
5810
|
}), s = P(() => {
|
|
5801
5811
|
const l = $();
|
|
5802
|
-
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0,
|
|
5812
|
+
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(T).getOpf().then((g) => {
|
|
5803
5813
|
l.opfReference = g;
|
|
5804
5814
|
}).catch(v)), l.opfReference;
|
|
5805
5815
|
}), n = P(() => {
|
|
5806
5816
|
const l = $();
|
|
5807
|
-
return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0,
|
|
5817
|
+
return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(T).getOperators().then((g) => {
|
|
5808
5818
|
l.operatorReference = g;
|
|
5809
5819
|
}).catch(v)), l.operatorReference;
|
|
5810
5820
|
}), o = P(() => {
|
|
5811
5821
|
const l = $();
|
|
5812
|
-
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0,
|
|
5822
|
+
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(T).getOrderPaymentStatuses().then((g) => {
|
|
5813
5823
|
l.orderPaymentStatusReference = g;
|
|
5814
5824
|
}).catch(v)), l.orderPaymentStatusReference;
|
|
5815
5825
|
}), c = P(() => {
|
|
5816
5826
|
const l = $();
|
|
5817
|
-
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0,
|
|
5827
|
+
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(T).getOrderStatuses().then((g) => {
|
|
5818
5828
|
l.orderStatusReference = g;
|
|
5819
5829
|
}).catch(v)), l.orderStatusReference;
|
|
5820
5830
|
}), u = P(() => {
|
|
5821
5831
|
const l = $();
|
|
5822
|
-
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0,
|
|
5832
|
+
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((g) => {
|
|
5823
5833
|
l.paymentTypeReference = g;
|
|
5824
5834
|
}).catch(v)), l.paymentTypeReference;
|
|
5825
|
-
}),
|
|
5835
|
+
}), p = P(() => {
|
|
5826
5836
|
const l = $();
|
|
5827
|
-
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0,
|
|
5837
|
+
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((g) => {
|
|
5828
5838
|
l.partnerGroupReference = g;
|
|
5829
5839
|
}).catch(v)), l.partnerGroupReference;
|
|
5830
5840
|
}), m = P(() => {
|
|
5831
5841
|
const l = $();
|
|
5832
|
-
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0,
|
|
5842
|
+
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((g) => {
|
|
5833
5843
|
l.productFileTypeReference = g;
|
|
5834
5844
|
}).catch(v)), l.productFileTypeReference;
|
|
5835
5845
|
}), f = P(() => {
|
|
5836
5846
|
const l = $();
|
|
5837
|
-
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0,
|
|
5847
|
+
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((g) => {
|
|
5838
5848
|
l.resourceTypesReference = g;
|
|
5839
5849
|
}).catch(v)), l.resourceTypesReference;
|
|
5840
5850
|
}), D = P(() => {
|
|
5841
5851
|
const l = $();
|
|
5842
|
-
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0,
|
|
5852
|
+
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(T).getSalesDirections().then((g) => {
|
|
5843
5853
|
l.salesDirectionsReference = g;
|
|
5844
5854
|
}).catch(v)), l.salesDirectionsReference;
|
|
5845
5855
|
}), se = P(() => {
|
|
5846
5856
|
const l = $();
|
|
5847
|
-
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0,
|
|
5857
|
+
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((g) => {
|
|
5848
5858
|
l.sourcePrimaryInterestReference = g;
|
|
5849
5859
|
}).catch(v)), l.sourcePrimaryInterestReference;
|
|
5850
5860
|
}), ie = P(() => {
|
|
5851
5861
|
const l = $();
|
|
5852
|
-
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0,
|
|
5862
|
+
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(T).getDeliveryTypes().then((g) => {
|
|
5853
5863
|
l.deliveryTypeReference = g;
|
|
5854
5864
|
}).catch(v)), l.deliveryTypeReference;
|
|
5855
5865
|
}), J = P(() => {
|
|
5856
5866
|
const l = $();
|
|
5857
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0,
|
|
5867
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(At).getManagers().then((g) => {
|
|
5858
5868
|
l.managersList = g;
|
|
5859
5869
|
}).catch(v)), l.managersList;
|
|
5860
5870
|
}), E = P(() => {
|
|
5861
5871
|
const l = $();
|
|
5862
|
-
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0,
|
|
5872
|
+
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(T).getWarehouses().then((g) => {
|
|
5863
5873
|
l.warehousesReference = g;
|
|
5864
5874
|
}).catch(v)), l.warehousesReference;
|
|
5865
5875
|
}), Te = P(() => {
|
|
5866
5876
|
const l = $();
|
|
5867
|
-
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0,
|
|
5877
|
+
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(T).getPropertyTypes().then((g) => {
|
|
5868
5878
|
l.propertyTypesReference = g;
|
|
5869
5879
|
}).catch(v)), l.propertyTypesReference;
|
|
5870
5880
|
}), be = P(() => {
|
|
5871
5881
|
const l = $();
|
|
5872
|
-
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0,
|
|
5882
|
+
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(T).getPriceCoefficients().then((g) => {
|
|
5873
5883
|
l.priceCoefficientsReference = g;
|
|
5874
5884
|
}).catch(v)), l.priceCoefficientsReference;
|
|
5875
5885
|
});
|
|
@@ -5909,7 +5919,7 @@ const $ = W("common.references_private", () => {
|
|
|
5909
5919
|
/**
|
|
5910
5920
|
* Справочник групп партнеров.
|
|
5911
5921
|
*/
|
|
5912
|
-
partnerGroupsReference:
|
|
5922
|
+
partnerGroupsReference: p,
|
|
5913
5923
|
/**
|
|
5914
5924
|
* Справочник типов файлов продуктов/категорий.
|
|
5915
5925
|
*/
|
|
@@ -6049,7 +6059,7 @@ class as extends Sr {
|
|
|
6049
6059
|
* @inheritDoc
|
|
6050
6060
|
*/
|
|
6051
6061
|
t(this, "onlyMyRegions");
|
|
6052
|
-
this.attachedUsers = (s = e == null ? void 0 : e.attachedUsers) == null ? void 0 : s.map((u) => "isActive" in u ? new ve(u) : new
|
|
6062
|
+
this.attachedUsers = (s = e == null ? void 0 : e.attachedUsers) == null ? void 0 : s.map((u) => "isActive" in u ? new ve(u) : new Pr(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new te(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new b(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new _(e.creator) : void 0, this.deliveryDate = new b(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (n = e == null ? void 0 : e.clientCities) == null ? void 0 : n.map((u) => new De(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new b(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new q(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new F(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Dr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new ye(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
|
|
6053
6063
|
}
|
|
6054
6064
|
/**
|
|
6055
6065
|
* @inheritDoc
|
|
@@ -6093,12 +6103,12 @@ class as extends Sr {
|
|
|
6093
6103
|
* @inheritDoc
|
|
6094
6104
|
*/
|
|
6095
6105
|
asClearRaw() {
|
|
6096
|
-
var s, n, o, c, u,
|
|
6106
|
+
var s, n, o, c, u, p;
|
|
6097
6107
|
const e = super.asClearRaw();
|
|
6098
|
-
return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.attachedAt) != null && u.from) && !((
|
|
6108
|
+
return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((n = e == null ? void 0 : e.createdAt) != null && n.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.attachedAt) != null && u.from) && !((p = e == null ? void 0 : e.attachedAt) != null && p.to) && delete e.attachedAt, e;
|
|
6099
6109
|
}
|
|
6100
6110
|
}
|
|
6101
|
-
class
|
|
6111
|
+
class dt extends fr {
|
|
6102
6112
|
/**
|
|
6103
6113
|
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
6104
6114
|
*
|
|
@@ -6158,7 +6168,7 @@ class St extends fr {
|
|
|
6158
6168
|
this.product = new j(e.product), this.currency = new O(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing, s && (this.replacement = s, this.quantity !== s.quantity && this.changedFields.push("quantity"), this.length !== s.length && this.changedFields.push("length"));
|
|
6159
6169
|
}
|
|
6160
6170
|
}
|
|
6161
|
-
class
|
|
6171
|
+
class S extends Lr {
|
|
6162
6172
|
/**
|
|
6163
6173
|
* Инициализирует экземпляр класса {@link Order}.
|
|
6164
6174
|
*
|
|
@@ -6222,11 +6232,11 @@ class d extends Ir {
|
|
|
6222
6232
|
this.products = (e.products ?? []).map((n) => {
|
|
6223
6233
|
var c;
|
|
6224
6234
|
const o = n.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === n.replacementId) : void 0;
|
|
6225
|
-
return new
|
|
6235
|
+
return new dt(n, o);
|
|
6226
6236
|
}), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Re.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (s = e.nextStatuses) == null ? void 0 : s.map((n) => new $e(n)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
|
|
6227
6237
|
}
|
|
6228
6238
|
}
|
|
6229
|
-
class
|
|
6239
|
+
class St {
|
|
6230
6240
|
/**
|
|
6231
6241
|
* Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
|
|
6232
6242
|
*
|
|
@@ -6272,7 +6282,7 @@ class Cs extends Ae {
|
|
|
6272
6282
|
{},
|
|
6273
6283
|
(o) => {
|
|
6274
6284
|
const c = { ...o.data };
|
|
6275
|
-
return c.data = c.data.map((u) => new
|
|
6285
|
+
return c.data = c.data.map((u) => new Lr(u)), c;
|
|
6276
6286
|
},
|
|
6277
6287
|
void 0,
|
|
6278
6288
|
n
|
|
@@ -6312,7 +6322,7 @@ class Cs extends Ae {
|
|
|
6312
6322
|
* @see /doc/api/internal#/Заказы/api_internal_orders_get
|
|
6313
6323
|
*/
|
|
6314
6324
|
getOrder(r) {
|
|
6315
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
6325
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new S(e.data));
|
|
6316
6326
|
}
|
|
6317
6327
|
/**
|
|
6318
6328
|
* Создаёт новый заказ клиента из содержимого корзины текущего пользователя.
|
|
@@ -6338,7 +6348,7 @@ class Cs extends Ae {
|
|
|
6338
6348
|
deliveryDate: I(s.deliveryDate, c),
|
|
6339
6349
|
items: n != null && n.length ? n : void 0
|
|
6340
6350
|
},
|
|
6341
|
-
(u) => u.data.map((
|
|
6351
|
+
(u) => u.data.map((p) => new S(p)),
|
|
6342
6352
|
o
|
|
6343
6353
|
);
|
|
6344
6354
|
}
|
|
@@ -6350,7 +6360,7 @@ class Cs extends Ae {
|
|
|
6350
6360
|
* @see /doc/api/internal#/Заказы/api_internal_orders_attach
|
|
6351
6361
|
*/
|
|
6352
6362
|
attachOrder(r) {
|
|
6353
|
-
return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new
|
|
6363
|
+
return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new S(e.data));
|
|
6354
6364
|
}
|
|
6355
6365
|
/**
|
|
6356
6366
|
* Открепляет указанный заказ от оператора и возвращает полные данные заказа.
|
|
@@ -6360,7 +6370,7 @@ class Cs extends Ae {
|
|
|
6360
6370
|
* @see /doc/api/internal#/Заказы/api_internal_orders_detach
|
|
6361
6371
|
*/
|
|
6362
6372
|
detachOrder(r) {
|
|
6363
|
-
return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new
|
|
6373
|
+
return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new S(e.data));
|
|
6364
6374
|
}
|
|
6365
6375
|
/**
|
|
6366
6376
|
* Объединяет указанные заказы в базовый заказ и возвращает обновлённые данные базового заказа.
|
|
@@ -6371,7 +6381,7 @@ class Cs extends Ae {
|
|
|
6371
6381
|
* @see /doc/api/internal#/Заказы/api_internal_orders_merge
|
|
6372
6382
|
*/
|
|
6373
6383
|
mergeOrders(r, e) {
|
|
6374
|
-
return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (s) => new
|
|
6384
|
+
return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (s) => new S(s.data));
|
|
6375
6385
|
}
|
|
6376
6386
|
/**
|
|
6377
6387
|
* Пересчитывает стоимость корзины указанного заказа и возвращает обновлённые данные заказа.
|
|
@@ -6381,7 +6391,7 @@ class Cs extends Ae {
|
|
|
6381
6391
|
* @see /doc/api/internal#/Заказы/api_internal_orders_recalculate
|
|
6382
6392
|
*/
|
|
6383
6393
|
recalculateOrder(r) {
|
|
6384
|
-
return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new
|
|
6394
|
+
return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new S(e.data));
|
|
6385
6395
|
}
|
|
6386
6396
|
/**
|
|
6387
6397
|
* Копирует товары указанного заказа в текущую корзину пользователя.
|
|
@@ -6412,7 +6422,7 @@ class Cs extends Ae {
|
|
|
6412
6422
|
...e,
|
|
6413
6423
|
deliveryDate: e.deliveryDate ? I(e.deliveryDate, n) : void 0
|
|
6414
6424
|
},
|
|
6415
|
-
(o) => new
|
|
6425
|
+
(o) => new S(o.data),
|
|
6416
6426
|
s
|
|
6417
6427
|
);
|
|
6418
6428
|
}
|
|
@@ -6442,7 +6452,7 @@ class Cs extends Ae {
|
|
|
6442
6452
|
is_additional_sale: e.isAdditionalSale,
|
|
6443
6453
|
...e.configuratorParams
|
|
6444
6454
|
},
|
|
6445
|
-
(n) => new
|
|
6455
|
+
(n) => new S(n.data),
|
|
6446
6456
|
s
|
|
6447
6457
|
);
|
|
6448
6458
|
}
|
|
@@ -6465,7 +6475,7 @@ class Cs extends Ae {
|
|
|
6465
6475
|
status: e,
|
|
6466
6476
|
statusDetail: s
|
|
6467
6477
|
},
|
|
6468
|
-
(o) => new
|
|
6478
|
+
(o) => new S(o.data),
|
|
6469
6479
|
n
|
|
6470
6480
|
);
|
|
6471
6481
|
}
|
|
@@ -6479,7 +6489,7 @@ class Cs extends Ae {
|
|
|
6479
6489
|
* @see /doc/api/internal#/Заказы/api_internal_orders_status_change
|
|
6480
6490
|
*/
|
|
6481
6491
|
changeOrderStatusDetail(r, e) {
|
|
6482
|
-
return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (s) => new
|
|
6492
|
+
return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (s) => new S(s.data));
|
|
6483
6493
|
}
|
|
6484
6494
|
/**
|
|
6485
6495
|
* Возвращает историю изменения статусов заказа.
|
|
@@ -6492,7 +6502,7 @@ class Cs extends Ae {
|
|
|
6492
6502
|
return this.get(
|
|
6493
6503
|
`/internal/orders/${r}/history`,
|
|
6494
6504
|
{},
|
|
6495
|
-
(e) => e.data.map((s) => new
|
|
6505
|
+
(e) => e.data.map((s) => new St(s))
|
|
6496
6506
|
);
|
|
6497
6507
|
}
|
|
6498
6508
|
/**
|
|
@@ -6504,7 +6514,7 @@ class Cs extends Ae {
|
|
|
6504
6514
|
* @see /doc/api/internal#/Заказы/api_internal_orders_change_attached_operator
|
|
6505
6515
|
*/
|
|
6506
6516
|
changeAttachedOperator(r, e) {
|
|
6507
|
-
return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (s) => new
|
|
6517
|
+
return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (s) => new S(s.data));
|
|
6508
6518
|
}
|
|
6509
6519
|
/**
|
|
6510
6520
|
* Удаляет файл, прикреплённый к заказу клиентом, и возвращает обновлённые данные заказа.
|
|
@@ -6514,7 +6524,7 @@ class Cs extends Ae {
|
|
|
6514
6524
|
* @see /doc/api/internal#/Заказы/api_internal_orders_attached_file_delete
|
|
6515
6525
|
*/
|
|
6516
6526
|
deleteOrderAttachedFile(r) {
|
|
6517
|
-
return this.delete(`/internal/orders/${r}/file/attached`, (e) => new
|
|
6527
|
+
return this.delete(`/internal/orders/${r}/file/attached`, (e) => new S(e.data));
|
|
6518
6528
|
}
|
|
6519
6529
|
/**
|
|
6520
6530
|
* Удаляет продукт из заказа и возвращает обновлённые данные заказа.
|
|
@@ -6525,7 +6535,7 @@ class Cs extends Ae {
|
|
|
6525
6535
|
* @see /doc/api/internal#/operations/api_internal_orders_product_delete
|
|
6526
6536
|
*/
|
|
6527
6537
|
deleteOrderProduct(r, e) {
|
|
6528
|
-
return this.delete(`/internal/orders/${r}/products/${e}`, (s) => new
|
|
6538
|
+
return this.delete(`/internal/orders/${r}/products/${e}`, (s) => new S(s.data));
|
|
6529
6539
|
}
|
|
6530
6540
|
/**
|
|
6531
6541
|
* Изменяет продукт заказа и возвращает обновлённые данные заказа.
|
|
@@ -6553,7 +6563,7 @@ class Cs extends Ae {
|
|
|
6553
6563
|
marker: s.marker,
|
|
6554
6564
|
...s.configuratorParams
|
|
6555
6565
|
},
|
|
6556
|
-
(o) => new
|
|
6566
|
+
(o) => new S(o.data),
|
|
6557
6567
|
n
|
|
6558
6568
|
);
|
|
6559
6569
|
}
|
|
@@ -6628,12 +6638,12 @@ class Le {
|
|
|
6628
6638
|
* Источник клиентской цены.
|
|
6629
6639
|
*/
|
|
6630
6640
|
t(this, "source");
|
|
6631
|
-
this.client = new te(r == null ? void 0 : r.client), this.product = new L(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ??
|
|
6641
|
+
this.client = new te(r == null ? void 0 : r.client), this.product = new L(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Be.Product;
|
|
6632
6642
|
}
|
|
6633
6643
|
}
|
|
6634
6644
|
const _e = (i) => {
|
|
6635
6645
|
var r, e, s, n, o;
|
|
6636
|
-
return i ?
|
|
6646
|
+
return i ? lr(
|
|
6637
6647
|
{
|
|
6638
6648
|
cities: (r = i.cities) == null ? void 0 : r.map((c) => c.id),
|
|
6639
6649
|
clients: (e = i.clients) == null ? void 0 : e.map((c) => c.id),
|
|
@@ -6642,13 +6652,13 @@ const _e = (i) => {
|
|
|
6642
6652
|
salesDirections: (o = i.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
6643
6653
|
hideNotActive: i.hideNotActive
|
|
6644
6654
|
},
|
|
6645
|
-
(c) => A(c) || (H(c) ||
|
|
6655
|
+
(c) => A(c) || (H(c) || He(c)) && X(c)
|
|
6646
6656
|
) : {};
|
|
6647
|
-
},
|
|
6657
|
+
}, sr = (i) => {
|
|
6648
6658
|
const r = {};
|
|
6649
6659
|
return i.from && (i.from.coefficient || i.from.value) && (r.from = {}, i.from.coefficient && (r.from.priceCoefficientId = i.from.coefficient.id), i.from.value && (r.from.increasePercent = i.from.value)), i.to && (i.to.coefficient || i.to.value) && (r.to = {}, i.to.coefficient && (r.to.priceCoefficientId = i.to.coefficient.id), i.to.value && (r.to.increasePercent = i.to.value)), r;
|
|
6650
6660
|
};
|
|
6651
|
-
class Rs extends
|
|
6661
|
+
class Rs extends h {
|
|
6652
6662
|
/**
|
|
6653
6663
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
6654
6664
|
*
|
|
@@ -6662,7 +6672,7 @@ class Rs extends p {
|
|
|
6662
6672
|
return this.get(
|
|
6663
6673
|
`/internal/price/products/${r}/analyze`,
|
|
6664
6674
|
{
|
|
6665
|
-
...
|
|
6675
|
+
...sr(e),
|
|
6666
6676
|
filters: _e(s)
|
|
6667
6677
|
},
|
|
6668
6678
|
(n) => n.data.map((o) => new Le(o))
|
|
@@ -6681,7 +6691,7 @@ class Rs extends p {
|
|
|
6681
6691
|
return this.get(
|
|
6682
6692
|
`/internal/price/categories/${r}/analyze`,
|
|
6683
6693
|
{
|
|
6684
|
-
...
|
|
6694
|
+
...sr(e),
|
|
6685
6695
|
filters: _e(s)
|
|
6686
6696
|
},
|
|
6687
6697
|
(n) => n.data.map((o) => new Le(o))
|
|
@@ -6774,7 +6784,7 @@ class It extends he {
|
|
|
6774
6784
|
this.history = fe(e.history, (s) => new kt(s));
|
|
6775
6785
|
}
|
|
6776
6786
|
}
|
|
6777
|
-
class Ps extends
|
|
6787
|
+
class Ps extends h {
|
|
6778
6788
|
/**
|
|
6779
6789
|
* Возвращает данные об истории изменения цен.
|
|
6780
6790
|
*
|
|
@@ -6783,22 +6793,22 @@ class Ps extends p {
|
|
|
6783
6793
|
* @see /docs/api#/operations/api_internal_price_history_get
|
|
6784
6794
|
*/
|
|
6785
6795
|
getProductPriceHistory(r) {
|
|
6786
|
-
var o, c, u,
|
|
6787
|
-
const e = k().config.dateFormats.api, s =
|
|
6796
|
+
var o, c, u, p, m;
|
|
6797
|
+
const e = k().config.dateFormats.api, s = lr(
|
|
6788
6798
|
pe(r, {
|
|
6789
6799
|
costDate: {
|
|
6790
6800
|
from: xe((o = r.costDate) == null ? void 0 : o.from) ? I(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
6791
|
-
to: xe((u = r.costDate) == null ? void 0 : u.to) ? I(r.costDate.to, e) : (
|
|
6801
|
+
to: xe((u = r.costDate) == null ? void 0 : u.to) ? I(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
|
|
6792
6802
|
}
|
|
6793
6803
|
}),
|
|
6794
|
-
(f) => A(f) || (H(f) ||
|
|
6804
|
+
(f) => A(f) || (H(f) || He(f)) && X(f)
|
|
6795
6805
|
), n = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
|
|
6796
6806
|
return delete s.product, this.get(`/internal/price/products/${n}/history`, s).then((f) => [
|
|
6797
6807
|
new It(pe(f[0], { history: f }))
|
|
6798
6808
|
]);
|
|
6799
6809
|
}
|
|
6800
6810
|
}
|
|
6801
|
-
class
|
|
6811
|
+
class ir {
|
|
6802
6812
|
/**
|
|
6803
6813
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
6804
6814
|
*
|
|
@@ -6816,7 +6826,7 @@ class sr {
|
|
|
6816
6826
|
r != null && r.products && (this.products = r.products.map((e) => new he(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new he(e)));
|
|
6817
6827
|
}
|
|
6818
6828
|
}
|
|
6819
|
-
class Ds extends
|
|
6829
|
+
class Ds extends h {
|
|
6820
6830
|
/**
|
|
6821
6831
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
6822
6832
|
*
|
|
@@ -6824,7 +6834,7 @@ class Ds extends p {
|
|
|
6824
6834
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
6825
6835
|
*/
|
|
6826
6836
|
getProductCategoryRecommendations(r) {
|
|
6827
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new
|
|
6837
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new ir(e.data));
|
|
6828
6838
|
}
|
|
6829
6839
|
/**
|
|
6830
6840
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -6833,7 +6843,7 @@ class Ds extends p {
|
|
|
6833
6843
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
6834
6844
|
*/
|
|
6835
6845
|
getProductRecommendations(r) {
|
|
6836
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new
|
|
6846
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new ir(e.data));
|
|
6837
6847
|
}
|
|
6838
6848
|
/**
|
|
6839
6849
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -6880,7 +6890,7 @@ class Lt {
|
|
|
6880
6890
|
this.name = r.name, this.content = r.content;
|
|
6881
6891
|
}
|
|
6882
6892
|
}
|
|
6883
|
-
class
|
|
6893
|
+
class nr {
|
|
6884
6894
|
/**
|
|
6885
6895
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
6886
6896
|
*
|
|
@@ -6920,10 +6930,10 @@ class ir {
|
|
|
6920
6930
|
*/
|
|
6921
6931
|
t(this, "tags");
|
|
6922
6932
|
var e;
|
|
6923
|
-
this.resourceType = new
|
|
6933
|
+
this.resourceType = new Ar(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 Lt(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
|
|
6924
6934
|
}
|
|
6925
6935
|
}
|
|
6926
|
-
class As extends
|
|
6936
|
+
class As extends h {
|
|
6927
6937
|
/**
|
|
6928
6938
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
6929
6939
|
*
|
|
@@ -6931,7 +6941,7 @@ class As extends p {
|
|
|
6931
6941
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
6932
6942
|
*/
|
|
6933
6943
|
getResourceSeoData(r, e) {
|
|
6934
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new
|
|
6944
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new nr(s.data));
|
|
6935
6945
|
}
|
|
6936
6946
|
/**
|
|
6937
6947
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -6942,7 +6952,7 @@ class As extends p {
|
|
|
6942
6952
|
* в случае ошибок в запросах.
|
|
6943
6953
|
*/
|
|
6944
6954
|
saveResourceSeoData(r, e = {}) {
|
|
6945
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new
|
|
6955
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new nr(s.data), e);
|
|
6946
6956
|
}
|
|
6947
6957
|
/**
|
|
6948
6958
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -6954,7 +6964,7 @@ class As extends p {
|
|
|
6954
6964
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
6955
6965
|
}
|
|
6956
6966
|
}
|
|
6957
|
-
class $s extends
|
|
6967
|
+
class $s extends h {
|
|
6958
6968
|
/**
|
|
6959
6969
|
* Возвращает подсказки по адресам.
|
|
6960
6970
|
*
|
|
@@ -7002,7 +7012,7 @@ class $s extends p {
|
|
|
7002
7012
|
}
|
|
7003
7013
|
}
|
|
7004
7014
|
var _t = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))(_t || {});
|
|
7005
|
-
class xt extends
|
|
7015
|
+
class xt extends ar {
|
|
7006
7016
|
/**
|
|
7007
7017
|
* Инициализирует экземпляр класса {@link User}.
|
|
7008
7018
|
*
|
|
@@ -7022,10 +7032,14 @@ class xt extends vr {
|
|
|
7022
7032
|
* URI путь к фотографии пользователя.
|
|
7023
7033
|
*/
|
|
7024
7034
|
t(this, "photo");
|
|
7025
|
-
|
|
7035
|
+
/**
|
|
7036
|
+
* Роль ценообразования текущего пользователя.
|
|
7037
|
+
*/
|
|
7038
|
+
t(this, "pricingRole");
|
|
7039
|
+
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, this.pricingRole = e != null && e.pricingRole ? new wr(e.pricingRole) : void 0;
|
|
7026
7040
|
}
|
|
7027
7041
|
}
|
|
7028
|
-
class Ts extends
|
|
7042
|
+
class Ts extends h {
|
|
7029
7043
|
/**
|
|
7030
7044
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
7031
7045
|
*/
|
|
@@ -7041,7 +7055,7 @@ class Ts extends p {
|
|
|
7041
7055
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
7042
7056
|
}
|
|
7043
7057
|
}
|
|
7044
|
-
class Ot extends
|
|
7058
|
+
class Ot extends h {
|
|
7045
7059
|
/**
|
|
7046
7060
|
* Возвращает данные о текущем пользователе.
|
|
7047
7061
|
*/
|
|
@@ -7068,14 +7082,14 @@ const qt = W("common.user_state_private", () => {
|
|
|
7068
7082
|
*/
|
|
7069
7083
|
currentUser: P(() => {
|
|
7070
7084
|
const r = qt();
|
|
7071
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0,
|
|
7085
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Ot).getCurrentUser().then((e) => {
|
|
7072
7086
|
r.currentUser = e;
|
|
7073
7087
|
}).catch(v).finally(() => {
|
|
7074
7088
|
r.dataLoaderList.currentUser = !1;
|
|
7075
7089
|
})), r.currentUser;
|
|
7076
7090
|
})
|
|
7077
7091
|
}));
|
|
7078
|
-
class
|
|
7092
|
+
class ds {
|
|
7079
7093
|
/**
|
|
7080
7094
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
7081
7095
|
*
|
|
@@ -7100,20 +7114,20 @@ class Ss {
|
|
|
7100
7114
|
}
|
|
7101
7115
|
export {
|
|
7102
7116
|
mt as AnyReference,
|
|
7103
|
-
|
|
7117
|
+
st as AppBaseConfig,
|
|
7104
7118
|
Ne as BankAccount,
|
|
7105
7119
|
Ae as BasePaginationProvider,
|
|
7106
|
-
|
|
7120
|
+
ut as CalculationTypeEnum,
|
|
7107
7121
|
ne as Cart,
|
|
7108
7122
|
Jt as CartProvider,
|
|
7109
7123
|
Vt as CatalogProvider,
|
|
7110
7124
|
hr as CatalogableItem,
|
|
7111
7125
|
N as Category,
|
|
7112
|
-
|
|
7113
|
-
|
|
7126
|
+
Xe as CategoryPricingRule,
|
|
7127
|
+
Rr as ChannelPrimaryInterest,
|
|
7114
7128
|
ns as City,
|
|
7115
7129
|
De as CityWithRegionAndCountry,
|
|
7116
|
-
|
|
7130
|
+
tr as Client,
|
|
7117
7131
|
Rt as ClientAdditionalData,
|
|
7118
7132
|
Ce as ClientCategory,
|
|
7119
7133
|
x as ClientDataProvider,
|
|
@@ -7134,16 +7148,16 @@ export {
|
|
|
7134
7148
|
Ct as ContactPersonRelated,
|
|
7135
7149
|
ft as ContactPosition,
|
|
7136
7150
|
Ie as ContactRelation,
|
|
7137
|
-
|
|
7151
|
+
Tr as ContragentBase,
|
|
7138
7152
|
Re as ContragentFactory,
|
|
7139
|
-
|
|
7153
|
+
br as ContragentIc,
|
|
7140
7154
|
vt as ContragentPerson,
|
|
7141
7155
|
at as ContragentUlNr,
|
|
7142
|
-
|
|
7143
|
-
|
|
7156
|
+
dr as ContragentUlR,
|
|
7157
|
+
Be as CostSourceEnum,
|
|
7144
7158
|
Z as Country,
|
|
7145
|
-
|
|
7146
|
-
|
|
7159
|
+
We as CuratedDirection,
|
|
7160
|
+
Je as Curator,
|
|
7147
7161
|
O as Currency,
|
|
7148
7162
|
$s as DataSuggestionProvider,
|
|
7149
7163
|
ls as DataTablePagination,
|
|
@@ -7154,46 +7168,46 @@ export {
|
|
|
7154
7168
|
ue as DeliveryAddress,
|
|
7155
7169
|
F as DeliveryType,
|
|
7156
7170
|
zt as DetailedJwtPayload,
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7171
|
+
Zr as DeviceTypeResolutionConfig,
|
|
7172
|
+
ot as DiscountShortInfo,
|
|
7173
|
+
ds as FieldValidationResultData,
|
|
7160
7174
|
G as FilterGroup,
|
|
7161
|
-
|
|
7162
|
-
|
|
7175
|
+
Ze as FilterItem,
|
|
7176
|
+
Ee as FilterOpEnum,
|
|
7163
7177
|
mr as GeoCoordinates,
|
|
7164
|
-
|
|
7178
|
+
nt as HiddenCatalogableItem,
|
|
7165
7179
|
me as HttpCachedRequester,
|
|
7166
|
-
|
|
7167
|
-
|
|
7180
|
+
et as HttpParamsConfig,
|
|
7181
|
+
h as HttpRequester,
|
|
7168
7182
|
re as Identity,
|
|
7169
|
-
|
|
7183
|
+
it as Image,
|
|
7170
7184
|
M as JwtPayload,
|
|
7171
7185
|
ve as Manager,
|
|
7172
|
-
|
|
7186
|
+
ze as ManagerCommon,
|
|
7173
7187
|
ys as ManagerDataFactory,
|
|
7174
7188
|
At as ManagerDataProvider,
|
|
7175
7189
|
Lt as MetaTagItem,
|
|
7176
|
-
|
|
7177
|
-
|
|
7190
|
+
d as NamedIdentity,
|
|
7191
|
+
Pr as Operator,
|
|
7178
7192
|
B as Opf,
|
|
7179
7193
|
U as OpfEnum,
|
|
7180
|
-
|
|
7194
|
+
S as Order,
|
|
7181
7195
|
$t as OrderAction,
|
|
7182
7196
|
ws as OrderEditorData,
|
|
7183
|
-
|
|
7184
|
-
|
|
7197
|
+
Lr as OrderInfo,
|
|
7198
|
+
dt as OrderItem,
|
|
7185
7199
|
fr as OrderItemBase,
|
|
7186
7200
|
yt as OrderPaymentStatus,
|
|
7187
|
-
|
|
7201
|
+
kr as OrderShortInfo,
|
|
7188
7202
|
$e as OrderStatus,
|
|
7189
7203
|
bt as OrderStatusDetailEnum,
|
|
7190
7204
|
Tt as OrderStatusEnum,
|
|
7191
|
-
|
|
7205
|
+
St as OrderStatusHistoryInfo,
|
|
7192
7206
|
Cs as OrdersDataProvider,
|
|
7193
7207
|
as as OrdersListFilters,
|
|
7194
7208
|
Sr as PaginationFiltersBase,
|
|
7195
7209
|
ee as PartnerGroup,
|
|
7196
|
-
|
|
7210
|
+
Dr as PaymentType,
|
|
7197
7211
|
ae as PreferencesStorageProvider,
|
|
7198
7212
|
Le as PriceAnalyze,
|
|
7199
7213
|
Rs as PriceAnalyzeProvider,
|
|
@@ -7202,9 +7216,9 @@ export {
|
|
|
7202
7216
|
Ps as PriceHistoryDataProvider,
|
|
7203
7217
|
kt as PriceHistoryItem,
|
|
7204
7218
|
Q as PriceTemplate,
|
|
7205
|
-
|
|
7219
|
+
Se as PriceTemplateCategory,
|
|
7206
7220
|
oe as PriceTemplateClient,
|
|
7207
|
-
|
|
7221
|
+
vr as PriceTemplateICatalogableItem,
|
|
7208
7222
|
ke as PriceTemplateProduct,
|
|
7209
7223
|
rs as PriceTemplateProvider,
|
|
7210
7224
|
le as PricingRole,
|
|
@@ -7214,47 +7228,47 @@ export {
|
|
|
7214
7228
|
Yt as ProductCategoryDataProvider,
|
|
7215
7229
|
Xt as ProductDataProvider,
|
|
7216
7230
|
wt as ProductFileType,
|
|
7217
|
-
|
|
7231
|
+
Ge as ProductPriceCoefficient,
|
|
7218
7232
|
It as ProductPriceHistory,
|
|
7219
|
-
|
|
7233
|
+
Ye as ProductUnit,
|
|
7220
7234
|
ss as PropertiesProvider,
|
|
7221
7235
|
ce as Property,
|
|
7222
|
-
|
|
7223
|
-
|
|
7236
|
+
Cr as PropertyType,
|
|
7237
|
+
pt as PropertyTypeEnum,
|
|
7224
7238
|
K as PropertyValue,
|
|
7225
7239
|
Ds as RecommendationsDataProvider,
|
|
7226
|
-
|
|
7240
|
+
ir as RecommendationsList,
|
|
7227
7241
|
w as Reference,
|
|
7228
7242
|
os as ReferenceDataFactory,
|
|
7229
7243
|
T as ReferenceDataProvider,
|
|
7230
7244
|
ge as Region,
|
|
7231
|
-
|
|
7245
|
+
Ar as ResourceType,
|
|
7232
7246
|
q as SalesDirection,
|
|
7233
|
-
|
|
7234
|
-
|
|
7247
|
+
rt as SentryConfig,
|
|
7248
|
+
nr as Seo,
|
|
7235
7249
|
As as SeoDataProvider,
|
|
7236
|
-
|
|
7237
|
-
|
|
7250
|
+
$r as SourcePrimaryInterest,
|
|
7251
|
+
ct as StockCount,
|
|
7238
7252
|
is as TemplateProductCategoryDataProvider,
|
|
7239
7253
|
Et as TemplatesListFilters,
|
|
7240
|
-
|
|
7241
|
-
|
|
7254
|
+
je as TypedInstanceFactory,
|
|
7255
|
+
Ir as UnitsHelper,
|
|
7242
7256
|
ps as UnknownClientDataProvider,
|
|
7243
7257
|
ur as UpdatableNamedIdentity,
|
|
7244
7258
|
xt as User,
|
|
7245
7259
|
Ts as UserAuthDataProvider,
|
|
7246
|
-
|
|
7260
|
+
ar as UserCommonInfo,
|
|
7247
7261
|
Ot as UserDataProvider,
|
|
7248
|
-
|
|
7262
|
+
wr as UserPricingRole,
|
|
7249
7263
|
_ as UserShortInfo,
|
|
7250
7264
|
_t as UserTypeEnum,
|
|
7251
7265
|
hs as VersionConfig,
|
|
7252
7266
|
ye as Warehouse,
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7267
|
+
tt as WebSocketConfig,
|
|
7268
|
+
er as findCatalogItemByIdRecursive,
|
|
7269
|
+
rr as flattenCatalogItems,
|
|
7256
7270
|
fs as pluralize,
|
|
7257
|
-
|
|
7271
|
+
de as useAuthStateStore,
|
|
7258
7272
|
k as useBaseConfigStateStore,
|
|
7259
7273
|
vs as useReferencesStore,
|
|
7260
7274
|
bs as useUserStateStore
|