@snabcentr/common-lib 2.11.0 → 2.13.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 +2 -4
- package/dist/sc-common-lib.js +502 -447
- 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/orders/interfaces/i-order-print-options.d.ts +34 -0
- package/dist/src/orders/interfaces/i-order-print-options.d.ts.map +1 -0
- package/dist/src/orders/interfaces/i-order-print-send-data.d.ts +16 -0
- package/dist/src/orders/interfaces/i-order-print-send-data.d.ts.map +1 -0
- package/dist/src/orders/interfaces/index.d.ts +2 -0
- package/dist/src/orders/interfaces/index.d.ts.map +1 -1
- package/dist/src/orders/providers/orders-data-provider.d.ts +29 -0
- package/dist/src/orders/providers/orders-data-provider.d.ts.map +1 -1
- package/dist/src/references/classes/index.d.ts +1 -0
- package/dist/src/references/classes/index.d.ts.map +1 -1
- package/dist/src/references/classes/order-status-detail.d.ts +9 -0
- package/dist/src/references/classes/order-status-detail.d.ts.map +1 -0
- package/dist/src/references/enums/order-status-detail-enum.d.ts +16 -0
- package/dist/src/references/enums/order-status-detail-enum.d.ts.map +1 -1
- package/dist/src/references/interfaces/i-order-status-detail.d.ts +8 -0
- package/dist/src/references/interfaces/i-order-status-detail.d.ts.map +1 -0
- package/dist/src/references/interfaces/index.d.ts +1 -0
- package/dist/src/references/interfaces/index.d.ts.map +1 -1
- package/dist/src/references/providers/reference-data-provider.d.ts +5 -0
- package/dist/src/references/providers/reference-data-provider.d.ts.map +1 -1
- package/dist/src/references/states/references-state-store.d.ts +14 -1
- package/dist/src/references/states/references-state-store.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 s = (n, r, e) =>
|
|
4
|
-
import { jwtDecode as
|
|
5
|
-
import { merge as he, isNil as $, isEmpty as re, noop as v, mapValues as
|
|
6
|
-
import { objectToCamel as je, objectToSnake as
|
|
1
|
+
var Nr = Object.defineProperty;
|
|
2
|
+
var Ur = (n, r, e) => r in n ? Nr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var s = (n, r, e) => Ur(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jwtDecode as ur } from "jwt-decode";
|
|
5
|
+
import { merge as he, isNil as $, isEmpty as re, noop as v, mapValues as pr, isArray as H, every as Fr, split as Hr, isString as a, constant as Mr, toUpper as Br, cloneDeep as jr, toLower as Gr, isFunction as Me, map as ye, forEach as zr, isDate as qe, isObject as Be, omitBy as hr } from "lodash-es";
|
|
6
|
+
import { objectToCamel as je, objectToSnake as Ye } 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 Wr, computed as R } from "vue";
|
|
9
|
+
import { isAfter as Xe, parseISO as C, startOfToday as Ne, format as L, addBusinessDays as Jr, endOfTomorrow as Vr, startOfTomorrow as Er, endOfYesterday as Kr, startOfYesterday as Qr, endOfToday as Yr, endOfDay as Xr, startOfDay as Zr, addSeconds as et } from "date-fns";
|
|
10
|
+
import rt, { CanceledError as tt } from "axios";
|
|
11
11
|
class M {
|
|
12
12
|
/**
|
|
13
13
|
* Инициализирует экземпляр класса {@link JwtPayload}.
|
|
@@ -107,11 +107,11 @@ class M {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
const e =
|
|
110
|
+
const e = ur(r), t = new M(je(e));
|
|
111
111
|
return t.resourceAccess = e.resource_access, t;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class Et extends M {
|
|
115
115
|
/**
|
|
116
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
117
117
|
*
|
|
@@ -151,10 +151,10 @@ class Jt extends M {
|
|
|
151
151
|
* @param jwtToken JWT-ключ доступа.
|
|
152
152
|
*/
|
|
153
153
|
static getJwtPayload(e) {
|
|
154
|
-
return new M(je(
|
|
154
|
+
return new M(je(ur(e)));
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
class
|
|
157
|
+
class st {
|
|
158
158
|
/**
|
|
159
159
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
160
160
|
*
|
|
@@ -176,7 +176,7 @@ class tt {
|
|
|
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 it {
|
|
180
180
|
/**
|
|
181
181
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
182
182
|
*
|
|
@@ -198,7 +198,7 @@ class st {
|
|
|
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 nt {
|
|
202
202
|
/**
|
|
203
203
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
204
204
|
*
|
|
@@ -243,7 +243,7 @@ class it {
|
|
|
243
243
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
class
|
|
246
|
+
class ot {
|
|
247
247
|
/**
|
|
248
248
|
* Инициализирует экземпляр класса {@link WebSocketConfig}.
|
|
249
249
|
*
|
|
@@ -282,7 +282,7 @@ class nt {
|
|
|
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 ct {
|
|
286
286
|
/**
|
|
287
287
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
288
288
|
*
|
|
@@ -326,10 +326,10 @@ class ot {
|
|
|
326
326
|
*/
|
|
327
327
|
s(this, "dateFormats");
|
|
328
328
|
var e, t, i;
|
|
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 it(r == null ? void 0 : r.http), this.deviceTypeByResolution = new st(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new nt({
|
|
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 ot(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: ((t = r == null ? void 0 : r.dateFormats) == null ? void 0 : t.uiDate) ?? "dd.MM.yyyy",
|
|
335
335
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
@@ -337,7 +337,7 @@ class ot {
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
const k = W("common.config", () => {
|
|
340
|
-
const n = y(new
|
|
340
|
+
const n = y(new ct());
|
|
341
341
|
return {
|
|
342
342
|
/**
|
|
343
343
|
* Конфигурационные данные приложения.
|
|
@@ -378,7 +378,7 @@ class Pe {
|
|
|
378
378
|
if (e)
|
|
379
379
|
try {
|
|
380
380
|
const t = JSON.parse(e);
|
|
381
|
-
if (!t.availableFor ||
|
|
381
|
+
if (!t.availableFor || Xe(C(t.availableFor) || Ne(), /* @__PURE__ */ new Date())) {
|
|
382
382
|
if ($(t.data) || re(t.data))
|
|
383
383
|
throw new Error("Data is empty");
|
|
384
384
|
return t.data;
|
|
@@ -452,7 +452,7 @@ class Pe {
|
|
|
452
452
|
const i = localStorage.getItem(t);
|
|
453
453
|
if (i) {
|
|
454
454
|
const o = JSON.parse(i);
|
|
455
|
-
o.availableFor && !
|
|
455
|
+
o.availableFor && !Xe(C(o.availableFor) || Ne(), /* @__PURE__ */ new Date()) && r.push(t);
|
|
456
456
|
}
|
|
457
457
|
} catch {
|
|
458
458
|
r.push(t);
|
|
@@ -468,7 +468,7 @@ class Pe {
|
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Ze(n) {
|
|
472
472
|
try {
|
|
473
473
|
const r = M.getJwtPayload(n);
|
|
474
474
|
return new Date(r.exp * 1e3);
|
|
@@ -489,11 +489,11 @@ const Q = 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), t =
|
|
492
|
+
), r = y(void 0), e = y(void 0), t = Wr(/* @__PURE__ */ new Map());
|
|
493
493
|
function i() {
|
|
494
494
|
e.value = void 0, $(n.value) || n.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() ? pr(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 Q = W("common.auth_state_private", () => {
|
|
|
518
518
|
*/
|
|
519
519
|
recalculateUserPermissions: i
|
|
520
520
|
};
|
|
521
|
-
}),
|
|
521
|
+
}), ke = W("common.auth_state", () => {
|
|
522
522
|
const n = R(() => {
|
|
523
523
|
const o = Q();
|
|
524
524
|
if ($(o.jwtToken) && !$(o.jwtTokenUpdater)) {
|
|
525
525
|
const c = o.jwtTokenUpdater();
|
|
526
526
|
o.jwtToken = c, c.then((u) => {
|
|
527
|
-
o.jwtToken = Promise.resolve(u), Pe.saveActualDataToStorage("sc.token", u,
|
|
527
|
+
o.jwtToken = Promise.resolve(u), Pe.saveActualDataToStorage("sc.token", u, Ze(u)), o.recalculateUserPermissions();
|
|
528
528
|
}).catch(v);
|
|
529
529
|
}
|
|
530
530
|
return o.jwtToken;
|
|
@@ -534,7 +534,7 @@ const Q = W("common.auth_state_private", () => {
|
|
|
534
534
|
}
|
|
535
535
|
function e(o) {
|
|
536
536
|
const c = Q();
|
|
537
|
-
c.jwtToken = Promise.resolve(o), Pe.saveActualDataToStorage("sc.token", o,
|
|
537
|
+
c.jwtToken = Promise.resolve(o), Pe.saveActualDataToStorage("sc.token", o, Ze(o)), c.recalculateUserPermissions();
|
|
538
538
|
}
|
|
539
539
|
function t() {
|
|
540
540
|
const o = Q();
|
|
@@ -544,7 +544,7 @@ const Q = W("common.auth_state_private", () => {
|
|
|
544
544
|
const c = Q();
|
|
545
545
|
!$(c.jwtToken) && $(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() ? pr(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))
|
|
@@ -552,13 +552,13 @@ const Q = W("common.auth_state_private", () => {
|
|
|
552
552
|
const p = R(() => {
|
|
553
553
|
const m = (f) => {
|
|
554
554
|
var K;
|
|
555
|
-
const D =
|
|
555
|
+
const D = Hr(f, ".");
|
|
556
556
|
if (D.length < 2)
|
|
557
557
|
return !1;
|
|
558
|
-
const [ie, ne] = D,
|
|
559
|
-
return H(
|
|
558
|
+
const [ie, ne] = D, E = (K = Q().userPermissions) == null ? void 0 : K[ie];
|
|
559
|
+
return H(E) && E.includes(ne);
|
|
560
560
|
};
|
|
561
|
-
return H(o) ?
|
|
561
|
+
return H(o) ? Fr(o, (f) => m(f)) : m(o);
|
|
562
562
|
});
|
|
563
563
|
return c.userPermissionsComputedRefs.set(u, p), p;
|
|
564
564
|
}
|
|
@@ -631,7 +631,7 @@ class S extends J {
|
|
|
631
631
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
class
|
|
634
|
+
class I extends S {
|
|
635
635
|
/**
|
|
636
636
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
637
637
|
*
|
|
@@ -646,7 +646,7 @@ class _ extends S {
|
|
|
646
646
|
this.type = e == null ? void 0 : e.type;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
class
|
|
649
|
+
class lt extends S {
|
|
650
650
|
/**
|
|
651
651
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
652
652
|
*
|
|
@@ -682,10 +682,10 @@ class ct extends S {
|
|
|
682
682
|
* Дата и время удаления.
|
|
683
683
|
*/
|
|
684
684
|
s(this, "deletedAt");
|
|
685
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = a(e == null ? void 0 : e.publishedAt) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new
|
|
685
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = a(e == null ? void 0 : e.publishedAt) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new I(e == null ? void 0 : e.owner), this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
|
-
class
|
|
688
|
+
class gr extends S {
|
|
689
689
|
/**
|
|
690
690
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
691
691
|
*
|
|
@@ -700,7 +700,7 @@ class hr extends S {
|
|
|
700
700
|
this.updatedAt = a(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
class Z extends
|
|
703
|
+
class Z extends gr {
|
|
704
704
|
/**
|
|
705
705
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
706
706
|
*
|
|
@@ -719,7 +719,7 @@ class Z extends hr {
|
|
|
719
719
|
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
|
-
var
|
|
722
|
+
var mr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(mr || {});
|
|
723
723
|
class w extends S {
|
|
724
724
|
/**
|
|
725
725
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
@@ -739,12 +739,12 @@ class w extends S {
|
|
|
739
739
|
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
|
-
class
|
|
742
|
+
class de extends w {
|
|
743
743
|
/**
|
|
744
744
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
745
745
|
*/
|
|
746
746
|
static getRetailPriceCoefficient() {
|
|
747
|
-
return { id: -2, slug:
|
|
747
|
+
return { id: -2, slug: mr.Retail, name: "Розн. цена", guid: "", isNewRec: Mr(!0) };
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
class Ge {
|
|
@@ -774,10 +774,10 @@ class Ge {
|
|
|
774
774
|
* Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
|
|
775
775
|
*/
|
|
776
776
|
s(this, "readOnly");
|
|
777
|
-
this.coefficient = new
|
|
777
|
+
this.coefficient = new de(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
|
-
class
|
|
780
|
+
class fr {
|
|
781
781
|
/**
|
|
782
782
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
783
783
|
*
|
|
@@ -826,10 +826,10 @@ class we extends w {
|
|
|
826
826
|
* Координаты склада.
|
|
827
827
|
*/
|
|
828
828
|
s(this, "coordinates");
|
|
829
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new F(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new
|
|
829
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new F(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new fr(e == null ? void 0 : e.coordinates);
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
|
-
class
|
|
832
|
+
class ut {
|
|
833
833
|
/**
|
|
834
834
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
835
835
|
*
|
|
@@ -874,7 +874,7 @@ class x extends S {
|
|
|
874
874
|
e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
|
-
class
|
|
877
|
+
class er extends S {
|
|
878
878
|
/**
|
|
879
879
|
* Инициализирует экземпляр класса {@link ProductUnit}.
|
|
880
880
|
*
|
|
@@ -916,7 +916,7 @@ class ge extends S {
|
|
|
916
916
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
|
-
class
|
|
919
|
+
class yr extends ge {
|
|
920
920
|
/**
|
|
921
921
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
922
922
|
*
|
|
@@ -935,7 +935,7 @@ class fr extends ge {
|
|
|
935
935
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
|
-
class
|
|
938
|
+
class pt extends yr {
|
|
939
939
|
/**
|
|
940
940
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
941
941
|
*
|
|
@@ -950,7 +950,7 @@ class ut extends fr {
|
|
|
950
950
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
|
-
class
|
|
953
|
+
class ht {
|
|
954
954
|
/**
|
|
955
955
|
* Инициализирует экземпляр класса {@link Image}.
|
|
956
956
|
*
|
|
@@ -973,7 +973,7 @@ class pt {
|
|
|
973
973
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
|
-
class
|
|
976
|
+
class Ue extends yr {
|
|
977
977
|
/**
|
|
978
978
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
979
979
|
*
|
|
@@ -988,7 +988,7 @@ class Ne extends fr {
|
|
|
988
988
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
|
-
class
|
|
991
|
+
class _ extends pt {
|
|
992
992
|
/**
|
|
993
993
|
* Инициализирует экземпляр класса {@link Product}.
|
|
994
994
|
*
|
|
@@ -1065,9 +1065,9 @@ class I extends ut {
|
|
|
1065
1065
|
* Список коэффициентов цен на продукт.
|
|
1066
1066
|
*/
|
|
1067
1067
|
s(this, "priceCoefficients");
|
|
1068
|
-
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new
|
|
1068
|
+
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new er(e.unit) : new er(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new x(e.currency) : new x(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = a(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new ut(p))) ?? [], this.type = "product";
|
|
1069
1069
|
const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
|
|
1070
|
-
t && (this.category = new
|
|
1070
|
+
t && (this.category = new Ue({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Ue(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new ht(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);
|
|
1071
1071
|
}
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -1088,8 +1088,8 @@ class I extends ut {
|
|
|
1088
1088
|
return this.retailCostRub ?? this.costRub;
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
|
-
var
|
|
1092
|
-
class
|
|
1091
|
+
var ze = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(ze || {});
|
|
1092
|
+
class B extends _ {
|
|
1093
1093
|
/**
|
|
1094
1094
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1095
1095
|
*
|
|
@@ -1125,10 +1125,10 @@ class j extends I {
|
|
|
1125
1125
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1126
1126
|
*/
|
|
1127
1127
|
s(this, "isFavorite");
|
|
1128
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ??
|
|
1128
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? ze.Product, this.discount = e != null && e.discount ? new lt(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Z(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
|
-
class ve extends
|
|
1131
|
+
class ve extends Ue {
|
|
1132
1132
|
/**
|
|
1133
1133
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
1134
1134
|
*
|
|
@@ -1152,10 +1152,10 @@ class ve extends Ne {
|
|
|
1152
1152
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
1153
1153
|
*/
|
|
1154
1154
|
s(this, "currencyRates");
|
|
1155
|
-
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(([t, i]) => [
|
|
1155
|
+
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(([t, i]) => [Br(t), i])) : void 0;
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
|
-
class
|
|
1158
|
+
class wr extends J {
|
|
1159
1159
|
/**
|
|
1160
1160
|
* Инициализирует экземпляр класса {@link OrderItemBase}.
|
|
1161
1161
|
*
|
|
@@ -1231,10 +1231,10 @@ class yr extends J {
|
|
|
1231
1231
|
* @inheritDoc
|
|
1232
1232
|
*/
|
|
1233
1233
|
s(this, "replacementId");
|
|
1234
|
-
this.product = new
|
|
1234
|
+
this.product = new B(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ve(), this.currency = e.currency ? new x(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && jr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new I(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
|
-
let
|
|
1237
|
+
let vr = class extends wr {
|
|
1238
1238
|
/**
|
|
1239
1239
|
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
1240
1240
|
*
|
|
@@ -1300,10 +1300,10 @@ class oe {
|
|
|
1300
1300
|
* @inheritDoc
|
|
1301
1301
|
*/
|
|
1302
1302
|
s(this, "directionsSum");
|
|
1303
|
-
this.items = r.items.map((e) => new
|
|
1303
|
+
this.items = r.items.map((e) => new vr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
|
-
class
|
|
1306
|
+
class We {
|
|
1307
1307
|
/**
|
|
1308
1308
|
* Инициализирует экземпляр указанного класса.
|
|
1309
1309
|
*
|
|
@@ -1361,7 +1361,7 @@ const P = class P {
|
|
|
1361
1361
|
// eslint-disable-next-line class-methods-use-this
|
|
1362
1362
|
s(this, "authRequestInterceptor", async (r) => {
|
|
1363
1363
|
let e;
|
|
1364
|
-
return $(
|
|
1364
|
+
return $(ke().jwtToken) || (e = await ke().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
|
|
1365
1365
|
});
|
|
1366
1366
|
/**
|
|
1367
1367
|
* Перехватчик запроса для вызова пользовательских хуков.
|
|
@@ -1376,7 +1376,7 @@ const P = class P {
|
|
|
1376
1376
|
* @param request Данные запроса.
|
|
1377
1377
|
*/
|
|
1378
1378
|
// eslint-disable-next-line class-methods-use-this
|
|
1379
|
-
s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params =
|
|
1379
|
+
s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ye(r.params)), ["put", "patch", "post"].includes(Gr(r.method)) && r.data && (r.data = Ye(r.data))), r));
|
|
1380
1380
|
/**
|
|
1381
1381
|
* Перехватчик ошибок ответов на запрос.
|
|
1382
1382
|
*
|
|
@@ -1385,7 +1385,7 @@ const P = class P {
|
|
|
1385
1385
|
s(this, "authErrorsResponseInterceptors", (r) => {
|
|
1386
1386
|
var t;
|
|
1387
1387
|
const e = r.rawError ? (t = r.rawError) == null ? void 0 : t.config : void 0;
|
|
1388
|
-
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (
|
|
1388
|
+
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (ke().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
|
|
1389
1389
|
});
|
|
1390
1390
|
/**
|
|
1391
1391
|
* Перехватчик ответа для приведения отмены запроса (AbortController) к единому виду.
|
|
@@ -1396,7 +1396,7 @@ const P = class P {
|
|
|
1396
1396
|
s(this, "canceledResponseInterceptor", (r) => {
|
|
1397
1397
|
const e = r.rawError ?? r;
|
|
1398
1398
|
if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
|
|
1399
|
-
throw new
|
|
1399
|
+
throw new tt("Request canceled");
|
|
1400
1400
|
return Promise.reject(r);
|
|
1401
1401
|
});
|
|
1402
1402
|
/**
|
|
@@ -1413,7 +1413,7 @@ const P = class P {
|
|
|
1413
1413
|
*/
|
|
1414
1414
|
// eslint-disable-next-line class-methods-use-this
|
|
1415
1415
|
s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = je(r.data)), r));
|
|
1416
|
-
this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient =
|
|
1416
|
+
this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = rt.create({
|
|
1417
1417
|
headers: {
|
|
1418
1418
|
Accept: "application/json",
|
|
1419
1419
|
"Content-Type": "application/json"
|
|
@@ -1477,7 +1477,7 @@ const P = class P {
|
|
|
1477
1477
|
* @param type Тип данных, которыми оперирует метод.
|
|
1478
1478
|
*/
|
|
1479
1479
|
static getInstance(r) {
|
|
1480
|
-
return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] =
|
|
1480
|
+
return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = We.simpleInstanceInitializer(r)), P.instances[r.name];
|
|
1481
1481
|
}
|
|
1482
1482
|
/**
|
|
1483
1483
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -1591,7 +1591,7 @@ s(P, "requestHooks", []), /**
|
|
|
1591
1591
|
*/
|
|
1592
1592
|
s(P, "responseHooks", []);
|
|
1593
1593
|
let h = P;
|
|
1594
|
-
class
|
|
1594
|
+
class Qt extends h {
|
|
1595
1595
|
/**
|
|
1596
1596
|
* Возвращает содержимое корзины указанного клиента.
|
|
1597
1597
|
*
|
|
@@ -1705,7 +1705,7 @@ class Vt extends h {
|
|
|
1705
1705
|
return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
|
-
var
|
|
1708
|
+
var gt = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(gt || {}), mt = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(mt || {});
|
|
1709
1709
|
class N extends ve {
|
|
1710
1710
|
/**
|
|
1711
1711
|
* Инициализирует экземпляр класса {@link Category}.
|
|
@@ -1723,10 +1723,10 @@ class N extends ve {
|
|
|
1723
1723
|
* Список продуктов категории.
|
|
1724
1724
|
*/
|
|
1725
1725
|
s(this, "products");
|
|
1726
|
-
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new N(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new
|
|
1726
|
+
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new N(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new _(o));
|
|
1727
1727
|
}
|
|
1728
1728
|
}
|
|
1729
|
-
class
|
|
1729
|
+
class ar {
|
|
1730
1730
|
/**
|
|
1731
1731
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1732
1732
|
*
|
|
@@ -1746,7 +1746,7 @@ class vr {
|
|
|
1746
1746
|
}
|
|
1747
1747
|
class q extends w {
|
|
1748
1748
|
}
|
|
1749
|
-
class
|
|
1749
|
+
class Je extends S {
|
|
1750
1750
|
/**
|
|
1751
1751
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1752
1752
|
*
|
|
@@ -1774,12 +1774,12 @@ class We extends S {
|
|
|
1774
1774
|
* @inheritDoc
|
|
1775
1775
|
*/
|
|
1776
1776
|
s(this, "isRegionalDirector");
|
|
1777
|
-
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
|
|
1777
|
+
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 ar(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
|
-
class
|
|
1780
|
+
class Ve extends w {
|
|
1781
1781
|
}
|
|
1782
|
-
class
|
|
1782
|
+
class Cr extends S {
|
|
1783
1783
|
/**
|
|
1784
1784
|
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
1785
1785
|
*
|
|
@@ -1802,7 +1802,7 @@ class ar extends S {
|
|
|
1802
1802
|
this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
|
-
class ae extends
|
|
1805
|
+
class ae extends Je {
|
|
1806
1806
|
/**
|
|
1807
1807
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1808
1808
|
*
|
|
@@ -1839,10 +1839,10 @@ class ae extends We {
|
|
|
1839
1839
|
* Список направлений кураторства.
|
|
1840
1840
|
*/
|
|
1841
1841
|
s(this, "curatedDirections");
|
|
1842
|
-
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
|
|
1842
|
+
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 Cr(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((i) => new Ve(i))) ?? [];
|
|
1843
1843
|
}
|
|
1844
1844
|
}
|
|
1845
|
-
class
|
|
1845
|
+
class ft extends ve {
|
|
1846
1846
|
/**
|
|
1847
1847
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1848
1848
|
*
|
|
@@ -1873,7 +1873,7 @@ class mt extends ve {
|
|
|
1873
1873
|
this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new ae(e.manager) : void 0;
|
|
1874
1874
|
}
|
|
1875
1875
|
}
|
|
1876
|
-
class Re extends
|
|
1876
|
+
class Re extends ft {
|
|
1877
1877
|
/**
|
|
1878
1878
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1879
1879
|
*
|
|
@@ -1890,10 +1890,10 @@ class Re extends mt {
|
|
|
1890
1890
|
* Список продуктов категории.
|
|
1891
1891
|
*/
|
|
1892
1892
|
s(this, "products");
|
|
1893
|
-
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Re(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new
|
|
1893
|
+
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Re(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new B(o));
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
1896
|
-
class
|
|
1896
|
+
class Pr {
|
|
1897
1897
|
/**
|
|
1898
1898
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
1899
1899
|
*
|
|
@@ -1908,10 +1908,10 @@ class Cr {
|
|
|
1908
1908
|
* Процент, который прибавляется к значению выбранного коэффициента.
|
|
1909
1909
|
*/
|
|
1910
1910
|
s(this, "increasePercent");
|
|
1911
|
-
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new
|
|
1911
|
+
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new de(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1912
1912
|
}
|
|
1913
1913
|
}
|
|
1914
|
-
class
|
|
1914
|
+
class Le extends Pr {
|
|
1915
1915
|
/**
|
|
1916
1916
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1917
1917
|
*
|
|
@@ -1946,7 +1946,7 @@ class Ee extends S {
|
|
|
1946
1946
|
* @inheritDoc
|
|
1947
1947
|
*/
|
|
1948
1948
|
s(this, "curatedDirection");
|
|
1949
|
-
this.photo = e.photo, this.contacts = new
|
|
1949
|
+
this.photo = e.photo, this.contacts = new ar(e.contacts), this.curatedDirection = new Ve(e.curatedDirection);
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
1952
|
class te extends w {
|
|
@@ -1966,7 +1966,7 @@ class me extends w {
|
|
|
1966
1966
|
e && (this.country = new te(e.country));
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
|
-
class
|
|
1969
|
+
class Ae extends w {
|
|
1970
1970
|
/**
|
|
1971
1971
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
1972
1972
|
*
|
|
@@ -1981,7 +1981,7 @@ class $e extends w {
|
|
|
1981
1981
|
e && (this.region = new me(e.region));
|
|
1982
1982
|
}
|
|
1983
1983
|
}
|
|
1984
|
-
class
|
|
1984
|
+
class Rr extends S {
|
|
1985
1985
|
/**
|
|
1986
1986
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1987
1987
|
*
|
|
@@ -2020,7 +2020,7 @@ class Pr extends S {
|
|
|
2020
2020
|
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 = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = a(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
2021
2021
|
}
|
|
2022
2022
|
}
|
|
2023
|
-
class
|
|
2023
|
+
class V extends Rr {
|
|
2024
2024
|
/**
|
|
2025
2025
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2026
2026
|
*
|
|
@@ -2066,7 +2066,7 @@ class E extends Pr {
|
|
|
2066
2066
|
* @inheritDoc
|
|
2067
2067
|
*/
|
|
2068
2068
|
s(this, "curators");
|
|
2069
|
-
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
|
|
2069
|
+
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 Ae(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 = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((o) => new Je(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Ee(o))) ?? void 0;
|
|
2070
2070
|
}
|
|
2071
2071
|
}
|
|
2072
2072
|
class ce extends J {
|
|
@@ -2093,10 +2093,10 @@ class ce extends J {
|
|
|
2093
2093
|
* Данные шаблона прайс-листа.
|
|
2094
2094
|
*/
|
|
2095
2095
|
s(this, "priceTemplate");
|
|
2096
|
-
this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new
|
|
2096
|
+
this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new V(e == null ? void 0 : e.client), this.priceTemplate = new Z(e == null ? void 0 : e.priceTemplate);
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
|
-
class
|
|
2099
|
+
class _e extends Pr {
|
|
2100
2100
|
/**
|
|
2101
2101
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
2102
2102
|
*
|
|
@@ -2108,10 +2108,10 @@ class Le extends Cr {
|
|
|
2108
2108
|
* Базовые данные о продукте.
|
|
2109
2109
|
*/
|
|
2110
2110
|
s(this, "product");
|
|
2111
|
-
this.product = new
|
|
2111
|
+
this.product = new _(e == null ? void 0 : e.product);
|
|
2112
2112
|
}
|
|
2113
2113
|
}
|
|
2114
|
-
class
|
|
2114
|
+
class Dr extends w {
|
|
2115
2115
|
}
|
|
2116
2116
|
class le extends S {
|
|
2117
2117
|
/**
|
|
@@ -2133,7 +2133,7 @@ class le extends S {
|
|
|
2133
2133
|
* Дополнительные метаданные свойства.
|
|
2134
2134
|
*/
|
|
2135
2135
|
s(this, "metadata");
|
|
2136
|
-
this.type = new
|
|
2136
|
+
this.type = new Dr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
2137
2137
|
}
|
|
2138
2138
|
}
|
|
2139
2139
|
class Y {
|
|
@@ -2173,7 +2173,7 @@ class A {
|
|
|
2173
2173
|
this.from = a(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = a(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
|
|
2174
2174
|
}
|
|
2175
2175
|
}
|
|
2176
|
-
class
|
|
2176
|
+
class Yt {
|
|
2177
2177
|
/**
|
|
2178
2178
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
2179
2179
|
*
|
|
@@ -2233,7 +2233,7 @@ class Kt {
|
|
|
2233
2233
|
return Object.keys(this).forEach((c) => {
|
|
2234
2234
|
const u = this[c];
|
|
2235
2235
|
// eslint-disable-next-line prettier/prettier
|
|
2236
|
-
$(u) || a(u) && u.trim().length === 0 ||
|
|
2236
|
+
$(u) || a(u) && u.trim().length === 0 || Me(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
2237
2237
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
|
|
2238
2238
|
}
|
|
2239
2239
|
}
|
|
@@ -2272,7 +2272,7 @@ class ue extends S {
|
|
|
2272
2272
|
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;
|
|
2273
2273
|
}
|
|
2274
2274
|
}
|
|
2275
|
-
class
|
|
2275
|
+
class rr {
|
|
2276
2276
|
/**
|
|
2277
2277
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
2278
2278
|
*
|
|
@@ -2291,10 +2291,10 @@ class er {
|
|
|
2291
2291
|
* Минимальный коэффициент цены.
|
|
2292
2292
|
*/
|
|
2293
2293
|
s(this, "minCoefficient");
|
|
2294
|
-
this.role = new ue(r == null ? void 0 : r.role), this.category = new ve(r == null ? void 0 : r.category), this.minCoefficient = new
|
|
2294
|
+
this.role = new ue(r == null ? void 0 : r.role), this.category = new ve(r == null ? void 0 : r.category), this.minCoefficient = new de(r == null ? void 0 : r.minCoefficient);
|
|
2295
2295
|
}
|
|
2296
2296
|
}
|
|
2297
|
-
class
|
|
2297
|
+
class Xt extends h {
|
|
2298
2298
|
/**
|
|
2299
2299
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
2300
2300
|
*
|
|
@@ -2325,7 +2325,7 @@ class Qt extends h {
|
|
|
2325
2325
|
return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
|
|
2326
2326
|
}
|
|
2327
2327
|
}
|
|
2328
|
-
class
|
|
2328
|
+
class Zt extends h {
|
|
2329
2329
|
/**
|
|
2330
2330
|
* Импортирует цены клиента из CSV файла.
|
|
2331
2331
|
*
|
|
@@ -2449,7 +2449,7 @@ class Yt extends h {
|
|
|
2449
2449
|
price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
|
|
2450
2450
|
increase_percent: t.value
|
|
2451
2451
|
},
|
|
2452
|
-
(o) => new
|
|
2452
|
+
(o) => new B(o.data)
|
|
2453
2453
|
);
|
|
2454
2454
|
}
|
|
2455
2455
|
/**
|
|
@@ -2461,7 +2461,7 @@ class Yt extends h {
|
|
|
2461
2461
|
* @see /doc/api/internal#/operations/api_internal_client_price_products_remove
|
|
2462
2462
|
*/
|
|
2463
2463
|
removeProductPrice(r, e) {
|
|
2464
|
-
return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new
|
|
2464
|
+
return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new B(t.data));
|
|
2465
2465
|
}
|
|
2466
2466
|
/**
|
|
2467
2467
|
* Добавляет указанный продукт в список товаров для дополнительных продаж.
|
|
@@ -2524,7 +2524,7 @@ class Yt extends h {
|
|
|
2524
2524
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2525
2525
|
}
|
|
2526
2526
|
}
|
|
2527
|
-
class
|
|
2527
|
+
class es extends h {
|
|
2528
2528
|
/**
|
|
2529
2529
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2530
2530
|
*
|
|
@@ -2616,7 +2616,7 @@ class Xt extends h {
|
|
|
2616
2616
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
|
|
2617
2617
|
}
|
|
2618
2618
|
}
|
|
2619
|
-
class
|
|
2619
|
+
class rs extends h {
|
|
2620
2620
|
/**
|
|
2621
2621
|
* Возвращает список данных о корневых категориях.
|
|
2622
2622
|
*
|
|
@@ -2676,7 +2676,7 @@ class Zt extends h {
|
|
|
2676
2676
|
showHidden: t,
|
|
2677
2677
|
withPriceCoefficients: e
|
|
2678
2678
|
},
|
|
2679
|
-
(i) => ye(i.data, (o) => new
|
|
2679
|
+
(i) => ye(i.data, (o) => new _(o))
|
|
2680
2680
|
);
|
|
2681
2681
|
}
|
|
2682
2682
|
/**
|
|
@@ -2689,7 +2689,7 @@ class Zt extends h {
|
|
|
2689
2689
|
getCategoryProductsCoefficients(r) {
|
|
2690
2690
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2691
2691
|
const { data: t } = e;
|
|
2692
|
-
return
|
|
2692
|
+
return zr(t, (i) => i.map((o) => new Ge(o))), t;
|
|
2693
2693
|
});
|
|
2694
2694
|
}
|
|
2695
2695
|
/**
|
|
@@ -2708,7 +2708,7 @@ class Zt extends h {
|
|
|
2708
2708
|
});
|
|
2709
2709
|
}
|
|
2710
2710
|
}
|
|
2711
|
-
class
|
|
2711
|
+
class ts extends h {
|
|
2712
2712
|
/**
|
|
2713
2713
|
* Возвращает данные об указанном продукте.
|
|
2714
2714
|
*
|
|
@@ -2718,7 +2718,7 @@ class es extends h {
|
|
|
2718
2718
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
2719
2719
|
*/
|
|
2720
2720
|
getProductData(r, e = !1) {
|
|
2721
|
-
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new
|
|
2721
|
+
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new _(t.data));
|
|
2722
2722
|
}
|
|
2723
2723
|
/**
|
|
2724
2724
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -2726,7 +2726,7 @@ class es extends h {
|
|
|
2726
2726
|
* @param productId Идентификатор продукта.
|
|
2727
2727
|
*/
|
|
2728
2728
|
getPublicProductData(r) {
|
|
2729
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
2729
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new _(e.data));
|
|
2730
2730
|
}
|
|
2731
2731
|
/**
|
|
2732
2732
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -2751,14 +2751,14 @@ class es extends h {
|
|
|
2751
2751
|
publicSimpleSearch(r, e = 10) {
|
|
2752
2752
|
return new Promise((t, i) => {
|
|
2753
2753
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2754
|
-
t(o.products.map((c) => new
|
|
2754
|
+
t(o.products.map((c) => new _(c)));
|
|
2755
2755
|
}).catch((o) => {
|
|
2756
2756
|
i(o);
|
|
2757
2757
|
});
|
|
2758
2758
|
});
|
|
2759
2759
|
}
|
|
2760
2760
|
}
|
|
2761
|
-
class
|
|
2761
|
+
class ss extends h {
|
|
2762
2762
|
/**
|
|
2763
2763
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2764
2764
|
*
|
|
@@ -2816,11 +2816,11 @@ class rs extends h {
|
|
|
2816
2816
|
showHidden: i,
|
|
2817
2817
|
withPriceCoefficients: t
|
|
2818
2818
|
},
|
|
2819
|
-
(o) => ye(o.data, (c) => new
|
|
2819
|
+
(o) => ye(o.data, (c) => new B(c))
|
|
2820
2820
|
);
|
|
2821
2821
|
}
|
|
2822
2822
|
}
|
|
2823
|
-
class
|
|
2823
|
+
class is extends h {
|
|
2824
2824
|
/**
|
|
2825
2825
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2826
2826
|
*
|
|
@@ -2837,12 +2837,12 @@ class ts extends h {
|
|
|
2837
2837
|
clientId: e,
|
|
2838
2838
|
withPriceCoefficients: t
|
|
2839
2839
|
},
|
|
2840
|
-
(i) => new
|
|
2840
|
+
(i) => new B(i.data)
|
|
2841
2841
|
);
|
|
2842
2842
|
}
|
|
2843
2843
|
}
|
|
2844
|
-
var
|
|
2845
|
-
class
|
|
2844
|
+
var Ke = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(Ke || {});
|
|
2845
|
+
class tr {
|
|
2846
2846
|
/**
|
|
2847
2847
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
2848
2848
|
*
|
|
@@ -2861,7 +2861,7 @@ class rr {
|
|
|
2861
2861
|
* Значение с которым сравнивается поле.
|
|
2862
2862
|
*/
|
|
2863
2863
|
s(this, "value");
|
|
2864
|
-
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ??
|
|
2864
|
+
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Ke.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2865
2865
|
}
|
|
2866
2866
|
/**
|
|
2867
2867
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -2873,13 +2873,13 @@ class rr {
|
|
|
2873
2873
|
field: this.field,
|
|
2874
2874
|
op: this.op
|
|
2875
2875
|
};
|
|
2876
|
-
return
|
|
2876
|
+
return qe(this.value) ? e.value = L(this.value, r) : Be(this.value) ? e.value = {
|
|
2877
2877
|
from: this.value.from ? L(this.value.from, r) : null,
|
|
2878
2878
|
to: this.value.to ? L(this.value.to, r) : null
|
|
2879
2879
|
} : e.value = this.value, e;
|
|
2880
2880
|
}
|
|
2881
2881
|
}
|
|
2882
|
-
class
|
|
2882
|
+
class j {
|
|
2883
2883
|
/**
|
|
2884
2884
|
* Инициализирует экземпляр класса {@link FilterGroup}.
|
|
2885
2885
|
*
|
|
@@ -2899,7 +2899,7 @@ class G {
|
|
|
2899
2899
|
*/
|
|
2900
2900
|
s(this, "groups");
|
|
2901
2901
|
var e, t;
|
|
2902
|
-
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new
|
|
2902
|
+
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new tr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new j(i))) ?? [];
|
|
2903
2903
|
}
|
|
2904
2904
|
/**
|
|
2905
2905
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2909,8 +2909,8 @@ class G {
|
|
|
2909
2909
|
toPrimitive() {
|
|
2910
2910
|
return {
|
|
2911
2911
|
groupOp: this.groupOp,
|
|
2912
|
-
filters: this.filters.map((r) => r instanceof
|
|
2913
|
-
groups: this.groups.map((r) => r instanceof
|
|
2912
|
+
filters: this.filters.map((r) => r instanceof tr && Me(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2913
|
+
groups: this.groups.map((r) => r instanceof j ? r.toPrimitive() : r)
|
|
2914
2914
|
};
|
|
2915
2915
|
}
|
|
2916
2916
|
}
|
|
@@ -2932,10 +2932,10 @@ class Ce extends h {
|
|
|
2932
2932
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2933
2933
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2934
2934
|
};
|
|
2935
|
-
return e && (m.filters = JSON.stringify((e instanceof
|
|
2935
|
+
return e && (m.filters = JSON.stringify((e instanceof j ? e : new j(e)).toPrimitive())), re(t) || (m.sort = H(t) ? t : [t]), o && (m = { ...m, ...o }), this.get(r, m, c, u, p);
|
|
2936
2936
|
}
|
|
2937
2937
|
}
|
|
2938
|
-
class
|
|
2938
|
+
class ns extends Ce {
|
|
2939
2939
|
/**
|
|
2940
2940
|
* Возвращает список шаблонов прайс-листа.
|
|
2941
2941
|
*
|
|
@@ -3007,7 +3007,7 @@ class ss extends Ce {
|
|
|
3007
3007
|
return this.get(
|
|
3008
3008
|
`/internal/price/templates/${r}/products`,
|
|
3009
3009
|
{},
|
|
3010
|
-
(e) => e.data.map((t) => new
|
|
3010
|
+
(e) => e.data.map((t) => new _e(t))
|
|
3011
3011
|
);
|
|
3012
3012
|
}
|
|
3013
3013
|
/**
|
|
@@ -3019,7 +3019,7 @@ class ss extends Ce {
|
|
|
3019
3019
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
3020
3020
|
*/
|
|
3021
3021
|
getProductTemplatePrice(r, e) {
|
|
3022
|
-
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new
|
|
3022
|
+
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new _e(t.data));
|
|
3023
3023
|
}
|
|
3024
3024
|
/**
|
|
3025
3025
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -3038,7 +3038,7 @@ class ss extends Ce {
|
|
|
3038
3038
|
price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
|
|
3039
3039
|
increase_percent: t.value
|
|
3040
3040
|
},
|
|
3041
|
-
(o) => new
|
|
3041
|
+
(o) => new _e(o.data)
|
|
3042
3042
|
);
|
|
3043
3043
|
}
|
|
3044
3044
|
/**
|
|
@@ -3063,7 +3063,7 @@ class ss extends Ce {
|
|
|
3063
3063
|
return this.get(
|
|
3064
3064
|
`/internal/price/templates/${r}/categories`,
|
|
3065
3065
|
{},
|
|
3066
|
-
(e) => e.data.map((t) => new
|
|
3066
|
+
(e) => e.data.map((t) => new Le(t))
|
|
3067
3067
|
);
|
|
3068
3068
|
}
|
|
3069
3069
|
/**
|
|
@@ -3078,7 +3078,7 @@ class ss extends Ce {
|
|
|
3078
3078
|
return this.get(
|
|
3079
3079
|
`/internal/price/templates/${r}/categories/${e}`,
|
|
3080
3080
|
{},
|
|
3081
|
-
(t) => new
|
|
3081
|
+
(t) => new Le(t.data)
|
|
3082
3082
|
);
|
|
3083
3083
|
}
|
|
3084
3084
|
/**
|
|
@@ -3104,7 +3104,7 @@ class ss extends Ce {
|
|
|
3104
3104
|
},
|
|
3105
3105
|
params: i ? { recursively: !0 } : {}
|
|
3106
3106
|
},
|
|
3107
|
-
(c) => new
|
|
3107
|
+
(c) => new Le(c.data)
|
|
3108
3108
|
);
|
|
3109
3109
|
}
|
|
3110
3110
|
/**
|
|
@@ -3139,7 +3139,7 @@ class ss extends Ce {
|
|
|
3139
3139
|
);
|
|
3140
3140
|
}
|
|
3141
3141
|
}
|
|
3142
|
-
class
|
|
3142
|
+
class os extends h {
|
|
3143
3143
|
/**
|
|
3144
3144
|
* Возвращает список ролей ценообразования.
|
|
3145
3145
|
*
|
|
@@ -3200,7 +3200,7 @@ class is extends h {
|
|
|
3200
3200
|
return this.get(
|
|
3201
3201
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3202
3202
|
{},
|
|
3203
|
-
(e) => e.data.map((t) => new
|
|
3203
|
+
(e) => e.data.map((t) => new rr(t))
|
|
3204
3204
|
);
|
|
3205
3205
|
}
|
|
3206
3206
|
/**
|
|
@@ -3215,11 +3215,11 @@ class is extends h {
|
|
|
3215
3215
|
return this.patch(
|
|
3216
3216
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3217
3217
|
e,
|
|
3218
|
-
(t) => t.data.map((i) => new
|
|
3218
|
+
(t) => t.data.map((i) => new rr(i))
|
|
3219
3219
|
);
|
|
3220
3220
|
}
|
|
3221
3221
|
}
|
|
3222
|
-
class
|
|
3222
|
+
class cs extends Ce {
|
|
3223
3223
|
/**
|
|
3224
3224
|
* Возвращает пагинированный список свойств.
|
|
3225
3225
|
*
|
|
@@ -3591,7 +3591,7 @@ class ns extends Ce {
|
|
|
3591
3591
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3592
3592
|
}
|
|
3593
3593
|
}
|
|
3594
|
-
class
|
|
3594
|
+
class ls extends h {
|
|
3595
3595
|
/**
|
|
3596
3596
|
* Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
|
|
3597
3597
|
*
|
|
@@ -3649,11 +3649,11 @@ class os extends h {
|
|
|
3649
3649
|
showHidden: i,
|
|
3650
3650
|
withPriceCoefficients: t
|
|
3651
3651
|
},
|
|
3652
|
-
(o) => ye(o.data, (c) => new
|
|
3652
|
+
(o) => ye(o.data, (c) => new _(c))
|
|
3653
3653
|
);
|
|
3654
3654
|
}
|
|
3655
3655
|
}
|
|
3656
|
-
function
|
|
3656
|
+
function sr(n, r, e) {
|
|
3657
3657
|
let t;
|
|
3658
3658
|
return n.some((i) => {
|
|
3659
3659
|
if (i.type === e && i.id === r)
|
|
@@ -3662,29 +3662,29 @@ function tr(n, r, e) {
|
|
|
3662
3662
|
return !1;
|
|
3663
3663
|
const o = i;
|
|
3664
3664
|
if (o.products && o.products.length > 0) {
|
|
3665
|
-
const c =
|
|
3665
|
+
const c = sr(o.products, r, e);
|
|
3666
3666
|
if (c)
|
|
3667
3667
|
return t = c, !0;
|
|
3668
3668
|
}
|
|
3669
3669
|
if (o.categories && o.categories.length > 0) {
|
|
3670
|
-
const c =
|
|
3670
|
+
const c = sr(o.categories, r, e);
|
|
3671
3671
|
if (c)
|
|
3672
3672
|
return t = c, !0;
|
|
3673
3673
|
}
|
|
3674
3674
|
return !1;
|
|
3675
3675
|
}), t;
|
|
3676
3676
|
}
|
|
3677
|
-
function
|
|
3677
|
+
function ir(n) {
|
|
3678
3678
|
const r = [];
|
|
3679
3679
|
return n.forEach((e) => {
|
|
3680
3680
|
if (r.push(e), e.type === "category") {
|
|
3681
3681
|
const t = e;
|
|
3682
|
-
t.products && t.products.length > 0 && r.push(...
|
|
3682
|
+
t.products && t.products.length > 0 && r.push(...ir(t.products)), t.categories && t.categories.length > 0 && r.push(...ir(t.categories));
|
|
3683
3683
|
}
|
|
3684
3684
|
}), r;
|
|
3685
3685
|
}
|
|
3686
|
-
var
|
|
3687
|
-
class
|
|
3686
|
+
var yt = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n.Curators = "curators", n))(yt || {}), U = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(U || {});
|
|
3687
|
+
class Fe extends J {
|
|
3688
3688
|
/**
|
|
3689
3689
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3690
3690
|
*
|
|
@@ -3715,7 +3715,7 @@ class Ue extends J {
|
|
|
3715
3715
|
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new x(e.currency));
|
|
3716
3716
|
}
|
|
3717
3717
|
}
|
|
3718
|
-
class
|
|
3718
|
+
class He extends S {
|
|
3719
3719
|
/**
|
|
3720
3720
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3721
3721
|
*
|
|
@@ -3734,7 +3734,7 @@ class Fe extends S {
|
|
|
3734
3734
|
this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
|
|
3735
3735
|
}
|
|
3736
3736
|
}
|
|
3737
|
-
class
|
|
3737
|
+
class G extends He {
|
|
3738
3738
|
/**
|
|
3739
3739
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3740
3740
|
*
|
|
@@ -3784,7 +3784,7 @@ class z extends w {
|
|
|
3784
3784
|
}
|
|
3785
3785
|
class se extends w {
|
|
3786
3786
|
}
|
|
3787
|
-
class
|
|
3787
|
+
class dr extends gr {
|
|
3788
3788
|
/**
|
|
3789
3789
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
3790
3790
|
*
|
|
@@ -3799,7 +3799,7 @@ class Dr extends hr {
|
|
|
3799
3799
|
this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3800
3800
|
}
|
|
3801
3801
|
}
|
|
3802
|
-
class Ar extends
|
|
3802
|
+
class Ar extends dr {
|
|
3803
3803
|
/**
|
|
3804
3804
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3805
3805
|
*
|
|
@@ -3845,22 +3845,22 @@ class Ar extends Dr {
|
|
|
3845
3845
|
*/
|
|
3846
3846
|
s(this, "updater");
|
|
3847
3847
|
if (e) {
|
|
3848
|
-
if (this.opf = new z(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new
|
|
3848
|
+
if (this.opf = new z(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new I(e.creator) : void 0, this.updater = e.updater ? new I(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new se(e.partnerGroup)), e.contacts) {
|
|
3849
3849
|
const t = [];
|
|
3850
3850
|
e.contacts.forEach((i) => {
|
|
3851
|
-
t.push(new
|
|
3851
|
+
t.push(new G(i));
|
|
3852
3852
|
}), this.contacts = t;
|
|
3853
3853
|
}
|
|
3854
3854
|
if (e.bankAccounts) {
|
|
3855
3855
|
const t = [];
|
|
3856
3856
|
e.bankAccounts.forEach((i) => {
|
|
3857
|
-
t.push(new
|
|
3857
|
+
t.push(new Fe(i));
|
|
3858
3858
|
}), this.bankAccounts = t;
|
|
3859
3859
|
}
|
|
3860
3860
|
}
|
|
3861
3861
|
}
|
|
3862
3862
|
}
|
|
3863
|
-
class
|
|
3863
|
+
class wt extends Ar {
|
|
3864
3864
|
/**
|
|
3865
3865
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3866
3866
|
*
|
|
@@ -3913,7 +3913,7 @@ class $r extends Ar {
|
|
|
3913
3913
|
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 ?? "");
|
|
3914
3914
|
}
|
|
3915
3915
|
}
|
|
3916
|
-
class
|
|
3916
|
+
class Tr extends $r {
|
|
3917
3917
|
/**
|
|
3918
3918
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
3919
3919
|
*
|
|
@@ -3928,7 +3928,7 @@ class dr extends $r {
|
|
|
3928
3928
|
e && (this.kpp = e.kpp ?? "");
|
|
3929
3929
|
}
|
|
3930
3930
|
}
|
|
3931
|
-
class
|
|
3931
|
+
class vt extends Tr {
|
|
3932
3932
|
/**
|
|
3933
3933
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3934
3934
|
*
|
|
@@ -3962,15 +3962,15 @@ class De {
|
|
|
3962
3962
|
case U.Ic:
|
|
3963
3963
|
return new $r(r);
|
|
3964
3964
|
case U.UlR:
|
|
3965
|
-
return new
|
|
3965
|
+
return new Tr(r);
|
|
3966
3966
|
case U.UlNr:
|
|
3967
|
-
return new
|
|
3967
|
+
return new vt(r);
|
|
3968
3968
|
default:
|
|
3969
|
-
return new
|
|
3969
|
+
return new wt(r);
|
|
3970
3970
|
}
|
|
3971
3971
|
}
|
|
3972
3972
|
}
|
|
3973
|
-
class pe extends
|
|
3973
|
+
class pe extends dr {
|
|
3974
3974
|
/**
|
|
3975
3975
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
3976
3976
|
*
|
|
@@ -4007,14 +4007,14 @@ class pe extends Dr {
|
|
|
4007
4007
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
4008
4008
|
*/
|
|
4009
4009
|
s(this, "isTransportCompanyAddress");
|
|
4010
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
4010
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new fr(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new G(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
|
|
4011
4011
|
}
|
|
4012
4012
|
}
|
|
4013
|
-
class Tr extends w {
|
|
4014
|
-
}
|
|
4015
4013
|
class br extends w {
|
|
4016
4014
|
}
|
|
4017
|
-
class
|
|
4015
|
+
class Sr extends w {
|
|
4016
|
+
}
|
|
4017
|
+
class nr extends V {
|
|
4018
4018
|
/**
|
|
4019
4019
|
* Инициализирует экземпляр класса {@link Client}.
|
|
4020
4020
|
*
|
|
@@ -4064,10 +4064,10 @@ class ir extends E {
|
|
|
4064
4064
|
* @inheritDoc
|
|
4065
4065
|
*/
|
|
4066
4066
|
s(this, "extraData");
|
|
4067
|
-
this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => De.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new se(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new
|
|
4067
|
+
this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => De.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new se(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new G(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new pe(u))) ?? [], this.channelPrimaryInterest = new br(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Sr(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 we(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
4068
4068
|
}
|
|
4069
4069
|
}
|
|
4070
|
-
class
|
|
4070
|
+
class Qe {
|
|
4071
4071
|
/**
|
|
4072
4072
|
* Возвращает очищенное значение фильтров, содержащие
|
|
4073
4073
|
* только актуальные данные.
|
|
@@ -4077,11 +4077,11 @@ class Ke {
|
|
|
4077
4077
|
return Object.keys(this).forEach((e) => {
|
|
4078
4078
|
const t = this[e];
|
|
4079
4079
|
$(t) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
|
|
4080
|
-
a(t) && t.trim().length === 0 ||
|
|
4080
|
+
a(t) && t.trim().length === 0 || Me(t.isNewRec) && t.isNewRec() || (r[e] = t);
|
|
4081
4081
|
}), r;
|
|
4082
4082
|
}
|
|
4083
4083
|
}
|
|
4084
|
-
class
|
|
4084
|
+
class us extends Qe {
|
|
4085
4085
|
/**
|
|
4086
4086
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
4087
4087
|
*
|
|
@@ -4190,7 +4190,7 @@ class cs extends Ke {
|
|
|
4190
4190
|
* @inheritDoc
|
|
4191
4191
|
*/
|
|
4192
4192
|
s(this, "noOrdersPeriod", new A());
|
|
4193
|
-
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 = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((D) => new
|
|
4193
|
+
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 = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((D) => new Ae(D)), this.region = new me(e == null ? void 0 : e.region), this.country = new te(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 A(e == null ? void 0 : e.createdAt), this.lastLoginDate = new A(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new ae(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 Ee(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 z(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 se(D)), this.contact = new He(e == null ? void 0 : e.contact), this.lastOrder = {
|
|
4194
4194
|
createdAt: new A((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
|
|
4195
4195
|
creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
|
|
4196
4196
|
isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
|
|
@@ -4241,7 +4241,7 @@ class cs extends Ke {
|
|
|
4241
4241
|
this.partnerGroups = [];
|
|
4242
4242
|
break;
|
|
4243
4243
|
case "contact":
|
|
4244
|
-
this.contact = new
|
|
4244
|
+
this.contact = new He();
|
|
4245
4245
|
break;
|
|
4246
4246
|
default:
|
|
4247
4247
|
this[e] = void 0;
|
|
@@ -4258,7 +4258,7 @@ class cs extends Ke {
|
|
|
4258
4258
|
return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.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;
|
|
4259
4259
|
}
|
|
4260
4260
|
}
|
|
4261
|
-
class
|
|
4261
|
+
class kr extends J {
|
|
4262
4262
|
/**
|
|
4263
4263
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
4264
4264
|
*
|
|
@@ -4274,10 +4274,10 @@ class Sr extends J {
|
|
|
4274
4274
|
* @inheritDoc
|
|
4275
4275
|
*/
|
|
4276
4276
|
s(this, "creator");
|
|
4277
|
-
this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new
|
|
4277
|
+
this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new I(e == null ? void 0 : e.creator);
|
|
4278
4278
|
}
|
|
4279
4279
|
}
|
|
4280
|
-
class
|
|
4280
|
+
class at extends S {
|
|
4281
4281
|
/**
|
|
4282
4282
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4283
4283
|
*
|
|
@@ -4314,7 +4314,7 @@ class vt extends S {
|
|
|
4314
4314
|
* @inheritDoc
|
|
4315
4315
|
*/
|
|
4316
4316
|
s(this, "curators");
|
|
4317
|
-
this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new
|
|
4317
|
+
this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new G(u))) ?? void 0, this.lastOrder = e.lastOrder ? new kr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new se(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 Je(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Ee(u))) ?? void 0;
|
|
4318
4318
|
}
|
|
4319
4319
|
}
|
|
4320
4320
|
class Ie extends J {
|
|
@@ -4332,7 +4332,7 @@ class Ie extends J {
|
|
|
4332
4332
|
this.isPrimary = e.isPrimary;
|
|
4333
4333
|
}
|
|
4334
4334
|
}
|
|
4335
|
-
class
|
|
4335
|
+
class Ct extends G {
|
|
4336
4336
|
/**
|
|
4337
4337
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
4338
4338
|
*
|
|
@@ -4499,7 +4499,7 @@ class O extends Ce {
|
|
|
4499
4499
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
4500
4500
|
*/
|
|
4501
4501
|
getClient(r) {
|
|
4502
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
4502
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new nr(e.data));
|
|
4503
4503
|
}
|
|
4504
4504
|
/**
|
|
4505
4505
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -4521,7 +4521,7 @@ class O extends Ce {
|
|
|
4521
4521
|
i,
|
|
4522
4522
|
(c) => {
|
|
4523
4523
|
const u = { ...c.data };
|
|
4524
|
-
return u.data = u.data.map((p) => new
|
|
4524
|
+
return u.data = u.data.map((p) => new V(p)), u;
|
|
4525
4525
|
},
|
|
4526
4526
|
void 0,
|
|
4527
4527
|
o
|
|
@@ -4547,7 +4547,7 @@ class O extends Ce {
|
|
|
4547
4547
|
return this.getClientsList({
|
|
4548
4548
|
groupOp: "and",
|
|
4549
4549
|
groups: [],
|
|
4550
|
-
filters: [{ field: "phone", op:
|
|
4550
|
+
filters: [{ field: "phone", op: Ke.Contains, value: r }]
|
|
4551
4551
|
});
|
|
4552
4552
|
}
|
|
4553
4553
|
/**
|
|
@@ -4561,7 +4561,7 @@ class O extends Ce {
|
|
|
4561
4561
|
const t = r.map((i) => i.id);
|
|
4562
4562
|
return this.post("/internal/clients/additional-data", { clients: t, requested_data_types: e }, (i) => {
|
|
4563
4563
|
let o = [];
|
|
4564
|
-
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new
|
|
4564
|
+
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new at(c))), o;
|
|
4565
4565
|
});
|
|
4566
4566
|
}
|
|
4567
4567
|
/**
|
|
@@ -4573,7 +4573,7 @@ class O extends Ce {
|
|
|
4573
4573
|
getAllClientContacts(r) {
|
|
4574
4574
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
4575
4575
|
let t = [];
|
|
4576
|
-
return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((i) => new
|
|
4576
|
+
return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((i) => new Ct(i))), t;
|
|
4577
4577
|
});
|
|
4578
4578
|
}
|
|
4579
4579
|
/**
|
|
@@ -4584,7 +4584,7 @@ class O extends Ce {
|
|
|
4584
4584
|
* @see /doc/api/internal#/Клиенты/api_internal_client_create
|
|
4585
4585
|
*/
|
|
4586
4586
|
createClientCommonData(r, e = {}) {
|
|
4587
|
-
return this.post("/internal/clients", O.transformClientDataToRequest(r), (t) => new
|
|
4587
|
+
return this.post("/internal/clients", O.transformClientDataToRequest(r), (t) => new nr(t.data), e);
|
|
4588
4588
|
}
|
|
4589
4589
|
/**
|
|
4590
4590
|
* Обновляет данные указанного клиента.
|
|
@@ -4822,7 +4822,7 @@ class O extends Ce {
|
|
|
4822
4822
|
return this.post(
|
|
4823
4823
|
`/internal/clients/${r}/contragents/${e}/bank-accounts`,
|
|
4824
4824
|
O.transformClientContragentBankAccountToRequest(t),
|
|
4825
|
-
(o) => new
|
|
4825
|
+
(o) => new Fe(o.data),
|
|
4826
4826
|
i
|
|
4827
4827
|
);
|
|
4828
4828
|
}
|
|
@@ -4839,7 +4839,7 @@ class O extends Ce {
|
|
|
4839
4839
|
return this.patch(
|
|
4840
4840
|
`/internal/clients/${r}/contragents/${e}/bank-accounts/${t.id}`,
|
|
4841
4841
|
O.transformClientContragentBankAccountToRequest(t),
|
|
4842
|
-
(o) => new
|
|
4842
|
+
(o) => new Fe(o.data),
|
|
4843
4843
|
i
|
|
4844
4844
|
);
|
|
4845
4845
|
}
|
|
@@ -4895,7 +4895,7 @@ class O extends Ce {
|
|
|
4895
4895
|
comment: e.comment,
|
|
4896
4896
|
not_disturb: e.notDisturb
|
|
4897
4897
|
},
|
|
4898
|
-
(i) => new
|
|
4898
|
+
(i) => new G(i.data),
|
|
4899
4899
|
t
|
|
4900
4900
|
);
|
|
4901
4901
|
}
|
|
@@ -5032,7 +5032,7 @@ class O extends Ce {
|
|
|
5032
5032
|
comment: e.comment,
|
|
5033
5033
|
...t
|
|
5034
5034
|
};
|
|
5035
|
-
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
|
|
5035
|
+
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 G(p.data), i);
|
|
5036
5036
|
}
|
|
5037
5037
|
/**
|
|
5038
5038
|
* Устанавливает признак основного контактного лица.
|
|
@@ -5061,7 +5061,7 @@ class O extends Ce {
|
|
|
5061
5061
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
5062
5062
|
}
|
|
5063
5063
|
}
|
|
5064
|
-
class
|
|
5064
|
+
class ps extends h {
|
|
5065
5065
|
/**
|
|
5066
5066
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
5067
5067
|
*
|
|
@@ -5075,7 +5075,7 @@ class ls extends h {
|
|
|
5075
5075
|
});
|
|
5076
5076
|
}
|
|
5077
5077
|
}
|
|
5078
|
-
class
|
|
5078
|
+
class hs {
|
|
5079
5079
|
/**
|
|
5080
5080
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
5081
5081
|
*
|
|
@@ -5097,8 +5097,8 @@ class us {
|
|
|
5097
5097
|
this.date = a(r == null ? void 0 : r.date) ? C(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
|
|
5098
5098
|
}
|
|
5099
5099
|
}
|
|
5100
|
-
var
|
|
5101
|
-
class
|
|
5100
|
+
var Pt = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Pt || {});
|
|
5101
|
+
class gs extends h {
|
|
5102
5102
|
/**
|
|
5103
5103
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
5104
5104
|
*
|
|
@@ -5128,7 +5128,7 @@ class ps extends h {
|
|
|
5128
5128
|
const o = this.get(
|
|
5129
5129
|
`internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
|
|
5130
5130
|
{ params: t, client_id: e },
|
|
5131
|
-
(u) => new
|
|
5131
|
+
(u) => new _(u.data)
|
|
5132
5132
|
);
|
|
5133
5133
|
return o.catch((u) => {
|
|
5134
5134
|
this.errorResponseHandler(u, i);
|
|
@@ -5189,7 +5189,7 @@ class ps extends h {
|
|
|
5189
5189
|
});
|
|
5190
5190
|
}
|
|
5191
5191
|
}
|
|
5192
|
-
class
|
|
5192
|
+
class Rt {
|
|
5193
5193
|
/**
|
|
5194
5194
|
* Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
|
|
5195
5195
|
*
|
|
@@ -5207,7 +5207,7 @@ class Pt {
|
|
|
5207
5207
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
5208
5208
|
}
|
|
5209
5209
|
}
|
|
5210
|
-
class
|
|
5210
|
+
class ms extends Rt {
|
|
5211
5211
|
/**
|
|
5212
5212
|
* Инициализирует экземпляр класса {@link TableDataPagination}.
|
|
5213
5213
|
*
|
|
@@ -5238,7 +5238,7 @@ class hs extends Pt {
|
|
|
5238
5238
|
this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
|
|
5239
5239
|
}
|
|
5240
5240
|
}
|
|
5241
|
-
class
|
|
5241
|
+
class fs {
|
|
5242
5242
|
/**
|
|
5243
5243
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
5244
5244
|
*
|
|
@@ -5256,22 +5256,22 @@ class gs {
|
|
|
5256
5256
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
5257
5257
|
}
|
|
5258
5258
|
}
|
|
5259
|
-
class
|
|
5259
|
+
class ys {
|
|
5260
5260
|
/**
|
|
5261
5261
|
* Возвращает диапазон дат по умолчанию.
|
|
5262
5262
|
*/
|
|
5263
5263
|
static defaultDateRanges() {
|
|
5264
|
-
const r =
|
|
5264
|
+
const r = Jr(/* @__PURE__ */ new Date(), 1);
|
|
5265
5265
|
return {
|
|
5266
5266
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5267
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
5268
|
-
today: { label: "Сегодня", from:
|
|
5269
|
-
yesterday: { label: "Вчера", from:
|
|
5270
|
-
tomorrow: { label: "Завтра", from: Er(), to:
|
|
5267
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: Zr(r), to: Xr(r) },
|
|
5268
|
+
today: { label: "Сегодня", from: Ne(), to: Yr() },
|
|
5269
|
+
yesterday: { label: "Вчера", from: Qr(), to: Kr() },
|
|
5270
|
+
tomorrow: { label: "Завтра", from: Er(), to: Vr() }
|
|
5271
5271
|
};
|
|
5272
5272
|
}
|
|
5273
5273
|
}
|
|
5274
|
-
class
|
|
5274
|
+
class Lr {
|
|
5275
5275
|
/**
|
|
5276
5276
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
5277
5277
|
*
|
|
@@ -5287,7 +5287,7 @@ class kr {
|
|
|
5287
5287
|
*/
|
|
5288
5288
|
static getProductMultiplicity(r) {
|
|
5289
5289
|
var e, t;
|
|
5290
|
-
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !
|
|
5290
|
+
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !Lr.productIsMeasurable(r) ? r.properties.minCount : 1;
|
|
5291
5291
|
}
|
|
5292
5292
|
/**
|
|
5293
5293
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -5331,7 +5331,7 @@ const ee = class ee extends h {
|
|
|
5331
5331
|
*/
|
|
5332
5332
|
cacheResponse(e, t) {
|
|
5333
5333
|
ee.responseDataCache.set(e, {
|
|
5334
|
-
validTo:
|
|
5334
|
+
validTo: et(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
5335
5335
|
val: t
|
|
5336
5336
|
});
|
|
5337
5337
|
}
|
|
@@ -5348,7 +5348,7 @@ const ee = class ee extends h {
|
|
|
5348
5348
|
getTypedDataArrayRequester(e, t, i = !1, o = {}) {
|
|
5349
5349
|
const c = t + (re(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? ee.getCachedResponse(c) : void 0;
|
|
5350
5350
|
return u ? Promise.resolve(u) : this.get(t, o).then((p) => {
|
|
5351
|
-
const m = p.map((f) =>
|
|
5351
|
+
const m = p.map((f) => We.instanceInitializer(e, f));
|
|
5352
5352
|
return i && m && this.cacheResponse(t, m), m;
|
|
5353
5353
|
});
|
|
5354
5354
|
}
|
|
@@ -5358,11 +5358,11 @@ const ee = class ee extends h {
|
|
|
5358
5358
|
*/
|
|
5359
5359
|
s(ee, "responseDataCache", /* @__PURE__ */ new Map());
|
|
5360
5360
|
let fe = ee;
|
|
5361
|
-
function
|
|
5361
|
+
function ws(n, r) {
|
|
5362
5362
|
const e = [2, 0, 1, 1, 1, 2];
|
|
5363
5363
|
return r[n % 100 > 4 && n % 100 < 20 ? 2 : e[Math.min(n % 10, 5)]];
|
|
5364
5364
|
}
|
|
5365
|
-
class
|
|
5365
|
+
class vs {
|
|
5366
5366
|
/**
|
|
5367
5367
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5368
5368
|
*/
|
|
@@ -5378,7 +5378,7 @@ class ys {
|
|
|
5378
5378
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5379
5379
|
}
|
|
5380
5380
|
}
|
|
5381
|
-
class
|
|
5381
|
+
class Dt extends fe {
|
|
5382
5382
|
/**
|
|
5383
5383
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5384
5384
|
*/
|
|
@@ -5386,11 +5386,11 @@ class Rt extends fe {
|
|
|
5386
5386
|
const r = "/internal/managers", e = fe.getCachedResponse(r);
|
|
5387
5387
|
if (e)
|
|
5388
5388
|
return e;
|
|
5389
|
-
const i = (await this.get(r)).data.map((o) =>
|
|
5389
|
+
const i = (await this.get(r)).data.map((o) => We.instanceInitializer(ae, o));
|
|
5390
5390
|
return this.cacheResponse(r, i), i;
|
|
5391
5391
|
}
|
|
5392
5392
|
}
|
|
5393
|
-
class
|
|
5393
|
+
class _r extends J {
|
|
5394
5394
|
/**
|
|
5395
5395
|
* Инициализирует экземпляр класса {@link OfferShortInfo}.
|
|
5396
5396
|
*
|
|
@@ -5414,10 +5414,10 @@ class Lr extends J {
|
|
|
5414
5414
|
* @inheritDoc
|
|
5415
5415
|
*/
|
|
5416
5416
|
s(this, "sum");
|
|
5417
|
-
this.name = e == null ? void 0 : e.name, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.client = new
|
|
5417
|
+
this.name = e == null ? void 0 : e.name, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.client = new V(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum;
|
|
5418
5418
|
}
|
|
5419
5419
|
}
|
|
5420
|
-
class X extends
|
|
5420
|
+
class X extends _r {
|
|
5421
5421
|
/**
|
|
5422
5422
|
* Инициализирует экземпляр класса {@link Offer}.
|
|
5423
5423
|
*
|
|
@@ -5433,10 +5433,10 @@ class X extends Lr {
|
|
|
5433
5433
|
* @inheritDoc
|
|
5434
5434
|
*/
|
|
5435
5435
|
s(this, "products");
|
|
5436
|
-
this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => new
|
|
5436
|
+
this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => new vr(t));
|
|
5437
5437
|
}
|
|
5438
5438
|
}
|
|
5439
|
-
class
|
|
5439
|
+
class as extends Qe {
|
|
5440
5440
|
/**
|
|
5441
5441
|
* Инициализирует экземпляр класса {@link OffersListFilters}.
|
|
5442
5442
|
*
|
|
@@ -5477,9 +5477,9 @@ class ws extends Ke {
|
|
|
5477
5477
|
return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, e;
|
|
5478
5478
|
}
|
|
5479
5479
|
}
|
|
5480
|
-
class
|
|
5480
|
+
class $e extends w {
|
|
5481
5481
|
}
|
|
5482
|
-
class Ir extends
|
|
5482
|
+
class Ir extends kr {
|
|
5483
5483
|
/**
|
|
5484
5484
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
5485
5485
|
*
|
|
@@ -5536,7 +5536,7 @@ class Ir extends Sr {
|
|
|
5536
5536
|
* @inheritDoc
|
|
5537
5537
|
*/
|
|
5538
5538
|
s(this, "isLargeOrder");
|
|
5539
|
-
this.client = new
|
|
5539
|
+
this.client = new V(e == null ? void 0 : e.client), this.payment = {
|
|
5540
5540
|
type: ((t = e == null ? void 0 : e.payment) == null ? void 0 : t.type) ?? -1,
|
|
5541
5541
|
status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
|
|
5542
5542
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
@@ -5545,10 +5545,10 @@ class Ir extends Sr {
|
|
|
5545
5545
|
date: a((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
|
|
5546
5546
|
address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new pe(e.delivery.address) : void 0,
|
|
5547
5547
|
warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new we(e.delivery.warehouse) : void 0
|
|
5548
|
-
}, this.attachedUser = e != null && e.attachedUser ? new
|
|
5548
|
+
}, this.attachedUser = e != null && e.attachedUser ? new I(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 = a(e == null ? void 0 : e.attachedAt) ? C(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;
|
|
5549
5549
|
}
|
|
5550
5550
|
}
|
|
5551
|
-
class
|
|
5551
|
+
class dt extends wr {
|
|
5552
5552
|
/**
|
|
5553
5553
|
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
5554
5554
|
*
|
|
@@ -5605,7 +5605,7 @@ class Dt extends yr {
|
|
|
5605
5605
|
* Продукт, которым заменена текущая запись.
|
|
5606
5606
|
*/
|
|
5607
5607
|
s(this, "replacement");
|
|
5608
|
-
this.product = new
|
|
5608
|
+
this.product = new B(e.product), this.currency = new x(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, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
|
|
5609
5609
|
}
|
|
5610
5610
|
}
|
|
5611
5611
|
class b extends Ir {
|
|
@@ -5672,11 +5672,11 @@ class b extends Ir {
|
|
|
5672
5672
|
this.products = (e.products ?? []).map((i) => {
|
|
5673
5673
|
var c;
|
|
5674
5674
|
const o = i.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === i.replacementId) : void 0;
|
|
5675
|
-
return new
|
|
5676
|
-
}), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? De.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 = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new
|
|
5675
|
+
return new dt(i, o);
|
|
5676
|
+
}), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? De.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 = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new $e(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
|
|
5677
5677
|
}
|
|
5678
5678
|
}
|
|
5679
|
-
class
|
|
5679
|
+
class Cs extends Ce {
|
|
5680
5680
|
/**
|
|
5681
5681
|
* Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
|
|
5682
5682
|
*
|
|
@@ -5696,7 +5696,7 @@ class vs extends Ce {
|
|
|
5696
5696
|
{},
|
|
5697
5697
|
(o) => {
|
|
5698
5698
|
const c = { ...o.data };
|
|
5699
|
-
return c.data = c.data.map((u) => new
|
|
5699
|
+
return c.data = c.data.map((u) => new _r(u)), c;
|
|
5700
5700
|
},
|
|
5701
5701
|
void 0,
|
|
5702
5702
|
i
|
|
@@ -5876,7 +5876,7 @@ class vs extends Ce {
|
|
|
5876
5876
|
}
|
|
5877
5877
|
}
|
|
5878
5878
|
var At = /* @__PURE__ */ ((n) => (n.View = "view", n.Share = "share", n.EditTags = "edit_tags", n.SaveOrderIgnoredProducts = "save_order_ignored_products", n.ChangeStatus = "change_status", n.ChangeProducts = "change_products", n.ChangeOrderParameters = "change_order_parameters", n.Recalculate = "recalculate", n.AttachOrder = "attach_order", n.DetachOrder = "detach_order", n.ChangeAttachedOperator = "change_attached_operator", n.SendOnlinePaymentLink = "send_online_payment_link", n.ConfirmOnlineFullPayment = "confirm_online_full_payment", n.MergeOrders = "merge_orders", n.GetHistory = "get_history", n.CloneOrder = "clone_order", n.DeleteAttachedFile = "delete_attached_file", n))(At || {});
|
|
5879
|
-
class
|
|
5879
|
+
class Ps {
|
|
5880
5880
|
/**
|
|
5881
5881
|
* Инициализирует экземпляр класса {@link OrderEditorData}.
|
|
5882
5882
|
*
|
|
@@ -5943,11 +5943,11 @@ class as {
|
|
|
5943
5943
|
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 = (t = r == null ? void 0 : r.delivery.address) == null ? void 0 : t.id, this.warehouseId = (i = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : i.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;
|
|
5944
5944
|
}
|
|
5945
5945
|
}
|
|
5946
|
-
class _r extends w {
|
|
5947
|
-
}
|
|
5948
5946
|
class Or extends w {
|
|
5949
5947
|
}
|
|
5950
|
-
class
|
|
5948
|
+
class xr extends w {
|
|
5949
|
+
}
|
|
5950
|
+
class Rs extends Qe {
|
|
5951
5951
|
/**
|
|
5952
5952
|
* Инициализирует экземпляр класса {@link OrdersListFilters}.
|
|
5953
5953
|
*
|
|
@@ -6048,7 +6048,7 @@ class Cs extends Ke {
|
|
|
6048
6048
|
* @inheritDoc
|
|
6049
6049
|
*/
|
|
6050
6050
|
s(this, "onlyMyRegions");
|
|
6051
|
-
this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new ae(u) : new
|
|
6051
|
+
this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new ae(u) : new Or(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new V(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new I(e.creator) : void 0, this.deliveryDate = new A(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new Ae(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 A(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 xr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new we(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
|
|
6052
6052
|
}
|
|
6053
6053
|
/**
|
|
6054
6054
|
* @inheritDoc
|
|
@@ -6120,10 +6120,10 @@ class $t {
|
|
|
6120
6120
|
* @inheritDoc
|
|
6121
6121
|
*/
|
|
6122
6122
|
s(this, "createdAt");
|
|
6123
|
-
this.user = new
|
|
6123
|
+
this.user = new I(r == null ? void 0 : r.user), this.status = new $e(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new w(r.statusDetail) : void 0, this.createdAt = a(r == null ? void 0 : r.createdAt) ? C(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
|
|
6124
6124
|
}
|
|
6125
6125
|
}
|
|
6126
|
-
class
|
|
6126
|
+
class Ds extends Ce {
|
|
6127
6127
|
/**
|
|
6128
6128
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
6129
6129
|
*
|
|
@@ -6160,7 +6160,7 @@ class Ps extends Ce {
|
|
|
6160
6160
|
getOrdersCount(r, e = void 0) {
|
|
6161
6161
|
return this.get(
|
|
6162
6162
|
"/internal/orders/count",
|
|
6163
|
-
r ? { filters: JSON.stringify((r instanceof
|
|
6163
|
+
r ? { filters: JSON.stringify((r instanceof j ? r : new j(r)).toPrimitive()) } : {},
|
|
6164
6164
|
void 0,
|
|
6165
6165
|
void 0,
|
|
6166
6166
|
e
|
|
@@ -6366,6 +6366,39 @@ class Ps extends Ce {
|
|
|
6366
6366
|
(e) => e.data.map((t) => new $t(t))
|
|
6367
6367
|
);
|
|
6368
6368
|
}
|
|
6369
|
+
/**
|
|
6370
|
+
* Возвращает содержимое печатной формы заказа в формате HTML.
|
|
6371
|
+
*
|
|
6372
|
+
* @param orderId Идентификатор заказа.
|
|
6373
|
+
* @param options Параметры состава печатной формы.
|
|
6374
|
+
*
|
|
6375
|
+
* @see /doc/api/internal#/Заказы/api_internal_order_print_view_html
|
|
6376
|
+
*/
|
|
6377
|
+
getOrderPrintHtml(r, e) {
|
|
6378
|
+
return this.get(`/internal/orders/${r}/print/view`, { ...e }, (t) => new Blob([t.data], { type: "text/html" }));
|
|
6379
|
+
}
|
|
6380
|
+
/**
|
|
6381
|
+
* Возвращает файл печатной формы заказа в формате PDF.
|
|
6382
|
+
*
|
|
6383
|
+
* @param orderId Идентификатор заказа.
|
|
6384
|
+
* @param options Параметры состава печатной формы.
|
|
6385
|
+
*
|
|
6386
|
+
* @see /doc/api/internal#/Заказы/api_internal_order_print_download
|
|
6387
|
+
*/
|
|
6388
|
+
getOrderPrintPdf(r, e) {
|
|
6389
|
+
return this.getBlob(`/internal/orders/${r}/print/download`, { ...e }, (t) => new Blob([t.request.response], { type: "application/pdf" }));
|
|
6390
|
+
}
|
|
6391
|
+
/**
|
|
6392
|
+
* Отправляет печатную форму заказа в формате PDF на указанный адрес электронной почты.
|
|
6393
|
+
*
|
|
6394
|
+
* @param orderId Идентификатор заказа.
|
|
6395
|
+
* @param data Данные для отправки (e-mail, дополнительные файлы, параметры состава печатной формы).
|
|
6396
|
+
*
|
|
6397
|
+
* @see /doc/api/internal#/Заказы/api_internal_order_print_send
|
|
6398
|
+
*/
|
|
6399
|
+
sendOrderPrint(r, e) {
|
|
6400
|
+
return this.post(`/internal/orders/${r}/print/send`, e);
|
|
6401
|
+
}
|
|
6369
6402
|
/**
|
|
6370
6403
|
* Заменяет закреплённого за заказом оператора и возвращает обновлённые данные заказа.
|
|
6371
6404
|
*
|
|
@@ -6472,7 +6505,7 @@ class Ps extends Ce {
|
|
|
6472
6505
|
);
|
|
6473
6506
|
}
|
|
6474
6507
|
}
|
|
6475
|
-
class
|
|
6508
|
+
class Oe {
|
|
6476
6509
|
/**
|
|
6477
6510
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
6478
6511
|
*
|
|
@@ -6499,12 +6532,12 @@ class _e {
|
|
|
6499
6532
|
* Источник клиентской цены.
|
|
6500
6533
|
*/
|
|
6501
6534
|
s(this, "source");
|
|
6502
|
-
this.client = new
|
|
6535
|
+
this.client = new V(r == null ? void 0 : r.client), this.product = new _(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) ?? ze.Product;
|
|
6503
6536
|
}
|
|
6504
6537
|
}
|
|
6505
|
-
const
|
|
6538
|
+
const xe = (n) => {
|
|
6506
6539
|
var r, e, t, i, o;
|
|
6507
|
-
return n ?
|
|
6540
|
+
return n ? hr(
|
|
6508
6541
|
{
|
|
6509
6542
|
cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
|
|
6510
6543
|
clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
|
|
@@ -6513,13 +6546,13 @@ const Oe = (n) => {
|
|
|
6513
6546
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
6514
6547
|
hideNotActive: n.hideNotActive
|
|
6515
6548
|
},
|
|
6516
|
-
(c) => $(c) || (H(c) ||
|
|
6549
|
+
(c) => $(c) || (H(c) || Be(c)) && re(c)
|
|
6517
6550
|
) : {};
|
|
6518
|
-
},
|
|
6551
|
+
}, or = (n) => {
|
|
6519
6552
|
const r = {};
|
|
6520
6553
|
return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
|
|
6521
6554
|
};
|
|
6522
|
-
class
|
|
6555
|
+
class ds extends h {
|
|
6523
6556
|
/**
|
|
6524
6557
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
6525
6558
|
*
|
|
@@ -6533,10 +6566,10 @@ class Rs extends h {
|
|
|
6533
6566
|
return this.get(
|
|
6534
6567
|
`/internal/price/products/${r}/analyze`,
|
|
6535
6568
|
{
|
|
6536
|
-
...
|
|
6537
|
-
filters:
|
|
6569
|
+
...or(e),
|
|
6570
|
+
filters: xe(t)
|
|
6538
6571
|
},
|
|
6539
|
-
(i) => i.data.map((o) => new
|
|
6572
|
+
(i) => i.data.map((o) => new Oe(o))
|
|
6540
6573
|
);
|
|
6541
6574
|
}
|
|
6542
6575
|
/**
|
|
@@ -6552,10 +6585,10 @@ class Rs extends h {
|
|
|
6552
6585
|
return this.get(
|
|
6553
6586
|
`/internal/price/categories/${r}/analyze`,
|
|
6554
6587
|
{
|
|
6555
|
-
...
|
|
6556
|
-
filters:
|
|
6588
|
+
...or(e),
|
|
6589
|
+
filters: xe(t)
|
|
6557
6590
|
},
|
|
6558
|
-
(i) => i.data.map((o) => new
|
|
6591
|
+
(i) => i.data.map((o) => new Oe(o))
|
|
6559
6592
|
);
|
|
6560
6593
|
}
|
|
6561
6594
|
/**
|
|
@@ -6574,13 +6607,13 @@ class Rs extends h {
|
|
|
6574
6607
|
`/internal/price/categories/${r}/analyze/square`,
|
|
6575
6608
|
{
|
|
6576
6609
|
...e,
|
|
6577
|
-
filters:
|
|
6610
|
+
filters: xe(t)
|
|
6578
6611
|
},
|
|
6579
|
-
(i) => i.data.map((o) => new
|
|
6612
|
+
(i) => i.data.map((o) => new Oe(o))
|
|
6580
6613
|
);
|
|
6581
6614
|
}
|
|
6582
6615
|
}
|
|
6583
|
-
class
|
|
6616
|
+
class Tt {
|
|
6584
6617
|
/**
|
|
6585
6618
|
* Инициализирует экземпляр класса {@link PriceHistoryItem}.
|
|
6586
6619
|
*
|
|
@@ -6627,10 +6660,10 @@ class dt {
|
|
|
6627
6660
|
* @inheritDoc
|
|
6628
6661
|
*/
|
|
6629
6662
|
s(this, "currency");
|
|
6630
|
-
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = a(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ge(r.product) : void 0, this.client = r.client ? new
|
|
6663
|
+
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = a(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ge(r.product) : void 0, this.client = r.client ? new I(r.client) : void 0, this.executor = r.executor ? new I(r.executor) : void 0, this.currency = r.currency ? new x(r.currency) : void 0;
|
|
6631
6664
|
}
|
|
6632
6665
|
}
|
|
6633
|
-
class
|
|
6666
|
+
class bt extends ge {
|
|
6634
6667
|
/**
|
|
6635
6668
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
6636
6669
|
*
|
|
@@ -6642,10 +6675,10 @@ class Tt extends ge {
|
|
|
6642
6675
|
* @inheritDoc
|
|
6643
6676
|
*/
|
|
6644
6677
|
s(this, "history");
|
|
6645
|
-
this.history = ye(e.history, (t) => new
|
|
6678
|
+
this.history = ye(e.history, (t) => new Tt(t));
|
|
6646
6679
|
}
|
|
6647
6680
|
}
|
|
6648
|
-
class
|
|
6681
|
+
class As extends h {
|
|
6649
6682
|
/**
|
|
6650
6683
|
* Возвращает данные об истории изменения цен.
|
|
6651
6684
|
*
|
|
@@ -6655,21 +6688,21 @@ class Ds extends h {
|
|
|
6655
6688
|
*/
|
|
6656
6689
|
getProductPriceHistory(r) {
|
|
6657
6690
|
var o, c, u, p, m;
|
|
6658
|
-
const e = k().config.dateFormats.api, t =
|
|
6691
|
+
const e = k().config.dateFormats.api, t = hr(
|
|
6659
6692
|
he(r, {
|
|
6660
6693
|
costDate: {
|
|
6661
|
-
from:
|
|
6662
|
-
to:
|
|
6694
|
+
from: qe((o = r.costDate) == null ? void 0 : o.from) ? L(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
6695
|
+
to: qe((u = r.costDate) == null ? void 0 : u.to) ? L(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
|
|
6663
6696
|
}
|
|
6664
6697
|
}),
|
|
6665
|
-
(f) => $(f) || (H(f) ||
|
|
6698
|
+
(f) => $(f) || (H(f) || Be(f)) && re(f)
|
|
6666
6699
|
), i = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
|
|
6667
6700
|
return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((f) => [
|
|
6668
|
-
new
|
|
6701
|
+
new bt(he(f[0], { history: f }))
|
|
6669
6702
|
]);
|
|
6670
6703
|
}
|
|
6671
6704
|
}
|
|
6672
|
-
class
|
|
6705
|
+
class cr {
|
|
6673
6706
|
/**
|
|
6674
6707
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
6675
6708
|
*
|
|
@@ -6687,7 +6720,7 @@ class or {
|
|
|
6687
6720
|
r != null && r.products && (this.products = r.products.map((e) => new ge(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new ge(e)));
|
|
6688
6721
|
}
|
|
6689
6722
|
}
|
|
6690
|
-
class
|
|
6723
|
+
class $s extends h {
|
|
6691
6724
|
/**
|
|
6692
6725
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
6693
6726
|
*
|
|
@@ -6695,7 +6728,7 @@ class As extends h {
|
|
|
6695
6728
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
6696
6729
|
*/
|
|
6697
6730
|
getProductCategoryRecommendations(r) {
|
|
6698
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new
|
|
6731
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new cr(e.data));
|
|
6699
6732
|
}
|
|
6700
6733
|
/**
|
|
6701
6734
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -6704,7 +6737,7 @@ class As extends h {
|
|
|
6704
6737
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
6705
6738
|
*/
|
|
6706
6739
|
getProductRecommendations(r) {
|
|
6707
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new
|
|
6740
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new cr(e.data));
|
|
6708
6741
|
}
|
|
6709
6742
|
/**
|
|
6710
6743
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -6733,18 +6766,20 @@ class As extends h {
|
|
|
6733
6766
|
});
|
|
6734
6767
|
}
|
|
6735
6768
|
}
|
|
6736
|
-
var
|
|
6737
|
-
class
|
|
6769
|
+
var St = /* @__PURE__ */ ((n) => (n.New = "new", n.Processing = "processing", n.AwaitingSupplyProducts = "awaiting_supply_products", n.InvoiceIssued = "invoice_issued", n.ProcessingOnStock = "processing_on_stock", n.Finished = "finished", n.OrderUpdated = "order_updated", n.Canceled = "canceled", n.Error = "error", n))(St || {}), kt = /* @__PURE__ */ ((n) => (n.CanceledBy1c = "canceled_by1c", n.CanceledByClient = "canceled_by_client", n.FinishedNotApproved = "finished_not_approved", n.ProcessingByPurchasingDepartment = "processing_by_purchasing_department", n.WillWaiting = "will_waiting", n))(kt || {});
|
|
6770
|
+
class Lt extends w {
|
|
6738
6771
|
}
|
|
6739
|
-
class
|
|
6772
|
+
class Ts extends w {
|
|
6740
6773
|
}
|
|
6741
|
-
class
|
|
6774
|
+
class _t extends w {
|
|
6742
6775
|
}
|
|
6743
6776
|
class It extends w {
|
|
6744
6777
|
}
|
|
6745
|
-
class
|
|
6778
|
+
class Ot extends w {
|
|
6779
|
+
}
|
|
6780
|
+
class xt extends w {
|
|
6746
6781
|
}
|
|
6747
|
-
class
|
|
6782
|
+
class bs {
|
|
6748
6783
|
/**
|
|
6749
6784
|
* Генерирует и возвращает данные-заглушку неопределённой записи справочника.
|
|
6750
6785
|
*
|
|
@@ -6763,7 +6798,7 @@ class ds {
|
|
|
6763
6798
|
return r.id === 0 && r.slug === "-undefined-";
|
|
6764
6799
|
}
|
|
6765
6800
|
}
|
|
6766
|
-
class
|
|
6801
|
+
class qr extends w {
|
|
6767
6802
|
}
|
|
6768
6803
|
class T extends fe {
|
|
6769
6804
|
/**
|
|
@@ -6774,26 +6809,26 @@ class T extends fe {
|
|
|
6774
6809
|
* и использовать в случае аналогичных запросов.
|
|
6775
6810
|
*/
|
|
6776
6811
|
getReference(r, e = !1) {
|
|
6777
|
-
return this.getTypedDataArrayRequester(
|
|
6812
|
+
return this.getTypedDataArrayRequester(Lt, `/internal/references/${r}`, e);
|
|
6778
6813
|
}
|
|
6779
6814
|
/**
|
|
6780
6815
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
6781
6816
|
* первичного интереса.
|
|
6782
6817
|
*/
|
|
6783
6818
|
getChannelPrimaryInterest() {
|
|
6784
|
-
return this.getTypedDataArrayRequester(
|
|
6819
|
+
return this.getTypedDataArrayRequester(br, "/internal/references/channel-primary-interest", !0);
|
|
6785
6820
|
}
|
|
6786
6821
|
/**
|
|
6787
6822
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
6788
6823
|
*/
|
|
6789
6824
|
getContactPositions() {
|
|
6790
|
-
return this.getTypedDataArrayRequester(
|
|
6825
|
+
return this.getTypedDataArrayRequester(_t, "/internal/references/contact-position", !0);
|
|
6791
6826
|
}
|
|
6792
6827
|
/**
|
|
6793
6828
|
* Возвращает {@link Promise} для получения справочника списка направлений кураторства.
|
|
6794
6829
|
*/
|
|
6795
6830
|
getCuratedDirection() {
|
|
6796
|
-
return this.getTypedDataArrayRequester(
|
|
6831
|
+
return this.getTypedDataArrayRequester(Ve, "/internal/references/curated-direction", !0);
|
|
6797
6832
|
}
|
|
6798
6833
|
/**
|
|
6799
6834
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
@@ -6818,7 +6853,7 @@ class T extends fe {
|
|
|
6818
6853
|
* Возвращает {@link Promise} для получения справочника операторов.
|
|
6819
6854
|
*/
|
|
6820
6855
|
getOperators() {
|
|
6821
|
-
return this.getTypedDataArrayRequester(
|
|
6856
|
+
return this.getTypedDataArrayRequester(Or, "/internal/references/operator", !0);
|
|
6822
6857
|
}
|
|
6823
6858
|
/**
|
|
6824
6859
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
@@ -6830,19 +6865,25 @@ class T extends fe {
|
|
|
6830
6865
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
6831
6866
|
*/
|
|
6832
6867
|
getOrderStatuses() {
|
|
6833
|
-
return this.getTypedDataArrayRequester(
|
|
6868
|
+
return this.getTypedDataArrayRequester($e, "/internal/references/order-status", !0);
|
|
6869
|
+
}
|
|
6870
|
+
/**
|
|
6871
|
+
* Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
|
|
6872
|
+
*/
|
|
6873
|
+
getOrderStatusDetails() {
|
|
6874
|
+
return this.getTypedDataArrayRequester(Ot, "/internal/references/order-status-detail", !0);
|
|
6834
6875
|
}
|
|
6835
6876
|
/**
|
|
6836
6877
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
6837
6878
|
*/
|
|
6838
6879
|
getPaymentTypes() {
|
|
6839
|
-
return this.getTypedDataArrayRequester(
|
|
6880
|
+
return this.getTypedDataArrayRequester(xr, "/public/references/payment-type", !0);
|
|
6840
6881
|
}
|
|
6841
6882
|
/**
|
|
6842
6883
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
6843
6884
|
*/
|
|
6844
6885
|
getResourceTypes() {
|
|
6845
|
-
return this.getTypedDataArrayRequester(
|
|
6886
|
+
return this.getTypedDataArrayRequester(qr, "/internal/references/resource-type", !0);
|
|
6846
6887
|
}
|
|
6847
6888
|
/**
|
|
6848
6889
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
@@ -6854,7 +6895,7 @@ class T extends fe {
|
|
|
6854
6895
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
6855
6896
|
*/
|
|
6856
6897
|
getSourcePrimaryInterest() {
|
|
6857
|
-
return this.getTypedDataArrayRequester(
|
|
6898
|
+
return this.getTypedDataArrayRequester(Sr, "/internal/references/source-primary-interest", !0);
|
|
6858
6899
|
}
|
|
6859
6900
|
/**
|
|
6860
6901
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -6862,7 +6903,7 @@ class T extends fe {
|
|
|
6862
6903
|
* @param term Терм поиска.
|
|
6863
6904
|
*/
|
|
6864
6905
|
searchCity(r) {
|
|
6865
|
-
return this.getTypedDataArrayRequester(
|
|
6906
|
+
return this.getTypedDataArrayRequester(Ae, `/internal/references/city-with-region-and-country/search?term=${r}`);
|
|
6866
6907
|
}
|
|
6867
6908
|
/**
|
|
6868
6909
|
* Выполняет поиск данных о регионах по терму в названии.
|
|
@@ -6896,23 +6937,23 @@ class T extends fe {
|
|
|
6896
6937
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
6897
6938
|
*/
|
|
6898
6939
|
getPropertyTypes() {
|
|
6899
|
-
return this.getTypedDataArrayRequester(
|
|
6940
|
+
return this.getTypedDataArrayRequester(Dr, "/internal/references/property-type", !0);
|
|
6900
6941
|
}
|
|
6901
6942
|
/**
|
|
6902
6943
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
6903
6944
|
*/
|
|
6904
6945
|
getPriceCoefficients() {
|
|
6905
|
-
return this.getTypedDataArrayRequester(
|
|
6946
|
+
return this.getTypedDataArrayRequester(de, "/internal/references/price-coefficient", !0);
|
|
6906
6947
|
}
|
|
6907
6948
|
/**
|
|
6908
6949
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
6909
6950
|
*/
|
|
6910
6951
|
getProductFileType() {
|
|
6911
|
-
return this.getTypedDataArrayRequester(
|
|
6952
|
+
return this.getTypedDataArrayRequester(xt, "/public/references/product-file-type", !0);
|
|
6912
6953
|
}
|
|
6913
6954
|
}
|
|
6914
6955
|
const d = W("common.references_private", () => {
|
|
6915
|
-
const n = y({}), r = y(void 0), e = y(void 0), t = y(void 0), i = 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), ie = y(void 0), ne = y(void 0),
|
|
6956
|
+
const n = y({}), r = y(void 0), e = y(void 0), t = y(void 0), i = 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), ie = y(void 0), ne = y(void 0), E = y(void 0), K = y(void 0), Te = y(void 0), be = y(void 0), Se = y(void 0), l = y(void 0);
|
|
6916
6957
|
return {
|
|
6917
6958
|
/**
|
|
6918
6959
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -6954,44 +6995,48 @@ const d = W("common.references_private", () => {
|
|
|
6954
6995
|
* Справочник статусов заказов.
|
|
6955
6996
|
*/
|
|
6956
6997
|
orderStatusReference: m,
|
|
6998
|
+
/**
|
|
6999
|
+
* Справочник детализирующих статусов (подстатусов) заказов.
|
|
7000
|
+
*/
|
|
7001
|
+
orderStatusDetailReference: f,
|
|
6957
7002
|
/**
|
|
6958
7003
|
* Справочник типов оплаты заказов.
|
|
6959
7004
|
*/
|
|
6960
|
-
paymentTypeReference:
|
|
7005
|
+
paymentTypeReference: D,
|
|
6961
7006
|
/**
|
|
6962
7007
|
* Справочник групп партнеров.
|
|
6963
7008
|
*/
|
|
6964
|
-
partnerGroupReference:
|
|
7009
|
+
partnerGroupReference: ie,
|
|
6965
7010
|
/**
|
|
6966
7011
|
* Справочник типов файлов продукктов/категорий.
|
|
6967
7012
|
*/
|
|
6968
|
-
productFileTypeReference:
|
|
7013
|
+
productFileTypeReference: ne,
|
|
6969
7014
|
/**
|
|
6970
7015
|
* Справочник типов ресурсов.
|
|
6971
7016
|
*/
|
|
6972
|
-
resourceTypesReference:
|
|
7017
|
+
resourceTypesReference: E,
|
|
6973
7018
|
/**
|
|
6974
7019
|
* Справочник направлений продаж.
|
|
6975
7020
|
*/
|
|
6976
|
-
salesDirectionsReference:
|
|
7021
|
+
salesDirectionsReference: K,
|
|
6977
7022
|
/**
|
|
6978
7023
|
* Справочник источников первичного интереса.
|
|
6979
7024
|
*/
|
|
6980
|
-
sourcePrimaryInterestReference:
|
|
7025
|
+
sourcePrimaryInterestReference: Te,
|
|
6981
7026
|
/**
|
|
6982
7027
|
* Справочник складов.
|
|
6983
7028
|
*/
|
|
6984
|
-
warehousesReference:
|
|
7029
|
+
warehousesReference: be,
|
|
6985
7030
|
/**
|
|
6986
7031
|
* Справочник типов свойств.
|
|
6987
7032
|
*/
|
|
6988
|
-
propertyTypesReference:
|
|
7033
|
+
propertyTypesReference: Se,
|
|
6989
7034
|
/**
|
|
6990
7035
|
* Справочник коэффициентов цен.
|
|
6991
7036
|
*/
|
|
6992
7037
|
priceCoefficientsReference: l
|
|
6993
7038
|
};
|
|
6994
|
-
}),
|
|
7039
|
+
}), Ss = W("common.references", () => {
|
|
6995
7040
|
const n = R(() => {
|
|
6996
7041
|
const l = d();
|
|
6997
7042
|
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((g) => {
|
|
@@ -7028,56 +7073,61 @@ const d = W("common.references_private", () => {
|
|
|
7028
7073
|
l.orderStatusReference = g;
|
|
7029
7074
|
}).catch(v)), l.orderStatusReference;
|
|
7030
7075
|
}), u = R(() => {
|
|
7076
|
+
const l = d();
|
|
7077
|
+
return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(T).getOrderStatusDetails().then((g) => {
|
|
7078
|
+
l.orderStatusDetailReference = g;
|
|
7079
|
+
}).catch(v)), l.orderStatusDetailReference;
|
|
7080
|
+
}), p = R(() => {
|
|
7031
7081
|
const l = d();
|
|
7032
7082
|
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((g) => {
|
|
7033
7083
|
l.paymentTypeReference = g;
|
|
7034
7084
|
}).catch(v)), l.paymentTypeReference;
|
|
7035
|
-
}),
|
|
7085
|
+
}), m = R(() => {
|
|
7036
7086
|
const l = d();
|
|
7037
7087
|
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((g) => {
|
|
7038
7088
|
l.partnerGroupReference = g;
|
|
7039
7089
|
}).catch(v)), l.partnerGroupReference;
|
|
7040
|
-
}),
|
|
7090
|
+
}), f = R(() => {
|
|
7041
7091
|
const l = d();
|
|
7042
7092
|
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((g) => {
|
|
7043
7093
|
l.productFileTypeReference = g;
|
|
7044
7094
|
}).catch(v)), l.productFileTypeReference;
|
|
7045
|
-
}),
|
|
7095
|
+
}), D = R(() => {
|
|
7046
7096
|
const l = d();
|
|
7047
7097
|
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((g) => {
|
|
7048
7098
|
l.resourceTypesReference = g;
|
|
7049
7099
|
}).catch(v)), l.resourceTypesReference;
|
|
7050
|
-
}),
|
|
7100
|
+
}), ie = R(() => {
|
|
7051
7101
|
const l = d();
|
|
7052
7102
|
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(T).getSalesDirections().then((g) => {
|
|
7053
7103
|
l.salesDirectionsReference = g;
|
|
7054
7104
|
}).catch(v)), l.salesDirectionsReference;
|
|
7055
|
-
}),
|
|
7105
|
+
}), ne = R(() => {
|
|
7056
7106
|
const l = d();
|
|
7057
7107
|
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((g) => {
|
|
7058
7108
|
l.sourcePrimaryInterestReference = g;
|
|
7059
7109
|
}).catch(v)), l.sourcePrimaryInterestReference;
|
|
7060
|
-
}),
|
|
7110
|
+
}), E = R(() => {
|
|
7061
7111
|
const l = d();
|
|
7062
7112
|
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(T).getDeliveryTypes().then((g) => {
|
|
7063
7113
|
l.deliveryTypeReference = g;
|
|
7064
7114
|
}).catch(v)), l.deliveryTypeReference;
|
|
7065
|
-
}),
|
|
7115
|
+
}), K = R(() => {
|
|
7066
7116
|
const l = d();
|
|
7067
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(
|
|
7117
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Dt).getManagers().then((g) => {
|
|
7068
7118
|
l.managersList = g;
|
|
7069
7119
|
}).catch(v)), l.managersList;
|
|
7070
|
-
}),
|
|
7120
|
+
}), Te = R(() => {
|
|
7071
7121
|
const l = d();
|
|
7072
7122
|
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(T).getWarehouses().then((g) => {
|
|
7073
7123
|
l.warehousesReference = g;
|
|
7074
7124
|
}).catch(v)), l.warehousesReference;
|
|
7075
|
-
}),
|
|
7125
|
+
}), be = R(() => {
|
|
7076
7126
|
const l = d();
|
|
7077
7127
|
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(T).getPropertyTypes().then((g) => {
|
|
7078
7128
|
l.propertyTypesReference = g;
|
|
7079
7129
|
}).catch(v)), l.propertyTypesReference;
|
|
7080
|
-
}),
|
|
7130
|
+
}), Se = R(() => {
|
|
7081
7131
|
const l = d();
|
|
7082
7132
|
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(T).getPriceCoefficients().then((g) => {
|
|
7083
7133
|
l.priceCoefficientsReference = g;
|
|
@@ -7112,53 +7162,57 @@ const d = W("common.references_private", () => {
|
|
|
7112
7162
|
* Справочник статусов заказов.
|
|
7113
7163
|
*/
|
|
7114
7164
|
orderStatusReference: c,
|
|
7165
|
+
/**
|
|
7166
|
+
* Справочник детализирующих статусов (подстатусов) заказов.
|
|
7167
|
+
*/
|
|
7168
|
+
orderStatusDetailReference: u,
|
|
7115
7169
|
/**
|
|
7116
7170
|
* Справочник типов оплаты заказов.
|
|
7117
7171
|
*/
|
|
7118
|
-
paymentTypeReference:
|
|
7172
|
+
paymentTypeReference: p,
|
|
7119
7173
|
/**
|
|
7120
7174
|
* Справочник групп партнеров.
|
|
7121
7175
|
*/
|
|
7122
|
-
partnerGroupsReference:
|
|
7176
|
+
partnerGroupsReference: m,
|
|
7123
7177
|
/**
|
|
7124
7178
|
* Справочник типов файлов продуктов/категорий.
|
|
7125
7179
|
*/
|
|
7126
|
-
productFilesTypesReference:
|
|
7180
|
+
productFilesTypesReference: f,
|
|
7127
7181
|
/**
|
|
7128
7182
|
* Справочник типов ресурсов.
|
|
7129
7183
|
*/
|
|
7130
|
-
resourceTypesReference:
|
|
7184
|
+
resourceTypesReference: D,
|
|
7131
7185
|
/**
|
|
7132
7186
|
* Справочник направлений продаж.
|
|
7133
7187
|
*/
|
|
7134
|
-
salesDirectionsReference:
|
|
7188
|
+
salesDirectionsReference: ie,
|
|
7135
7189
|
/**
|
|
7136
7190
|
* Справочник каналов первичного интереса.
|
|
7137
7191
|
*/
|
|
7138
|
-
sourcePrimaryInterestsReference:
|
|
7192
|
+
sourcePrimaryInterestsReference: ne,
|
|
7139
7193
|
/**
|
|
7140
7194
|
* Справочник типов доставки.
|
|
7141
7195
|
*/
|
|
7142
|
-
deliveryTypeReference:
|
|
7196
|
+
deliveryTypeReference: E,
|
|
7143
7197
|
/**
|
|
7144
7198
|
* Список менеджеров.
|
|
7145
7199
|
*/
|
|
7146
|
-
managersList:
|
|
7200
|
+
managersList: K,
|
|
7147
7201
|
/**
|
|
7148
7202
|
* Справочник складов.
|
|
7149
7203
|
*/
|
|
7150
|
-
warehousesReference:
|
|
7204
|
+
warehousesReference: Te,
|
|
7151
7205
|
/**
|
|
7152
7206
|
* Справочник типов свойств.
|
|
7153
7207
|
*/
|
|
7154
|
-
propertyTypesReference:
|
|
7208
|
+
propertyTypesReference: be,
|
|
7155
7209
|
/**
|
|
7156
7210
|
* Справочник коэффициентов цен.
|
|
7157
7211
|
*/
|
|
7158
|
-
priceCoefficientsReference:
|
|
7212
|
+
priceCoefficientsReference: Se
|
|
7159
7213
|
};
|
|
7160
7214
|
});
|
|
7161
|
-
class
|
|
7215
|
+
class qt {
|
|
7162
7216
|
/**
|
|
7163
7217
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
7164
7218
|
*
|
|
@@ -7176,7 +7230,7 @@ class Ot {
|
|
|
7176
7230
|
this.name = r.name, this.content = r.content;
|
|
7177
7231
|
}
|
|
7178
7232
|
}
|
|
7179
|
-
class
|
|
7233
|
+
class lr {
|
|
7180
7234
|
/**
|
|
7181
7235
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
7182
7236
|
*
|
|
@@ -7216,10 +7270,10 @@ class cr {
|
|
|
7216
7270
|
*/
|
|
7217
7271
|
s(this, "tags");
|
|
7218
7272
|
var e;
|
|
7219
|
-
this.resourceType = new
|
|
7273
|
+
this.resourceType = new qr(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((t) => new qt(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
|
|
7220
7274
|
}
|
|
7221
7275
|
}
|
|
7222
|
-
class
|
|
7276
|
+
class ks extends h {
|
|
7223
7277
|
/**
|
|
7224
7278
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
7225
7279
|
*
|
|
@@ -7227,7 +7281,7 @@ class bs extends h {
|
|
|
7227
7281
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
7228
7282
|
*/
|
|
7229
7283
|
getResourceSeoData(r, e) {
|
|
7230
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new
|
|
7284
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new lr(t.data));
|
|
7231
7285
|
}
|
|
7232
7286
|
/**
|
|
7233
7287
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -7238,7 +7292,7 @@ class bs extends h {
|
|
|
7238
7292
|
* в случае ошибок в запросах.
|
|
7239
7293
|
*/
|
|
7240
7294
|
saveResourceSeoData(r, e = {}) {
|
|
7241
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new
|
|
7295
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new lr(t.data), e);
|
|
7242
7296
|
}
|
|
7243
7297
|
/**
|
|
7244
7298
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -7250,7 +7304,7 @@ class bs extends h {
|
|
|
7250
7304
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
7251
7305
|
}
|
|
7252
7306
|
}
|
|
7253
|
-
class
|
|
7307
|
+
class Ls extends h {
|
|
7254
7308
|
/**
|
|
7255
7309
|
* Возвращает подсказки по адресам.
|
|
7256
7310
|
*
|
|
@@ -7297,8 +7351,8 @@ class Ss extends h {
|
|
|
7297
7351
|
});
|
|
7298
7352
|
}
|
|
7299
7353
|
}
|
|
7300
|
-
var
|
|
7301
|
-
class
|
|
7354
|
+
var Nt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Nt || {});
|
|
7355
|
+
class Ut extends Rr {
|
|
7302
7356
|
/**
|
|
7303
7357
|
* Инициализирует экземпляр класса {@link User}.
|
|
7304
7358
|
*
|
|
@@ -7322,10 +7376,10 @@ class qt extends Pr {
|
|
|
7322
7376
|
* Роль ценообразования текущего пользователя.
|
|
7323
7377
|
*/
|
|
7324
7378
|
s(this, "pricingRole");
|
|
7325
|
-
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
|
|
7379
|
+
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 Cr(e.pricingRole) : void 0;
|
|
7326
7380
|
}
|
|
7327
7381
|
}
|
|
7328
|
-
class
|
|
7382
|
+
class _s extends h {
|
|
7329
7383
|
/**
|
|
7330
7384
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
7331
7385
|
*/
|
|
@@ -7341,16 +7395,16 @@ class ks extends h {
|
|
|
7341
7395
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
7342
7396
|
}
|
|
7343
7397
|
}
|
|
7344
|
-
class
|
|
7398
|
+
class Ft extends h {
|
|
7345
7399
|
/**
|
|
7346
7400
|
* Возвращает данные о текущем пользователе.
|
|
7347
7401
|
*/
|
|
7348
7402
|
// eslint-disable-next-line class-methods-use-this
|
|
7349
7403
|
getCurrentUser() {
|
|
7350
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
7404
|
+
return this.get("/internal/users/info", {}, (r) => new Ut(r.data), !0);
|
|
7351
7405
|
}
|
|
7352
7406
|
}
|
|
7353
|
-
const
|
|
7407
|
+
const Ht = W("common.user_state_private", () => {
|
|
7354
7408
|
const n = y({}), r = y(void 0);
|
|
7355
7409
|
return {
|
|
7356
7410
|
/**
|
|
@@ -7362,20 +7416,20 @@ const Ut = W("common.user_state_private", () => {
|
|
|
7362
7416
|
*/
|
|
7363
7417
|
currentUser: r
|
|
7364
7418
|
};
|
|
7365
|
-
}),
|
|
7419
|
+
}), Is = W("common.user_state", () => ({
|
|
7366
7420
|
/**
|
|
7367
7421
|
* Данные о текущем пользователе.
|
|
7368
7422
|
*/
|
|
7369
7423
|
currentUser: R(() => {
|
|
7370
|
-
const r =
|
|
7371
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(
|
|
7424
|
+
const r = Ht();
|
|
7425
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Ft).getCurrentUser().then((e) => {
|
|
7372
7426
|
r.currentUser = e;
|
|
7373
7427
|
}).catch(v).finally(() => {
|
|
7374
7428
|
r.dataLoaderList.currentUser = !1;
|
|
7375
7429
|
})), r.currentUser;
|
|
7376
7430
|
})
|
|
7377
7431
|
}));
|
|
7378
|
-
class
|
|
7432
|
+
class Os {
|
|
7379
7433
|
/**
|
|
7380
7434
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
7381
7435
|
*
|
|
@@ -7399,167 +7453,168 @@ class Is {
|
|
|
7399
7453
|
}
|
|
7400
7454
|
}
|
|
7401
7455
|
export {
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7456
|
+
Lt as AnyReference,
|
|
7457
|
+
ct as AppBaseConfig,
|
|
7458
|
+
Fe as BankAccount,
|
|
7405
7459
|
Ce as BasePaginationProvider,
|
|
7406
|
-
|
|
7460
|
+
gt as CalculationTypeEnum,
|
|
7407
7461
|
oe as Cart,
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7462
|
+
Qt as CartProvider,
|
|
7463
|
+
Xt as CatalogProvider,
|
|
7464
|
+
yr as CatalogableItem,
|
|
7411
7465
|
N as Category,
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7466
|
+
rr as CategoryPricingRule,
|
|
7467
|
+
br as ChannelPrimaryInterest,
|
|
7468
|
+
Ts as City,
|
|
7469
|
+
Ae as CityWithRegionAndCountry,
|
|
7470
|
+
nr as Client,
|
|
7471
|
+
at as ClientAdditionalData,
|
|
7418
7472
|
Re as ClientCategory,
|
|
7419
7473
|
O as ClientDataProvider,
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7474
|
+
Zt as ClientPriceProvider,
|
|
7475
|
+
es as ClientPriceTemplateProvider,
|
|
7476
|
+
B as ClientProduct,
|
|
7477
|
+
ss as ClientProductCategoryDataProvider,
|
|
7478
|
+
is as ClientProductDataProvider,
|
|
7479
|
+
V as ClientShortInfo,
|
|
7480
|
+
yt as ClientsAdditionalDataRequestTypeEnum,
|
|
7481
|
+
us as ClientsListFilters,
|
|
7428
7482
|
ge as CodedIdentity,
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7483
|
+
gs as ConfiguratorProvider,
|
|
7484
|
+
Pt as ConfiguratorsEnum,
|
|
7485
|
+
He as Contact,
|
|
7486
|
+
ar as ContactLinks,
|
|
7487
|
+
G as ContactPerson,
|
|
7488
|
+
Ct as ContactPersonRelated,
|
|
7489
|
+
_t as ContactPosition,
|
|
7436
7490
|
Ie as ContactRelation,
|
|
7437
7491
|
Ar as ContragentBase,
|
|
7438
7492
|
De as ContragentFactory,
|
|
7439
7493
|
$r as ContragentIc,
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7494
|
+
wt as ContragentPerson,
|
|
7495
|
+
vt as ContragentUlNr,
|
|
7496
|
+
Tr as ContragentUlR,
|
|
7497
|
+
ze as CostSourceEnum,
|
|
7444
7498
|
te as Country,
|
|
7445
|
-
|
|
7499
|
+
Ve as CuratedDirection,
|
|
7446
7500
|
Ee as Curator,
|
|
7447
7501
|
x as Currency,
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7502
|
+
Ls as DataSuggestionProvider,
|
|
7503
|
+
ys as DateTimeProvider,
|
|
7504
|
+
dr as DeletableNamedIdentity,
|
|
7451
7505
|
pe as DeliveryAddress,
|
|
7452
7506
|
F as DeliveryType,
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7507
|
+
Et as DetailedJwtPayload,
|
|
7508
|
+
st as DeviceTypeResolutionConfig,
|
|
7509
|
+
lt as DiscountShortInfo,
|
|
7510
|
+
Os as FieldValidationResultData,
|
|
7511
|
+
j as FilterGroup,
|
|
7512
|
+
tr as FilterItem,
|
|
7513
|
+
Ke as FilterOpEnum,
|
|
7514
|
+
fr as GeoCoordinates,
|
|
7515
|
+
pt as HiddenCatalogableItem,
|
|
7462
7516
|
fe as HttpCachedRequester,
|
|
7463
|
-
|
|
7517
|
+
it as HttpParamsConfig,
|
|
7464
7518
|
h as HttpRequester,
|
|
7465
7519
|
J as Identity,
|
|
7466
|
-
|
|
7520
|
+
ht as Image,
|
|
7467
7521
|
M as JwtPayload,
|
|
7468
7522
|
ae as Manager,
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7523
|
+
Je as ManagerCommon,
|
|
7524
|
+
vs as ManagerDataFactory,
|
|
7525
|
+
Dt as ManagerDataProvider,
|
|
7526
|
+
qt as MetaTagItem,
|
|
7473
7527
|
S as NamedIdentity,
|
|
7474
7528
|
X as Offer,
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7529
|
+
_r as OfferShortInfo,
|
|
7530
|
+
Cs as OffersDataProvider,
|
|
7531
|
+
as as OffersListFilters,
|
|
7532
|
+
Or as Operator,
|
|
7479
7533
|
z as Opf,
|
|
7480
7534
|
U as OpfEnum,
|
|
7481
7535
|
b as Order,
|
|
7482
7536
|
At as OrderAction,
|
|
7483
|
-
|
|
7537
|
+
Ps as OrderEditorData,
|
|
7484
7538
|
Ir as OrderInfo,
|
|
7485
|
-
|
|
7486
|
-
|
|
7539
|
+
dt as OrderItem,
|
|
7540
|
+
wr as OrderItemBase,
|
|
7487
7541
|
It as OrderPaymentStatus,
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7491
|
-
|
|
7542
|
+
kr as OrderShortInfo,
|
|
7543
|
+
$e as OrderStatus,
|
|
7544
|
+
Ot as OrderStatusDetail,
|
|
7545
|
+
kt as OrderStatusDetailEnum,
|
|
7546
|
+
St as OrderStatusEnum,
|
|
7492
7547
|
$t as OrderStatusHistoryInfo,
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7548
|
+
Ds as OrdersDataProvider,
|
|
7549
|
+
Rs as OrdersListFilters,
|
|
7550
|
+
Qe as PaginationFiltersBase,
|
|
7496
7551
|
se as PartnerGroup,
|
|
7497
|
-
|
|
7552
|
+
xr as PaymentType,
|
|
7498
7553
|
Pe as PreferencesStorageProvider,
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7554
|
+
Oe as PriceAnalyze,
|
|
7555
|
+
ds as PriceAnalyzeProvider,
|
|
7556
|
+
de as PriceCoefficient,
|
|
7557
|
+
mr as PriceCoefficientEnum,
|
|
7558
|
+
As as PriceHistoryDataProvider,
|
|
7559
|
+
Tt as PriceHistoryItem,
|
|
7505
7560
|
Z as PriceTemplate,
|
|
7506
|
-
|
|
7561
|
+
Le as PriceTemplateCategory,
|
|
7507
7562
|
ce as PriceTemplateClient,
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
|
|
7563
|
+
Pr as PriceTemplateICatalogableItem,
|
|
7564
|
+
_e as PriceTemplateProduct,
|
|
7565
|
+
ns as PriceTemplateProvider,
|
|
7511
7566
|
ue as PricingRole,
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7567
|
+
os as PricingRoleProvider,
|
|
7568
|
+
Ue as PrimaryCatalogableItem,
|
|
7569
|
+
_ as Product,
|
|
7570
|
+
rs as ProductCategoryDataProvider,
|
|
7571
|
+
ts as ProductDataProvider,
|
|
7572
|
+
xt as ProductFileType,
|
|
7518
7573
|
Ge as ProductPriceCoefficient,
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7574
|
+
bt as ProductPriceHistory,
|
|
7575
|
+
er as ProductUnit,
|
|
7576
|
+
cs as PropertiesProvider,
|
|
7522
7577
|
le as Property,
|
|
7523
|
-
|
|
7524
|
-
|
|
7578
|
+
Dr as PropertyType,
|
|
7579
|
+
mt as PropertyTypeEnum,
|
|
7525
7580
|
Y as PropertyValue,
|
|
7526
|
-
|
|
7527
|
-
|
|
7581
|
+
$s as RecommendationsDataProvider,
|
|
7582
|
+
cr as RecommendationsList,
|
|
7528
7583
|
w as Reference,
|
|
7529
|
-
|
|
7584
|
+
bs as ReferenceDataFactory,
|
|
7530
7585
|
T as ReferenceDataProvider,
|
|
7531
7586
|
me as Region,
|
|
7532
|
-
|
|
7587
|
+
qr as ResourceType,
|
|
7533
7588
|
q as SalesDirection,
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7589
|
+
nt as SentryConfig,
|
|
7590
|
+
lr as Seo,
|
|
7591
|
+
ks as SeoDataProvider,
|
|
7592
|
+
Sr as SourcePrimaryInterest,
|
|
7593
|
+
ut as StockCount,
|
|
7594
|
+
ms as TableDataPagination,
|
|
7595
|
+
Rt as TableDataPaginationRequestParams,
|
|
7596
|
+
fs as TableDataSortRequestParams,
|
|
7597
|
+
ls as TemplateProductCategoryDataProvider,
|
|
7598
|
+
Yt as TemplatesListFilters,
|
|
7599
|
+
We as TypedInstanceFactory,
|
|
7600
|
+
Lr as UnitsHelper,
|
|
7601
|
+
ps as UnknownClientDataProvider,
|
|
7602
|
+
gr as UpdatableNamedIdentity,
|
|
7603
|
+
Ut as User,
|
|
7604
|
+
_s as UserAuthDataProvider,
|
|
7605
|
+
Rr as UserCommonInfo,
|
|
7606
|
+
Ft as UserDataProvider,
|
|
7607
|
+
Cr as UserPricingRole,
|
|
7608
|
+
I as UserShortInfo,
|
|
7609
|
+
Nt as UserTypeEnum,
|
|
7610
|
+
hs as VersionConfig,
|
|
7556
7611
|
we as Warehouse,
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7612
|
+
ot as WebSocketConfig,
|
|
7613
|
+
sr as findCatalogItemByIdRecursive,
|
|
7614
|
+
ir as flattenCatalogItems,
|
|
7615
|
+
ws as pluralize,
|
|
7616
|
+
ke as useAuthStateStore,
|
|
7562
7617
|
k as useBaseConfigStateStore,
|
|
7563
|
-
|
|
7564
|
-
|
|
7618
|
+
Ss as useReferencesStore,
|
|
7619
|
+
Is as useUserStateStore
|
|
7565
7620
|
};
|