@snabcentr/common-lib 2.11.0 → 2.12.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 +508 -486
- 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/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
|
|
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 jr, cloneDeep as Gr, toLower as Br, isFunction as Me, map as ye, forEach as zr, isDate as qe, isObject as je, omitBy as hr } from "lodash-es";
|
|
6
|
+
import { objectToCamel as Ge, 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 P } 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(Ge(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(
|
|
154
|
+
return new M(Ge(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
|
* Конфигурационные данные приложения.
|
|
@@ -359,7 +359,7 @@ const k = W("common.config", () => {
|
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
});
|
|
362
|
-
class
|
|
362
|
+
class Re {
|
|
363
363
|
/**
|
|
364
364
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
365
365
|
*
|
|
@@ -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);
|
|
@@ -480,7 +480,7 @@ const Q = W("common.auth_state_private", () => {
|
|
|
480
480
|
const n = y(
|
|
481
481
|
(() => {
|
|
482
482
|
var u;
|
|
483
|
-
const o =
|
|
483
|
+
const o = Re.getActualDataFromStorage(
|
|
484
484
|
"sc.token"
|
|
485
485
|
/* JwtToken */
|
|
486
486
|
);
|
|
@@ -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
|
-
}),
|
|
522
|
-
const n =
|
|
521
|
+
}), ke = W("common.auth_state", () => {
|
|
522
|
+
const n = P(() => {
|
|
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),
|
|
527
|
+
o.jwtToken = Promise.resolve(u), Re.saveActualDataToStorage("sc.token", u, Ze(u)), o.recalculateUserPermissions();
|
|
528
528
|
}).catch(v);
|
|
529
529
|
}
|
|
530
530
|
return o.jwtToken;
|
|
@@ -534,31 +534,31 @@ 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),
|
|
537
|
+
c.jwtToken = Promise.resolve(o), Re.saveActualDataToStorage("sc.token", o, Ze(o)), c.recalculateUserPermissions();
|
|
538
538
|
}
|
|
539
539
|
function t() {
|
|
540
540
|
const o = Q();
|
|
541
|
-
o.jwtToken = void 0, o.userPermissions = void 0,
|
|
541
|
+
o.jwtToken = void 0, o.userPermissions = void 0, Re.saveActualDataToStorage("sc.token", void 0);
|
|
542
542
|
}
|
|
543
543
|
function i(o) {
|
|
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))
|
|
551
551
|
return c.userPermissionsComputedRefs.get(u);
|
|
552
|
-
const p =
|
|
552
|
+
const p = P(() => {
|
|
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
|
}
|
|
@@ -616,7 +616,7 @@ class J {
|
|
|
616
616
|
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : $(this.id);
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
class
|
|
619
|
+
class b extends J {
|
|
620
620
|
/**
|
|
621
621
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
622
622
|
*
|
|
@@ -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 b {
|
|
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 b {
|
|
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 b {
|
|
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,8 +719,8 @@ 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
|
|
723
|
-
class w extends
|
|
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
|
+
class w extends b {
|
|
724
724
|
/**
|
|
725
725
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
726
726
|
*
|
|
@@ -739,15 +739,15 @@ 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
|
-
class
|
|
750
|
+
class Be {
|
|
751
751
|
/**
|
|
752
752
|
* Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
|
|
753
753
|
*
|
|
@@ -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
|
*
|
|
@@ -847,7 +847,7 @@ class lt {
|
|
|
847
847
|
this.warehouse = new we(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
|
-
class x extends
|
|
850
|
+
class x extends b {
|
|
851
851
|
/**
|
|
852
852
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
853
853
|
*
|
|
@@ -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 b {
|
|
878
878
|
/**
|
|
879
879
|
* Инициализирует экземпляр класса {@link ProductUnit}.
|
|
880
880
|
*
|
|
@@ -901,7 +901,7 @@ class Ze extends S {
|
|
|
901
901
|
e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
class ge extends
|
|
904
|
+
class ge extends b {
|
|
905
905
|
/**
|
|
906
906
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
907
907
|
*
|
|
@@ -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 Be(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 j extends
|
|
1091
|
+
var ze = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(ze || {});
|
|
1092
|
+
class j 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]) => [jr(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 j(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 &&
|
|
1234
|
+
this.product = new j(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 && Gr(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
|
*
|
|
@@ -1322,7 +1322,7 @@ class ze {
|
|
|
1322
1322
|
return new r(e);
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
|
-
const
|
|
1325
|
+
const R = class R {
|
|
1326
1326
|
/**
|
|
1327
1327
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
1328
1328
|
*/
|
|
@@ -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
|
* Перехватчик запроса для вызова пользовательских хуков.
|
|
@@ -1369,14 +1369,14 @@ const P = class P {
|
|
|
1369
1369
|
* @param request Данные запроса.
|
|
1370
1370
|
*/
|
|
1371
1371
|
// eslint-disable-next-line class-methods-use-this
|
|
1372
|
-
s(this, "userRequestHooksInterceptor", async (r) =>
|
|
1372
|
+
s(this, "userRequestHooksInterceptor", async (r) => R.requestHooks.reduce(async (e, t) => t(await e), Promise.resolve(r)));
|
|
1373
1373
|
/**
|
|
1374
1374
|
* Перехватчик запроса для преобразования данных запроса.
|
|
1375
1375
|
*
|
|
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(Br(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
|
/**
|
|
@@ -1405,15 +1405,15 @@ const P = class P {
|
|
|
1405
1405
|
* @param response Данные ответа на запрос.
|
|
1406
1406
|
*/
|
|
1407
1407
|
// eslint-disable-next-line class-methods-use-this
|
|
1408
|
-
s(this, "userResponseHooksInterceptor", async (r) =>
|
|
1408
|
+
s(this, "userResponseHooksInterceptor", async (r) => R.responseHooks.reduce(async (e, t) => t(await e), Promise.resolve(r)));
|
|
1409
1409
|
/**
|
|
1410
1410
|
* Перехватчик ответа для преобразования данных ответа на запрос.
|
|
1411
1411
|
*
|
|
1412
1412
|
* @param response Данные ответа на запрос.
|
|
1413
1413
|
*/
|
|
1414
1414
|
// eslint-disable-next-line class-methods-use-this
|
|
1415
|
-
s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data =
|
|
1416
|
-
this.errorResponseHandler =
|
|
1415
|
+
s(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Ge(r.data)), r));
|
|
1416
|
+
this.errorResponseHandler = R.defaultErrorsResponseHandler, this.httpClient = rt.create({
|
|
1417
1417
|
headers: {
|
|
1418
1418
|
Accept: "application/json",
|
|
1419
1419
|
"Content-Type": "application/json"
|
|
@@ -1423,7 +1423,7 @@ const P = class P {
|
|
|
1423
1423
|
(r) => Promise.reject(r)
|
|
1424
1424
|
), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
|
|
1425
1425
|
(r) => r,
|
|
1426
|
-
(r) =>
|
|
1426
|
+
(r) => R.convertHttpErrorResponse(r)
|
|
1427
1427
|
), this.interceptorIds.response.canceledResponseInterceptor = this.httpClient.interceptors.response.use((r) => r, this.canceledResponseInterceptor), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((r) => r, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
|
|
1428
1428
|
this.dataConverterResponseInterceptor,
|
|
1429
1429
|
(r) => Promise.reject(r)
|
|
@@ -1435,7 +1435,7 @@ const P = class P {
|
|
|
1435
1435
|
* @param handler Ссылка на функцию-обработчик ошибок.
|
|
1436
1436
|
*/
|
|
1437
1437
|
static setDefaultErrorsResponseHandler(r) {
|
|
1438
|
-
|
|
1438
|
+
R.defaultErrorsResponseHandler = r;
|
|
1439
1439
|
}
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Регистрирует хук, который будет вызываться перед выполнением каждого HTTP запроса.
|
|
@@ -1443,7 +1443,7 @@ const P = class P {
|
|
|
1443
1443
|
* @param hook Функция-хук для обработки запроса.
|
|
1444
1444
|
*/
|
|
1445
1445
|
static addRequestHook(r) {
|
|
1446
|
-
|
|
1446
|
+
R.requestHooks.includes(r) || R.requestHooks.push(r);
|
|
1447
1447
|
}
|
|
1448
1448
|
/**
|
|
1449
1449
|
* Удаляет зарегистрированный хук запроса.
|
|
@@ -1451,8 +1451,8 @@ const P = class P {
|
|
|
1451
1451
|
* @param hook Функция-хук для удаления.
|
|
1452
1452
|
*/
|
|
1453
1453
|
static removeRequestHook(r) {
|
|
1454
|
-
const e =
|
|
1455
|
-
e !== -1 &&
|
|
1454
|
+
const e = R.requestHooks.indexOf(r);
|
|
1455
|
+
e !== -1 && R.requestHooks.splice(e, 1);
|
|
1456
1456
|
}
|
|
1457
1457
|
/**
|
|
1458
1458
|
* Регистрирует хук, который будет вызываться после получения ответа на каждый HTTP запрос.
|
|
@@ -1460,7 +1460,7 @@ const P = class P {
|
|
|
1460
1460
|
* @param hook Функция-хук для обработки ответа.
|
|
1461
1461
|
*/
|
|
1462
1462
|
static addResponseHook(r) {
|
|
1463
|
-
|
|
1463
|
+
R.responseHooks.includes(r) || R.responseHooks.push(r);
|
|
1464
1464
|
}
|
|
1465
1465
|
/**
|
|
1466
1466
|
* Удаляет зарегистрированный хук ответа.
|
|
@@ -1468,8 +1468,8 @@ const P = class P {
|
|
|
1468
1468
|
* @param hook Функция-хук для удаления.
|
|
1469
1469
|
*/
|
|
1470
1470
|
static removeResponseHook(r) {
|
|
1471
|
-
const e =
|
|
1472
|
-
e !== -1 &&
|
|
1471
|
+
const e = R.responseHooks.indexOf(r);
|
|
1472
|
+
e !== -1 && R.responseHooks.splice(e, 1);
|
|
1473
1473
|
}
|
|
1474
1474
|
/**
|
|
1475
1475
|
* Возвращает экземпляр объекта текущего класса.
|
|
@@ -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(
|
|
1480
|
+
return Object.prototype.hasOwnProperty.call(R.instances, r.name) || (R.instances[r.name] = We.simpleInstanceInitializer(r)), R.instances[r.name];
|
|
1481
1481
|
}
|
|
1482
1482
|
/**
|
|
1483
1483
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -1576,22 +1576,22 @@ const P = class P {
|
|
|
1576
1576
|
* Экземпляр объекта текущего класса.
|
|
1577
1577
|
*/
|
|
1578
1578
|
// eslint-disable-next-line no-use-before-define
|
|
1579
|
-
s(
|
|
1579
|
+
s(R, "instances", {}), /**
|
|
1580
1580
|
* Базовый обработчик ошибок выполнения запросов.
|
|
1581
1581
|
*
|
|
1582
1582
|
* @param error Данные об ошибке.
|
|
1583
1583
|
* @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
1584
1584
|
* @param disableNotifications Признак необходимости отключить уведомления об ошибках.
|
|
1585
1585
|
*/
|
|
1586
|
-
s(
|
|
1586
|
+
s(R, "defaultErrorsResponseHandler", v), /**
|
|
1587
1587
|
* Список зарегистрированных хуков для запросов.
|
|
1588
1588
|
*/
|
|
1589
|
-
s(
|
|
1589
|
+
s(R, "requestHooks", []), /**
|
|
1590
1590
|
* Список зарегистрированных хуков для ответов.
|
|
1591
1591
|
*/
|
|
1592
|
-
s(
|
|
1593
|
-
let h =
|
|
1594
|
-
class
|
|
1592
|
+
s(R, "responseHooks", []);
|
|
1593
|
+
let h = R;
|
|
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 b {
|
|
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 b {
|
|
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
|
|
1876
|
+
class Pe 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
|
|
1893
|
+
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Pe(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new j(o));
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
1896
|
-
class
|
|
1896
|
+
class Rr {
|
|
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 Rr {
|
|
1915
1915
|
/**
|
|
1916
1916
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1917
1917
|
*
|
|
@@ -1926,7 +1926,7 @@ class ke extends Cr {
|
|
|
1926
1926
|
this.productCategory = new ve(e == null ? void 0 : e.productCategory);
|
|
1927
1927
|
}
|
|
1928
1928
|
}
|
|
1929
|
-
class Ee extends
|
|
1929
|
+
class Ee extends b {
|
|
1930
1930
|
/**
|
|
1931
1931
|
* Инициализирует экземпляр класса {@link Curator}.
|
|
1932
1932
|
*
|
|
@@ -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 Pr extends
|
|
1984
|
+
class Pr extends b {
|
|
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 Pr {
|
|
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 Rr {
|
|
2100
2100
|
/**
|
|
2101
2101
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
2102
2102
|
*
|
|
@@ -2108,12 +2108,12 @@ 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
|
-
class le extends
|
|
2116
|
+
class le extends b {
|
|
2117
2117
|
/**
|
|
2118
2118
|
* Инициализирует экземпляр класса {@link Property}.
|
|
2119
2119
|
*
|
|
@@ -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,11 +2233,11 @@ 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
|
}
|
|
2240
|
-
class ue extends
|
|
2240
|
+
class ue extends b {
|
|
2241
2241
|
/**
|
|
2242
2242
|
* Инициализирует экземпляр класса {@link PricingRole}.
|
|
2243
2243
|
*
|
|
@@ -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
|
*
|
|
@@ -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 Be(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
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -2739,7 +2739,7 @@ class es extends h {
|
|
|
2739
2739
|
return this.get(
|
|
2740
2740
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2741
2741
|
{},
|
|
2742
|
-
(e) => ye(e.data, (t) => new
|
|
2742
|
+
(e) => ye(e.data, (t) => new Be(t))
|
|
2743
2743
|
);
|
|
2744
2744
|
}
|
|
2745
2745
|
/**
|
|
@@ -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
|
*
|
|
@@ -2774,7 +2774,7 @@ class rs extends h {
|
|
|
2774
2774
|
clientId: r,
|
|
2775
2775
|
showHidden: e
|
|
2776
2776
|
},
|
|
2777
|
-
(t) => t.data.map((i) => new
|
|
2777
|
+
(t) => t.data.map((i) => new Pe(i))
|
|
2778
2778
|
);
|
|
2779
2779
|
}
|
|
2780
2780
|
/**
|
|
@@ -2795,7 +2795,7 @@ class rs extends h {
|
|
|
2795
2795
|
showHidden: t,
|
|
2796
2796
|
withNestedCategories: i
|
|
2797
2797
|
},
|
|
2798
|
-
(o) => new
|
|
2798
|
+
(o) => new Pe(o.data)
|
|
2799
2799
|
);
|
|
2800
2800
|
}
|
|
2801
2801
|
/**
|
|
@@ -2820,7 +2820,7 @@ class rs extends h {
|
|
|
2820
2820
|
);
|
|
2821
2821
|
}
|
|
2822
2822
|
}
|
|
2823
|
-
class
|
|
2823
|
+
class is extends h {
|
|
2824
2824
|
/**
|
|
2825
2825
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2826
2826
|
*
|
|
@@ -2841,8 +2841,8 @@ class ts extends h {
|
|
|
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,7 +2873,7 @@ 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) : je(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;
|
|
@@ -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 G(i))) ?? [];
|
|
2903
2903
|
}
|
|
2904
2904
|
/**
|
|
2905
2905
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2909,7 +2909,7 @@ class G {
|
|
|
2909
2909
|
toPrimitive() {
|
|
2910
2910
|
return {
|
|
2911
2911
|
groupOp: this.groupOp,
|
|
2912
|
-
filters: this.filters.map((r) => r instanceof
|
|
2912
|
+
filters: this.filters.map((r) => r instanceof tr && Me(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2913
2913
|
groups: this.groups.map((r) => r instanceof G ? r.toPrimitive() : r)
|
|
2914
2914
|
};
|
|
2915
2915
|
}
|
|
@@ -2935,7 +2935,7 @@ class Ce extends h {
|
|
|
2935
2935
|
return e && (m.filters = JSON.stringify((e instanceof G ? e : new G(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 b {
|
|
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 B extends
|
|
3737
|
+
class B 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,7 +3845,7 @@ 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
3851
|
t.push(new B(i));
|
|
@@ -3854,13 +3854,13 @@ class Ar extends Dr {
|
|
|
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 B(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
|
|
4013
|
+
class Sr extends w {
|
|
4014
4014
|
}
|
|
4015
4015
|
class br extends w {
|
|
4016
4016
|
}
|
|
4017
|
-
class
|
|
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 B(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new pe(u))) ?? [], this.channelPrimaryInterest = 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 B(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new pe(u))) ?? [], this.channelPrimaryInterest = new Sr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new br(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 b {
|
|
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 B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new
|
|
4317
|
+
this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new B(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 B {
|
|
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
|
}
|
|
@@ -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 Rt = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Rt || {});
|
|
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);
|
|
@@ -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 Pt {
|
|
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
|
*
|
|
@@ -5608,7 +5608,7 @@ class Dt extends yr {
|
|
|
5608
5608
|
this.product = new j(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
|
-
class
|
|
5611
|
+
class S extends Ir {
|
|
5612
5612
|
/**
|
|
5613
5613
|
* Инициализирует экземпляр класса {@link Order}.
|
|
5614
5614
|
*
|
|
@@ -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
|
|
@@ -5775,7 +5775,7 @@ class vs extends Ce {
|
|
|
5775
5775
|
deliveryDate: e.deliveryDate ? L(e.deliveryDate, o) : void 0,
|
|
5776
5776
|
items: t != null && t.length ? t : void 0
|
|
5777
5777
|
},
|
|
5778
|
-
(c) => c.data.map((u) => new
|
|
5778
|
+
(c) => c.data.map((u) => new S(u)),
|
|
5779
5779
|
i
|
|
5780
5780
|
);
|
|
5781
5781
|
}
|
|
@@ -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 Rs {
|
|
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 Ps 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
|
*
|
|
@@ -6183,7 +6183,7 @@ class Ps extends Ce {
|
|
|
6183
6183
|
* @see /doc/api/internal#/Заказы/api_internal_orders_get
|
|
6184
6184
|
*/
|
|
6185
6185
|
getOrder(r) {
|
|
6186
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
6186
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new S(e.data));
|
|
6187
6187
|
}
|
|
6188
6188
|
/**
|
|
6189
6189
|
* Создаёт новый заказ клиента из содержимого корзины текущего пользователя.
|
|
@@ -6209,7 +6209,7 @@ class Ps extends Ce {
|
|
|
6209
6209
|
deliveryDate: L(t.deliveryDate, c),
|
|
6210
6210
|
items: i != null && i.length ? i : void 0
|
|
6211
6211
|
},
|
|
6212
|
-
(u) => u.data.map((p) => new
|
|
6212
|
+
(u) => u.data.map((p) => new S(p)),
|
|
6213
6213
|
o
|
|
6214
6214
|
);
|
|
6215
6215
|
}
|
|
@@ -6221,7 +6221,7 @@ class Ps extends Ce {
|
|
|
6221
6221
|
* @see /doc/api/internal#/Заказы/api_internal_orders_attach
|
|
6222
6222
|
*/
|
|
6223
6223
|
attachOrder(r) {
|
|
6224
|
-
return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new
|
|
6224
|
+
return this.patch(`/internal/orders/${r}/attach`, {}, (e) => new S(e.data));
|
|
6225
6225
|
}
|
|
6226
6226
|
/**
|
|
6227
6227
|
* Открепляет указанный заказ от оператора и возвращает полные данные заказа.
|
|
@@ -6231,7 +6231,7 @@ class Ps extends Ce {
|
|
|
6231
6231
|
* @see /doc/api/internal#/Заказы/api_internal_orders_detach
|
|
6232
6232
|
*/
|
|
6233
6233
|
detachOrder(r) {
|
|
6234
|
-
return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new
|
|
6234
|
+
return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new S(e.data));
|
|
6235
6235
|
}
|
|
6236
6236
|
/**
|
|
6237
6237
|
* Объединяет указанные заказы в базовый заказ и возвращает обновлённые данные базового заказа.
|
|
@@ -6242,7 +6242,7 @@ class Ps extends Ce {
|
|
|
6242
6242
|
* @see /doc/api/internal#/Заказы/api_internal_orders_merge
|
|
6243
6243
|
*/
|
|
6244
6244
|
mergeOrders(r, e) {
|
|
6245
|
-
return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (t) => new
|
|
6245
|
+
return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (t) => new S(t.data));
|
|
6246
6246
|
}
|
|
6247
6247
|
/**
|
|
6248
6248
|
* Пересчитывает стоимость корзины указанного заказа и возвращает обновлённые данные заказа.
|
|
@@ -6252,7 +6252,7 @@ class Ps extends Ce {
|
|
|
6252
6252
|
* @see /doc/api/internal#/Заказы/api_internal_orders_recalculate
|
|
6253
6253
|
*/
|
|
6254
6254
|
recalculateOrder(r) {
|
|
6255
|
-
return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new
|
|
6255
|
+
return this.patch(`/internal/orders/${r}/recalculate`, {}, (e) => new S(e.data));
|
|
6256
6256
|
}
|
|
6257
6257
|
/**
|
|
6258
6258
|
* Копирует товары указанного заказа в текущую корзину пользователя.
|
|
@@ -6283,7 +6283,7 @@ class Ps extends Ce {
|
|
|
6283
6283
|
...e,
|
|
6284
6284
|
deliveryDate: e.deliveryDate ? L(e.deliveryDate, i) : void 0
|
|
6285
6285
|
},
|
|
6286
|
-
(o) => new
|
|
6286
|
+
(o) => new S(o.data),
|
|
6287
6287
|
t
|
|
6288
6288
|
);
|
|
6289
6289
|
}
|
|
@@ -6313,7 +6313,7 @@ class Ps extends Ce {
|
|
|
6313
6313
|
is_additional_sale: e.isAdditionalSale,
|
|
6314
6314
|
...e.configuratorParams
|
|
6315
6315
|
},
|
|
6316
|
-
(i) => new
|
|
6316
|
+
(i) => new S(i.data),
|
|
6317
6317
|
t
|
|
6318
6318
|
);
|
|
6319
6319
|
}
|
|
@@ -6336,7 +6336,7 @@ class Ps extends Ce {
|
|
|
6336
6336
|
status: e,
|
|
6337
6337
|
statusDetail: t
|
|
6338
6338
|
},
|
|
6339
|
-
(o) => new
|
|
6339
|
+
(o) => new S(o.data),
|
|
6340
6340
|
i
|
|
6341
6341
|
);
|
|
6342
6342
|
}
|
|
@@ -6350,7 +6350,7 @@ class Ps extends Ce {
|
|
|
6350
6350
|
* @see /doc/api/internal#/Заказы/api_internal_orders_status_change
|
|
6351
6351
|
*/
|
|
6352
6352
|
changeOrderStatusDetail(r, e) {
|
|
6353
|
-
return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (t) => new
|
|
6353
|
+
return this.patch(`/internal/orders/${r}/status`, { statusDetail: e }, (t) => new S(t.data));
|
|
6354
6354
|
}
|
|
6355
6355
|
/**
|
|
6356
6356
|
* Возвращает историю изменения статусов заказа.
|
|
@@ -6375,7 +6375,7 @@ class Ps extends Ce {
|
|
|
6375
6375
|
* @see /doc/api/internal#/Заказы/api_internal_orders_change_attached_operator
|
|
6376
6376
|
*/
|
|
6377
6377
|
changeAttachedOperator(r, e) {
|
|
6378
|
-
return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (t) => new
|
|
6378
|
+
return this.patch(`/internal/orders/${r}/change-attached-operator`, { operatorId: e }, (t) => new S(t.data));
|
|
6379
6379
|
}
|
|
6380
6380
|
/**
|
|
6381
6381
|
* Удаляет файл, прикреплённый к заказу клиентом, и возвращает обновлённые данные заказа.
|
|
@@ -6385,7 +6385,7 @@ class Ps extends Ce {
|
|
|
6385
6385
|
* @see /doc/api/internal#/Заказы/api_internal_orders_attached_file_delete
|
|
6386
6386
|
*/
|
|
6387
6387
|
deleteOrderAttachedFile(r) {
|
|
6388
|
-
return this.delete(`/internal/orders/${r}/file/attached`, (e) => new
|
|
6388
|
+
return this.delete(`/internal/orders/${r}/file/attached`, (e) => new S(e.data));
|
|
6389
6389
|
}
|
|
6390
6390
|
/**
|
|
6391
6391
|
* Удаляет продукт из заказа и возвращает обновлённые данные заказа.
|
|
@@ -6396,7 +6396,7 @@ class Ps extends Ce {
|
|
|
6396
6396
|
* @see /doc/api/internal#/operations/api_internal_orders_product_delete
|
|
6397
6397
|
*/
|
|
6398
6398
|
deleteOrderProduct(r, e) {
|
|
6399
|
-
return this.delete(`/internal/orders/${r}/products/${e}`, (t) => new
|
|
6399
|
+
return this.delete(`/internal/orders/${r}/products/${e}`, (t) => new S(t.data));
|
|
6400
6400
|
}
|
|
6401
6401
|
/**
|
|
6402
6402
|
* Изменяет продукт заказа и возвращает обновлённые данные заказа.
|
|
@@ -6424,7 +6424,7 @@ class Ps extends Ce {
|
|
|
6424
6424
|
marker: t.marker,
|
|
6425
6425
|
...t.configuratorParams
|
|
6426
6426
|
},
|
|
6427
|
-
(o) => new
|
|
6427
|
+
(o) => new S(o.data),
|
|
6428
6428
|
i
|
|
6429
6429
|
);
|
|
6430
6430
|
}
|
|
@@ -6472,7 +6472,7 @@ class Ps extends Ce {
|
|
|
6472
6472
|
);
|
|
6473
6473
|
}
|
|
6474
6474
|
}
|
|
6475
|
-
class
|
|
6475
|
+
class Oe {
|
|
6476
6476
|
/**
|
|
6477
6477
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
6478
6478
|
*
|
|
@@ -6499,12 +6499,12 @@ class _e {
|
|
|
6499
6499
|
* Источник клиентской цены.
|
|
6500
6500
|
*/
|
|
6501
6501
|
s(this, "source");
|
|
6502
|
-
this.client = new
|
|
6502
|
+
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
6503
|
}
|
|
6504
6504
|
}
|
|
6505
|
-
const
|
|
6505
|
+
const xe = (n) => {
|
|
6506
6506
|
var r, e, t, i, o;
|
|
6507
|
-
return n ?
|
|
6507
|
+
return n ? hr(
|
|
6508
6508
|
{
|
|
6509
6509
|
cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
|
|
6510
6510
|
clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
|
|
@@ -6513,13 +6513,13 @@ const Oe = (n) => {
|
|
|
6513
6513
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
6514
6514
|
hideNotActive: n.hideNotActive
|
|
6515
6515
|
},
|
|
6516
|
-
(c) => $(c) || (H(c) ||
|
|
6516
|
+
(c) => $(c) || (H(c) || je(c)) && re(c)
|
|
6517
6517
|
) : {};
|
|
6518
|
-
},
|
|
6518
|
+
}, or = (n) => {
|
|
6519
6519
|
const r = {};
|
|
6520
6520
|
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
6521
|
};
|
|
6522
|
-
class
|
|
6522
|
+
class ds extends h {
|
|
6523
6523
|
/**
|
|
6524
6524
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
6525
6525
|
*
|
|
@@ -6533,10 +6533,10 @@ class Rs extends h {
|
|
|
6533
6533
|
return this.get(
|
|
6534
6534
|
`/internal/price/products/${r}/analyze`,
|
|
6535
6535
|
{
|
|
6536
|
-
...
|
|
6537
|
-
filters:
|
|
6536
|
+
...or(e),
|
|
6537
|
+
filters: xe(t)
|
|
6538
6538
|
},
|
|
6539
|
-
(i) => i.data.map((o) => new
|
|
6539
|
+
(i) => i.data.map((o) => new Oe(o))
|
|
6540
6540
|
);
|
|
6541
6541
|
}
|
|
6542
6542
|
/**
|
|
@@ -6552,10 +6552,10 @@ class Rs extends h {
|
|
|
6552
6552
|
return this.get(
|
|
6553
6553
|
`/internal/price/categories/${r}/analyze`,
|
|
6554
6554
|
{
|
|
6555
|
-
...
|
|
6556
|
-
filters:
|
|
6555
|
+
...or(e),
|
|
6556
|
+
filters: xe(t)
|
|
6557
6557
|
},
|
|
6558
|
-
(i) => i.data.map((o) => new
|
|
6558
|
+
(i) => i.data.map((o) => new Oe(o))
|
|
6559
6559
|
);
|
|
6560
6560
|
}
|
|
6561
6561
|
/**
|
|
@@ -6574,13 +6574,13 @@ class Rs extends h {
|
|
|
6574
6574
|
`/internal/price/categories/${r}/analyze/square`,
|
|
6575
6575
|
{
|
|
6576
6576
|
...e,
|
|
6577
|
-
filters:
|
|
6577
|
+
filters: xe(t)
|
|
6578
6578
|
},
|
|
6579
|
-
(i) => i.data.map((o) => new
|
|
6579
|
+
(i) => i.data.map((o) => new Oe(o))
|
|
6580
6580
|
);
|
|
6581
6581
|
}
|
|
6582
6582
|
}
|
|
6583
|
-
class
|
|
6583
|
+
class Tt {
|
|
6584
6584
|
/**
|
|
6585
6585
|
* Инициализирует экземпляр класса {@link PriceHistoryItem}.
|
|
6586
6586
|
*
|
|
@@ -6627,10 +6627,10 @@ class dt {
|
|
|
6627
6627
|
* @inheritDoc
|
|
6628
6628
|
*/
|
|
6629
6629
|
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
|
|
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 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
6631
|
}
|
|
6632
6632
|
}
|
|
6633
|
-
class
|
|
6633
|
+
class St extends ge {
|
|
6634
6634
|
/**
|
|
6635
6635
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
6636
6636
|
*
|
|
@@ -6642,10 +6642,10 @@ class Tt extends ge {
|
|
|
6642
6642
|
* @inheritDoc
|
|
6643
6643
|
*/
|
|
6644
6644
|
s(this, "history");
|
|
6645
|
-
this.history = ye(e.history, (t) => new
|
|
6645
|
+
this.history = ye(e.history, (t) => new Tt(t));
|
|
6646
6646
|
}
|
|
6647
6647
|
}
|
|
6648
|
-
class
|
|
6648
|
+
class As extends h {
|
|
6649
6649
|
/**
|
|
6650
6650
|
* Возвращает данные об истории изменения цен.
|
|
6651
6651
|
*
|
|
@@ -6655,21 +6655,21 @@ class Ds extends h {
|
|
|
6655
6655
|
*/
|
|
6656
6656
|
getProductPriceHistory(r) {
|
|
6657
6657
|
var o, c, u, p, m;
|
|
6658
|
-
const e = k().config.dateFormats.api, t =
|
|
6658
|
+
const e = k().config.dateFormats.api, t = hr(
|
|
6659
6659
|
he(r, {
|
|
6660
6660
|
costDate: {
|
|
6661
|
-
from:
|
|
6662
|
-
to:
|
|
6661
|
+
from: qe((o = r.costDate) == null ? void 0 : o.from) ? L(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
6662
|
+
to: qe((u = r.costDate) == null ? void 0 : u.to) ? L(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
|
|
6663
6663
|
}
|
|
6664
6664
|
}),
|
|
6665
|
-
(f) => $(f) || (H(f) ||
|
|
6665
|
+
(f) => $(f) || (H(f) || je(f)) && re(f)
|
|
6666
6666
|
), i = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
|
|
6667
6667
|
return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((f) => [
|
|
6668
|
-
new
|
|
6668
|
+
new St(he(f[0], { history: f }))
|
|
6669
6669
|
]);
|
|
6670
6670
|
}
|
|
6671
6671
|
}
|
|
6672
|
-
class
|
|
6672
|
+
class cr {
|
|
6673
6673
|
/**
|
|
6674
6674
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
6675
6675
|
*
|
|
@@ -6687,7 +6687,7 @@ class or {
|
|
|
6687
6687
|
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
6688
|
}
|
|
6689
6689
|
}
|
|
6690
|
-
class
|
|
6690
|
+
class $s extends h {
|
|
6691
6691
|
/**
|
|
6692
6692
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
6693
6693
|
*
|
|
@@ -6695,7 +6695,7 @@ class As extends h {
|
|
|
6695
6695
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
6696
6696
|
*/
|
|
6697
6697
|
getProductCategoryRecommendations(r) {
|
|
6698
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new
|
|
6698
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new cr(e.data));
|
|
6699
6699
|
}
|
|
6700
6700
|
/**
|
|
6701
6701
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -6704,7 +6704,7 @@ class As extends h {
|
|
|
6704
6704
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
6705
6705
|
*/
|
|
6706
6706
|
getProductRecommendations(r) {
|
|
6707
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new
|
|
6707
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new cr(e.data));
|
|
6708
6708
|
}
|
|
6709
6709
|
/**
|
|
6710
6710
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -6733,18 +6733,20 @@ class As extends h {
|
|
|
6733
6733
|
});
|
|
6734
6734
|
}
|
|
6735
6735
|
}
|
|
6736
|
-
var bt = /* @__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))(bt || {}),
|
|
6737
|
-
class
|
|
6736
|
+
var bt = /* @__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))(bt || {}), 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 || {});
|
|
6737
|
+
class Lt extends w {
|
|
6738
6738
|
}
|
|
6739
|
-
class
|
|
6739
|
+
class Ts extends w {
|
|
6740
6740
|
}
|
|
6741
|
-
class
|
|
6741
|
+
class _t extends w {
|
|
6742
6742
|
}
|
|
6743
6743
|
class It extends w {
|
|
6744
6744
|
}
|
|
6745
|
-
class
|
|
6745
|
+
class Ot extends w {
|
|
6746
|
+
}
|
|
6747
|
+
class xt extends w {
|
|
6746
6748
|
}
|
|
6747
|
-
class
|
|
6749
|
+
class Ss {
|
|
6748
6750
|
/**
|
|
6749
6751
|
* Генерирует и возвращает данные-заглушку неопределённой записи справочника.
|
|
6750
6752
|
*
|
|
@@ -6763,7 +6765,7 @@ class ds {
|
|
|
6763
6765
|
return r.id === 0 && r.slug === "-undefined-";
|
|
6764
6766
|
}
|
|
6765
6767
|
}
|
|
6766
|
-
class
|
|
6768
|
+
class qr extends w {
|
|
6767
6769
|
}
|
|
6768
6770
|
class T extends fe {
|
|
6769
6771
|
/**
|
|
@@ -6774,26 +6776,26 @@ class T extends fe {
|
|
|
6774
6776
|
* и использовать в случае аналогичных запросов.
|
|
6775
6777
|
*/
|
|
6776
6778
|
getReference(r, e = !1) {
|
|
6777
|
-
return this.getTypedDataArrayRequester(
|
|
6779
|
+
return this.getTypedDataArrayRequester(Lt, `/internal/references/${r}`, e);
|
|
6778
6780
|
}
|
|
6779
6781
|
/**
|
|
6780
6782
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
6781
6783
|
* первичного интереса.
|
|
6782
6784
|
*/
|
|
6783
6785
|
getChannelPrimaryInterest() {
|
|
6784
|
-
return this.getTypedDataArrayRequester(
|
|
6786
|
+
return this.getTypedDataArrayRequester(Sr, "/internal/references/channel-primary-interest", !0);
|
|
6785
6787
|
}
|
|
6786
6788
|
/**
|
|
6787
6789
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
6788
6790
|
*/
|
|
6789
6791
|
getContactPositions() {
|
|
6790
|
-
return this.getTypedDataArrayRequester(
|
|
6792
|
+
return this.getTypedDataArrayRequester(_t, "/internal/references/contact-position", !0);
|
|
6791
6793
|
}
|
|
6792
6794
|
/**
|
|
6793
6795
|
* Возвращает {@link Promise} для получения справочника списка направлений кураторства.
|
|
6794
6796
|
*/
|
|
6795
6797
|
getCuratedDirection() {
|
|
6796
|
-
return this.getTypedDataArrayRequester(
|
|
6798
|
+
return this.getTypedDataArrayRequester(Ve, "/internal/references/curated-direction", !0);
|
|
6797
6799
|
}
|
|
6798
6800
|
/**
|
|
6799
6801
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
@@ -6818,7 +6820,7 @@ class T extends fe {
|
|
|
6818
6820
|
* Возвращает {@link Promise} для получения справочника операторов.
|
|
6819
6821
|
*/
|
|
6820
6822
|
getOperators() {
|
|
6821
|
-
return this.getTypedDataArrayRequester(
|
|
6823
|
+
return this.getTypedDataArrayRequester(Or, "/internal/references/operator", !0);
|
|
6822
6824
|
}
|
|
6823
6825
|
/**
|
|
6824
6826
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
@@ -6830,19 +6832,25 @@ class T extends fe {
|
|
|
6830
6832
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
6831
6833
|
*/
|
|
6832
6834
|
getOrderStatuses() {
|
|
6833
|
-
return this.getTypedDataArrayRequester(
|
|
6835
|
+
return this.getTypedDataArrayRequester($e, "/internal/references/order-status", !0);
|
|
6836
|
+
}
|
|
6837
|
+
/**
|
|
6838
|
+
* Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
|
|
6839
|
+
*/
|
|
6840
|
+
getOrderStatusDetails() {
|
|
6841
|
+
return this.getTypedDataArrayRequester(Ot, "/internal/references/order-status-detail", !0);
|
|
6834
6842
|
}
|
|
6835
6843
|
/**
|
|
6836
6844
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
6837
6845
|
*/
|
|
6838
6846
|
getPaymentTypes() {
|
|
6839
|
-
return this.getTypedDataArrayRequester(
|
|
6847
|
+
return this.getTypedDataArrayRequester(xr, "/public/references/payment-type", !0);
|
|
6840
6848
|
}
|
|
6841
6849
|
/**
|
|
6842
6850
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
6843
6851
|
*/
|
|
6844
6852
|
getResourceTypes() {
|
|
6845
|
-
return this.getTypedDataArrayRequester(
|
|
6853
|
+
return this.getTypedDataArrayRequester(qr, "/internal/references/resource-type", !0);
|
|
6846
6854
|
}
|
|
6847
6855
|
/**
|
|
6848
6856
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
@@ -6862,7 +6870,7 @@ class T extends fe {
|
|
|
6862
6870
|
* @param term Терм поиска.
|
|
6863
6871
|
*/
|
|
6864
6872
|
searchCity(r) {
|
|
6865
|
-
return this.getTypedDataArrayRequester(
|
|
6873
|
+
return this.getTypedDataArrayRequester(Ae, `/internal/references/city-with-region-and-country/search?term=${r}`);
|
|
6866
6874
|
}
|
|
6867
6875
|
/**
|
|
6868
6876
|
* Выполняет поиск данных о регионах по терму в названии.
|
|
@@ -6896,23 +6904,23 @@ class T extends fe {
|
|
|
6896
6904
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
6897
6905
|
*/
|
|
6898
6906
|
getPropertyTypes() {
|
|
6899
|
-
return this.getTypedDataArrayRequester(
|
|
6907
|
+
return this.getTypedDataArrayRequester(Dr, "/internal/references/property-type", !0);
|
|
6900
6908
|
}
|
|
6901
6909
|
/**
|
|
6902
6910
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
6903
6911
|
*/
|
|
6904
6912
|
getPriceCoefficients() {
|
|
6905
|
-
return this.getTypedDataArrayRequester(
|
|
6913
|
+
return this.getTypedDataArrayRequester(de, "/internal/references/price-coefficient", !0);
|
|
6906
6914
|
}
|
|
6907
6915
|
/**
|
|
6908
6916
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
6909
6917
|
*/
|
|
6910
6918
|
getProductFileType() {
|
|
6911
|
-
return this.getTypedDataArrayRequester(
|
|
6919
|
+
return this.getTypedDataArrayRequester(xt, "/public/references/product-file-type", !0);
|
|
6912
6920
|
}
|
|
6913
6921
|
}
|
|
6914
6922
|
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),
|
|
6923
|
+
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), Se = y(void 0), be = y(void 0), l = y(void 0);
|
|
6916
6924
|
return {
|
|
6917
6925
|
/**
|
|
6918
6926
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -6954,34 +6962,38 @@ const d = W("common.references_private", () => {
|
|
|
6954
6962
|
* Справочник статусов заказов.
|
|
6955
6963
|
*/
|
|
6956
6964
|
orderStatusReference: m,
|
|
6965
|
+
/**
|
|
6966
|
+
* Справочник детализирующих статусов (подстатусов) заказов.
|
|
6967
|
+
*/
|
|
6968
|
+
orderStatusDetailReference: f,
|
|
6957
6969
|
/**
|
|
6958
6970
|
* Справочник типов оплаты заказов.
|
|
6959
6971
|
*/
|
|
6960
|
-
paymentTypeReference:
|
|
6972
|
+
paymentTypeReference: D,
|
|
6961
6973
|
/**
|
|
6962
6974
|
* Справочник групп партнеров.
|
|
6963
6975
|
*/
|
|
6964
|
-
partnerGroupReference:
|
|
6976
|
+
partnerGroupReference: ie,
|
|
6965
6977
|
/**
|
|
6966
6978
|
* Справочник типов файлов продукктов/категорий.
|
|
6967
6979
|
*/
|
|
6968
|
-
productFileTypeReference:
|
|
6980
|
+
productFileTypeReference: ne,
|
|
6969
6981
|
/**
|
|
6970
6982
|
* Справочник типов ресурсов.
|
|
6971
6983
|
*/
|
|
6972
|
-
resourceTypesReference:
|
|
6984
|
+
resourceTypesReference: E,
|
|
6973
6985
|
/**
|
|
6974
6986
|
* Справочник направлений продаж.
|
|
6975
6987
|
*/
|
|
6976
|
-
salesDirectionsReference:
|
|
6988
|
+
salesDirectionsReference: K,
|
|
6977
6989
|
/**
|
|
6978
6990
|
* Справочник источников первичного интереса.
|
|
6979
6991
|
*/
|
|
6980
|
-
sourcePrimaryInterestReference:
|
|
6992
|
+
sourcePrimaryInterestReference: Te,
|
|
6981
6993
|
/**
|
|
6982
6994
|
* Справочник складов.
|
|
6983
6995
|
*/
|
|
6984
|
-
warehousesReference:
|
|
6996
|
+
warehousesReference: Se,
|
|
6985
6997
|
/**
|
|
6986
6998
|
* Справочник типов свойств.
|
|
6987
6999
|
*/
|
|
@@ -6991,93 +7003,98 @@ const d = W("common.references_private", () => {
|
|
|
6991
7003
|
*/
|
|
6992
7004
|
priceCoefficientsReference: l
|
|
6993
7005
|
};
|
|
6994
|
-
}),
|
|
6995
|
-
const n =
|
|
7006
|
+
}), bs = W("common.references", () => {
|
|
7007
|
+
const n = P(() => {
|
|
6996
7008
|
const l = d();
|
|
6997
7009
|
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((g) => {
|
|
6998
7010
|
l.channelPrimaryInterestReference = g;
|
|
6999
7011
|
}).catch(v)), l.channelPrimaryInterestReference;
|
|
7000
|
-
}), r =
|
|
7012
|
+
}), r = P(() => {
|
|
7001
7013
|
const l = d();
|
|
7002
7014
|
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(T).getContactPositions().then((g) => {
|
|
7003
7015
|
l.contactPositionsReference = g;
|
|
7004
7016
|
}).catch(v)), l.contactPositionsReference;
|
|
7005
|
-
}), e =
|
|
7017
|
+
}), e = P(() => {
|
|
7006
7018
|
const l = d();
|
|
7007
7019
|
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(T).getCurrency().then((g) => {
|
|
7008
7020
|
l.currencyReference = g;
|
|
7009
7021
|
}).catch(v)), l.currencyReference;
|
|
7010
|
-
}), t =
|
|
7022
|
+
}), t = P(() => {
|
|
7011
7023
|
const l = d();
|
|
7012
7024
|
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(T).getOpf().then((g) => {
|
|
7013
7025
|
l.opfReference = g;
|
|
7014
7026
|
}).catch(v)), l.opfReference;
|
|
7015
|
-
}), i =
|
|
7027
|
+
}), i = P(() => {
|
|
7016
7028
|
const l = d();
|
|
7017
7029
|
return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(T).getOperators().then((g) => {
|
|
7018
7030
|
l.operatorReference = g;
|
|
7019
7031
|
}).catch(v)), l.operatorReference;
|
|
7020
|
-
}), o =
|
|
7032
|
+
}), o = P(() => {
|
|
7021
7033
|
const l = d();
|
|
7022
7034
|
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(T).getOrderPaymentStatuses().then((g) => {
|
|
7023
7035
|
l.orderPaymentStatusReference = g;
|
|
7024
7036
|
}).catch(v)), l.orderPaymentStatusReference;
|
|
7025
|
-
}), c =
|
|
7037
|
+
}), c = P(() => {
|
|
7026
7038
|
const l = d();
|
|
7027
7039
|
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(T).getOrderStatuses().then((g) => {
|
|
7028
7040
|
l.orderStatusReference = g;
|
|
7029
7041
|
}).catch(v)), l.orderStatusReference;
|
|
7030
|
-
}), u =
|
|
7042
|
+
}), u = P(() => {
|
|
7043
|
+
const l = d();
|
|
7044
|
+
return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(T).getOrderStatusDetails().then((g) => {
|
|
7045
|
+
l.orderStatusDetailReference = g;
|
|
7046
|
+
}).catch(v)), l.orderStatusDetailReference;
|
|
7047
|
+
}), p = P(() => {
|
|
7031
7048
|
const l = d();
|
|
7032
7049
|
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((g) => {
|
|
7033
7050
|
l.paymentTypeReference = g;
|
|
7034
7051
|
}).catch(v)), l.paymentTypeReference;
|
|
7035
|
-
}),
|
|
7052
|
+
}), m = P(() => {
|
|
7036
7053
|
const l = d();
|
|
7037
7054
|
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((g) => {
|
|
7038
7055
|
l.partnerGroupReference = g;
|
|
7039
7056
|
}).catch(v)), l.partnerGroupReference;
|
|
7040
|
-
}),
|
|
7057
|
+
}), f = P(() => {
|
|
7041
7058
|
const l = d();
|
|
7042
7059
|
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((g) => {
|
|
7043
7060
|
l.productFileTypeReference = g;
|
|
7044
7061
|
}).catch(v)), l.productFileTypeReference;
|
|
7045
|
-
}),
|
|
7062
|
+
}), D = P(() => {
|
|
7046
7063
|
const l = d();
|
|
7047
7064
|
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((g) => {
|
|
7048
7065
|
l.resourceTypesReference = g;
|
|
7049
7066
|
}).catch(v)), l.resourceTypesReference;
|
|
7050
|
-
}),
|
|
7067
|
+
}), ie = P(() => {
|
|
7051
7068
|
const l = d();
|
|
7052
7069
|
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(T).getSalesDirections().then((g) => {
|
|
7053
7070
|
l.salesDirectionsReference = g;
|
|
7054
7071
|
}).catch(v)), l.salesDirectionsReference;
|
|
7055
|
-
}),
|
|
7072
|
+
}), ne = P(() => {
|
|
7056
7073
|
const l = d();
|
|
7057
7074
|
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((g) => {
|
|
7058
7075
|
l.sourcePrimaryInterestReference = g;
|
|
7059
7076
|
}).catch(v)), l.sourcePrimaryInterestReference;
|
|
7060
|
-
}),
|
|
7077
|
+
}), E = P(() => {
|
|
7061
7078
|
const l = d();
|
|
7062
7079
|
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(T).getDeliveryTypes().then((g) => {
|
|
7063
7080
|
l.deliveryTypeReference = g;
|
|
7064
7081
|
}).catch(v)), l.deliveryTypeReference;
|
|
7065
|
-
}),
|
|
7082
|
+
}), K = P(() => {
|
|
7066
7083
|
const l = d();
|
|
7067
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(
|
|
7084
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Dt).getManagers().then((g) => {
|
|
7068
7085
|
l.managersList = g;
|
|
7069
7086
|
}).catch(v)), l.managersList;
|
|
7070
|
-
}),
|
|
7087
|
+
}), Te = P(() => {
|
|
7071
7088
|
const l = d();
|
|
7072
7089
|
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(T).getWarehouses().then((g) => {
|
|
7073
7090
|
l.warehousesReference = g;
|
|
7074
7091
|
}).catch(v)), l.warehousesReference;
|
|
7075
|
-
}),
|
|
7092
|
+
}), Se = P(() => {
|
|
7076
7093
|
const l = d();
|
|
7077
7094
|
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(T).getPropertyTypes().then((g) => {
|
|
7078
7095
|
l.propertyTypesReference = g;
|
|
7079
7096
|
}).catch(v)), l.propertyTypesReference;
|
|
7080
|
-
}), be =
|
|
7097
|
+
}), be = P(() => {
|
|
7081
7098
|
const l = d();
|
|
7082
7099
|
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(T).getPriceCoefficients().then((g) => {
|
|
7083
7100
|
l.priceCoefficientsReference = g;
|
|
@@ -7112,53 +7129,57 @@ const d = W("common.references_private", () => {
|
|
|
7112
7129
|
* Справочник статусов заказов.
|
|
7113
7130
|
*/
|
|
7114
7131
|
orderStatusReference: c,
|
|
7132
|
+
/**
|
|
7133
|
+
* Справочник детализирующих статусов (подстатусов) заказов.
|
|
7134
|
+
*/
|
|
7135
|
+
orderStatusDetailReference: u,
|
|
7115
7136
|
/**
|
|
7116
7137
|
* Справочник типов оплаты заказов.
|
|
7117
7138
|
*/
|
|
7118
|
-
paymentTypeReference:
|
|
7139
|
+
paymentTypeReference: p,
|
|
7119
7140
|
/**
|
|
7120
7141
|
* Справочник групп партнеров.
|
|
7121
7142
|
*/
|
|
7122
|
-
partnerGroupsReference:
|
|
7143
|
+
partnerGroupsReference: m,
|
|
7123
7144
|
/**
|
|
7124
7145
|
* Справочник типов файлов продуктов/категорий.
|
|
7125
7146
|
*/
|
|
7126
|
-
productFilesTypesReference:
|
|
7147
|
+
productFilesTypesReference: f,
|
|
7127
7148
|
/**
|
|
7128
7149
|
* Справочник типов ресурсов.
|
|
7129
7150
|
*/
|
|
7130
|
-
resourceTypesReference:
|
|
7151
|
+
resourceTypesReference: D,
|
|
7131
7152
|
/**
|
|
7132
7153
|
* Справочник направлений продаж.
|
|
7133
7154
|
*/
|
|
7134
|
-
salesDirectionsReference:
|
|
7155
|
+
salesDirectionsReference: ie,
|
|
7135
7156
|
/**
|
|
7136
7157
|
* Справочник каналов первичного интереса.
|
|
7137
7158
|
*/
|
|
7138
|
-
sourcePrimaryInterestsReference:
|
|
7159
|
+
sourcePrimaryInterestsReference: ne,
|
|
7139
7160
|
/**
|
|
7140
7161
|
* Справочник типов доставки.
|
|
7141
7162
|
*/
|
|
7142
|
-
deliveryTypeReference:
|
|
7163
|
+
deliveryTypeReference: E,
|
|
7143
7164
|
/**
|
|
7144
7165
|
* Список менеджеров.
|
|
7145
7166
|
*/
|
|
7146
|
-
managersList:
|
|
7167
|
+
managersList: K,
|
|
7147
7168
|
/**
|
|
7148
7169
|
* Справочник складов.
|
|
7149
7170
|
*/
|
|
7150
|
-
warehousesReference:
|
|
7171
|
+
warehousesReference: Te,
|
|
7151
7172
|
/**
|
|
7152
7173
|
* Справочник типов свойств.
|
|
7153
7174
|
*/
|
|
7154
|
-
propertyTypesReference:
|
|
7175
|
+
propertyTypesReference: Se,
|
|
7155
7176
|
/**
|
|
7156
7177
|
* Справочник коэффициентов цен.
|
|
7157
7178
|
*/
|
|
7158
7179
|
priceCoefficientsReference: be
|
|
7159
7180
|
};
|
|
7160
7181
|
});
|
|
7161
|
-
class
|
|
7182
|
+
class qt {
|
|
7162
7183
|
/**
|
|
7163
7184
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
7164
7185
|
*
|
|
@@ -7176,7 +7197,7 @@ class Ot {
|
|
|
7176
7197
|
this.name = r.name, this.content = r.content;
|
|
7177
7198
|
}
|
|
7178
7199
|
}
|
|
7179
|
-
class
|
|
7200
|
+
class lr {
|
|
7180
7201
|
/**
|
|
7181
7202
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
7182
7203
|
*
|
|
@@ -7216,10 +7237,10 @@ class cr {
|
|
|
7216
7237
|
*/
|
|
7217
7238
|
s(this, "tags");
|
|
7218
7239
|
var e;
|
|
7219
|
-
this.resourceType = new
|
|
7240
|
+
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
7241
|
}
|
|
7221
7242
|
}
|
|
7222
|
-
class
|
|
7243
|
+
class ks extends h {
|
|
7223
7244
|
/**
|
|
7224
7245
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
7225
7246
|
*
|
|
@@ -7227,7 +7248,7 @@ class bs extends h {
|
|
|
7227
7248
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
7228
7249
|
*/
|
|
7229
7250
|
getResourceSeoData(r, e) {
|
|
7230
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new
|
|
7251
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new lr(t.data));
|
|
7231
7252
|
}
|
|
7232
7253
|
/**
|
|
7233
7254
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -7238,7 +7259,7 @@ class bs extends h {
|
|
|
7238
7259
|
* в случае ошибок в запросах.
|
|
7239
7260
|
*/
|
|
7240
7261
|
saveResourceSeoData(r, e = {}) {
|
|
7241
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new
|
|
7262
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new lr(t.data), e);
|
|
7242
7263
|
}
|
|
7243
7264
|
/**
|
|
7244
7265
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -7250,7 +7271,7 @@ class bs extends h {
|
|
|
7250
7271
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
7251
7272
|
}
|
|
7252
7273
|
}
|
|
7253
|
-
class
|
|
7274
|
+
class Ls extends h {
|
|
7254
7275
|
/**
|
|
7255
7276
|
* Возвращает подсказки по адресам.
|
|
7256
7277
|
*
|
|
@@ -7297,8 +7318,8 @@ class Ss extends h {
|
|
|
7297
7318
|
});
|
|
7298
7319
|
}
|
|
7299
7320
|
}
|
|
7300
|
-
var
|
|
7301
|
-
class
|
|
7321
|
+
var Nt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Nt || {});
|
|
7322
|
+
class Ut extends Pr {
|
|
7302
7323
|
/**
|
|
7303
7324
|
* Инициализирует экземпляр класса {@link User}.
|
|
7304
7325
|
*
|
|
@@ -7322,10 +7343,10 @@ class qt extends Pr {
|
|
|
7322
7343
|
* Роль ценообразования текущего пользователя.
|
|
7323
7344
|
*/
|
|
7324
7345
|
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
|
|
7346
|
+
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
7347
|
}
|
|
7327
7348
|
}
|
|
7328
|
-
class
|
|
7349
|
+
class _s extends h {
|
|
7329
7350
|
/**
|
|
7330
7351
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
7331
7352
|
*/
|
|
@@ -7341,16 +7362,16 @@ class ks extends h {
|
|
|
7341
7362
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
7342
7363
|
}
|
|
7343
7364
|
}
|
|
7344
|
-
class
|
|
7365
|
+
class Ft extends h {
|
|
7345
7366
|
/**
|
|
7346
7367
|
* Возвращает данные о текущем пользователе.
|
|
7347
7368
|
*/
|
|
7348
7369
|
// eslint-disable-next-line class-methods-use-this
|
|
7349
7370
|
getCurrentUser() {
|
|
7350
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
7371
|
+
return this.get("/internal/users/info", {}, (r) => new Ut(r.data), !0);
|
|
7351
7372
|
}
|
|
7352
7373
|
}
|
|
7353
|
-
const
|
|
7374
|
+
const Ht = W("common.user_state_private", () => {
|
|
7354
7375
|
const n = y({}), r = y(void 0);
|
|
7355
7376
|
return {
|
|
7356
7377
|
/**
|
|
@@ -7362,20 +7383,20 @@ const Ut = W("common.user_state_private", () => {
|
|
|
7362
7383
|
*/
|
|
7363
7384
|
currentUser: r
|
|
7364
7385
|
};
|
|
7365
|
-
}),
|
|
7386
|
+
}), Is = W("common.user_state", () => ({
|
|
7366
7387
|
/**
|
|
7367
7388
|
* Данные о текущем пользователе.
|
|
7368
7389
|
*/
|
|
7369
|
-
currentUser:
|
|
7370
|
-
const r =
|
|
7371
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(
|
|
7390
|
+
currentUser: P(() => {
|
|
7391
|
+
const r = Ht();
|
|
7392
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Ft).getCurrentUser().then((e) => {
|
|
7372
7393
|
r.currentUser = e;
|
|
7373
7394
|
}).catch(v).finally(() => {
|
|
7374
7395
|
r.dataLoaderList.currentUser = !1;
|
|
7375
7396
|
})), r.currentUser;
|
|
7376
7397
|
})
|
|
7377
7398
|
}));
|
|
7378
|
-
class
|
|
7399
|
+
class Os {
|
|
7379
7400
|
/**
|
|
7380
7401
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
7381
7402
|
*
|
|
@@ -7399,167 +7420,168 @@ class Is {
|
|
|
7399
7420
|
}
|
|
7400
7421
|
}
|
|
7401
7422
|
export {
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7423
|
+
Lt as AnyReference,
|
|
7424
|
+
ct as AppBaseConfig,
|
|
7425
|
+
Fe as BankAccount,
|
|
7405
7426
|
Ce as BasePaginationProvider,
|
|
7406
|
-
|
|
7427
|
+
gt as CalculationTypeEnum,
|
|
7407
7428
|
oe as Cart,
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7429
|
+
Qt as CartProvider,
|
|
7430
|
+
Xt as CatalogProvider,
|
|
7431
|
+
yr as CatalogableItem,
|
|
7411
7432
|
N as Category,
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7433
|
+
rr as CategoryPricingRule,
|
|
7434
|
+
Sr as ChannelPrimaryInterest,
|
|
7435
|
+
Ts as City,
|
|
7436
|
+
Ae as CityWithRegionAndCountry,
|
|
7437
|
+
nr as Client,
|
|
7438
|
+
at as ClientAdditionalData,
|
|
7439
|
+
Pe as ClientCategory,
|
|
7419
7440
|
O as ClientDataProvider,
|
|
7420
|
-
|
|
7421
|
-
|
|
7441
|
+
Zt as ClientPriceProvider,
|
|
7442
|
+
es as ClientPriceTemplateProvider,
|
|
7422
7443
|
j as ClientProduct,
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7444
|
+
ss as ClientProductCategoryDataProvider,
|
|
7445
|
+
is as ClientProductDataProvider,
|
|
7446
|
+
V as ClientShortInfo,
|
|
7447
|
+
yt as ClientsAdditionalDataRequestTypeEnum,
|
|
7448
|
+
us as ClientsListFilters,
|
|
7428
7449
|
ge as CodedIdentity,
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7450
|
+
gs as ConfiguratorProvider,
|
|
7451
|
+
Rt as ConfiguratorsEnum,
|
|
7452
|
+
He as Contact,
|
|
7453
|
+
ar as ContactLinks,
|
|
7433
7454
|
B as ContactPerson,
|
|
7434
|
-
|
|
7435
|
-
|
|
7455
|
+
Ct as ContactPersonRelated,
|
|
7456
|
+
_t as ContactPosition,
|
|
7436
7457
|
Ie as ContactRelation,
|
|
7437
7458
|
Ar as ContragentBase,
|
|
7438
7459
|
De as ContragentFactory,
|
|
7439
7460
|
$r as ContragentIc,
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7461
|
+
wt as ContragentPerson,
|
|
7462
|
+
vt as ContragentUlNr,
|
|
7463
|
+
Tr as ContragentUlR,
|
|
7464
|
+
ze as CostSourceEnum,
|
|
7444
7465
|
te as Country,
|
|
7445
|
-
|
|
7466
|
+
Ve as CuratedDirection,
|
|
7446
7467
|
Ee as Curator,
|
|
7447
7468
|
x as Currency,
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7469
|
+
Ls as DataSuggestionProvider,
|
|
7470
|
+
ys as DateTimeProvider,
|
|
7471
|
+
dr as DeletableNamedIdentity,
|
|
7451
7472
|
pe as DeliveryAddress,
|
|
7452
7473
|
F as DeliveryType,
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7474
|
+
Et as DetailedJwtPayload,
|
|
7475
|
+
st as DeviceTypeResolutionConfig,
|
|
7476
|
+
lt as DiscountShortInfo,
|
|
7477
|
+
Os as FieldValidationResultData,
|
|
7457
7478
|
G as FilterGroup,
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7479
|
+
tr as FilterItem,
|
|
7480
|
+
Ke as FilterOpEnum,
|
|
7481
|
+
fr as GeoCoordinates,
|
|
7482
|
+
pt as HiddenCatalogableItem,
|
|
7462
7483
|
fe as HttpCachedRequester,
|
|
7463
|
-
|
|
7484
|
+
it as HttpParamsConfig,
|
|
7464
7485
|
h as HttpRequester,
|
|
7465
7486
|
J as Identity,
|
|
7466
|
-
|
|
7487
|
+
ht as Image,
|
|
7467
7488
|
M as JwtPayload,
|
|
7468
7489
|
ae as Manager,
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7490
|
+
Je as ManagerCommon,
|
|
7491
|
+
vs as ManagerDataFactory,
|
|
7492
|
+
Dt as ManagerDataProvider,
|
|
7493
|
+
qt as MetaTagItem,
|
|
7494
|
+
b as NamedIdentity,
|
|
7474
7495
|
X as Offer,
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7496
|
+
_r as OfferShortInfo,
|
|
7497
|
+
Cs as OffersDataProvider,
|
|
7498
|
+
as as OffersListFilters,
|
|
7499
|
+
Or as Operator,
|
|
7479
7500
|
z as Opf,
|
|
7480
7501
|
U as OpfEnum,
|
|
7481
|
-
|
|
7502
|
+
S as Order,
|
|
7482
7503
|
At as OrderAction,
|
|
7483
|
-
|
|
7504
|
+
Rs as OrderEditorData,
|
|
7484
7505
|
Ir as OrderInfo,
|
|
7485
|
-
|
|
7486
|
-
|
|
7506
|
+
dt as OrderItem,
|
|
7507
|
+
wr as OrderItemBase,
|
|
7487
7508
|
It as OrderPaymentStatus,
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7509
|
+
kr as OrderShortInfo,
|
|
7510
|
+
$e as OrderStatus,
|
|
7511
|
+
Ot as OrderStatusDetail,
|
|
7512
|
+
kt as OrderStatusDetailEnum,
|
|
7491
7513
|
bt as OrderStatusEnum,
|
|
7492
7514
|
$t as OrderStatusHistoryInfo,
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7515
|
+
Ds as OrdersDataProvider,
|
|
7516
|
+
Ps as OrdersListFilters,
|
|
7517
|
+
Qe as PaginationFiltersBase,
|
|
7496
7518
|
se as PartnerGroup,
|
|
7497
|
-
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7519
|
+
xr as PaymentType,
|
|
7520
|
+
Re as PreferencesStorageProvider,
|
|
7521
|
+
Oe as PriceAnalyze,
|
|
7522
|
+
ds as PriceAnalyzeProvider,
|
|
7523
|
+
de as PriceCoefficient,
|
|
7524
|
+
mr as PriceCoefficientEnum,
|
|
7525
|
+
As as PriceHistoryDataProvider,
|
|
7526
|
+
Tt as PriceHistoryItem,
|
|
7505
7527
|
Z as PriceTemplate,
|
|
7506
|
-
|
|
7528
|
+
Le as PriceTemplateCategory,
|
|
7507
7529
|
ce as PriceTemplateClient,
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
|
|
7530
|
+
Rr as PriceTemplateICatalogableItem,
|
|
7531
|
+
_e as PriceTemplateProduct,
|
|
7532
|
+
ns as PriceTemplateProvider,
|
|
7511
7533
|
ue as PricingRole,
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7534
|
+
os as PricingRoleProvider,
|
|
7535
|
+
Ue as PrimaryCatalogableItem,
|
|
7536
|
+
_ as Product,
|
|
7537
|
+
rs as ProductCategoryDataProvider,
|
|
7538
|
+
ts as ProductDataProvider,
|
|
7539
|
+
xt as ProductFileType,
|
|
7540
|
+
Be as ProductPriceCoefficient,
|
|
7541
|
+
St as ProductPriceHistory,
|
|
7542
|
+
er as ProductUnit,
|
|
7543
|
+
cs as PropertiesProvider,
|
|
7522
7544
|
le as Property,
|
|
7523
|
-
|
|
7524
|
-
|
|
7545
|
+
Dr as PropertyType,
|
|
7546
|
+
mt as PropertyTypeEnum,
|
|
7525
7547
|
Y as PropertyValue,
|
|
7526
|
-
|
|
7527
|
-
|
|
7548
|
+
$s as RecommendationsDataProvider,
|
|
7549
|
+
cr as RecommendationsList,
|
|
7528
7550
|
w as Reference,
|
|
7529
|
-
|
|
7551
|
+
Ss as ReferenceDataFactory,
|
|
7530
7552
|
T as ReferenceDataProvider,
|
|
7531
7553
|
me as Region,
|
|
7532
|
-
|
|
7554
|
+
qr as ResourceType,
|
|
7533
7555
|
q as SalesDirection,
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7556
|
+
nt as SentryConfig,
|
|
7557
|
+
lr as Seo,
|
|
7558
|
+
ks as SeoDataProvider,
|
|
7537
7559
|
br as SourcePrimaryInterest,
|
|
7538
|
-
|
|
7539
|
-
|
|
7560
|
+
ut as StockCount,
|
|
7561
|
+
ms as TableDataPagination,
|
|
7540
7562
|
Pt as TableDataPaginationRequestParams,
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7563
|
+
fs as TableDataSortRequestParams,
|
|
7564
|
+
ls as TemplateProductCategoryDataProvider,
|
|
7565
|
+
Yt as TemplatesListFilters,
|
|
7566
|
+
We as TypedInstanceFactory,
|
|
7567
|
+
Lr as UnitsHelper,
|
|
7568
|
+
ps as UnknownClientDataProvider,
|
|
7569
|
+
gr as UpdatableNamedIdentity,
|
|
7570
|
+
Ut as User,
|
|
7571
|
+
_s as UserAuthDataProvider,
|
|
7550
7572
|
Pr as UserCommonInfo,
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7573
|
+
Ft as UserDataProvider,
|
|
7574
|
+
Cr as UserPricingRole,
|
|
7575
|
+
I as UserShortInfo,
|
|
7576
|
+
Nt as UserTypeEnum,
|
|
7577
|
+
hs as VersionConfig,
|
|
7556
7578
|
we as Warehouse,
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7579
|
+
ot as WebSocketConfig,
|
|
7580
|
+
sr as findCatalogItemByIdRecursive,
|
|
7581
|
+
ir as flattenCatalogItems,
|
|
7582
|
+
ws as pluralize,
|
|
7583
|
+
ke as useAuthStateStore,
|
|
7562
7584
|
k as useBaseConfigStateStore,
|
|
7563
|
-
|
|
7564
|
-
|
|
7585
|
+
bs as useReferencesStore,
|
|
7586
|
+
Is as useUserStateStore
|
|
7565
7587
|
};
|