@snabcentr/common-lib 1.89.3 → 2.1.0-dev
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 +707 -599
- 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/interfaces/i-order-item-base.d.ts +18 -2
- package/dist/src/cart/interfaces/i-order-item-base.d.ts.map +1 -1
- package/dist/src/orders/classes/index.d.ts +1 -0
- package/dist/src/orders/classes/index.d.ts.map +1 -1
- package/dist/src/orders/classes/order-info.d.ts +6 -4
- package/dist/src/orders/classes/order-info.d.ts.map +1 -1
- package/dist/src/orders/classes/order-item-base.d.ts +17 -1
- package/dist/src/orders/classes/order-item-base.d.ts.map +1 -1
- package/dist/src/orders/classes/order-short-info.d.ts +0 -4
- package/dist/src/orders/classes/order-short-info.d.ts.map +1 -1
- package/dist/src/orders/classes/order-status-history-info.d.ts +32 -0
- package/dist/src/orders/classes/order-status-history-info.d.ts.map +1 -0
- package/dist/src/orders/classes/order.d.ts +13 -0
- package/dist/src/orders/classes/order.d.ts.map +1 -1
- package/dist/src/orders/classes/orders-list-filters.d.ts +5 -8
- package/dist/src/orders/classes/orders-list-filters.d.ts.map +1 -1
- package/dist/src/orders/interfaces/i-order-info.d.ts +9 -7
- package/dist/src/orders/interfaces/i-order-info.d.ts.map +1 -1
- package/dist/src/orders/interfaces/i-order-item-base.d.ts +18 -2
- package/dist/src/orders/interfaces/i-order-item-base.d.ts.map +1 -1
- package/dist/src/orders/interfaces/i-order-short-info.d.ts +0 -4
- package/dist/src/orders/interfaces/i-order-short-info.d.ts.map +1 -1
- package/dist/src/orders/interfaces/i-order-status-history-info.d.ts +25 -0
- package/dist/src/orders/interfaces/i-order-status-history-info.d.ts.map +1 -0
- package/dist/src/orders/interfaces/i-order.d.ts +13 -0
- package/dist/src/orders/interfaces/i-order.d.ts.map +1 -1
- package/dist/src/orders/interfaces/i-orders-list-filters.d.ts +6 -9
- package/dist/src/orders/interfaces/i-orders-list-filters.d.ts.map +1 -1
- package/dist/src/orders/interfaces/index.d.ts +1 -0
- package/dist/src/orders/interfaces/index.d.ts.map +1 -1
- package/dist/src/orders/providers/orders-data-provider.d.ts +45 -0
- package/dist/src/orders/providers/orders-data-provider.d.ts.map +1 -1
- package/dist/visual_stats.html +4949 -0
- package/package.json +1 -1
- package/dist/release_notes.tmp +0 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var Lr = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var t = (n, r, e) =>
|
|
4
|
-
import { jwtDecode as
|
|
5
|
-
import { merge as
|
|
6
|
-
import { objectToCamel as
|
|
2
|
+
var xr = (n, r, e) => r in n ? Lr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var t = (n, r, e) => xr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jwtDecode as nr } from "jwt-decode";
|
|
5
|
+
import { merge as ue, isNil as T, isEmpty as X, noop as v, mapValues as or, isArray as H, every as dr, split as Or, isString as C, constant as _r, toUpper as qr, cloneDeep as Nr, toLower as Ur, isFunction as He, map as me, forEach as Hr, isDate as Oe, omitBy as cr, isObject as lr } from "lodash-es";
|
|
6
|
+
import { objectToCamel as Fe, objectToSnake as Ee } from "ts-case-convert";
|
|
7
7
|
import { defineStore as z } from "pinia";
|
|
8
|
-
import { ref as y, markRaw as
|
|
9
|
-
import { isAfter as
|
|
10
|
-
import
|
|
8
|
+
import { ref as y, markRaw as Fr, computed as D } from "vue";
|
|
9
|
+
import { isAfter as Ve, parseISO as R, startOfToday as _e, format as U, addSeconds as jr, addBusinessDays as Gr, endOfTomorrow as Mr, startOfTomorrow as Br, endOfYesterday as zr, startOfYesterday as Wr, endOfToday as Jr, endOfDay as Er, startOfDay as Vr } from "date-fns";
|
|
10
|
+
import Kr, { CanceledError as Qr } from "axios";
|
|
11
11
|
class F {
|
|
12
12
|
/**
|
|
13
13
|
* Инициализирует экземпляр класса {@link JwtPayload}.
|
|
@@ -99,7 +99,7 @@ class F {
|
|
|
99
99
|
* @inheritDoc
|
|
100
100
|
*/
|
|
101
101
|
t(this, "email", "");
|
|
102
|
-
|
|
102
|
+
ue(this, r);
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* Возвращает данные полезной нагрузки для указанного JWT-токена.
|
|
@@ -107,11 +107,11 @@ class F {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
const e =
|
|
110
|
+
const e = nr(r), s = new F(Fe(e));
|
|
111
111
|
return s.resourceAccess = e.resource_access, s;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class Mt extends F {
|
|
115
115
|
/**
|
|
116
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
117
117
|
*
|
|
@@ -143,7 +143,7 @@ class Gt extends F {
|
|
|
143
143
|
* @inheritDoc
|
|
144
144
|
*/
|
|
145
145
|
t(this, "address");
|
|
146
|
-
|
|
146
|
+
ue(this, e);
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
149
|
* Возвращает данные полезной нагрузки для указанного JWT-токена.
|
|
@@ -151,10 +151,10 @@ class Gt extends F {
|
|
|
151
151
|
* @param jwtToken JWT-ключ доступа.
|
|
152
152
|
*/
|
|
153
153
|
static getJwtPayload(e) {
|
|
154
|
-
return new F(
|
|
154
|
+
return new F(Fe(nr(e)));
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
class
|
|
157
|
+
class Yr {
|
|
158
158
|
/**
|
|
159
159
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
160
160
|
*
|
|
@@ -176,7 +176,7 @@ class Qr {
|
|
|
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 Xr {
|
|
180
180
|
/**
|
|
181
181
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
182
182
|
*
|
|
@@ -198,7 +198,7 @@ class Yr {
|
|
|
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 Zr {
|
|
202
202
|
/**
|
|
203
203
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
204
204
|
*
|
|
@@ -243,7 +243,7 @@ class Xr {
|
|
|
243
243
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
class
|
|
246
|
+
class et {
|
|
247
247
|
/**
|
|
248
248
|
* Инициализирует экземпляр класса {@link WebSocketConfig}.
|
|
249
249
|
*
|
|
@@ -282,7 +282,7 @@ class Zr {
|
|
|
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 rt {
|
|
286
286
|
/**
|
|
287
287
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
288
288
|
*
|
|
@@ -326,18 +326,18 @@ class et {
|
|
|
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 Xr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Yr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Zr({
|
|
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 et(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
|
|
340
|
-
const n = y(new
|
|
339
|
+
const I = z("common.config", () => {
|
|
340
|
+
const n = y(new rt());
|
|
341
341
|
return {
|
|
342
342
|
/**
|
|
343
343
|
* Конфигурационные данные приложения.
|
|
@@ -355,11 +355,11 @@ const L = z("common.config", () => {
|
|
|
355
355
|
* @param appConfig Конфигурация приложения.
|
|
356
356
|
*/
|
|
357
357
|
setConfig: (s) => {
|
|
358
|
-
n.value =
|
|
358
|
+
n.value = ue(n.value, s);
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
});
|
|
362
|
-
class
|
|
362
|
+
class we {
|
|
363
363
|
/**
|
|
364
364
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
365
365
|
*
|
|
@@ -378,8 +378,8 @@ class ye {
|
|
|
378
378
|
if (e)
|
|
379
379
|
try {
|
|
380
380
|
const s = JSON.parse(e);
|
|
381
|
-
if (!s.availableFor ||
|
|
382
|
-
if (T(s.data) ||
|
|
381
|
+
if (!s.availableFor || Ve(R(s.availableFor) || _e(), /* @__PURE__ */ new Date())) {
|
|
382
|
+
if (T(s.data) || X(s.data))
|
|
383
383
|
throw new Error("Data is empty");
|
|
384
384
|
return s.data;
|
|
385
385
|
}
|
|
@@ -401,7 +401,7 @@ class ye {
|
|
|
401
401
|
static saveActualDataToStorage(r, e, s) {
|
|
402
402
|
if (this.isLocalStorageAvailable())
|
|
403
403
|
try {
|
|
404
|
-
if (T(e) ||
|
|
404
|
+
if (T(e) || X(e))
|
|
405
405
|
throw new Error("Data is empty");
|
|
406
406
|
const i = JSON.stringify({
|
|
407
407
|
availableFor: s,
|
|
@@ -452,7 +452,7 @@ class ye {
|
|
|
452
452
|
const i = localStorage.getItem(s);
|
|
453
453
|
if (i) {
|
|
454
454
|
const o = JSON.parse(i);
|
|
455
|
-
o.availableFor && !
|
|
455
|
+
o.availableFor && !Ve(R(o.availableFor) || _e(), /* @__PURE__ */ new Date()) && r.push(s);
|
|
456
456
|
}
|
|
457
457
|
} catch {
|
|
458
458
|
r.push(s);
|
|
@@ -468,7 +468,7 @@ class ye {
|
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Ke(n) {
|
|
472
472
|
try {
|
|
473
473
|
const r = F.getJwtPayload(n);
|
|
474
474
|
return new Date(r.exp * 1e3);
|
|
@@ -480,21 +480,21 @@ const E = z("common.auth_state_private", () => {
|
|
|
480
480
|
const n = y(
|
|
481
481
|
(() => {
|
|
482
482
|
var u;
|
|
483
|
-
const o =
|
|
483
|
+
const o = we.getActualDataFromStorage(
|
|
484
484
|
"sc.token"
|
|
485
485
|
/* JwtToken */
|
|
486
486
|
);
|
|
487
487
|
if (o)
|
|
488
488
|
return Promise.resolve(o);
|
|
489
|
-
const c = (u =
|
|
489
|
+
const c = (u = I().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 = Fr(/* @__PURE__ */ new Map());
|
|
493
493
|
function i() {
|
|
494
494
|
e.value = void 0, T(n.value) || n.value.then((o) => {
|
|
495
495
|
const c = F.getJwtPayload(o);
|
|
496
|
-
e.value = c.exp * 1e3 > Date.now() ?
|
|
497
|
-
}).catch(
|
|
496
|
+
e.value = c.exp * 1e3 > Date.now() ? or(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
|
|
497
|
+
}).catch(v);
|
|
498
498
|
}
|
|
499
499
|
return {
|
|
500
500
|
/**
|
|
@@ -518,14 +518,14 @@ const E = z("common.auth_state_private", () => {
|
|
|
518
518
|
*/
|
|
519
519
|
recalculateUserPermissions: i
|
|
520
520
|
};
|
|
521
|
-
}),
|
|
522
|
-
const n =
|
|
521
|
+
}), Se = z("common.auth_state", () => {
|
|
522
|
+
const n = D(() => {
|
|
523
523
|
const o = E();
|
|
524
524
|
if (T(o.jwtToken) && !T(o.jwtTokenUpdater)) {
|
|
525
525
|
const c = o.jwtTokenUpdater();
|
|
526
526
|
o.jwtToken = c, c.then((u) => {
|
|
527
|
-
o.jwtToken = Promise.resolve(u),
|
|
528
|
-
}).catch(
|
|
527
|
+
o.jwtToken = Promise.resolve(u), we.saveActualDataToStorage("sc.token", u, Ke(u)), o.recalculateUserPermissions();
|
|
528
|
+
}).catch(v);
|
|
529
529
|
}
|
|
530
530
|
return o.jwtToken;
|
|
531
531
|
});
|
|
@@ -534,29 +534,29 @@ const E = z("common.auth_state_private", () => {
|
|
|
534
534
|
}
|
|
535
535
|
function e(o) {
|
|
536
536
|
const c = E();
|
|
537
|
-
c.jwtToken = Promise.resolve(o),
|
|
537
|
+
c.jwtToken = Promise.resolve(o), we.saveActualDataToStorage("sc.token", o, Ke(o)), c.recalculateUserPermissions();
|
|
538
538
|
}
|
|
539
539
|
function s() {
|
|
540
540
|
const o = E();
|
|
541
|
-
o.jwtToken = void 0, o.userPermissions = void 0,
|
|
541
|
+
o.jwtToken = void 0, o.userPermissions = void 0, we.saveActualDataToStorage("sc.token", void 0);
|
|
542
542
|
}
|
|
543
543
|
function i(o) {
|
|
544
544
|
const c = E();
|
|
545
545
|
!T(c.jwtToken) && T(c.userPermissions) && c.jwtToken.then((m) => {
|
|
546
546
|
const f = F.getJwtPayload(m);
|
|
547
|
-
c.userPermissions = f.exp * 1e3 > Date.now() ?
|
|
548
|
-
}).catch(
|
|
547
|
+
c.userPermissions = f.exp * 1e3 > Date.now() ? or(f.resourceAccess, (A) => (A == null ? void 0 : A.roles) ?? []) : void 0;
|
|
548
|
+
}).catch(v);
|
|
549
549
|
const u = H(o) ? o.join(" && ") : o;
|
|
550
550
|
if (c.userPermissionsComputedRefs.has(u))
|
|
551
551
|
return c.userPermissionsComputedRefs.get(u);
|
|
552
|
-
const h =
|
|
552
|
+
const h = D(() => {
|
|
553
553
|
const m = (f) => {
|
|
554
554
|
var J;
|
|
555
|
-
const
|
|
556
|
-
if (
|
|
555
|
+
const A = Or(f, ".");
|
|
556
|
+
if (A.length < 2)
|
|
557
557
|
return !1;
|
|
558
|
-
const [
|
|
559
|
-
return H(W) && W.includes(
|
|
558
|
+
const [ie, ne] = A, W = (J = E().userPermissions) == null ? void 0 : J[ie];
|
|
559
|
+
return H(W) && W.includes(ne);
|
|
560
560
|
};
|
|
561
561
|
return H(o) ? dr(o, (f) => m(f)) : m(o);
|
|
562
562
|
});
|
|
@@ -591,7 +591,7 @@ const E = z("common.auth_state_private", () => {
|
|
|
591
591
|
hasUserPermission: i
|
|
592
592
|
};
|
|
593
593
|
});
|
|
594
|
-
class
|
|
594
|
+
class te {
|
|
595
595
|
/**
|
|
596
596
|
* Инициализирует экземпляр класса {@link Identity}.
|
|
597
597
|
*
|
|
@@ -616,7 +616,7 @@ class re {
|
|
|
616
616
|
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : T(this.id);
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
class
|
|
619
|
+
class b extends te {
|
|
620
620
|
/**
|
|
621
621
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
622
622
|
*
|
|
@@ -631,7 +631,7 @@ class k extends re {
|
|
|
631
631
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
class
|
|
634
|
+
class pe extends b {
|
|
635
635
|
/**
|
|
636
636
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
637
637
|
*
|
|
@@ -646,7 +646,7 @@ class ue extends k {
|
|
|
646
646
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
class
|
|
649
|
+
class w extends b {
|
|
650
650
|
/**
|
|
651
651
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
652
652
|
*
|
|
@@ -665,7 +665,7 @@ class R extends k {
|
|
|
665
665
|
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
class
|
|
668
|
+
class ur extends b {
|
|
669
669
|
/**
|
|
670
670
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
671
671
|
*
|
|
@@ -677,10 +677,10 @@ class lr extends k {
|
|
|
677
677
|
* Дата и время последнего изменения.
|
|
678
678
|
*/
|
|
679
679
|
t(this, "updatedAt");
|
|
680
|
-
this.updatedAt =
|
|
680
|
+
this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? R(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
class
|
|
683
|
+
class tt extends ur {
|
|
684
684
|
/**
|
|
685
685
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
686
686
|
*
|
|
@@ -692,10 +692,10 @@ class rt extends lr {
|
|
|
692
692
|
* Дата и время последнего удаления.
|
|
693
693
|
*/
|
|
694
694
|
t(this, "deletedAt");
|
|
695
|
-
this.deletedAt =
|
|
695
|
+
this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
class
|
|
698
|
+
class st {
|
|
699
699
|
/**
|
|
700
700
|
* Инициализирует экземпляр класса {@link Image}.
|
|
701
701
|
*
|
|
@@ -718,7 +718,7 @@ class tt {
|
|
|
718
718
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
|
-
class
|
|
721
|
+
class pr extends pe {
|
|
722
722
|
/**
|
|
723
723
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
724
724
|
*
|
|
@@ -737,7 +737,7 @@ class ur extends ue {
|
|
|
737
737
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
class
|
|
740
|
+
class it extends pr {
|
|
741
741
|
/**
|
|
742
742
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
743
743
|
*
|
|
@@ -752,7 +752,7 @@ class st extends ur {
|
|
|
752
752
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
-
class
|
|
755
|
+
class qe extends pr {
|
|
756
756
|
/**
|
|
757
757
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
758
758
|
*
|
|
@@ -767,7 +767,7 @@ class _e extends ur {
|
|
|
767
767
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
class
|
|
770
|
+
class je {
|
|
771
771
|
/**
|
|
772
772
|
* Инициализирует экземпляр указанного класса.
|
|
773
773
|
*
|
|
@@ -786,7 +786,7 @@ class Fe {
|
|
|
786
786
|
return new r(e);
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
class
|
|
789
|
+
class L extends b {
|
|
790
790
|
/**
|
|
791
791
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
792
792
|
*
|
|
@@ -801,7 +801,7 @@ class d extends k {
|
|
|
801
801
|
this.type = e == null ? void 0 : e.type;
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
|
-
class
|
|
804
|
+
class nt extends b {
|
|
805
805
|
/**
|
|
806
806
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
807
807
|
*
|
|
@@ -837,10 +837,10 @@ class it extends k {
|
|
|
837
837
|
* Дата и время удаления.
|
|
838
838
|
*/
|
|
839
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 =
|
|
840
|
+
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) ? R(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 L(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
class
|
|
843
|
+
class Q extends ur {
|
|
844
844
|
/**
|
|
845
845
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
846
846
|
*
|
|
@@ -856,19 +856,19 @@ class K extends lr {
|
|
|
856
856
|
* Дата и время создания шаблона.
|
|
857
857
|
*/
|
|
858
858
|
t(this, "createdAt");
|
|
859
|
-
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt =
|
|
859
|
+
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
|
-
var
|
|
863
|
-
class
|
|
862
|
+
var hr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(hr || {});
|
|
863
|
+
class Pe extends w {
|
|
864
864
|
/**
|
|
865
865
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
866
866
|
*/
|
|
867
867
|
static getRetailPriceCoefficient() {
|
|
868
|
-
return { id: -2, slug:
|
|
868
|
+
return { id: -2, slug: hr.Retail, name: "Розн. цена", guid: "", isNewRec: _r(!0) };
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
|
-
class
|
|
871
|
+
class Ge {
|
|
872
872
|
/**
|
|
873
873
|
* Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
|
|
874
874
|
*
|
|
@@ -895,10 +895,10 @@ class je {
|
|
|
895
895
|
* Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
|
|
896
896
|
*/
|
|
897
897
|
t(this, "readOnly");
|
|
898
|
-
this.coefficient = new
|
|
898
|
+
this.coefficient = new Pe(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;
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
|
-
class
|
|
901
|
+
class gr {
|
|
902
902
|
/**
|
|
903
903
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
904
904
|
*
|
|
@@ -916,9 +916,9 @@ class hr {
|
|
|
916
916
|
this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
|
-
class N extends
|
|
919
|
+
class N extends w {
|
|
920
920
|
}
|
|
921
|
-
class
|
|
921
|
+
class Z extends w {
|
|
922
922
|
/**
|
|
923
923
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
924
924
|
*
|
|
@@ -947,10 +947,10 @@ class X extends R {
|
|
|
947
947
|
* Координаты склада.
|
|
948
948
|
*/
|
|
949
949
|
t(this, "coordinates");
|
|
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 N(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 N(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new gr(e == null ? void 0 : e.coordinates);
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
|
-
class
|
|
953
|
+
class ot {
|
|
954
954
|
/**
|
|
955
955
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
956
956
|
*
|
|
@@ -965,10 +965,10 @@ class nt {
|
|
|
965
965
|
* Количество остатков товара на складе.
|
|
966
966
|
*/
|
|
967
967
|
t(this, "count");
|
|
968
|
-
this.warehouse = new
|
|
968
|
+
this.warehouse = new Z(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
969
969
|
}
|
|
970
970
|
}
|
|
971
|
-
class
|
|
971
|
+
class d extends b {
|
|
972
972
|
/**
|
|
973
973
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
974
974
|
*
|
|
@@ -995,7 +995,7 @@ class x extends k {
|
|
|
995
995
|
e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
|
|
996
996
|
}
|
|
997
997
|
}
|
|
998
|
-
class
|
|
998
|
+
class Qe extends b {
|
|
999
999
|
/**
|
|
1000
1000
|
* Инициализирует экземпляр класса {@link ProductUnit}.
|
|
1001
1001
|
*
|
|
@@ -1022,7 +1022,7 @@ class Ke extends k {
|
|
|
1022
1022
|
e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
|
-
class
|
|
1025
|
+
class k extends it {
|
|
1026
1026
|
/**
|
|
1027
1027
|
* Инициализирует экземпляр класса {@link Product}.
|
|
1028
1028
|
*
|
|
@@ -1099,9 +1099,9 @@ class I extends st {
|
|
|
1099
1099
|
* Список коэффициентов цен на продукт.
|
|
1100
1100
|
*/
|
|
1101
1101
|
t(this, "priceCoefficients");
|
|
1102
|
-
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new
|
|
1102
|
+
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Qe(e.unit) : new Qe(), 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 = C(e == null ? void 0 : e.costDate) ? R(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((h) => new ot(h))) ?? [], this.type = "product";
|
|
1103
1103
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
|
|
1104
|
-
s && (this.category = new
|
|
1104
|
+
s && (this.category = new qe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new qe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new st(h, I().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 Ge(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
1105
1105
|
}
|
|
1106
1106
|
/**
|
|
1107
1107
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -1122,8 +1122,8 @@ class I extends st {
|
|
|
1122
1122
|
return this.retailCostRub ?? this.costRub;
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1126
|
-
class j extends
|
|
1125
|
+
var Me = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Me || {});
|
|
1126
|
+
class j extends k {
|
|
1127
1127
|
/**
|
|
1128
1128
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1129
1129
|
*
|
|
@@ -1159,10 +1159,10 @@ class j extends I {
|
|
|
1159
1159
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1160
1160
|
*/
|
|
1161
1161
|
t(this, "isFavorite");
|
|
1162
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ??
|
|
1162
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Me.Product, this.discount = e != null && e.discount ? new nt(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Q(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
|
-
class
|
|
1165
|
+
class fe extends qe {
|
|
1166
1166
|
/**
|
|
1167
1167
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
1168
1168
|
*
|
|
@@ -1186,10 +1186,10 @@ class me extends _e {
|
|
|
1186
1186
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
1187
1187
|
*/
|
|
1188
1188
|
t(this, "currencyRates");
|
|
1189
|
-
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [
|
|
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]) => [qr(s), i])) : void 0;
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
|
-
class
|
|
1192
|
+
class mr extends te {
|
|
1193
1193
|
/**
|
|
1194
1194
|
* Инициализирует экземпляр класса {@link OrderItemBase}.
|
|
1195
1195
|
*
|
|
@@ -1244,11 +1244,27 @@ class gr extends re {
|
|
|
1244
1244
|
/**
|
|
1245
1245
|
* @inheritDoc
|
|
1246
1246
|
*/
|
|
1247
|
-
t(this, "
|
|
1248
|
-
|
|
1247
|
+
t(this, "creator");
|
|
1248
|
+
/**
|
|
1249
|
+
* @inheritDoc
|
|
1250
|
+
*/
|
|
1251
|
+
t(this, "isRemoved");
|
|
1252
|
+
/**
|
|
1253
|
+
* @inheritDoc
|
|
1254
|
+
*/
|
|
1255
|
+
t(this, "ord");
|
|
1256
|
+
/**
|
|
1257
|
+
* @inheritDoc
|
|
1258
|
+
*/
|
|
1259
|
+
t(this, "onOrder");
|
|
1260
|
+
/**
|
|
1261
|
+
* @inheritDoc
|
|
1262
|
+
*/
|
|
1263
|
+
t(this, "originalId");
|
|
1264
|
+
this.product = new j(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new fe(), 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 && Nr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new L(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId;
|
|
1249
1265
|
}
|
|
1250
1266
|
}
|
|
1251
|
-
let
|
|
1267
|
+
let ct = class extends mr {
|
|
1252
1268
|
/**
|
|
1253
1269
|
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
1254
1270
|
*
|
|
@@ -1292,10 +1308,10 @@ let ot = class extends gr {
|
|
|
1292
1308
|
* @inheritDoc
|
|
1293
1309
|
*/
|
|
1294
1310
|
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 = H(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new
|
|
1311
|
+
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 = H(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new d(e.currency);
|
|
1296
1312
|
}
|
|
1297
1313
|
};
|
|
1298
|
-
class
|
|
1314
|
+
class ye {
|
|
1299
1315
|
/**
|
|
1300
1316
|
* Инициализирует экземпляр класса {@link Cart}.
|
|
1301
1317
|
*
|
|
@@ -1314,7 +1330,7 @@ class fe {
|
|
|
1314
1330
|
* @inheritDoc
|
|
1315
1331
|
*/
|
|
1316
1332
|
t(this, "directionsSum");
|
|
1317
|
-
this.items = r.items.map((e) => new
|
|
1333
|
+
this.items = r.items.map((e) => new ct(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
1318
1334
|
}
|
|
1319
1335
|
}
|
|
1320
1336
|
const P = class P {
|
|
@@ -1329,7 +1345,7 @@ const P = class P {
|
|
|
1329
1345
|
/**
|
|
1330
1346
|
* Базовый URL путь для выполнения запросов.
|
|
1331
1347
|
*/
|
|
1332
|
-
t(this, "baseUrl", `${
|
|
1348
|
+
t(this, "baseUrl", `${I().config.http.portalApiUrl}/api`);
|
|
1333
1349
|
/**
|
|
1334
1350
|
* Обработчик ошибок выполнения запросов текущего экземпляра класса.
|
|
1335
1351
|
*
|
|
@@ -1337,7 +1353,7 @@ const P = class P {
|
|
|
1337
1353
|
* @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
1338
1354
|
* @param disableNotifications Признак необходимости отключить уведомления об ошибках.
|
|
1339
1355
|
*/
|
|
1340
|
-
t(this, "errorResponseHandler",
|
|
1356
|
+
t(this, "errorResponseHandler", v);
|
|
1341
1357
|
/**
|
|
1342
1358
|
* Список идентификаторов обработчиков запросов для возможности отключить те или иные обработчики.
|
|
1343
1359
|
*/
|
|
@@ -1356,7 +1372,7 @@ const P = class P {
|
|
|
1356
1372
|
// eslint-disable-next-line class-methods-use-this
|
|
1357
1373
|
t(this, "authRequestInterceptor", async (r) => {
|
|
1358
1374
|
let e;
|
|
1359
|
-
return T(
|
|
1375
|
+
return T(Se().jwtToken) || (e = await Se().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
|
|
1360
1376
|
});
|
|
1361
1377
|
/**
|
|
1362
1378
|
* Перехватчик запроса для вызова пользовательских хуков.
|
|
@@ -1371,7 +1387,7 @@ const P = class P {
|
|
|
1371
1387
|
* @param request Данные запроса.
|
|
1372
1388
|
*/
|
|
1373
1389
|
// eslint-disable-next-line class-methods-use-this
|
|
1374
|
-
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params =
|
|
1390
|
+
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ee(r.params)), ["put", "patch", "post"].includes(Ur(r.method)) && r.data && (r.data = Ee(r.data))), r));
|
|
1375
1391
|
/**
|
|
1376
1392
|
* Перехватчик ошибок ответов на запрос.
|
|
1377
1393
|
*
|
|
@@ -1380,7 +1396,7 @@ const P = class P {
|
|
|
1380
1396
|
t(this, "authErrorsResponseInterceptors", (r) => {
|
|
1381
1397
|
var s;
|
|
1382
1398
|
const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
|
|
1383
|
-
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (
|
|
1399
|
+
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (Se().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
|
|
1384
1400
|
});
|
|
1385
1401
|
/**
|
|
1386
1402
|
* Перехватчик ответа для приведения отмены запроса (AbortController) к единому виду.
|
|
@@ -1391,7 +1407,7 @@ const P = class P {
|
|
|
1391
1407
|
t(this, "canceledResponseInterceptor", (r) => {
|
|
1392
1408
|
const e = r.rawError ?? r;
|
|
1393
1409
|
if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
|
|
1394
|
-
throw new
|
|
1410
|
+
throw new Qr("Request canceled");
|
|
1395
1411
|
return Promise.reject(r);
|
|
1396
1412
|
});
|
|
1397
1413
|
/**
|
|
@@ -1407,8 +1423,8 @@ const P = class P {
|
|
|
1407
1423
|
* @param response Данные ответа на запрос.
|
|
1408
1424
|
*/
|
|
1409
1425
|
// eslint-disable-next-line class-methods-use-this
|
|
1410
|
-
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data =
|
|
1411
|
-
this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient =
|
|
1426
|
+
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Fe(r.data)), r));
|
|
1427
|
+
this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = Kr.create({
|
|
1412
1428
|
headers: {
|
|
1413
1429
|
Accept: "application/json",
|
|
1414
1430
|
"Content-Type": "application/json"
|
|
@@ -1472,7 +1488,7 @@ const P = class P {
|
|
|
1472
1488
|
* @param type Тип данных, которыми оперирует метод.
|
|
1473
1489
|
*/
|
|
1474
1490
|
static getInstance(r) {
|
|
1475
|
-
return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] =
|
|
1491
|
+
return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = je.simpleInstanceInitializer(r)), P.instances[r.name];
|
|
1476
1492
|
}
|
|
1477
1493
|
/**
|
|
1478
1494
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -1578,7 +1594,7 @@ t(P, "instances", {}), /**
|
|
|
1578
1594
|
* @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
1579
1595
|
* @param disableNotifications Признак необходимости отключить уведомления об ошибках.
|
|
1580
1596
|
*/
|
|
1581
|
-
t(P, "defaultErrorsResponseHandler",
|
|
1597
|
+
t(P, "defaultErrorsResponseHandler", v), /**
|
|
1582
1598
|
* Список зарегистрированных хуков для запросов.
|
|
1583
1599
|
*/
|
|
1584
1600
|
t(P, "requestHooks", []), /**
|
|
@@ -1586,7 +1602,7 @@ t(P, "requestHooks", []), /**
|
|
|
1586
1602
|
*/
|
|
1587
1603
|
t(P, "responseHooks", []);
|
|
1588
1604
|
let p = P;
|
|
1589
|
-
class
|
|
1605
|
+
class zt extends p {
|
|
1590
1606
|
/**
|
|
1591
1607
|
* Возвращает содержимое корзины указанного клиента.
|
|
1592
1608
|
*
|
|
@@ -1595,7 +1611,7 @@ class Bt extends p {
|
|
|
1595
1611
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_get
|
|
1596
1612
|
*/
|
|
1597
1613
|
getCart(r) {
|
|
1598
|
-
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new
|
|
1614
|
+
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ye(e.data));
|
|
1599
1615
|
}
|
|
1600
1616
|
/**
|
|
1601
1617
|
* Удаляет всё содержимое корзины.
|
|
@@ -1633,7 +1649,7 @@ class Bt extends p {
|
|
|
1633
1649
|
is_additional_sale: e.isAdditionalSale,
|
|
1634
1650
|
...e.configuratorParams
|
|
1635
1651
|
},
|
|
1636
|
-
(i) => new
|
|
1652
|
+
(i) => new ye(i.data),
|
|
1637
1653
|
s
|
|
1638
1654
|
);
|
|
1639
1655
|
}
|
|
@@ -1663,7 +1679,7 @@ class Bt extends p {
|
|
|
1663
1679
|
is_additional_sale: e.isAdditionalSale,
|
|
1664
1680
|
...e.configuratorParams
|
|
1665
1681
|
},
|
|
1666
|
-
(i) => new
|
|
1682
|
+
(i) => new ye(i.data),
|
|
1667
1683
|
s
|
|
1668
1684
|
);
|
|
1669
1685
|
}
|
|
@@ -1687,7 +1703,7 @@ class Bt extends p {
|
|
|
1687
1703
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
|
|
1688
1704
|
*/
|
|
1689
1705
|
addCartItemFromCSV(r, e) {
|
|
1690
|
-
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new
|
|
1706
|
+
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new ye(s.data));
|
|
1691
1707
|
}
|
|
1692
1708
|
/**
|
|
1693
1709
|
* Возвращает пример CSV файла для добавления продуктов в корзину.
|
|
@@ -1700,8 +1716,8 @@ class Bt extends p {
|
|
|
1700
1716
|
return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
|
|
1701
1717
|
}
|
|
1702
1718
|
}
|
|
1703
|
-
var
|
|
1704
|
-
class _ extends
|
|
1719
|
+
var lt = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(lt || {}), ut = /* @__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))(ut || {});
|
|
1720
|
+
class _ extends fe {
|
|
1705
1721
|
/**
|
|
1706
1722
|
* Инициализирует экземпляр класса {@link Category}.
|
|
1707
1723
|
*
|
|
@@ -1718,10 +1734,10 @@ class _ extends me {
|
|
|
1718
1734
|
* Список продуктов категории.
|
|
1719
1735
|
*/
|
|
1720
1736
|
t(this, "products");
|
|
1721
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new _(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new
|
|
1737
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new _(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new k(o));
|
|
1722
1738
|
}
|
|
1723
1739
|
}
|
|
1724
|
-
class
|
|
1740
|
+
class fr {
|
|
1725
1741
|
/**
|
|
1726
1742
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1727
1743
|
*
|
|
@@ -1739,9 +1755,9 @@ class mr {
|
|
|
1739
1755
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
1740
1756
|
}
|
|
1741
1757
|
}
|
|
1742
|
-
class O extends
|
|
1758
|
+
class O extends w {
|
|
1743
1759
|
}
|
|
1744
|
-
class
|
|
1760
|
+
class Be extends b {
|
|
1745
1761
|
/**
|
|
1746
1762
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1747
1763
|
*
|
|
@@ -1769,12 +1785,12 @@ class Me extends k {
|
|
|
1769
1785
|
* @inheritDoc
|
|
1770
1786
|
*/
|
|
1771
1787
|
t(this, "isRegionalDirector");
|
|
1772
|
-
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
|
|
1788
|
+
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 fr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
|
|
1773
1789
|
}
|
|
1774
1790
|
}
|
|
1775
|
-
class
|
|
1791
|
+
class ze extends w {
|
|
1776
1792
|
}
|
|
1777
|
-
class
|
|
1793
|
+
class pt extends b {
|
|
1778
1794
|
/**
|
|
1779
1795
|
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
1780
1796
|
*
|
|
@@ -1797,7 +1813,7 @@ class ut extends k {
|
|
|
1797
1813
|
this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
|
|
1798
1814
|
}
|
|
1799
1815
|
}
|
|
1800
|
-
class
|
|
1816
|
+
class De extends Be {
|
|
1801
1817
|
/**
|
|
1802
1818
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1803
1819
|
*
|
|
@@ -1834,10 +1850,10 @@ class Pe extends Me {
|
|
|
1834
1850
|
* Список направлений кураторства.
|
|
1835
1851
|
*/
|
|
1836
1852
|
t(this, "curatedDirections");
|
|
1837
|
-
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
|
|
1853
|
+
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 pt(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new ze(i))) ?? [];
|
|
1838
1854
|
}
|
|
1839
1855
|
}
|
|
1840
|
-
class
|
|
1856
|
+
class ht extends fe {
|
|
1841
1857
|
/**
|
|
1842
1858
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1843
1859
|
*
|
|
@@ -1865,10 +1881,10 @@ class pt extends me {
|
|
|
1865
1881
|
* Данные о менеджере за которым закреплена категория.
|
|
1866
1882
|
*/
|
|
1867
1883
|
t(this, "manager");
|
|
1868
|
-
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
|
|
1884
|
+
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 De(e.manager) : void 0;
|
|
1869
1885
|
}
|
|
1870
1886
|
}
|
|
1871
|
-
class
|
|
1887
|
+
class ve extends ht {
|
|
1872
1888
|
/**
|
|
1873
1889
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1874
1890
|
*
|
|
@@ -1885,10 +1901,10 @@ class we extends pt {
|
|
|
1885
1901
|
* Список продуктов категории.
|
|
1886
1902
|
*/
|
|
1887
1903
|
t(this, "products");
|
|
1888
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new
|
|
1904
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ve(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new j(o));
|
|
1889
1905
|
}
|
|
1890
1906
|
}
|
|
1891
|
-
class
|
|
1907
|
+
class yr {
|
|
1892
1908
|
/**
|
|
1893
1909
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
1894
1910
|
*
|
|
@@ -1903,10 +1919,10 @@ class fr {
|
|
|
1903
1919
|
* Процент, который прибавляется к значению выбранного коэффициента.
|
|
1904
1920
|
*/
|
|
1905
1921
|
t(this, "increasePercent");
|
|
1906
|
-
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new
|
|
1922
|
+
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1907
1923
|
}
|
|
1908
1924
|
}
|
|
1909
|
-
class
|
|
1925
|
+
class ke extends yr {
|
|
1910
1926
|
/**
|
|
1911
1927
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1912
1928
|
*
|
|
@@ -1918,10 +1934,10 @@ class Se extends fr {
|
|
|
1918
1934
|
* Базовые данные о продукте.
|
|
1919
1935
|
*/
|
|
1920
1936
|
t(this, "productCategory");
|
|
1921
|
-
this.productCategory = new
|
|
1937
|
+
this.productCategory = new fe(e == null ? void 0 : e.productCategory);
|
|
1922
1938
|
}
|
|
1923
1939
|
}
|
|
1924
|
-
class
|
|
1940
|
+
class We extends b {
|
|
1925
1941
|
/**
|
|
1926
1942
|
* Инициализирует экземпляр класса {@link Curator}.
|
|
1927
1943
|
*
|
|
@@ -1941,12 +1957,12 @@ class ze extends k {
|
|
|
1941
1957
|
* @inheritDoc
|
|
1942
1958
|
*/
|
|
1943
1959
|
t(this, "curatedDirection");
|
|
1944
|
-
this.photo = e.photo, this.contacts = new
|
|
1960
|
+
this.photo = e.photo, this.contacts = new fr(e.contacts), this.curatedDirection = new ze(e.curatedDirection);
|
|
1945
1961
|
}
|
|
1946
1962
|
}
|
|
1947
|
-
class
|
|
1963
|
+
class ee extends w {
|
|
1948
1964
|
}
|
|
1949
|
-
class
|
|
1965
|
+
class he extends w {
|
|
1950
1966
|
/**
|
|
1951
1967
|
* Инициализирует экземпляр класса {@link Region}.
|
|
1952
1968
|
*
|
|
@@ -1957,11 +1973,11 @@ class pe extends R {
|
|
|
1957
1973
|
/**
|
|
1958
1974
|
* Данные о стране, в которой расположен регион.
|
|
1959
1975
|
*/
|
|
1960
|
-
t(this, "country", new
|
|
1961
|
-
e && (this.country = new
|
|
1976
|
+
t(this, "country", new ee());
|
|
1977
|
+
e && (this.country = new ee(e.country));
|
|
1962
1978
|
}
|
|
1963
1979
|
}
|
|
1964
|
-
class Ae extends
|
|
1980
|
+
class Ae extends w {
|
|
1965
1981
|
/**
|
|
1966
1982
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
1967
1983
|
*
|
|
@@ -1972,11 +1988,11 @@ class Ae extends R {
|
|
|
1972
1988
|
/**
|
|
1973
1989
|
* Данные о регионе, в котором расположен город.
|
|
1974
1990
|
*/
|
|
1975
|
-
t(this, "region", new
|
|
1976
|
-
e && (this.region = new
|
|
1991
|
+
t(this, "region", new he());
|
|
1992
|
+
e && (this.region = new he(e.region));
|
|
1977
1993
|
}
|
|
1978
1994
|
}
|
|
1979
|
-
class
|
|
1995
|
+
class wr extends b {
|
|
1980
1996
|
/**
|
|
1981
1997
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1982
1998
|
*
|
|
@@ -2012,10 +2028,10 @@ class yr extends k {
|
|
|
2012
2028
|
* Признак активности учетной записи пользователя.
|
|
2013
2029
|
*/
|
|
2014
2030
|
t(this, "isActive");
|
|
2015
|
-
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 =
|
|
2031
|
+
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 = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? R(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
2016
2032
|
}
|
|
2017
2033
|
}
|
|
2018
|
-
class
|
|
2034
|
+
class se extends wr {
|
|
2019
2035
|
/**
|
|
2020
2036
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2021
2037
|
*
|
|
@@ -2061,10 +2077,10 @@ class te extends yr {
|
|
|
2061
2077
|
* @inheritDoc
|
|
2062
2078
|
*/
|
|
2063
2079
|
t(this, "curators");
|
|
2064
|
-
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 Ae(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new
|
|
2080
|
+
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 Ae(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((o) => new Be(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new We(o))) ?? void 0;
|
|
2065
2081
|
}
|
|
2066
2082
|
}
|
|
2067
|
-
class
|
|
2083
|
+
class oe extends te {
|
|
2068
2084
|
/**
|
|
2069
2085
|
* Инициализирует новый экземпляр класса.
|
|
2070
2086
|
*
|
|
@@ -2088,10 +2104,10 @@ class ne extends re {
|
|
|
2088
2104
|
* Данные шаблона прайс-листа.
|
|
2089
2105
|
*/
|
|
2090
2106
|
t(this, "priceTemplate");
|
|
2091
|
-
this.createdAt =
|
|
2107
|
+
this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new se(e == null ? void 0 : e.client), this.priceTemplate = new Q(e == null ? void 0 : e.priceTemplate);
|
|
2092
2108
|
}
|
|
2093
2109
|
}
|
|
2094
|
-
class
|
|
2110
|
+
class Ie extends yr {
|
|
2095
2111
|
/**
|
|
2096
2112
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
2097
2113
|
*
|
|
@@ -2103,12 +2119,12 @@ class ke extends fr {
|
|
|
2103
2119
|
* Базовые данные о продукте.
|
|
2104
2120
|
*/
|
|
2105
2121
|
t(this, "product");
|
|
2106
|
-
this.product = new
|
|
2122
|
+
this.product = new k(e == null ? void 0 : e.product);
|
|
2107
2123
|
}
|
|
2108
2124
|
}
|
|
2109
|
-
class
|
|
2125
|
+
class vr extends w {
|
|
2110
2126
|
}
|
|
2111
|
-
class
|
|
2127
|
+
class ce extends b {
|
|
2112
2128
|
/**
|
|
2113
2129
|
* Инициализирует экземпляр класса {@link Property}.
|
|
2114
2130
|
*
|
|
@@ -2128,7 +2144,7 @@ class oe extends k {
|
|
|
2128
2144
|
* Дополнительные метаданные свойства.
|
|
2129
2145
|
*/
|
|
2130
2146
|
t(this, "metadata");
|
|
2131
|
-
this.type = new
|
|
2147
|
+
this.type = new vr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
2132
2148
|
}
|
|
2133
2149
|
}
|
|
2134
2150
|
class V {
|
|
@@ -2147,7 +2163,7 @@ class V {
|
|
|
2147
2163
|
* Может быть строкой, числом, boolean, диапазоном или JSON объектом.
|
|
2148
2164
|
*/
|
|
2149
2165
|
t(this, "value");
|
|
2150
|
-
this.property = new
|
|
2166
|
+
this.property = new ce(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2151
2167
|
}
|
|
2152
2168
|
}
|
|
2153
2169
|
class S {
|
|
@@ -2165,10 +2181,10 @@ class S {
|
|
|
2165
2181
|
* Окончание периода.
|
|
2166
2182
|
*/
|
|
2167
2183
|
t(this, "to");
|
|
2168
|
-
this.from =
|
|
2184
|
+
this.from = C(r == null ? void 0 : r.from) ? R(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = C(r == null ? void 0 : r.to) ? R(r.to) : (r == null ? void 0 : r.to) ?? null;
|
|
2169
2185
|
}
|
|
2170
2186
|
}
|
|
2171
|
-
class
|
|
2187
|
+
class Wt {
|
|
2172
2188
|
/**
|
|
2173
2189
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
2174
2190
|
*
|
|
@@ -2228,11 +2244,11 @@ class zt {
|
|
|
2228
2244
|
return Object.keys(this).forEach((c) => {
|
|
2229
2245
|
const u = this[c];
|
|
2230
2246
|
// eslint-disable-next-line prettier/prettier
|
|
2231
|
-
T(u) ||
|
|
2247
|
+
T(u) || C(u) && u.trim().length === 0 || He(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
2232
2248
|
}), !((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;
|
|
2233
2249
|
}
|
|
2234
2250
|
}
|
|
2235
|
-
class
|
|
2251
|
+
class le extends b {
|
|
2236
2252
|
/**
|
|
2237
2253
|
* Инициализирует экземпляр класса {@link PricingRole}.
|
|
2238
2254
|
*
|
|
@@ -2267,7 +2283,7 @@ class ce extends k {
|
|
|
2267
2283
|
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;
|
|
2268
2284
|
}
|
|
2269
2285
|
}
|
|
2270
|
-
class
|
|
2286
|
+
class Ye {
|
|
2271
2287
|
/**
|
|
2272
2288
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
2273
2289
|
*
|
|
@@ -2286,10 +2302,10 @@ class Qe {
|
|
|
2286
2302
|
* Минимальный коэффициент цены.
|
|
2287
2303
|
*/
|
|
2288
2304
|
t(this, "minCoefficient");
|
|
2289
|
-
this.role = new
|
|
2305
|
+
this.role = new le(r == null ? void 0 : r.role), this.category = new fe(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
|
|
2290
2306
|
}
|
|
2291
2307
|
}
|
|
2292
|
-
class
|
|
2308
|
+
class Jt extends p {
|
|
2293
2309
|
/**
|
|
2294
2310
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
2295
2311
|
*
|
|
@@ -2316,11 +2332,11 @@ class Wt extends p {
|
|
|
2316
2332
|
*/
|
|
2317
2333
|
// eslint-disable-next-line class-methods-use-this
|
|
2318
2334
|
getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
|
|
2319
|
-
let c = `${
|
|
2335
|
+
let c = `${I().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
|
|
2320
2336
|
return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
|
|
2321
2337
|
}
|
|
2322
2338
|
}
|
|
2323
|
-
class
|
|
2339
|
+
class Et extends p {
|
|
2324
2340
|
/**
|
|
2325
2341
|
* Импортирует цены клиента из CSV файла.
|
|
2326
2342
|
*
|
|
@@ -2519,7 +2535,7 @@ class Jt extends p {
|
|
|
2519
2535
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2520
2536
|
}
|
|
2521
2537
|
}
|
|
2522
|
-
class
|
|
2538
|
+
class Vt extends p {
|
|
2523
2539
|
/**
|
|
2524
2540
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2525
2541
|
*
|
|
@@ -2531,7 +2547,7 @@ class Et extends p {
|
|
|
2531
2547
|
return this.get(
|
|
2532
2548
|
`/internal/clients/${r}/price/templates`,
|
|
2533
2549
|
{},
|
|
2534
|
-
(e) => e.data.map((s) => new
|
|
2550
|
+
(e) => e.data.map((s) => new oe(s))
|
|
2535
2551
|
);
|
|
2536
2552
|
}
|
|
2537
2553
|
/**
|
|
@@ -2542,7 +2558,7 @@ class Et extends p {
|
|
|
2542
2558
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
|
|
2543
2559
|
*/
|
|
2544
2560
|
getActiveTemplate(r) {
|
|
2545
|
-
return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new
|
|
2561
|
+
return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new oe(e.data), !0);
|
|
2546
2562
|
}
|
|
2547
2563
|
/**
|
|
2548
2564
|
* Добавляет связь между клиентом и шаблоном прайс-листа.
|
|
@@ -2554,14 +2570,14 @@ class Et extends p {
|
|
|
2554
2570
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_attach
|
|
2555
2571
|
*/
|
|
2556
2572
|
attachTemplate(r, e, s) {
|
|
2557
|
-
const i =
|
|
2573
|
+
const i = I().config.dateFormats.api;
|
|
2558
2574
|
return this.post(
|
|
2559
2575
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
2560
2576
|
s && {
|
|
2561
2577
|
startAt: s.startAt && U(s.startAt, i),
|
|
2562
2578
|
endAt: s.endAt && U(s.endAt, i)
|
|
2563
2579
|
},
|
|
2564
|
-
(o) => new
|
|
2580
|
+
(o) => new oe(o.data),
|
|
2565
2581
|
{},
|
|
2566
2582
|
!0
|
|
2567
2583
|
);
|
|
@@ -2588,14 +2604,14 @@ class Et extends p {
|
|
|
2588
2604
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_change
|
|
2589
2605
|
*/
|
|
2590
2606
|
changeTemplate(r, e, s, i) {
|
|
2591
|
-
const o =
|
|
2607
|
+
const o = I().config.dateFormats.api;
|
|
2592
2608
|
return this.patch(
|
|
2593
2609
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
2594
2610
|
i && {
|
|
2595
2611
|
startAt: i.startAt && U(i.startAt, o),
|
|
2596
2612
|
endAt: i.endAt && U(i.endAt, o)
|
|
2597
2613
|
},
|
|
2598
|
-
(c) => new
|
|
2614
|
+
(c) => new oe(c.data)
|
|
2599
2615
|
);
|
|
2600
2616
|
}
|
|
2601
2617
|
/**
|
|
@@ -2611,7 +2627,7 @@ class Et extends p {
|
|
|
2611
2627
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2612
2628
|
}
|
|
2613
2629
|
}
|
|
2614
|
-
class
|
|
2630
|
+
class Kt extends p {
|
|
2615
2631
|
/**
|
|
2616
2632
|
* Возвращает список данных о корневых категориях.
|
|
2617
2633
|
*
|
|
@@ -2671,7 +2687,7 @@ class Vt extends p {
|
|
|
2671
2687
|
showHidden: s,
|
|
2672
2688
|
withPriceCoefficients: e
|
|
2673
2689
|
},
|
|
2674
|
-
(i) =>
|
|
2690
|
+
(i) => me(i.data, (o) => new k(o))
|
|
2675
2691
|
);
|
|
2676
2692
|
}
|
|
2677
2693
|
/**
|
|
@@ -2684,7 +2700,7 @@ class Vt extends p {
|
|
|
2684
2700
|
getCategoryProductsCoefficients(r) {
|
|
2685
2701
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2686
2702
|
const { data: s } = e;
|
|
2687
|
-
return
|
|
2703
|
+
return Hr(s, (i) => i.map((o) => new Ge(o))), s;
|
|
2688
2704
|
});
|
|
2689
2705
|
}
|
|
2690
2706
|
/**
|
|
@@ -2703,7 +2719,7 @@ class Vt extends p {
|
|
|
2703
2719
|
});
|
|
2704
2720
|
}
|
|
2705
2721
|
}
|
|
2706
|
-
class
|
|
2722
|
+
class Qt extends p {
|
|
2707
2723
|
/**
|
|
2708
2724
|
* Возвращает данные об указанном продукте.
|
|
2709
2725
|
*
|
|
@@ -2713,7 +2729,7 @@ class Kt extends p {
|
|
|
2713
2729
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
2714
2730
|
*/
|
|
2715
2731
|
getProductData(r, e = !1) {
|
|
2716
|
-
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new
|
|
2732
|
+
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new k(s.data));
|
|
2717
2733
|
}
|
|
2718
2734
|
/**
|
|
2719
2735
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -2721,7 +2737,7 @@ class Kt extends p {
|
|
|
2721
2737
|
* @param productId Идентификатор продукта.
|
|
2722
2738
|
*/
|
|
2723
2739
|
getPublicProductData(r) {
|
|
2724
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
2740
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new k(e.data));
|
|
2725
2741
|
}
|
|
2726
2742
|
/**
|
|
2727
2743
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -2734,7 +2750,7 @@ class Kt extends p {
|
|
|
2734
2750
|
return this.get(
|
|
2735
2751
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2736
2752
|
{},
|
|
2737
|
-
(e) =>
|
|
2753
|
+
(e) => me(e.data, (s) => new Ge(s))
|
|
2738
2754
|
);
|
|
2739
2755
|
}
|
|
2740
2756
|
/**
|
|
@@ -2746,14 +2762,14 @@ class Kt extends p {
|
|
|
2746
2762
|
publicSimpleSearch(r, e = 10) {
|
|
2747
2763
|
return new Promise((s, i) => {
|
|
2748
2764
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2749
|
-
s(o.products.map((c) => new
|
|
2765
|
+
s(o.products.map((c) => new k(c)));
|
|
2750
2766
|
}).catch((o) => {
|
|
2751
2767
|
i(o);
|
|
2752
2768
|
});
|
|
2753
2769
|
});
|
|
2754
2770
|
}
|
|
2755
2771
|
}
|
|
2756
|
-
class
|
|
2772
|
+
class Yt extends p {
|
|
2757
2773
|
/**
|
|
2758
2774
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2759
2775
|
*
|
|
@@ -2769,7 +2785,7 @@ class Qt extends p {
|
|
|
2769
2785
|
clientId: r,
|
|
2770
2786
|
showHidden: e
|
|
2771
2787
|
},
|
|
2772
|
-
(s) => s.data.map((i) => new
|
|
2788
|
+
(s) => s.data.map((i) => new ve(i))
|
|
2773
2789
|
);
|
|
2774
2790
|
}
|
|
2775
2791
|
/**
|
|
@@ -2790,7 +2806,7 @@ class Qt extends p {
|
|
|
2790
2806
|
showHidden: s,
|
|
2791
2807
|
withNestedCategories: i
|
|
2792
2808
|
},
|
|
2793
|
-
(o) => new
|
|
2809
|
+
(o) => new ve(o.data)
|
|
2794
2810
|
);
|
|
2795
2811
|
}
|
|
2796
2812
|
/**
|
|
@@ -2811,11 +2827,11 @@ class Qt extends p {
|
|
|
2811
2827
|
showHidden: i,
|
|
2812
2828
|
withPriceCoefficients: s
|
|
2813
2829
|
},
|
|
2814
|
-
(o) =>
|
|
2830
|
+
(o) => me(o.data, (c) => new j(c))
|
|
2815
2831
|
);
|
|
2816
2832
|
}
|
|
2817
2833
|
}
|
|
2818
|
-
class
|
|
2834
|
+
class Xt extends p {
|
|
2819
2835
|
/**
|
|
2820
2836
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2821
2837
|
*
|
|
@@ -2836,8 +2852,8 @@ class Yt extends p {
|
|
|
2836
2852
|
);
|
|
2837
2853
|
}
|
|
2838
2854
|
}
|
|
2839
|
-
var
|
|
2840
|
-
class
|
|
2855
|
+
var Je = /* @__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))(Je || {});
|
|
2856
|
+
class Xe {
|
|
2841
2857
|
/**
|
|
2842
2858
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
2843
2859
|
*
|
|
@@ -2856,7 +2872,7 @@ class Ye {
|
|
|
2856
2872
|
* Значение с которым сравнивается поле.
|
|
2857
2873
|
*/
|
|
2858
2874
|
t(this, "value");
|
|
2859
|
-
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ??
|
|
2875
|
+
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Je.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2860
2876
|
}
|
|
2861
2877
|
/**
|
|
2862
2878
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -2868,7 +2884,7 @@ class Ye {
|
|
|
2868
2884
|
field: this.field,
|
|
2869
2885
|
op: this.op
|
|
2870
2886
|
};
|
|
2871
|
-
return r.value =
|
|
2887
|
+
return r.value = Oe(this.value) ? U(this.value, I().config.dateFormats.api) : this.value, r;
|
|
2872
2888
|
}
|
|
2873
2889
|
}
|
|
2874
2890
|
class G {
|
|
@@ -2891,7 +2907,7 @@ class G {
|
|
|
2891
2907
|
*/
|
|
2892
2908
|
t(this, "groups");
|
|
2893
2909
|
var e, s;
|
|
2894
|
-
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
|
|
2910
|
+
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 Xe(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new G(i))) ?? [];
|
|
2895
2911
|
}
|
|
2896
2912
|
/**
|
|
2897
2913
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2901,12 +2917,12 @@ class G {
|
|
|
2901
2917
|
toPrimitive() {
|
|
2902
2918
|
return {
|
|
2903
2919
|
groupOp: this.groupOp,
|
|
2904
|
-
filters: this.filters.map((r) => r instanceof
|
|
2920
|
+
filters: this.filters.map((r) => r instanceof Xe && He(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2905
2921
|
groups: this.groups.map((r) => r instanceof G ? r.toPrimitive() : r)
|
|
2906
2922
|
};
|
|
2907
2923
|
}
|
|
2908
2924
|
}
|
|
2909
|
-
class
|
|
2925
|
+
class Te extends p {
|
|
2910
2926
|
/**
|
|
2911
2927
|
* Получает пагинированный список данных.
|
|
2912
2928
|
*
|
|
@@ -2924,10 +2940,10 @@ class De extends p {
|
|
|
2924
2940
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2925
2941
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2926
2942
|
};
|
|
2927
|
-
return e && (m.filters = JSON.stringify((e instanceof G ? e : new G(e)).toPrimitive())),
|
|
2943
|
+
return e && (m.filters = JSON.stringify((e instanceof G ? e : new G(e)).toPrimitive())), X(s) || (m.sort = H(s) ? s : [s]), o && (m = { ...m, ...o }), this.get(r, m, c, u, h);
|
|
2928
2944
|
}
|
|
2929
2945
|
}
|
|
2930
|
-
class
|
|
2946
|
+
class Zt extends Te {
|
|
2931
2947
|
/**
|
|
2932
2948
|
* Возвращает список шаблонов прайс-листа.
|
|
2933
2949
|
*
|
|
@@ -2940,7 +2956,7 @@ class Xt extends De {
|
|
|
2940
2956
|
getTemplateList(r, e, s) {
|
|
2941
2957
|
return this.getPaginated("/internal/price/templates", r, e, s, {}, (i) => {
|
|
2942
2958
|
const o = { ...i.data };
|
|
2943
|
-
return o.data = o.data.map((c) => new
|
|
2959
|
+
return o.data = o.data.map((c) => new Q(c)), o;
|
|
2944
2960
|
});
|
|
2945
2961
|
}
|
|
2946
2962
|
/**
|
|
@@ -2953,7 +2969,7 @@ class Xt extends De {
|
|
|
2953
2969
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
|
|
2954
2970
|
*/
|
|
2955
2971
|
createTemplate(r, e = {}) {
|
|
2956
|
-
return this.post("/internal/price/templates", r, (s) => new
|
|
2972
|
+
return this.post("/internal/price/templates", r, (s) => new Q(s.data), e);
|
|
2957
2973
|
}
|
|
2958
2974
|
/**
|
|
2959
2975
|
* Возвращает данные о шаблоне прайс-листа.
|
|
@@ -2963,7 +2979,7 @@ class Xt extends De {
|
|
|
2963
2979
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
|
|
2964
2980
|
*/
|
|
2965
2981
|
getTemplate(r) {
|
|
2966
|
-
return this.get(`/internal/price/templates/${r}`, {}, (e) => new
|
|
2982
|
+
return this.get(`/internal/price/templates/${r}`, {}, (e) => new Q(e.data));
|
|
2967
2983
|
}
|
|
2968
2984
|
/**
|
|
2969
2985
|
* Изменяет данные о шаблоне прайс-листа.
|
|
@@ -2976,7 +2992,7 @@ class Xt extends De {
|
|
|
2976
2992
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
|
|
2977
2993
|
*/
|
|
2978
2994
|
updateTemplate(r, e, s = {}) {
|
|
2979
|
-
return this.patch(`/internal/price/templates/${r}`, e, (i) => new
|
|
2995
|
+
return this.patch(`/internal/price/templates/${r}`, e, (i) => new Q(i.data), s);
|
|
2980
2996
|
}
|
|
2981
2997
|
/**
|
|
2982
2998
|
* Удаляет данные о шаблоне прайс-листа.
|
|
@@ -2999,7 +3015,7 @@ class Xt extends De {
|
|
|
2999
3015
|
return this.get(
|
|
3000
3016
|
`/internal/price/templates/${r}/products`,
|
|
3001
3017
|
{},
|
|
3002
|
-
(e) => e.data.map((s) => new
|
|
3018
|
+
(e) => e.data.map((s) => new Ie(s))
|
|
3003
3019
|
);
|
|
3004
3020
|
}
|
|
3005
3021
|
/**
|
|
@@ -3011,7 +3027,7 @@ class Xt extends De {
|
|
|
3011
3027
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
3012
3028
|
*/
|
|
3013
3029
|
getProductTemplatePrice(r, e) {
|
|
3014
|
-
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new
|
|
3030
|
+
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Ie(s.data));
|
|
3015
3031
|
}
|
|
3016
3032
|
/**
|
|
3017
3033
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -3030,7 +3046,7 @@ class Xt extends De {
|
|
|
3030
3046
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
3031
3047
|
increase_percent: s.value
|
|
3032
3048
|
},
|
|
3033
|
-
(o) => new
|
|
3049
|
+
(o) => new Ie(o.data)
|
|
3034
3050
|
);
|
|
3035
3051
|
}
|
|
3036
3052
|
/**
|
|
@@ -3055,7 +3071,7 @@ class Xt extends De {
|
|
|
3055
3071
|
return this.get(
|
|
3056
3072
|
`/internal/price/templates/${r}/categories`,
|
|
3057
3073
|
{},
|
|
3058
|
-
(e) => e.data.map((s) => new
|
|
3074
|
+
(e) => e.data.map((s) => new ke(s))
|
|
3059
3075
|
);
|
|
3060
3076
|
}
|
|
3061
3077
|
/**
|
|
@@ -3070,7 +3086,7 @@ class Xt extends De {
|
|
|
3070
3086
|
return this.get(
|
|
3071
3087
|
`/internal/price/templates/${r}/categories/${e}`,
|
|
3072
3088
|
{},
|
|
3073
|
-
(s) => new
|
|
3089
|
+
(s) => new ke(s.data)
|
|
3074
3090
|
);
|
|
3075
3091
|
}
|
|
3076
3092
|
/**
|
|
@@ -3096,7 +3112,7 @@ class Xt extends De {
|
|
|
3096
3112
|
},
|
|
3097
3113
|
params: i ? { recursively: !0 } : {}
|
|
3098
3114
|
},
|
|
3099
|
-
(c) => new
|
|
3115
|
+
(c) => new ke(c.data)
|
|
3100
3116
|
);
|
|
3101
3117
|
}
|
|
3102
3118
|
/**
|
|
@@ -3127,18 +3143,18 @@ class Xt extends De {
|
|
|
3127
3143
|
return this.get(
|
|
3128
3144
|
`/internal/price/templates/${r}/clients`,
|
|
3129
3145
|
{},
|
|
3130
|
-
(e) => e.data.map((s) => new
|
|
3146
|
+
(e) => e.data.map((s) => new oe(s))
|
|
3131
3147
|
);
|
|
3132
3148
|
}
|
|
3133
3149
|
}
|
|
3134
|
-
class
|
|
3150
|
+
class es extends p {
|
|
3135
3151
|
/**
|
|
3136
3152
|
* Возвращает список ролей ценообразования.
|
|
3137
3153
|
*
|
|
3138
3154
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
|
|
3139
3155
|
*/
|
|
3140
3156
|
getRoles() {
|
|
3141
|
-
return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new
|
|
3157
|
+
return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new le(e)));
|
|
3142
3158
|
}
|
|
3143
3159
|
/**
|
|
3144
3160
|
* Добавляет новую роль ценообразования.
|
|
@@ -3148,7 +3164,7 @@ class Zt extends p {
|
|
|
3148
3164
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
|
|
3149
3165
|
*/
|
|
3150
3166
|
createRole(r) {
|
|
3151
|
-
return this.post("/internal/price/roles", r, (e) => new
|
|
3167
|
+
return this.post("/internal/price/roles", r, (e) => new le(e.data));
|
|
3152
3168
|
}
|
|
3153
3169
|
/**
|
|
3154
3170
|
* Возвращает данные роли ценообразования.
|
|
@@ -3158,7 +3174,7 @@ class Zt extends p {
|
|
|
3158
3174
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
|
|
3159
3175
|
*/
|
|
3160
3176
|
getRole(r) {
|
|
3161
|
-
return this.get(`/internal/price/roles/${r}`, {}, (e) => new
|
|
3177
|
+
return this.get(`/internal/price/roles/${r}`, {}, (e) => new le(e.data));
|
|
3162
3178
|
}
|
|
3163
3179
|
/**
|
|
3164
3180
|
* Обновляет данные роли ценообразования.
|
|
@@ -3169,7 +3185,7 @@ class Zt extends p {
|
|
|
3169
3185
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
|
|
3170
3186
|
*/
|
|
3171
3187
|
updateRole(r, e) {
|
|
3172
|
-
return this.patch(`/internal/price/roles/${r}`, e, (s) => new
|
|
3188
|
+
return this.patch(`/internal/price/roles/${r}`, e, (s) => new le(s.data));
|
|
3173
3189
|
}
|
|
3174
3190
|
/**
|
|
3175
3191
|
* Удаляет роль ценообразования.
|
|
@@ -3192,7 +3208,7 @@ class Zt extends p {
|
|
|
3192
3208
|
return this.get(
|
|
3193
3209
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3194
3210
|
{},
|
|
3195
|
-
(e) => e.data.map((s) => new
|
|
3211
|
+
(e) => e.data.map((s) => new Ye(s))
|
|
3196
3212
|
);
|
|
3197
3213
|
}
|
|
3198
3214
|
/**
|
|
@@ -3207,11 +3223,11 @@ class Zt extends p {
|
|
|
3207
3223
|
return this.patch(
|
|
3208
3224
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3209
3225
|
e,
|
|
3210
|
-
(s) => s.data.map((i) => new
|
|
3226
|
+
(s) => s.data.map((i) => new Ye(i))
|
|
3211
3227
|
);
|
|
3212
3228
|
}
|
|
3213
3229
|
}
|
|
3214
|
-
class
|
|
3230
|
+
class rs extends Te {
|
|
3215
3231
|
/**
|
|
3216
3232
|
* Возвращает пагинированный список свойств.
|
|
3217
3233
|
*
|
|
@@ -3224,7 +3240,7 @@ class es extends De {
|
|
|
3224
3240
|
getProperties(r, e, s) {
|
|
3225
3241
|
return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
|
|
3226
3242
|
const o = { ...i.data };
|
|
3227
|
-
return o.data = o.data.map((c) => new
|
|
3243
|
+
return o.data = o.data.map((c) => new ce(c)), o;
|
|
3228
3244
|
});
|
|
3229
3245
|
}
|
|
3230
3246
|
/**
|
|
@@ -3241,7 +3257,7 @@ class es extends De {
|
|
|
3241
3257
|
...s,
|
|
3242
3258
|
type: e
|
|
3243
3259
|
},
|
|
3244
|
-
(i) => new
|
|
3260
|
+
(i) => new ce(i.data)
|
|
3245
3261
|
);
|
|
3246
3262
|
}
|
|
3247
3263
|
/**
|
|
@@ -3251,7 +3267,7 @@ class es extends De {
|
|
|
3251
3267
|
* @see /doc/api/internal#/operations/api_internal_catalog_properties_get
|
|
3252
3268
|
*/
|
|
3253
3269
|
getProperty(r) {
|
|
3254
|
-
return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new
|
|
3270
|
+
return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new ce(e.data));
|
|
3255
3271
|
}
|
|
3256
3272
|
/**
|
|
3257
3273
|
* Обновляет существующее свойство.
|
|
@@ -3268,7 +3284,7 @@ class es extends De {
|
|
|
3268
3284
|
...i,
|
|
3269
3285
|
type: s
|
|
3270
3286
|
},
|
|
3271
|
-
(o) => new
|
|
3287
|
+
(o) => new ce(o.data)
|
|
3272
3288
|
);
|
|
3273
3289
|
}
|
|
3274
3290
|
/**
|
|
@@ -3583,7 +3599,7 @@ class es extends De {
|
|
|
3583
3599
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3584
3600
|
}
|
|
3585
3601
|
}
|
|
3586
|
-
class
|
|
3602
|
+
class ts extends p {
|
|
3587
3603
|
/**
|
|
3588
3604
|
* Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
|
|
3589
3605
|
*
|
|
@@ -3641,11 +3657,11 @@ class rs extends p {
|
|
|
3641
3657
|
showHidden: i,
|
|
3642
3658
|
withPriceCoefficients: s
|
|
3643
3659
|
},
|
|
3644
|
-
(o) =>
|
|
3660
|
+
(o) => me(o.data, (c) => new k(c))
|
|
3645
3661
|
);
|
|
3646
3662
|
}
|
|
3647
3663
|
}
|
|
3648
|
-
function
|
|
3664
|
+
function Ze(n, r, e) {
|
|
3649
3665
|
let s;
|
|
3650
3666
|
return n.some((i) => {
|
|
3651
3667
|
if (i.type === e && i.id === r)
|
|
@@ -3654,37 +3670,37 @@ function Xe(n, r, e) {
|
|
|
3654
3670
|
return !1;
|
|
3655
3671
|
const o = i;
|
|
3656
3672
|
if (o.products && o.products.length > 0) {
|
|
3657
|
-
const c =
|
|
3673
|
+
const c = Ze(o.products, r, e);
|
|
3658
3674
|
if (c)
|
|
3659
3675
|
return s = c, !0;
|
|
3660
3676
|
}
|
|
3661
3677
|
if (o.categories && o.categories.length > 0) {
|
|
3662
|
-
const c =
|
|
3678
|
+
const c = Ze(o.categories, r, e);
|
|
3663
3679
|
if (c)
|
|
3664
3680
|
return s = c, !0;
|
|
3665
3681
|
}
|
|
3666
3682
|
return !1;
|
|
3667
3683
|
}), s;
|
|
3668
3684
|
}
|
|
3669
|
-
function
|
|
3685
|
+
function er(n) {
|
|
3670
3686
|
const r = [];
|
|
3671
3687
|
return n.forEach((e) => {
|
|
3672
3688
|
if (r.push(e), e.type === "category") {
|
|
3673
3689
|
const s = e;
|
|
3674
|
-
s.products && s.products.length > 0 && r.push(...
|
|
3690
|
+
s.products && s.products.length > 0 && r.push(...er(s.products)), s.categories && s.categories.length > 0 && r.push(...er(s.categories));
|
|
3675
3691
|
}
|
|
3676
3692
|
}), r;
|
|
3677
3693
|
}
|
|
3678
|
-
var
|
|
3679
|
-
class
|
|
3694
|
+
var gt = /* @__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))(gt || {}), q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(q || {});
|
|
3695
|
+
class mt extends w {
|
|
3680
3696
|
}
|
|
3681
|
-
class
|
|
3697
|
+
class Cr extends w {
|
|
3682
3698
|
}
|
|
3683
|
-
class
|
|
3699
|
+
class ss extends w {
|
|
3684
3700
|
}
|
|
3685
|
-
class
|
|
3701
|
+
class ft extends w {
|
|
3686
3702
|
}
|
|
3687
|
-
class M extends
|
|
3703
|
+
class M extends w {
|
|
3688
3704
|
/**
|
|
3689
3705
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
3690
3706
|
*/
|
|
@@ -3697,19 +3713,19 @@ class M extends R {
|
|
|
3697
3713
|
});
|
|
3698
3714
|
}
|
|
3699
3715
|
}
|
|
3700
|
-
class
|
|
3716
|
+
class Rr extends w {
|
|
3701
3717
|
}
|
|
3702
|
-
class
|
|
3718
|
+
class yt extends w {
|
|
3703
3719
|
}
|
|
3704
|
-
class
|
|
3720
|
+
class $e extends w {
|
|
3705
3721
|
}
|
|
3706
|
-
class
|
|
3722
|
+
class re extends w {
|
|
3707
3723
|
}
|
|
3708
|
-
class
|
|
3724
|
+
class Pr extends w {
|
|
3709
3725
|
}
|
|
3710
|
-
class wt extends
|
|
3726
|
+
class wt extends w {
|
|
3711
3727
|
}
|
|
3712
|
-
class
|
|
3728
|
+
class is {
|
|
3713
3729
|
/**
|
|
3714
3730
|
* Генерирует и возвращает данные-заглушку неопределённой записи справочника.
|
|
3715
3731
|
*
|
|
@@ -3728,11 +3744,11 @@ class ss {
|
|
|
3728
3744
|
return r.id === 0 && r.slug === "-undefined-";
|
|
3729
3745
|
}
|
|
3730
3746
|
}
|
|
3731
|
-
class
|
|
3747
|
+
class Dr extends w {
|
|
3732
3748
|
}
|
|
3733
|
-
class Ar extends
|
|
3749
|
+
class Ar extends w {
|
|
3734
3750
|
}
|
|
3735
|
-
class
|
|
3751
|
+
class Ne extends te {
|
|
3736
3752
|
/**
|
|
3737
3753
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3738
3754
|
*
|
|
@@ -3759,11 +3775,11 @@ class qe extends re {
|
|
|
3759
3775
|
/**
|
|
3760
3776
|
* Данные о валюте.
|
|
3761
3777
|
*/
|
|
3762
|
-
t(this, "currency", new
|
|
3763
|
-
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new
|
|
3778
|
+
t(this, "currency", new d());
|
|
3779
|
+
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new d(e.currency));
|
|
3764
3780
|
}
|
|
3765
3781
|
}
|
|
3766
|
-
class
|
|
3782
|
+
class Ue extends b {
|
|
3767
3783
|
/**
|
|
3768
3784
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3769
3785
|
*
|
|
@@ -3782,7 +3798,7 @@ class Ne extends k {
|
|
|
3782
3798
|
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;
|
|
3783
3799
|
}
|
|
3784
3800
|
}
|
|
3785
|
-
class B extends
|
|
3801
|
+
class B extends Ue {
|
|
3786
3802
|
/**
|
|
3787
3803
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3788
3804
|
*
|
|
@@ -3814,10 +3830,10 @@ class B extends Ne {
|
|
|
3814
3830
|
* Дата и время последнего удаления.
|
|
3815
3831
|
*/
|
|
3816
3832
|
t(this, "deletedAt");
|
|
3817
|
-
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 =
|
|
3833
|
+
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3818
3834
|
}
|
|
3819
3835
|
}
|
|
3820
|
-
class
|
|
3836
|
+
class Tr extends b {
|
|
3821
3837
|
/**
|
|
3822
3838
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3823
3839
|
*
|
|
@@ -3833,7 +3849,7 @@ class Dr extends k {
|
|
|
3833
3849
|
/**
|
|
3834
3850
|
* Группа партнеров (направление деятельности).
|
|
3835
3851
|
*/
|
|
3836
|
-
t(this, "partnerGroup", new
|
|
3852
|
+
t(this, "partnerGroup", new re());
|
|
3837
3853
|
/**
|
|
3838
3854
|
* Список контактных лиц контрагента.
|
|
3839
3855
|
*/
|
|
@@ -3867,7 +3883,7 @@ class Dr extends k {
|
|
|
3867
3883
|
*/
|
|
3868
3884
|
t(this, "updater");
|
|
3869
3885
|
if (e) {
|
|
3870
|
-
if (this.opf = new M(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt =
|
|
3886
|
+
if (this.opf = new M(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : e.createdAt, this.creator = e.creator ? new L(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? R(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new L(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new re(e.partnerGroup)), e.contacts) {
|
|
3871
3887
|
const s = [];
|
|
3872
3888
|
e.contacts.forEach((i) => {
|
|
3873
3889
|
s.push(new B(i));
|
|
@@ -3876,13 +3892,13 @@ class Dr extends k {
|
|
|
3876
3892
|
if (e.bankAccounts) {
|
|
3877
3893
|
const s = [];
|
|
3878
3894
|
e.bankAccounts.forEach((i) => {
|
|
3879
|
-
s.push(new
|
|
3895
|
+
s.push(new Ne(i));
|
|
3880
3896
|
}), this.bankAccounts = s;
|
|
3881
3897
|
}
|
|
3882
3898
|
}
|
|
3883
3899
|
}
|
|
3884
3900
|
}
|
|
3885
|
-
class vt extends
|
|
3901
|
+
class vt extends Tr {
|
|
3886
3902
|
/**
|
|
3887
3903
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3888
3904
|
*
|
|
@@ -3892,7 +3908,7 @@ class vt extends Dr {
|
|
|
3892
3908
|
super(r);
|
|
3893
3909
|
}
|
|
3894
3910
|
}
|
|
3895
|
-
class
|
|
3911
|
+
class $r extends Tr {
|
|
3896
3912
|
/**
|
|
3897
3913
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
3898
3914
|
*
|
|
@@ -3935,7 +3951,7 @@ class Tr extends Dr {
|
|
|
3935
3951
|
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 ?? "");
|
|
3936
3952
|
}
|
|
3937
3953
|
}
|
|
3938
|
-
class
|
|
3954
|
+
class ar extends $r {
|
|
3939
3955
|
/**
|
|
3940
3956
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
3941
3957
|
*
|
|
@@ -3950,7 +3966,7 @@ class $r extends Tr {
|
|
|
3950
3966
|
e && (this.kpp = e.kpp ?? "");
|
|
3951
3967
|
}
|
|
3952
3968
|
}
|
|
3953
|
-
class Ct extends
|
|
3969
|
+
class Ct extends ar {
|
|
3954
3970
|
/**
|
|
3955
3971
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3956
3972
|
*
|
|
@@ -3961,7 +3977,7 @@ class Ct extends $r {
|
|
|
3961
3977
|
/**
|
|
3962
3978
|
* Страна регистрации юридического лица нерезидента.
|
|
3963
3979
|
*/
|
|
3964
|
-
t(this, "registrationCountry", new
|
|
3980
|
+
t(this, "registrationCountry", new ee());
|
|
3965
3981
|
/**
|
|
3966
3982
|
* Регистрационный номер юридического лица нерезидента.
|
|
3967
3983
|
*/
|
|
@@ -3970,10 +3986,10 @@ class Ct extends $r {
|
|
|
3970
3986
|
* Налоговый номер юридического лица нерезидента.
|
|
3971
3987
|
*/
|
|
3972
3988
|
t(this, "taxNumber", "");
|
|
3973
|
-
e && (this.registrationCountry = new
|
|
3989
|
+
e && (this.registrationCountry = new ee(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
3974
3990
|
}
|
|
3975
3991
|
}
|
|
3976
|
-
class
|
|
3992
|
+
class Ce {
|
|
3977
3993
|
/**
|
|
3978
3994
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
3979
3995
|
*
|
|
@@ -3982,9 +3998,9 @@ class ve {
|
|
|
3982
3998
|
static createInstance(r) {
|
|
3983
3999
|
switch (r.opf.slug) {
|
|
3984
4000
|
case q.Ic:
|
|
3985
|
-
return new Tr(r);
|
|
3986
|
-
case q.UlR:
|
|
3987
4001
|
return new $r(r);
|
|
4002
|
+
case q.UlR:
|
|
4003
|
+
return new ar(r);
|
|
3988
4004
|
case q.UlNr:
|
|
3989
4005
|
return new Ct(r);
|
|
3990
4006
|
default:
|
|
@@ -3992,7 +4008,7 @@ class ve {
|
|
|
3992
4008
|
}
|
|
3993
4009
|
}
|
|
3994
4010
|
}
|
|
3995
|
-
class
|
|
4011
|
+
class Le extends te {
|
|
3996
4012
|
/**
|
|
3997
4013
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
3998
4014
|
*
|
|
@@ -4032,10 +4048,10 @@ class Rt extends B {
|
|
|
4032
4048
|
*/
|
|
4033
4049
|
addresses: []
|
|
4034
4050
|
});
|
|
4035
|
-
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new
|
|
4051
|
+
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Le(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Le(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Le(s))));
|
|
4036
4052
|
}
|
|
4037
4053
|
}
|
|
4038
|
-
class
|
|
4054
|
+
class Re extends tt {
|
|
4039
4055
|
/**
|
|
4040
4056
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
4041
4057
|
*
|
|
@@ -4072,10 +4088,10 @@ class Ce extends rt {
|
|
|
4072
4088
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
4073
4089
|
*/
|
|
4074
4090
|
t(this, "isTransportCompanyAddress");
|
|
4075
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
4091
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new gr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new B(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
|
|
4076
4092
|
}
|
|
4077
4093
|
}
|
|
4078
|
-
class
|
|
4094
|
+
class rr extends se {
|
|
4079
4095
|
/**
|
|
4080
4096
|
* Инициализирует экземпляр класса {@link Client}.
|
|
4081
4097
|
*
|
|
@@ -4125,7 +4141,7 @@ class er extends te {
|
|
|
4125
4141
|
* @inheritDoc
|
|
4126
4142
|
*/
|
|
4127
4143
|
t(this, "extraData");
|
|
4128
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) =>
|
|
4144
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Ce.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new B(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new Re(u))) ?? [], this.channelPrimaryInterest = new Cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ar(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new N(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Z(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
4129
4145
|
}
|
|
4130
4146
|
}
|
|
4131
4147
|
class br {
|
|
@@ -4138,11 +4154,11 @@ class br {
|
|
|
4138
4154
|
return Object.keys(this).forEach((e) => {
|
|
4139
4155
|
const s = this[e];
|
|
4140
4156
|
T(s) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
|
|
4141
|
-
|
|
4157
|
+
C(s) && s.trim().length === 0 || He(s.isNewRec) && s.isNewRec() || (r[e] = s);
|
|
4142
4158
|
}), r;
|
|
4143
4159
|
}
|
|
4144
4160
|
}
|
|
4145
|
-
class
|
|
4161
|
+
class ns extends br {
|
|
4146
4162
|
/**
|
|
4147
4163
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
4148
4164
|
*
|
|
@@ -4243,7 +4259,7 @@ class is extends br {
|
|
|
4243
4259
|
* @inheritDoc
|
|
4244
4260
|
*/
|
|
4245
4261
|
t(this, "lastOrder");
|
|
4246
|
-
this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((
|
|
4262
|
+
this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((A) => new Ae(A)), this.region = new he(e == null ? void 0 : e.region), this.country = new ee(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new S(e == null ? void 0 : e.createdAt), this.lastLoginDate = new S(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((A) => new De(A))) ?? [], this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((A) => new We(A))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((A) => new O(A)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new M(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new N(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((A) => new re(A)), this.contact = new Ue(e == null ? void 0 : e.contact), this.lastOrder = {
|
|
4247
4263
|
createdAt: new S((h = e == null ? void 0 : e.lastOrder) == null ? void 0 : h.createdAt),
|
|
4248
4264
|
creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
|
|
4249
4265
|
isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
|
|
@@ -4258,7 +4274,7 @@ class is extends br {
|
|
|
4258
4274
|
this.cities = [];
|
|
4259
4275
|
break;
|
|
4260
4276
|
case "region":
|
|
4261
|
-
this.region = new
|
|
4277
|
+
this.region = new he();
|
|
4262
4278
|
break;
|
|
4263
4279
|
case "isActive":
|
|
4264
4280
|
this.isActive = !0;
|
|
@@ -4291,7 +4307,7 @@ class is extends br {
|
|
|
4291
4307
|
this.partnerGroups = [];
|
|
4292
4308
|
break;
|
|
4293
4309
|
case "contact":
|
|
4294
|
-
this.contact = new
|
|
4310
|
+
this.contact = new Ue();
|
|
4295
4311
|
break;
|
|
4296
4312
|
default:
|
|
4297
4313
|
this[e] = void 0;
|
|
@@ -4308,7 +4324,7 @@ class is extends br {
|
|
|
4308
4324
|
return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, e;
|
|
4309
4325
|
}
|
|
4310
4326
|
}
|
|
4311
|
-
class Sr extends
|
|
4327
|
+
class Sr extends te {
|
|
4312
4328
|
/**
|
|
4313
4329
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
4314
4330
|
*
|
|
@@ -4324,14 +4340,10 @@ class Sr extends re {
|
|
|
4324
4340
|
* @inheritDoc
|
|
4325
4341
|
*/
|
|
4326
4342
|
t(this, "creator");
|
|
4327
|
-
|
|
4328
|
-
* @inheritDoc
|
|
4329
|
-
*/
|
|
4330
|
-
t(this, "isApproved1c");
|
|
4331
|
-
this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new d(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
4343
|
+
this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new L(e == null ? void 0 : e.creator);
|
|
4332
4344
|
}
|
|
4333
4345
|
}
|
|
4334
|
-
class Pt extends
|
|
4346
|
+
class Pt extends b {
|
|
4335
4347
|
/**
|
|
4336
4348
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4337
4349
|
*
|
|
@@ -4368,10 +4380,10 @@ class Pt extends k {
|
|
|
4368
4380
|
* @inheritDoc
|
|
4369
4381
|
*/
|
|
4370
4382
|
t(this, "curators");
|
|
4371
|
-
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Sr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new
|
|
4383
|
+
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Sr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new N(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 Be(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new We(u))) ?? void 0;
|
|
4372
4384
|
}
|
|
4373
4385
|
}
|
|
4374
|
-
class
|
|
4386
|
+
class Dt {
|
|
4375
4387
|
/**
|
|
4376
4388
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
4377
4389
|
*
|
|
@@ -4389,7 +4401,7 @@ class At {
|
|
|
4389
4401
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4390
4402
|
}
|
|
4391
4403
|
}
|
|
4392
|
-
class
|
|
4404
|
+
class os extends Dt {
|
|
4393
4405
|
/**
|
|
4394
4406
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4395
4407
|
*
|
|
@@ -4420,7 +4432,7 @@ class ns extends At {
|
|
|
4420
4432
|
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;
|
|
4421
4433
|
}
|
|
4422
4434
|
}
|
|
4423
|
-
class
|
|
4435
|
+
class cs {
|
|
4424
4436
|
/**
|
|
4425
4437
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
4426
4438
|
*
|
|
@@ -4438,7 +4450,7 @@ class os {
|
|
|
4438
4450
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4439
4451
|
}
|
|
4440
4452
|
}
|
|
4441
|
-
class
|
|
4453
|
+
class x extends Te {
|
|
4442
4454
|
/**
|
|
4443
4455
|
* Преобразует данные о клиенте в данные требуемые для запроса.
|
|
4444
4456
|
*
|
|
@@ -4577,7 +4589,7 @@ class a extends De {
|
|
|
4577
4589
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
4578
4590
|
*/
|
|
4579
4591
|
getClient(r) {
|
|
4580
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
4592
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new rr(e.data));
|
|
4581
4593
|
}
|
|
4582
4594
|
/**
|
|
4583
4595
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -4599,7 +4611,7 @@ class a extends De {
|
|
|
4599
4611
|
i,
|
|
4600
4612
|
(c) => {
|
|
4601
4613
|
const u = { ...c.data };
|
|
4602
|
-
return u.data = u.data.map((h) => new
|
|
4614
|
+
return u.data = u.data.map((h) => new se(h)), u;
|
|
4603
4615
|
},
|
|
4604
4616
|
void 0,
|
|
4605
4617
|
o
|
|
@@ -4625,7 +4637,7 @@ class a extends De {
|
|
|
4625
4637
|
return this.getClientsList({
|
|
4626
4638
|
groupOp: "and",
|
|
4627
4639
|
groups: [],
|
|
4628
|
-
filters: [{ field: "phone", op:
|
|
4640
|
+
filters: [{ field: "phone", op: Je.Contains, value: r }]
|
|
4629
4641
|
});
|
|
4630
4642
|
}
|
|
4631
4643
|
/**
|
|
@@ -4662,7 +4674,7 @@ class a extends De {
|
|
|
4662
4674
|
* @see /doc/api/internal#/Клиенты/api_internal_client_create
|
|
4663
4675
|
*/
|
|
4664
4676
|
createClientCommonData(r, e = {}) {
|
|
4665
|
-
return this.post("/internal/clients",
|
|
4677
|
+
return this.post("/internal/clients", x.transformClientDataToRequest(r), (s) => new rr(s.data), e);
|
|
4666
4678
|
}
|
|
4667
4679
|
/**
|
|
4668
4680
|
* Обновляет данные указанного клиента.
|
|
@@ -4672,7 +4684,7 @@ class a extends De {
|
|
|
4672
4684
|
* @see /doc/api/internal#/Клиенты/api_internal_client_change
|
|
4673
4685
|
*/
|
|
4674
4686
|
updateClientCommonData(r, e = {}) {
|
|
4675
|
-
return this.patch(`/internal/clients/${r.id}`,
|
|
4687
|
+
return this.patch(`/internal/clients/${r.id}`, x.transformClientDataToRequest(r), void 0, e);
|
|
4676
4688
|
}
|
|
4677
4689
|
/**
|
|
4678
4690
|
* Обновляет данные "Не беспокоить" указанного клиента.
|
|
@@ -4801,8 +4813,8 @@ class a extends De {
|
|
|
4801
4813
|
createContragentClientData(r, e, s = {}) {
|
|
4802
4814
|
return this.post(
|
|
4803
4815
|
`/internal/clients/${r}/contragents`,
|
|
4804
|
-
|
|
4805
|
-
(i) =>
|
|
4816
|
+
x.transformContragentClientDataToRequest(e),
|
|
4817
|
+
(i) => Ce.createInstance(i.data),
|
|
4806
4818
|
s
|
|
4807
4819
|
);
|
|
4808
4820
|
}
|
|
@@ -4817,8 +4829,8 @@ class a extends De {
|
|
|
4817
4829
|
updateContragentClientData(r, e, s = {}) {
|
|
4818
4830
|
return this.patch(
|
|
4819
4831
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
4820
|
-
|
|
4821
|
-
(i) =>
|
|
4832
|
+
x.transformContragentClientDataToRequest(e),
|
|
4833
|
+
(i) => Ce.createInstance(i.data),
|
|
4822
4834
|
s
|
|
4823
4835
|
);
|
|
4824
4836
|
}
|
|
@@ -4843,8 +4855,8 @@ class a extends De {
|
|
|
4843
4855
|
createClientDeliveryAddress(r, e, s = {}) {
|
|
4844
4856
|
return this.post(
|
|
4845
4857
|
`/internal/clients/${r}/delivery-addresses`,
|
|
4846
|
-
|
|
4847
|
-
(i) => new
|
|
4858
|
+
x.transformClientDeliveryAddressToRequest(e),
|
|
4859
|
+
(i) => new Re(i.data),
|
|
4848
4860
|
s
|
|
4849
4861
|
);
|
|
4850
4862
|
}
|
|
@@ -4859,8 +4871,8 @@ class a extends De {
|
|
|
4859
4871
|
updateClientDeliveryAddress(r, e, s = {}) {
|
|
4860
4872
|
return this.patch(
|
|
4861
4873
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
4862
|
-
|
|
4863
|
-
(i) => new
|
|
4874
|
+
x.transformClientDeliveryAddressToRequest(e),
|
|
4875
|
+
(i) => new Re(i.data),
|
|
4864
4876
|
s
|
|
4865
4877
|
);
|
|
4866
4878
|
}
|
|
@@ -4886,8 +4898,8 @@ class a extends De {
|
|
|
4886
4898
|
createContragentBankAccount(r, e, s, i = {}) {
|
|
4887
4899
|
return this.post(
|
|
4888
4900
|
`/internal/clients/${r}/contragents/${e}/bank-accounts`,
|
|
4889
|
-
|
|
4890
|
-
(o) => new
|
|
4901
|
+
x.transformClientContragentBankAccountToRequest(s),
|
|
4902
|
+
(o) => new Ne(o.data),
|
|
4891
4903
|
i
|
|
4892
4904
|
);
|
|
4893
4905
|
}
|
|
@@ -4903,8 +4915,8 @@ class a extends De {
|
|
|
4903
4915
|
updateContragentBankAccount(r, e, s, i = {}) {
|
|
4904
4916
|
return this.patch(
|
|
4905
4917
|
`/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
|
|
4906
|
-
|
|
4907
|
-
(o) => new
|
|
4918
|
+
x.transformClientContragentBankAccountToRequest(s),
|
|
4919
|
+
(o) => new Ne(o.data),
|
|
4908
4920
|
i
|
|
4909
4921
|
);
|
|
4910
4922
|
}
|
|
@@ -5126,7 +5138,7 @@ class a extends De {
|
|
|
5126
5138
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
5127
5139
|
}
|
|
5128
5140
|
}
|
|
5129
|
-
const
|
|
5141
|
+
const Y = class Y extends p {
|
|
5130
5142
|
/**
|
|
5131
5143
|
* Инициализирует экземпляр класса {@link HttpCachedRequester}.
|
|
5132
5144
|
*/
|
|
@@ -5136,7 +5148,7 @@ const Q = class Q extends p {
|
|
|
5136
5148
|
* Время кэширования данных ответов на запросы (секунд).
|
|
5137
5149
|
*/
|
|
5138
5150
|
t(this, "responseDataCacheTimeout");
|
|
5139
|
-
this.responseDataCacheTimeout =
|
|
5151
|
+
this.responseDataCacheTimeout = I().config.http.responseDataCacheTimeout;
|
|
5140
5152
|
}
|
|
5141
5153
|
/**
|
|
5142
5154
|
* Возвращает кэшированные данные.
|
|
@@ -5146,7 +5158,7 @@ const Q = class Q extends p {
|
|
|
5146
5158
|
*/
|
|
5147
5159
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
5148
5160
|
static getCachedResponse(e) {
|
|
5149
|
-
const s =
|
|
5161
|
+
const s = Y.responseDataCache.get(e);
|
|
5150
5162
|
if (s && s.validTo > /* @__PURE__ */ new Date())
|
|
5151
5163
|
return s.val;
|
|
5152
5164
|
}
|
|
@@ -5157,8 +5169,8 @@ const Q = class Q extends p {
|
|
|
5157
5169
|
* @param data Данные для кэширования.
|
|
5158
5170
|
*/
|
|
5159
5171
|
cacheResponse(e, s) {
|
|
5160
|
-
|
|
5161
|
-
validTo:
|
|
5172
|
+
Y.responseDataCache.set(e, {
|
|
5173
|
+
validTo: jr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
5162
5174
|
val: s
|
|
5163
5175
|
});
|
|
5164
5176
|
}
|
|
@@ -5173,9 +5185,9 @@ const Q = class Q extends p {
|
|
|
5173
5185
|
*/
|
|
5174
5186
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
5175
5187
|
getTypedDataArrayRequester(e, s, i = !1, o = {}) {
|
|
5176
|
-
const c = s + (
|
|
5188
|
+
const c = s + (X(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? Y.getCachedResponse(c) : void 0;
|
|
5177
5189
|
return u ? Promise.resolve(u) : this.get(s, o).then((h) => {
|
|
5178
|
-
const m = h.map((f) =>
|
|
5190
|
+
const m = h.map((f) => je.instanceInitializer(e, f));
|
|
5179
5191
|
return i && m && this.cacheResponse(s, m), m;
|
|
5180
5192
|
});
|
|
5181
5193
|
}
|
|
@@ -5183,9 +5195,9 @@ const Q = class Q extends p {
|
|
|
5183
5195
|
/**
|
|
5184
5196
|
* Кэш результатов запросов.
|
|
5185
5197
|
*/
|
|
5186
|
-
t(
|
|
5187
|
-
let
|
|
5188
|
-
class
|
|
5198
|
+
t(Y, "responseDataCache", /* @__PURE__ */ new Map());
|
|
5199
|
+
let ge = Y;
|
|
5200
|
+
class ls extends p {
|
|
5189
5201
|
/**
|
|
5190
5202
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
5191
5203
|
*
|
|
@@ -5199,7 +5211,7 @@ class cs extends p {
|
|
|
5199
5211
|
});
|
|
5200
5212
|
}
|
|
5201
5213
|
}
|
|
5202
|
-
class
|
|
5214
|
+
class us {
|
|
5203
5215
|
/**
|
|
5204
5216
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
5205
5217
|
*
|
|
@@ -5218,11 +5230,11 @@ class ls {
|
|
|
5218
5230
|
* Текущая версия приложения.
|
|
5219
5231
|
*/
|
|
5220
5232
|
t(this, "version");
|
|
5221
|
-
this.date =
|
|
5233
|
+
this.date = C(r == null ? void 0 : r.date) ? R(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";
|
|
5222
5234
|
}
|
|
5223
5235
|
}
|
|
5224
|
-
var
|
|
5225
|
-
class
|
|
5236
|
+
var At = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n))(At || {});
|
|
5237
|
+
class ps extends p {
|
|
5226
5238
|
/**
|
|
5227
5239
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
5228
5240
|
*
|
|
@@ -5252,7 +5264,7 @@ class us extends p {
|
|
|
5252
5264
|
const o = this.get(
|
|
5253
5265
|
`internal/catalog/categories/${r.id}/configurators/${(c = r.properties) == null ? void 0 : c.configurator}/product`,
|
|
5254
5266
|
{ params: s, client_id: e },
|
|
5255
|
-
(u) => new
|
|
5267
|
+
(u) => new k(u.data)
|
|
5256
5268
|
);
|
|
5257
5269
|
return o.catch((u) => {
|
|
5258
5270
|
this.errorResponseHandler(u, i);
|
|
@@ -5313,18 +5325,18 @@ class us extends p {
|
|
|
5313
5325
|
});
|
|
5314
5326
|
}
|
|
5315
5327
|
}
|
|
5316
|
-
class
|
|
5328
|
+
class hs {
|
|
5317
5329
|
/**
|
|
5318
5330
|
* Возвращает диапазон дат по умолчанию.
|
|
5319
5331
|
*/
|
|
5320
5332
|
static defaultDateRanges() {
|
|
5321
|
-
const r =
|
|
5333
|
+
const r = Gr(/* @__PURE__ */ new Date(), 1);
|
|
5322
5334
|
return {
|
|
5323
5335
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5324
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
5325
|
-
today: { label: "Сегодня", from:
|
|
5326
|
-
yesterday: { label: "Вчера", from:
|
|
5327
|
-
tomorrow: { label: "Завтра", from:
|
|
5336
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: Vr(r), to: Er(r) },
|
|
5337
|
+
today: { label: "Сегодня", from: _e(), to: Jr() },
|
|
5338
|
+
yesterday: { label: "Вчера", from: Wr(), to: zr() },
|
|
5339
|
+
tomorrow: { label: "Завтра", from: Br(), to: Mr() }
|
|
5328
5340
|
};
|
|
5329
5341
|
}
|
|
5330
5342
|
}
|
|
@@ -5356,16 +5368,16 @@ class kr {
|
|
|
5356
5368
|
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;
|
|
5357
5369
|
}
|
|
5358
5370
|
}
|
|
5359
|
-
function
|
|
5371
|
+
function gs(n, r) {
|
|
5360
5372
|
const e = [2, 0, 1, 1, 1, 2];
|
|
5361
5373
|
return r[n % 100 > 4 && n % 100 < 20 ? 2 : e[Math.min(n % 10, 5)]];
|
|
5362
5374
|
}
|
|
5363
|
-
class
|
|
5375
|
+
class ms {
|
|
5364
5376
|
/**
|
|
5365
5377
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5366
5378
|
*/
|
|
5367
5379
|
static generateUndefinedManagerInstance() {
|
|
5368
|
-
return new
|
|
5380
|
+
return new De({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
|
|
5369
5381
|
}
|
|
5370
5382
|
/**
|
|
5371
5383
|
* Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
|
|
@@ -5376,15 +5388,15 @@ class gs {
|
|
|
5376
5388
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5377
5389
|
}
|
|
5378
5390
|
}
|
|
5379
|
-
class Tt extends
|
|
5391
|
+
class Tt extends ge {
|
|
5380
5392
|
/**
|
|
5381
5393
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5382
5394
|
*/
|
|
5383
5395
|
async getManagers() {
|
|
5384
|
-
const r = "/internal/managers", e =
|
|
5396
|
+
const r = "/internal/managers", e = ge.getCachedResponse(r);
|
|
5385
5397
|
if (e)
|
|
5386
5398
|
return e;
|
|
5387
|
-
const i = (await this.get(r)).data.map((o) =>
|
|
5399
|
+
const i = (await this.get(r)).data.map((o) => je.instanceInitializer(De, o));
|
|
5388
5400
|
return this.cacheResponse(r, i), i;
|
|
5389
5401
|
}
|
|
5390
5402
|
}
|
|
@@ -5420,15 +5432,15 @@ class Ir extends Sr {
|
|
|
5420
5432
|
/**
|
|
5421
5433
|
* @inheritDoc
|
|
5422
5434
|
*/
|
|
5423
|
-
t(this, "
|
|
5435
|
+
t(this, "statusDetail");
|
|
5424
5436
|
/**
|
|
5425
5437
|
* @inheritDoc
|
|
5426
5438
|
*/
|
|
5427
|
-
t(this, "
|
|
5439
|
+
t(this, "salesDirection");
|
|
5428
5440
|
/**
|
|
5429
5441
|
* @inheritDoc
|
|
5430
5442
|
*/
|
|
5431
|
-
t(this, "
|
|
5443
|
+
t(this, "attachedAt");
|
|
5432
5444
|
/**
|
|
5433
5445
|
* @inheritDoc
|
|
5434
5446
|
*/
|
|
@@ -5445,20 +5457,20 @@ class Ir extends Sr {
|
|
|
5445
5457
|
* @inheritDoc
|
|
5446
5458
|
*/
|
|
5447
5459
|
t(this, "isLargeOrder");
|
|
5448
|
-
this.client = new
|
|
5460
|
+
this.client = new se(e == null ? void 0 : e.client), this.payment = {
|
|
5449
5461
|
type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
|
|
5450
5462
|
status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
|
|
5451
5463
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
5452
5464
|
}, this.delivery = {
|
|
5453
5465
|
type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
|
|
5454
|
-
date:
|
|
5455
|
-
address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new
|
|
5456
|
-
warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new
|
|
5457
|
-
}, this.attachedUser = e != null && e.attachedUser ? new
|
|
5466
|
+
date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? R(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
|
|
5467
|
+
address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new Re(e.delivery.address) : void 0,
|
|
5468
|
+
warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new Z(e.delivery.warehouse) : void 0
|
|
5469
|
+
}, this.attachedUser = e != null && e.attachedUser ? new L(e == null ? void 0 : e.attachedUser) : void 0, this.status = new $e(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new w(e.statusDetail) : void 0, this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.attachedAt = C(e == null ? void 0 : e.attachedAt) ? R(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
|
|
5458
5470
|
}
|
|
5459
5471
|
}
|
|
5460
5472
|
var $t = /* @__PURE__ */ ((n) => (n.New = "new", n.WorkedOut = "worked_out", n.Pending = "pending", n.Completed = "completed", n.Declined = "declined", n.Deleted = "deleted", n))($t || {});
|
|
5461
|
-
class
|
|
5473
|
+
class a extends ge {
|
|
5462
5474
|
/**
|
|
5463
5475
|
* Возвращает {@link Promise} для получения данных указанного справочника.
|
|
5464
5476
|
*
|
|
@@ -5467,39 +5479,39 @@ class b extends he {
|
|
|
5467
5479
|
* и использовать в случае аналогичных запросов.
|
|
5468
5480
|
*/
|
|
5469
5481
|
getReference(r, e = !1) {
|
|
5470
|
-
return this.getTypedDataArrayRequester(
|
|
5482
|
+
return this.getTypedDataArrayRequester(mt, `/internal/references/${r}`, e);
|
|
5471
5483
|
}
|
|
5472
5484
|
/**
|
|
5473
5485
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
5474
5486
|
* первичного интереса.
|
|
5475
5487
|
*/
|
|
5476
5488
|
getChannelPrimaryInterest() {
|
|
5477
|
-
return this.getTypedDataArrayRequester(
|
|
5489
|
+
return this.getTypedDataArrayRequester(Cr, "/internal/references/channel-primary-interest", !0);
|
|
5478
5490
|
}
|
|
5479
5491
|
/**
|
|
5480
5492
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
5481
5493
|
*/
|
|
5482
5494
|
getContactPositions() {
|
|
5483
|
-
return this.getTypedDataArrayRequester(
|
|
5495
|
+
return this.getTypedDataArrayRequester(ft, "/internal/references/contact-position", !0);
|
|
5484
5496
|
}
|
|
5485
5497
|
/**
|
|
5486
5498
|
* Возвращает {@link Promise} для получения справочника списка направлений кураторства.
|
|
5487
5499
|
*/
|
|
5488
5500
|
getCuratedDirection() {
|
|
5489
|
-
return this.getTypedDataArrayRequester(
|
|
5501
|
+
return this.getTypedDataArrayRequester(ze, "/internal/references/curated-direction", !0);
|
|
5490
5502
|
}
|
|
5491
5503
|
/**
|
|
5492
5504
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
5493
5505
|
*/
|
|
5494
5506
|
getCurrency() {
|
|
5495
|
-
return this.getTypedDataArrayRequester(
|
|
5507
|
+
return this.getTypedDataArrayRequester(d, "/public/references/currency", !0);
|
|
5496
5508
|
}
|
|
5497
5509
|
/**
|
|
5498
5510
|
* Возвращает {@link Promise} для получения справочника данных
|
|
5499
5511
|
* групп партнеров (направлений деятельности).
|
|
5500
5512
|
*/
|
|
5501
5513
|
getPartnerGroup() {
|
|
5502
|
-
return this.getTypedDataArrayRequester(
|
|
5514
|
+
return this.getTypedDataArrayRequester(re, "/internal/references/partner-group", !0);
|
|
5503
5515
|
}
|
|
5504
5516
|
/**
|
|
5505
5517
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
@@ -5511,31 +5523,31 @@ class b extends he {
|
|
|
5511
5523
|
* Возвращает {@link Promise} для получения справочника операторов.
|
|
5512
5524
|
*/
|
|
5513
5525
|
getOperators() {
|
|
5514
|
-
return this.getTypedDataArrayRequester(
|
|
5526
|
+
return this.getTypedDataArrayRequester(Rr, "/internal/references/operator", !0);
|
|
5515
5527
|
}
|
|
5516
5528
|
/**
|
|
5517
5529
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
5518
5530
|
*/
|
|
5519
5531
|
getOrderPaymentStatuses() {
|
|
5520
|
-
return this.getTypedDataArrayRequester(
|
|
5532
|
+
return this.getTypedDataArrayRequester(yt, "/public/references/order-payment-status", !0);
|
|
5521
5533
|
}
|
|
5522
5534
|
/**
|
|
5523
5535
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
5524
5536
|
*/
|
|
5525
5537
|
getOrderStatuses() {
|
|
5526
|
-
return this.getTypedDataArrayRequester(
|
|
5538
|
+
return this.getTypedDataArrayRequester($e, "/internal/references/order-status", !0);
|
|
5527
5539
|
}
|
|
5528
5540
|
/**
|
|
5529
5541
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
5530
5542
|
*/
|
|
5531
5543
|
getPaymentTypes() {
|
|
5532
|
-
return this.getTypedDataArrayRequester(
|
|
5544
|
+
return this.getTypedDataArrayRequester(Pr, "/public/references/payment-type", !0);
|
|
5533
5545
|
}
|
|
5534
5546
|
/**
|
|
5535
5547
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
5536
5548
|
*/
|
|
5537
5549
|
getResourceTypes() {
|
|
5538
|
-
return this.getTypedDataArrayRequester(
|
|
5550
|
+
return this.getTypedDataArrayRequester(Dr, "/internal/references/resource-type", !0);
|
|
5539
5551
|
}
|
|
5540
5552
|
/**
|
|
5541
5553
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
@@ -5563,7 +5575,7 @@ class b extends he {
|
|
|
5563
5575
|
* @param term Терм поиска.
|
|
5564
5576
|
*/
|
|
5565
5577
|
searchRegion(r) {
|
|
5566
|
-
return this.getTypedDataArrayRequester(
|
|
5578
|
+
return this.getTypedDataArrayRequester(he, `/internal/references/region-with-country/search?term=${r}`);
|
|
5567
5579
|
}
|
|
5568
5580
|
/**
|
|
5569
5581
|
* Выполняет поиск данных о странах по терму в названии.
|
|
@@ -5571,7 +5583,7 @@ class b extends he {
|
|
|
5571
5583
|
* @param term Терм поиска.
|
|
5572
5584
|
*/
|
|
5573
5585
|
searchCountry(r) {
|
|
5574
|
-
return this.getTypedDataArrayRequester(
|
|
5586
|
+
return this.getTypedDataArrayRequester(ee, `/internal/references/country/search?term=${r}`);
|
|
5575
5587
|
}
|
|
5576
5588
|
/**
|
|
5577
5589
|
* Возвращает {@link Promise} для получения справочника типов доставки.
|
|
@@ -5583,19 +5595,19 @@ class b extends he {
|
|
|
5583
5595
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
5584
5596
|
*/
|
|
5585
5597
|
getWarehouses() {
|
|
5586
|
-
return this.getTypedDataArrayRequester(
|
|
5598
|
+
return this.getTypedDataArrayRequester(Z, "/public/references/warehouse", !0);
|
|
5587
5599
|
}
|
|
5588
5600
|
/**
|
|
5589
5601
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
5590
5602
|
*/
|
|
5591
5603
|
getPropertyTypes() {
|
|
5592
|
-
return this.getTypedDataArrayRequester(
|
|
5604
|
+
return this.getTypedDataArrayRequester(vr, "/internal/references/property-type", !0);
|
|
5593
5605
|
}
|
|
5594
5606
|
/**
|
|
5595
5607
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
5596
5608
|
*/
|
|
5597
5609
|
getPriceCoefficients() {
|
|
5598
|
-
return this.getTypedDataArrayRequester(
|
|
5610
|
+
return this.getTypedDataArrayRequester(Pe, "/internal/references/price-coefficient", !0);
|
|
5599
5611
|
}
|
|
5600
5612
|
/**
|
|
5601
5613
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
@@ -5605,7 +5617,7 @@ class b extends he {
|
|
|
5605
5617
|
}
|
|
5606
5618
|
}
|
|
5607
5619
|
const $ = z("common.references_private", () => {
|
|
5608
|
-
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), m = y(void 0), f = y(void 0),
|
|
5620
|
+
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), m = y(void 0), f = y(void 0), A = y(void 0), ie = y(void 0), ne = y(void 0), W = y(void 0), J = y(void 0), ae = y(void 0), be = y(void 0), l = y(void 0);
|
|
5609
5621
|
return {
|
|
5610
5622
|
/**
|
|
5611
5623
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5654,15 +5666,15 @@ const $ = z("common.references_private", () => {
|
|
|
5654
5666
|
/**
|
|
5655
5667
|
* Справочник групп партнеров.
|
|
5656
5668
|
*/
|
|
5657
|
-
partnerGroupReference:
|
|
5669
|
+
partnerGroupReference: A,
|
|
5658
5670
|
/**
|
|
5659
5671
|
* Справочник типов файлов продукктов/категорий.
|
|
5660
5672
|
*/
|
|
5661
|
-
productFileTypeReference:
|
|
5673
|
+
productFileTypeReference: ie,
|
|
5662
5674
|
/**
|
|
5663
5675
|
* Справочник типов ресурсов.
|
|
5664
5676
|
*/
|
|
5665
|
-
resourceTypesReference:
|
|
5677
|
+
resourceTypesReference: ne,
|
|
5666
5678
|
/**
|
|
5667
5679
|
* Справочник направлений продаж.
|
|
5668
5680
|
*/
|
|
@@ -5674,107 +5686,107 @@ const $ = z("common.references_private", () => {
|
|
|
5674
5686
|
/**
|
|
5675
5687
|
* Справочник складов.
|
|
5676
5688
|
*/
|
|
5677
|
-
warehousesReference:
|
|
5689
|
+
warehousesReference: ae,
|
|
5678
5690
|
/**
|
|
5679
5691
|
* Справочник типов свойств.
|
|
5680
5692
|
*/
|
|
5681
|
-
propertyTypesReference:
|
|
5693
|
+
propertyTypesReference: be,
|
|
5682
5694
|
/**
|
|
5683
5695
|
* Справочник коэффициентов цен.
|
|
5684
5696
|
*/
|
|
5685
5697
|
priceCoefficientsReference: l
|
|
5686
5698
|
};
|
|
5687
|
-
}),
|
|
5688
|
-
const n =
|
|
5699
|
+
}), fs = z("common.references", () => {
|
|
5700
|
+
const n = D(() => {
|
|
5689
5701
|
const l = $();
|
|
5690
|
-
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(
|
|
5702
|
+
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(a).getChannelPrimaryInterest().then((g) => {
|
|
5691
5703
|
l.channelPrimaryInterestReference = g;
|
|
5692
|
-
}).catch(
|
|
5693
|
-
}), r =
|
|
5704
|
+
}).catch(v)), l.channelPrimaryInterestReference;
|
|
5705
|
+
}), r = D(() => {
|
|
5694
5706
|
const l = $();
|
|
5695
|
-
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance(
|
|
5707
|
+
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, p.getInstance(a).getContactPositions().then((g) => {
|
|
5696
5708
|
l.contactPositionsReference = g;
|
|
5697
|
-
}).catch(
|
|
5698
|
-
}), e =
|
|
5709
|
+
}).catch(v)), l.contactPositionsReference;
|
|
5710
|
+
}), e = D(() => {
|
|
5699
5711
|
const l = $();
|
|
5700
|
-
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance(
|
|
5712
|
+
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, p.getInstance(a).getCurrency().then((g) => {
|
|
5701
5713
|
l.currencyReference = g;
|
|
5702
|
-
}).catch(
|
|
5703
|
-
}), s =
|
|
5714
|
+
}).catch(v)), l.currencyReference;
|
|
5715
|
+
}), s = D(() => {
|
|
5704
5716
|
const l = $();
|
|
5705
|
-
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance(
|
|
5717
|
+
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, p.getInstance(a).getOpf().then((g) => {
|
|
5706
5718
|
l.opfReference = g;
|
|
5707
|
-
}).catch(
|
|
5708
|
-
}), i =
|
|
5719
|
+
}).catch(v)), l.opfReference;
|
|
5720
|
+
}), i = D(() => {
|
|
5709
5721
|
const l = $();
|
|
5710
|
-
return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, p.getInstance(
|
|
5722
|
+
return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, p.getInstance(a).getOperators().then((g) => {
|
|
5711
5723
|
l.operatorReference = g;
|
|
5712
|
-
}).catch(
|
|
5713
|
-
}), o =
|
|
5724
|
+
}).catch(v)), l.operatorReference;
|
|
5725
|
+
}), o = D(() => {
|
|
5714
5726
|
const l = $();
|
|
5715
|
-
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(
|
|
5727
|
+
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(a).getOrderPaymentStatuses().then((g) => {
|
|
5716
5728
|
l.orderPaymentStatusReference = g;
|
|
5717
|
-
}).catch(
|
|
5718
|
-
}), c =
|
|
5729
|
+
}).catch(v)), l.orderPaymentStatusReference;
|
|
5730
|
+
}), c = D(() => {
|
|
5719
5731
|
const l = $();
|
|
5720
|
-
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance(
|
|
5732
|
+
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, p.getInstance(a).getOrderStatuses().then((g) => {
|
|
5721
5733
|
l.orderStatusReference = g;
|
|
5722
|
-
}).catch(
|
|
5723
|
-
}), u =
|
|
5734
|
+
}).catch(v)), l.orderStatusReference;
|
|
5735
|
+
}), u = D(() => {
|
|
5724
5736
|
const l = $();
|
|
5725
|
-
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance(
|
|
5737
|
+
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, p.getInstance(a).getPaymentTypes().then((g) => {
|
|
5726
5738
|
l.paymentTypeReference = g;
|
|
5727
|
-
}).catch(
|
|
5728
|
-
}), h =
|
|
5739
|
+
}).catch(v)), l.paymentTypeReference;
|
|
5740
|
+
}), h = D(() => {
|
|
5729
5741
|
const l = $();
|
|
5730
|
-
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance(
|
|
5742
|
+
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, p.getInstance(a).getPartnerGroup().then((g) => {
|
|
5731
5743
|
l.partnerGroupReference = g;
|
|
5732
|
-
}).catch(
|
|
5733
|
-
}), m =
|
|
5744
|
+
}).catch(v)), l.partnerGroupReference;
|
|
5745
|
+
}), m = D(() => {
|
|
5734
5746
|
const l = $();
|
|
5735
|
-
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance(
|
|
5747
|
+
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, p.getInstance(a).getProductFileType().then((g) => {
|
|
5736
5748
|
l.productFileTypeReference = g;
|
|
5737
|
-
}).catch(
|
|
5738
|
-
}), f =
|
|
5749
|
+
}).catch(v)), l.productFileTypeReference;
|
|
5750
|
+
}), f = D(() => {
|
|
5739
5751
|
const l = $();
|
|
5740
|
-
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance(
|
|
5752
|
+
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, p.getInstance(a).getResourceTypes().then((g) => {
|
|
5741
5753
|
l.resourceTypesReference = g;
|
|
5742
|
-
}).catch(
|
|
5743
|
-
}),
|
|
5754
|
+
}).catch(v)), l.resourceTypesReference;
|
|
5755
|
+
}), A = D(() => {
|
|
5744
5756
|
const l = $();
|
|
5745
|
-
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(
|
|
5757
|
+
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(a).getSalesDirections().then((g) => {
|
|
5746
5758
|
l.salesDirectionsReference = g;
|
|
5747
|
-
}).catch(
|
|
5748
|
-
}),
|
|
5759
|
+
}).catch(v)), l.salesDirectionsReference;
|
|
5760
|
+
}), ie = D(() => {
|
|
5749
5761
|
const l = $();
|
|
5750
|
-
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(
|
|
5762
|
+
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(a).getSourcePrimaryInterest().then((g) => {
|
|
5751
5763
|
l.sourcePrimaryInterestReference = g;
|
|
5752
|
-
}).catch(
|
|
5753
|
-
}),
|
|
5764
|
+
}).catch(v)), l.sourcePrimaryInterestReference;
|
|
5765
|
+
}), ne = D(() => {
|
|
5754
5766
|
const l = $();
|
|
5755
|
-
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(
|
|
5767
|
+
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(a).getDeliveryTypes().then((g) => {
|
|
5756
5768
|
l.deliveryTypeReference = g;
|
|
5757
|
-
}).catch(
|
|
5758
|
-
}), W =
|
|
5769
|
+
}).catch(v)), l.deliveryTypeReference;
|
|
5770
|
+
}), W = D(() => {
|
|
5759
5771
|
const l = $();
|
|
5760
5772
|
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(Tt).getManagers().then((g) => {
|
|
5761
5773
|
l.managersList = g;
|
|
5762
|
-
}).catch(
|
|
5763
|
-
}), J =
|
|
5774
|
+
}).catch(v)), l.managersList;
|
|
5775
|
+
}), J = D(() => {
|
|
5764
5776
|
const l = $();
|
|
5765
|
-
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance(
|
|
5777
|
+
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance(a).getWarehouses().then((g) => {
|
|
5766
5778
|
l.warehousesReference = g;
|
|
5767
|
-
}).catch(
|
|
5768
|
-
}),
|
|
5779
|
+
}).catch(v)), l.warehousesReference;
|
|
5780
|
+
}), ae = D(() => {
|
|
5769
5781
|
const l = $();
|
|
5770
|
-
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(
|
|
5782
|
+
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(a).getPropertyTypes().then((g) => {
|
|
5771
5783
|
l.propertyTypesReference = g;
|
|
5772
|
-
}).catch(
|
|
5773
|
-
}),
|
|
5784
|
+
}).catch(v)), l.propertyTypesReference;
|
|
5785
|
+
}), be = D(() => {
|
|
5774
5786
|
const l = $();
|
|
5775
|
-
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(
|
|
5787
|
+
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(a).getPriceCoefficients().then((g) => {
|
|
5776
5788
|
l.priceCoefficientsReference = g;
|
|
5777
|
-
}).catch(
|
|
5789
|
+
}).catch(v)), l.priceCoefficientsReference;
|
|
5778
5790
|
});
|
|
5779
5791
|
return {
|
|
5780
5792
|
/**
|
|
@@ -5824,15 +5836,15 @@ const $ = z("common.references_private", () => {
|
|
|
5824
5836
|
/**
|
|
5825
5837
|
* Справочник направлений продаж.
|
|
5826
5838
|
*/
|
|
5827
|
-
salesDirectionsReference:
|
|
5839
|
+
salesDirectionsReference: A,
|
|
5828
5840
|
/**
|
|
5829
5841
|
* Справочник каналов первичного интереса.
|
|
5830
5842
|
*/
|
|
5831
|
-
sourcePrimaryInterestsReference:
|
|
5843
|
+
sourcePrimaryInterestsReference: ie,
|
|
5832
5844
|
/**
|
|
5833
5845
|
* Справочник типов доставки.
|
|
5834
5846
|
*/
|
|
5835
|
-
deliveryTypeReference:
|
|
5847
|
+
deliveryTypeReference: ne,
|
|
5836
5848
|
/**
|
|
5837
5849
|
* Список менеджеров.
|
|
5838
5850
|
*/
|
|
@@ -5844,14 +5856,14 @@ const $ = z("common.references_private", () => {
|
|
|
5844
5856
|
/**
|
|
5845
5857
|
* Справочник типов свойств.
|
|
5846
5858
|
*/
|
|
5847
|
-
propertyTypesReference:
|
|
5859
|
+
propertyTypesReference: ae,
|
|
5848
5860
|
/**
|
|
5849
5861
|
* Справочник коэффициентов цен.
|
|
5850
5862
|
*/
|
|
5851
|
-
priceCoefficientsReference:
|
|
5863
|
+
priceCoefficientsReference: be
|
|
5852
5864
|
};
|
|
5853
5865
|
});
|
|
5854
|
-
class
|
|
5866
|
+
class ys extends br {
|
|
5855
5867
|
/**
|
|
5856
5868
|
* Инициализирует экземпляр класса {@link OrdersListFilters}.
|
|
5857
5869
|
*
|
|
@@ -5904,10 +5916,6 @@ class fs extends br {
|
|
|
5904
5916
|
* @inheritDoc
|
|
5905
5917
|
*/
|
|
5906
5918
|
t(this, "isApproved");
|
|
5907
|
-
/**
|
|
5908
|
-
* @inheritDoc
|
|
5909
|
-
*/
|
|
5910
|
-
t(this, "isApproved1c");
|
|
5911
5919
|
/**
|
|
5912
5920
|
* @inheritDoc
|
|
5913
5921
|
*/
|
|
@@ -5919,19 +5927,19 @@ class fs extends br {
|
|
|
5919
5927
|
/**
|
|
5920
5928
|
* @inheritDoc
|
|
5921
5929
|
*/
|
|
5922
|
-
t(this, "
|
|
5930
|
+
t(this, "attachedAt", new S());
|
|
5923
5931
|
/**
|
|
5924
5932
|
* @inheritDoc
|
|
5925
5933
|
*/
|
|
5926
|
-
t(this, "
|
|
5934
|
+
t(this, "salesDirections");
|
|
5927
5935
|
/**
|
|
5928
5936
|
* @inheritDoc
|
|
5929
5937
|
*/
|
|
5930
|
-
t(this, "
|
|
5938
|
+
t(this, "status");
|
|
5931
5939
|
/**
|
|
5932
5940
|
* @inheritDoc
|
|
5933
5941
|
*/
|
|
5934
|
-
t(this, "
|
|
5942
|
+
t(this, "statusDetail");
|
|
5935
5943
|
/**
|
|
5936
5944
|
* @inheritDoc
|
|
5937
5945
|
*/
|
|
@@ -5956,7 +5964,7 @@ class fs extends br {
|
|
|
5956
5964
|
* @inheritDoc
|
|
5957
5965
|
*/
|
|
5958
5966
|
t(this, "onlyMyRegions");
|
|
5959
|
-
this.attachedOperators = (s = e == null ? void 0 : e.attachedOperators) == null ? void 0 : s.map((c) => new
|
|
5967
|
+
this.attachedOperators = (s = e == null ? void 0 : e.attachedOperators) == null ? void 0 : s.map((c) => new Rr(c)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new se(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new S(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new L(e.creator) : void 0, this.deliveryDate = new S(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((c) => new Ae(c)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new S(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((c) => new O(c)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new N(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Pr(e.paymentType) : void 0, this.warehouse = e != null && e.warehouse ? new Z(e.warehouse) : void 0, this.isToProcess = e == null ? void 0 : e.isToProcess;
|
|
5960
5968
|
}
|
|
5961
5969
|
/**
|
|
5962
5970
|
* @inheritDoc
|
|
@@ -5978,11 +5986,8 @@ class fs extends br {
|
|
|
5978
5986
|
case "clientCities":
|
|
5979
5987
|
this.clientCities = [];
|
|
5980
5988
|
break;
|
|
5981
|
-
case "
|
|
5982
|
-
this.
|
|
5983
|
-
break;
|
|
5984
|
-
case "processedAt":
|
|
5985
|
-
this.processedAt.from = null, this.processedAt.to = null;
|
|
5989
|
+
case "attachedAt":
|
|
5990
|
+
this.attachedAt.from = null, this.attachedAt.to = null;
|
|
5986
5991
|
break;
|
|
5987
5992
|
case "salesDirection":
|
|
5988
5993
|
this.salesDirections = [];
|
|
@@ -5991,7 +5996,7 @@ class fs extends br {
|
|
|
5991
5996
|
this.status = [];
|
|
5992
5997
|
break;
|
|
5993
5998
|
case "warehouse":
|
|
5994
|
-
this.warehouse = new
|
|
5999
|
+
this.warehouse = new Z();
|
|
5995
6000
|
break;
|
|
5996
6001
|
default:
|
|
5997
6002
|
this[e] = void 0;
|
|
@@ -6003,12 +6008,12 @@ class fs extends br {
|
|
|
6003
6008
|
* @inheritDoc
|
|
6004
6009
|
*/
|
|
6005
6010
|
asClearRaw() {
|
|
6006
|
-
var s, i, o, c, u, h
|
|
6011
|
+
var s, i, o, c, u, h;
|
|
6007
6012
|
const e = super.asClearRaw();
|
|
6008
|
-
return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.
|
|
6013
|
+
return !((s = e == null ? void 0 : e.createdAt) != null && s.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.attachedAt) != null && u.from) && !((h = e == null ? void 0 : e.attachedAt) != null && h.to) && delete e.attachedAt, e;
|
|
6009
6014
|
}
|
|
6010
6015
|
}
|
|
6011
|
-
class
|
|
6016
|
+
class at extends mr {
|
|
6012
6017
|
/**
|
|
6013
6018
|
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
6014
6019
|
*
|
|
@@ -6056,16 +6061,17 @@ class bt extends gr {
|
|
|
6056
6061
|
* @inheritDoc
|
|
6057
6062
|
*/
|
|
6058
6063
|
t(this, "currency");
|
|
6059
|
-
this.product = new j(e.product), this.currency = new
|
|
6064
|
+
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;
|
|
6060
6065
|
}
|
|
6061
6066
|
}
|
|
6062
|
-
class
|
|
6067
|
+
class K extends Ir {
|
|
6063
6068
|
/**
|
|
6064
6069
|
* Инициализирует экземпляр класса {@link Order}.
|
|
6065
6070
|
*
|
|
6066
6071
|
* @param data Данные для первоначальной инициализации.
|
|
6067
6072
|
*/
|
|
6068
6073
|
constructor(e) {
|
|
6074
|
+
var s;
|
|
6069
6075
|
super(e);
|
|
6070
6076
|
/**
|
|
6071
6077
|
* @inheritDoc
|
|
@@ -6099,10 +6105,48 @@ class Le extends Ir {
|
|
|
6099
6105
|
* @inheritDoc
|
|
6100
6106
|
*/
|
|
6101
6107
|
t(this, "isAllowProcessingWithoutPayment");
|
|
6102
|
-
|
|
6108
|
+
/**
|
|
6109
|
+
* @inheritDoc
|
|
6110
|
+
*/
|
|
6111
|
+
t(this, "nextStatuses");
|
|
6112
|
+
/**
|
|
6113
|
+
* @inheritDoc
|
|
6114
|
+
*/
|
|
6115
|
+
t(this, "operatorsComment");
|
|
6116
|
+
/**
|
|
6117
|
+
* @inheritDoc
|
|
6118
|
+
*/
|
|
6119
|
+
t(this, "operatorsForWarehouseComment");
|
|
6120
|
+
this.products = (e.products ?? []).map((i) => new at(i)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ce.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (s = e.nextStatuses) == null ? void 0 : s.map((i) => new $e(i)), this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment;
|
|
6121
|
+
}
|
|
6122
|
+
}
|
|
6123
|
+
class bt {
|
|
6124
|
+
/**
|
|
6125
|
+
* Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
|
|
6126
|
+
*
|
|
6127
|
+
* @param data Данные для первоначальной инициализации.
|
|
6128
|
+
*/
|
|
6129
|
+
constructor(r) {
|
|
6130
|
+
/**
|
|
6131
|
+
* @inheritDoc
|
|
6132
|
+
*/
|
|
6133
|
+
t(this, "user");
|
|
6134
|
+
/**
|
|
6135
|
+
* @inheritDoc
|
|
6136
|
+
*/
|
|
6137
|
+
t(this, "status");
|
|
6138
|
+
/**
|
|
6139
|
+
* @inheritDoc
|
|
6140
|
+
*/
|
|
6141
|
+
t(this, "statusDetail");
|
|
6142
|
+
/**
|
|
6143
|
+
* @inheritDoc
|
|
6144
|
+
*/
|
|
6145
|
+
t(this, "createdAt");
|
|
6146
|
+
this.user = new L(r == null ? void 0 : r.user), this.status = new $e(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new w(r.statusDetail) : void 0, this.createdAt = C(r == null ? void 0 : r.createdAt) ? R(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
|
|
6103
6147
|
}
|
|
6104
6148
|
}
|
|
6105
|
-
class
|
|
6149
|
+
class ws extends Te {
|
|
6106
6150
|
/**
|
|
6107
6151
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
6108
6152
|
*
|
|
@@ -6158,9 +6202,25 @@ class ys extends De {
|
|
|
6158
6202
|
* Возвращает данные заказа с указанным идентификатором.
|
|
6159
6203
|
*
|
|
6160
6204
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
6205
|
+
*
|
|
6206
|
+
* @see /doc/api/internal#/Заказы/api_internal_orders_get
|
|
6161
6207
|
*/
|
|
6162
6208
|
getOrder(r) {
|
|
6163
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
6209
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new K(e.data));
|
|
6210
|
+
}
|
|
6211
|
+
/**
|
|
6212
|
+
* Обновляет данные заказа без изменения состава товаров и возвращает обновлённые данные заказа.
|
|
6213
|
+
*
|
|
6214
|
+
* @param orderId Идентификатор заказа.
|
|
6215
|
+
* @param data Данные для обновления заказа.
|
|
6216
|
+
* @param validationFieldResultData Список полей, для которых необходимо
|
|
6217
|
+
* установить данные об ошибках валидации
|
|
6218
|
+
* в случае ошибок в запросах.
|
|
6219
|
+
*
|
|
6220
|
+
* @see /doc/api/internal#/Заказы/api_internal_orders_update
|
|
6221
|
+
*/
|
|
6222
|
+
updateOrder(r, e, s = {}) {
|
|
6223
|
+
return this.patch(`/internal/orders/${r}`, e, (i) => new K(i.data), s);
|
|
6164
6224
|
}
|
|
6165
6225
|
/**
|
|
6166
6226
|
* Добавляет продукт в заказ и возвращает обновлённые данные заказа.
|
|
@@ -6188,10 +6248,57 @@ class ys extends De {
|
|
|
6188
6248
|
is_additional_sale: e.isAdditionalSale,
|
|
6189
6249
|
...e.configuratorParams
|
|
6190
6250
|
},
|
|
6191
|
-
(i) => new
|
|
6251
|
+
(i) => new K(i.data),
|
|
6192
6252
|
s
|
|
6193
6253
|
);
|
|
6194
6254
|
}
|
|
6255
|
+
/**
|
|
6256
|
+
* Изменяет статус заказа и возвращает обновлённые данные заказа.
|
|
6257
|
+
*
|
|
6258
|
+
* @param orderId Идентификатор заказа.
|
|
6259
|
+
* @param status Slug нового статуса заказа.
|
|
6260
|
+
* @param statusDetail Slug детализирующего статуса заказа.
|
|
6261
|
+
* @param validationFieldResultData Список полей, для которых необходимо
|
|
6262
|
+
* установить данные об ошибках валидации
|
|
6263
|
+
* в случае ошибок в запросах.
|
|
6264
|
+
*
|
|
6265
|
+
* @see /doc/api/internal#/Заказы/api_internal_orders_status_change
|
|
6266
|
+
*/
|
|
6267
|
+
changeOrderStatus(r, e, s, i = {}) {
|
|
6268
|
+
return this.patch(
|
|
6269
|
+
`/internal/orders/${r}/status`,
|
|
6270
|
+
{
|
|
6271
|
+
status: e,
|
|
6272
|
+
statusDetail: s
|
|
6273
|
+
},
|
|
6274
|
+
(o) => new K(o.data),
|
|
6275
|
+
i
|
|
6276
|
+
);
|
|
6277
|
+
}
|
|
6278
|
+
/**
|
|
6279
|
+
* Возвращает историю изменения статусов заказа.
|
|
6280
|
+
*
|
|
6281
|
+
* @param orderId Идентификатор заказа.
|
|
6282
|
+
*
|
|
6283
|
+
* @see /doc/api/internal#/Заказы/api_internal_orders_status_history_get
|
|
6284
|
+
*/
|
|
6285
|
+
getOrderStatusHistory(r) {
|
|
6286
|
+
return this.get(
|
|
6287
|
+
`/internal/orders/${r}/history`,
|
|
6288
|
+
{},
|
|
6289
|
+
(e) => e.data.map((s) => new bt(s))
|
|
6290
|
+
);
|
|
6291
|
+
}
|
|
6292
|
+
/**
|
|
6293
|
+
* Удаляет файл, прикреплённый к заказу клиентом, и возвращает обновлённые данные заказа.
|
|
6294
|
+
*
|
|
6295
|
+
* @param orderId Идентификатор заказа.
|
|
6296
|
+
*
|
|
6297
|
+
* @see /doc/api/internal#/Заказы/api_internal_orders_attached_file_delete
|
|
6298
|
+
*/
|
|
6299
|
+
deleteOrderAttachedFile(r) {
|
|
6300
|
+
return this.delete(`/internal/orders/${r}/file/attached`, (e) => new K(e.data));
|
|
6301
|
+
}
|
|
6195
6302
|
/**
|
|
6196
6303
|
* Изменяет продукт заказа и возвращает обновлённые данные заказа.
|
|
6197
6304
|
*
|
|
@@ -6218,12 +6325,12 @@ class ys extends De {
|
|
|
6218
6325
|
marker: s.marker,
|
|
6219
6326
|
...s.configuratorParams
|
|
6220
6327
|
},
|
|
6221
|
-
(o) => new
|
|
6328
|
+
(o) => new K(o.data),
|
|
6222
6329
|
i
|
|
6223
6330
|
);
|
|
6224
6331
|
}
|
|
6225
6332
|
}
|
|
6226
|
-
class
|
|
6333
|
+
class xe {
|
|
6227
6334
|
/**
|
|
6228
6335
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
6229
6336
|
*
|
|
@@ -6250,12 +6357,12 @@ class ae {
|
|
|
6250
6357
|
* Источник клиентской цены.
|
|
6251
6358
|
*/
|
|
6252
6359
|
t(this, "source");
|
|
6253
|
-
this.client = new
|
|
6360
|
+
this.client = new se(r == null ? void 0 : r.client), this.product = new k(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) ?? Me.Product;
|
|
6254
6361
|
}
|
|
6255
6362
|
}
|
|
6256
6363
|
const de = (n) => {
|
|
6257
6364
|
var r, e, s, i, o;
|
|
6258
|
-
return n ?
|
|
6365
|
+
return n ? cr(
|
|
6259
6366
|
{
|
|
6260
6367
|
cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
|
|
6261
6368
|
clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
|
|
@@ -6264,13 +6371,13 @@ const de = (n) => {
|
|
|
6264
6371
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
6265
6372
|
hideNotActive: n.hideNotActive
|
|
6266
6373
|
},
|
|
6267
|
-
(c) => T(c) || (H(c) ||
|
|
6374
|
+
(c) => T(c) || (H(c) || lr(c)) && X(c)
|
|
6268
6375
|
) : {};
|
|
6269
|
-
},
|
|
6376
|
+
}, tr = (n) => {
|
|
6270
6377
|
const r = {};
|
|
6271
6378
|
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;
|
|
6272
6379
|
};
|
|
6273
|
-
class
|
|
6380
|
+
class vs extends p {
|
|
6274
6381
|
/**
|
|
6275
6382
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
6276
6383
|
*
|
|
@@ -6284,10 +6391,10 @@ class ws extends p {
|
|
|
6284
6391
|
return this.get(
|
|
6285
6392
|
`/internal/price/products/${r}/analyze`,
|
|
6286
6393
|
{
|
|
6287
|
-
...
|
|
6394
|
+
...tr(e),
|
|
6288
6395
|
filters: de(s)
|
|
6289
6396
|
},
|
|
6290
|
-
(i) => i.data.map((o) => new
|
|
6397
|
+
(i) => i.data.map((o) => new xe(o))
|
|
6291
6398
|
);
|
|
6292
6399
|
}
|
|
6293
6400
|
/**
|
|
@@ -6303,10 +6410,10 @@ class ws extends p {
|
|
|
6303
6410
|
return this.get(
|
|
6304
6411
|
`/internal/price/categories/${r}/analyze`,
|
|
6305
6412
|
{
|
|
6306
|
-
...
|
|
6413
|
+
...tr(e),
|
|
6307
6414
|
filters: de(s)
|
|
6308
6415
|
},
|
|
6309
|
-
(i) => i.data.map((o) => new
|
|
6416
|
+
(i) => i.data.map((o) => new xe(o))
|
|
6310
6417
|
);
|
|
6311
6418
|
}
|
|
6312
6419
|
/**
|
|
@@ -6327,7 +6434,7 @@ class ws extends p {
|
|
|
6327
6434
|
...e,
|
|
6328
6435
|
filters: de(s)
|
|
6329
6436
|
},
|
|
6330
|
-
(i) => i.data.map((o) => new
|
|
6437
|
+
(i) => i.data.map((o) => new xe(o))
|
|
6331
6438
|
);
|
|
6332
6439
|
}
|
|
6333
6440
|
}
|
|
@@ -6378,10 +6485,10 @@ class St {
|
|
|
6378
6485
|
* @inheritDoc
|
|
6379
6486
|
*/
|
|
6380
6487
|
t(this, "currency");
|
|
6381
|
-
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate =
|
|
6488
|
+
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? R(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new pe(r.product) : void 0, this.client = r.client ? new L(r.client) : void 0, this.executor = r.executor ? new L(r.executor) : void 0, this.currency = r.currency ? new d(r.currency) : void 0;
|
|
6382
6489
|
}
|
|
6383
6490
|
}
|
|
6384
|
-
class kt extends
|
|
6491
|
+
class kt extends pe {
|
|
6385
6492
|
/**
|
|
6386
6493
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
6387
6494
|
*
|
|
@@ -6393,10 +6500,10 @@ class kt extends ue {
|
|
|
6393
6500
|
* @inheritDoc
|
|
6394
6501
|
*/
|
|
6395
6502
|
t(this, "history");
|
|
6396
|
-
this.history =
|
|
6503
|
+
this.history = me(e.history, (s) => new St(s));
|
|
6397
6504
|
}
|
|
6398
6505
|
}
|
|
6399
|
-
class
|
|
6506
|
+
class Cs extends p {
|
|
6400
6507
|
/**
|
|
6401
6508
|
* Возвращает данные об истории изменения цен.
|
|
6402
6509
|
*
|
|
@@ -6406,21 +6513,21 @@ class vs extends p {
|
|
|
6406
6513
|
*/
|
|
6407
6514
|
getProductPriceHistory(r) {
|
|
6408
6515
|
var o, c, u, h, m;
|
|
6409
|
-
const e =
|
|
6410
|
-
|
|
6516
|
+
const e = I().config.dateFormats.api, s = cr(
|
|
6517
|
+
ue(r, {
|
|
6411
6518
|
costDate: {
|
|
6412
|
-
from:
|
|
6413
|
-
to:
|
|
6519
|
+
from: Oe((o = r.costDate) == null ? void 0 : o.from) ? U(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
6520
|
+
to: Oe((u = r.costDate) == null ? void 0 : u.to) ? U(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
|
|
6414
6521
|
}
|
|
6415
6522
|
}),
|
|
6416
|
-
(f) => T(f) || (H(f) ||
|
|
6523
|
+
(f) => T(f) || (H(f) || lr(f)) && X(f)
|
|
6417
6524
|
), i = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
|
|
6418
6525
|
return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((f) => [
|
|
6419
|
-
new kt(
|
|
6526
|
+
new kt(ue(f[0], { history: f }))
|
|
6420
6527
|
]);
|
|
6421
6528
|
}
|
|
6422
6529
|
}
|
|
6423
|
-
class
|
|
6530
|
+
class sr {
|
|
6424
6531
|
/**
|
|
6425
6532
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
6426
6533
|
*
|
|
@@ -6435,10 +6542,10 @@ class tr {
|
|
|
6435
6542
|
* Список рекомендованных категорий продуктов.
|
|
6436
6543
|
*/
|
|
6437
6544
|
t(this, "productCategories", []);
|
|
6438
|
-
r != null && r.products && (this.products = r.products.map((e) => new
|
|
6545
|
+
r != null && r.products && (this.products = r.products.map((e) => new pe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new pe(e)));
|
|
6439
6546
|
}
|
|
6440
6547
|
}
|
|
6441
|
-
class
|
|
6548
|
+
class Rs extends p {
|
|
6442
6549
|
/**
|
|
6443
6550
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
6444
6551
|
*
|
|
@@ -6446,7 +6553,7 @@ class Cs extends p {
|
|
|
6446
6553
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
6447
6554
|
*/
|
|
6448
6555
|
getProductCategoryRecommendations(r) {
|
|
6449
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new
|
|
6556
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new sr(e.data));
|
|
6450
6557
|
}
|
|
6451
6558
|
/**
|
|
6452
6559
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -6455,7 +6562,7 @@ class Cs extends p {
|
|
|
6455
6562
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
6456
6563
|
*/
|
|
6457
6564
|
getProductRecommendations(r) {
|
|
6458
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new
|
|
6565
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new sr(e.data));
|
|
6459
6566
|
}
|
|
6460
6567
|
/**
|
|
6461
6568
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -6502,7 +6609,7 @@ class It {
|
|
|
6502
6609
|
this.name = r.name, this.content = r.content;
|
|
6503
6610
|
}
|
|
6504
6611
|
}
|
|
6505
|
-
class
|
|
6612
|
+
class ir {
|
|
6506
6613
|
/**
|
|
6507
6614
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
6508
6615
|
*
|
|
@@ -6542,10 +6649,10 @@ class sr {
|
|
|
6542
6649
|
*/
|
|
6543
6650
|
t(this, "tags");
|
|
6544
6651
|
var e;
|
|
6545
|
-
this.resourceType = new
|
|
6652
|
+
this.resourceType = new Dr(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 It(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
|
|
6546
6653
|
}
|
|
6547
6654
|
}
|
|
6548
|
-
class
|
|
6655
|
+
class Ps extends p {
|
|
6549
6656
|
/**
|
|
6550
6657
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
6551
6658
|
*
|
|
@@ -6553,7 +6660,7 @@ class Rs extends p {
|
|
|
6553
6660
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
6554
6661
|
*/
|
|
6555
6662
|
getResourceSeoData(r, e) {
|
|
6556
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new
|
|
6663
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new ir(s.data));
|
|
6557
6664
|
}
|
|
6558
6665
|
/**
|
|
6559
6666
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -6564,7 +6671,7 @@ class Rs extends p {
|
|
|
6564
6671
|
* в случае ошибок в запросах.
|
|
6565
6672
|
*/
|
|
6566
6673
|
saveResourceSeoData(r, e = {}) {
|
|
6567
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new
|
|
6674
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new ir(s.data), e);
|
|
6568
6675
|
}
|
|
6569
6676
|
/**
|
|
6570
6677
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -6576,7 +6683,7 @@ class Rs extends p {
|
|
|
6576
6683
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
6577
6684
|
}
|
|
6578
6685
|
}
|
|
6579
|
-
class
|
|
6686
|
+
class Ds extends p {
|
|
6580
6687
|
/**
|
|
6581
6688
|
* Возвращает подсказки по адресам.
|
|
6582
6689
|
*
|
|
@@ -6624,7 +6731,7 @@ class Ps extends p {
|
|
|
6624
6731
|
}
|
|
6625
6732
|
}
|
|
6626
6733
|
var Lt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Lt || {});
|
|
6627
|
-
class
|
|
6734
|
+
class xt extends wr {
|
|
6628
6735
|
/**
|
|
6629
6736
|
* Инициализирует экземпляр класса {@link User}.
|
|
6630
6737
|
*
|
|
@@ -6652,7 +6759,7 @@ class As extends p {
|
|
|
6652
6759
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
6653
6760
|
*/
|
|
6654
6761
|
constructor() {
|
|
6655
|
-
super(), this.baseUrl = `${
|
|
6762
|
+
super(), this.baseUrl = `${I().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
|
|
6656
6763
|
}
|
|
6657
6764
|
/**
|
|
6658
6765
|
* Функция для получения обновленных токенов доступа.
|
|
@@ -6669,10 +6776,10 @@ class dt extends p {
|
|
|
6669
6776
|
*/
|
|
6670
6777
|
// eslint-disable-next-line class-methods-use-this
|
|
6671
6778
|
getCurrentUser() {
|
|
6672
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
6779
|
+
return this.get("/internal/users/info", {}, (r) => new xt(r.data), !0);
|
|
6673
6780
|
}
|
|
6674
6781
|
}
|
|
6675
|
-
const
|
|
6782
|
+
const Ot = z("common.user_state_private", () => {
|
|
6676
6783
|
const n = y({}), r = y(void 0);
|
|
6677
6784
|
return {
|
|
6678
6785
|
/**
|
|
@@ -6684,20 +6791,20 @@ const xt = z("common.user_state_private", () => {
|
|
|
6684
6791
|
*/
|
|
6685
6792
|
currentUser: r
|
|
6686
6793
|
};
|
|
6687
|
-
}),
|
|
6794
|
+
}), Ts = z("common.user_state", () => ({
|
|
6688
6795
|
/**
|
|
6689
6796
|
* Данные о текущем пользователе.
|
|
6690
6797
|
*/
|
|
6691
|
-
currentUser:
|
|
6692
|
-
const r =
|
|
6798
|
+
currentUser: D(() => {
|
|
6799
|
+
const r = Ot();
|
|
6693
6800
|
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(dt).getCurrentUser().then((e) => {
|
|
6694
6801
|
r.currentUser = e;
|
|
6695
|
-
}).catch(
|
|
6802
|
+
}).catch(v).finally(() => {
|
|
6696
6803
|
r.dataLoaderList.currentUser = !1;
|
|
6697
6804
|
})), r.currentUser;
|
|
6698
6805
|
})
|
|
6699
6806
|
}));
|
|
6700
|
-
class
|
|
6807
|
+
class $s {
|
|
6701
6808
|
/**
|
|
6702
6809
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
6703
6810
|
*
|
|
@@ -6721,159 +6828,160 @@ class Ts {
|
|
|
6721
6828
|
}
|
|
6722
6829
|
}
|
|
6723
6830
|
export {
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6831
|
+
mt as AnyReference,
|
|
6832
|
+
rt as AppBaseConfig,
|
|
6833
|
+
Ne as BankAccount,
|
|
6834
|
+
Te as BasePaginationProvider,
|
|
6835
|
+
lt as CalculationTypeEnum,
|
|
6836
|
+
ye as Cart,
|
|
6837
|
+
zt as CartProvider,
|
|
6838
|
+
Jt as CatalogProvider,
|
|
6839
|
+
pr as CatalogableItem,
|
|
6733
6840
|
_ as Category,
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6841
|
+
Ye as CategoryPricingRule,
|
|
6842
|
+
Cr as ChannelPrimaryInterest,
|
|
6843
|
+
ss as City,
|
|
6737
6844
|
Ae as CityWithRegionAndCountry,
|
|
6738
|
-
|
|
6845
|
+
rr as Client,
|
|
6739
6846
|
Pt as ClientAdditionalData,
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6847
|
+
ve as ClientCategory,
|
|
6848
|
+
x as ClientDataProvider,
|
|
6849
|
+
Et as ClientPriceProvider,
|
|
6850
|
+
Vt as ClientPriceTemplateProvider,
|
|
6744
6851
|
j as ClientProduct,
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6852
|
+
Yt as ClientProductCategoryDataProvider,
|
|
6853
|
+
Xt as ClientProductDataProvider,
|
|
6854
|
+
se as ClientShortInfo,
|
|
6855
|
+
gt as ClientsAdditionalDataRequestTypeEnum,
|
|
6856
|
+
ns as ClientsListFilters,
|
|
6857
|
+
pe as CodedIdentity,
|
|
6858
|
+
ps as ConfiguratorProvider,
|
|
6859
|
+
At as ConfiguratorsEnum,
|
|
6860
|
+
Ue as Contact,
|
|
6861
|
+
fr as ContactLinks,
|
|
6755
6862
|
B as ContactPerson,
|
|
6756
6863
|
Rt as ContactPersonRelated,
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6864
|
+
ft as ContactPosition,
|
|
6865
|
+
Le as ContactRelation,
|
|
6866
|
+
Tr as ContragentBase,
|
|
6867
|
+
Ce as ContragentFactory,
|
|
6868
|
+
$r as ContragentIc,
|
|
6762
6869
|
vt as ContragentPerson,
|
|
6763
6870
|
Ct as ContragentUlNr,
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6871
|
+
ar as ContragentUlR,
|
|
6872
|
+
Me as CostSourceEnum,
|
|
6873
|
+
ee as Country,
|
|
6874
|
+
ze as CuratedDirection,
|
|
6875
|
+
We as Curator,
|
|
6876
|
+
d as Currency,
|
|
6877
|
+
Ds as DataSuggestionProvider,
|
|
6878
|
+
os as DataTablePagination,
|
|
6879
|
+
Dt as DataTablePaginationRequestParams,
|
|
6880
|
+
cs as DataTableSortRequestParams,
|
|
6881
|
+
hs as DateTimeProvider,
|
|
6882
|
+
tt as DeletableNamedIdentity,
|
|
6883
|
+
Re as DeliveryAddress,
|
|
6777
6884
|
N as DeliveryType,
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6885
|
+
Mt as DetailedJwtPayload,
|
|
6886
|
+
Yr as DeviceTypeResolutionConfig,
|
|
6887
|
+
nt as DiscountShortInfo,
|
|
6888
|
+
$s as FieldValidationResultData,
|
|
6782
6889
|
G as FilterGroup,
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6890
|
+
Xe as FilterItem,
|
|
6891
|
+
Je as FilterOpEnum,
|
|
6892
|
+
gr as GeoCoordinates,
|
|
6893
|
+
it as HiddenCatalogableItem,
|
|
6894
|
+
ge as HttpCachedRequester,
|
|
6895
|
+
Xr as HttpParamsConfig,
|
|
6789
6896
|
p as HttpRequester,
|
|
6790
|
-
|
|
6791
|
-
|
|
6897
|
+
te as Identity,
|
|
6898
|
+
st as Image,
|
|
6792
6899
|
F as JwtPayload,
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6900
|
+
De as Manager,
|
|
6901
|
+
Be as ManagerCommon,
|
|
6902
|
+
ms as ManagerDataFactory,
|
|
6796
6903
|
Tt as ManagerDataProvider,
|
|
6797
6904
|
It as MetaTagItem,
|
|
6798
|
-
|
|
6799
|
-
|
|
6905
|
+
b as NamedIdentity,
|
|
6906
|
+
Rr as Operator,
|
|
6800
6907
|
M as Opf,
|
|
6801
6908
|
q as OpfEnum,
|
|
6802
|
-
|
|
6909
|
+
K as Order,
|
|
6803
6910
|
Ir as OrderInfo,
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6911
|
+
at as OrderItem,
|
|
6912
|
+
mr as OrderItemBase,
|
|
6913
|
+
yt as OrderPaymentStatus,
|
|
6807
6914
|
Sr as OrderShortInfo,
|
|
6808
|
-
|
|
6915
|
+
$e as OrderStatus,
|
|
6809
6916
|
$t as OrderStatusEnum,
|
|
6810
|
-
|
|
6811
|
-
|
|
6917
|
+
bt as OrderStatusHistoryInfo,
|
|
6918
|
+
ws as OrdersDataProvider,
|
|
6919
|
+
ys as OrdersListFilters,
|
|
6812
6920
|
br as PaginationFiltersBase,
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6921
|
+
re as PartnerGroup,
|
|
6922
|
+
Pr as PaymentType,
|
|
6923
|
+
we as PreferencesStorageProvider,
|
|
6924
|
+
xe as PriceAnalyze,
|
|
6925
|
+
vs as PriceAnalyzeProvider,
|
|
6926
|
+
Pe as PriceCoefficient,
|
|
6927
|
+
hr as PriceCoefficientEnum,
|
|
6928
|
+
Cs as PriceHistoryDataProvider,
|
|
6821
6929
|
St as PriceHistoryItem,
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6930
|
+
Q as PriceTemplate,
|
|
6931
|
+
ke as PriceTemplateCategory,
|
|
6932
|
+
oe as PriceTemplateClient,
|
|
6933
|
+
yr as PriceTemplateICatalogableItem,
|
|
6934
|
+
Ie as PriceTemplateProduct,
|
|
6935
|
+
Zt as PriceTemplateProvider,
|
|
6936
|
+
le as PricingRole,
|
|
6937
|
+
es as PricingRoleProvider,
|
|
6938
|
+
qe as PrimaryCatalogableItem,
|
|
6939
|
+
k as Product,
|
|
6940
|
+
Kt as ProductCategoryDataProvider,
|
|
6941
|
+
Qt as ProductDataProvider,
|
|
6834
6942
|
wt as ProductFileType,
|
|
6835
|
-
|
|
6943
|
+
Ge as ProductPriceCoefficient,
|
|
6836
6944
|
kt as ProductPriceHistory,
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6945
|
+
Qe as ProductUnit,
|
|
6946
|
+
rs as PropertiesProvider,
|
|
6947
|
+
ce as Property,
|
|
6948
|
+
vr as PropertyType,
|
|
6949
|
+
ut as PropertyTypeEnum,
|
|
6842
6950
|
V as PropertyValue,
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6951
|
+
Rs as RecommendationsDataProvider,
|
|
6952
|
+
sr as RecommendationsList,
|
|
6953
|
+
w as Reference,
|
|
6954
|
+
is as ReferenceDataFactory,
|
|
6955
|
+
a as ReferenceDataProvider,
|
|
6956
|
+
he as Region,
|
|
6957
|
+
Dr as ResourceType,
|
|
6850
6958
|
O as SalesDirection,
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6959
|
+
Zr as SentryConfig,
|
|
6960
|
+
ir as Seo,
|
|
6961
|
+
Ps as SeoDataProvider,
|
|
6854
6962
|
Ar as SourcePrimaryInterest,
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6963
|
+
ot as StockCount,
|
|
6964
|
+
ts as TemplateProductCategoryDataProvider,
|
|
6965
|
+
Wt as TemplatesListFilters,
|
|
6966
|
+
je as TypedInstanceFactory,
|
|
6859
6967
|
kr as UnitsHelper,
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6968
|
+
ls as UnknownClientDataProvider,
|
|
6969
|
+
ur as UpdatableNamedIdentity,
|
|
6970
|
+
xt as User,
|
|
6863
6971
|
As as UserAuthDataProvider,
|
|
6864
|
-
|
|
6972
|
+
wr as UserCommonInfo,
|
|
6865
6973
|
dt as UserDataProvider,
|
|
6866
|
-
|
|
6867
|
-
|
|
6974
|
+
pt as UserPricingRole,
|
|
6975
|
+
L as UserShortInfo,
|
|
6868
6976
|
Lt as UserTypeEnum,
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6977
|
+
us as VersionConfig,
|
|
6978
|
+
Z as Warehouse,
|
|
6979
|
+
et as WebSocketConfig,
|
|
6980
|
+
Ze as findCatalogItemByIdRecursive,
|
|
6981
|
+
er as flattenCatalogItems,
|
|
6982
|
+
gs as pluralize,
|
|
6983
|
+
Se as useAuthStateStore,
|
|
6984
|
+
I as useBaseConfigStateStore,
|
|
6985
|
+
fs as useReferencesStore,
|
|
6986
|
+
Ts as useUserStateStore
|
|
6879
6987
|
};
|