@snabcentr/common-lib 1.90.2 → 1.90.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +1 -1
- package/dist/release_notes.tmp +2 -2
- package/dist/sc-common-lib.js +200 -196
- package/dist/sc-common-lib.js.map +1 -1
- package/dist/sc-common-lib.umd.cjs +1 -1
- package/dist/sc-common-lib.umd.cjs.map +1 -1
- package/dist/src/orders/classes/orders-list-filters.d.ts +2 -1
- package/dist/src/orders/classes/orders-list-filters.d.ts.map +1 -1
- package/dist/src/orders/interfaces/i-orders-list-filters.d.ts +3 -2
- package/dist/src/orders/interfaces/i-orders-list-filters.d.ts.map +1 -1
- package/dist/src/user/classes/user.d.ts +5 -0
- package/dist/src/user/classes/user.d.ts.map +1 -1
- package/dist/src/user/interfaces/i-user.d.ts +5 -0
- package/dist/src/user/interfaces/i-user.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (n, r, e) =>
|
|
1
|
+
var dr = Object.defineProperty;
|
|
2
|
+
var xr = (n, r, e) => r in n ? dr(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
4
|
import { jwtDecode as ir } from "jwt-decode";
|
|
5
|
-
import { merge as ce, isNil as T, isEmpty as Y, noop as w, mapValues as nr, isArray as H, every as
|
|
5
|
+
import { merge as ce, isNil as T, isEmpty as Y, noop as w, mapValues as nr, isArray as H, every as ar, split as Or, isString as v, constant as _r, toUpper as qr, cloneDeep as Nr, toLower as Ur, isFunction as Ue, map as he, forEach as Hr, isDate as ae, omitBy as or, isObject as cr } from "lodash-es";
|
|
6
6
|
import { objectToCamel as He, objectToSnake as Je } from "ts-case-convert";
|
|
7
7
|
import { defineStore as z } from "pinia";
|
|
8
|
-
import { ref as y, markRaw as
|
|
9
|
-
import { isAfter as Ee, parseISO as C, startOfToday as Oe, format as U, addSeconds as
|
|
10
|
-
import
|
|
8
|
+
import { ref as y, markRaw as Fr, computed as A } from "vue";
|
|
9
|
+
import { isAfter as Ee, parseISO as C, startOfToday as Oe, format as U, addSeconds as Mr, addBusinessDays as jr, endOfTomorrow as Gr, 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}.
|
|
@@ -154,7 +154,7 @@ class jt extends F {
|
|
|
154
154
|
return new F(He(ir(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,10 +326,10 @@ 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"
|
|
@@ -337,7 +337,7 @@ class et {
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
const L = z("common.config", () => {
|
|
340
|
-
const n = y(new
|
|
340
|
+
const n = y(new rt());
|
|
341
341
|
return {
|
|
342
342
|
/**
|
|
343
343
|
* Конфигурационные данные приложения.
|
|
@@ -359,7 +359,7 @@ const L = z("common.config", () => {
|
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
});
|
|
362
|
-
class
|
|
362
|
+
class we {
|
|
363
363
|
/**
|
|
364
364
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
365
365
|
*
|
|
@@ -480,7 +480,7 @@ 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
|
);
|
|
@@ -489,7 +489,7 @@ const E = z("common.auth_state_private", () => {
|
|
|
489
489
|
const c = (u = L().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);
|
|
@@ -524,7 +524,7 @@ const E = z("common.auth_state_private", () => {
|
|
|
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),
|
|
527
|
+
o.jwtToken = Promise.resolve(u), we.saveActualDataToStorage("sc.token", u, Ve(u)), o.recalculateUserPermissions();
|
|
528
528
|
}).catch(w);
|
|
529
529
|
}
|
|
530
530
|
return o.jwtToken;
|
|
@@ -534,11 +534,11 @@ 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, Ve(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();
|
|
@@ -552,13 +552,13 @@ const E = z("common.auth_state_private", () => {
|
|
|
552
552
|
const h = A(() => {
|
|
553
553
|
const m = (f) => {
|
|
554
554
|
var J;
|
|
555
|
-
const D =
|
|
555
|
+
const D = Or(f, ".");
|
|
556
556
|
if (D.length < 2)
|
|
557
557
|
return !1;
|
|
558
558
|
const [te, se] = D, W = (J = E().userPermissions) == null ? void 0 : J[te];
|
|
559
559
|
return H(W) && W.includes(se);
|
|
560
560
|
};
|
|
561
|
-
return H(o) ?
|
|
561
|
+
return H(o) ? ar(o, (f) => m(f)) : m(o);
|
|
562
562
|
});
|
|
563
563
|
return c.userPermissionsComputedRefs.set(u, h), h;
|
|
564
564
|
}
|
|
@@ -680,7 +680,7 @@ class lr extends k {
|
|
|
680
680
|
this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
class
|
|
683
|
+
class tt extends lr {
|
|
684
684
|
/**
|
|
685
685
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
686
686
|
*
|
|
@@ -695,7 +695,7 @@ class rt extends lr {
|
|
|
695
695
|
this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(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
|
*
|
|
@@ -737,7 +737,7 @@ class ur extends le {
|
|
|
737
737
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
class
|
|
740
|
+
class it extends ur {
|
|
741
741
|
/**
|
|
742
742
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
743
743
|
*
|
|
@@ -786,7 +786,7 @@ class Fe {
|
|
|
786
786
|
return new r(e);
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
class
|
|
789
|
+
class x extends k {
|
|
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 k {
|
|
805
805
|
/**
|
|
806
806
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
807
807
|
*
|
|
@@ -837,7 +837,7 @@ 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 = v(e == null ? void 0 : e.publishedAt) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new
|
|
840
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = v(e == null ? void 0 : e.publishedAt) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new x(e == null ? void 0 : e.owner), this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
843
|
class K extends lr {
|
|
@@ -860,12 +860,12 @@ class K extends lr {
|
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
862
|
var pr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(pr || {});
|
|
863
|
-
class
|
|
863
|
+
class Pe extends R {
|
|
864
864
|
/**
|
|
865
865
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
866
866
|
*/
|
|
867
867
|
static getRetailPriceCoefficient() {
|
|
868
|
-
return { id: -2, slug: pr.Retail, name: "Розн. цена", guid: "", isNewRec:
|
|
868
|
+
return { id: -2, slug: pr.Retail, name: "Розн. цена", guid: "", isNewRec: _r(!0) };
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
871
|
class Me {
|
|
@@ -895,7 +895,7 @@ class Me {
|
|
|
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
901
|
class hr {
|
|
@@ -950,7 +950,7 @@ class ge extends R {
|
|
|
950
950
|
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new N(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new hr(e == null ? void 0 : e.coordinates);
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
|
-
class
|
|
953
|
+
class ot {
|
|
954
954
|
/**
|
|
955
955
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
956
956
|
*
|
|
@@ -968,7 +968,7 @@ class nt {
|
|
|
968
968
|
this.warehouse = new ge(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
969
969
|
}
|
|
970
970
|
}
|
|
971
|
-
class
|
|
971
|
+
class a extends k {
|
|
972
972
|
/**
|
|
973
973
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
974
974
|
*
|
|
@@ -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 I extends
|
|
1025
|
+
class I 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 Ke(e.unit) : new Ke(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new
|
|
1102
|
+
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ke(e.unit) : new Ke(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new a(e.currency) : new a(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = v(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((h) => new 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 _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new
|
|
1104
|
+
s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new st(h, L().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 Me(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
1105
1105
|
}
|
|
1106
1106
|
/**
|
|
1107
1107
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -1159,7 +1159,7 @@ class M 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) ?? je.Product, this.discount = e != null && e.discount ? new
|
|
1162
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? je.Product, this.discount = e != null && e.discount ? new nt(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new K(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
1165
|
class me extends _e {
|
|
@@ -1186,7 +1186,7 @@ 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
1192
|
class gr extends ee {
|
|
@@ -1245,10 +1245,10 @@ class gr extends ee {
|
|
|
1245
1245
|
* @inheritDoc
|
|
1246
1246
|
*/
|
|
1247
1247
|
t(this, "creatorUser");
|
|
1248
|
-
this.product = new M(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new me(), this.currency = e.currency ? new
|
|
1248
|
+
this.product = new M(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new me(), this.currency = e.currency ? new a(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.creatorUser = e.creatorUser && new x(e.creatorUser);
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
|
-
let
|
|
1251
|
+
let ct = class extends gr {
|
|
1252
1252
|
/**
|
|
1253
1253
|
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
1254
1254
|
*
|
|
@@ -1292,10 +1292,10 @@ let ot = class extends gr {
|
|
|
1292
1292
|
* @inheritDoc
|
|
1293
1293
|
*/
|
|
1294
1294
|
t(this, "currency");
|
|
1295
|
-
this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = H(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, this.currency = new
|
|
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 a(e.currency);
|
|
1296
1296
|
}
|
|
1297
1297
|
};
|
|
1298
|
-
class
|
|
1298
|
+
class ye {
|
|
1299
1299
|
/**
|
|
1300
1300
|
* Инициализирует экземпляр класса {@link Cart}.
|
|
1301
1301
|
*
|
|
@@ -1314,7 +1314,7 @@ class fe {
|
|
|
1314
1314
|
* @inheritDoc
|
|
1315
1315
|
*/
|
|
1316
1316
|
t(this, "directionsSum");
|
|
1317
|
-
this.items = r.items.map((e) => new
|
|
1317
|
+
this.items = r.items.map((e) => new ct(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
1320
|
const P = class P {
|
|
@@ -1371,7 +1371,7 @@ const P = class P {
|
|
|
1371
1371
|
* @param request Данные запроса.
|
|
1372
1372
|
*/
|
|
1373
1373
|
// eslint-disable-next-line class-methods-use-this
|
|
1374
|
-
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Je(r.params)), ["put", "patch", "post"].includes(
|
|
1374
|
+
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Je(r.params)), ["put", "patch", "post"].includes(Ur(r.method)) && r.data && (r.data = Je(r.data))), r));
|
|
1375
1375
|
/**
|
|
1376
1376
|
* Перехватчик ошибок ответов на запрос.
|
|
1377
1377
|
*
|
|
@@ -1391,7 +1391,7 @@ const P = class P {
|
|
|
1391
1391
|
t(this, "canceledResponseInterceptor", (r) => {
|
|
1392
1392
|
const e = r.rawError ?? r;
|
|
1393
1393
|
if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
|
|
1394
|
-
throw new
|
|
1394
|
+
throw new Qr("Request canceled");
|
|
1395
1395
|
return Promise.reject(r);
|
|
1396
1396
|
});
|
|
1397
1397
|
/**
|
|
@@ -1408,7 +1408,7 @@ const P = class P {
|
|
|
1408
1408
|
*/
|
|
1409
1409
|
// eslint-disable-next-line class-methods-use-this
|
|
1410
1410
|
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = He(r.data)), r));
|
|
1411
|
-
this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient =
|
|
1411
|
+
this.errorResponseHandler = P.defaultErrorsResponseHandler, this.httpClient = Kr.create({
|
|
1412
1412
|
headers: {
|
|
1413
1413
|
Accept: "application/json",
|
|
1414
1414
|
"Content-Type": "application/json"
|
|
@@ -1595,7 +1595,7 @@ class Bt extends p {
|
|
|
1595
1595
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_get
|
|
1596
1596
|
*/
|
|
1597
1597
|
getCart(r) {
|
|
1598
|
-
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new
|
|
1598
|
+
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ye(e.data));
|
|
1599
1599
|
}
|
|
1600
1600
|
/**
|
|
1601
1601
|
* Удаляет всё содержимое корзины.
|
|
@@ -1633,7 +1633,7 @@ class Bt extends p {
|
|
|
1633
1633
|
is_additional_sale: e.isAdditionalSale,
|
|
1634
1634
|
...e.configuratorParams
|
|
1635
1635
|
},
|
|
1636
|
-
(i) => new
|
|
1636
|
+
(i) => new ye(i.data),
|
|
1637
1637
|
s
|
|
1638
1638
|
);
|
|
1639
1639
|
}
|
|
@@ -1663,7 +1663,7 @@ class Bt extends p {
|
|
|
1663
1663
|
is_additional_sale: e.isAdditionalSale,
|
|
1664
1664
|
...e.configuratorParams
|
|
1665
1665
|
},
|
|
1666
|
-
(i) => new
|
|
1666
|
+
(i) => new ye(i.data),
|
|
1667
1667
|
s
|
|
1668
1668
|
);
|
|
1669
1669
|
}
|
|
@@ -1687,7 +1687,7 @@ class Bt extends p {
|
|
|
1687
1687
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
|
|
1688
1688
|
*/
|
|
1689
1689
|
addCartItemFromCSV(r, e) {
|
|
1690
|
-
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new
|
|
1690
|
+
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new ye(s.data));
|
|
1691
1691
|
}
|
|
1692
1692
|
/**
|
|
1693
1693
|
* Возвращает пример CSV файла для добавления продуктов в корзину.
|
|
@@ -1700,7 +1700,7 @@ class Bt extends p {
|
|
|
1700
1700
|
return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
1703
|
-
var
|
|
1703
|
+
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 || {});
|
|
1704
1704
|
class _ extends me {
|
|
1705
1705
|
/**
|
|
1706
1706
|
* Инициализирует экземпляр класса {@link Category}.
|
|
@@ -1774,7 +1774,7 @@ class Ge extends k {
|
|
|
1774
1774
|
}
|
|
1775
1775
|
class Be extends R {
|
|
1776
1776
|
}
|
|
1777
|
-
class
|
|
1777
|
+
class fr extends k {
|
|
1778
1778
|
/**
|
|
1779
1779
|
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
1780
1780
|
*
|
|
@@ -1797,7 +1797,7 @@ class ut extends k {
|
|
|
1797
1797
|
this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
1800
|
-
class
|
|
1800
|
+
class fe extends Ge {
|
|
1801
1801
|
/**
|
|
1802
1802
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1803
1803
|
*
|
|
@@ -1834,7 +1834,7 @@ class Pe extends Ge {
|
|
|
1834
1834
|
* Список направлений кураторства.
|
|
1835
1835
|
*/
|
|
1836
1836
|
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
|
|
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 fr(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new Be(i))) ?? [];
|
|
1838
1838
|
}
|
|
1839
1839
|
}
|
|
1840
1840
|
class pt extends me {
|
|
@@ -1865,10 +1865,10 @@ class pt extends me {
|
|
|
1865
1865
|
* Данные о менеджере за которым закреплена категория.
|
|
1866
1866
|
*/
|
|
1867
1867
|
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
|
|
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 fe(e.manager) : void 0;
|
|
1869
1869
|
}
|
|
1870
1870
|
}
|
|
1871
|
-
class
|
|
1871
|
+
class ve extends pt {
|
|
1872
1872
|
/**
|
|
1873
1873
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1874
1874
|
*
|
|
@@ -1885,10 +1885,10 @@ class we extends pt {
|
|
|
1885
1885
|
* Список продуктов категории.
|
|
1886
1886
|
*/
|
|
1887
1887
|
t(this, "products");
|
|
1888
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new
|
|
1888
|
+
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 M(o));
|
|
1889
1889
|
}
|
|
1890
1890
|
}
|
|
1891
|
-
class
|
|
1891
|
+
class yr {
|
|
1892
1892
|
/**
|
|
1893
1893
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
1894
1894
|
*
|
|
@@ -1903,10 +1903,10 @@ class fr {
|
|
|
1903
1903
|
* Процент, который прибавляется к значению выбранного коэффициента.
|
|
1904
1904
|
*/
|
|
1905
1905
|
t(this, "increasePercent");
|
|
1906
|
-
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new
|
|
1906
|
+
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1907
1907
|
}
|
|
1908
1908
|
}
|
|
1909
|
-
class Se extends
|
|
1909
|
+
class Se extends yr {
|
|
1910
1910
|
/**
|
|
1911
1911
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1912
1912
|
*
|
|
@@ -1976,7 +1976,7 @@ class Ae extends R {
|
|
|
1976
1976
|
e && (this.region = new ue(e.region));
|
|
1977
1977
|
}
|
|
1978
1978
|
}
|
|
1979
|
-
class
|
|
1979
|
+
class wr extends k {
|
|
1980
1980
|
/**
|
|
1981
1981
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1982
1982
|
*
|
|
@@ -2015,7 +2015,7 @@ class yr extends k {
|
|
|
2015
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 = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = v(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
2016
2016
|
}
|
|
2017
2017
|
}
|
|
2018
|
-
class re extends
|
|
2018
|
+
class re extends wr {
|
|
2019
2019
|
/**
|
|
2020
2020
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2021
2021
|
*
|
|
@@ -2091,7 +2091,7 @@ class ie extends ee {
|
|
|
2091
2091
|
this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new re(e == null ? void 0 : e.client), this.priceTemplate = new K(e == null ? void 0 : e.priceTemplate);
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
|
-
class ke extends
|
|
2094
|
+
class ke extends yr {
|
|
2095
2095
|
/**
|
|
2096
2096
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
2097
2097
|
*
|
|
@@ -2106,7 +2106,7 @@ class ke extends fr {
|
|
|
2106
2106
|
this.product = new I(e == null ? void 0 : e.product);
|
|
2107
2107
|
}
|
|
2108
2108
|
}
|
|
2109
|
-
class
|
|
2109
|
+
class vr extends R {
|
|
2110
2110
|
}
|
|
2111
2111
|
class ne extends k {
|
|
2112
2112
|
/**
|
|
@@ -2128,7 +2128,7 @@ class ne extends k {
|
|
|
2128
2128
|
* Дополнительные метаданные свойства.
|
|
2129
2129
|
*/
|
|
2130
2130
|
t(this, "metadata");
|
|
2131
|
-
this.type = new
|
|
2131
|
+
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
2132
|
}
|
|
2133
2133
|
}
|
|
2134
2134
|
class V {
|
|
@@ -2286,7 +2286,7 @@ class Qe {
|
|
|
2286
2286
|
* Минимальный коэффициент цены.
|
|
2287
2287
|
*/
|
|
2288
2288
|
t(this, "minCoefficient");
|
|
2289
|
-
this.role = new oe(r == null ? void 0 : r.role), this.category = new me(r == null ? void 0 : r.category), this.minCoefficient = new
|
|
2289
|
+
this.role = new oe(r == null ? void 0 : r.role), this.category = new me(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
|
|
2290
2290
|
}
|
|
2291
2291
|
}
|
|
2292
2292
|
class Wt extends p {
|
|
@@ -2684,7 +2684,7 @@ class Vt extends p {
|
|
|
2684
2684
|
getCategoryProductsCoefficients(r) {
|
|
2685
2685
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2686
2686
|
const { data: s } = e;
|
|
2687
|
-
return
|
|
2687
|
+
return Hr(s, (i) => i.map((o) => new Me(o))), s;
|
|
2688
2688
|
});
|
|
2689
2689
|
}
|
|
2690
2690
|
/**
|
|
@@ -2769,7 +2769,7 @@ class Qt extends p {
|
|
|
2769
2769
|
clientId: r,
|
|
2770
2770
|
showHidden: e
|
|
2771
2771
|
},
|
|
2772
|
-
(s) => s.data.map((i) => new
|
|
2772
|
+
(s) => s.data.map((i) => new ve(i))
|
|
2773
2773
|
);
|
|
2774
2774
|
}
|
|
2775
2775
|
/**
|
|
@@ -2790,7 +2790,7 @@ class Qt extends p {
|
|
|
2790
2790
|
showHidden: s,
|
|
2791
2791
|
withNestedCategories: i
|
|
2792
2792
|
},
|
|
2793
|
-
(o) => new
|
|
2793
|
+
(o) => new ve(o.data)
|
|
2794
2794
|
);
|
|
2795
2795
|
}
|
|
2796
2796
|
/**
|
|
@@ -2868,7 +2868,7 @@ class Ye {
|
|
|
2868
2868
|
field: this.field,
|
|
2869
2869
|
op: this.op
|
|
2870
2870
|
};
|
|
2871
|
-
return r.value =
|
|
2871
|
+
return r.value = ae(this.value) ? U(this.value, L().config.dateFormats.api) : this.value, r;
|
|
2872
2872
|
}
|
|
2873
2873
|
}
|
|
2874
2874
|
class j {
|
|
@@ -3678,7 +3678,7 @@ function Ze(n) {
|
|
|
3678
3678
|
var ht = /* @__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))(ht || {}), q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(q || {});
|
|
3679
3679
|
class gt extends R {
|
|
3680
3680
|
}
|
|
3681
|
-
class
|
|
3681
|
+
class Cr extends R {
|
|
3682
3682
|
}
|
|
3683
3683
|
class ts extends R {
|
|
3684
3684
|
}
|
|
@@ -3697,7 +3697,7 @@ class G extends R {
|
|
|
3697
3697
|
});
|
|
3698
3698
|
}
|
|
3699
3699
|
}
|
|
3700
|
-
class
|
|
3700
|
+
class Rr extends R {
|
|
3701
3701
|
}
|
|
3702
3702
|
class ft extends R {
|
|
3703
3703
|
}
|
|
@@ -3705,7 +3705,7 @@ class yt extends R {
|
|
|
3705
3705
|
}
|
|
3706
3706
|
class Z extends R {
|
|
3707
3707
|
}
|
|
3708
|
-
class
|
|
3708
|
+
class Pr extends R {
|
|
3709
3709
|
}
|
|
3710
3710
|
class wt extends R {
|
|
3711
3711
|
}
|
|
@@ -3728,10 +3728,10 @@ class ss {
|
|
|
3728
3728
|
return r.id === 0 && r.slug === "-undefined-";
|
|
3729
3729
|
}
|
|
3730
3730
|
}
|
|
3731
|
-
class Pr extends R {
|
|
3732
|
-
}
|
|
3733
3731
|
class Ar extends R {
|
|
3734
3732
|
}
|
|
3733
|
+
class Dr extends R {
|
|
3734
|
+
}
|
|
3735
3735
|
class qe extends ee {
|
|
3736
3736
|
/**
|
|
3737
3737
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
@@ -3759,8 +3759,8 @@ class qe extends ee {
|
|
|
3759
3759
|
/**
|
|
3760
3760
|
* Данные о валюте.
|
|
3761
3761
|
*/
|
|
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
|
|
3762
|
+
t(this, "currency", new a());
|
|
3763
|
+
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new a(e.currency));
|
|
3764
3764
|
}
|
|
3765
3765
|
}
|
|
3766
3766
|
class Ne extends k {
|
|
@@ -3817,7 +3817,7 @@ class B extends Ne {
|
|
|
3817
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 = v(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3818
3818
|
}
|
|
3819
3819
|
}
|
|
3820
|
-
class
|
|
3820
|
+
class Tr extends k {
|
|
3821
3821
|
/**
|
|
3822
3822
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3823
3823
|
*
|
|
@@ -3867,7 +3867,7 @@ class Dr extends k {
|
|
|
3867
3867
|
*/
|
|
3868
3868
|
t(this, "updater");
|
|
3869
3869
|
if (e) {
|
|
3870
|
-
if (this.opf = new G(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new
|
|
3870
|
+
if (this.opf = new G(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new x(e.creator) : void 0, this.updatedAt = v(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new x(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Z(e.partnerGroup)), e.contacts) {
|
|
3871
3871
|
const s = [];
|
|
3872
3872
|
e.contacts.forEach((i) => {
|
|
3873
3873
|
s.push(new B(i));
|
|
@@ -3882,7 +3882,7 @@ class Dr extends k {
|
|
|
3882
3882
|
}
|
|
3883
3883
|
}
|
|
3884
3884
|
}
|
|
3885
|
-
class vt extends
|
|
3885
|
+
class vt extends Tr {
|
|
3886
3886
|
/**
|
|
3887
3887
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3888
3888
|
*
|
|
@@ -3892,7 +3892,7 @@ class vt extends Dr {
|
|
|
3892
3892
|
super(r);
|
|
3893
3893
|
}
|
|
3894
3894
|
}
|
|
3895
|
-
class
|
|
3895
|
+
class $r extends Tr {
|
|
3896
3896
|
/**
|
|
3897
3897
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
3898
3898
|
*
|
|
@@ -3935,7 +3935,7 @@ class Tr extends Dr {
|
|
|
3935
3935
|
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
3936
|
}
|
|
3937
3937
|
}
|
|
3938
|
-
class
|
|
3938
|
+
class br extends $r {
|
|
3939
3939
|
/**
|
|
3940
3940
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
3941
3941
|
*
|
|
@@ -3950,7 +3950,7 @@ class $r extends Tr {
|
|
|
3950
3950
|
e && (this.kpp = e.kpp ?? "");
|
|
3951
3951
|
}
|
|
3952
3952
|
}
|
|
3953
|
-
class Ct extends
|
|
3953
|
+
class Ct extends br {
|
|
3954
3954
|
/**
|
|
3955
3955
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3956
3956
|
*
|
|
@@ -3973,7 +3973,7 @@ class Ct extends $r {
|
|
|
3973
3973
|
e && (this.registrationCountry = new X(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
3974
3974
|
}
|
|
3975
3975
|
}
|
|
3976
|
-
class
|
|
3976
|
+
class Ce {
|
|
3977
3977
|
/**
|
|
3978
3978
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
3979
3979
|
*
|
|
@@ -3982,9 +3982,9 @@ class ve {
|
|
|
3982
3982
|
static createInstance(r) {
|
|
3983
3983
|
switch (r.opf.slug) {
|
|
3984
3984
|
case q.Ic:
|
|
3985
|
-
return new Tr(r);
|
|
3986
|
-
case q.UlR:
|
|
3987
3985
|
return new $r(r);
|
|
3986
|
+
case q.UlR:
|
|
3987
|
+
return new br(r);
|
|
3988
3988
|
case q.UlNr:
|
|
3989
3989
|
return new Ct(r);
|
|
3990
3990
|
default:
|
|
@@ -4035,7 +4035,7 @@ class Rt extends B {
|
|
|
4035
4035
|
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Ie(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Ie(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Ie(s))));
|
|
4036
4036
|
}
|
|
4037
4037
|
}
|
|
4038
|
-
class
|
|
4038
|
+
class Re extends tt {
|
|
4039
4039
|
/**
|
|
4040
4040
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
4041
4041
|
*
|
|
@@ -4125,10 +4125,10 @@ class er extends re {
|
|
|
4125
4125
|
* @inheritDoc
|
|
4126
4126
|
*/
|
|
4127
4127
|
t(this, "extraData");
|
|
4128
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) =>
|
|
4128
|
+
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 Z(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 Dr(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 ge(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
4129
4129
|
}
|
|
4130
4130
|
}
|
|
4131
|
-
class
|
|
4131
|
+
class Sr {
|
|
4132
4132
|
/**
|
|
4133
4133
|
* Возвращает очищенное значение фильтров, содержащие
|
|
4134
4134
|
* только актуальные данные.
|
|
@@ -4142,7 +4142,7 @@ class br {
|
|
|
4142
4142
|
}), r;
|
|
4143
4143
|
}
|
|
4144
4144
|
}
|
|
4145
|
-
class is extends
|
|
4145
|
+
class is extends Sr {
|
|
4146
4146
|
/**
|
|
4147
4147
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
4148
4148
|
*
|
|
@@ -4247,7 +4247,7 @@ class is extends br {
|
|
|
4247
4247
|
* @inheritDoc
|
|
4248
4248
|
*/
|
|
4249
4249
|
t(this, "lastOrder");
|
|
4250
|
-
this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new Ae(D)), this.region = new ue(e == null ? void 0 : e.region), this.country = new X(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((D) => new
|
|
4250
|
+
this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (s = e == null ? void 0 : e.cities) == null ? void 0 : s.map((D) => new Ae(D)), this.region = new ue(e == null ? void 0 : e.region), this.country = new X(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((D) => new fe(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new ze(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new O(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new G(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((D) => new Z(D)), this.contact = new Ne(e == null ? void 0 : e.contact), this.lastOrder = {
|
|
4251
4251
|
createdAt: new S((h = e == null ? void 0 : e.lastOrder) == null ? void 0 : h.createdAt),
|
|
4252
4252
|
creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
|
|
4253
4253
|
isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
|
|
@@ -4312,7 +4312,7 @@ class is extends br {
|
|
|
4312
4312
|
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;
|
|
4313
4313
|
}
|
|
4314
4314
|
}
|
|
4315
|
-
class
|
|
4315
|
+
class kr extends ee {
|
|
4316
4316
|
/**
|
|
4317
4317
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
4318
4318
|
*
|
|
@@ -4332,7 +4332,7 @@ class Sr extends ee {
|
|
|
4332
4332
|
* @inheritDoc
|
|
4333
4333
|
*/
|
|
4334
4334
|
t(this, "isApproved1c");
|
|
4335
|
-
this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new
|
|
4335
|
+
this.createdAt = v(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new x(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
4336
4336
|
}
|
|
4337
4337
|
}
|
|
4338
4338
|
class Pt extends k {
|
|
@@ -4372,7 +4372,7 @@ class Pt extends k {
|
|
|
4372
4372
|
* @inheritDoc
|
|
4373
4373
|
*/
|
|
4374
4374
|
t(this, "curators");
|
|
4375
|
-
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new
|
|
4375
|
+
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new kr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Z(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 Ge(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new ze(u))) ?? void 0;
|
|
4376
4376
|
}
|
|
4377
4377
|
}
|
|
4378
4378
|
class At {
|
|
@@ -4442,7 +4442,7 @@ class os {
|
|
|
4442
4442
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4443
4443
|
}
|
|
4444
4444
|
}
|
|
4445
|
-
class
|
|
4445
|
+
class d extends De {
|
|
4446
4446
|
/**
|
|
4447
4447
|
* Преобразует данные о клиенте в данные требуемые для запроса.
|
|
4448
4448
|
*
|
|
@@ -4666,7 +4666,7 @@ class a extends De {
|
|
|
4666
4666
|
* @see /doc/api/internal#/Клиенты/api_internal_client_create
|
|
4667
4667
|
*/
|
|
4668
4668
|
createClientCommonData(r, e = {}) {
|
|
4669
|
-
return this.post("/internal/clients",
|
|
4669
|
+
return this.post("/internal/clients", d.transformClientDataToRequest(r), (s) => new er(s.data), e);
|
|
4670
4670
|
}
|
|
4671
4671
|
/**
|
|
4672
4672
|
* Обновляет данные указанного клиента.
|
|
@@ -4676,7 +4676,7 @@ class a extends De {
|
|
|
4676
4676
|
* @see /doc/api/internal#/Клиенты/api_internal_client_change
|
|
4677
4677
|
*/
|
|
4678
4678
|
updateClientCommonData(r, e = {}) {
|
|
4679
|
-
return this.patch(`/internal/clients/${r.id}`,
|
|
4679
|
+
return this.patch(`/internal/clients/${r.id}`, d.transformClientDataToRequest(r), void 0, e);
|
|
4680
4680
|
}
|
|
4681
4681
|
/**
|
|
4682
4682
|
* Обновляет данные "Не беспокоить" указанного клиента.
|
|
@@ -4805,8 +4805,8 @@ class a extends De {
|
|
|
4805
4805
|
createContragentClientData(r, e, s = {}) {
|
|
4806
4806
|
return this.post(
|
|
4807
4807
|
`/internal/clients/${r}/contragents`,
|
|
4808
|
-
|
|
4809
|
-
(i) =>
|
|
4808
|
+
d.transformContragentClientDataToRequest(e),
|
|
4809
|
+
(i) => Ce.createInstance(i.data),
|
|
4810
4810
|
s
|
|
4811
4811
|
);
|
|
4812
4812
|
}
|
|
@@ -4821,8 +4821,8 @@ class a extends De {
|
|
|
4821
4821
|
updateContragentClientData(r, e, s = {}) {
|
|
4822
4822
|
return this.patch(
|
|
4823
4823
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
4824
|
-
|
|
4825
|
-
(i) =>
|
|
4824
|
+
d.transformContragentClientDataToRequest(e),
|
|
4825
|
+
(i) => Ce.createInstance(i.data),
|
|
4826
4826
|
s
|
|
4827
4827
|
);
|
|
4828
4828
|
}
|
|
@@ -4847,8 +4847,8 @@ class a extends De {
|
|
|
4847
4847
|
createClientDeliveryAddress(r, e, s = {}) {
|
|
4848
4848
|
return this.post(
|
|
4849
4849
|
`/internal/clients/${r}/delivery-addresses`,
|
|
4850
|
-
|
|
4851
|
-
(i) => new
|
|
4850
|
+
d.transformClientDeliveryAddressToRequest(e),
|
|
4851
|
+
(i) => new Re(i.data),
|
|
4852
4852
|
s
|
|
4853
4853
|
);
|
|
4854
4854
|
}
|
|
@@ -4863,8 +4863,8 @@ class a extends De {
|
|
|
4863
4863
|
updateClientDeliveryAddress(r, e, s = {}) {
|
|
4864
4864
|
return this.patch(
|
|
4865
4865
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
4866
|
-
|
|
4867
|
-
(i) => new
|
|
4866
|
+
d.transformClientDeliveryAddressToRequest(e),
|
|
4867
|
+
(i) => new Re(i.data),
|
|
4868
4868
|
s
|
|
4869
4869
|
);
|
|
4870
4870
|
}
|
|
@@ -4890,7 +4890,7 @@ class a extends De {
|
|
|
4890
4890
|
createContragentBankAccount(r, e, s, i = {}) {
|
|
4891
4891
|
return this.post(
|
|
4892
4892
|
`/internal/clients/${r}/contragents/${e}/bank-accounts`,
|
|
4893
|
-
|
|
4893
|
+
d.transformClientContragentBankAccountToRequest(s),
|
|
4894
4894
|
(o) => new qe(o.data),
|
|
4895
4895
|
i
|
|
4896
4896
|
);
|
|
@@ -4907,7 +4907,7 @@ class a extends De {
|
|
|
4907
4907
|
updateContragentBankAccount(r, e, s, i = {}) {
|
|
4908
4908
|
return this.patch(
|
|
4909
4909
|
`/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
|
|
4910
|
-
|
|
4910
|
+
d.transformClientContragentBankAccountToRequest(s),
|
|
4911
4911
|
(o) => new qe(o.data),
|
|
4912
4912
|
i
|
|
4913
4913
|
);
|
|
@@ -5162,7 +5162,7 @@ const Q = class Q extends p {
|
|
|
5162
5162
|
*/
|
|
5163
5163
|
cacheResponse(e, s) {
|
|
5164
5164
|
Q.responseDataCache.set(e, {
|
|
5165
|
-
validTo:
|
|
5165
|
+
validTo: Mr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
5166
5166
|
val: s
|
|
5167
5167
|
});
|
|
5168
5168
|
}
|
|
@@ -5322,17 +5322,17 @@ class ps {
|
|
|
5322
5322
|
* Возвращает диапазон дат по умолчанию.
|
|
5323
5323
|
*/
|
|
5324
5324
|
static defaultDateRanges() {
|
|
5325
|
-
const r =
|
|
5325
|
+
const r = jr(/* @__PURE__ */ new Date(), 1);
|
|
5326
5326
|
return {
|
|
5327
5327
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5328
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
5329
|
-
today: { label: "Сегодня", from: Oe(), to:
|
|
5330
|
-
yesterday: { label: "Вчера", from:
|
|
5331
|
-
tomorrow: { label: "Завтра", from:
|
|
5328
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: Vr(r), to: Er(r) },
|
|
5329
|
+
today: { label: "Сегодня", from: Oe(), to: Jr() },
|
|
5330
|
+
yesterday: { label: "Вчера", from: Wr(), to: zr() },
|
|
5331
|
+
tomorrow: { label: "Завтра", from: Br(), to: Gr() }
|
|
5332
5332
|
};
|
|
5333
5333
|
}
|
|
5334
5334
|
}
|
|
5335
|
-
class
|
|
5335
|
+
class Ir {
|
|
5336
5336
|
/**
|
|
5337
5337
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
5338
5338
|
*
|
|
@@ -5348,7 +5348,7 @@ class kr {
|
|
|
5348
5348
|
*/
|
|
5349
5349
|
static getProductMultiplicity(r) {
|
|
5350
5350
|
var e, s;
|
|
5351
|
-
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !
|
|
5351
|
+
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !Ir.productIsMeasurable(r) ? r.properties.minCount : 1;
|
|
5352
5352
|
}
|
|
5353
5353
|
/**
|
|
5354
5354
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -5369,7 +5369,7 @@ class gs {
|
|
|
5369
5369
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5370
5370
|
*/
|
|
5371
5371
|
static generateUndefinedManagerInstance() {
|
|
5372
|
-
return new
|
|
5372
|
+
return new fe({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
|
|
5373
5373
|
}
|
|
5374
5374
|
/**
|
|
5375
5375
|
* Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
|
|
@@ -5388,11 +5388,11 @@ class Tt extends pe {
|
|
|
5388
5388
|
const r = "/internal/managers", e = pe.getCachedResponse(r);
|
|
5389
5389
|
if (e)
|
|
5390
5390
|
return e;
|
|
5391
|
-
const i = (await this.get(r)).data.map((o) => Fe.instanceInitializer(
|
|
5391
|
+
const i = (await this.get(r)).data.map((o) => Fe.instanceInitializer(fe, o));
|
|
5392
5392
|
return this.cacheResponse(r, i), i;
|
|
5393
5393
|
}
|
|
5394
5394
|
}
|
|
5395
|
-
class
|
|
5395
|
+
class Lr extends kr {
|
|
5396
5396
|
/**
|
|
5397
5397
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
5398
5398
|
*
|
|
@@ -5456,9 +5456,9 @@ class Ir extends Sr {
|
|
|
5456
5456
|
}, this.delivery = {
|
|
5457
5457
|
type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
|
|
5458
5458
|
date: v((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
|
|
5459
|
-
address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new
|
|
5459
|
+
address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new Re(e.delivery.address) : void 0,
|
|
5460
5460
|
warehouse: (f = e == null ? void 0 : e.delivery) != null && f.warehouse ? new ge(e.delivery.warehouse) : void 0
|
|
5461
|
-
}, this.attachedUser = e != null && e.attachedUser ? new
|
|
5461
|
+
}, this.attachedUser = e != null && e.attachedUser ? new x(e == null ? void 0 : e.attachedUser) : void 0, this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.pendingAt = v(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = v(e == null ? void 0 : e.processedAt) ? C(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
|
|
5462
5462
|
}
|
|
5463
5463
|
}
|
|
5464
5464
|
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 || {});
|
|
@@ -5478,7 +5478,7 @@ class b extends pe {
|
|
|
5478
5478
|
* первичного интереса.
|
|
5479
5479
|
*/
|
|
5480
5480
|
getChannelPrimaryInterest() {
|
|
5481
|
-
return this.getTypedDataArrayRequester(
|
|
5481
|
+
return this.getTypedDataArrayRequester(Cr, "/internal/references/channel-primary-interest", !0);
|
|
5482
5482
|
}
|
|
5483
5483
|
/**
|
|
5484
5484
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
@@ -5496,7 +5496,7 @@ class b extends pe {
|
|
|
5496
5496
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
5497
5497
|
*/
|
|
5498
5498
|
getCurrency() {
|
|
5499
|
-
return this.getTypedDataArrayRequester(
|
|
5499
|
+
return this.getTypedDataArrayRequester(a, "/public/references/currency", !0);
|
|
5500
5500
|
}
|
|
5501
5501
|
/**
|
|
5502
5502
|
* Возвращает {@link Promise} для получения справочника данных
|
|
@@ -5515,7 +5515,7 @@ class b extends pe {
|
|
|
5515
5515
|
* Возвращает {@link Promise} для получения справочника операторов.
|
|
5516
5516
|
*/
|
|
5517
5517
|
getOperators() {
|
|
5518
|
-
return this.getTypedDataArrayRequester(
|
|
5518
|
+
return this.getTypedDataArrayRequester(Rr, "/internal/references/operator", !0);
|
|
5519
5519
|
}
|
|
5520
5520
|
/**
|
|
5521
5521
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
@@ -5533,13 +5533,13 @@ class b extends pe {
|
|
|
5533
5533
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
5534
5534
|
*/
|
|
5535
5535
|
getPaymentTypes() {
|
|
5536
|
-
return this.getTypedDataArrayRequester(
|
|
5536
|
+
return this.getTypedDataArrayRequester(Pr, "/public/references/payment-type", !0);
|
|
5537
5537
|
}
|
|
5538
5538
|
/**
|
|
5539
5539
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
5540
5540
|
*/
|
|
5541
5541
|
getResourceTypes() {
|
|
5542
|
-
return this.getTypedDataArrayRequester(
|
|
5542
|
+
return this.getTypedDataArrayRequester(Ar, "/internal/references/resource-type", !0);
|
|
5543
5543
|
}
|
|
5544
5544
|
/**
|
|
5545
5545
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
@@ -5551,7 +5551,7 @@ class b extends pe {
|
|
|
5551
5551
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
5552
5552
|
*/
|
|
5553
5553
|
getSourcePrimaryInterest() {
|
|
5554
|
-
return this.getTypedDataArrayRequester(
|
|
5554
|
+
return this.getTypedDataArrayRequester(Dr, "/internal/references/source-primary-interest", !0);
|
|
5555
5555
|
}
|
|
5556
5556
|
/**
|
|
5557
5557
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -5593,13 +5593,13 @@ class b extends pe {
|
|
|
5593
5593
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
5594
5594
|
*/
|
|
5595
5595
|
getPropertyTypes() {
|
|
5596
|
-
return this.getTypedDataArrayRequester(
|
|
5596
|
+
return this.getTypedDataArrayRequester(vr, "/internal/references/property-type", !0);
|
|
5597
5597
|
}
|
|
5598
5598
|
/**
|
|
5599
5599
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
5600
5600
|
*/
|
|
5601
5601
|
getPriceCoefficients() {
|
|
5602
|
-
return this.getTypedDataArrayRequester(
|
|
5602
|
+
return this.getTypedDataArrayRequester(Pe, "/internal/references/price-coefficient", !0);
|
|
5603
5603
|
}
|
|
5604
5604
|
/**
|
|
5605
5605
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
@@ -5855,7 +5855,7 @@ const $ = z("common.references_private", () => {
|
|
|
5855
5855
|
priceCoefficientsReference: $e
|
|
5856
5856
|
};
|
|
5857
5857
|
});
|
|
5858
|
-
class fs extends
|
|
5858
|
+
class fs extends Sr {
|
|
5859
5859
|
/**
|
|
5860
5860
|
* Инициализирует экземпляр класса {@link OrdersListFilters}.
|
|
5861
5861
|
*
|
|
@@ -5867,7 +5867,7 @@ class fs extends br {
|
|
|
5867
5867
|
/**
|
|
5868
5868
|
* @inheritDoc
|
|
5869
5869
|
*/
|
|
5870
|
-
t(this, "
|
|
5870
|
+
t(this, "attachedUsers");
|
|
5871
5871
|
/**
|
|
5872
5872
|
* @inheritDoc
|
|
5873
5873
|
*/
|
|
@@ -5960,7 +5960,7 @@ class fs extends br {
|
|
|
5960
5960
|
* @inheritDoc
|
|
5961
5961
|
*/
|
|
5962
5962
|
t(this, "onlyMyRegions");
|
|
5963
|
-
this.
|
|
5963
|
+
this.attachedUsers = (s = e == null ? void 0 : e.attachedUsers) == null ? void 0 : s.map((u) => "isActive" in u ? new fe(u) : new Rr(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new re(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 x(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((u) => new Ae(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isApproved1c = e == null ? void 0 : e.isApproved1c, 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.pendingAt = new S(e == null ? void 0 : e.pendingAt), this.processedAt = new S(e == null ? void 0 : e.processedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new O(u)), this.status = e == null ? void 0 : e.status, 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.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new ge(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
|
|
5964
5964
|
}
|
|
5965
5965
|
/**
|
|
5966
5966
|
* @inheritDoc
|
|
@@ -6060,10 +6060,10 @@ class bt extends gr {
|
|
|
6060
6060
|
* @inheritDoc
|
|
6061
6061
|
*/
|
|
6062
6062
|
t(this, "currency");
|
|
6063
|
-
this.product = new M(e.product), this.currency = new
|
|
6063
|
+
this.product = new M(e.product), this.currency = new a(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;
|
|
6064
6064
|
}
|
|
6065
6065
|
}
|
|
6066
|
-
class Le extends
|
|
6066
|
+
class Le extends Lr {
|
|
6067
6067
|
/**
|
|
6068
6068
|
* Инициализирует экземпляр класса {@link Order}.
|
|
6069
6069
|
*
|
|
@@ -6103,7 +6103,7 @@ class Le extends Ir {
|
|
|
6103
6103
|
* @inheritDoc
|
|
6104
6104
|
*/
|
|
6105
6105
|
t(this, "isAllowProcessingWithoutPayment");
|
|
6106
|
-
this.products = (e.products ?? []).map((s) => new bt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ?
|
|
6106
|
+
this.products = (e.products ?? []).map((s) => new bt(s)), 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 R(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
6107
6107
|
}
|
|
6108
6108
|
}
|
|
6109
6109
|
class ys extends De {
|
|
@@ -6126,7 +6126,7 @@ class ys extends De {
|
|
|
6126
6126
|
{},
|
|
6127
6127
|
(o) => {
|
|
6128
6128
|
const c = { ...o.data };
|
|
6129
|
-
return c.data = c.data.map((u) => new
|
|
6129
|
+
return c.data = c.data.map((u) => new Lr(u)), c;
|
|
6130
6130
|
},
|
|
6131
6131
|
void 0,
|
|
6132
6132
|
i
|
|
@@ -6227,7 +6227,7 @@ class ys extends De {
|
|
|
6227
6227
|
);
|
|
6228
6228
|
}
|
|
6229
6229
|
}
|
|
6230
|
-
class
|
|
6230
|
+
class de {
|
|
6231
6231
|
/**
|
|
6232
6232
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
6233
6233
|
*
|
|
@@ -6257,7 +6257,7 @@ class ae {
|
|
|
6257
6257
|
this.client = new re(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? je.Product;
|
|
6258
6258
|
}
|
|
6259
6259
|
}
|
|
6260
|
-
const
|
|
6260
|
+
const xe = (n) => {
|
|
6261
6261
|
var r, e, s, i, o;
|
|
6262
6262
|
return n ? or(
|
|
6263
6263
|
{
|
|
@@ -6289,9 +6289,9 @@ class ws extends p {
|
|
|
6289
6289
|
`/internal/price/products/${r}/analyze`,
|
|
6290
6290
|
{
|
|
6291
6291
|
...rr(e),
|
|
6292
|
-
filters:
|
|
6292
|
+
filters: xe(s)
|
|
6293
6293
|
},
|
|
6294
|
-
(i) => i.data.map((o) => new
|
|
6294
|
+
(i) => i.data.map((o) => new de(o))
|
|
6295
6295
|
);
|
|
6296
6296
|
}
|
|
6297
6297
|
/**
|
|
@@ -6308,9 +6308,9 @@ class ws extends p {
|
|
|
6308
6308
|
`/internal/price/categories/${r}/analyze`,
|
|
6309
6309
|
{
|
|
6310
6310
|
...rr(e),
|
|
6311
|
-
filters:
|
|
6311
|
+
filters: xe(s)
|
|
6312
6312
|
},
|
|
6313
|
-
(i) => i.data.map((o) => new
|
|
6313
|
+
(i) => i.data.map((o) => new de(o))
|
|
6314
6314
|
);
|
|
6315
6315
|
}
|
|
6316
6316
|
/**
|
|
@@ -6329,9 +6329,9 @@ class ws extends p {
|
|
|
6329
6329
|
`/internal/price/categories/${r}/analyze/square`,
|
|
6330
6330
|
{
|
|
6331
6331
|
...e,
|
|
6332
|
-
filters:
|
|
6332
|
+
filters: xe(s)
|
|
6333
6333
|
},
|
|
6334
|
-
(i) => i.data.map((o) => new
|
|
6334
|
+
(i) => i.data.map((o) => new de(o))
|
|
6335
6335
|
);
|
|
6336
6336
|
}
|
|
6337
6337
|
}
|
|
@@ -6382,7 +6382,7 @@ class St {
|
|
|
6382
6382
|
* @inheritDoc
|
|
6383
6383
|
*/
|
|
6384
6384
|
t(this, "currency");
|
|
6385
|
-
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = v(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new le(r.product) : void 0, this.client = r.client ? new
|
|
6385
|
+
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = v(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new le(r.product) : void 0, this.client = r.client ? new x(r.client) : void 0, this.executor = r.executor ? new x(r.executor) : void 0, this.currency = r.currency ? new a(r.currency) : void 0;
|
|
6386
6386
|
}
|
|
6387
6387
|
}
|
|
6388
6388
|
class kt extends le {
|
|
@@ -6413,8 +6413,8 @@ class vs extends p {
|
|
|
6413
6413
|
const e = L().config.dateFormats.api, s = or(
|
|
6414
6414
|
ce(r, {
|
|
6415
6415
|
costDate: {
|
|
6416
|
-
from:
|
|
6417
|
-
to:
|
|
6416
|
+
from: ae((o = r.costDate) == null ? void 0 : o.from) ? U(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
6417
|
+
to: ae((u = r.costDate) == null ? void 0 : u.to) ? U(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
|
|
6418
6418
|
}
|
|
6419
6419
|
}),
|
|
6420
6420
|
(f) => T(f) || (H(f) || cr(f)) && Y(f)
|
|
@@ -6546,7 +6546,7 @@ class sr {
|
|
|
6546
6546
|
*/
|
|
6547
6547
|
t(this, "tags");
|
|
6548
6548
|
var e;
|
|
6549
|
-
this.resourceType = new
|
|
6549
|
+
this.resourceType = new Ar(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new It(s))) ?? [], this.tags = r == null ? void 0 : r.tags;
|
|
6550
6550
|
}
|
|
6551
6551
|
}
|
|
6552
6552
|
class Rs extends p {
|
|
@@ -6628,7 +6628,7 @@ class Ps extends p {
|
|
|
6628
6628
|
}
|
|
6629
6629
|
}
|
|
6630
6630
|
var Lt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Lt || {});
|
|
6631
|
-
class
|
|
6631
|
+
class dt extends wr {
|
|
6632
6632
|
/**
|
|
6633
6633
|
* Инициализирует экземпляр класса {@link User}.
|
|
6634
6634
|
*
|
|
@@ -6648,7 +6648,11 @@ class at extends yr {
|
|
|
6648
6648
|
* URI путь к фотографии пользователя.
|
|
6649
6649
|
*/
|
|
6650
6650
|
t(this, "photo");
|
|
6651
|
-
|
|
6651
|
+
/**
|
|
6652
|
+
* Роль ценообразования текущего пользователя.
|
|
6653
|
+
*/
|
|
6654
|
+
t(this, "pricingRole");
|
|
6655
|
+
this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo, this.pricingRole = e != null && e.pricingRole ? new fr(e.pricingRole) : void 0;
|
|
6652
6656
|
}
|
|
6653
6657
|
}
|
|
6654
6658
|
class As extends p {
|
|
@@ -6667,16 +6671,16 @@ class As extends p {
|
|
|
6667
6671
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
6668
6672
|
}
|
|
6669
6673
|
}
|
|
6670
|
-
class
|
|
6674
|
+
class xt extends p {
|
|
6671
6675
|
/**
|
|
6672
6676
|
* Возвращает данные о текущем пользователе.
|
|
6673
6677
|
*/
|
|
6674
6678
|
// eslint-disable-next-line class-methods-use-this
|
|
6675
6679
|
getCurrentUser() {
|
|
6676
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
6680
|
+
return this.get("/internal/users/info", {}, (r) => new dt(r.data), !0);
|
|
6677
6681
|
}
|
|
6678
6682
|
}
|
|
6679
|
-
const
|
|
6683
|
+
const at = z("common.user_state_private", () => {
|
|
6680
6684
|
const n = y({}), r = y(void 0);
|
|
6681
6685
|
return {
|
|
6682
6686
|
/**
|
|
@@ -6693,8 +6697,8 @@ const xt = z("common.user_state_private", () => {
|
|
|
6693
6697
|
* Данные о текущем пользователе.
|
|
6694
6698
|
*/
|
|
6695
6699
|
currentUser: A(() => {
|
|
6696
|
-
const r =
|
|
6697
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(
|
|
6700
|
+
const r = at();
|
|
6701
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(xt).getCurrentUser().then((e) => {
|
|
6698
6702
|
r.currentUser = e;
|
|
6699
6703
|
}).catch(w).finally(() => {
|
|
6700
6704
|
r.dataLoaderList.currentUser = !1;
|
|
@@ -6726,23 +6730,23 @@ class Ts {
|
|
|
6726
6730
|
}
|
|
6727
6731
|
export {
|
|
6728
6732
|
gt as AnyReference,
|
|
6729
|
-
|
|
6733
|
+
rt as AppBaseConfig,
|
|
6730
6734
|
qe as BankAccount,
|
|
6731
6735
|
De as BasePaginationProvider,
|
|
6732
|
-
|
|
6733
|
-
|
|
6736
|
+
lt as CalculationTypeEnum,
|
|
6737
|
+
ye as Cart,
|
|
6734
6738
|
Bt as CartProvider,
|
|
6735
6739
|
Wt as CatalogProvider,
|
|
6736
6740
|
ur as CatalogableItem,
|
|
6737
6741
|
_ as Category,
|
|
6738
6742
|
Qe as CategoryPricingRule,
|
|
6739
|
-
|
|
6743
|
+
Cr as ChannelPrimaryInterest,
|
|
6740
6744
|
ts as City,
|
|
6741
6745
|
Ae as CityWithRegionAndCountry,
|
|
6742
6746
|
er as Client,
|
|
6743
6747
|
Pt as ClientAdditionalData,
|
|
6744
|
-
|
|
6745
|
-
|
|
6748
|
+
ve as ClientCategory,
|
|
6749
|
+
d as ClientDataProvider,
|
|
6746
6750
|
Jt as ClientPriceProvider,
|
|
6747
6751
|
Et as ClientPriceTemplateProvider,
|
|
6748
6752
|
M as ClientProduct,
|
|
@@ -6760,73 +6764,73 @@ export {
|
|
|
6760
6764
|
Rt as ContactPersonRelated,
|
|
6761
6765
|
mt as ContactPosition,
|
|
6762
6766
|
Ie as ContactRelation,
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6767
|
+
Tr as ContragentBase,
|
|
6768
|
+
Ce as ContragentFactory,
|
|
6769
|
+
$r as ContragentIc,
|
|
6766
6770
|
vt as ContragentPerson,
|
|
6767
6771
|
Ct as ContragentUlNr,
|
|
6768
|
-
|
|
6772
|
+
br as ContragentUlR,
|
|
6769
6773
|
je as CostSourceEnum,
|
|
6770
6774
|
X as Country,
|
|
6771
6775
|
Be as CuratedDirection,
|
|
6772
6776
|
ze as Curator,
|
|
6773
|
-
|
|
6777
|
+
a as Currency,
|
|
6774
6778
|
Ps as DataSuggestionProvider,
|
|
6775
6779
|
ns as DataTablePagination,
|
|
6776
6780
|
At as DataTablePaginationRequestParams,
|
|
6777
6781
|
os as DataTableSortRequestParams,
|
|
6778
6782
|
ps as DateTimeProvider,
|
|
6779
|
-
|
|
6780
|
-
|
|
6783
|
+
tt as DeletableNamedIdentity,
|
|
6784
|
+
Re as DeliveryAddress,
|
|
6781
6785
|
N as DeliveryType,
|
|
6782
6786
|
jt as DetailedJwtPayload,
|
|
6783
|
-
|
|
6784
|
-
|
|
6787
|
+
Yr as DeviceTypeResolutionConfig,
|
|
6788
|
+
nt as DiscountShortInfo,
|
|
6785
6789
|
Ts as FieldValidationResultData,
|
|
6786
6790
|
j as FilterGroup,
|
|
6787
6791
|
Ye as FilterItem,
|
|
6788
6792
|
We as FilterOpEnum,
|
|
6789
6793
|
hr as GeoCoordinates,
|
|
6790
|
-
|
|
6794
|
+
it as HiddenCatalogableItem,
|
|
6791
6795
|
pe as HttpCachedRequester,
|
|
6792
|
-
|
|
6796
|
+
Xr as HttpParamsConfig,
|
|
6793
6797
|
p as HttpRequester,
|
|
6794
6798
|
ee as Identity,
|
|
6795
|
-
|
|
6799
|
+
st as Image,
|
|
6796
6800
|
F as JwtPayload,
|
|
6797
|
-
|
|
6801
|
+
fe as Manager,
|
|
6798
6802
|
Ge as ManagerCommon,
|
|
6799
6803
|
gs as ManagerDataFactory,
|
|
6800
6804
|
Tt as ManagerDataProvider,
|
|
6801
6805
|
It as MetaTagItem,
|
|
6802
6806
|
k as NamedIdentity,
|
|
6803
|
-
|
|
6807
|
+
Rr as Operator,
|
|
6804
6808
|
G as Opf,
|
|
6805
6809
|
q as OpfEnum,
|
|
6806
6810
|
Le as Order,
|
|
6807
|
-
|
|
6811
|
+
Lr as OrderInfo,
|
|
6808
6812
|
bt as OrderItem,
|
|
6809
6813
|
gr as OrderItemBase,
|
|
6810
6814
|
ft as OrderPaymentStatus,
|
|
6811
|
-
|
|
6815
|
+
kr as OrderShortInfo,
|
|
6812
6816
|
yt as OrderStatus,
|
|
6813
6817
|
$t as OrderStatusEnum,
|
|
6814
6818
|
ys as OrdersDataProvider,
|
|
6815
6819
|
fs as OrdersListFilters,
|
|
6816
|
-
|
|
6820
|
+
Sr as PaginationFiltersBase,
|
|
6817
6821
|
Z as PartnerGroup,
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6822
|
+
Pr as PaymentType,
|
|
6823
|
+
we as PreferencesStorageProvider,
|
|
6824
|
+
de as PriceAnalyze,
|
|
6821
6825
|
ws as PriceAnalyzeProvider,
|
|
6822
|
-
|
|
6826
|
+
Pe as PriceCoefficient,
|
|
6823
6827
|
pr as PriceCoefficientEnum,
|
|
6824
6828
|
vs as PriceHistoryDataProvider,
|
|
6825
6829
|
St as PriceHistoryItem,
|
|
6826
6830
|
K as PriceTemplate,
|
|
6827
6831
|
Se as PriceTemplateCategory,
|
|
6828
6832
|
ie as PriceTemplateClient,
|
|
6829
|
-
|
|
6833
|
+
yr as PriceTemplateICatalogableItem,
|
|
6830
6834
|
ke as PriceTemplateProduct,
|
|
6831
6835
|
Xt as PriceTemplateProvider,
|
|
6832
6836
|
oe as PricingRole,
|
|
@@ -6841,8 +6845,8 @@ export {
|
|
|
6841
6845
|
Ke as ProductUnit,
|
|
6842
6846
|
es as PropertiesProvider,
|
|
6843
6847
|
ne as Property,
|
|
6844
|
-
|
|
6845
|
-
|
|
6848
|
+
vr as PropertyType,
|
|
6849
|
+
ut as PropertyTypeEnum,
|
|
6846
6850
|
V as PropertyValue,
|
|
6847
6851
|
Cs as RecommendationsDataProvider,
|
|
6848
6852
|
tr as RecommendationsList,
|
|
@@ -6850,29 +6854,29 @@ export {
|
|
|
6850
6854
|
ss as ReferenceDataFactory,
|
|
6851
6855
|
b as ReferenceDataProvider,
|
|
6852
6856
|
ue as Region,
|
|
6853
|
-
|
|
6857
|
+
Ar as ResourceType,
|
|
6854
6858
|
O as SalesDirection,
|
|
6855
|
-
|
|
6859
|
+
Zr as SentryConfig,
|
|
6856
6860
|
sr as Seo,
|
|
6857
6861
|
Rs as SeoDataProvider,
|
|
6858
|
-
|
|
6859
|
-
|
|
6862
|
+
Dr as SourcePrimaryInterest,
|
|
6863
|
+
ot as StockCount,
|
|
6860
6864
|
rs as TemplateProductCategoryDataProvider,
|
|
6861
6865
|
zt as TemplatesListFilters,
|
|
6862
6866
|
Fe as TypedInstanceFactory,
|
|
6863
|
-
|
|
6867
|
+
Ir as UnitsHelper,
|
|
6864
6868
|
cs as UnknownClientDataProvider,
|
|
6865
6869
|
lr as UpdatableNamedIdentity,
|
|
6866
|
-
|
|
6870
|
+
dt as User,
|
|
6867
6871
|
As as UserAuthDataProvider,
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
+
wr as UserCommonInfo,
|
|
6873
|
+
xt as UserDataProvider,
|
|
6874
|
+
fr as UserPricingRole,
|
|
6875
|
+
x as UserShortInfo,
|
|
6872
6876
|
Lt as UserTypeEnum,
|
|
6873
6877
|
ls as VersionConfig,
|
|
6874
6878
|
ge as Warehouse,
|
|
6875
|
-
|
|
6879
|
+
et as WebSocketConfig,
|
|
6876
6880
|
Xe as findCatalogItemByIdRecursive,
|
|
6877
6881
|
Ze as flattenCatalogItems,
|
|
6878
6882
|
hs as pluralize,
|