@snabcentr/common-lib 1.81.0 → 1.82.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +1 -1
- package/dist/sc-common-lib.js +795 -794
- 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/cart/classes/cart.d.ts +5 -5
- package/dist/src/cart/classes/cart.d.ts.map +1 -1
- package/dist/src/cart/classes/index.d.ts +0 -2
- package/dist/src/cart/classes/index.d.ts.map +1 -1
- package/dist/src/cart/classes/order-item.d.ts +52 -0
- package/dist/src/cart/classes/order-item.d.ts.map +1 -0
- package/dist/src/cart/interfaces/i-cart.d.ts +2 -2
- package/dist/src/cart/interfaces/i-cart.d.ts.map +1 -1
- package/dist/src/cart/interfaces/{i-cart-item-base.d.ts → i-order-item-base.d.ts} +21 -14
- package/dist/src/cart/interfaces/i-order-item-base.d.ts.map +1 -0
- package/dist/src/cart/interfaces/i-order-item.d.ts +40 -0
- package/dist/src/cart/interfaces/i-order-item.d.ts.map +1 -0
- package/dist/src/cart/interfaces/index.d.ts +0 -2
- package/dist/src/cart/interfaces/index.d.ts.map +1 -1
- package/dist/src/cart/providers/cart-provider.d.ts +4 -4
- package/dist/src/cart/providers/cart-provider.d.ts.map +1 -1
- package/dist/src/catalog/interfaces/i-predefined-properties.d.ts +2 -1
- package/dist/src/catalog/interfaces/i-predefined-properties.d.ts.map +1 -1
- package/dist/src/configurator/enums/configurators-enum.d.ts +26 -0
- package/dist/src/configurator/enums/configurators-enum.d.ts.map +1 -0
- package/dist/src/configurator/enums/index.d.ts +2 -0
- package/dist/src/configurator/enums/index.d.ts.map +1 -0
- package/dist/src/configurator/index.d.ts +2 -0
- package/dist/src/configurator/index.d.ts.map +1 -1
- package/dist/src/configurator/types/configurator-name.d.ts +7 -0
- package/dist/src/configurator/types/configurator-name.d.ts.map +1 -0
- package/dist/src/configurator/types/index.d.ts +2 -0
- package/dist/src/configurator/types/index.d.ts.map +1 -0
- package/dist/src/orders/classes/index.d.ts +2 -1
- package/dist/src/orders/classes/index.d.ts.map +1 -1
- package/dist/src/orders/classes/order-info.d.ts +11 -11
- package/dist/src/orders/classes/order-item-base.d.ts +68 -0
- package/dist/src/orders/classes/order-item-base.d.ts.map +1 -0
- package/dist/src/orders/classes/order-item.d.ts +57 -0
- package/dist/src/orders/classes/order-item.d.ts.map +1 -0
- package/dist/src/orders/classes/order-short-info.d.ts +3 -3
- package/dist/src/orders/classes/order.d.ts +10 -10
- package/dist/src/orders/classes/order.d.ts.map +1 -1
- package/dist/src/orders/interfaces/i-order-item-base.d.ts +61 -0
- package/dist/src/orders/interfaces/i-order-item-base.d.ts.map +1 -0
- package/dist/src/{cart/interfaces/i-cart-item.d.ts → orders/interfaces/i-order-item.d.ts} +11 -13
- package/dist/src/orders/interfaces/i-order-item.d.ts.map +1 -0
- package/dist/src/orders/interfaces/i-order.d.ts +2 -2
- package/dist/src/orders/interfaces/i-order.d.ts.map +1 -1
- package/dist/src/orders/interfaces/index.d.ts +2 -1
- package/dist/src/orders/interfaces/index.d.ts.map +1 -1
- package/dist/src/orders/providers/orders-data-provider.d.ts +15 -2
- package/dist/src/orders/providers/orders-data-provider.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/src/cart/classes/cart-item-base.d.ts +0 -61
- package/dist/src/cart/classes/cart-item-base.d.ts.map +0 -1
- package/dist/src/cart/classes/cart-item.d.ts +0 -49
- package/dist/src/cart/classes/cart-item.d.ts.map +0 -1
- package/dist/src/cart/interfaces/i-cart-item-base.d.ts.map +0 -1
- package/dist/src/cart/interfaces/i-cart-item.d.ts.map +0 -1
- package/dist/src/orders/classes/order-product.d.ts +0 -94
- package/dist/src/orders/classes/order-product.d.ts.map +0 -1
- package/dist/src/orders/interfaces/i-order-product.d.ts +0 -87
- package/dist/src/orders/interfaces/i-order-product.d.ts.map +0 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (n, r, e) =>
|
|
1
|
+
var Tr = Object.defineProperty;
|
|
2
|
+
var br = (n, r, e) => r in n ? Tr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var t = (n, r, e) => br(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { jwtDecode as sr } from "jwt-decode";
|
|
5
|
-
import { merge as ne, isNil as
|
|
6
|
-
import { objectToCamel as
|
|
7
|
-
import { defineStore as
|
|
8
|
-
import { ref as y, markRaw as
|
|
9
|
-
import { isAfter as
|
|
10
|
-
import
|
|
11
|
-
class
|
|
5
|
+
import { merge as ne, isNil as a, isEmpty as K, noop as w, mapValues as ir, isArray as U, every as Sr, split as kr, isString as v, constant as Ir, toUpper as Lr, cloneDeep as dr, toLower as xr, isFunction as Oe, map as pe, forEach as _r, isDate as Le, omitBy as nr, isObject as or } from "lodash-es";
|
|
6
|
+
import { objectToCamel as Ne, objectToSnake as We } from "ts-case-convert";
|
|
7
|
+
import { defineStore as M } from "pinia";
|
|
8
|
+
import { ref as y, markRaw as qr, computed as D } from "vue";
|
|
9
|
+
import { isAfter as Je, parseISO as C, startOfToday as de, format as N, addSeconds as Or, addBusinessDays as Nr, endOfTomorrow as Ur, startOfTomorrow as Hr, endOfYesterday as jr, startOfYesterday as Gr, endOfToday as Fr, endOfDay as Mr, startOfDay as Br } from "date-fns";
|
|
10
|
+
import zr from "axios";
|
|
11
|
+
class H {
|
|
12
12
|
/**
|
|
13
13
|
* Инициализирует экземпляр класса {@link JwtPayload}.
|
|
14
14
|
*
|
|
@@ -107,11 +107,11 @@ class N {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
const e = sr(r), s = new
|
|
110
|
+
const e = sr(r), s = new H(Ne(e));
|
|
111
111
|
return s.resourceAccess = e.resource_access, s;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class Nt extends H {
|
|
115
115
|
/**
|
|
116
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
117
117
|
*
|
|
@@ -151,10 +151,10 @@ class Ot extends N {
|
|
|
151
151
|
* @param jwtToken JWT-ключ доступа.
|
|
152
152
|
*/
|
|
153
153
|
static getJwtPayload(e) {
|
|
154
|
-
return new
|
|
154
|
+
return new H(Ne(sr(e)));
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
class
|
|
157
|
+
class Wr {
|
|
158
158
|
/**
|
|
159
159
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
160
160
|
*
|
|
@@ -176,7 +176,7 @@ class zr {
|
|
|
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 Jr {
|
|
180
180
|
/**
|
|
181
181
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
182
182
|
*
|
|
@@ -198,7 +198,7 @@ class Wr {
|
|
|
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 Er {
|
|
202
202
|
/**
|
|
203
203
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
204
204
|
*
|
|
@@ -243,7 +243,7 @@ class Jr {
|
|
|
243
243
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
class
|
|
246
|
+
class Vr {
|
|
247
247
|
/**
|
|
248
248
|
* Инициализирует экземпляр класса {@link WebSocketConfig}.
|
|
249
249
|
*
|
|
@@ -282,7 +282,7 @@ class Er {
|
|
|
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 Kr {
|
|
286
286
|
/**
|
|
287
287
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
288
288
|
*
|
|
@@ -326,18 +326,18 @@ class Vr {
|
|
|
326
326
|
*/
|
|
327
327
|
t(this, "dateFormats");
|
|
328
328
|
var e, s, 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 Jr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Wr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Er({
|
|
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 Vr(r.websocket) : void 0, this.dateFormats = {
|
|
333
333
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
334
334
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
335
335
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
const k =
|
|
340
|
-
const n = y(new
|
|
339
|
+
const k = M("common.config", () => {
|
|
340
|
+
const n = y(new Kr());
|
|
341
341
|
return {
|
|
342
342
|
/**
|
|
343
343
|
* Конфигурационные данные приложения.
|
|
@@ -378,8 +378,8 @@ class fe {
|
|
|
378
378
|
if (e)
|
|
379
379
|
try {
|
|
380
380
|
const s = JSON.parse(e);
|
|
381
|
-
if (!s.availableFor ||
|
|
382
|
-
if (
|
|
381
|
+
if (!s.availableFor || Je(C(s.availableFor) || de(), /* @__PURE__ */ new Date())) {
|
|
382
|
+
if (a(s.data) || K(s.data))
|
|
383
383
|
throw new Error("Data is empty");
|
|
384
384
|
return s.data;
|
|
385
385
|
}
|
|
@@ -401,7 +401,7 @@ class fe {
|
|
|
401
401
|
static saveActualDataToStorage(r, e, s) {
|
|
402
402
|
if (this.isLocalStorageAvailable())
|
|
403
403
|
try {
|
|
404
|
-
if (
|
|
404
|
+
if (a(e) || K(e))
|
|
405
405
|
throw new Error("Data is empty");
|
|
406
406
|
const i = JSON.stringify({
|
|
407
407
|
availableFor: s,
|
|
@@ -452,7 +452,7 @@ class fe {
|
|
|
452
452
|
const i = localStorage.getItem(s);
|
|
453
453
|
if (i) {
|
|
454
454
|
const o = JSON.parse(i);
|
|
455
|
-
o.availableFor && !
|
|
455
|
+
o.availableFor && !Je(C(o.availableFor) || de(), /* @__PURE__ */ new Date()) && r.push(s);
|
|
456
456
|
}
|
|
457
457
|
} catch {
|
|
458
458
|
r.push(s);
|
|
@@ -468,15 +468,15 @@ class fe {
|
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Ee(n) {
|
|
472
472
|
try {
|
|
473
|
-
const r =
|
|
473
|
+
const r = H.getJwtPayload(n);
|
|
474
474
|
return new Date(r.exp * 1e3);
|
|
475
475
|
} catch {
|
|
476
476
|
return;
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
const
|
|
479
|
+
const W = M("common.auth_state_private", () => {
|
|
480
480
|
const n = y(
|
|
481
481
|
(() => {
|
|
482
482
|
var u;
|
|
@@ -489,10 +489,10 @@ const z = G("common.auth_state_private", () => {
|
|
|
489
489
|
const c = (u = k().config.devMode) == null ? void 0 : u.initAuthBearerToken;
|
|
490
490
|
return c ? Promise.resolve(c) : void 0;
|
|
491
491
|
})()
|
|
492
|
-
), r = y(void 0), e = y(void 0), s =
|
|
492
|
+
), r = y(void 0), e = y(void 0), s = qr(/* @__PURE__ */ new Map());
|
|
493
493
|
function i() {
|
|
494
|
-
e.value = void 0,
|
|
495
|
-
const c =
|
|
494
|
+
e.value = void 0, a(n.value) || n.value.then((o) => {
|
|
495
|
+
const c = H.getJwtPayload(o);
|
|
496
496
|
e.value = c.exp * 1e3 > Date.now() ? ir(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
|
|
497
497
|
}).catch(w);
|
|
498
498
|
}
|
|
@@ -518,47 +518,47 @@ const z = G("common.auth_state_private", () => {
|
|
|
518
518
|
*/
|
|
519
519
|
recalculateUserPermissions: i
|
|
520
520
|
};
|
|
521
|
-
}),
|
|
521
|
+
}), Ae = M("common.auth_state", () => {
|
|
522
522
|
const n = D(() => {
|
|
523
|
-
const o =
|
|
524
|
-
if (
|
|
523
|
+
const o = W();
|
|
524
|
+
if (a(o.jwtToken) && !a(o.jwtTokenUpdater)) {
|
|
525
525
|
const c = o.jwtTokenUpdater();
|
|
526
526
|
o.jwtToken = c, c.then((u) => {
|
|
527
|
-
o.jwtToken = Promise.resolve(u), fe.saveActualDataToStorage("sc.token", u,
|
|
527
|
+
o.jwtToken = Promise.resolve(u), fe.saveActualDataToStorage("sc.token", u, Ee(u)), o.recalculateUserPermissions();
|
|
528
528
|
}).catch(w);
|
|
529
529
|
}
|
|
530
530
|
return o.jwtToken;
|
|
531
531
|
});
|
|
532
532
|
function r(o) {
|
|
533
|
-
|
|
533
|
+
W().jwtTokenUpdater = o;
|
|
534
534
|
}
|
|
535
535
|
function e(o) {
|
|
536
|
-
const c =
|
|
537
|
-
c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o,
|
|
536
|
+
const c = W();
|
|
537
|
+
c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o, Ee(o)), c.recalculateUserPermissions();
|
|
538
538
|
}
|
|
539
539
|
function s() {
|
|
540
|
-
const o =
|
|
540
|
+
const o = W();
|
|
541
541
|
o.jwtToken = void 0, o.userPermissions = void 0, fe.saveActualDataToStorage("sc.token", void 0);
|
|
542
542
|
}
|
|
543
543
|
function i(o) {
|
|
544
|
-
const c =
|
|
545
|
-
!
|
|
546
|
-
const g =
|
|
547
|
-
c.userPermissions = g.exp * 1e3 > Date.now() ? ir(g.resourceAccess, (
|
|
544
|
+
const c = W();
|
|
545
|
+
!a(c.jwtToken) && a(c.userPermissions) && c.jwtToken.then((f) => {
|
|
546
|
+
const g = H.getJwtPayload(f);
|
|
547
|
+
c.userPermissions = g.exp * 1e3 > Date.now() ? ir(g.resourceAccess, (b) => (b == null ? void 0 : b.roles) ?? []) : void 0;
|
|
548
548
|
}).catch(w);
|
|
549
|
-
const u =
|
|
549
|
+
const u = U(o) ? o.join(" && ") : o;
|
|
550
550
|
if (c.userPermissionsComputedRefs.has(u))
|
|
551
551
|
return c.userPermissionsComputedRefs.get(u);
|
|
552
552
|
const h = D(() => {
|
|
553
553
|
const f = (g) => {
|
|
554
|
-
var
|
|
555
|
-
const
|
|
556
|
-
if (
|
|
554
|
+
var z;
|
|
555
|
+
const b = kr(g, ".");
|
|
556
|
+
if (b.length < 2)
|
|
557
557
|
return !1;
|
|
558
|
-
const [ee, re] =
|
|
559
|
-
return
|
|
558
|
+
const [ee, re] = b, B = (z = W().userPermissions) == null ? void 0 : z[ee];
|
|
559
|
+
return U(B) && B.includes(re);
|
|
560
560
|
};
|
|
561
|
-
return
|
|
561
|
+
return U(o) ? Sr(o, (g) => f(g)) : f(o);
|
|
562
562
|
});
|
|
563
563
|
return c.userPermissionsComputedRefs.set(u, h), h;
|
|
564
564
|
}
|
|
@@ -591,7 +591,7 @@ const z = G("common.auth_state_private", () => {
|
|
|
591
591
|
hasUserPermission: i
|
|
592
592
|
};
|
|
593
593
|
});
|
|
594
|
-
class
|
|
594
|
+
class Z {
|
|
595
595
|
/**
|
|
596
596
|
* Инициализирует экземпляр класса {@link Identity}.
|
|
597
597
|
*
|
|
@@ -607,16 +607,16 @@ class F {
|
|
|
607
607
|
* @inheritDoc
|
|
608
608
|
*/
|
|
609
609
|
t(this, "guid");
|
|
610
|
-
this.id = r == null ? void 0 : r.id,
|
|
610
|
+
this.id = r == null ? void 0 : r.id, a(this.id) && (a(e) ? typeof (r == null ? void 0 : r.id) == "number" ? this.id = -1 : typeof (r == null ? void 0 : r.id) == "string" && (this.id = "") : this.id = e), this.guid = (r == null ? void 0 : r.guid) ?? "";
|
|
611
611
|
}
|
|
612
612
|
/**
|
|
613
613
|
* Возвращает признак, что это новая запись.
|
|
614
614
|
*/
|
|
615
615
|
isNewRec() {
|
|
616
|
-
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" :
|
|
616
|
+
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : a(this.id);
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
class T extends
|
|
619
|
+
class T extends Z {
|
|
620
620
|
/**
|
|
621
621
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
622
622
|
*
|
|
@@ -646,7 +646,79 @@ class oe extends T {
|
|
|
646
646
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
class
|
|
649
|
+
class P extends T {
|
|
650
|
+
/**
|
|
651
|
+
* Инициализирует экземпляр класса {@link Reference}.
|
|
652
|
+
*
|
|
653
|
+
* @param data Данные для первоначальной инициализации.
|
|
654
|
+
*/
|
|
655
|
+
constructor(e) {
|
|
656
|
+
super(e);
|
|
657
|
+
/**
|
|
658
|
+
* Краткое название.
|
|
659
|
+
*/
|
|
660
|
+
t(this, "slug");
|
|
661
|
+
/**
|
|
662
|
+
* Описание.
|
|
663
|
+
*/
|
|
664
|
+
t(this, "description");
|
|
665
|
+
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
class cr extends T {
|
|
669
|
+
/**
|
|
670
|
+
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
671
|
+
*
|
|
672
|
+
* @param data Данные для первоначальной инициализации.
|
|
673
|
+
*/
|
|
674
|
+
constructor(e) {
|
|
675
|
+
super(e);
|
|
676
|
+
/**
|
|
677
|
+
* Дата и время последнего изменения.
|
|
678
|
+
*/
|
|
679
|
+
t(this, "updatedAt");
|
|
680
|
+
this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
class Qr extends cr {
|
|
684
|
+
/**
|
|
685
|
+
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
686
|
+
*
|
|
687
|
+
* @param data Данные для первоначальной инициализации.
|
|
688
|
+
*/
|
|
689
|
+
constructor(e) {
|
|
690
|
+
super(e);
|
|
691
|
+
/**
|
|
692
|
+
* Дата и время последнего удаления.
|
|
693
|
+
*/
|
|
694
|
+
t(this, "deletedAt");
|
|
695
|
+
this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
class Yr {
|
|
699
|
+
/**
|
|
700
|
+
* Инициализирует экземпляр класса {@link Image}.
|
|
701
|
+
*
|
|
702
|
+
* @param data Данные для первоначальной инициализации.
|
|
703
|
+
* @param mediaServer URL адрес медиа сервера.
|
|
704
|
+
*/
|
|
705
|
+
constructor(r, e) {
|
|
706
|
+
/**
|
|
707
|
+
* Путь к основному изображению.
|
|
708
|
+
*/
|
|
709
|
+
t(this, "image");
|
|
710
|
+
/**
|
|
711
|
+
* Путь к предпросмотру изображения.
|
|
712
|
+
*/
|
|
713
|
+
t(this, "preview");
|
|
714
|
+
/**
|
|
715
|
+
* Признак того, что изображение является основным.
|
|
716
|
+
*/
|
|
717
|
+
t(this, "isDefault");
|
|
718
|
+
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
class lr extends oe {
|
|
650
722
|
/**
|
|
651
723
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
652
724
|
*
|
|
@@ -665,7 +737,22 @@ class cr extends oe {
|
|
|
665
737
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
666
738
|
}
|
|
667
739
|
}
|
|
668
|
-
class
|
|
740
|
+
class Xr extends lr {
|
|
741
|
+
/**
|
|
742
|
+
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
743
|
+
*
|
|
744
|
+
* @param data Данные для первоначальной инициализации.
|
|
745
|
+
*/
|
|
746
|
+
constructor(e) {
|
|
747
|
+
super(e);
|
|
748
|
+
/**
|
|
749
|
+
* Признак того, что категория скрыта.
|
|
750
|
+
*/
|
|
751
|
+
t(this, "isHidden");
|
|
752
|
+
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
class xe extends lr {
|
|
669
756
|
/**
|
|
670
757
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
671
758
|
*
|
|
@@ -680,62 +767,108 @@ class xe extends cr {
|
|
|
680
767
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
681
768
|
}
|
|
682
769
|
}
|
|
683
|
-
class
|
|
770
|
+
class Ue {
|
|
684
771
|
/**
|
|
685
|
-
* Инициализирует экземпляр
|
|
772
|
+
* Инициализирует экземпляр указанного класса.
|
|
773
|
+
*
|
|
774
|
+
* @param type Тип класса, на основе которого необходимо создать экземпляр (тип возвращаемых данных).
|
|
775
|
+
*/
|
|
776
|
+
static simpleInstanceInitializer(r) {
|
|
777
|
+
return new r();
|
|
778
|
+
}
|
|
779
|
+
/**
|
|
780
|
+
* Инициализирует экземпляр указанного класса.
|
|
781
|
+
*
|
|
782
|
+
* @param type Тип класса, на основе которого необходимо создать экземпляр (тип возвращаемых данных).
|
|
783
|
+
* @param data Начальные данные для инициализации (параметры конструктора).
|
|
784
|
+
*/
|
|
785
|
+
static instanceInitializer(r, e) {
|
|
786
|
+
return new r(e);
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
class q extends T {
|
|
790
|
+
/**
|
|
791
|
+
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
686
792
|
*
|
|
687
793
|
* @param data Данные для первоначальной инициализации.
|
|
688
794
|
*/
|
|
689
795
|
constructor(e) {
|
|
690
796
|
super(e);
|
|
691
797
|
/**
|
|
692
|
-
*
|
|
798
|
+
* Тип пользователя.
|
|
693
799
|
*/
|
|
694
|
-
t(this, "
|
|
800
|
+
t(this, "type");
|
|
801
|
+
this.type = e == null ? void 0 : e.type;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
class Zr extends T {
|
|
805
|
+
/**
|
|
806
|
+
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
807
|
+
*
|
|
808
|
+
* @param data Данные для первоначальной инициализации.
|
|
809
|
+
*/
|
|
810
|
+
constructor(e) {
|
|
811
|
+
super(e);
|
|
695
812
|
/**
|
|
696
|
-
*
|
|
813
|
+
* Коэффициент стоимости продукта от розничной цены.
|
|
697
814
|
*/
|
|
698
|
-
t(this, "
|
|
815
|
+
t(this, "costCoefficient");
|
|
699
816
|
/**
|
|
700
|
-
*
|
|
817
|
+
* Признак того, что скидка допускает снижение цены ниже стоп-цены.
|
|
701
818
|
*/
|
|
702
|
-
t(this, "
|
|
819
|
+
t(this, "isLowPriceAllowed");
|
|
703
820
|
/**
|
|
704
|
-
*
|
|
821
|
+
* Дата и время начала действия скидки.
|
|
705
822
|
*/
|
|
706
|
-
t(this, "
|
|
707
|
-
|
|
823
|
+
t(this, "publishedAt");
|
|
824
|
+
/**
|
|
825
|
+
* Описание скидки.
|
|
826
|
+
*/
|
|
827
|
+
t(this, "description");
|
|
828
|
+
/**
|
|
829
|
+
* Процент скидки от розничной цены.
|
|
830
|
+
*/
|
|
831
|
+
t(this, "percent");
|
|
832
|
+
/**
|
|
833
|
+
* Краткие данные о пользователе.
|
|
834
|
+
*/
|
|
835
|
+
t(this, "owner");
|
|
836
|
+
/**
|
|
837
|
+
* Дата и время удаления.
|
|
838
|
+
*/
|
|
839
|
+
t(this, "deletedAt");
|
|
840
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = v(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 q(e == null ? void 0 : e.owner), this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
708
841
|
}
|
|
709
842
|
}
|
|
710
|
-
|
|
711
|
-
class R extends T {
|
|
843
|
+
class E extends cr {
|
|
712
844
|
/**
|
|
713
|
-
* Инициализирует экземпляр класса {@link
|
|
845
|
+
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
714
846
|
*
|
|
715
847
|
* @param data Данные для первоначальной инициализации.
|
|
716
848
|
*/
|
|
717
849
|
constructor(e) {
|
|
718
850
|
super(e);
|
|
719
851
|
/**
|
|
720
|
-
*
|
|
852
|
+
* Описание шаблона прайс-листа.
|
|
721
853
|
*/
|
|
722
|
-
t(this, "
|
|
854
|
+
t(this, "description");
|
|
723
855
|
/**
|
|
724
|
-
*
|
|
856
|
+
* Дата и время создания шаблона.
|
|
725
857
|
*/
|
|
726
|
-
t(this, "
|
|
727
|
-
this.description = e == null ? void 0 : e.description, this.
|
|
858
|
+
t(this, "createdAt");
|
|
859
|
+
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
|
|
728
860
|
}
|
|
729
861
|
}
|
|
730
|
-
|
|
862
|
+
var ur = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ur || {});
|
|
863
|
+
class Ce extends P {
|
|
731
864
|
/**
|
|
732
865
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
733
866
|
*/
|
|
734
867
|
static getRetailPriceCoefficient() {
|
|
735
|
-
return { id: -2, slug:
|
|
868
|
+
return { id: -2, slug: ur.Retail, name: "Розн. цена", guid: "", isNewRec: Ir(!0) };
|
|
736
869
|
}
|
|
737
870
|
}
|
|
738
|
-
class
|
|
871
|
+
class He {
|
|
739
872
|
/**
|
|
740
873
|
* Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
|
|
741
874
|
*
|
|
@@ -762,10 +895,10 @@ class Ne {
|
|
|
762
895
|
* Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
|
|
763
896
|
*/
|
|
764
897
|
t(this, "readOnly");
|
|
765
|
-
this.coefficient = new
|
|
898
|
+
this.coefficient = new Ce(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;
|
|
766
899
|
}
|
|
767
900
|
}
|
|
768
|
-
class
|
|
901
|
+
class pr {
|
|
769
902
|
/**
|
|
770
903
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
771
904
|
*
|
|
@@ -783,9 +916,9 @@ class ur {
|
|
|
783
916
|
this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
|
|
784
917
|
}
|
|
785
918
|
}
|
|
786
|
-
class Q extends
|
|
919
|
+
class Q extends P {
|
|
787
920
|
}
|
|
788
|
-
class
|
|
921
|
+
class Re extends P {
|
|
789
922
|
/**
|
|
790
923
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
791
924
|
*
|
|
@@ -814,10 +947,10 @@ class Pe extends R {
|
|
|
814
947
|
* Координаты склада.
|
|
815
948
|
*/
|
|
816
949
|
t(this, "coordinates");
|
|
817
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new Q(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new
|
|
950
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new Q(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new pr(e == null ? void 0 : e.coordinates);
|
|
818
951
|
}
|
|
819
952
|
}
|
|
820
|
-
class
|
|
953
|
+
class et {
|
|
821
954
|
/**
|
|
822
955
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
823
956
|
*
|
|
@@ -832,78 +965,10 @@ class Kr {
|
|
|
832
965
|
* Количество остатков товара на складе.
|
|
833
966
|
*/
|
|
834
967
|
t(this, "count");
|
|
835
|
-
this.warehouse = new
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
class pr extends T {
|
|
839
|
-
/**
|
|
840
|
-
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
841
|
-
*
|
|
842
|
-
* @param data Данные для первоначальной инициализации.
|
|
843
|
-
*/
|
|
844
|
-
constructor(e) {
|
|
845
|
-
super(e);
|
|
846
|
-
/**
|
|
847
|
-
* Дата и время последнего изменения.
|
|
848
|
-
*/
|
|
849
|
-
t(this, "updatedAt");
|
|
850
|
-
this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
class Qr extends pr {
|
|
854
|
-
/**
|
|
855
|
-
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
856
|
-
*
|
|
857
|
-
* @param data Данные для первоначальной инициализации.
|
|
858
|
-
*/
|
|
859
|
-
constructor(e) {
|
|
860
|
-
super(e);
|
|
861
|
-
/**
|
|
862
|
-
* Дата и время последнего удаления.
|
|
863
|
-
*/
|
|
864
|
-
t(this, "deletedAt");
|
|
865
|
-
this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
class Yr {
|
|
869
|
-
/**
|
|
870
|
-
* Инициализирует экземпляр класса {@link Image}.
|
|
871
|
-
*
|
|
872
|
-
* @param data Данные для первоначальной инициализации.
|
|
873
|
-
* @param mediaServer URL адрес медиа сервера.
|
|
874
|
-
*/
|
|
875
|
-
constructor(r, e) {
|
|
876
|
-
/**
|
|
877
|
-
* Путь к основному изображению.
|
|
878
|
-
*/
|
|
879
|
-
t(this, "image");
|
|
880
|
-
/**
|
|
881
|
-
* Путь к предпросмотру изображения.
|
|
882
|
-
*/
|
|
883
|
-
t(this, "preview");
|
|
884
|
-
/**
|
|
885
|
-
* Признак того, что изображение является основным.
|
|
886
|
-
*/
|
|
887
|
-
t(this, "isDefault");
|
|
888
|
-
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
class Xr extends cr {
|
|
892
|
-
/**
|
|
893
|
-
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
894
|
-
*
|
|
895
|
-
* @param data Данные для первоначальной инициализации.
|
|
896
|
-
*/
|
|
897
|
-
constructor(e) {
|
|
898
|
-
super(e);
|
|
899
|
-
/**
|
|
900
|
-
* Признак того, что категория скрыта.
|
|
901
|
-
*/
|
|
902
|
-
t(this, "isHidden");
|
|
903
|
-
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
968
|
+
this.warehouse = new Re(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
904
969
|
}
|
|
905
970
|
}
|
|
906
|
-
class
|
|
971
|
+
class d extends T {
|
|
907
972
|
/**
|
|
908
973
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
909
974
|
*
|
|
@@ -930,7 +995,7 @@ class U extends T {
|
|
|
930
995
|
e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
|
|
931
996
|
}
|
|
932
997
|
}
|
|
933
|
-
class
|
|
998
|
+
class Ve extends T {
|
|
934
999
|
/**
|
|
935
1000
|
* Инициализирует экземпляр класса {@link ProductUnit}.
|
|
936
1001
|
*
|
|
@@ -957,7 +1022,7 @@ class Ee extends T {
|
|
|
957
1022
|
e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
|
|
958
1023
|
}
|
|
959
1024
|
}
|
|
960
|
-
class
|
|
1025
|
+
class S extends Xr {
|
|
961
1026
|
/**
|
|
962
1027
|
* Инициализирует экземпляр класса {@link Product}.
|
|
963
1028
|
*
|
|
@@ -1034,9 +1099,9 @@ class b extends Xr {
|
|
|
1034
1099
|
* Список коэффициентов цен на продукт.
|
|
1035
1100
|
*/
|
|
1036
1101
|
t(this, "priceCoefficients");
|
|
1037
|
-
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new
|
|
1102
|
+
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ve(e.unit) : new Ve(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new d(e.currency) : new d(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = v(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((h) => new et(h))) ?? [], this.type = "product";
|
|
1038
1103
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
|
|
1039
|
-
s && (this.category = new xe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new xe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new Yr(h, 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((h) => new
|
|
1104
|
+
s && (this.category = new xe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new xe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new Yr(h, 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((h) => new He(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
1040
1105
|
}
|
|
1041
1106
|
/**
|
|
1042
1107
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -1057,107 +1122,179 @@ class b extends Xr {
|
|
|
1057
1122
|
return this.retailCostRub ?? this.costRub;
|
|
1058
1123
|
}
|
|
1059
1124
|
}
|
|
1060
|
-
|
|
1125
|
+
var je = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(je || {});
|
|
1126
|
+
class j extends S {
|
|
1127
|
+
/**
|
|
1128
|
+
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1129
|
+
*
|
|
1130
|
+
* @param data Данные для первоначальной инициализации.
|
|
1131
|
+
*/
|
|
1132
|
+
constructor(e) {
|
|
1133
|
+
super(e);
|
|
1134
|
+
/**
|
|
1135
|
+
* Коэффициент стоимости продукта от розничной цены.
|
|
1136
|
+
*/
|
|
1137
|
+
t(this, "costCoefficient");
|
|
1138
|
+
/**
|
|
1139
|
+
* Источник клиентской цены.
|
|
1140
|
+
*/
|
|
1141
|
+
t(this, "costSource");
|
|
1142
|
+
/**
|
|
1143
|
+
* Краткие данные скидки.
|
|
1144
|
+
*/
|
|
1145
|
+
t(this, "discount");
|
|
1146
|
+
/**
|
|
1147
|
+
* Данные о шаблоне прайс-листа.
|
|
1148
|
+
*/
|
|
1149
|
+
t(this, "priceTemplate");
|
|
1150
|
+
/**
|
|
1151
|
+
* Признак того, что указанный продукт входит в список ранее заказанных клиентом продуктов.
|
|
1152
|
+
*/
|
|
1153
|
+
t(this, "isPreviouslyOrdered");
|
|
1154
|
+
/**
|
|
1155
|
+
* Признак того, что указанный продукт входит в список продуктов для доп. продаж клиенту.
|
|
1156
|
+
*/
|
|
1157
|
+
t(this, "isRequired");
|
|
1158
|
+
/**
|
|
1159
|
+
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1160
|
+
*/
|
|
1161
|
+
t(this, "isFavorite");
|
|
1162
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? je.Product, this.discount = e != null && e.discount ? new Zr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new E(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
class he extends xe {
|
|
1166
|
+
/**
|
|
1167
|
+
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
1168
|
+
*
|
|
1169
|
+
* @param data Данные для первоначальной инициализации.
|
|
1170
|
+
*/
|
|
1171
|
+
constructor(e) {
|
|
1172
|
+
super(e);
|
|
1173
|
+
/**
|
|
1174
|
+
* Признак того, что категория скрыта.
|
|
1175
|
+
*/
|
|
1176
|
+
t(this, "isHidden");
|
|
1177
|
+
/**
|
|
1178
|
+
* Целочисленный идентификатор родителя (родительской записи).
|
|
1179
|
+
*/
|
|
1180
|
+
t(this, "parentCategoryId");
|
|
1181
|
+
/**
|
|
1182
|
+
* Список свойств. Число свойств в объекте не ограничено.
|
|
1183
|
+
*/
|
|
1184
|
+
t(this, "properties");
|
|
1185
|
+
/**
|
|
1186
|
+
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
1187
|
+
*/
|
|
1188
|
+
t(this, "currencyRates");
|
|
1189
|
+
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [Lr(s), i])) : void 0;
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
class hr extends Z {
|
|
1061
1193
|
/**
|
|
1062
|
-
* Инициализирует экземпляр класса {@link
|
|
1194
|
+
* Инициализирует экземпляр класса {@link OrderItemBase}.
|
|
1063
1195
|
*
|
|
1064
1196
|
* @param data Данные для первоначальной инициализации.
|
|
1065
1197
|
*/
|
|
1066
1198
|
constructor(e) {
|
|
1067
1199
|
super(e);
|
|
1068
1200
|
/**
|
|
1069
|
-
*
|
|
1201
|
+
* @inheritDoc
|
|
1070
1202
|
*/
|
|
1071
1203
|
t(this, "category");
|
|
1072
1204
|
/**
|
|
1073
|
-
*
|
|
1205
|
+
* @inheritDoc
|
|
1074
1206
|
*/
|
|
1075
1207
|
t(this, "product");
|
|
1076
1208
|
/**
|
|
1077
|
-
*
|
|
1209
|
+
* @inheritDoc
|
|
1078
1210
|
*/
|
|
1079
1211
|
t(this, "quantity");
|
|
1080
1212
|
/**
|
|
1081
|
-
*
|
|
1213
|
+
* @inheritDoc
|
|
1082
1214
|
*/
|
|
1083
|
-
t(this, "
|
|
1215
|
+
t(this, "currency");
|
|
1084
1216
|
/**
|
|
1085
|
-
*
|
|
1217
|
+
* @inheritDoc
|
|
1086
1218
|
*/
|
|
1087
|
-
t(this, "
|
|
1219
|
+
t(this, "marker");
|
|
1088
1220
|
/**
|
|
1089
|
-
*
|
|
1221
|
+
* @inheritDoc
|
|
1090
1222
|
*/
|
|
1091
|
-
t(this, "
|
|
1223
|
+
t(this, "height");
|
|
1092
1224
|
/**
|
|
1093
|
-
*
|
|
1225
|
+
* @inheritDoc
|
|
1094
1226
|
*/
|
|
1095
|
-
t(this, "
|
|
1227
|
+
t(this, "length");
|
|
1096
1228
|
/**
|
|
1097
|
-
*
|
|
1229
|
+
* @inheritDoc
|
|
1098
1230
|
*/
|
|
1099
|
-
t(this, "
|
|
1231
|
+
t(this, "width");
|
|
1100
1232
|
/**
|
|
1101
|
-
*
|
|
1233
|
+
* @inheritDoc
|
|
1102
1234
|
*/
|
|
1103
1235
|
t(this, "configurator");
|
|
1104
1236
|
/**
|
|
1105
|
-
*
|
|
1237
|
+
* @inheritDoc
|
|
1106
1238
|
*/
|
|
1107
1239
|
t(this, "configuratorParams");
|
|
1108
1240
|
/**
|
|
1109
|
-
*
|
|
1241
|
+
* @inheritDoc
|
|
1110
1242
|
*/
|
|
1111
1243
|
t(this, "isAdditionalSale");
|
|
1112
|
-
|
|
1244
|
+
/**
|
|
1245
|
+
* @inheritDoc
|
|
1246
|
+
*/
|
|
1247
|
+
t(this, "creatorUser");
|
|
1248
|
+
this.product = new j(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.currency = e.currency ? new d(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && dr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creatorUser = e.creatorUser && new q(e.creatorUser);
|
|
1113
1249
|
}
|
|
1114
1250
|
}
|
|
1115
|
-
class
|
|
1251
|
+
let rt = class extends hr {
|
|
1116
1252
|
/**
|
|
1117
|
-
* Инициализирует экземпляр класса {@link
|
|
1253
|
+
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
1118
1254
|
*
|
|
1119
1255
|
* @param data Данные для первоначальной инициализации.
|
|
1120
1256
|
*/
|
|
1121
1257
|
constructor(e) {
|
|
1122
1258
|
super(e);
|
|
1123
1259
|
/**
|
|
1124
|
-
*
|
|
1260
|
+
* @inheritDoc
|
|
1125
1261
|
*/
|
|
1126
1262
|
t(this, "cost");
|
|
1127
1263
|
/**
|
|
1128
|
-
*
|
|
1264
|
+
* @inheritDoc
|
|
1129
1265
|
*/
|
|
1130
1266
|
t(this, "costOne");
|
|
1131
1267
|
/**
|
|
1132
|
-
*
|
|
1268
|
+
* @inheritDoc
|
|
1133
1269
|
*/
|
|
1134
1270
|
t(this, "costOneRub");
|
|
1135
1271
|
/**
|
|
1136
|
-
*
|
|
1272
|
+
* @inheritDoc
|
|
1137
1273
|
*/
|
|
1138
1274
|
t(this, "costRub");
|
|
1139
1275
|
/**
|
|
1140
|
-
*
|
|
1276
|
+
* @inheritDoc
|
|
1141
1277
|
*/
|
|
1142
1278
|
t(this, "logicGroupId");
|
|
1143
1279
|
/**
|
|
1144
|
-
*
|
|
1280
|
+
* @inheritDoc
|
|
1145
1281
|
*/
|
|
1146
1282
|
t(this, "salesDirection");
|
|
1147
1283
|
/**
|
|
1148
|
-
*
|
|
1284
|
+
* @inheritDoc
|
|
1149
1285
|
*/
|
|
1150
1286
|
t(this, "specificationImgUrl");
|
|
1151
1287
|
/**
|
|
1152
|
-
*
|
|
1153
|
-
*
|
|
1154
|
-
* В качестве значения указывается ширина продукта, а в качестве ключа указывается код продукта,
|
|
1155
|
-
* который соответствует указанной ширине. Количество не ограничено.
|
|
1288
|
+
* @inheritDoc
|
|
1156
1289
|
*/
|
|
1157
1290
|
t(this, "sawing");
|
|
1158
|
-
|
|
1291
|
+
/**
|
|
1292
|
+
* @inheritDoc
|
|
1293
|
+
*/
|
|
1294
|
+
t(this, "currency");
|
|
1295
|
+
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 = U(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new d(e.currency);
|
|
1159
1296
|
}
|
|
1160
|
-
}
|
|
1297
|
+
};
|
|
1161
1298
|
class me {
|
|
1162
1299
|
/**
|
|
1163
1300
|
* Инициализирует экземпляр класса {@link Cart}.
|
|
@@ -1166,40 +1303,21 @@ class me {
|
|
|
1166
1303
|
*/
|
|
1167
1304
|
constructor(r) {
|
|
1168
1305
|
/**
|
|
1169
|
-
*
|
|
1306
|
+
* @inheritDoc
|
|
1170
1307
|
*/
|
|
1171
1308
|
t(this, "items");
|
|
1172
1309
|
/**
|
|
1173
|
-
*
|
|
1310
|
+
* @inheritDoc
|
|
1174
1311
|
*/
|
|
1175
1312
|
t(this, "resultSum");
|
|
1176
1313
|
/**
|
|
1177
|
-
*
|
|
1314
|
+
* @inheritDoc
|
|
1178
1315
|
*/
|
|
1179
1316
|
t(this, "directionsSum");
|
|
1180
|
-
this.items = r.items.map((e) => new
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
class Ue {
|
|
1184
|
-
/**
|
|
1185
|
-
* Инициализирует экземпляр указанного класса.
|
|
1186
|
-
*
|
|
1187
|
-
* @param type Тип класса, на основе которого необходимо создать экземпляр (тип возвращаемых данных).
|
|
1188
|
-
*/
|
|
1189
|
-
static simpleInstanceInitializer(r) {
|
|
1190
|
-
return new r();
|
|
1191
|
-
}
|
|
1192
|
-
/**
|
|
1193
|
-
* Инициализирует экземпляр указанного класса.
|
|
1194
|
-
*
|
|
1195
|
-
* @param type Тип класса, на основе которого необходимо создать экземпляр (тип возвращаемых данных).
|
|
1196
|
-
* @param data Начальные данные для инициализации (параметры конструктора).
|
|
1197
|
-
*/
|
|
1198
|
-
static instanceInitializer(r, e) {
|
|
1199
|
-
return new r(e);
|
|
1317
|
+
this.items = r.items.map((e) => new rt(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
1200
1318
|
}
|
|
1201
1319
|
}
|
|
1202
|
-
const
|
|
1320
|
+
const R = class R {
|
|
1203
1321
|
/**
|
|
1204
1322
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
1205
1323
|
*/
|
|
@@ -1238,7 +1356,7 @@ const P = class P {
|
|
|
1238
1356
|
// eslint-disable-next-line class-methods-use-this
|
|
1239
1357
|
t(this, "authRequestInterceptor", async (r) => {
|
|
1240
1358
|
let e;
|
|
1241
|
-
return
|
|
1359
|
+
return a(Ae().jwtToken) || (e = await Ae().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
|
|
1242
1360
|
});
|
|
1243
1361
|
/**
|
|
1244
1362
|
* Перехватчик запроса для вызова пользовательских хуков.
|
|
@@ -1246,14 +1364,14 @@ const P = class P {
|
|
|
1246
1364
|
* @param request Данные запроса.
|
|
1247
1365
|
*/
|
|
1248
1366
|
// eslint-disable-next-line class-methods-use-this
|
|
1249
|
-
t(this, "userRequestHooksInterceptor", async (r) =>
|
|
1367
|
+
t(this, "userRequestHooksInterceptor", async (r) => R.requestHooks.reduce(async (e, s) => s(await e), Promise.resolve(r)));
|
|
1250
1368
|
/**
|
|
1251
1369
|
* Перехватчик запроса для преобразования данных запроса.
|
|
1252
1370
|
*
|
|
1253
1371
|
* @param request Данные запроса.
|
|
1254
1372
|
*/
|
|
1255
1373
|
// eslint-disable-next-line class-methods-use-this
|
|
1256
|
-
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params =
|
|
1374
|
+
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = We(r.params)), ["put", "patch", "post"].includes(xr(r.method)) && r.data && (r.data = We(r.data))), r));
|
|
1257
1375
|
/**
|
|
1258
1376
|
* Перехватчик ошибок ответов на запрос.
|
|
1259
1377
|
*
|
|
@@ -1262,7 +1380,7 @@ const P = class P {
|
|
|
1262
1380
|
t(this, "authErrorsResponseInterceptors", (r) => {
|
|
1263
1381
|
var s;
|
|
1264
1382
|
const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
|
|
1265
|
-
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (
|
|
1383
|
+
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (Ae().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
|
|
1266
1384
|
});
|
|
1267
1385
|
/**
|
|
1268
1386
|
* Перехватчик ответа для вызова пользовательских хуков.
|
|
@@ -1270,15 +1388,15 @@ const P = class P {
|
|
|
1270
1388
|
* @param response Данные ответа на запрос.
|
|
1271
1389
|
*/
|
|
1272
1390
|
// eslint-disable-next-line class-methods-use-this
|
|
1273
|
-
t(this, "userResponseHooksInterceptor", async (r) =>
|
|
1391
|
+
t(this, "userResponseHooksInterceptor", async (r) => R.responseHooks.reduce(async (e, s) => s(await e), Promise.resolve(r)));
|
|
1274
1392
|
/**
|
|
1275
1393
|
* Перехватчик ответа для преобразования данных ответа на запрос.
|
|
1276
1394
|
*
|
|
1277
1395
|
* @param response Данные ответа на запрос.
|
|
1278
1396
|
*/
|
|
1279
1397
|
// eslint-disable-next-line class-methods-use-this
|
|
1280
|
-
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data =
|
|
1281
|
-
this.errorResponseHandler =
|
|
1398
|
+
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Ne(r.data)), r));
|
|
1399
|
+
this.errorResponseHandler = R.defaultErrorsResponseHandler, this.httpClient = zr.create({
|
|
1282
1400
|
headers: {
|
|
1283
1401
|
Accept: "application/json",
|
|
1284
1402
|
"Content-Type": "application/json"
|
|
@@ -1288,7 +1406,7 @@ const P = class P {
|
|
|
1288
1406
|
(r) => Promise.reject(r)
|
|
1289
1407
|
), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
|
|
1290
1408
|
(r) => r,
|
|
1291
|
-
(r) =>
|
|
1409
|
+
(r) => R.convertHttpErrorResponse(r)
|
|
1292
1410
|
), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((r) => r, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
|
|
1293
1411
|
this.dataConverterResponseInterceptor,
|
|
1294
1412
|
(r) => Promise.reject(r)
|
|
@@ -1300,7 +1418,7 @@ const P = class P {
|
|
|
1300
1418
|
* @param handler Ссылка на функцию-обработчик ошибок.
|
|
1301
1419
|
*/
|
|
1302
1420
|
static setDefaultErrorsResponseHandler(r) {
|
|
1303
|
-
|
|
1421
|
+
R.defaultErrorsResponseHandler = r;
|
|
1304
1422
|
}
|
|
1305
1423
|
/**
|
|
1306
1424
|
* Регистрирует хук, который будет вызываться перед выполнением каждого HTTP запроса.
|
|
@@ -1308,7 +1426,7 @@ const P = class P {
|
|
|
1308
1426
|
* @param hook Функция-хук для обработки запроса.
|
|
1309
1427
|
*/
|
|
1310
1428
|
static addRequestHook(r) {
|
|
1311
|
-
|
|
1429
|
+
R.requestHooks.includes(r) || R.requestHooks.push(r);
|
|
1312
1430
|
}
|
|
1313
1431
|
/**
|
|
1314
1432
|
* Удаляет зарегистрированный хук запроса.
|
|
@@ -1316,8 +1434,8 @@ const P = class P {
|
|
|
1316
1434
|
* @param hook Функция-хук для удаления.
|
|
1317
1435
|
*/
|
|
1318
1436
|
static removeRequestHook(r) {
|
|
1319
|
-
const e =
|
|
1320
|
-
e !== -1 &&
|
|
1437
|
+
const e = R.requestHooks.indexOf(r);
|
|
1438
|
+
e !== -1 && R.requestHooks.splice(e, 1);
|
|
1321
1439
|
}
|
|
1322
1440
|
/**
|
|
1323
1441
|
* Регистрирует хук, который будет вызываться после получения ответа на каждый HTTP запрос.
|
|
@@ -1325,7 +1443,7 @@ const P = class P {
|
|
|
1325
1443
|
* @param hook Функция-хук для обработки ответа.
|
|
1326
1444
|
*/
|
|
1327
1445
|
static addResponseHook(r) {
|
|
1328
|
-
|
|
1446
|
+
R.responseHooks.includes(r) || R.responseHooks.push(r);
|
|
1329
1447
|
}
|
|
1330
1448
|
/**
|
|
1331
1449
|
* Удаляет зарегистрированный хук ответа.
|
|
@@ -1333,8 +1451,8 @@ const P = class P {
|
|
|
1333
1451
|
* @param hook Функция-хук для удаления.
|
|
1334
1452
|
*/
|
|
1335
1453
|
static removeResponseHook(r) {
|
|
1336
|
-
const e =
|
|
1337
|
-
e !== -1 &&
|
|
1454
|
+
const e = R.responseHooks.indexOf(r);
|
|
1455
|
+
e !== -1 && R.responseHooks.splice(e, 1);
|
|
1338
1456
|
}
|
|
1339
1457
|
/**
|
|
1340
1458
|
* Возвращает экземпляр объекта текущего класса.
|
|
@@ -1342,7 +1460,7 @@ const P = class P {
|
|
|
1342
1460
|
* @param type Тип данных, которыми оперирует метод.
|
|
1343
1461
|
*/
|
|
1344
1462
|
static getInstance(r) {
|
|
1345
|
-
return Object.prototype.hasOwnProperty.call(
|
|
1463
|
+
return Object.prototype.hasOwnProperty.call(R.instances, r.name) || (R.instances[r.name] = Ue.simpleInstanceInitializer(r)), R.instances[r.name];
|
|
1346
1464
|
}
|
|
1347
1465
|
/**
|
|
1348
1466
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -1351,8 +1469,8 @@ const P = class P {
|
|
|
1351
1469
|
*/
|
|
1352
1470
|
static convertHttpErrorResponse(r) {
|
|
1353
1471
|
var e, s;
|
|
1354
|
-
if (
|
|
1355
|
-
const i =
|
|
1472
|
+
if (a(r) || !a(r.request) || !a(r.response)) {
|
|
1473
|
+
const i = a(r) ? {} : r == null ? void 0 : r.response;
|
|
1356
1474
|
return Promise.reject({
|
|
1357
1475
|
status: (i == null ? void 0 : i.status) ?? 0,
|
|
1358
1476
|
statusText: (i == null ? void 0 : i.statusText) ?? "Unknown",
|
|
@@ -1440,22 +1558,22 @@ const P = class P {
|
|
|
1440
1558
|
* Экземпляр объекта текущего класса.
|
|
1441
1559
|
*/
|
|
1442
1560
|
// eslint-disable-next-line no-use-before-define
|
|
1443
|
-
t(
|
|
1561
|
+
t(R, "instances", {}), /**
|
|
1444
1562
|
* Базовый обработчик ошибок выполнения запросов.
|
|
1445
1563
|
*
|
|
1446
1564
|
* @param error Данные об ошибке.
|
|
1447
1565
|
* @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
1448
1566
|
* @param disableNotifications Признак необходимости отключить уведомления об ошибках.
|
|
1449
1567
|
*/
|
|
1450
|
-
t(
|
|
1568
|
+
t(R, "defaultErrorsResponseHandler", w), /**
|
|
1451
1569
|
* Список зарегистрированных хуков для запросов.
|
|
1452
1570
|
*/
|
|
1453
|
-
t(
|
|
1571
|
+
t(R, "requestHooks", []), /**
|
|
1454
1572
|
* Список зарегистрированных хуков для ответов.
|
|
1455
1573
|
*/
|
|
1456
|
-
t(
|
|
1457
|
-
let p =
|
|
1458
|
-
class
|
|
1574
|
+
t(R, "responseHooks", []);
|
|
1575
|
+
let p = R;
|
|
1576
|
+
class Ht extends p {
|
|
1459
1577
|
/**
|
|
1460
1578
|
* Возвращает содержимое корзины указанного клиента.
|
|
1461
1579
|
*
|
|
@@ -1569,7 +1687,7 @@ class Nt extends p {
|
|
|
1569
1687
|
return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
|
|
1570
1688
|
}
|
|
1571
1689
|
}
|
|
1572
|
-
var
|
|
1690
|
+
var tt = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(tt || {}), st = /* @__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))(st || {});
|
|
1573
1691
|
class x extends he {
|
|
1574
1692
|
/**
|
|
1575
1693
|
* Инициализирует экземпляр класса {@link Category}.
|
|
@@ -1587,122 +1705,10 @@ class x extends he {
|
|
|
1587
1705
|
* Список продуктов категории.
|
|
1588
1706
|
*/
|
|
1589
1707
|
t(this, "products");
|
|
1590
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new x(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
class _ extends T {
|
|
1594
|
-
/**
|
|
1595
|
-
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
1596
|
-
*
|
|
1597
|
-
* @param data Данные для первоначальной инициализации.
|
|
1598
|
-
*/
|
|
1599
|
-
constructor(e) {
|
|
1600
|
-
super(e);
|
|
1601
|
-
/**
|
|
1602
|
-
* Тип пользователя.
|
|
1603
|
-
*/
|
|
1604
|
-
t(this, "type");
|
|
1605
|
-
this.type = e == null ? void 0 : e.type;
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
class st extends T {
|
|
1609
|
-
/**
|
|
1610
|
-
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1611
|
-
*
|
|
1612
|
-
* @param data Данные для первоначальной инициализации.
|
|
1613
|
-
*/
|
|
1614
|
-
constructor(e) {
|
|
1615
|
-
super(e);
|
|
1616
|
-
/**
|
|
1617
|
-
* Коэффициент стоимости продукта от розничной цены.
|
|
1618
|
-
*/
|
|
1619
|
-
t(this, "costCoefficient");
|
|
1620
|
-
/**
|
|
1621
|
-
* Признак того, что скидка допускает снижение цены ниже стоп-цены.
|
|
1622
|
-
*/
|
|
1623
|
-
t(this, "isLowPriceAllowed");
|
|
1624
|
-
/**
|
|
1625
|
-
* Дата и время начала действия скидки.
|
|
1626
|
-
*/
|
|
1627
|
-
t(this, "publishedAt");
|
|
1628
|
-
/**
|
|
1629
|
-
* Описание скидки.
|
|
1630
|
-
*/
|
|
1631
|
-
t(this, "description");
|
|
1632
|
-
/**
|
|
1633
|
-
* Процент скидки от розничной цены.
|
|
1634
|
-
*/
|
|
1635
|
-
t(this, "percent");
|
|
1636
|
-
/**
|
|
1637
|
-
* Краткие данные о пользователе.
|
|
1638
|
-
*/
|
|
1639
|
-
t(this, "owner");
|
|
1640
|
-
/**
|
|
1641
|
-
* Дата и время удаления.
|
|
1642
|
-
*/
|
|
1643
|
-
t(this, "deletedAt");
|
|
1644
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? v(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new _(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1645
|
-
}
|
|
1646
|
-
}
|
|
1647
|
-
class J extends pr {
|
|
1648
|
-
/**
|
|
1649
|
-
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1650
|
-
*
|
|
1651
|
-
* @param data Данные для первоначальной инициализации.
|
|
1652
|
-
*/
|
|
1653
|
-
constructor(e) {
|
|
1654
|
-
super(e);
|
|
1655
|
-
/**
|
|
1656
|
-
* Описание шаблона прайс-листа.
|
|
1657
|
-
*/
|
|
1658
|
-
t(this, "description");
|
|
1659
|
-
/**
|
|
1660
|
-
* Дата и время создания шаблона.
|
|
1661
|
-
*/
|
|
1662
|
-
t(this, "createdAt");
|
|
1663
|
-
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
|
|
1664
|
-
}
|
|
1665
|
-
}
|
|
1666
|
-
class Y extends b {
|
|
1667
|
-
/**
|
|
1668
|
-
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1669
|
-
*
|
|
1670
|
-
* @param data Данные для первоначальной инициализации.
|
|
1671
|
-
*/
|
|
1672
|
-
constructor(e) {
|
|
1673
|
-
super(e);
|
|
1674
|
-
/**
|
|
1675
|
-
* Коэффициент стоимости продукта от розничной цены.
|
|
1676
|
-
*/
|
|
1677
|
-
t(this, "costCoefficient");
|
|
1678
|
-
/**
|
|
1679
|
-
* Источник клиентской цены.
|
|
1680
|
-
*/
|
|
1681
|
-
t(this, "costSource");
|
|
1682
|
-
/**
|
|
1683
|
-
* Краткие данные скидки.
|
|
1684
|
-
*/
|
|
1685
|
-
t(this, "discount");
|
|
1686
|
-
/**
|
|
1687
|
-
* Данные о шаблоне прайс-листа.
|
|
1688
|
-
*/
|
|
1689
|
-
t(this, "priceTemplate");
|
|
1690
|
-
/**
|
|
1691
|
-
* Признак того, что указанный продукт входит в список ранее заказанных клиентом продуктов.
|
|
1692
|
-
*/
|
|
1693
|
-
t(this, "isPreviouslyOrdered");
|
|
1694
|
-
/**
|
|
1695
|
-
* Признак того, что указанный продукт входит в список продуктов для доп. продаж клиенту.
|
|
1696
|
-
*/
|
|
1697
|
-
t(this, "isRequired");
|
|
1698
|
-
/**
|
|
1699
|
-
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1700
|
-
*/
|
|
1701
|
-
t(this, "isFavorite");
|
|
1702
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? He.Product, this.discount = e != null && e.discount ? new st(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new J(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;
|
|
1708
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new x(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new S(o));
|
|
1703
1709
|
}
|
|
1704
1710
|
}
|
|
1705
|
-
class
|
|
1711
|
+
class gr {
|
|
1706
1712
|
/**
|
|
1707
1713
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1708
1714
|
*
|
|
@@ -1720,9 +1726,9 @@ class hr {
|
|
|
1720
1726
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
1721
1727
|
}
|
|
1722
1728
|
}
|
|
1723
|
-
class
|
|
1729
|
+
class O extends P {
|
|
1724
1730
|
}
|
|
1725
|
-
class
|
|
1731
|
+
class Ge extends T {
|
|
1726
1732
|
/**
|
|
1727
1733
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1728
1734
|
*
|
|
@@ -1750,10 +1756,10 @@ class je extends T {
|
|
|
1750
1756
|
* @inheritDoc
|
|
1751
1757
|
*/
|
|
1752
1758
|
t(this, "isRegionalDirector");
|
|
1753
|
-
this.salesDirection = e != null && e.salesDirection ? new
|
|
1759
|
+
this.salesDirection = e != null && e.salesDirection ? new O(e.salesDirection) : new O(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new gr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
|
|
1754
1760
|
}
|
|
1755
1761
|
}
|
|
1756
|
-
class
|
|
1762
|
+
class Fe extends P {
|
|
1757
1763
|
}
|
|
1758
1764
|
class it extends T {
|
|
1759
1765
|
/**
|
|
@@ -1778,7 +1784,7 @@ class it extends T {
|
|
|
1778
1784
|
this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
|
|
1779
1785
|
}
|
|
1780
1786
|
}
|
|
1781
|
-
class
|
|
1787
|
+
class Pe extends Ge {
|
|
1782
1788
|
/**
|
|
1783
1789
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1784
1790
|
*
|
|
@@ -1815,7 +1821,7 @@ class Re extends je {
|
|
|
1815
1821
|
* Список направлений кураторства.
|
|
1816
1822
|
*/
|
|
1817
1823
|
t(this, "curatedDirections");
|
|
1818
|
-
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 it(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new
|
|
1824
|
+
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 it(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new Fe(i))) ?? [];
|
|
1819
1825
|
}
|
|
1820
1826
|
}
|
|
1821
1827
|
class nt extends he {
|
|
@@ -1846,7 +1852,7 @@ class nt extends he {
|
|
|
1846
1852
|
* Данные о менеджере за которым закреплена категория.
|
|
1847
1853
|
*/
|
|
1848
1854
|
t(this, "manager");
|
|
1849
|
-
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
|
|
1855
|
+
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 Pe(e.manager) : void 0;
|
|
1850
1856
|
}
|
|
1851
1857
|
}
|
|
1852
1858
|
class ye extends nt {
|
|
@@ -1866,10 +1872,10 @@ class ye extends nt {
|
|
|
1866
1872
|
* Список продуктов категории.
|
|
1867
1873
|
*/
|
|
1868
1874
|
t(this, "products");
|
|
1869
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ye(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new
|
|
1875
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ye(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new j(o));
|
|
1870
1876
|
}
|
|
1871
1877
|
}
|
|
1872
|
-
class
|
|
1878
|
+
class mr {
|
|
1873
1879
|
/**
|
|
1874
1880
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
1875
1881
|
*
|
|
@@ -1884,10 +1890,10 @@ class gr {
|
|
|
1884
1890
|
* Процент, который прибавляется к значению выбранного коэффициента.
|
|
1885
1891
|
*/
|
|
1886
1892
|
t(this, "increasePercent");
|
|
1887
|
-
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new
|
|
1893
|
+
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Ce(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1888
1894
|
}
|
|
1889
1895
|
}
|
|
1890
|
-
class $e extends
|
|
1896
|
+
class $e extends mr {
|
|
1891
1897
|
/**
|
|
1892
1898
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1893
1899
|
*
|
|
@@ -1902,7 +1908,7 @@ class $e extends gr {
|
|
|
1902
1908
|
this.productCategory = new he(e == null ? void 0 : e.productCategory);
|
|
1903
1909
|
}
|
|
1904
1910
|
}
|
|
1905
|
-
class
|
|
1911
|
+
class Me extends T {
|
|
1906
1912
|
/**
|
|
1907
1913
|
* Инициализирует экземпляр класса {@link Curator}.
|
|
1908
1914
|
*
|
|
@@ -1922,12 +1928,12 @@ class Fe extends T {
|
|
|
1922
1928
|
* @inheritDoc
|
|
1923
1929
|
*/
|
|
1924
1930
|
t(this, "curatedDirection");
|
|
1925
|
-
this.photo = e.photo, this.contacts = new
|
|
1931
|
+
this.photo = e.photo, this.contacts = new gr(e.contacts), this.curatedDirection = new Fe(e.curatedDirection);
|
|
1926
1932
|
}
|
|
1927
1933
|
}
|
|
1928
|
-
class
|
|
1934
|
+
class Y extends P {
|
|
1929
1935
|
}
|
|
1930
|
-
class ce extends
|
|
1936
|
+
class ce extends P {
|
|
1931
1937
|
/**
|
|
1932
1938
|
* Инициализирует экземпляр класса {@link Region}.
|
|
1933
1939
|
*
|
|
@@ -1938,11 +1944,11 @@ class ce extends R {
|
|
|
1938
1944
|
/**
|
|
1939
1945
|
* Данные о стране, в которой расположен регион.
|
|
1940
1946
|
*/
|
|
1941
|
-
t(this, "country", new
|
|
1942
|
-
e && (this.country = new
|
|
1947
|
+
t(this, "country", new Y());
|
|
1948
|
+
e && (this.country = new Y(e.country));
|
|
1943
1949
|
}
|
|
1944
1950
|
}
|
|
1945
|
-
class
|
|
1951
|
+
class Be extends P {
|
|
1946
1952
|
/**
|
|
1947
1953
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
1948
1954
|
*
|
|
@@ -1957,7 +1963,7 @@ class Me extends R {
|
|
|
1957
1963
|
e && (this.region = new ce(e.region));
|
|
1958
1964
|
}
|
|
1959
1965
|
}
|
|
1960
|
-
class
|
|
1966
|
+
class fr extends T {
|
|
1961
1967
|
/**
|
|
1962
1968
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1963
1969
|
*
|
|
@@ -1993,10 +1999,10 @@ class mr extends T {
|
|
|
1993
1999
|
* Признак активности учетной записи пользователя.
|
|
1994
2000
|
*/
|
|
1995
2001
|
t(this, "isActive");
|
|
1996
|
-
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
|
|
2002
|
+
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 O(e.salesDirection) : void 0, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = v(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1997
2003
|
}
|
|
1998
2004
|
}
|
|
1999
|
-
class ge extends
|
|
2005
|
+
class ge extends fr {
|
|
2000
2006
|
/**
|
|
2001
2007
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2002
2008
|
*
|
|
@@ -2042,10 +2048,10 @@ class ge extends mr {
|
|
|
2042
2048
|
* @inheritDoc
|
|
2043
2049
|
*/
|
|
2044
2050
|
t(this, "curators");
|
|
2045
|
-
this.salesDirection = new
|
|
2051
|
+
this.salesDirection = new O(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 Be(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new Ge(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Me(o))) ?? void 0;
|
|
2046
2052
|
}
|
|
2047
2053
|
}
|
|
2048
|
-
class te extends
|
|
2054
|
+
class te extends Z {
|
|
2049
2055
|
/**
|
|
2050
2056
|
* Инициализирует новый экземпляр класса.
|
|
2051
2057
|
*
|
|
@@ -2069,10 +2075,10 @@ class te extends F {
|
|
|
2069
2075
|
* Данные шаблона прайс-листа.
|
|
2070
2076
|
*/
|
|
2071
2077
|
t(this, "priceTemplate");
|
|
2072
|
-
this.createdAt =
|
|
2078
|
+
this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ge(e == null ? void 0 : e.client), this.priceTemplate = new E(e == null ? void 0 : e.priceTemplate);
|
|
2073
2079
|
}
|
|
2074
2080
|
}
|
|
2075
|
-
class Te extends
|
|
2081
|
+
class Te extends mr {
|
|
2076
2082
|
/**
|
|
2077
2083
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
2078
2084
|
*
|
|
@@ -2084,10 +2090,10 @@ class Te extends gr {
|
|
|
2084
2090
|
* Базовые данные о продукте.
|
|
2085
2091
|
*/
|
|
2086
2092
|
t(this, "product");
|
|
2087
|
-
this.product = new
|
|
2093
|
+
this.product = new S(e == null ? void 0 : e.product);
|
|
2088
2094
|
}
|
|
2089
2095
|
}
|
|
2090
|
-
class
|
|
2096
|
+
class yr extends P {
|
|
2091
2097
|
}
|
|
2092
2098
|
class se extends T {
|
|
2093
2099
|
/**
|
|
@@ -2109,10 +2115,10 @@ class se extends T {
|
|
|
2109
2115
|
* Дополнительные метаданные свойства.
|
|
2110
2116
|
*/
|
|
2111
2117
|
t(this, "metadata");
|
|
2112
|
-
this.type = new
|
|
2118
|
+
this.type = new yr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
2113
2119
|
}
|
|
2114
2120
|
}
|
|
2115
|
-
class
|
|
2121
|
+
class J {
|
|
2116
2122
|
/**
|
|
2117
2123
|
* Инициализирует экземпляр класса {@link PropertyValue}.
|
|
2118
2124
|
*
|
|
@@ -2146,10 +2152,10 @@ class L {
|
|
|
2146
2152
|
* Окончание периода.
|
|
2147
2153
|
*/
|
|
2148
2154
|
t(this, "to");
|
|
2149
|
-
this.from =
|
|
2155
|
+
this.from = v(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = v(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
|
|
2150
2156
|
}
|
|
2151
2157
|
}
|
|
2152
|
-
class
|
|
2158
|
+
class jt {
|
|
2153
2159
|
/**
|
|
2154
2160
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
2155
2161
|
*
|
|
@@ -2209,7 +2215,7 @@ class Ut {
|
|
|
2209
2215
|
return Object.keys(this).forEach((c) => {
|
|
2210
2216
|
const u = this[c];
|
|
2211
2217
|
// eslint-disable-next-line prettier/prettier
|
|
2212
|
-
|
|
2218
|
+
a(u) || v(u) && u.trim().length === 0 || Oe(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
2213
2219
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
|
|
2214
2220
|
}
|
|
2215
2221
|
}
|
|
@@ -2248,7 +2254,7 @@ class ie extends T {
|
|
|
2248
2254
|
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;
|
|
2249
2255
|
}
|
|
2250
2256
|
}
|
|
2251
|
-
class
|
|
2257
|
+
class Ke {
|
|
2252
2258
|
/**
|
|
2253
2259
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
2254
2260
|
*
|
|
@@ -2267,10 +2273,10 @@ class Ve {
|
|
|
2267
2273
|
* Минимальный коэффициент цены.
|
|
2268
2274
|
*/
|
|
2269
2275
|
t(this, "minCoefficient");
|
|
2270
|
-
this.role = new ie(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new
|
|
2276
|
+
this.role = new ie(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new Ce(r == null ? void 0 : r.minCoefficient);
|
|
2271
2277
|
}
|
|
2272
2278
|
}
|
|
2273
|
-
class
|
|
2279
|
+
class Gt extends p {
|
|
2274
2280
|
/**
|
|
2275
2281
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
2276
2282
|
*
|
|
@@ -2301,7 +2307,7 @@ class Ht extends p {
|
|
|
2301
2307
|
return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
|
|
2302
2308
|
}
|
|
2303
2309
|
}
|
|
2304
|
-
class
|
|
2310
|
+
class Ft extends p {
|
|
2305
2311
|
/**
|
|
2306
2312
|
* Импортирует цены клиента из CSV файла.
|
|
2307
2313
|
*
|
|
@@ -2425,7 +2431,7 @@ class jt extends p {
|
|
|
2425
2431
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2426
2432
|
increase_percent: s.value
|
|
2427
2433
|
},
|
|
2428
|
-
(o) => new
|
|
2434
|
+
(o) => new j(o.data)
|
|
2429
2435
|
);
|
|
2430
2436
|
}
|
|
2431
2437
|
/**
|
|
@@ -2437,7 +2443,7 @@ class jt extends p {
|
|
|
2437
2443
|
* @see /doc/api/internal#/operations/api_internal_client_price_products_remove
|
|
2438
2444
|
*/
|
|
2439
2445
|
removeProductPrice(r, e) {
|
|
2440
|
-
return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new
|
|
2446
|
+
return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new j(s.data));
|
|
2441
2447
|
}
|
|
2442
2448
|
/**
|
|
2443
2449
|
* Добавляет указанный продукт в список товаров для дополнительных продаж.
|
|
@@ -2500,7 +2506,7 @@ class jt extends p {
|
|
|
2500
2506
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2501
2507
|
}
|
|
2502
2508
|
}
|
|
2503
|
-
class
|
|
2509
|
+
class Mt extends p {
|
|
2504
2510
|
/**
|
|
2505
2511
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2506
2512
|
*
|
|
@@ -2539,8 +2545,8 @@ class Gt extends p {
|
|
|
2539
2545
|
return this.post(
|
|
2540
2546
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
2541
2547
|
s && {
|
|
2542
|
-
startAt: s.startAt &&
|
|
2543
|
-
endAt: s.endAt &&
|
|
2548
|
+
startAt: s.startAt && N(s.startAt, i),
|
|
2549
|
+
endAt: s.endAt && N(s.endAt, i)
|
|
2544
2550
|
},
|
|
2545
2551
|
(o) => new te(o.data),
|
|
2546
2552
|
{},
|
|
@@ -2573,8 +2579,8 @@ class Gt extends p {
|
|
|
2573
2579
|
return this.patch(
|
|
2574
2580
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
2575
2581
|
i && {
|
|
2576
|
-
startAt: i.startAt &&
|
|
2577
|
-
endAt: i.endAt &&
|
|
2582
|
+
startAt: i.startAt && N(i.startAt, o),
|
|
2583
|
+
endAt: i.endAt && N(i.endAt, o)
|
|
2578
2584
|
},
|
|
2579
2585
|
(c) => new te(c.data)
|
|
2580
2586
|
);
|
|
@@ -2592,7 +2598,7 @@ class Gt extends p {
|
|
|
2592
2598
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2593
2599
|
}
|
|
2594
2600
|
}
|
|
2595
|
-
class
|
|
2601
|
+
class Bt extends p {
|
|
2596
2602
|
/**
|
|
2597
2603
|
* Возвращает список данных о корневых категориях.
|
|
2598
2604
|
*
|
|
@@ -2652,7 +2658,7 @@ class Ft extends p {
|
|
|
2652
2658
|
showHidden: s,
|
|
2653
2659
|
withPriceCoefficients: e
|
|
2654
2660
|
},
|
|
2655
|
-
(i) => pe(i.data, (o) => new
|
|
2661
|
+
(i) => pe(i.data, (o) => new S(o))
|
|
2656
2662
|
);
|
|
2657
2663
|
}
|
|
2658
2664
|
/**
|
|
@@ -2665,7 +2671,7 @@ class Ft extends p {
|
|
|
2665
2671
|
getCategoryProductsCoefficients(r) {
|
|
2666
2672
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2667
2673
|
const { data: s } = e;
|
|
2668
|
-
return
|
|
2674
|
+
return _r(s, (i) => i.map((o) => new He(o))), s;
|
|
2669
2675
|
});
|
|
2670
2676
|
}
|
|
2671
2677
|
/**
|
|
@@ -2684,7 +2690,7 @@ class Ft extends p {
|
|
|
2684
2690
|
});
|
|
2685
2691
|
}
|
|
2686
2692
|
}
|
|
2687
|
-
class
|
|
2693
|
+
class zt extends p {
|
|
2688
2694
|
/**
|
|
2689
2695
|
* Возвращает данные об указанном продукте.
|
|
2690
2696
|
*
|
|
@@ -2694,7 +2700,7 @@ class Mt extends p {
|
|
|
2694
2700
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
2695
2701
|
*/
|
|
2696
2702
|
getProductData(r, e = !1) {
|
|
2697
|
-
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new
|
|
2703
|
+
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new S(s.data));
|
|
2698
2704
|
}
|
|
2699
2705
|
/**
|
|
2700
2706
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -2702,7 +2708,7 @@ class Mt extends p {
|
|
|
2702
2708
|
* @param productId Идентификатор продукта.
|
|
2703
2709
|
*/
|
|
2704
2710
|
getPublicProductData(r) {
|
|
2705
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
2711
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new S(e.data));
|
|
2706
2712
|
}
|
|
2707
2713
|
/**
|
|
2708
2714
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -2715,7 +2721,7 @@ class Mt extends p {
|
|
|
2715
2721
|
return this.get(
|
|
2716
2722
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2717
2723
|
{},
|
|
2718
|
-
(e) => pe(e.data, (s) => new
|
|
2724
|
+
(e) => pe(e.data, (s) => new He(s))
|
|
2719
2725
|
);
|
|
2720
2726
|
}
|
|
2721
2727
|
/**
|
|
@@ -2727,14 +2733,14 @@ class Mt extends p {
|
|
|
2727
2733
|
publicSimpleSearch(r, e = 10) {
|
|
2728
2734
|
return new Promise((s, i) => {
|
|
2729
2735
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2730
|
-
s(o.products.map((c) => new
|
|
2736
|
+
s(o.products.map((c) => new S(c)));
|
|
2731
2737
|
}).catch((o) => {
|
|
2732
2738
|
i(o);
|
|
2733
2739
|
});
|
|
2734
2740
|
});
|
|
2735
2741
|
}
|
|
2736
2742
|
}
|
|
2737
|
-
class
|
|
2743
|
+
class Wt extends p {
|
|
2738
2744
|
/**
|
|
2739
2745
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2740
2746
|
*
|
|
@@ -2792,11 +2798,11 @@ class Bt extends p {
|
|
|
2792
2798
|
showHidden: i,
|
|
2793
2799
|
withPriceCoefficients: s
|
|
2794
2800
|
},
|
|
2795
|
-
(o) => pe(o.data, (c) => new
|
|
2801
|
+
(o) => pe(o.data, (c) => new j(c))
|
|
2796
2802
|
);
|
|
2797
2803
|
}
|
|
2798
2804
|
}
|
|
2799
|
-
class
|
|
2805
|
+
class Jt extends p {
|
|
2800
2806
|
/**
|
|
2801
2807
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2802
2808
|
*
|
|
@@ -2813,12 +2819,12 @@ class zt extends p {
|
|
|
2813
2819
|
clientId: e,
|
|
2814
2820
|
withPriceCoefficients: s
|
|
2815
2821
|
},
|
|
2816
|
-
(i) => new
|
|
2822
|
+
(i) => new j(i.data)
|
|
2817
2823
|
);
|
|
2818
2824
|
}
|
|
2819
2825
|
}
|
|
2820
|
-
var
|
|
2821
|
-
class
|
|
2826
|
+
var ze = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(ze || {});
|
|
2827
|
+
class Qe {
|
|
2822
2828
|
/**
|
|
2823
2829
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
2824
2830
|
*
|
|
@@ -2837,7 +2843,7 @@ class Ke {
|
|
|
2837
2843
|
* Значение с которым сравнивается поле.
|
|
2838
2844
|
*/
|
|
2839
2845
|
t(this, "value");
|
|
2840
|
-
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ??
|
|
2846
|
+
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? ze.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2841
2847
|
}
|
|
2842
2848
|
/**
|
|
2843
2849
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -2849,7 +2855,7 @@ class Ke {
|
|
|
2849
2855
|
field: this.field,
|
|
2850
2856
|
op: this.op
|
|
2851
2857
|
};
|
|
2852
|
-
return r.value =
|
|
2858
|
+
return r.value = Le(this.value) ? N(this.value, k().config.dateFormats.api) : this.value, r;
|
|
2853
2859
|
}
|
|
2854
2860
|
}
|
|
2855
2861
|
class le {
|
|
@@ -2872,7 +2878,7 @@ class le {
|
|
|
2872
2878
|
*/
|
|
2873
2879
|
t(this, "groups");
|
|
2874
2880
|
var e, s;
|
|
2875
|
-
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
|
|
2881
|
+
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Qe(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new le(i))) ?? [];
|
|
2876
2882
|
}
|
|
2877
2883
|
/**
|
|
2878
2884
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2882,7 +2888,7 @@ class le {
|
|
|
2882
2888
|
toPrimitive() {
|
|
2883
2889
|
return {
|
|
2884
2890
|
groupOp: this.groupOp,
|
|
2885
|
-
filters: this.filters.map((r) => r instanceof
|
|
2891
|
+
filters: this.filters.map((r) => r instanceof Qe && Oe(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2886
2892
|
groups: this.groups.map((r) => r instanceof le ? r.toPrimitive() : r)
|
|
2887
2893
|
};
|
|
2888
2894
|
}
|
|
@@ -2904,10 +2910,10 @@ class De extends p {
|
|
|
2904
2910
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2905
2911
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2906
2912
|
};
|
|
2907
|
-
return e && (h.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), K(s) || (h.sort =
|
|
2913
|
+
return e && (h.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), K(s) || (h.sort = U(s) ? s : [s]), o && (h = { ...h, ...o }), this.get(r, h, c, u);
|
|
2908
2914
|
}
|
|
2909
2915
|
}
|
|
2910
|
-
class
|
|
2916
|
+
class Et extends De {
|
|
2911
2917
|
/**
|
|
2912
2918
|
* Возвращает список шаблонов прайс-листа.
|
|
2913
2919
|
*
|
|
@@ -2920,7 +2926,7 @@ class Wt extends De {
|
|
|
2920
2926
|
getTemplateList(r, e, s) {
|
|
2921
2927
|
return this.getPaginated("/internal/price/templates", r, e, s, {}, (i) => {
|
|
2922
2928
|
const o = { ...i.data };
|
|
2923
|
-
return o.data = o.data.map((c) => new
|
|
2929
|
+
return o.data = o.data.map((c) => new E(c)), o;
|
|
2924
2930
|
});
|
|
2925
2931
|
}
|
|
2926
2932
|
/**
|
|
@@ -2933,7 +2939,7 @@ class Wt extends De {
|
|
|
2933
2939
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
|
|
2934
2940
|
*/
|
|
2935
2941
|
createTemplate(r, e = {}) {
|
|
2936
|
-
return this.post("/internal/price/templates", r, (s) => new
|
|
2942
|
+
return this.post("/internal/price/templates", r, (s) => new E(s.data), e);
|
|
2937
2943
|
}
|
|
2938
2944
|
/**
|
|
2939
2945
|
* Возвращает данные о шаблоне прайс-листа.
|
|
@@ -2943,7 +2949,7 @@ class Wt extends De {
|
|
|
2943
2949
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
|
|
2944
2950
|
*/
|
|
2945
2951
|
getTemplate(r) {
|
|
2946
|
-
return this.get(`/internal/price/templates/${r}`, {}, (e) => new
|
|
2952
|
+
return this.get(`/internal/price/templates/${r}`, {}, (e) => new E(e.data));
|
|
2947
2953
|
}
|
|
2948
2954
|
/**
|
|
2949
2955
|
* Изменяет данные о шаблоне прайс-листа.
|
|
@@ -2956,7 +2962,7 @@ class Wt extends De {
|
|
|
2956
2962
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
|
|
2957
2963
|
*/
|
|
2958
2964
|
updateTemplate(r, e, s = {}) {
|
|
2959
|
-
return this.patch(`/internal/price/templates/${r}`, e, (i) => new
|
|
2965
|
+
return this.patch(`/internal/price/templates/${r}`, e, (i) => new E(i.data), s);
|
|
2960
2966
|
}
|
|
2961
2967
|
/**
|
|
2962
2968
|
* Удаляет данные о шаблоне прайс-листа.
|
|
@@ -3111,7 +3117,7 @@ class Wt extends De {
|
|
|
3111
3117
|
);
|
|
3112
3118
|
}
|
|
3113
3119
|
}
|
|
3114
|
-
class
|
|
3120
|
+
class Vt extends p {
|
|
3115
3121
|
/**
|
|
3116
3122
|
* Возвращает список ролей ценообразования.
|
|
3117
3123
|
*
|
|
@@ -3172,7 +3178,7 @@ class Jt extends p {
|
|
|
3172
3178
|
return this.get(
|
|
3173
3179
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3174
3180
|
{},
|
|
3175
|
-
(e) => e.data.map((s) => new
|
|
3181
|
+
(e) => e.data.map((s) => new Ke(s))
|
|
3176
3182
|
);
|
|
3177
3183
|
}
|
|
3178
3184
|
/**
|
|
@@ -3187,11 +3193,11 @@ class Jt extends p {
|
|
|
3187
3193
|
return this.patch(
|
|
3188
3194
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3189
3195
|
e,
|
|
3190
|
-
(s) => s.data.map((i) => new
|
|
3196
|
+
(s) => s.data.map((i) => new Ke(i))
|
|
3191
3197
|
);
|
|
3192
3198
|
}
|
|
3193
3199
|
}
|
|
3194
|
-
class
|
|
3200
|
+
class Kt extends De {
|
|
3195
3201
|
/**
|
|
3196
3202
|
* Возвращает пагинированный список свойств.
|
|
3197
3203
|
*
|
|
@@ -3267,7 +3273,7 @@ class Et extends De {
|
|
|
3267
3273
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
|
|
3268
3274
|
*/
|
|
3269
3275
|
getProductProperties(r) {
|
|
3270
|
-
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
3276
|
+
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new J(s)));
|
|
3271
3277
|
}
|
|
3272
3278
|
/**
|
|
3273
3279
|
* Возвращает значение свойства продукта.
|
|
@@ -3277,7 +3283,7 @@ class Et extends De {
|
|
|
3277
3283
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
|
|
3278
3284
|
*/
|
|
3279
3285
|
getProductProperty(r, e) {
|
|
3280
|
-
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new
|
|
3286
|
+
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new J(s.data));
|
|
3281
3287
|
}
|
|
3282
3288
|
/**
|
|
3283
3289
|
* Обновляет значение свойства продукта.
|
|
@@ -3288,7 +3294,7 @@ class Et extends De {
|
|
|
3288
3294
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
|
|
3289
3295
|
*/
|
|
3290
3296
|
updateProductProperty(r, e, s) {
|
|
3291
|
-
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new
|
|
3297
|
+
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new J(i.data));
|
|
3292
3298
|
}
|
|
3293
3299
|
/**
|
|
3294
3300
|
* Удаляет значение свойства продукта.
|
|
@@ -3413,7 +3419,7 @@ class Et extends De {
|
|
|
3413
3419
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
|
|
3414
3420
|
*/
|
|
3415
3421
|
getCategoryProperties(r) {
|
|
3416
|
-
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
3422
|
+
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new J(s)));
|
|
3417
3423
|
}
|
|
3418
3424
|
/**
|
|
3419
3425
|
* Возвращает значение свойства категории.
|
|
@@ -3423,7 +3429,7 @@ class Et extends De {
|
|
|
3423
3429
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
|
|
3424
3430
|
*/
|
|
3425
3431
|
getCategoryProperty(r, e) {
|
|
3426
|
-
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new
|
|
3432
|
+
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new J(s.data));
|
|
3427
3433
|
}
|
|
3428
3434
|
/**
|
|
3429
3435
|
* Обновляет значение свойства категории.
|
|
@@ -3434,7 +3440,7 @@ class Et extends De {
|
|
|
3434
3440
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
|
|
3435
3441
|
*/
|
|
3436
3442
|
updateCategoryProperty(r, e, s) {
|
|
3437
|
-
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new
|
|
3443
|
+
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new J(i.data));
|
|
3438
3444
|
}
|
|
3439
3445
|
/**
|
|
3440
3446
|
* Удаляет значение свойства категории.
|
|
@@ -3563,7 +3569,7 @@ class Et extends De {
|
|
|
3563
3569
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3564
3570
|
}
|
|
3565
3571
|
}
|
|
3566
|
-
class
|
|
3572
|
+
class Qt extends p {
|
|
3567
3573
|
/**
|
|
3568
3574
|
* Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
|
|
3569
3575
|
*
|
|
@@ -3621,11 +3627,11 @@ class Vt extends p {
|
|
|
3621
3627
|
showHidden: i,
|
|
3622
3628
|
withPriceCoefficients: s
|
|
3623
3629
|
},
|
|
3624
|
-
(o) => pe(o.data, (c) => new
|
|
3630
|
+
(o) => pe(o.data, (c) => new S(c))
|
|
3625
3631
|
);
|
|
3626
3632
|
}
|
|
3627
3633
|
}
|
|
3628
|
-
function
|
|
3634
|
+
function Ye(n, r, e) {
|
|
3629
3635
|
let s;
|
|
3630
3636
|
return n.some((i) => {
|
|
3631
3637
|
if (i.type === e && i.id === r)
|
|
@@ -3634,64 +3640,64 @@ function Qe(n, r, e) {
|
|
|
3634
3640
|
return !1;
|
|
3635
3641
|
const o = i;
|
|
3636
3642
|
if (o.products && o.products.length > 0) {
|
|
3637
|
-
const c =
|
|
3643
|
+
const c = Ye(o.products, r, e);
|
|
3638
3644
|
if (c)
|
|
3639
3645
|
return s = c, !0;
|
|
3640
3646
|
}
|
|
3641
3647
|
if (o.categories && o.categories.length > 0) {
|
|
3642
|
-
const c =
|
|
3648
|
+
const c = Ye(o.categories, r, e);
|
|
3643
3649
|
if (c)
|
|
3644
3650
|
return s = c, !0;
|
|
3645
3651
|
}
|
|
3646
3652
|
return !1;
|
|
3647
3653
|
}), s;
|
|
3648
3654
|
}
|
|
3649
|
-
function
|
|
3655
|
+
function Xe(n) {
|
|
3650
3656
|
const r = [];
|
|
3651
3657
|
return n.forEach((e) => {
|
|
3652
3658
|
if (r.push(e), e.type === "category") {
|
|
3653
3659
|
const s = e;
|
|
3654
|
-
s.products && s.products.length > 0 && r.push(...
|
|
3660
|
+
s.products && s.products.length > 0 && r.push(...Xe(s.products)), s.categories && s.categories.length > 0 && r.push(...Xe(s.categories));
|
|
3655
3661
|
}
|
|
3656
3662
|
}), r;
|
|
3657
3663
|
}
|
|
3658
|
-
var ot = /* @__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))(ot || {}),
|
|
3659
|
-
class ct extends
|
|
3664
|
+
var ot = /* @__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))(ot || {}), _ = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(_ || {});
|
|
3665
|
+
class ct extends P {
|
|
3660
3666
|
}
|
|
3661
|
-
class
|
|
3667
|
+
class wr extends P {
|
|
3662
3668
|
}
|
|
3663
|
-
class
|
|
3669
|
+
class Yt extends P {
|
|
3664
3670
|
}
|
|
3665
|
-
class lt extends
|
|
3671
|
+
class lt extends P {
|
|
3666
3672
|
}
|
|
3667
|
-
class
|
|
3673
|
+
class G extends P {
|
|
3668
3674
|
/**
|
|
3669
3675
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
3670
3676
|
*/
|
|
3671
3677
|
static generatePersonItem() {
|
|
3672
|
-
return new
|
|
3678
|
+
return new G({
|
|
3673
3679
|
id: 1,
|
|
3674
3680
|
guid: "",
|
|
3675
|
-
slug:
|
|
3681
|
+
slug: _.Person,
|
|
3676
3682
|
name: ""
|
|
3677
3683
|
});
|
|
3678
3684
|
}
|
|
3679
3685
|
}
|
|
3680
|
-
class ut extends
|
|
3686
|
+
class ut extends P {
|
|
3681
3687
|
}
|
|
3682
|
-
class pt extends
|
|
3688
|
+
class pt extends P {
|
|
3683
3689
|
}
|
|
3684
|
-
class
|
|
3690
|
+
class X extends P {
|
|
3685
3691
|
}
|
|
3686
|
-
class ht extends
|
|
3692
|
+
class ht extends P {
|
|
3687
3693
|
}
|
|
3688
|
-
class gt extends
|
|
3694
|
+
class gt extends P {
|
|
3689
3695
|
}
|
|
3690
|
-
class
|
|
3696
|
+
class vr extends P {
|
|
3691
3697
|
}
|
|
3692
|
-
class Cr extends
|
|
3698
|
+
class Cr extends P {
|
|
3693
3699
|
}
|
|
3694
|
-
class
|
|
3700
|
+
class _e extends Z {
|
|
3695
3701
|
/**
|
|
3696
3702
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3697
3703
|
*
|
|
@@ -3718,11 +3724,11 @@ class de extends F {
|
|
|
3718
3724
|
/**
|
|
3719
3725
|
* Данные о валюте.
|
|
3720
3726
|
*/
|
|
3721
|
-
t(this, "currency", new
|
|
3722
|
-
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new
|
|
3727
|
+
t(this, "currency", new d());
|
|
3728
|
+
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new d(e.currency));
|
|
3723
3729
|
}
|
|
3724
3730
|
}
|
|
3725
|
-
class
|
|
3731
|
+
class qe extends T {
|
|
3726
3732
|
/**
|
|
3727
3733
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3728
3734
|
*
|
|
@@ -3741,7 +3747,7 @@ class _e extends T {
|
|
|
3741
3747
|
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;
|
|
3742
3748
|
}
|
|
3743
3749
|
}
|
|
3744
|
-
class
|
|
3750
|
+
class F extends qe {
|
|
3745
3751
|
/**
|
|
3746
3752
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3747
3753
|
*
|
|
@@ -3773,10 +3779,10 @@ class j extends _e {
|
|
|
3773
3779
|
* Дата и время последнего удаления.
|
|
3774
3780
|
*/
|
|
3775
3781
|
t(this, "deletedAt");
|
|
3776
|
-
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt =
|
|
3782
|
+
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3777
3783
|
}
|
|
3778
3784
|
}
|
|
3779
|
-
class
|
|
3785
|
+
class Rr extends T {
|
|
3780
3786
|
/**
|
|
3781
3787
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3782
3788
|
*
|
|
@@ -3788,11 +3794,11 @@ class vr extends T {
|
|
|
3788
3794
|
/**
|
|
3789
3795
|
* Данные об организационно-правовой форме.
|
|
3790
3796
|
*/
|
|
3791
|
-
t(this, "opf",
|
|
3797
|
+
t(this, "opf", G.generatePersonItem());
|
|
3792
3798
|
/**
|
|
3793
3799
|
* Группа партнеров (направление деятельности).
|
|
3794
3800
|
*/
|
|
3795
|
-
t(this, "partnerGroup", new
|
|
3801
|
+
t(this, "partnerGroup", new X());
|
|
3796
3802
|
/**
|
|
3797
3803
|
* Список контактных лиц контрагента.
|
|
3798
3804
|
*/
|
|
@@ -3826,22 +3832,22 @@ class vr extends T {
|
|
|
3826
3832
|
*/
|
|
3827
3833
|
t(this, "updater");
|
|
3828
3834
|
if (e) {
|
|
3829
|
-
if (this.opf = new
|
|
3835
|
+
if (this.opf = new G(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new q(e.creator) : void 0, this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new X(e.partnerGroup)), e.contacts) {
|
|
3830
3836
|
const s = [];
|
|
3831
3837
|
e.contacts.forEach((i) => {
|
|
3832
|
-
s.push(new
|
|
3838
|
+
s.push(new F(i));
|
|
3833
3839
|
}), this.contacts = s;
|
|
3834
3840
|
}
|
|
3835
3841
|
if (e.bankAccounts) {
|
|
3836
3842
|
const s = [];
|
|
3837
3843
|
e.bankAccounts.forEach((i) => {
|
|
3838
|
-
s.push(new
|
|
3844
|
+
s.push(new _e(i));
|
|
3839
3845
|
}), this.bankAccounts = s;
|
|
3840
3846
|
}
|
|
3841
3847
|
}
|
|
3842
3848
|
}
|
|
3843
3849
|
}
|
|
3844
|
-
class mt extends
|
|
3850
|
+
class mt extends Rr {
|
|
3845
3851
|
/**
|
|
3846
3852
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3847
3853
|
*
|
|
@@ -3851,7 +3857,7 @@ class mt extends vr {
|
|
|
3851
3857
|
super(r);
|
|
3852
3858
|
}
|
|
3853
3859
|
}
|
|
3854
|
-
class Pr extends
|
|
3860
|
+
class Pr extends Rr {
|
|
3855
3861
|
/**
|
|
3856
3862
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
3857
3863
|
*
|
|
@@ -3894,7 +3900,7 @@ class Pr extends vr {
|
|
|
3894
3900
|
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 ?? "");
|
|
3895
3901
|
}
|
|
3896
3902
|
}
|
|
3897
|
-
class
|
|
3903
|
+
class Dr extends Pr {
|
|
3898
3904
|
/**
|
|
3899
3905
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
3900
3906
|
*
|
|
@@ -3909,7 +3915,7 @@ class Rr extends Pr {
|
|
|
3909
3915
|
e && (this.kpp = e.kpp ?? "");
|
|
3910
3916
|
}
|
|
3911
3917
|
}
|
|
3912
|
-
class ft extends
|
|
3918
|
+
class ft extends Dr {
|
|
3913
3919
|
/**
|
|
3914
3920
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3915
3921
|
*
|
|
@@ -3920,7 +3926,7 @@ class ft extends Rr {
|
|
|
3920
3926
|
/**
|
|
3921
3927
|
* Страна регистрации юридического лица нерезидента.
|
|
3922
3928
|
*/
|
|
3923
|
-
t(this, "registrationCountry", new
|
|
3929
|
+
t(this, "registrationCountry", new Y());
|
|
3924
3930
|
/**
|
|
3925
3931
|
* Регистрационный номер юридического лица нерезидента.
|
|
3926
3932
|
*/
|
|
@@ -3929,7 +3935,7 @@ class ft extends Rr {
|
|
|
3929
3935
|
* Налоговый номер юридического лица нерезидента.
|
|
3930
3936
|
*/
|
|
3931
3937
|
t(this, "taxNumber", "");
|
|
3932
|
-
e && (this.registrationCountry = new
|
|
3938
|
+
e && (this.registrationCountry = new Y(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
3933
3939
|
}
|
|
3934
3940
|
}
|
|
3935
3941
|
class we {
|
|
@@ -3940,18 +3946,18 @@ class we {
|
|
|
3940
3946
|
*/
|
|
3941
3947
|
static createInstance(r) {
|
|
3942
3948
|
switch (r.opf.slug) {
|
|
3943
|
-
case
|
|
3949
|
+
case _.Ic:
|
|
3944
3950
|
return new Pr(r);
|
|
3945
|
-
case
|
|
3946
|
-
return new
|
|
3947
|
-
case
|
|
3951
|
+
case _.UlR:
|
|
3952
|
+
return new Dr(r);
|
|
3953
|
+
case _.UlNr:
|
|
3948
3954
|
return new ft(r);
|
|
3949
3955
|
default:
|
|
3950
3956
|
return new mt(r);
|
|
3951
3957
|
}
|
|
3952
3958
|
}
|
|
3953
3959
|
}
|
|
3954
|
-
class be extends
|
|
3960
|
+
class be extends Z {
|
|
3955
3961
|
/**
|
|
3956
3962
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
3957
3963
|
*
|
|
@@ -3966,7 +3972,7 @@ class be extends F {
|
|
|
3966
3972
|
this.isPrimary = e.isPrimary;
|
|
3967
3973
|
}
|
|
3968
3974
|
}
|
|
3969
|
-
class yt extends
|
|
3975
|
+
class yt extends F {
|
|
3970
3976
|
/**
|
|
3971
3977
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3972
3978
|
*
|
|
@@ -3994,7 +4000,7 @@ class yt extends j {
|
|
|
3994
4000
|
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new be(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new be(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new be(s))));
|
|
3995
4001
|
}
|
|
3996
4002
|
}
|
|
3997
|
-
class
|
|
4003
|
+
class ve extends Qr {
|
|
3998
4004
|
/**
|
|
3999
4005
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
4000
4006
|
*
|
|
@@ -4031,10 +4037,10 @@ class Ce extends Qr {
|
|
|
4031
4037
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
4032
4038
|
*/
|
|
4033
4039
|
t(this, "isTransportCompanyAddress");
|
|
4034
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
4040
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new pr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new F(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;
|
|
4035
4041
|
}
|
|
4036
4042
|
}
|
|
4037
|
-
class
|
|
4043
|
+
class Ze extends ge {
|
|
4038
4044
|
/**
|
|
4039
4045
|
* Инициализирует экземпляр класса {@link Client}.
|
|
4040
4046
|
*
|
|
@@ -4084,10 +4090,10 @@ class Xe extends ge {
|
|
|
4084
4090
|
* @inheritDoc
|
|
4085
4091
|
*/
|
|
4086
4092
|
t(this, "extraData");
|
|
4087
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => we.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new
|
|
4093
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => we.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new X(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new F(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ve(u))) ?? [], this.channelPrimaryInterest = new wr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Cr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new Q(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Re(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
4088
4094
|
}
|
|
4089
4095
|
}
|
|
4090
|
-
class
|
|
4096
|
+
class Xt {
|
|
4091
4097
|
/**
|
|
4092
4098
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
4093
4099
|
*
|
|
@@ -4187,7 +4193,7 @@ class Qt {
|
|
|
4187
4193
|
*/
|
|
4188
4194
|
t(this, "lastOrder");
|
|
4189
4195
|
var e, s, i, o, c, u, h, f;
|
|
4190
|
-
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((g) => new
|
|
4196
|
+
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((g) => new Be(g)), this.region = new ce(r == null ? void 0 : r.region), this.country = new Y(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new L(r == null ? void 0 : r.createdAt), this.lastLoginDate = new L(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = ((s = r == null ? void 0 : r.managers) == null ? void 0 : s.map((g) => new Pe(g))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((g) => new Me(g))) ?? [], this.salesDirections = (o = r == null ? void 0 : r.salesDirections) == null ? void 0 : o.map((g) => new O(g)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new G(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new Q(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (c = r == null ? void 0 : r.partnerGroups) == null ? void 0 : c.map((g) => new X(g)), this.contact = new qe(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
4191
4197
|
createdAt: new L((u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.createdAt),
|
|
4192
4198
|
creator: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.creator,
|
|
4193
4199
|
isApproved: (f = r == null ? void 0 : r.lastOrder) == null ? void 0 : f.isApproved
|
|
@@ -4228,7 +4234,7 @@ class Qt {
|
|
|
4228
4234
|
this.salesDirections = [];
|
|
4229
4235
|
break;
|
|
4230
4236
|
case "contragentType":
|
|
4231
|
-
this.contragentType = new
|
|
4237
|
+
this.contragentType = new G();
|
|
4232
4238
|
break;
|
|
4233
4239
|
case "preferredDeliveryType":
|
|
4234
4240
|
this.preferredDeliveryType = new Q();
|
|
@@ -4237,7 +4243,7 @@ class Qt {
|
|
|
4237
4243
|
this.partnerGroups = [];
|
|
4238
4244
|
break;
|
|
4239
4245
|
case "contact":
|
|
4240
|
-
this.contact = new
|
|
4246
|
+
this.contact = new qe();
|
|
4241
4247
|
break;
|
|
4242
4248
|
default:
|
|
4243
4249
|
this[r] = void 0;
|
|
@@ -4255,11 +4261,11 @@ class Qt {
|
|
|
4255
4261
|
return Object.keys(this).forEach((c) => {
|
|
4256
4262
|
const u = this[c];
|
|
4257
4263
|
// eslint-disable-next-line prettier/prettier
|
|
4258
|
-
|
|
4264
|
+
a(u) || v(u) && u.trim().length === 0 || Oe(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
4259
4265
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.lastLoginDate) != null && i.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
|
|
4260
4266
|
}
|
|
4261
4267
|
}
|
|
4262
|
-
class
|
|
4268
|
+
class ar extends Z {
|
|
4263
4269
|
/**
|
|
4264
4270
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
4265
4271
|
*
|
|
@@ -4268,18 +4274,18 @@ class Dr extends F {
|
|
|
4268
4274
|
constructor(e) {
|
|
4269
4275
|
super(e);
|
|
4270
4276
|
/**
|
|
4271
|
-
*
|
|
4277
|
+
* @inheritDoc
|
|
4272
4278
|
*/
|
|
4273
4279
|
t(this, "createdAt");
|
|
4274
4280
|
/**
|
|
4275
|
-
*
|
|
4281
|
+
* @inheritDoc
|
|
4276
4282
|
*/
|
|
4277
4283
|
t(this, "creator");
|
|
4278
4284
|
/**
|
|
4279
|
-
*
|
|
4285
|
+
* @inheritDoc
|
|
4280
4286
|
*/
|
|
4281
4287
|
t(this, "isApproved1c");
|
|
4282
|
-
this.createdAt =
|
|
4288
|
+
this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new q(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
4283
4289
|
}
|
|
4284
4290
|
}
|
|
4285
4291
|
class wt extends T {
|
|
@@ -4319,10 +4325,10 @@ class wt extends T {
|
|
|
4319
4325
|
* @inheritDoc
|
|
4320
4326
|
*/
|
|
4321
4327
|
t(this, "curators");
|
|
4322
|
-
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new
|
|
4328
|
+
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new F(u))) ?? void 0, this.lastOrder = e.lastOrder ? new ar(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new X(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new Q(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new O(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Ge(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Me(u))) ?? void 0;
|
|
4323
4329
|
}
|
|
4324
4330
|
}
|
|
4325
|
-
class
|
|
4331
|
+
class vt {
|
|
4326
4332
|
/**
|
|
4327
4333
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
4328
4334
|
*
|
|
@@ -4340,7 +4346,7 @@ class Ct {
|
|
|
4340
4346
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4341
4347
|
}
|
|
4342
4348
|
}
|
|
4343
|
-
class
|
|
4349
|
+
class Zt extends vt {
|
|
4344
4350
|
/**
|
|
4345
4351
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4346
4352
|
*
|
|
@@ -4371,7 +4377,7 @@ class Yt extends Ct {
|
|
|
4371
4377
|
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;
|
|
4372
4378
|
}
|
|
4373
4379
|
}
|
|
4374
|
-
class
|
|
4380
|
+
class es {
|
|
4375
4381
|
/**
|
|
4376
4382
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
4377
4383
|
*
|
|
@@ -4421,7 +4427,7 @@ class I extends De {
|
|
|
4421
4427
|
let e;
|
|
4422
4428
|
const s = r, i = r, o = r;
|
|
4423
4429
|
switch (r.opf.slug) {
|
|
4424
|
-
case
|
|
4430
|
+
case _.Ic:
|
|
4425
4431
|
e = {
|
|
4426
4432
|
opf: s.opf.slug,
|
|
4427
4433
|
name: s.name,
|
|
@@ -4438,7 +4444,7 @@ class I extends De {
|
|
|
4438
4444
|
actual_address: s.actualAddress
|
|
4439
4445
|
};
|
|
4440
4446
|
break;
|
|
4441
|
-
case
|
|
4447
|
+
case _.UlR:
|
|
4442
4448
|
e = {
|
|
4443
4449
|
opf: i.opf.slug,
|
|
4444
4450
|
name: i.name,
|
|
@@ -4456,7 +4462,7 @@ class I extends De {
|
|
|
4456
4462
|
actual_address: i.actualAddress
|
|
4457
4463
|
};
|
|
4458
4464
|
break;
|
|
4459
|
-
case
|
|
4465
|
+
case _.UlNr:
|
|
4460
4466
|
e = {
|
|
4461
4467
|
opf: o.opf.slug,
|
|
4462
4468
|
name: o.name,
|
|
@@ -4528,7 +4534,7 @@ class I extends De {
|
|
|
4528
4534
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
4529
4535
|
*/
|
|
4530
4536
|
getClient(r) {
|
|
4531
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
4537
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new Ze(e.data));
|
|
4532
4538
|
}
|
|
4533
4539
|
/**
|
|
4534
4540
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -4556,7 +4562,7 @@ class I extends De {
|
|
|
4556
4562
|
return this.getClientsList({
|
|
4557
4563
|
groupOp: "and",
|
|
4558
4564
|
groups: [],
|
|
4559
|
-
filters: [{ field: "phone", op:
|
|
4565
|
+
filters: [{ field: "phone", op: ze.Contains, value: r }]
|
|
4560
4566
|
});
|
|
4561
4567
|
}
|
|
4562
4568
|
/**
|
|
@@ -4593,7 +4599,7 @@ class I extends De {
|
|
|
4593
4599
|
* @see /doc/api/internal#/Клиенты/api_internal_client_create
|
|
4594
4600
|
*/
|
|
4595
4601
|
createClientCommonData(r, e = {}) {
|
|
4596
|
-
return this.post("/internal/clients", I.transformClientDataToRequest(r), (s) => new
|
|
4602
|
+
return this.post("/internal/clients", I.transformClientDataToRequest(r), (s) => new Ze(s.data), e);
|
|
4597
4603
|
}
|
|
4598
4604
|
/**
|
|
4599
4605
|
* Обновляет данные указанного клиента.
|
|
@@ -4775,7 +4781,7 @@ class I extends De {
|
|
|
4775
4781
|
return this.post(
|
|
4776
4782
|
`/internal/clients/${r}/delivery-addresses`,
|
|
4777
4783
|
I.transformClientDeliveryAddressToRequest(e),
|
|
4778
|
-
(i) => new
|
|
4784
|
+
(i) => new ve(i.data),
|
|
4779
4785
|
s
|
|
4780
4786
|
);
|
|
4781
4787
|
}
|
|
@@ -4791,7 +4797,7 @@ class I extends De {
|
|
|
4791
4797
|
return this.patch(
|
|
4792
4798
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
4793
4799
|
I.transformClientDeliveryAddressToRequest(e),
|
|
4794
|
-
(i) => new
|
|
4800
|
+
(i) => new ve(i.data),
|
|
4795
4801
|
s
|
|
4796
4802
|
);
|
|
4797
4803
|
}
|
|
@@ -4818,7 +4824,7 @@ class I extends De {
|
|
|
4818
4824
|
return this.post(
|
|
4819
4825
|
`/internal/clients/${r}/contragents/${e}/bank-accounts`,
|
|
4820
4826
|
I.transformClientContragentBankAccountToRequest(s),
|
|
4821
|
-
(o) => new
|
|
4827
|
+
(o) => new _e(o.data),
|
|
4822
4828
|
i
|
|
4823
4829
|
);
|
|
4824
4830
|
}
|
|
@@ -4835,7 +4841,7 @@ class I extends De {
|
|
|
4835
4841
|
return this.patch(
|
|
4836
4842
|
`/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
|
|
4837
4843
|
I.transformClientContragentBankAccountToRequest(s),
|
|
4838
|
-
(o) => new
|
|
4844
|
+
(o) => new _e(o.data),
|
|
4839
4845
|
i
|
|
4840
4846
|
);
|
|
4841
4847
|
}
|
|
@@ -4891,7 +4897,7 @@ class I extends De {
|
|
|
4891
4897
|
comment: e.comment,
|
|
4892
4898
|
not_disturb: e.notDisturb
|
|
4893
4899
|
},
|
|
4894
|
-
(i) => new
|
|
4900
|
+
(i) => new F(i.data),
|
|
4895
4901
|
s
|
|
4896
4902
|
);
|
|
4897
4903
|
}
|
|
@@ -5028,7 +5034,7 @@ class I extends De {
|
|
|
5028
5034
|
comment: e.comment,
|
|
5029
5035
|
...s
|
|
5030
5036
|
};
|
|
5031
|
-
return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new
|
|
5037
|
+
return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new F(h.data), i);
|
|
5032
5038
|
}
|
|
5033
5039
|
/**
|
|
5034
5040
|
* Устанавливает признак основного контактного лица.
|
|
@@ -5057,7 +5063,7 @@ class I extends De {
|
|
|
5057
5063
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
5058
5064
|
}
|
|
5059
5065
|
}
|
|
5060
|
-
const
|
|
5066
|
+
const V = class V extends p {
|
|
5061
5067
|
/**
|
|
5062
5068
|
* Инициализирует экземпляр класса {@link HttpCachedRequester}.
|
|
5063
5069
|
*/
|
|
@@ -5077,7 +5083,7 @@ const E = class E extends p {
|
|
|
5077
5083
|
*/
|
|
5078
5084
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
5079
5085
|
static getCachedResponse(e) {
|
|
5080
|
-
const s =
|
|
5086
|
+
const s = V.responseDataCache.get(e);
|
|
5081
5087
|
if (s && s.validTo > /* @__PURE__ */ new Date())
|
|
5082
5088
|
return s.val;
|
|
5083
5089
|
}
|
|
@@ -5088,8 +5094,8 @@ const E = class E extends p {
|
|
|
5088
5094
|
* @param data Данные для кэширования.
|
|
5089
5095
|
*/
|
|
5090
5096
|
cacheResponse(e, s) {
|
|
5091
|
-
|
|
5092
|
-
validTo:
|
|
5097
|
+
V.responseDataCache.set(e, {
|
|
5098
|
+
validTo: Or(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
5093
5099
|
val: s
|
|
5094
5100
|
});
|
|
5095
5101
|
}
|
|
@@ -5104,7 +5110,7 @@ const E = class E extends p {
|
|
|
5104
5110
|
*/
|
|
5105
5111
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
5106
5112
|
getTypedDataArrayRequester(e, s, i = !1, o = {}) {
|
|
5107
|
-
const c = s + (K(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ?
|
|
5113
|
+
const c = s + (K(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? V.getCachedResponse(c) : void 0;
|
|
5108
5114
|
return u ? Promise.resolve(u) : this.get(s, o).then((h) => {
|
|
5109
5115
|
const f = h.map((g) => Ue.instanceInitializer(e, g));
|
|
5110
5116
|
return i && f && this.cacheResponse(s, f), f;
|
|
@@ -5114,9 +5120,9 @@ const E = class E extends p {
|
|
|
5114
5120
|
/**
|
|
5115
5121
|
* Кэш результатов запросов.
|
|
5116
5122
|
*/
|
|
5117
|
-
t(
|
|
5118
|
-
let ue =
|
|
5119
|
-
class
|
|
5123
|
+
t(V, "responseDataCache", /* @__PURE__ */ new Map());
|
|
5124
|
+
let ue = V;
|
|
5125
|
+
class rs extends p {
|
|
5120
5126
|
/**
|
|
5121
5127
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
5122
5128
|
*
|
|
@@ -5130,7 +5136,7 @@ class Zt extends p {
|
|
|
5130
5136
|
});
|
|
5131
5137
|
}
|
|
5132
5138
|
}
|
|
5133
|
-
class
|
|
5139
|
+
class ts {
|
|
5134
5140
|
/**
|
|
5135
5141
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
5136
5142
|
*
|
|
@@ -5149,10 +5155,11 @@ class es {
|
|
|
5149
5155
|
* Текущая версия приложения.
|
|
5150
5156
|
*/
|
|
5151
5157
|
t(this, "version");
|
|
5152
|
-
this.date =
|
|
5158
|
+
this.date = v(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";
|
|
5153
5159
|
}
|
|
5154
5160
|
}
|
|
5155
|
-
|
|
5161
|
+
var Ct = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n))(Ct || {});
|
|
5162
|
+
class ss extends p {
|
|
5156
5163
|
/**
|
|
5157
5164
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
5158
5165
|
*
|
|
@@ -5182,7 +5189,7 @@ class rs extends p {
|
|
|
5182
5189
|
const o = this.get(
|
|
5183
5190
|
`internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
|
|
5184
5191
|
{ params: s, client_id: e },
|
|
5185
|
-
(u) => new
|
|
5192
|
+
(u) => new S(u.data)
|
|
5186
5193
|
);
|
|
5187
5194
|
return o.catch((u) => {
|
|
5188
5195
|
this.errorResponseHandler(u, i);
|
|
@@ -5243,18 +5250,18 @@ class rs extends p {
|
|
|
5243
5250
|
});
|
|
5244
5251
|
}
|
|
5245
5252
|
}
|
|
5246
|
-
class
|
|
5253
|
+
class is {
|
|
5247
5254
|
/**
|
|
5248
5255
|
* Возвращает диапазон дат по умолчанию.
|
|
5249
5256
|
*/
|
|
5250
5257
|
static defaultDateRanges() {
|
|
5251
|
-
const r =
|
|
5258
|
+
const r = Nr(/* @__PURE__ */ new Date(), 1);
|
|
5252
5259
|
return {
|
|
5253
5260
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5254
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
5255
|
-
today: { label: "Сегодня", from:
|
|
5256
|
-
yesterday: { label: "Вчера", from:
|
|
5257
|
-
tomorrow: { label: "Завтра", from:
|
|
5261
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: Br(r), to: Mr(r) },
|
|
5262
|
+
today: { label: "Сегодня", from: de(), to: Fr() },
|
|
5263
|
+
yesterday: { label: "Вчера", from: Gr(), to: jr() },
|
|
5264
|
+
tomorrow: { label: "Завтра", from: Hr(), to: Ur() }
|
|
5258
5265
|
};
|
|
5259
5266
|
}
|
|
5260
5267
|
}
|
|
@@ -5286,12 +5293,12 @@ class Ar {
|
|
|
5286
5293
|
return (e = r.properties) != null && e.lengthStep ? r.properties.lengthStep : !((s = r.properties) != null && s.ignoreMinCountCheck) && ((i = r.properties) != null && i.minCount) ? r.properties.minCount : 0.01;
|
|
5287
5294
|
}
|
|
5288
5295
|
}
|
|
5289
|
-
class
|
|
5296
|
+
class ns {
|
|
5290
5297
|
/**
|
|
5291
5298
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5292
5299
|
*/
|
|
5293
5300
|
static generateUndefinedManagerInstance() {
|
|
5294
|
-
return new
|
|
5301
|
+
return new Pe({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
|
|
5295
5302
|
}
|
|
5296
5303
|
/**
|
|
5297
5304
|
* Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
|
|
@@ -5302,7 +5309,7 @@ class ss {
|
|
|
5302
5309
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5303
5310
|
}
|
|
5304
5311
|
}
|
|
5305
|
-
class
|
|
5312
|
+
class Rt extends ue {
|
|
5306
5313
|
/**
|
|
5307
5314
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5308
5315
|
*/
|
|
@@ -5310,11 +5317,11 @@ class vt extends ue {
|
|
|
5310
5317
|
const r = "/internal/managers", e = ue.getCachedResponse(r);
|
|
5311
5318
|
if (e)
|
|
5312
5319
|
return e;
|
|
5313
|
-
const i = (await this.get(r)).data.map((o) => Ue.instanceInitializer(
|
|
5320
|
+
const i = (await this.get(r)).data.map((o) => Ue.instanceInitializer(Pe, o));
|
|
5314
5321
|
return this.cacheResponse(r, i), i;
|
|
5315
5322
|
}
|
|
5316
5323
|
}
|
|
5317
|
-
class
|
|
5324
|
+
class $r extends ar {
|
|
5318
5325
|
/**
|
|
5319
5326
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
5320
5327
|
*
|
|
@@ -5324,47 +5331,47 @@ class ar extends Dr {
|
|
|
5324
5331
|
var s, i, o, c, u, h, f, g;
|
|
5325
5332
|
super(e);
|
|
5326
5333
|
/**
|
|
5327
|
-
*
|
|
5334
|
+
* @inheritDoc
|
|
5328
5335
|
*/
|
|
5329
5336
|
t(this, "client");
|
|
5330
5337
|
/**
|
|
5331
|
-
*
|
|
5338
|
+
* @inheritDoc
|
|
5332
5339
|
*/
|
|
5333
5340
|
t(this, "payment");
|
|
5334
5341
|
/**
|
|
5335
|
-
*
|
|
5342
|
+
* @inheritDoc
|
|
5336
5343
|
*/
|
|
5337
5344
|
t(this, "delivery");
|
|
5338
5345
|
/**
|
|
5339
|
-
*
|
|
5346
|
+
* @inheritDoc
|
|
5340
5347
|
*/
|
|
5341
5348
|
t(this, "attachedUser");
|
|
5342
5349
|
/**
|
|
5343
|
-
*
|
|
5350
|
+
* @inheritDoc
|
|
5344
5351
|
*/
|
|
5345
5352
|
t(this, "status");
|
|
5346
5353
|
/**
|
|
5347
|
-
*
|
|
5354
|
+
* @inheritDoc
|
|
5348
5355
|
*/
|
|
5349
5356
|
t(this, "salesDirection");
|
|
5350
5357
|
/**
|
|
5351
|
-
*
|
|
5358
|
+
* @inheritDoc
|
|
5352
5359
|
*/
|
|
5353
5360
|
t(this, "pendingAt");
|
|
5354
5361
|
/**
|
|
5355
|
-
*
|
|
5362
|
+
* @inheritDoc
|
|
5356
5363
|
*/
|
|
5357
5364
|
t(this, "processedAt");
|
|
5358
5365
|
/**
|
|
5359
|
-
*
|
|
5366
|
+
* @inheritDoc
|
|
5360
5367
|
*/
|
|
5361
5368
|
t(this, "isOnOrder");
|
|
5362
5369
|
/**
|
|
5363
|
-
*
|
|
5370
|
+
* @inheritDoc
|
|
5364
5371
|
*/
|
|
5365
5372
|
t(this, "isNotInStock");
|
|
5366
5373
|
/**
|
|
5367
|
-
*
|
|
5374
|
+
* @inheritDoc
|
|
5368
5375
|
*/
|
|
5369
5376
|
t(this, "sum");
|
|
5370
5377
|
this.client = new ge(e == null ? void 0 : e.client), this.payment = {
|
|
@@ -5373,100 +5380,64 @@ class ar extends Dr {
|
|
|
5373
5380
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
5374
5381
|
}, this.delivery = {
|
|
5375
5382
|
type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
|
|
5376
|
-
date:
|
|
5377
|
-
address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new
|
|
5378
|
-
warehouse: (g = e == null ? void 0 : e.delivery) != null && g.warehouse ? new
|
|
5379
|
-
}, this.attachedUser = new
|
|
5383
|
+
date: v((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
|
|
5384
|
+
address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new ve(e.delivery.address) : void 0,
|
|
5385
|
+
warehouse: (g = e == null ? void 0 : e.delivery) != null && g.warehouse ? new Re(e.delivery.warehouse) : void 0
|
|
5386
|
+
}, this.attachedUser = new q(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.pendingAt = v(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = v(e == null ? void 0 : e.processedAt) ? C(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0;
|
|
5380
5387
|
}
|
|
5381
5388
|
}
|
|
5382
|
-
class Pt extends
|
|
5389
|
+
class Pt extends hr {
|
|
5383
5390
|
/**
|
|
5384
|
-
* Инициализирует экземпляр класса {@link
|
|
5391
|
+
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
5385
5392
|
*
|
|
5386
5393
|
* @param data Данные для первоначальной инициализации.
|
|
5387
5394
|
*/
|
|
5388
5395
|
constructor(e) {
|
|
5389
5396
|
super(e);
|
|
5390
5397
|
/**
|
|
5391
|
-
*
|
|
5398
|
+
* @inheritDoc
|
|
5392
5399
|
*/
|
|
5393
5400
|
t(this, "product");
|
|
5394
5401
|
/**
|
|
5395
|
-
*
|
|
5396
|
-
*/
|
|
5397
|
-
t(this, "quantity");
|
|
5398
|
-
/**
|
|
5399
|
-
* Валюта товара или услуги.
|
|
5402
|
+
* @inheritDoc
|
|
5400
5403
|
*/
|
|
5401
|
-
t(this, "
|
|
5404
|
+
t(this, "cost");
|
|
5402
5405
|
/**
|
|
5403
|
-
*
|
|
5406
|
+
* @inheritDoc
|
|
5404
5407
|
*/
|
|
5405
5408
|
t(this, "costOne");
|
|
5406
5409
|
/**
|
|
5407
|
-
*
|
|
5410
|
+
* @inheritDoc
|
|
5408
5411
|
*/
|
|
5409
5412
|
t(this, "costOneRub");
|
|
5410
5413
|
/**
|
|
5411
|
-
*
|
|
5412
|
-
*/
|
|
5413
|
-
t(this, "cost");
|
|
5414
|
-
/**
|
|
5415
|
-
* Итоговая стоимость товара или услуги в рублях.
|
|
5414
|
+
* @inheritDoc
|
|
5416
5415
|
*/
|
|
5417
5416
|
t(this, "costRub");
|
|
5418
5417
|
/**
|
|
5419
|
-
*
|
|
5420
|
-
*/
|
|
5421
|
-
t(this, "marker");
|
|
5422
|
-
/**
|
|
5423
|
-
* Высота товара.
|
|
5424
|
-
*/
|
|
5425
|
-
t(this, "height");
|
|
5426
|
-
/**
|
|
5427
|
-
* Длина товара.
|
|
5428
|
-
*/
|
|
5429
|
-
t(this, "length");
|
|
5430
|
-
/**
|
|
5431
|
-
* Ширина товара.
|
|
5432
|
-
*/
|
|
5433
|
-
t(this, "width");
|
|
5434
|
-
/**
|
|
5435
|
-
* Идентификатор логической группы товаров/услуг.
|
|
5418
|
+
* @inheritDoc
|
|
5436
5419
|
*/
|
|
5437
5420
|
t(this, "logicGroupId");
|
|
5438
5421
|
/**
|
|
5439
|
-
*
|
|
5422
|
+
* @inheritDoc
|
|
5440
5423
|
*/
|
|
5441
5424
|
t(this, "salesDirection");
|
|
5442
5425
|
/**
|
|
5443
|
-
*
|
|
5426
|
+
* @inheritDoc
|
|
5444
5427
|
*/
|
|
5445
5428
|
t(this, "specificationImgUrl");
|
|
5446
5429
|
/**
|
|
5447
|
-
*
|
|
5448
|
-
*/
|
|
5449
|
-
t(this, "configurator");
|
|
5450
|
-
/**
|
|
5451
|
-
* Параметры введенные в конфигуратор, при добавлении позиции в корзину.
|
|
5452
|
-
*/
|
|
5453
|
-
t(this, "configuratorParams");
|
|
5454
|
-
/**
|
|
5455
|
-
* Вариант продольного распила.
|
|
5456
|
-
*
|
|
5457
|
-
* В качестве значения указывается ширина продукта,
|
|
5458
|
-
* а в качестве ключа указывается код продукта,
|
|
5459
|
-
* который соответствует указанной ширине. Количество не ограничено.
|
|
5430
|
+
* @inheritDoc
|
|
5460
5431
|
*/
|
|
5461
5432
|
t(this, "sawing");
|
|
5462
5433
|
/**
|
|
5463
|
-
*
|
|
5434
|
+
* @inheritDoc
|
|
5464
5435
|
*/
|
|
5465
|
-
t(this, "
|
|
5466
|
-
this.product = new
|
|
5436
|
+
t(this, "currency");
|
|
5437
|
+
this.product = new j(e.product), this.currency = new d(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;
|
|
5467
5438
|
}
|
|
5468
5439
|
}
|
|
5469
|
-
class
|
|
5440
|
+
class Se extends $r {
|
|
5470
5441
|
/**
|
|
5471
5442
|
* Инициализирует экземпляр класса {@link Order}.
|
|
5472
5443
|
*
|
|
@@ -5475,41 +5446,41 @@ class Ze extends ar {
|
|
|
5475
5446
|
constructor(e) {
|
|
5476
5447
|
super(e);
|
|
5477
5448
|
/**
|
|
5478
|
-
*
|
|
5449
|
+
* @inheritDoc
|
|
5479
5450
|
*/
|
|
5480
5451
|
t(this, "products");
|
|
5481
5452
|
/**
|
|
5482
|
-
*
|
|
5453
|
+
* @inheritDoc
|
|
5483
5454
|
*/
|
|
5484
5455
|
t(this, "invoices");
|
|
5485
5456
|
/**
|
|
5486
|
-
*
|
|
5457
|
+
* @inheritDoc
|
|
5487
5458
|
*/
|
|
5488
5459
|
t(this, "comment");
|
|
5489
5460
|
/**
|
|
5490
|
-
*
|
|
5461
|
+
* @inheritDoc
|
|
5491
5462
|
*/
|
|
5492
5463
|
t(this, "image");
|
|
5493
5464
|
/**
|
|
5494
|
-
*
|
|
5465
|
+
* @inheritDoc
|
|
5495
5466
|
*/
|
|
5496
5467
|
t(this, "contragent");
|
|
5497
5468
|
/**
|
|
5498
|
-
*
|
|
5469
|
+
* @inheritDoc
|
|
5499
5470
|
*/
|
|
5500
5471
|
t(this, "barcode");
|
|
5501
5472
|
/**
|
|
5502
|
-
*
|
|
5473
|
+
* @inheritDoc
|
|
5503
5474
|
*/
|
|
5504
5475
|
t(this, "orderSource");
|
|
5505
5476
|
/**
|
|
5506
|
-
*
|
|
5477
|
+
* @inheritDoc
|
|
5507
5478
|
*/
|
|
5508
5479
|
t(this, "isAllowProcessingWithoutPayment");
|
|
5509
|
-
this.products = (e.products ?? []).map((s) => new Pt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? we.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new
|
|
5480
|
+
this.products = (e.products ?? []).map((s) => new Pt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? we.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5510
5481
|
}
|
|
5511
5482
|
}
|
|
5512
|
-
class
|
|
5483
|
+
class os extends De {
|
|
5513
5484
|
/**
|
|
5514
5485
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5515
5486
|
*
|
|
@@ -5522,7 +5493,7 @@ class is extends De {
|
|
|
5522
5493
|
getOrders(r, e, s) {
|
|
5523
5494
|
return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
|
|
5524
5495
|
const o = { ...i.data };
|
|
5525
|
-
return o.data = o.data.map((c) => new
|
|
5496
|
+
return o.data = o.data.map((c) => new $r(c)), o;
|
|
5526
5497
|
});
|
|
5527
5498
|
}
|
|
5528
5499
|
/**
|
|
@@ -5540,7 +5511,7 @@ class is extends De {
|
|
|
5540
5511
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
5541
5512
|
*/
|
|
5542
5513
|
getOrder(r) {
|
|
5543
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
5514
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new Se(e.data));
|
|
5544
5515
|
}
|
|
5545
5516
|
/**
|
|
5546
5517
|
* Добавляет продукт в заказ и возвращает обновлённые данные заказа.
|
|
@@ -5568,12 +5539,42 @@ class is extends De {
|
|
|
5568
5539
|
is_additional_sale: e.isAdditionalSale,
|
|
5569
5540
|
...e.configuratorParams
|
|
5570
5541
|
},
|
|
5571
|
-
(i) => new
|
|
5542
|
+
(i) => new Se(i.data),
|
|
5572
5543
|
s
|
|
5573
5544
|
);
|
|
5574
5545
|
}
|
|
5546
|
+
/**
|
|
5547
|
+
* Изменяет продукт заказа и возвращает обновлённые данные заказа.
|
|
5548
|
+
*
|
|
5549
|
+
* @param orderId Идентификатор заказа.
|
|
5550
|
+
* @param orderProductId Идентификатор записи продукта заказа.
|
|
5551
|
+
* @param orderProduct Данные о товаре, параметры которого необходимо изменить в заказе.
|
|
5552
|
+
* @param validationFieldResultData Список полей, для которых необходимо
|
|
5553
|
+
* установить данные об ошибках валидации
|
|
5554
|
+
* в случае ошибок в запросах.
|
|
5555
|
+
*
|
|
5556
|
+
* @see /doc/api/internal#/Заказы/api_internal_orders_product_update
|
|
5557
|
+
*/
|
|
5558
|
+
patchOrderProduct(r, e, s, i = {}) {
|
|
5559
|
+
return this.patch(
|
|
5560
|
+
`/internal/orders/${r}/products/${e}`,
|
|
5561
|
+
{
|
|
5562
|
+
product_id: s.product.id,
|
|
5563
|
+
product_category_id: s.configurator ? s.category.id : void 0,
|
|
5564
|
+
quantity: s.quantity,
|
|
5565
|
+
height: s.height,
|
|
5566
|
+
length: s.length,
|
|
5567
|
+
width: s.width,
|
|
5568
|
+
configurator: s.configurator,
|
|
5569
|
+
marker: s.marker,
|
|
5570
|
+
...s.configuratorParams
|
|
5571
|
+
},
|
|
5572
|
+
(o) => new Se(o.data),
|
|
5573
|
+
i
|
|
5574
|
+
);
|
|
5575
|
+
}
|
|
5575
5576
|
}
|
|
5576
|
-
class
|
|
5577
|
+
class ke {
|
|
5577
5578
|
/**
|
|
5578
5579
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
5579
5580
|
*
|
|
@@ -5600,10 +5601,10 @@ class Se {
|
|
|
5600
5601
|
* Источник клиентской цены.
|
|
5601
5602
|
*/
|
|
5602
5603
|
t(this, "source");
|
|
5603
|
-
this.client = new ge(r == null ? void 0 : r.client), this.product = new
|
|
5604
|
+
this.client = new ge(r == null ? void 0 : r.client), this.product = new S(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) ?? je.Product;
|
|
5604
5605
|
}
|
|
5605
5606
|
}
|
|
5606
|
-
const
|
|
5607
|
+
const Ie = (n) => {
|
|
5607
5608
|
var r, e, s, i, o;
|
|
5608
5609
|
return n ? nr(
|
|
5609
5610
|
{
|
|
@@ -5614,13 +5615,13 @@ const ke = (n) => {
|
|
|
5614
5615
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
5615
5616
|
hideNotActive: n.hideNotActive
|
|
5616
5617
|
},
|
|
5617
|
-
(c) =>
|
|
5618
|
+
(c) => a(c) || (U(c) || or(c)) && K(c)
|
|
5618
5619
|
) : {};
|
|
5619
5620
|
}, er = (n) => {
|
|
5620
5621
|
const r = {};
|
|
5621
5622
|
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;
|
|
5622
5623
|
};
|
|
5623
|
-
class
|
|
5624
|
+
class cs extends p {
|
|
5624
5625
|
/**
|
|
5625
5626
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
5626
5627
|
*
|
|
@@ -5635,9 +5636,9 @@ class ns extends p {
|
|
|
5635
5636
|
`/internal/price/products/${r}/analyze`,
|
|
5636
5637
|
{
|
|
5637
5638
|
...er(e),
|
|
5638
|
-
filters:
|
|
5639
|
+
filters: Ie(s)
|
|
5639
5640
|
},
|
|
5640
|
-
(i) => i.data.map((o) => new
|
|
5641
|
+
(i) => i.data.map((o) => new ke(o))
|
|
5641
5642
|
);
|
|
5642
5643
|
}
|
|
5643
5644
|
/**
|
|
@@ -5654,9 +5655,9 @@ class ns extends p {
|
|
|
5654
5655
|
`/internal/price/categories/${r}/analyze`,
|
|
5655
5656
|
{
|
|
5656
5657
|
...er(e),
|
|
5657
|
-
filters:
|
|
5658
|
+
filters: Ie(s)
|
|
5658
5659
|
},
|
|
5659
|
-
(i) => i.data.map((o) => new
|
|
5660
|
+
(i) => i.data.map((o) => new ke(o))
|
|
5660
5661
|
);
|
|
5661
5662
|
}
|
|
5662
5663
|
/**
|
|
@@ -5675,13 +5676,13 @@ class ns extends p {
|
|
|
5675
5676
|
`/internal/price/categories/${r}/analyze/square`,
|
|
5676
5677
|
{
|
|
5677
5678
|
...e,
|
|
5678
|
-
filters:
|
|
5679
|
+
filters: Ie(s)
|
|
5679
5680
|
},
|
|
5680
|
-
(i) => i.data.map((o) => new
|
|
5681
|
+
(i) => i.data.map((o) => new ke(o))
|
|
5681
5682
|
);
|
|
5682
5683
|
}
|
|
5683
5684
|
}
|
|
5684
|
-
class
|
|
5685
|
+
class Dt {
|
|
5685
5686
|
/**
|
|
5686
5687
|
* Инициализирует экземпляр класса {@link PriceHistoryItem}.
|
|
5687
5688
|
*
|
|
@@ -5728,10 +5729,10 @@ class Rt {
|
|
|
5728
5729
|
* @inheritDoc
|
|
5729
5730
|
*/
|
|
5730
5731
|
t(this, "currency");
|
|
5731
|
-
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate =
|
|
5732
|
+
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = v(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new oe(r.product) : void 0, this.client = r.client ? new q(r.client) : void 0, this.executor = r.executor ? new q(r.executor) : void 0, this.currency = r.currency ? new d(r.currency) : void 0;
|
|
5732
5733
|
}
|
|
5733
5734
|
}
|
|
5734
|
-
class
|
|
5735
|
+
class at extends oe {
|
|
5735
5736
|
/**
|
|
5736
5737
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
5737
5738
|
*
|
|
@@ -5743,10 +5744,10 @@ class Dt extends oe {
|
|
|
5743
5744
|
* @inheritDoc
|
|
5744
5745
|
*/
|
|
5745
5746
|
t(this, "history");
|
|
5746
|
-
this.history = pe(e.history, (s) => new
|
|
5747
|
+
this.history = pe(e.history, (s) => new Dt(s));
|
|
5747
5748
|
}
|
|
5748
5749
|
}
|
|
5749
|
-
class
|
|
5750
|
+
class ls extends p {
|
|
5750
5751
|
/**
|
|
5751
5752
|
* Возвращает данные об истории изменения цен.
|
|
5752
5753
|
*
|
|
@@ -5759,14 +5760,14 @@ class os extends p {
|
|
|
5759
5760
|
const e = k().config.dateFormats.api, s = nr(
|
|
5760
5761
|
ne(r, {
|
|
5761
5762
|
costDate: {
|
|
5762
|
-
from:
|
|
5763
|
-
to:
|
|
5763
|
+
from: Le((o = r.costDate) == null ? void 0 : o.from) ? N(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
5764
|
+
to: Le((u = r.costDate) == null ? void 0 : u.to) ? N(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
|
|
5764
5765
|
}
|
|
5765
5766
|
}),
|
|
5766
|
-
(g) =>
|
|
5767
|
+
(g) => a(g) || (U(g) || or(g)) && K(g)
|
|
5767
5768
|
), i = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
|
|
5768
5769
|
return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((g) => [
|
|
5769
|
-
new
|
|
5770
|
+
new at(ne(g[0], { history: g }))
|
|
5770
5771
|
]);
|
|
5771
5772
|
}
|
|
5772
5773
|
}
|
|
@@ -5788,7 +5789,7 @@ class rr {
|
|
|
5788
5789
|
r != null && r.products && (this.products = r.products.map((e) => new oe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new oe(e)));
|
|
5789
5790
|
}
|
|
5790
5791
|
}
|
|
5791
|
-
class
|
|
5792
|
+
class us extends p {
|
|
5792
5793
|
/**
|
|
5793
5794
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
5794
5795
|
*
|
|
@@ -5850,7 +5851,7 @@ class $ extends ue {
|
|
|
5850
5851
|
* первичного интереса.
|
|
5851
5852
|
*/
|
|
5852
5853
|
getChannelPrimaryInterest() {
|
|
5853
|
-
return this.getTypedDataArrayRequester(
|
|
5854
|
+
return this.getTypedDataArrayRequester(wr, "/internal/references/channel-primary-interest", !0);
|
|
5854
5855
|
}
|
|
5855
5856
|
/**
|
|
5856
5857
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
@@ -5862,26 +5863,26 @@ class $ extends ue {
|
|
|
5862
5863
|
* Возвращает {@link Promise} для получения справочника списка направлений кураторства.
|
|
5863
5864
|
*/
|
|
5864
5865
|
getCuratedDirection() {
|
|
5865
|
-
return this.getTypedDataArrayRequester(
|
|
5866
|
+
return this.getTypedDataArrayRequester(Fe, "/internal/references/curated-direction", !0);
|
|
5866
5867
|
}
|
|
5867
5868
|
/**
|
|
5868
5869
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
5869
5870
|
*/
|
|
5870
5871
|
getCurrency() {
|
|
5871
|
-
return this.getTypedDataArrayRequester(
|
|
5872
|
+
return this.getTypedDataArrayRequester(d, "/public/references/currency", !0);
|
|
5872
5873
|
}
|
|
5873
5874
|
/**
|
|
5874
5875
|
* Возвращает {@link Promise} для получения справочника данных
|
|
5875
5876
|
* групп партнеров (направлений деятельности).
|
|
5876
5877
|
*/
|
|
5877
5878
|
getPartnerGroup() {
|
|
5878
|
-
return this.getTypedDataArrayRequester(
|
|
5879
|
+
return this.getTypedDataArrayRequester(X, "/internal/references/partner-group", !0);
|
|
5879
5880
|
}
|
|
5880
5881
|
/**
|
|
5881
5882
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
5882
5883
|
*/
|
|
5883
5884
|
getOpf() {
|
|
5884
|
-
return this.getTypedDataArrayRequester(
|
|
5885
|
+
return this.getTypedDataArrayRequester(G, "/public/references/opf", !0);
|
|
5885
5886
|
}
|
|
5886
5887
|
/**
|
|
5887
5888
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
@@ -5905,13 +5906,13 @@ class $ extends ue {
|
|
|
5905
5906
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
5906
5907
|
*/
|
|
5907
5908
|
getResourceTypes() {
|
|
5908
|
-
return this.getTypedDataArrayRequester(
|
|
5909
|
+
return this.getTypedDataArrayRequester(vr, "/internal/references/resource-type", !0);
|
|
5909
5910
|
}
|
|
5910
5911
|
/**
|
|
5911
5912
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
5912
5913
|
*/
|
|
5913
5914
|
getSalesDirections() {
|
|
5914
|
-
return this.getTypedDataArrayRequester(
|
|
5915
|
+
return this.getTypedDataArrayRequester(O, "/public/references/sales-direction", !0);
|
|
5915
5916
|
}
|
|
5916
5917
|
/**
|
|
5917
5918
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
@@ -5925,7 +5926,7 @@ class $ extends ue {
|
|
|
5925
5926
|
* @param term Терм поиска.
|
|
5926
5927
|
*/
|
|
5927
5928
|
searchCity(r) {
|
|
5928
|
-
return this.getTypedDataArrayRequester(
|
|
5929
|
+
return this.getTypedDataArrayRequester(Be, `/internal/references/city-with-region-and-country/search?term=${r}`);
|
|
5929
5930
|
}
|
|
5930
5931
|
/**
|
|
5931
5932
|
* Выполняет поиск данных о регионах по терму в названии.
|
|
@@ -5941,7 +5942,7 @@ class $ extends ue {
|
|
|
5941
5942
|
* @param term Терм поиска.
|
|
5942
5943
|
*/
|
|
5943
5944
|
searchCountry(r) {
|
|
5944
|
-
return this.getTypedDataArrayRequester(
|
|
5945
|
+
return this.getTypedDataArrayRequester(Y, `/internal/references/country/search?term=${r}`);
|
|
5945
5946
|
}
|
|
5946
5947
|
/**
|
|
5947
5948
|
* Возвращает {@link Promise} для получения справочника типов доставки.
|
|
@@ -5953,19 +5954,19 @@ class $ extends ue {
|
|
|
5953
5954
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
5954
5955
|
*/
|
|
5955
5956
|
getWarehouses() {
|
|
5956
|
-
return this.getTypedDataArrayRequester(
|
|
5957
|
+
return this.getTypedDataArrayRequester(Re, "/public/references/warehouse", !0);
|
|
5957
5958
|
}
|
|
5958
5959
|
/**
|
|
5959
5960
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
5960
5961
|
*/
|
|
5961
5962
|
getPropertyTypes() {
|
|
5962
|
-
return this.getTypedDataArrayRequester(
|
|
5963
|
+
return this.getTypedDataArrayRequester(yr, "/internal/references/property-type", !0);
|
|
5963
5964
|
}
|
|
5964
5965
|
/**
|
|
5965
5966
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
5966
5967
|
*/
|
|
5967
5968
|
getPriceCoefficients() {
|
|
5968
|
-
return this.getTypedDataArrayRequester(
|
|
5969
|
+
return this.getTypedDataArrayRequester(Ce, "/internal/references/price-coefficient", !0);
|
|
5969
5970
|
}
|
|
5970
5971
|
/**
|
|
5971
5972
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
@@ -5974,8 +5975,8 @@ class $ extends ue {
|
|
|
5974
5975
|
return this.getTypedDataArrayRequester(gt, "/public/references/product-file-type", !0);
|
|
5975
5976
|
}
|
|
5976
5977
|
}
|
|
5977
|
-
const
|
|
5978
|
-
const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), h = y(void 0), f = y(void 0), g = y(void 0),
|
|
5978
|
+
const A = M("common.references_private", () => {
|
|
5979
|
+
const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), h = y(void 0), f = y(void 0), g = y(void 0), b = y(void 0), ee = y(void 0), re = y(void 0), B = y(void 0), z = y(void 0), ae = y(void 0), l = y(void 0);
|
|
5979
5980
|
return {
|
|
5980
5981
|
/**
|
|
5981
5982
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -6024,7 +6025,7 @@ const a = G("common.references_private", () => {
|
|
|
6024
6025
|
/**
|
|
6025
6026
|
* Справочник типов файлов продукктов/категорий.
|
|
6026
6027
|
*/
|
|
6027
|
-
productFileTypeReference:
|
|
6028
|
+
productFileTypeReference: b,
|
|
6028
6029
|
/**
|
|
6029
6030
|
* Справочник типов ресурсов.
|
|
6030
6031
|
*/
|
|
@@ -6036,103 +6037,103 @@ const a = G("common.references_private", () => {
|
|
|
6036
6037
|
/**
|
|
6037
6038
|
* Справочник источников первичного интереса.
|
|
6038
6039
|
*/
|
|
6039
|
-
sourcePrimaryInterestReference:
|
|
6040
|
+
sourcePrimaryInterestReference: B,
|
|
6040
6041
|
/**
|
|
6041
6042
|
* Справочник складов.
|
|
6042
6043
|
*/
|
|
6043
|
-
warehousesReference:
|
|
6044
|
+
warehousesReference: z,
|
|
6044
6045
|
/**
|
|
6045
6046
|
* Справочник типов свойств.
|
|
6046
6047
|
*/
|
|
6047
|
-
propertyTypesReference:
|
|
6048
|
+
propertyTypesReference: ae,
|
|
6048
6049
|
/**
|
|
6049
6050
|
* Справочник коэффициентов цен.
|
|
6050
6051
|
*/
|
|
6051
6052
|
priceCoefficientsReference: l
|
|
6052
6053
|
};
|
|
6053
|
-
}),
|
|
6054
|
+
}), ps = M("common.references", () => {
|
|
6054
6055
|
const n = D(() => {
|
|
6055
|
-
const l =
|
|
6056
|
+
const l = A();
|
|
6056
6057
|
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance($).getChannelPrimaryInterest().then((m) => {
|
|
6057
6058
|
l.channelPrimaryInterestReference = m;
|
|
6058
6059
|
}).catch(w)), l.channelPrimaryInterestReference;
|
|
6059
6060
|
}), r = D(() => {
|
|
6060
|
-
const l =
|
|
6061
|
+
const l = A();
|
|
6061
6062
|
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance($).getContactPositions().then((m) => {
|
|
6062
6063
|
l.contactPositionsReference = m;
|
|
6063
6064
|
}).catch(w)), l.contactPositionsReference;
|
|
6064
6065
|
}), e = D(() => {
|
|
6065
|
-
const l =
|
|
6066
|
+
const l = A();
|
|
6066
6067
|
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance($).getCurrency().then((m) => {
|
|
6067
6068
|
l.currencyReference = m;
|
|
6068
6069
|
}).catch(w)), l.currencyReference;
|
|
6069
6070
|
}), s = D(() => {
|
|
6070
|
-
const l =
|
|
6071
|
+
const l = A();
|
|
6071
6072
|
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance($).getOpf().then((m) => {
|
|
6072
6073
|
l.opfReference = m;
|
|
6073
6074
|
}).catch(w)), l.opfReference;
|
|
6074
6075
|
}), i = D(() => {
|
|
6075
|
-
const l =
|
|
6076
|
+
const l = A();
|
|
6076
6077
|
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance($).getOrderPaymentStatuses().then((m) => {
|
|
6077
6078
|
l.orderPaymentStatusReference = m;
|
|
6078
6079
|
}).catch(w)), l.orderPaymentStatusReference;
|
|
6079
6080
|
}), o = D(() => {
|
|
6080
|
-
const l =
|
|
6081
|
+
const l = A();
|
|
6081
6082
|
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance($).getOrderStatuses().then((m) => {
|
|
6082
6083
|
l.orderStatusReference = m;
|
|
6083
6084
|
}).catch(w)), l.orderStatusReference;
|
|
6084
6085
|
}), c = D(() => {
|
|
6085
|
-
const l =
|
|
6086
|
+
const l = A();
|
|
6086
6087
|
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance($).getPaymentTypes().then((m) => {
|
|
6087
6088
|
l.paymentTypeReference = m;
|
|
6088
6089
|
}).catch(w)), l.paymentTypeReference;
|
|
6089
6090
|
}), u = D(() => {
|
|
6090
|
-
const l =
|
|
6091
|
+
const l = A();
|
|
6091
6092
|
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance($).getPartnerGroup().then((m) => {
|
|
6092
6093
|
l.partnerGroupReference = m;
|
|
6093
6094
|
}).catch(w)), l.partnerGroupReference;
|
|
6094
6095
|
}), h = D(() => {
|
|
6095
|
-
const l =
|
|
6096
|
+
const l = A();
|
|
6096
6097
|
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance($).getProductFileType().then((m) => {
|
|
6097
6098
|
l.productFileTypeReference = m;
|
|
6098
6099
|
}).catch(w)), l.productFileTypeReference;
|
|
6099
6100
|
}), f = D(() => {
|
|
6100
|
-
const l =
|
|
6101
|
+
const l = A();
|
|
6101
6102
|
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance($).getResourceTypes().then((m) => {
|
|
6102
6103
|
l.resourceTypesReference = m;
|
|
6103
6104
|
}).catch(w)), l.resourceTypesReference;
|
|
6104
6105
|
}), g = D(() => {
|
|
6105
|
-
const l =
|
|
6106
|
+
const l = A();
|
|
6106
6107
|
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance($).getSalesDirections().then((m) => {
|
|
6107
6108
|
l.salesDirectionsReference = m;
|
|
6108
6109
|
}).catch(w)), l.salesDirectionsReference;
|
|
6109
|
-
}),
|
|
6110
|
-
const l =
|
|
6110
|
+
}), b = D(() => {
|
|
6111
|
+
const l = A();
|
|
6111
6112
|
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance($).getSourcePrimaryInterest().then((m) => {
|
|
6112
6113
|
l.sourcePrimaryInterestReference = m;
|
|
6113
6114
|
}).catch(w)), l.sourcePrimaryInterestReference;
|
|
6114
6115
|
}), ee = D(() => {
|
|
6115
|
-
const l =
|
|
6116
|
+
const l = A();
|
|
6116
6117
|
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance($).getDeliveryTypes().then((m) => {
|
|
6117
6118
|
l.deliveryTypeReference = m;
|
|
6118
6119
|
}).catch(w)), l.deliveryTypeReference;
|
|
6119
6120
|
}), re = D(() => {
|
|
6120
|
-
const l =
|
|
6121
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(
|
|
6121
|
+
const l = A();
|
|
6122
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(Rt).getManagers().then((m) => {
|
|
6122
6123
|
l.managersList = m;
|
|
6123
6124
|
}).catch(w)), l.managersList;
|
|
6124
|
-
}),
|
|
6125
|
-
const l =
|
|
6125
|
+
}), B = D(() => {
|
|
6126
|
+
const l = A();
|
|
6126
6127
|
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance($).getWarehouses().then((m) => {
|
|
6127
6128
|
l.warehousesReference = m;
|
|
6128
6129
|
}).catch(w)), l.warehousesReference;
|
|
6129
|
-
}),
|
|
6130
|
-
const l =
|
|
6130
|
+
}), z = D(() => {
|
|
6131
|
+
const l = A();
|
|
6131
6132
|
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance($).getPropertyTypes().then((m) => {
|
|
6132
6133
|
l.propertyTypesReference = m;
|
|
6133
6134
|
}).catch(w)), l.propertyTypesReference;
|
|
6134
|
-
}),
|
|
6135
|
-
const l =
|
|
6135
|
+
}), ae = D(() => {
|
|
6136
|
+
const l = A();
|
|
6136
6137
|
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance($).getPriceCoefficients().then((m) => {
|
|
6137
6138
|
l.priceCoefficientsReference = m;
|
|
6138
6139
|
}).catch(w)), l.priceCoefficientsReference;
|
|
@@ -6185,7 +6186,7 @@ const a = G("common.references_private", () => {
|
|
|
6185
6186
|
/**
|
|
6186
6187
|
* Справочник каналов первичного интереса.
|
|
6187
6188
|
*/
|
|
6188
|
-
sourcePrimaryInterestsReference:
|
|
6189
|
+
sourcePrimaryInterestsReference: b,
|
|
6189
6190
|
/**
|
|
6190
6191
|
* Справочник типов доставки.
|
|
6191
6192
|
*/
|
|
@@ -6197,15 +6198,15 @@ const a = G("common.references_private", () => {
|
|
|
6197
6198
|
/**
|
|
6198
6199
|
* Справочник складов.
|
|
6199
6200
|
*/
|
|
6200
|
-
warehousesReference:
|
|
6201
|
+
warehousesReference: B,
|
|
6201
6202
|
/**
|
|
6202
6203
|
* Справочник типов свойств.
|
|
6203
6204
|
*/
|
|
6204
|
-
propertyTypesReference:
|
|
6205
|
+
propertyTypesReference: z,
|
|
6205
6206
|
/**
|
|
6206
6207
|
* Справочник коэффициентов цен.
|
|
6207
6208
|
*/
|
|
6208
|
-
priceCoefficientsReference:
|
|
6209
|
+
priceCoefficientsReference: ae
|
|
6209
6210
|
};
|
|
6210
6211
|
});
|
|
6211
6212
|
class At {
|
|
@@ -6262,10 +6263,10 @@ class tr {
|
|
|
6262
6263
|
*/
|
|
6263
6264
|
t(this, "meta");
|
|
6264
6265
|
var e;
|
|
6265
|
-
this.resourceType = new
|
|
6266
|
+
this.resourceType = new vr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new At(s))) ?? [];
|
|
6266
6267
|
}
|
|
6267
6268
|
}
|
|
6268
|
-
class
|
|
6269
|
+
class hs extends p {
|
|
6269
6270
|
/**
|
|
6270
6271
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
6271
6272
|
*
|
|
@@ -6296,7 +6297,7 @@ class us extends p {
|
|
|
6296
6297
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
6297
6298
|
}
|
|
6298
6299
|
}
|
|
6299
|
-
class
|
|
6300
|
+
class gs extends p {
|
|
6300
6301
|
/**
|
|
6301
6302
|
* Возвращает подсказки по адресам.
|
|
6302
6303
|
*
|
|
@@ -6343,8 +6344,8 @@ class ps extends p {
|
|
|
6343
6344
|
});
|
|
6344
6345
|
}
|
|
6345
6346
|
}
|
|
6346
|
-
var
|
|
6347
|
-
class
|
|
6347
|
+
var $t = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))($t || {});
|
|
6348
|
+
class Tt extends fr {
|
|
6348
6349
|
/**
|
|
6349
6350
|
* Инициализирует экземпляр класса {@link User}.
|
|
6350
6351
|
*
|
|
@@ -6367,7 +6368,7 @@ class $t extends mr {
|
|
|
6367
6368
|
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;
|
|
6368
6369
|
}
|
|
6369
6370
|
}
|
|
6370
|
-
class
|
|
6371
|
+
class ms extends p {
|
|
6371
6372
|
/**
|
|
6372
6373
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
6373
6374
|
*/
|
|
@@ -6383,16 +6384,16 @@ class hs extends p {
|
|
|
6383
6384
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
6384
6385
|
}
|
|
6385
6386
|
}
|
|
6386
|
-
class
|
|
6387
|
+
class bt extends p {
|
|
6387
6388
|
/**
|
|
6388
6389
|
* Возвращает данные о текущем пользователе.
|
|
6389
6390
|
*/
|
|
6390
6391
|
// eslint-disable-next-line class-methods-use-this
|
|
6391
6392
|
getCurrentUser() {
|
|
6392
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
6393
|
+
return this.get("/internal/users/info", {}, (r) => new Tt(r.data), !0);
|
|
6393
6394
|
}
|
|
6394
6395
|
}
|
|
6395
|
-
const
|
|
6396
|
+
const St = M("common.user_state_private", () => {
|
|
6396
6397
|
const n = y({}), r = y(void 0);
|
|
6397
6398
|
return {
|
|
6398
6399
|
/**
|
|
@@ -6404,20 +6405,20 @@ const bt = G("common.user_state_private", () => {
|
|
|
6404
6405
|
*/
|
|
6405
6406
|
currentUser: r
|
|
6406
6407
|
};
|
|
6407
|
-
}),
|
|
6408
|
+
}), fs = M("common.user_state", () => ({
|
|
6408
6409
|
/**
|
|
6409
6410
|
* Данные о текущем пользователе.
|
|
6410
6411
|
*/
|
|
6411
6412
|
currentUser: D(() => {
|
|
6412
|
-
const r =
|
|
6413
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(
|
|
6413
|
+
const r = St();
|
|
6414
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(bt).getCurrentUser().then((e) => {
|
|
6414
6415
|
r.currentUser = e;
|
|
6415
6416
|
}).catch(w).finally(() => {
|
|
6416
6417
|
r.dataLoaderList.currentUser = !1;
|
|
6417
6418
|
})), r.currentUser;
|
|
6418
6419
|
})
|
|
6419
6420
|
}));
|
|
6420
|
-
class
|
|
6421
|
+
class ys {
|
|
6421
6422
|
/**
|
|
6422
6423
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
6423
6424
|
*
|
|
@@ -6442,152 +6443,152 @@ class ms {
|
|
|
6442
6443
|
}
|
|
6443
6444
|
export {
|
|
6444
6445
|
ct as AnyReference,
|
|
6445
|
-
|
|
6446
|
-
|
|
6446
|
+
Kr as AppBaseConfig,
|
|
6447
|
+
_e as BankAccount,
|
|
6447
6448
|
De as BasePaginationProvider,
|
|
6448
|
-
|
|
6449
|
+
tt as CalculationTypeEnum,
|
|
6449
6450
|
me as Cart,
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
Ht as CatalogProvider,
|
|
6454
|
-
cr as CatalogableItem,
|
|
6451
|
+
Ht as CartProvider,
|
|
6452
|
+
Gt as CatalogProvider,
|
|
6453
|
+
lr as CatalogableItem,
|
|
6455
6454
|
x as Category,
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6455
|
+
Ke as CategoryPricingRule,
|
|
6456
|
+
wr as ChannelPrimaryInterest,
|
|
6457
|
+
Yt as City,
|
|
6458
|
+
Be as CityWithRegionAndCountry,
|
|
6459
|
+
Ze as Client,
|
|
6461
6460
|
wt as ClientAdditionalData,
|
|
6462
6461
|
ye as ClientCategory,
|
|
6463
6462
|
I as ClientDataProvider,
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6463
|
+
Ft as ClientPriceProvider,
|
|
6464
|
+
Mt as ClientPriceTemplateProvider,
|
|
6465
|
+
j as ClientProduct,
|
|
6466
|
+
Wt as ClientProductCategoryDataProvider,
|
|
6467
|
+
Jt as ClientProductDataProvider,
|
|
6469
6468
|
ge as ClientShortInfo,
|
|
6470
6469
|
ot as ClientsAdditionalDataRequestTypeEnum,
|
|
6471
|
-
|
|
6470
|
+
Xt as ClientsListFilters,
|
|
6472
6471
|
oe as CodedIdentity,
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6472
|
+
ss as ConfiguratorProvider,
|
|
6473
|
+
Ct as ConfiguratorsEnum,
|
|
6474
|
+
qe as Contact,
|
|
6475
|
+
gr as ContactLinks,
|
|
6476
|
+
F as ContactPerson,
|
|
6477
6477
|
yt as ContactPersonRelated,
|
|
6478
6478
|
lt as ContactPosition,
|
|
6479
6479
|
be as ContactRelation,
|
|
6480
|
-
|
|
6480
|
+
Rr as ContragentBase,
|
|
6481
6481
|
we as ContragentFactory,
|
|
6482
6482
|
Pr as ContragentIc,
|
|
6483
6483
|
mt as ContragentPerson,
|
|
6484
6484
|
ft as ContragentUlNr,
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6485
|
+
Dr as ContragentUlR,
|
|
6486
|
+
je as CostSourceEnum,
|
|
6487
|
+
Y as Country,
|
|
6488
|
+
Fe as CuratedDirection,
|
|
6489
|
+
Me as Curator,
|
|
6490
|
+
d as Currency,
|
|
6491
|
+
gs as DataSuggestionProvider,
|
|
6492
|
+
Zt as DataTablePagination,
|
|
6493
|
+
vt as DataTablePaginationRequestParams,
|
|
6494
|
+
es as DataTableSortRequestParams,
|
|
6495
|
+
is as DateTimeProvider,
|
|
6496
6496
|
Qr as DeletableNamedIdentity,
|
|
6497
|
-
|
|
6497
|
+
ve as DeliveryAddress,
|
|
6498
6498
|
Q as DeliveryType,
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6499
|
+
Nt as DetailedJwtPayload,
|
|
6500
|
+
Wr as DeviceTypeResolutionConfig,
|
|
6501
|
+
Zr as DiscountShortInfo,
|
|
6502
|
+
ys as FieldValidationResultData,
|
|
6503
6503
|
le as FilterGroup,
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6504
|
+
Qe as FilterItem,
|
|
6505
|
+
ze as FilterOpEnum,
|
|
6506
|
+
pr as GeoCoordinates,
|
|
6507
6507
|
Xr as HiddenCatalogableItem,
|
|
6508
6508
|
ue as HttpCachedRequester,
|
|
6509
|
-
|
|
6509
|
+
Jr as HttpParamsConfig,
|
|
6510
6510
|
p as HttpRequester,
|
|
6511
|
-
|
|
6511
|
+
Z as Identity,
|
|
6512
6512
|
Yr as Image,
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6513
|
+
H as JwtPayload,
|
|
6514
|
+
Pe as Manager,
|
|
6515
|
+
Ge as ManagerCommon,
|
|
6516
|
+
ns as ManagerDataFactory,
|
|
6517
|
+
Rt as ManagerDataProvider,
|
|
6518
6518
|
At as MetaTagItem,
|
|
6519
6519
|
T as NamedIdentity,
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6520
|
+
G as Opf,
|
|
6521
|
+
_ as OpfEnum,
|
|
6522
|
+
Se as Order,
|
|
6523
|
+
$r as OrderInfo,
|
|
6524
|
+
Pt as OrderItem,
|
|
6525
|
+
hr as OrderItemBase,
|
|
6524
6526
|
ut as OrderPaymentStatus,
|
|
6525
|
-
|
|
6526
|
-
Dr as OrderShortInfo,
|
|
6527
|
+
ar as OrderShortInfo,
|
|
6527
6528
|
pt as OrderStatus,
|
|
6528
|
-
|
|
6529
|
-
|
|
6529
|
+
os as OrdersDataProvider,
|
|
6530
|
+
X as PartnerGroup,
|
|
6530
6531
|
ht as PaymentType,
|
|
6531
6532
|
fe as PreferencesStorageProvider,
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6533
|
+
ke as PriceAnalyze,
|
|
6534
|
+
cs as PriceAnalyzeProvider,
|
|
6535
|
+
Ce as PriceCoefficient,
|
|
6536
|
+
ur as PriceCoefficientEnum,
|
|
6537
|
+
ls as PriceHistoryDataProvider,
|
|
6538
|
+
Dt as PriceHistoryItem,
|
|
6539
|
+
E as PriceTemplate,
|
|
6539
6540
|
$e as PriceTemplateCategory,
|
|
6540
6541
|
te as PriceTemplateClient,
|
|
6541
|
-
|
|
6542
|
+
mr as PriceTemplateICatalogableItem,
|
|
6542
6543
|
Te as PriceTemplateProduct,
|
|
6543
|
-
|
|
6544
|
+
Et as PriceTemplateProvider,
|
|
6544
6545
|
ie as PricingRole,
|
|
6545
|
-
|
|
6546
|
+
Vt as PricingRoleProvider,
|
|
6546
6547
|
xe as PrimaryCatalogableItem,
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6548
|
+
S as Product,
|
|
6549
|
+
Bt as ProductCategoryDataProvider,
|
|
6550
|
+
zt as ProductDataProvider,
|
|
6550
6551
|
gt as ProductFileType,
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6552
|
+
He as ProductPriceCoefficient,
|
|
6553
|
+
at as ProductPriceHistory,
|
|
6554
|
+
Ve as ProductUnit,
|
|
6555
|
+
Kt as PropertiesProvider,
|
|
6555
6556
|
se as Property,
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6557
|
+
yr as PropertyType,
|
|
6558
|
+
st as PropertyTypeEnum,
|
|
6559
|
+
J as PropertyValue,
|
|
6560
|
+
us as RecommendationsDataProvider,
|
|
6560
6561
|
rr as RecommendationsList,
|
|
6561
|
-
|
|
6562
|
+
P as Reference,
|
|
6562
6563
|
$ as ReferenceDataProvider,
|
|
6563
6564
|
ce as Region,
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6565
|
+
vr as ResourceType,
|
|
6566
|
+
O as SalesDirection,
|
|
6567
|
+
Er as SentryConfig,
|
|
6567
6568
|
tr as Seo,
|
|
6568
|
-
|
|
6569
|
+
hs as SeoDataProvider,
|
|
6569
6570
|
Cr as SourcePrimaryInterest,
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6571
|
+
et as StockCount,
|
|
6572
|
+
Qt as TemplateProductCategoryDataProvider,
|
|
6573
|
+
jt as TemplatesListFilters,
|
|
6573
6574
|
Ue as TypedInstanceFactory,
|
|
6574
6575
|
Ar as UnitsHelper,
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6576
|
+
rs as UnknownClientDataProvider,
|
|
6577
|
+
cr as UpdatableNamedIdentity,
|
|
6578
|
+
Tt as User,
|
|
6579
|
+
ms as UserAuthDataProvider,
|
|
6580
|
+
fr as UserCommonInfo,
|
|
6581
|
+
bt as UserDataProvider,
|
|
6581
6582
|
it as UserPricingRole,
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6583
|
+
q as UserShortInfo,
|
|
6584
|
+
$t as UserTypeEnum,
|
|
6585
|
+
ts as VersionConfig,
|
|
6586
|
+
Re as Warehouse,
|
|
6587
|
+
Vr as WebSocketConfig,
|
|
6588
|
+
Ye as findCatalogItemByIdRecursive,
|
|
6589
|
+
Xe as flattenCatalogItems,
|
|
6590
|
+
Ae as useAuthStateStore,
|
|
6590
6591
|
k as useBaseConfigStateStore,
|
|
6591
|
-
|
|
6592
|
-
|
|
6592
|
+
ps as useReferencesStore,
|
|
6593
|
+
fs as useUserStateStore
|
|
6593
6594
|
};
|