@snabcentr/common-lib 2.52.3 → 2.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +1 -1
- package/dist/release_notes.tmp +2 -6
- package/dist/sc-common-lib.js +642 -609
- 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/suggestion/enums/address-quality-enum.d.ts +18 -0
- package/dist/src/suggestion/enums/address-quality-enum.d.ts.map +1 -0
- package/dist/src/suggestion/enums/index.d.ts +2 -0
- package/dist/src/suggestion/enums/index.d.ts.map +1 -0
- package/dist/src/suggestion/helpers/address-quality-helper.d.ts +25 -0
- package/dist/src/suggestion/helpers/address-quality-helper.d.ts.map +1 -0
- package/dist/src/suggestion/helpers/index.d.ts +2 -0
- package/dist/src/suggestion/helpers/index.d.ts.map +1 -0
- package/dist/src/suggestion/index.d.ts +2 -0
- package/dist/src/suggestion/index.d.ts.map +1 -1
- package/dist/src/suggestion/interfaces/i-address-suggestion.d.ts +5 -0
- package/dist/src/suggestion/interfaces/i-address-suggestion.d.ts.map +1 -1
- package/dist/src/suggestion/interfaces/i-organization-suggestion.d.ts +13 -0
- package/dist/src/suggestion/interfaces/i-organization-suggestion.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var s = (n, r, e) =>
|
|
4
|
-
import { jwtDecode as
|
|
5
|
-
import { merge as Ne, isNil as m, isEmpty as J, noop as T, mapValues as
|
|
6
|
-
import { objectToCamel as
|
|
1
|
+
var Lt = Object.defineProperty;
|
|
2
|
+
var It = (n, r, e) => r in n ? Lt(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var s = (n, r, e) => It(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jwtDecode as et } from "jwt-decode";
|
|
5
|
+
import { merge as Ne, isNil as m, isEmpty as J, noop as T, mapValues as rt, isArray as W, every as xt, split as _t, startsWith as tt, endsWith as Nt, includes as qt, isString as R, isFunction as dr, map as De, isObject as Je, isDate as Ke, isError as qr, assign as Ur, toLower as Ut, isPlainObject as Et, isUndefined as He, constant as Ft, toUpper as Mt, cloneDeep as Ht, forEach as Bt, round as zt, omitBy as st } from "lodash-es";
|
|
6
|
+
import { objectToCamel as $r, objectToSnake as Wt } from "ts-case-convert";
|
|
7
7
|
import { defineStore as ne } from "pinia";
|
|
8
|
-
import { ref as v, markRaw as
|
|
9
|
-
import { isAfter as
|
|
10
|
-
import
|
|
8
|
+
import { ref as v, markRaw as jt, computed as b } from "vue";
|
|
9
|
+
import { isAfter as Er, parseISO as C, startOfToday as qe, format as k, endOfMonth as x, addMonths as $, differenceInCalendarMonths as Gt, startOfMonth as U, getDate as Fr, getDaysInMonth as Yt, endOfDay as z, startOfDay as ge, setDate as Vt, startOfWeek as ee, addWeeks as vr, differenceInCalendarDays as We, addDays as re, isValid as Qt, subDays as je, addBusinessDays as Jt, startOfYear as ue, endOfYear as de, endOfWeek as $e, endOfTomorrow as Kt, startOfTomorrow as Xt, endOfYesterday as Zt, startOfYesterday as es, endOfToday as rs, startOfQuarter as ke, endOfQuarter as Be, addYears as nr, addQuarters as or, subYears as cr, subQuarters as lr, subMonths as ur, subWeeks as Mr, addSeconds as ts } from "date-fns";
|
|
10
|
+
import ss, { CanceledError as is } from "axios";
|
|
11
11
|
class Te {
|
|
12
12
|
/**
|
|
13
13
|
* Инициализирует экземпляр класса {@link JwtPayload}.
|
|
@@ -107,11 +107,11 @@ class Te {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
const e =
|
|
110
|
+
const e = et(r), t = new Te($r(e));
|
|
111
111
|
return t.resourceAccess = e.resource_access, t;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class it extends Te {
|
|
115
115
|
/**
|
|
116
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
117
117
|
*
|
|
@@ -151,11 +151,11 @@ class tt extends Te {
|
|
|
151
151
|
* @param jwtToken JWT-ключ доступа.
|
|
152
152
|
*/
|
|
153
153
|
static getJwtPayload(e) {
|
|
154
|
-
const t =
|
|
154
|
+
const t = et(e), i = new it($r(t));
|
|
155
155
|
return i.resourceAccess = t.resource_access, i;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
class
|
|
158
|
+
class ns {
|
|
159
159
|
/**
|
|
160
160
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
161
161
|
*
|
|
@@ -177,7 +177,7 @@ class ss {
|
|
|
177
177
|
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;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
class
|
|
180
|
+
class os {
|
|
181
181
|
/**
|
|
182
182
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
183
183
|
*
|
|
@@ -199,7 +199,7 @@ class is {
|
|
|
199
199
|
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;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
class
|
|
202
|
+
class cs {
|
|
203
203
|
/**
|
|
204
204
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
205
205
|
*
|
|
@@ -244,7 +244,7 @@ class ns {
|
|
|
244
244
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
class
|
|
247
|
+
class ls {
|
|
248
248
|
/**
|
|
249
249
|
* Инициализирует экземпляр класса {@link WebSocketConfig}.
|
|
250
250
|
*
|
|
@@ -283,7 +283,7 @@ class os {
|
|
|
283
283
|
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"];
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
class
|
|
286
|
+
class us {
|
|
287
287
|
/**
|
|
288
288
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
289
289
|
*
|
|
@@ -327,10 +327,10 @@ class cs {
|
|
|
327
327
|
*/
|
|
328
328
|
s(this, "dateFormats");
|
|
329
329
|
var e, t, i;
|
|
330
|
-
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new
|
|
330
|
+
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new os(r == null ? void 0 : r.http), this.deviceTypeByResolution = new ns(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new cs({
|
|
331
331
|
environment: this.environment,
|
|
332
332
|
...r == null ? void 0 : r.sentry
|
|
333
|
-
}), 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
|
|
333
|
+
}), 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 ls(r.websocket) : void 0, this.dateFormats = {
|
|
334
334
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
335
335
|
uiDate: ((t = r == null ? void 0 : r.dateFormats) == null ? void 0 : t.uiDate) ?? "dd.MM.yyyy",
|
|
336
336
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
@@ -338,7 +338,7 @@ class cs {
|
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
const O = ne("common.config", () => {
|
|
341
|
-
const n = v(new
|
|
341
|
+
const n = v(new us());
|
|
342
342
|
return {
|
|
343
343
|
/**
|
|
344
344
|
* Конфигурационные данные приложения.
|
|
@@ -379,7 +379,7 @@ class Ge {
|
|
|
379
379
|
if (e)
|
|
380
380
|
try {
|
|
381
381
|
const t = JSON.parse(e);
|
|
382
|
-
if (!t.availableFor ||
|
|
382
|
+
if (!t.availableFor || Er(C(t.availableFor) || qe(), /* @__PURE__ */ new Date())) {
|
|
383
383
|
if (m(t.data) || J(t.data))
|
|
384
384
|
throw new Error("Data is empty");
|
|
385
385
|
return t.data;
|
|
@@ -454,7 +454,7 @@ class Ge {
|
|
|
454
454
|
const i = localStorage.getItem(t);
|
|
455
455
|
if (i) {
|
|
456
456
|
const o = JSON.parse(i);
|
|
457
|
-
o.availableFor && !
|
|
457
|
+
o.availableFor && !Er(C(o.availableFor) || qe(), /* @__PURE__ */ new Date()) && r.push(t);
|
|
458
458
|
}
|
|
459
459
|
} catch {
|
|
460
460
|
r.push(t);
|
|
@@ -470,7 +470,7 @@ class Ge {
|
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Hr(n) {
|
|
474
474
|
try {
|
|
475
475
|
const r = Te.getJwtPayload(n);
|
|
476
476
|
return new Date(r.exp * 1e3);
|
|
@@ -491,11 +491,11 @@ const pe = ne("common.auth_state_private", () => {
|
|
|
491
491
|
const c = (u = O().config.devMode) == null ? void 0 : u.initAuthBearerToken;
|
|
492
492
|
return c ? Promise.resolve(c) : void 0;
|
|
493
493
|
})()
|
|
494
|
-
), r = v(void 0), e = v(void 0), t =
|
|
494
|
+
), r = v(void 0), e = v(void 0), t = jt(/* @__PURE__ */ new Map());
|
|
495
495
|
function i() {
|
|
496
496
|
e.value = void 0, m(n.value) || n.value.then((o) => {
|
|
497
497
|
const c = Te.getJwtPayload(o);
|
|
498
|
-
e.value = c.exp * 1e3 > Date.now() ?
|
|
498
|
+
e.value = c.exp * 1e3 > Date.now() ? rt(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
|
|
499
499
|
}).catch(T);
|
|
500
500
|
}
|
|
501
501
|
return {
|
|
@@ -521,12 +521,12 @@ const pe = ne("common.auth_state_private", () => {
|
|
|
521
521
|
recalculateUserPermissions: i
|
|
522
522
|
};
|
|
523
523
|
}), ze = ne("common.auth_state", () => {
|
|
524
|
-
const n =
|
|
524
|
+
const n = b(() => {
|
|
525
525
|
const o = pe();
|
|
526
526
|
if (m(o.jwtToken) && !m(o.jwtTokenUpdater)) {
|
|
527
527
|
const c = o.jwtTokenUpdater();
|
|
528
528
|
o.jwtToken = c, c.then((u) => {
|
|
529
|
-
o.jwtToken = Promise.resolve(u), Ge.saveActualDataToStorage("sc.token", u,
|
|
529
|
+
o.jwtToken = Promise.resolve(u), Ge.saveActualDataToStorage("sc.token", u, Hr(u)), o.recalculateUserPermissions();
|
|
530
530
|
}).catch(T);
|
|
531
531
|
}
|
|
532
532
|
return o.jwtToken;
|
|
@@ -536,7 +536,7 @@ const pe = ne("common.auth_state_private", () => {
|
|
|
536
536
|
}
|
|
537
537
|
function e(o) {
|
|
538
538
|
const c = pe();
|
|
539
|
-
c.jwtToken = Promise.resolve(o), Ge.saveActualDataToStorage("sc.token", o,
|
|
539
|
+
c.jwtToken = Promise.resolve(o), Ge.saveActualDataToStorage("sc.token", o, Hr(o)), c.recalculateUserPermissions();
|
|
540
540
|
}
|
|
541
541
|
function t() {
|
|
542
542
|
const o = pe();
|
|
@@ -546,21 +546,21 @@ const pe = ne("common.auth_state_private", () => {
|
|
|
546
546
|
const c = pe();
|
|
547
547
|
!m(c.jwtToken) && m(c.userPermissions) && c.jwtToken.then((g) => {
|
|
548
548
|
const a = Te.getJwtPayload(g);
|
|
549
|
-
c.userPermissions = a.exp * 1e3 > Date.now() ?
|
|
549
|
+
c.userPermissions = a.exp * 1e3 > Date.now() ? rt(a.resourceAccess, (P) => (P == null ? void 0 : P.roles) ?? []) : void 0;
|
|
550
550
|
}).catch(T);
|
|
551
551
|
const u = W(o) ? o.join(" && ") : o;
|
|
552
552
|
if (c.userPermissionsComputedRefs.has(u))
|
|
553
553
|
return c.userPermissionsComputedRefs.get(u);
|
|
554
|
-
const p =
|
|
554
|
+
const p = b(() => {
|
|
555
555
|
const g = (a) => {
|
|
556
556
|
var le;
|
|
557
|
-
const P =
|
|
557
|
+
const P = _t(a, ".");
|
|
558
558
|
if (P.length < 2)
|
|
559
559
|
return !1;
|
|
560
|
-
const [
|
|
560
|
+
const [Ae, Se] = P, ce = (le = pe().userPermissions) == null ? void 0 : le[Ae];
|
|
561
561
|
return W(ce) && ce.includes(Se);
|
|
562
562
|
};
|
|
563
|
-
return W(o) ?
|
|
563
|
+
return W(o) ? xt(o, (a) => g(a)) : g(o);
|
|
564
564
|
});
|
|
565
565
|
return c.userPermissionsComputedRefs.set(u, p), p;
|
|
566
566
|
}
|
|
@@ -619,7 +619,7 @@ class G {
|
|
|
619
619
|
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : m(this.id);
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
class
|
|
622
|
+
class Rr extends G {
|
|
623
623
|
/**
|
|
624
624
|
* Инициализирует экземпляр класса {@link BlogPostMediaFile}.
|
|
625
625
|
*
|
|
@@ -662,7 +662,7 @@ class wr extends G {
|
|
|
662
662
|
return this.mediaType === Ye.Video;
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
var
|
|
665
|
+
var Ve = /* @__PURE__ */ ((n) => (n.Draft = "draft", n.Published = "published", n.Scheduled = "scheduled", n))(Ve || {});
|
|
666
666
|
class ae extends G {
|
|
667
667
|
/**
|
|
668
668
|
* Инициализирует экземпляр класса {@link BlogPostShortInfo}.
|
|
@@ -695,7 +695,7 @@ class ae extends G {
|
|
|
695
695
|
* @param publishedAt Дата и время публикации статьи.
|
|
696
696
|
*/
|
|
697
697
|
static resolvePublicationStatus(e) {
|
|
698
|
-
return m(e) ?
|
|
698
|
+
return m(e) ? Ve.Draft : e.getTime() > Date.now() ? Ve.Scheduled : Ve.Published;
|
|
699
699
|
}
|
|
700
700
|
/**
|
|
701
701
|
* Возвращает описание ошибки символьного обозначения статьи либо пустую строку,
|
|
@@ -707,7 +707,7 @@ class ae extends G {
|
|
|
707
707
|
* @param slug Символьное обозначение статьи.
|
|
708
708
|
*/
|
|
709
709
|
static getSlugError(e) {
|
|
710
|
-
return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." :
|
|
710
|
+
return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : tt(e, "-") || Nt(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : qt(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
|
|
711
711
|
}
|
|
712
712
|
/**
|
|
713
713
|
* Преобразует значение даты, полученное из API, в объект {@link Date}.
|
|
@@ -724,7 +724,7 @@ class ae extends G {
|
|
|
724
724
|
return ae.resolvePublicationStatus(this.publishedAt);
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
|
-
class
|
|
727
|
+
class pr extends ae {
|
|
728
728
|
/**
|
|
729
729
|
* Инициализирует экземпляр класса {@link BlogPost}.
|
|
730
730
|
*
|
|
@@ -740,7 +740,7 @@ class ur extends ae {
|
|
|
740
740
|
* @inheritDoc
|
|
741
741
|
*/
|
|
742
742
|
s(this, "media");
|
|
743
|
-
this.content = (e == null ? void 0 : e.content) ?? "", this.media = ((e == null ? void 0 : e.media) ?? []).map((t) => new
|
|
743
|
+
this.content = (e == null ? void 0 : e.content) ?? "", this.media = ((e == null ? void 0 : e.media) ?? []).map((t) => new Rr(t));
|
|
744
744
|
}
|
|
745
745
|
/**
|
|
746
746
|
* Возвращает данные статьи для отправки на портал.
|
|
@@ -781,11 +781,11 @@ class Fe {
|
|
|
781
781
|
return Object.keys(this).forEach((e) => {
|
|
782
782
|
const t = this[e];
|
|
783
783
|
m(t) || // eslint-disable-next-line prettier/prettier,lodash/prefer-lodash-method
|
|
784
|
-
R(t) && t.trim().length === 0 ||
|
|
784
|
+
R(t) && t.trim().length === 0 || dr(t.isNewRec) && t.isNewRec() || (r[e] = t);
|
|
785
785
|
}), r;
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
|
-
class
|
|
788
|
+
class A {
|
|
789
789
|
/**
|
|
790
790
|
* Инициализирует экземпляр класса {@link DatePeriod}.
|
|
791
791
|
*
|
|
@@ -803,7 +803,7 @@ class b {
|
|
|
803
803
|
this.from = R(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = R(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
|
-
class
|
|
806
|
+
class ei extends Fe {
|
|
807
807
|
/**
|
|
808
808
|
* Инициализирует экземпляр класса {@link BlogPostsListFilters}.
|
|
809
809
|
*
|
|
@@ -839,7 +839,7 @@ class Xs extends Fe {
|
|
|
839
839
|
* @inheritDoc
|
|
840
840
|
*/
|
|
841
841
|
s(this, "createdAt");
|
|
842
|
-
this.id = e == null ? void 0 : e.id, this.title = e == null ? void 0 : e.title, this.slug = e == null ? void 0 : e.slug, this.content = e == null ? void 0 : e.content, this.publicationStatus = e == null ? void 0 : e.publicationStatus, this.publishedAt = new
|
|
842
|
+
this.id = e == null ? void 0 : e.id, this.title = e == null ? void 0 : e.title, this.slug = e == null ? void 0 : e.slug, this.content = e == null ? void 0 : e.content, this.publicationStatus = e == null ? void 0 : e.publicationStatus, this.publishedAt = new A(e == null ? void 0 : e.publishedAt), this.createdAt = new A(e == null ? void 0 : e.createdAt);
|
|
843
843
|
}
|
|
844
844
|
/**
|
|
845
845
|
* Выполняет сброс указанного фильтра в значение по умолчанию.
|
|
@@ -950,7 +950,7 @@ const w = class w {
|
|
|
950
950
|
* @param request Данные запроса.
|
|
951
951
|
*/
|
|
952
952
|
// eslint-disable-next-line class-methods-use-this
|
|
953
|
-
s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && !m(r.params) && (r.params = w.toSnakeCaseData(r.params)), ["put", "patch", "post"].includes(
|
|
953
|
+
s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && !m(r.params) && (r.params = w.toSnakeCaseData(r.params)), ["put", "patch", "post"].includes(Ut(r.method)) && !m(r.data) && (r.data = w.toSnakeCaseData(r.data))), r));
|
|
954
954
|
/**
|
|
955
955
|
* Перехватчик ошибок ответов на запрос.
|
|
956
956
|
*
|
|
@@ -981,7 +981,7 @@ const w = class w {
|
|
|
981
981
|
s(this, "canceledResponseInterceptor", (r) => {
|
|
982
982
|
const e = r.rawError ?? r;
|
|
983
983
|
if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
|
|
984
|
-
throw new
|
|
984
|
+
throw new is("Request canceled");
|
|
985
985
|
return Promise.reject(r);
|
|
986
986
|
});
|
|
987
987
|
/**
|
|
@@ -991,7 +991,7 @@ const w = class w {
|
|
|
991
991
|
*/
|
|
992
992
|
// eslint-disable-next-line class-methods-use-this
|
|
993
993
|
s(this, "dataConverterResponseInterceptor", (r) => (r.data = w.toCamelCaseData(r.data), r));
|
|
994
|
-
this.httpClient =
|
|
994
|
+
this.httpClient = ss.create({
|
|
995
995
|
headers: {
|
|
996
996
|
Accept: "application/json",
|
|
997
997
|
"Content-Type": "application/json"
|
|
@@ -1046,7 +1046,7 @@ const w = class w {
|
|
|
1046
1046
|
* @param value Проверяемое значение.
|
|
1047
1047
|
*/
|
|
1048
1048
|
static canConvertCaseKeys(r) {
|
|
1049
|
-
return
|
|
1049
|
+
return Je(r) ? !(r instanceof Blob || r instanceof FormData || r instanceof ArrayBuffer || Ke(r) || ArrayBuffer.isView(r)) : !1;
|
|
1050
1050
|
}
|
|
1051
1051
|
/**
|
|
1052
1052
|
* Приводит ключи данных к camelCase, если значение является обычным объектом или массивом.
|
|
@@ -1054,7 +1054,7 @@ const w = class w {
|
|
|
1054
1054
|
* @param data Исходные данные.
|
|
1055
1055
|
*/
|
|
1056
1056
|
static toCamelCaseData(r) {
|
|
1057
|
-
return w.canConvertCaseKeys(r) ?
|
|
1057
|
+
return w.canConvertCaseKeys(r) ? $r(r) : r;
|
|
1058
1058
|
}
|
|
1059
1059
|
/**
|
|
1060
1060
|
* Приводит ключи данных к snake_case, если значение является обычным объектом или массивом.
|
|
@@ -1062,7 +1062,7 @@ const w = class w {
|
|
|
1062
1062
|
* @param data Исходные данные.
|
|
1063
1063
|
*/
|
|
1064
1064
|
static toSnakeCaseData(r) {
|
|
1065
|
-
return w.canConvertCaseKeys(r) ?
|
|
1065
|
+
return w.canConvertCaseKeys(r) ? Wt(r) : r;
|
|
1066
1066
|
}
|
|
1067
1067
|
/**
|
|
1068
1068
|
* Возвращает токен доступа из заголовка Authorization исходного запроса.
|
|
@@ -1071,7 +1071,7 @@ const w = class w {
|
|
|
1071
1071
|
*/
|
|
1072
1072
|
static getRequestAccessToken(r) {
|
|
1073
1073
|
const e = r.headers.get("Authorization"), t = R(e) ? e : void 0, i = "Bearer ";
|
|
1074
|
-
if (m(t) || !
|
|
1074
|
+
if (m(t) || !tt(t, i))
|
|
1075
1075
|
return;
|
|
1076
1076
|
const o = t.slice(i.length);
|
|
1077
1077
|
return o === "" ? void 0 : o;
|
|
@@ -1135,15 +1135,15 @@ const w = class w {
|
|
|
1135
1135
|
* @param error Данные об ошибке.
|
|
1136
1136
|
*/
|
|
1137
1137
|
static toHttpResponseError(r) {
|
|
1138
|
-
if (
|
|
1138
|
+
if (Je(r) && "status" in r)
|
|
1139
1139
|
return r;
|
|
1140
|
-
const e =
|
|
1141
|
-
return
|
|
1140
|
+
const e = qr(r) ? r.message : "Не удалось обработать данные ответа сервера.";
|
|
1141
|
+
return Ur(new Error(e), {
|
|
1142
1142
|
name: "HttpResponseError",
|
|
1143
1143
|
status: 0,
|
|
1144
1144
|
statusText: "Invalid response data",
|
|
1145
1145
|
headers: {},
|
|
1146
|
-
rawError:
|
|
1146
|
+
rawError: qr(r) ? r : new Error(String(r))
|
|
1147
1147
|
});
|
|
1148
1148
|
}
|
|
1149
1149
|
/**
|
|
@@ -1156,7 +1156,7 @@ const w = class w {
|
|
|
1156
1156
|
if (m(r) || !m(r.request) || !m(r.response)) {
|
|
1157
1157
|
const i = m(r) ? {} : r == null ? void 0 : r.response;
|
|
1158
1158
|
return Promise.reject(
|
|
1159
|
-
|
|
1159
|
+
Ur(new Error(((e = i == null ? void 0 : i.data) == null ? void 0 : e.message) ?? "Unknown Error. Probably network error."), {
|
|
1160
1160
|
name: "HttpResponseError",
|
|
1161
1161
|
status: (i == null ? void 0 : i.status) ?? 0,
|
|
1162
1162
|
statusText: (i == null ? void 0 : i.statusText) ?? "Unknown",
|
|
@@ -1283,8 +1283,8 @@ s(w, "defaultRequestHook"), /**
|
|
|
1283
1283
|
*/
|
|
1284
1284
|
s(w, "tokenRefreshPromise");
|
|
1285
1285
|
let h = w;
|
|
1286
|
-
var
|
|
1287
|
-
class
|
|
1286
|
+
var kr = /* @__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))(kr || {});
|
|
1287
|
+
class Br {
|
|
1288
1288
|
/**
|
|
1289
1289
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
1290
1290
|
*
|
|
@@ -1303,7 +1303,7 @@ class Mr {
|
|
|
1303
1303
|
* Значение с которым сравнивается поле.
|
|
1304
1304
|
*/
|
|
1305
1305
|
s(this, "value");
|
|
1306
|
-
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ??
|
|
1306
|
+
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? kr.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
|
|
1307
1307
|
}
|
|
1308
1308
|
/**
|
|
1309
1309
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -1315,9 +1315,9 @@ class Mr {
|
|
|
1315
1315
|
field: this.field,
|
|
1316
1316
|
op: this.op
|
|
1317
1317
|
};
|
|
1318
|
-
if (
|
|
1318
|
+
if (Ke(this.value))
|
|
1319
1319
|
e.value = k(this.value, r);
|
|
1320
|
-
else if (
|
|
1320
|
+
else if (Et(this.value)) {
|
|
1321
1321
|
const t = this.value;
|
|
1322
1322
|
e.value = {
|
|
1323
1323
|
from: t.from ? k(t.from, r) : null,
|
|
@@ -1348,7 +1348,7 @@ class te {
|
|
|
1348
1348
|
*/
|
|
1349
1349
|
s(this, "groups");
|
|
1350
1350
|
var e, t;
|
|
1351
|
-
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
|
|
1351
|
+
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 Br(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new te(i))) ?? [];
|
|
1352
1352
|
}
|
|
1353
1353
|
/**
|
|
1354
1354
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -1358,7 +1358,7 @@ class te {
|
|
|
1358
1358
|
toPrimitive() {
|
|
1359
1359
|
return {
|
|
1360
1360
|
groupOp: this.groupOp,
|
|
1361
|
-
filters: this.filters.map((r) => r instanceof
|
|
1361
|
+
filters: this.filters.map((r) => r instanceof Br && dr(r.toPrimitive) ? r.toPrimitive() : r),
|
|
1362
1362
|
groups: this.groups.map((r) => r instanceof te ? r.toPrimitive() : r)
|
|
1363
1363
|
};
|
|
1364
1364
|
}
|
|
@@ -1411,7 +1411,7 @@ class Y extends h {
|
|
|
1411
1411
|
);
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
|
-
class
|
|
1414
|
+
class Cr extends Y {
|
|
1415
1415
|
/**
|
|
1416
1416
|
* Возвращает данные статьи блога, подготовленные для отправки на портал.
|
|
1417
1417
|
*
|
|
@@ -1455,7 +1455,7 @@ class vr extends Y {
|
|
|
1455
1455
|
* @see /doc/api/internal#/operations/api_internal_blog_get
|
|
1456
1456
|
*/
|
|
1457
1457
|
getPost(r) {
|
|
1458
|
-
return this.get(`/internal/blog/${r}`, {}, (e) => new
|
|
1458
|
+
return this.get(`/internal/blog/${r}`, {}, (e) => new pr(e.data));
|
|
1459
1459
|
}
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Создаёт новую статью блога.
|
|
@@ -1468,7 +1468,7 @@ class vr extends Y {
|
|
|
1468
1468
|
* @see /doc/api/internal#/operations/api_internal_blog_create
|
|
1469
1469
|
*/
|
|
1470
1470
|
createPost(r, e = {}) {
|
|
1471
|
-
return this.post("/internal/blog",
|
|
1471
|
+
return this.post("/internal/blog", Cr.preparePostSaveData(r), (t) => new pr(t.data), e);
|
|
1472
1472
|
}
|
|
1473
1473
|
/**
|
|
1474
1474
|
* Изменяет данные о статье блога.
|
|
@@ -1482,7 +1482,7 @@ class vr extends Y {
|
|
|
1482
1482
|
* @see /doc/api/internal#/operations/api_internal_blog_update
|
|
1483
1483
|
*/
|
|
1484
1484
|
updatePost(r, e, t = {}) {
|
|
1485
|
-
return this.patch(`/internal/blog/${r}`,
|
|
1485
|
+
return this.patch(`/internal/blog/${r}`, Cr.preparePostSaveData(e), (i) => new pr(i.data), t);
|
|
1486
1486
|
}
|
|
1487
1487
|
/**
|
|
1488
1488
|
* Удаляет статью блога.
|
|
@@ -1517,7 +1517,7 @@ class vr extends Y {
|
|
|
1517
1517
|
i && i(c.total ? Math.round(c.loaded / c.total * 100) : 0);
|
|
1518
1518
|
}
|
|
1519
1519
|
},
|
|
1520
|
-
(c) => new
|
|
1520
|
+
(c) => new Rr(c.data),
|
|
1521
1521
|
o
|
|
1522
1522
|
);
|
|
1523
1523
|
}
|
|
@@ -1537,7 +1537,7 @@ class vr extends Y {
|
|
|
1537
1537
|
return this.patch(
|
|
1538
1538
|
`/internal/blog/${r}/media/${e}`,
|
|
1539
1539
|
{ isCover: t },
|
|
1540
|
-
(o) => new
|
|
1540
|
+
(o) => new Rr(o.data),
|
|
1541
1541
|
i
|
|
1542
1542
|
);
|
|
1543
1543
|
}
|
|
@@ -1595,7 +1595,7 @@ class N extends L {
|
|
|
1595
1595
|
this.type = e == null ? void 0 : e.type, this.isActive = (e == null ? void 0 : e.isActive) ?? !0;
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
1598
|
-
class
|
|
1598
|
+
class ps extends L {
|
|
1599
1599
|
/**
|
|
1600
1600
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1601
1601
|
*
|
|
@@ -1634,7 +1634,7 @@ class ls extends L {
|
|
|
1634
1634
|
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = R(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 N(e == null ? void 0 : e.owner), this.deletedAt = R(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
|
-
class
|
|
1637
|
+
class nt extends L {
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1640
1640
|
*
|
|
@@ -1649,7 +1649,7 @@ class st extends L {
|
|
|
1649
1649
|
this.updatedAt = R(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1650
1650
|
}
|
|
1651
1651
|
}
|
|
1652
|
-
class fe extends
|
|
1652
|
+
class fe extends nt {
|
|
1653
1653
|
/**
|
|
1654
1654
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1655
1655
|
*
|
|
@@ -1672,7 +1672,7 @@ class fe extends st {
|
|
|
1672
1672
|
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = R(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.owner = e != null && e.owner ? new N(e.owner) : void 0;
|
|
1673
1673
|
}
|
|
1674
1674
|
}
|
|
1675
|
-
var
|
|
1675
|
+
var ot = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ot || {});
|
|
1676
1676
|
class D extends L {
|
|
1677
1677
|
/**
|
|
1678
1678
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
@@ -1699,14 +1699,14 @@ class Pe extends D {
|
|
|
1699
1699
|
static getRetailPriceCoefficient() {
|
|
1700
1700
|
const r = new Pe({
|
|
1701
1701
|
id: -2,
|
|
1702
|
-
slug:
|
|
1702
|
+
slug: ot.Retail,
|
|
1703
1703
|
name: "Розн. цена",
|
|
1704
1704
|
guid: ""
|
|
1705
1705
|
});
|
|
1706
|
-
return r.isNewRec =
|
|
1706
|
+
return r.isNewRec = Ft(!0), r;
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
|
-
class
|
|
1709
|
+
class Or {
|
|
1710
1710
|
/**
|
|
1711
1711
|
* Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
|
|
1712
1712
|
*
|
|
@@ -1736,7 +1736,7 @@ class $r {
|
|
|
1736
1736
|
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;
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
|
-
class
|
|
1739
|
+
class ct {
|
|
1740
1740
|
/**
|
|
1741
1741
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
1742
1742
|
*
|
|
@@ -1785,10 +1785,10 @@ class Me extends D {
|
|
|
1785
1785
|
* Координаты склада.
|
|
1786
1786
|
*/
|
|
1787
1787
|
s(this, "coordinates");
|
|
1788
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new
|
|
1788
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new ct(e == null ? void 0 : e.coordinates);
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
|
-
class
|
|
1791
|
+
class hs {
|
|
1792
1792
|
/**
|
|
1793
1793
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
1794
1794
|
*
|
|
@@ -1833,7 +1833,7 @@ class j extends L {
|
|
|
1833
1833
|
e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
|
|
1834
1834
|
}
|
|
1835
1835
|
}
|
|
1836
|
-
class
|
|
1836
|
+
class zr extends L {
|
|
1837
1837
|
/**
|
|
1838
1838
|
* Инициализирует экземпляр класса {@link ProductUnit}.
|
|
1839
1839
|
*
|
|
@@ -1860,7 +1860,7 @@ class Hr extends L {
|
|
|
1860
1860
|
e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
|
|
1861
1861
|
}
|
|
1862
1862
|
}
|
|
1863
|
-
class
|
|
1863
|
+
class Ue extends L {
|
|
1864
1864
|
/**
|
|
1865
1865
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
1866
1866
|
*
|
|
@@ -1875,7 +1875,7 @@ class Ee extends L {
|
|
|
1875
1875
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
1876
1876
|
}
|
|
1877
1877
|
}
|
|
1878
|
-
class
|
|
1878
|
+
class lt extends Ue {
|
|
1879
1879
|
/**
|
|
1880
1880
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
1881
1881
|
*
|
|
@@ -1894,7 +1894,7 @@ class ot extends Ee {
|
|
|
1894
1894
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
1897
|
-
class
|
|
1897
|
+
class gs extends lt {
|
|
1898
1898
|
/**
|
|
1899
1899
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
1900
1900
|
*
|
|
@@ -1909,7 +1909,7 @@ class ps extends ot {
|
|
|
1909
1909
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
1910
1910
|
}
|
|
1911
1911
|
}
|
|
1912
|
-
class
|
|
1912
|
+
class fs {
|
|
1913
1913
|
/**
|
|
1914
1914
|
* Инициализирует экземпляр класса {@link Image}.
|
|
1915
1915
|
*
|
|
@@ -1932,7 +1932,7 @@ class hs {
|
|
|
1932
1932
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
1933
1933
|
}
|
|
1934
1934
|
}
|
|
1935
|
-
class
|
|
1935
|
+
class Dr extends lt {
|
|
1936
1936
|
/**
|
|
1937
1937
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
1938
1938
|
*
|
|
@@ -1947,7 +1947,7 @@ class Rr extends ot {
|
|
|
1947
1947
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
1948
1948
|
}
|
|
1949
1949
|
}
|
|
1950
|
-
class q extends
|
|
1950
|
+
class q extends gs {
|
|
1951
1951
|
/**
|
|
1952
1952
|
* Инициализирует экземпляр класса {@link Product}.
|
|
1953
1953
|
*
|
|
@@ -2024,9 +2024,9 @@ class q extends ps {
|
|
|
2024
2024
|
* Список коэффициентов цен на продукт.
|
|
2025
2025
|
*/
|
|
2026
2026
|
s(this, "priceCoefficients");
|
|
2027
|
-
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new
|
|
2027
|
+
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new zr(e.unit) : new zr(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new j(e.currency) : new j(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = R(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new hs(p))) ?? [], this.type = "product";
|
|
2028
2028
|
const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
|
|
2029
|
-
t && (this.category = new
|
|
2029
|
+
t && (this.category = new Dr({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Dr(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new fs(p, O().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Or(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
2030
2030
|
}
|
|
2031
2031
|
/**
|
|
2032
2032
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -2047,7 +2047,7 @@ class q extends ps {
|
|
|
2047
2047
|
return this.retailCostRub ?? this.costRub;
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
|
-
var
|
|
2050
|
+
var Lr = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Lr || {});
|
|
2051
2051
|
class X extends q {
|
|
2052
2052
|
/**
|
|
2053
2053
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
@@ -2084,10 +2084,10 @@ class X extends q {
|
|
|
2084
2084
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
2085
2085
|
*/
|
|
2086
2086
|
s(this, "isFavorite");
|
|
2087
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ??
|
|
2087
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Lr.Product, this.discount = e != null && e.discount ? new ps(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new fe(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;
|
|
2088
2088
|
}
|
|
2089
2089
|
}
|
|
2090
|
-
class
|
|
2090
|
+
class be extends Dr {
|
|
2091
2091
|
/**
|
|
2092
2092
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
2093
2093
|
*
|
|
@@ -2111,10 +2111,10 @@ class Ae extends Rr {
|
|
|
2111
2111
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
2112
2112
|
*/
|
|
2113
2113
|
s(this, "currencyRates");
|
|
2114
|
-
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([t, i]) => [
|
|
2114
|
+
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([t, i]) => [Mt(t), i])) : void 0;
|
|
2115
2115
|
}
|
|
2116
2116
|
}
|
|
2117
|
-
class
|
|
2117
|
+
class ut extends G {
|
|
2118
2118
|
/**
|
|
2119
2119
|
* Инициализирует экземпляр класса {@link OrderItemBase}.
|
|
2120
2120
|
*
|
|
@@ -2190,10 +2190,10 @@ class ct extends G {
|
|
|
2190
2190
|
* @inheritDoc
|
|
2191
2191
|
*/
|
|
2192
2192
|
s(this, "replacementId");
|
|
2193
|
-
this.product = new X(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new
|
|
2193
|
+
this.product = new X(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new be(), this.currency = e.currency ? new j(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Ht(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new N(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
|
|
2194
2194
|
}
|
|
2195
2195
|
}
|
|
2196
|
-
let
|
|
2196
|
+
let Ir = class extends ut {
|
|
2197
2197
|
/**
|
|
2198
2198
|
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
2199
2199
|
*
|
|
@@ -2259,10 +2259,10 @@ class Oe {
|
|
|
2259
2259
|
* @inheritDoc
|
|
2260
2260
|
*/
|
|
2261
2261
|
s(this, "directionsSum");
|
|
2262
|
-
this.items = r.items.map((e) => new
|
|
2262
|
+
this.items = r.items.map((e) => new Ir(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
|
-
class
|
|
2265
|
+
class ti extends h {
|
|
2266
2266
|
/**
|
|
2267
2267
|
* Возвращает содержимое корзины указанного клиента.
|
|
2268
2268
|
*
|
|
@@ -2376,8 +2376,8 @@ class ei extends h {
|
|
|
2376
2376
|
return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
|
|
2377
2377
|
}
|
|
2378
2378
|
}
|
|
2379
|
-
var
|
|
2380
|
-
class
|
|
2379
|
+
var ms = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(ms || {}), ys = /* @__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))(ys || {}), pt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(pt || {});
|
|
2380
|
+
class V extends be {
|
|
2381
2381
|
/**
|
|
2382
2382
|
* Инициализирует экземпляр класса {@link Category}.
|
|
2383
2383
|
*
|
|
@@ -2394,10 +2394,10 @@ class Q extends Ae {
|
|
|
2394
2394
|
* Список продуктов категории.
|
|
2395
2395
|
*/
|
|
2396
2396
|
s(this, "products");
|
|
2397
|
-
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new
|
|
2397
|
+
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new V(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new q(o));
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
|
-
class
|
|
2400
|
+
class ht {
|
|
2401
2401
|
/**
|
|
2402
2402
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
2403
2403
|
*
|
|
@@ -2415,9 +2415,9 @@ class ut {
|
|
|
2415
2415
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
2416
2416
|
}
|
|
2417
2417
|
}
|
|
2418
|
-
class
|
|
2418
|
+
class E extends D {
|
|
2419
2419
|
}
|
|
2420
|
-
class
|
|
2420
|
+
class xr extends L {
|
|
2421
2421
|
/**
|
|
2422
2422
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
2423
2423
|
*
|
|
@@ -2445,12 +2445,12 @@ class Lr extends L {
|
|
|
2445
2445
|
* @inheritDoc
|
|
2446
2446
|
*/
|
|
2447
2447
|
s(this, "isRegionalDirector");
|
|
2448
|
-
this.salesDirection = e != null && e.salesDirection ? new
|
|
2448
|
+
this.salesDirection = e != null && e.salesDirection ? new E(e.salesDirection) : new E(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new ht(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
|
|
2449
2449
|
}
|
|
2450
2450
|
}
|
|
2451
|
-
class
|
|
2451
|
+
class _r extends D {
|
|
2452
2452
|
}
|
|
2453
|
-
class
|
|
2453
|
+
class gt extends L {
|
|
2454
2454
|
/**
|
|
2455
2455
|
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
2456
2456
|
*
|
|
@@ -2473,7 +2473,7 @@ class pt extends L {
|
|
|
2473
2473
|
this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
|
|
2474
2474
|
}
|
|
2475
2475
|
}
|
|
2476
|
-
class
|
|
2476
|
+
class er extends L {
|
|
2477
2477
|
/**
|
|
2478
2478
|
* Инициализирует экземпляр класса {@link UserRegionShortInfo}.
|
|
2479
2479
|
*
|
|
@@ -2488,7 +2488,7 @@ class Ze extends L {
|
|
|
2488
2488
|
this.abbr = (e == null ? void 0 : e.abbr) ?? "";
|
|
2489
2489
|
}
|
|
2490
2490
|
}
|
|
2491
|
-
class Z extends
|
|
2491
|
+
class Z extends xr {
|
|
2492
2492
|
/**
|
|
2493
2493
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
2494
2494
|
*
|
|
@@ -2545,10 +2545,10 @@ class Z extends Lr {
|
|
|
2545
2545
|
* Дата и время последнего входа в систему.
|
|
2546
2546
|
*/
|
|
2547
2547
|
s(this, "lastLoginAt");
|
|
2548
|
-
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 = R(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new
|
|
2548
|
+
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 = R(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new gt(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new _r(c))) ?? [], this.showAllCosts = e == null ? void 0 : e.showAllCosts, this.authAsOperator = e == null ? void 0 : e.authAsOperator, this.managerRegions = (i = e == null ? void 0 : e.managerRegions) == null ? void 0 : i.map((c) => new er(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new Z(c)), this.lastLoginAt = R(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
2551
|
-
class
|
|
2551
|
+
class as extends be {
|
|
2552
2552
|
/**
|
|
2553
2553
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
2554
2554
|
*
|
|
@@ -2579,7 +2579,7 @@ class ms extends Ae {
|
|
|
2579
2579
|
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 Z(e.manager) : void 0;
|
|
2580
2580
|
}
|
|
2581
2581
|
}
|
|
2582
|
-
class
|
|
2582
|
+
class Xe extends as {
|
|
2583
2583
|
/**
|
|
2584
2584
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
2585
2585
|
*
|
|
@@ -2596,10 +2596,10 @@ class Ke extends ms {
|
|
|
2596
2596
|
* Список продуктов категории.
|
|
2597
2597
|
*/
|
|
2598
2598
|
s(this, "products");
|
|
2599
|
-
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new
|
|
2599
|
+
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Xe(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new X(o));
|
|
2600
2600
|
}
|
|
2601
2601
|
}
|
|
2602
|
-
class
|
|
2602
|
+
class ft {
|
|
2603
2603
|
/**
|
|
2604
2604
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
2605
2605
|
*
|
|
@@ -2617,7 +2617,7 @@ class ht {
|
|
|
2617
2617
|
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
2618
2618
|
}
|
|
2619
2619
|
}
|
|
2620
|
-
class
|
|
2620
|
+
class hr extends ft {
|
|
2621
2621
|
/**
|
|
2622
2622
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
2623
2623
|
*
|
|
@@ -2629,10 +2629,10 @@ class pr extends ht {
|
|
|
2629
2629
|
* Базовые данные о продукте.
|
|
2630
2630
|
*/
|
|
2631
2631
|
s(this, "productCategory");
|
|
2632
|
-
this.productCategory = new
|
|
2632
|
+
this.productCategory = new be(e == null ? void 0 : e.productCategory);
|
|
2633
2633
|
}
|
|
2634
2634
|
}
|
|
2635
|
-
class
|
|
2635
|
+
class Nr extends L {
|
|
2636
2636
|
/**
|
|
2637
2637
|
* Инициализирует экземпляр класса {@link Curator}.
|
|
2638
2638
|
*
|
|
@@ -2652,7 +2652,7 @@ class xr extends L {
|
|
|
2652
2652
|
* @inheritDoc
|
|
2653
2653
|
*/
|
|
2654
2654
|
s(this, "curatedDirection");
|
|
2655
|
-
this.photo = e.photo, this.contacts = new
|
|
2655
|
+
this.photo = e.photo, this.contacts = new ht(e.contacts), this.curatedDirection = new _r(e.curatedDirection);
|
|
2656
2656
|
}
|
|
2657
2657
|
}
|
|
2658
2658
|
class we extends D {
|
|
@@ -2687,7 +2687,7 @@ class Re extends D {
|
|
|
2687
2687
|
e && (this.region = new ve(e.region));
|
|
2688
2688
|
}
|
|
2689
2689
|
}
|
|
2690
|
-
class
|
|
2690
|
+
class mt extends L {
|
|
2691
2691
|
/**
|
|
2692
2692
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
2693
2693
|
*
|
|
@@ -2723,10 +2723,10 @@ class gt extends L {
|
|
|
2723
2723
|
* Признак активности учетной записи пользователя.
|
|
2724
2724
|
*/
|
|
2725
2725
|
s(this, "isActive");
|
|
2726
|
-
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
|
|
2726
|
+
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 E(e.salesDirection) : void 0, this.createdAt = R(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = R(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
2727
2727
|
}
|
|
2728
2728
|
}
|
|
2729
|
-
class oe extends
|
|
2729
|
+
class oe extends mt {
|
|
2730
2730
|
/**
|
|
2731
2731
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2732
2732
|
*
|
|
@@ -2772,7 +2772,7 @@ class oe extends gt {
|
|
|
2772
2772
|
* @inheritDoc
|
|
2773
2773
|
*/
|
|
2774
2774
|
s(this, "curators");
|
|
2775
|
-
this.salesDirection = new
|
|
2775
|
+
this.salesDirection = new E(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 Re(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((o) => new xr(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Nr(o))) ?? void 0;
|
|
2776
2776
|
}
|
|
2777
2777
|
}
|
|
2778
2778
|
class Le extends G {
|
|
@@ -2802,7 +2802,7 @@ class Le extends G {
|
|
|
2802
2802
|
this.createdAt = R(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = R(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new oe(e == null ? void 0 : e.client), this.priceTemplate = new fe(e == null ? void 0 : e.priceTemplate);
|
|
2803
2803
|
}
|
|
2804
2804
|
}
|
|
2805
|
-
class
|
|
2805
|
+
class gr extends ft {
|
|
2806
2806
|
/**
|
|
2807
2807
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
2808
2808
|
*
|
|
@@ -2817,7 +2817,7 @@ class hr extends ht {
|
|
|
2817
2817
|
this.product = new q(e == null ? void 0 : e.product);
|
|
2818
2818
|
}
|
|
2819
2819
|
}
|
|
2820
|
-
class
|
|
2820
|
+
class yt extends D {
|
|
2821
2821
|
}
|
|
2822
2822
|
class me extends L {
|
|
2823
2823
|
/**
|
|
@@ -2843,7 +2843,7 @@ class me extends L {
|
|
|
2843
2843
|
* Признак того, что по свойству может производиться фильтрация в каталоге.
|
|
2844
2844
|
*/
|
|
2845
2845
|
s(this, "isFilterable");
|
|
2846
|
-
this.type = new
|
|
2846
|
+
this.type = new yt(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata, this.isFilterable = e == null ? void 0 : e.isFilterable;
|
|
2847
2847
|
}
|
|
2848
2848
|
}
|
|
2849
2849
|
class he {
|
|
@@ -2865,7 +2865,7 @@ class he {
|
|
|
2865
2865
|
this.property = new me(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2866
2866
|
}
|
|
2867
2867
|
}
|
|
2868
|
-
class
|
|
2868
|
+
class si {
|
|
2869
2869
|
/**
|
|
2870
2870
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
2871
2871
|
*
|
|
@@ -2891,12 +2891,12 @@ class ri {
|
|
|
2891
2891
|
/**
|
|
2892
2892
|
* Период создания.
|
|
2893
2893
|
*/
|
|
2894
|
-
s(this, "createdAt", new
|
|
2894
|
+
s(this, "createdAt", new A());
|
|
2895
2895
|
/**
|
|
2896
2896
|
* Период изменения.
|
|
2897
2897
|
*/
|
|
2898
|
-
s(this, "updatedAt", new
|
|
2899
|
-
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.ownerName = r == null ? void 0 : r.ownerName, this.createdAt = new
|
|
2898
|
+
s(this, "updatedAt", new A());
|
|
2899
|
+
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.ownerName = r == null ? void 0 : r.ownerName, this.createdAt = new A(r == null ? void 0 : r.createdAt), this.updatedAt = new A(r == null ? void 0 : r.updatedAt);
|
|
2900
2900
|
}
|
|
2901
2901
|
/**
|
|
2902
2902
|
* Выполняет сброс указанного фильтра в значение по умолчанию.
|
|
@@ -2930,7 +2930,7 @@ class ri {
|
|
|
2930
2930
|
return Object.keys(this).forEach((c) => {
|
|
2931
2931
|
const u = this[c];
|
|
2932
2932
|
// eslint-disable-next-line prettier/prettier
|
|
2933
|
-
m(u) || R(u) && u.trim().length === 0 ||
|
|
2933
|
+
m(u) || R(u) && u.trim().length === 0 || dr(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
2934
2934
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
@@ -2969,7 +2969,7 @@ class Ie extends L {
|
|
|
2969
2969
|
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;
|
|
2970
2970
|
}
|
|
2971
2971
|
}
|
|
2972
|
-
class
|
|
2972
|
+
class Wr {
|
|
2973
2973
|
/**
|
|
2974
2974
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
2975
2975
|
*
|
|
@@ -2988,10 +2988,10 @@ class Br {
|
|
|
2988
2988
|
* Минимальный коэффициент цены.
|
|
2989
2989
|
*/
|
|
2990
2990
|
s(this, "minCoefficient");
|
|
2991
|
-
this.role = new Ie(r == null ? void 0 : r.role), this.category = new
|
|
2991
|
+
this.role = new Ie(r == null ? void 0 : r.role), this.category = new be(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
|
|
2992
2992
|
}
|
|
2993
2993
|
}
|
|
2994
|
-
class
|
|
2994
|
+
class ws {
|
|
2995
2995
|
/**
|
|
2996
2996
|
* Инициализирует экземпляр класса {@link FilterSettings}.
|
|
2997
2997
|
*
|
|
@@ -3024,7 +3024,7 @@ class ys {
|
|
|
3024
3024
|
this.isFake = (r == null ? void 0 : r.isFake) ?? !1, this.isHidden = (r == null ? void 0 : r.isHidden) ?? !1, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.type = (r == null ? void 0 : r.type) ?? null, this.ord = (r == null ? void 0 : r.ord) ?? 0;
|
|
3025
3025
|
}
|
|
3026
3026
|
}
|
|
3027
|
-
class
|
|
3027
|
+
class jr {
|
|
3028
3028
|
/**
|
|
3029
3029
|
* Инициализирует экземпляр класса {@link CategoryFilterSetting}.
|
|
3030
3030
|
*
|
|
@@ -3043,10 +3043,10 @@ class zr {
|
|
|
3043
3043
|
* @inheritDoc
|
|
3044
3044
|
*/
|
|
3045
3045
|
s(this, "settings");
|
|
3046
|
-
this.category = new
|
|
3046
|
+
this.category = new be(r == null ? void 0 : r.category), this.property = new me(r == null ? void 0 : r.property), this.settings = new ws(r == null ? void 0 : r.settings);
|
|
3047
3047
|
}
|
|
3048
3048
|
}
|
|
3049
|
-
class
|
|
3049
|
+
class vs {
|
|
3050
3050
|
/**
|
|
3051
3051
|
* Инициализирует экземпляр класса {@link CategoryFilterValue}.
|
|
3052
3052
|
*
|
|
@@ -3064,7 +3064,7 @@ class as {
|
|
|
3064
3064
|
this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "";
|
|
3065
3065
|
}
|
|
3066
3066
|
}
|
|
3067
|
-
class
|
|
3067
|
+
class Rs {
|
|
3068
3068
|
/**
|
|
3069
3069
|
* Инициализирует экземпляр класса {@link CategoryFilter}.
|
|
3070
3070
|
*
|
|
@@ -3107,10 +3107,10 @@ class ws {
|
|
|
3107
3107
|
*/
|
|
3108
3108
|
s(this, "max");
|
|
3109
3109
|
var e;
|
|
3110
|
-
this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ??
|
|
3110
|
+
this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? pt.Checkbox, this.ord = (r == null ? void 0 : r.ord) ?? 0, this.isMultiple = (r == null ? void 0 : r.isMultiple) ?? null, this.values = ((e = r == null ? void 0 : r.values) == null ? void 0 : e.map((t) => new vs(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
|
|
3111
3111
|
}
|
|
3112
3112
|
}
|
|
3113
|
-
class
|
|
3113
|
+
class ii extends h {
|
|
3114
3114
|
/**
|
|
3115
3115
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
3116
3116
|
*
|
|
@@ -3141,7 +3141,7 @@ class ti extends h {
|
|
|
3141
3141
|
return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
|
|
3142
3142
|
}
|
|
3143
3143
|
}
|
|
3144
|
-
class
|
|
3144
|
+
class ni extends h {
|
|
3145
3145
|
/**
|
|
3146
3146
|
* Импортирует цены клиента из CSV файла.
|
|
3147
3147
|
*
|
|
@@ -3340,7 +3340,7 @@ class si extends h {
|
|
|
3340
3340
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
3341
3341
|
}
|
|
3342
3342
|
}
|
|
3343
|
-
class
|
|
3343
|
+
class oi extends h {
|
|
3344
3344
|
/**
|
|
3345
3345
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
3346
3346
|
*
|
|
@@ -3428,7 +3428,7 @@ class ii extends h {
|
|
|
3428
3428
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
|
|
3429
3429
|
}
|
|
3430
3430
|
}
|
|
3431
|
-
class
|
|
3431
|
+
class ci extends h {
|
|
3432
3432
|
/**
|
|
3433
3433
|
* Возвращает список данных о корневых категориях.
|
|
3434
3434
|
*
|
|
@@ -3437,7 +3437,7 @@ class ni extends h {
|
|
|
3437
3437
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
|
|
3438
3438
|
*/
|
|
3439
3439
|
getRootCategoriesList(r = !1) {
|
|
3440
|
-
return this.getTypedList(
|
|
3440
|
+
return this.getTypedList(V, "/internal/catalog/categories", {
|
|
3441
3441
|
showHidden: r
|
|
3442
3442
|
});
|
|
3443
3443
|
}
|
|
@@ -3457,7 +3457,7 @@ class ni extends h {
|
|
|
3457
3457
|
showHidden: e,
|
|
3458
3458
|
withNestedCategories: t
|
|
3459
3459
|
},
|
|
3460
|
-
(i) => new
|
|
3460
|
+
(i) => new V(i.data)
|
|
3461
3461
|
);
|
|
3462
3462
|
}
|
|
3463
3463
|
/**
|
|
@@ -3466,7 +3466,7 @@ class ni extends h {
|
|
|
3466
3466
|
* @param categoryID Идентификатор категории продуктов.
|
|
3467
3467
|
*/
|
|
3468
3468
|
getPublicCategoryData(r) {
|
|
3469
|
-
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new
|
|
3469
|
+
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new V(e.data));
|
|
3470
3470
|
}
|
|
3471
3471
|
/**
|
|
3472
3472
|
* Возвращает список продуктов категории.
|
|
@@ -3497,7 +3497,7 @@ class ni extends h {
|
|
|
3497
3497
|
getCategoryProductsCoefficients(r) {
|
|
3498
3498
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
3499
3499
|
const { data: t } = e;
|
|
3500
|
-
return
|
|
3500
|
+
return Bt(t, (i) => i.map((o) => new Or(o))), t;
|
|
3501
3501
|
});
|
|
3502
3502
|
}
|
|
3503
3503
|
/**
|
|
@@ -3509,14 +3509,14 @@ class ni extends h {
|
|
|
3509
3509
|
publicSimpleSearch(r, e = 10) {
|
|
3510
3510
|
return new Promise((t, i) => {
|
|
3511
3511
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
3512
|
-
t(o.categories.map((c) => new
|
|
3512
|
+
t(o.categories.map((c) => new V(c)));
|
|
3513
3513
|
}).catch((o) => {
|
|
3514
3514
|
i(o);
|
|
3515
3515
|
});
|
|
3516
3516
|
});
|
|
3517
3517
|
}
|
|
3518
3518
|
}
|
|
3519
|
-
class
|
|
3519
|
+
class li extends Y {
|
|
3520
3520
|
/**
|
|
3521
3521
|
* Возвращает данные об указанном продукте.
|
|
3522
3522
|
*
|
|
@@ -3547,7 +3547,7 @@ class oi extends Y {
|
|
|
3547
3547
|
return this.get(
|
|
3548
3548
|
`/internal/catalog/products/${r}/coefficients`,
|
|
3549
3549
|
{},
|
|
3550
|
-
(e) => De(e.data, (t) => new
|
|
3550
|
+
(e) => De(e.data, (t) => new Or(t))
|
|
3551
3551
|
);
|
|
3552
3552
|
}
|
|
3553
3553
|
/**
|
|
@@ -3582,7 +3582,7 @@ class oi extends Y {
|
|
|
3582
3582
|
});
|
|
3583
3583
|
}
|
|
3584
3584
|
}
|
|
3585
|
-
class
|
|
3585
|
+
class ui extends h {
|
|
3586
3586
|
/**
|
|
3587
3587
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
3588
3588
|
*
|
|
@@ -3592,7 +3592,7 @@ class ci extends h {
|
|
|
3592
3592
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
|
|
3593
3593
|
*/
|
|
3594
3594
|
getRootCategoriesList(r, e = !1) {
|
|
3595
|
-
return this.getTypedList(
|
|
3595
|
+
return this.getTypedList(Xe, "/internal/catalog/categories", {
|
|
3596
3596
|
clientId: r,
|
|
3597
3597
|
showHidden: e
|
|
3598
3598
|
});
|
|
@@ -3615,7 +3615,7 @@ class ci extends h {
|
|
|
3615
3615
|
showHidden: t,
|
|
3616
3616
|
withNestedCategories: i
|
|
3617
3617
|
},
|
|
3618
|
-
(o) => new
|
|
3618
|
+
(o) => new Xe(o.data)
|
|
3619
3619
|
);
|
|
3620
3620
|
}
|
|
3621
3621
|
/**
|
|
@@ -3640,7 +3640,7 @@ class ci extends h {
|
|
|
3640
3640
|
);
|
|
3641
3641
|
}
|
|
3642
3642
|
}
|
|
3643
|
-
class
|
|
3643
|
+
class pi extends Y {
|
|
3644
3644
|
/**
|
|
3645
3645
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
3646
3646
|
*
|
|
@@ -3679,7 +3679,7 @@ class li extends Y {
|
|
|
3679
3679
|
});
|
|
3680
3680
|
}
|
|
3681
3681
|
}
|
|
3682
|
-
class
|
|
3682
|
+
class hi extends Y {
|
|
3683
3683
|
/**
|
|
3684
3684
|
* Возвращает список шаблонов прайс-листа.
|
|
3685
3685
|
*
|
|
@@ -3745,7 +3745,7 @@ class ui extends Y {
|
|
|
3745
3745
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get_list
|
|
3746
3746
|
*/
|
|
3747
3747
|
getProductTemplatePrices(r) {
|
|
3748
|
-
return this.getTypedList(
|
|
3748
|
+
return this.getTypedList(gr, `/internal/price/templates/${r}/products`);
|
|
3749
3749
|
}
|
|
3750
3750
|
/**
|
|
3751
3751
|
* Возвращает данные о цене на продукт в шаблоне прайс-листа.
|
|
@@ -3756,7 +3756,7 @@ class ui extends Y {
|
|
|
3756
3756
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
3757
3757
|
*/
|
|
3758
3758
|
getProductTemplatePrice(r, e) {
|
|
3759
|
-
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new
|
|
3759
|
+
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new gr(t.data));
|
|
3760
3760
|
}
|
|
3761
3761
|
/**
|
|
3762
3762
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -3775,7 +3775,7 @@ class ui extends Y {
|
|
|
3775
3775
|
price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
|
|
3776
3776
|
increase_percent: t.value
|
|
3777
3777
|
},
|
|
3778
|
-
(o) => new
|
|
3778
|
+
(o) => new gr(o.data)
|
|
3779
3779
|
);
|
|
3780
3780
|
}
|
|
3781
3781
|
/**
|
|
@@ -3797,7 +3797,7 @@ class ui extends Y {
|
|
|
3797
3797
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_get_list
|
|
3798
3798
|
*/
|
|
3799
3799
|
getCategoryTemplatePrices(r) {
|
|
3800
|
-
return this.getTypedList(
|
|
3800
|
+
return this.getTypedList(hr, `/internal/price/templates/${r}/categories`);
|
|
3801
3801
|
}
|
|
3802
3802
|
/**
|
|
3803
3803
|
* Возвращает данные о цене на категорию продуктов в шаблоне прайс-листа.
|
|
@@ -3811,7 +3811,7 @@ class ui extends Y {
|
|
|
3811
3811
|
return this.get(
|
|
3812
3812
|
`/internal/price/templates/${r}/categories/${e}`,
|
|
3813
3813
|
{},
|
|
3814
|
-
(t) => new
|
|
3814
|
+
(t) => new hr(t.data)
|
|
3815
3815
|
);
|
|
3816
3816
|
}
|
|
3817
3817
|
/**
|
|
@@ -3837,7 +3837,7 @@ class ui extends Y {
|
|
|
3837
3837
|
},
|
|
3838
3838
|
params: i ? { recursively: !0 } : {}
|
|
3839
3839
|
},
|
|
3840
|
-
(c) => new
|
|
3840
|
+
(c) => new hr(c.data)
|
|
3841
3841
|
);
|
|
3842
3842
|
}
|
|
3843
3843
|
/**
|
|
@@ -3868,7 +3868,7 @@ class ui extends Y {
|
|
|
3868
3868
|
return this.getTypedList(Le, `/internal/price/templates/${r}/clients`);
|
|
3869
3869
|
}
|
|
3870
3870
|
}
|
|
3871
|
-
class
|
|
3871
|
+
class gi extends h {
|
|
3872
3872
|
/**
|
|
3873
3873
|
* Возвращает список ролей ценообразования.
|
|
3874
3874
|
*
|
|
@@ -3926,7 +3926,7 @@ class pi extends h {
|
|
|
3926
3926
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_category_rules_get
|
|
3927
3927
|
*/
|
|
3928
3928
|
getCategoryRules(r) {
|
|
3929
|
-
return this.getTypedList(
|
|
3929
|
+
return this.getTypedList(Wr, `/internal/price/roles/rules/categories/${r}`);
|
|
3930
3930
|
}
|
|
3931
3931
|
/**
|
|
3932
3932
|
* Обновляет правила для роли ценообразования по указанной категории.
|
|
@@ -3940,11 +3940,11 @@ class pi extends h {
|
|
|
3940
3940
|
return this.patch(
|
|
3941
3941
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3942
3942
|
e,
|
|
3943
|
-
(t) => _.instanceListInitializer(
|
|
3943
|
+
(t) => _.instanceListInitializer(Wr, t.data)
|
|
3944
3944
|
);
|
|
3945
3945
|
}
|
|
3946
3946
|
}
|
|
3947
|
-
class
|
|
3947
|
+
class fi extends Y {
|
|
3948
3948
|
/**
|
|
3949
3949
|
* Возвращает пагинированный список свойств.
|
|
3950
3950
|
*
|
|
@@ -4323,7 +4323,7 @@ class hi extends Y {
|
|
|
4323
4323
|
return this.get(
|
|
4324
4324
|
`/internal/catalog/categories/${r}/filters`,
|
|
4325
4325
|
{ recursively: e },
|
|
4326
|
-
(t) => t.data.map((i) => new
|
|
4326
|
+
(t) => t.data.map((i) => new Rs(i))
|
|
4327
4327
|
);
|
|
4328
4328
|
}
|
|
4329
4329
|
/**
|
|
@@ -4333,7 +4333,7 @@ class hi extends Y {
|
|
|
4333
4333
|
* @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_get_list
|
|
4334
4334
|
*/
|
|
4335
4335
|
getCategoryFilterSettings(r) {
|
|
4336
|
-
return this.getTypedList(
|
|
4336
|
+
return this.getTypedList(jr, `/internal/catalog/categories/${r}/filter-settings`);
|
|
4337
4337
|
}
|
|
4338
4338
|
/**
|
|
4339
4339
|
* Сохраняет настройки фильтра в категории.
|
|
@@ -4347,7 +4347,7 @@ class hi extends Y {
|
|
|
4347
4347
|
return this.patch(
|
|
4348
4348
|
`/internal/catalog/categories/${r}/filter-settings/${e}`,
|
|
4349
4349
|
t,
|
|
4350
|
-
(i) => new
|
|
4350
|
+
(i) => new jr(i.data)
|
|
4351
4351
|
);
|
|
4352
4352
|
}
|
|
4353
4353
|
/**
|
|
@@ -4361,7 +4361,7 @@ class hi extends Y {
|
|
|
4361
4361
|
return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
|
|
4362
4362
|
}
|
|
4363
4363
|
}
|
|
4364
|
-
class
|
|
4364
|
+
class mi extends h {
|
|
4365
4365
|
/**
|
|
4366
4366
|
* Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
|
|
4367
4367
|
*
|
|
@@ -4371,7 +4371,7 @@ class gi extends h {
|
|
|
4371
4371
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
|
|
4372
4372
|
*/
|
|
4373
4373
|
getRootCategoriesList(r, e = !1) {
|
|
4374
|
-
return this.getTypedList(
|
|
4374
|
+
return this.getTypedList(V, "/internal/catalog/categories", {
|
|
4375
4375
|
priceTemplateId: r,
|
|
4376
4376
|
showHidden: e
|
|
4377
4377
|
});
|
|
@@ -4394,7 +4394,7 @@ class gi extends h {
|
|
|
4394
4394
|
showHidden: t,
|
|
4395
4395
|
withNestedCategories: i
|
|
4396
4396
|
},
|
|
4397
|
-
(o) => new
|
|
4397
|
+
(o) => new V(o.data)
|
|
4398
4398
|
);
|
|
4399
4399
|
}
|
|
4400
4400
|
/**
|
|
@@ -4419,7 +4419,7 @@ class gi extends h {
|
|
|
4419
4419
|
);
|
|
4420
4420
|
}
|
|
4421
4421
|
}
|
|
4422
|
-
function
|
|
4422
|
+
function Gr(n, r, e) {
|
|
4423
4423
|
let t;
|
|
4424
4424
|
return n.some((i) => {
|
|
4425
4425
|
if (i.type === e && i.id === r)
|
|
@@ -4428,29 +4428,29 @@ function Wr(n, r, e) {
|
|
|
4428
4428
|
return !1;
|
|
4429
4429
|
const o = i;
|
|
4430
4430
|
if (o.products && o.products.length > 0) {
|
|
4431
|
-
const c =
|
|
4431
|
+
const c = Gr(o.products, r, e);
|
|
4432
4432
|
if (c)
|
|
4433
4433
|
return t = c, !0;
|
|
4434
4434
|
}
|
|
4435
4435
|
if (o.categories && o.categories.length > 0) {
|
|
4436
|
-
const c =
|
|
4436
|
+
const c = Gr(o.categories, r, e);
|
|
4437
4437
|
if (c)
|
|
4438
4438
|
return t = c, !0;
|
|
4439
4439
|
}
|
|
4440
4440
|
return !1;
|
|
4441
4441
|
}), t;
|
|
4442
4442
|
}
|
|
4443
|
-
function
|
|
4443
|
+
function Yr(n) {
|
|
4444
4444
|
const r = [];
|
|
4445
4445
|
return n.forEach((e) => {
|
|
4446
4446
|
if (r.push(e), e.type === "category") {
|
|
4447
4447
|
const t = e;
|
|
4448
|
-
t.products && t.products.length > 0 && r.push(...
|
|
4448
|
+
t.products && t.products.length > 0 && r.push(...Yr(t.products)), t.categories && t.categories.length > 0 && r.push(...Yr(t.categories));
|
|
4449
4449
|
}
|
|
4450
4450
|
}), r;
|
|
4451
4451
|
}
|
|
4452
|
-
var
|
|
4453
|
-
class
|
|
4452
|
+
var Cs = /* @__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))(Cs || {}), Q = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(Q || {});
|
|
4453
|
+
class Tr extends G {
|
|
4454
4454
|
/**
|
|
4455
4455
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
4456
4456
|
*
|
|
@@ -4481,7 +4481,7 @@ class Cr extends G {
|
|
|
4481
4481
|
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new j(e.currency));
|
|
4482
4482
|
}
|
|
4483
4483
|
}
|
|
4484
|
-
class
|
|
4484
|
+
class Pr extends L {
|
|
4485
4485
|
/**
|
|
4486
4486
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
4487
4487
|
*
|
|
@@ -4500,7 +4500,7 @@ class Dr extends L {
|
|
|
4500
4500
|
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;
|
|
4501
4501
|
}
|
|
4502
4502
|
}
|
|
4503
|
-
class se extends
|
|
4503
|
+
class se extends Pr {
|
|
4504
4504
|
/**
|
|
4505
4505
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
4506
4506
|
*
|
|
@@ -4543,14 +4543,14 @@ class ie extends D {
|
|
|
4543
4543
|
return new ie({
|
|
4544
4544
|
id: 1,
|
|
4545
4545
|
guid: "",
|
|
4546
|
-
slug:
|
|
4546
|
+
slug: Q.Person,
|
|
4547
4547
|
name: ""
|
|
4548
4548
|
});
|
|
4549
4549
|
}
|
|
4550
4550
|
}
|
|
4551
4551
|
class Ce extends D {
|
|
4552
4552
|
}
|
|
4553
|
-
class
|
|
4553
|
+
class at extends nt {
|
|
4554
4554
|
/**
|
|
4555
4555
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
4556
4556
|
*
|
|
@@ -4565,7 +4565,7 @@ class mt extends st {
|
|
|
4565
4565
|
this.deletedAt = R(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
4566
4566
|
}
|
|
4567
4567
|
}
|
|
4568
|
-
class
|
|
4568
|
+
class wt extends at {
|
|
4569
4569
|
/**
|
|
4570
4570
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
4571
4571
|
*
|
|
@@ -4620,13 +4620,13 @@ class yt extends mt {
|
|
|
4620
4620
|
if (e.bankAccounts) {
|
|
4621
4621
|
const t = [];
|
|
4622
4622
|
e.bankAccounts.forEach((i) => {
|
|
4623
|
-
t.push(new
|
|
4623
|
+
t.push(new Tr(i));
|
|
4624
4624
|
}), this.bankAccounts = t;
|
|
4625
4625
|
}
|
|
4626
4626
|
}
|
|
4627
4627
|
}
|
|
4628
4628
|
}
|
|
4629
|
-
class
|
|
4629
|
+
class Ds extends wt {
|
|
4630
4630
|
/**
|
|
4631
4631
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
4632
4632
|
*
|
|
@@ -4636,7 +4636,7 @@ class Rs extends yt {
|
|
|
4636
4636
|
super(r);
|
|
4637
4637
|
}
|
|
4638
4638
|
}
|
|
4639
|
-
class
|
|
4639
|
+
class vt extends wt {
|
|
4640
4640
|
/**
|
|
4641
4641
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
4642
4642
|
*
|
|
@@ -4683,7 +4683,7 @@ class at extends yt {
|
|
|
4683
4683
|
e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.ogrn = e.ogrn ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
|
|
4684
4684
|
}
|
|
4685
4685
|
}
|
|
4686
|
-
class
|
|
4686
|
+
class Rt extends vt {
|
|
4687
4687
|
/**
|
|
4688
4688
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
4689
4689
|
*
|
|
@@ -4698,7 +4698,7 @@ class wt extends at {
|
|
|
4698
4698
|
e && (this.kpp = e.kpp ?? "");
|
|
4699
4699
|
}
|
|
4700
4700
|
}
|
|
4701
|
-
class
|
|
4701
|
+
class Ts extends Rt {
|
|
4702
4702
|
/**
|
|
4703
4703
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
4704
4704
|
*
|
|
@@ -4721,7 +4721,7 @@ class Cs extends wt {
|
|
|
4721
4721
|
e && (this.registrationCountry = new we(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
4722
4722
|
}
|
|
4723
4723
|
}
|
|
4724
|
-
class
|
|
4724
|
+
class Ze {
|
|
4725
4725
|
/**
|
|
4726
4726
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
4727
4727
|
*
|
|
@@ -4729,18 +4729,18 @@ class Xe {
|
|
|
4729
4729
|
*/
|
|
4730
4730
|
static createInstance(r) {
|
|
4731
4731
|
switch (r.opf.slug) {
|
|
4732
|
-
case
|
|
4733
|
-
return new
|
|
4734
|
-
case
|
|
4735
|
-
return new
|
|
4736
|
-
case
|
|
4737
|
-
return new
|
|
4732
|
+
case Q.Ic:
|
|
4733
|
+
return new vt(r);
|
|
4734
|
+
case Q.UlR:
|
|
4735
|
+
return new Rt(r);
|
|
4736
|
+
case Q.UlNr:
|
|
4737
|
+
return new Ts(r);
|
|
4738
4738
|
default:
|
|
4739
|
-
return new
|
|
4739
|
+
return new Ds(r);
|
|
4740
4740
|
}
|
|
4741
4741
|
}
|
|
4742
4742
|
}
|
|
4743
|
-
class _e extends
|
|
4743
|
+
class _e extends at {
|
|
4744
4744
|
/**
|
|
4745
4745
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
4746
4746
|
*
|
|
@@ -4777,14 +4777,14 @@ class _e extends mt {
|
|
|
4777
4777
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
4778
4778
|
*/
|
|
4779
4779
|
s(this, "isTransportCompanyAddress");
|
|
4780
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
4780
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new ct(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new se(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;
|
|
4781
4781
|
}
|
|
4782
4782
|
}
|
|
4783
|
-
class
|
|
4783
|
+
class Ct extends D {
|
|
4784
4784
|
}
|
|
4785
|
-
class
|
|
4785
|
+
class Dt extends D {
|
|
4786
4786
|
}
|
|
4787
|
-
class
|
|
4787
|
+
class Vr extends oe {
|
|
4788
4788
|
/**
|
|
4789
4789
|
* Инициализирует экземпляр класса {@link Client}.
|
|
4790
4790
|
*
|
|
@@ -4834,10 +4834,10 @@ class Gr extends oe {
|
|
|
4834
4834
|
* @inheritDoc
|
|
4835
4835
|
*/
|
|
4836
4836
|
s(this, "extraData");
|
|
4837
|
-
this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) =>
|
|
4837
|
+
this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => Ze.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Ce(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new se(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new _e(u))) ?? [], this.channelPrimaryInterest = new Ct(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Dt(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Me(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
4838
4838
|
}
|
|
4839
4839
|
}
|
|
4840
|
-
class
|
|
4840
|
+
class yi extends Fe {
|
|
4841
4841
|
/**
|
|
4842
4842
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
4843
4843
|
*
|
|
@@ -4893,11 +4893,11 @@ class fi extends Fe {
|
|
|
4893
4893
|
/**
|
|
4894
4894
|
* @inheritDoc
|
|
4895
4895
|
*/
|
|
4896
|
-
s(this, "createdAt", new
|
|
4896
|
+
s(this, "createdAt", new A());
|
|
4897
4897
|
/**
|
|
4898
4898
|
* @inheritDoc
|
|
4899
4899
|
*/
|
|
4900
|
-
s(this, "lastLoginDate", new
|
|
4900
|
+
s(this, "lastLoginDate", new A());
|
|
4901
4901
|
/**
|
|
4902
4902
|
* @inheritDoc
|
|
4903
4903
|
*/
|
|
@@ -4949,12 +4949,12 @@ class fi extends Fe {
|
|
|
4949
4949
|
/**
|
|
4950
4950
|
* @inheritDoc
|
|
4951
4951
|
*/
|
|
4952
|
-
s(this, "noOrdersPeriod", new
|
|
4953
|
-
this.id = e == null ? void 0 : e.id, this.guid = e == null ? void 0 : e.guid, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((P) => new Re(P)), this.region = new ve(e == null ? void 0 : e.region), this.country = new we(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
|
|
4954
|
-
createdAt: new
|
|
4952
|
+
s(this, "noOrdersPeriod", new A());
|
|
4953
|
+
this.id = e == null ? void 0 : e.id, this.guid = e == null ? void 0 : e.guid, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((P) => new Re(P)), this.region = new ve(e == null ? void 0 : e.region), this.country = new we(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.lastLoginDate = new A(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((P) => new Z(P))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((P) => new Nr(P))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((P) => new E(P)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new ie(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new K(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((P) => new Ce(P)), this.contact = new Pr(e == null ? void 0 : e.contact), this.lastOrder = {
|
|
4954
|
+
createdAt: new A((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
|
|
4955
4955
|
creator: (g = e == null ? void 0 : e.lastOrder) == null ? void 0 : g.creator,
|
|
4956
4956
|
isApproved: (a = e == null ? void 0 : e.lastOrder) == null ? void 0 : a.isApproved
|
|
4957
|
-
}, this.noOrdersPeriod = new
|
|
4957
|
+
}, this.noOrdersPeriod = new A(e == null ? void 0 : e.noOrdersPeriod);
|
|
4958
4958
|
}
|
|
4959
4959
|
/**
|
|
4960
4960
|
* @inheritDoc
|
|
@@ -5001,7 +5001,7 @@ class fi extends Fe {
|
|
|
5001
5001
|
this.partnerGroups = [];
|
|
5002
5002
|
break;
|
|
5003
5003
|
case "contact":
|
|
5004
|
-
this.contact = new
|
|
5004
|
+
this.contact = new Pr();
|
|
5005
5005
|
break;
|
|
5006
5006
|
default:
|
|
5007
5007
|
this[e] = void 0;
|
|
@@ -5018,7 +5018,7 @@ class fi extends Fe {
|
|
|
5018
5018
|
return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, !((u = e == null ? void 0 : e.noOrdersPeriod) != null && u.from) && !((p = e == null ? void 0 : e.noOrdersPeriod) != null && p.to) && delete e.noOrdersPeriod, e;
|
|
5019
5019
|
}
|
|
5020
5020
|
}
|
|
5021
|
-
class
|
|
5021
|
+
class Tt extends G {
|
|
5022
5022
|
/**
|
|
5023
5023
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
5024
5024
|
*
|
|
@@ -5037,7 +5037,7 @@ class Ct extends G {
|
|
|
5037
5037
|
this.createdAt = R(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new N(e == null ? void 0 : e.creator);
|
|
5038
5038
|
}
|
|
5039
5039
|
}
|
|
5040
|
-
class
|
|
5040
|
+
class Ps extends L {
|
|
5041
5041
|
/**
|
|
5042
5042
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
5043
5043
|
*
|
|
@@ -5074,10 +5074,10 @@ class Ds extends L {
|
|
|
5074
5074
|
* @inheritDoc
|
|
5075
5075
|
*/
|
|
5076
5076
|
s(this, "curators");
|
|
5077
|
-
this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new se(u))) ?? void 0, this.lastOrder = e.lastOrder ? new
|
|
5077
|
+
this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new se(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Tt(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Ce(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new K(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new E(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new xr(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Nr(u))) ?? void 0;
|
|
5078
5078
|
}
|
|
5079
5079
|
}
|
|
5080
|
-
class
|
|
5080
|
+
class fr extends G {
|
|
5081
5081
|
/**
|
|
5082
5082
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
5083
5083
|
*
|
|
@@ -5092,7 +5092,7 @@ class gr extends G {
|
|
|
5092
5092
|
this.isPrimary = e.isPrimary;
|
|
5093
5093
|
}
|
|
5094
5094
|
}
|
|
5095
|
-
class
|
|
5095
|
+
class bs extends se {
|
|
5096
5096
|
/**
|
|
5097
5097
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
5098
5098
|
*
|
|
@@ -5117,7 +5117,7 @@ class Ts extends se {
|
|
|
5117
5117
|
*/
|
|
5118
5118
|
addresses: []
|
|
5119
5119
|
});
|
|
5120
|
-
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new
|
|
5120
|
+
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new fr(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new fr(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new fr(t))));
|
|
5121
5121
|
}
|
|
5122
5122
|
}
|
|
5123
5123
|
class H extends Y {
|
|
@@ -5152,7 +5152,7 @@ class H extends Y {
|
|
|
5152
5152
|
let e;
|
|
5153
5153
|
const t = r, i = r, o = r;
|
|
5154
5154
|
switch (r.opf.slug) {
|
|
5155
|
-
case
|
|
5155
|
+
case Q.Ic:
|
|
5156
5156
|
e = {
|
|
5157
5157
|
opf: t.opf.slug,
|
|
5158
5158
|
name: t.name,
|
|
@@ -5170,7 +5170,7 @@ class H extends Y {
|
|
|
5170
5170
|
actual_address: t.actualAddress
|
|
5171
5171
|
};
|
|
5172
5172
|
break;
|
|
5173
|
-
case
|
|
5173
|
+
case Q.UlR:
|
|
5174
5174
|
e = {
|
|
5175
5175
|
opf: i.opf.slug,
|
|
5176
5176
|
name: i.name,
|
|
@@ -5189,7 +5189,7 @@ class H extends Y {
|
|
|
5189
5189
|
actual_address: i.actualAddress
|
|
5190
5190
|
};
|
|
5191
5191
|
break;
|
|
5192
|
-
case
|
|
5192
|
+
case Q.UlNr:
|
|
5193
5193
|
e = {
|
|
5194
5194
|
opf: o.opf.slug,
|
|
5195
5195
|
name: o.name,
|
|
@@ -5261,7 +5261,7 @@ class H extends Y {
|
|
|
5261
5261
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
5262
5262
|
*/
|
|
5263
5263
|
getClient(r) {
|
|
5264
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
5264
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new Vr(e.data));
|
|
5265
5265
|
}
|
|
5266
5266
|
/**
|
|
5267
5267
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -5297,7 +5297,7 @@ class H extends Y {
|
|
|
5297
5297
|
return this.getClientsList({
|
|
5298
5298
|
groupOp: "and",
|
|
5299
5299
|
groups: [],
|
|
5300
|
-
filters: [{ field: "phone", op:
|
|
5300
|
+
filters: [{ field: "phone", op: kr.Contains, value: r }]
|
|
5301
5301
|
});
|
|
5302
5302
|
}
|
|
5303
5303
|
/**
|
|
@@ -5312,7 +5312,7 @@ class H extends Y {
|
|
|
5312
5312
|
return this.post(
|
|
5313
5313
|
"/internal/clients/additional-data",
|
|
5314
5314
|
{ clients: t, requested_data_types: e },
|
|
5315
|
-
(i) => _.instanceListInitializer(
|
|
5315
|
+
(i) => _.instanceListInitializer(Ps, i.data)
|
|
5316
5316
|
);
|
|
5317
5317
|
}
|
|
5318
5318
|
/**
|
|
@@ -5322,7 +5322,7 @@ class H extends Y {
|
|
|
5322
5322
|
* @see /doc/api/internal#/Контакты/api_internal_client_contact_get_all_contact_list
|
|
5323
5323
|
*/
|
|
5324
5324
|
getAllClientContacts(r) {
|
|
5325
|
-
return this.getTypedList(
|
|
5325
|
+
return this.getTypedList(bs, `/internal/clients/${r}/contacts/all`);
|
|
5326
5326
|
}
|
|
5327
5327
|
/**
|
|
5328
5328
|
* Создаёт нового клиента на основе указанных данных.
|
|
@@ -5332,7 +5332,7 @@ class H extends Y {
|
|
|
5332
5332
|
* @see /doc/api/internal#/Клиенты/api_internal_client_create
|
|
5333
5333
|
*/
|
|
5334
5334
|
createClientCommonData(r, e = {}) {
|
|
5335
|
-
return this.post("/internal/clients", H.transformClientDataToRequest(r), (t) => new
|
|
5335
|
+
return this.post("/internal/clients", H.transformClientDataToRequest(r), (t) => new Vr(t.data), e);
|
|
5336
5336
|
}
|
|
5337
5337
|
/**
|
|
5338
5338
|
* Обновляет данные указанного клиента.
|
|
@@ -5472,7 +5472,7 @@ class H extends Y {
|
|
|
5472
5472
|
return this.post(
|
|
5473
5473
|
`/internal/clients/${r}/contragents`,
|
|
5474
5474
|
H.transformContragentClientDataToRequest(e),
|
|
5475
|
-
(i) =>
|
|
5475
|
+
(i) => Ze.createInstance(i.data),
|
|
5476
5476
|
t
|
|
5477
5477
|
);
|
|
5478
5478
|
}
|
|
@@ -5488,7 +5488,7 @@ class H extends Y {
|
|
|
5488
5488
|
return this.patch(
|
|
5489
5489
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
5490
5490
|
H.transformContragentClientDataToRequest(e),
|
|
5491
|
-
(i) =>
|
|
5491
|
+
(i) => Ze.createInstance(i.data),
|
|
5492
5492
|
t
|
|
5493
5493
|
);
|
|
5494
5494
|
}
|
|
@@ -5566,7 +5566,7 @@ class H extends Y {
|
|
|
5566
5566
|
return this.post(
|
|
5567
5567
|
`/internal/clients/${r}/contragents/${e}/bank-accounts`,
|
|
5568
5568
|
H.transformClientContragentBankAccountToRequest(t),
|
|
5569
|
-
(o) => new
|
|
5569
|
+
(o) => new Tr(o.data),
|
|
5570
5570
|
i
|
|
5571
5571
|
);
|
|
5572
5572
|
}
|
|
@@ -5583,7 +5583,7 @@ class H extends Y {
|
|
|
5583
5583
|
return this.patch(
|
|
5584
5584
|
`/internal/clients/${r}/contragents/${e}/bank-accounts/${t.id}`,
|
|
5585
5585
|
H.transformClientContragentBankAccountToRequest(t),
|
|
5586
|
-
(o) => new
|
|
5586
|
+
(o) => new Tr(o.data),
|
|
5587
5587
|
i
|
|
5588
5588
|
);
|
|
5589
5589
|
}
|
|
@@ -5805,7 +5805,7 @@ class H extends Y {
|
|
|
5805
5805
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
5806
5806
|
}
|
|
5807
5807
|
}
|
|
5808
|
-
class
|
|
5808
|
+
class ai extends h {
|
|
5809
5809
|
/**
|
|
5810
5810
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
5811
5811
|
*
|
|
@@ -5819,7 +5819,7 @@ class mi extends h {
|
|
|
5819
5819
|
});
|
|
5820
5820
|
}
|
|
5821
5821
|
}
|
|
5822
|
-
class
|
|
5822
|
+
class wi {
|
|
5823
5823
|
/**
|
|
5824
5824
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
5825
5825
|
*
|
|
@@ -5841,8 +5841,8 @@ class yi {
|
|
|
5841
5841
|
this.date = R(r == null ? void 0 : r.date) ? C(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
|
|
5842
5842
|
}
|
|
5843
5843
|
}
|
|
5844
|
-
var
|
|
5845
|
-
class
|
|
5844
|
+
var As = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(As || {});
|
|
5845
|
+
class vi extends h {
|
|
5846
5846
|
/**
|
|
5847
5847
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
5848
5848
|
*
|
|
@@ -5934,7 +5934,7 @@ class ai extends h {
|
|
|
5934
5934
|
});
|
|
5935
5935
|
}
|
|
5936
5936
|
}
|
|
5937
|
-
class
|
|
5937
|
+
class Ss {
|
|
5938
5938
|
/**
|
|
5939
5939
|
* Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
|
|
5940
5940
|
*
|
|
@@ -5952,7 +5952,7 @@ class As {
|
|
|
5952
5952
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
5953
5953
|
}
|
|
5954
5954
|
}
|
|
5955
|
-
class
|
|
5955
|
+
class Ri extends Ss {
|
|
5956
5956
|
/**
|
|
5957
5957
|
* Инициализирует экземпляр класса {@link TableDataPagination}.
|
|
5958
5958
|
*
|
|
@@ -5983,7 +5983,7 @@ class wi extends As {
|
|
|
5983
5983
|
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;
|
|
5984
5984
|
}
|
|
5985
5985
|
}
|
|
5986
|
-
class
|
|
5986
|
+
class Ci {
|
|
5987
5987
|
/**
|
|
5988
5988
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
5989
5989
|
*
|
|
@@ -6056,8 +6056,8 @@ class y {
|
|
|
6056
6056
|
* @param date Опорная дата.
|
|
6057
6057
|
*/
|
|
6058
6058
|
static intervalTillSameDate(r, e, t) {
|
|
6059
|
-
const i =
|
|
6060
|
-
return { from: ge(e), to: z(
|
|
6059
|
+
const i = Gt(U(t), U(r)), o = U($(e, i)), c = Math.min(Fr(t), Yt(o));
|
|
6060
|
+
return { from: ge(e), to: z(Vt(o, c)) };
|
|
6061
6061
|
}
|
|
6062
6062
|
/**
|
|
6063
6063
|
* Возвращает интервал «сдвинутая неделя до такого же дня недели»; недели начинаются с понедельника.
|
|
@@ -6066,7 +6066,7 @@ class y {
|
|
|
6066
6066
|
* @param shiftWeeks Смещение в неделях, может быть отрицательным.
|
|
6067
6067
|
*/
|
|
6068
6068
|
static weekTillSameWeekday(r, e) {
|
|
6069
|
-
const t = ee(
|
|
6069
|
+
const t = ee(vr(r, e), { weekStartsOn: 1 }), i = We(r, ee(r, { weekStartsOn: 1 }));
|
|
6070
6070
|
return { from: t, to: z(re(t, i)) };
|
|
6071
6071
|
}
|
|
6072
6072
|
/**
|
|
@@ -6087,14 +6087,14 @@ class y {
|
|
|
6087
6087
|
* @param shift Смещение в декадах, может быть отрицательным.
|
|
6088
6088
|
*/
|
|
6089
6089
|
static shiftedDecadeBounds(r, e) {
|
|
6090
|
-
const t =
|
|
6090
|
+
const t = Fr(r);
|
|
6091
6091
|
let i = 2;
|
|
6092
6092
|
t <= 10 ? i = 0 : t <= 20 && (i = 1);
|
|
6093
|
-
const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p =
|
|
6093
|
+
const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = U($(r, c)), g = re(p, u * 10), a = u === 2 ? x(p) : z(re(g, 9));
|
|
6094
6094
|
return [g, a];
|
|
6095
6095
|
}
|
|
6096
6096
|
}
|
|
6097
|
-
class
|
|
6097
|
+
class br {
|
|
6098
6098
|
/**
|
|
6099
6099
|
* Преобразует значение даты из данных ответа в дату.
|
|
6100
6100
|
* Строки разбираются как ISO-даты; нечитаемое значение равносильно отсутствию даты.
|
|
@@ -6105,17 +6105,17 @@ class Tr {
|
|
|
6105
6105
|
if (m(r))
|
|
6106
6106
|
return;
|
|
6107
6107
|
const e = R(r) ? C(r) : r;
|
|
6108
|
-
return
|
|
6108
|
+
return Qt(e) ? e : void 0;
|
|
6109
6109
|
}
|
|
6110
6110
|
}
|
|
6111
|
-
function
|
|
6111
|
+
function Di(n) {
|
|
6112
6112
|
return k(je(qe(), n), "yyyy-MM-dd");
|
|
6113
6113
|
}
|
|
6114
|
-
function
|
|
6114
|
+
function ds(n, r) {
|
|
6115
6115
|
const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(n));
|
|
6116
6116
|
return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
|
|
6117
6117
|
}
|
|
6118
|
-
function
|
|
6118
|
+
function Ti(n) {
|
|
6119
6119
|
const r = C(n), e = We(qe(), r);
|
|
6120
6120
|
switch (!0) {
|
|
6121
6121
|
case e === 0:
|
|
@@ -6125,25 +6125,25 @@ function Ci(n) {
|
|
|
6125
6125
|
case e < 0:
|
|
6126
6126
|
return n;
|
|
6127
6127
|
default:
|
|
6128
|
-
return `${e} ${
|
|
6128
|
+
return `${e} ${ds(e, ["день", "дня", "дней"])} назад`;
|
|
6129
6129
|
}
|
|
6130
6130
|
}
|
|
6131
|
-
class
|
|
6131
|
+
class Pi {
|
|
6132
6132
|
/**
|
|
6133
6133
|
* Возвращает предустановленные диапазоны дат.
|
|
6134
6134
|
*
|
|
6135
6135
|
* @param year Год, от которого считаются годовые периоды (1/3/9 месяцев, кварталы, полугодия, год); по умолчанию текущий.
|
|
6136
6136
|
*/
|
|
6137
6137
|
static defaultDateRanges(r) {
|
|
6138
|
-
const e =
|
|
6138
|
+
const e = Jt(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = ue(r === void 0 ? t : new Date(r, 0, 1)), o = de(i);
|
|
6139
6139
|
return {
|
|
6140
6140
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
6141
6141
|
nextWorkingDay: { label: "Следующий рабочий день", from: ge(e), to: z(e) },
|
|
6142
|
-
today: { label: "Сегодня", from: qe(), to:
|
|
6143
|
-
yesterday: { label: "Вчера", from:
|
|
6144
|
-
tomorrow: { label: "Завтра", from:
|
|
6142
|
+
today: { label: "Сегодня", from: qe(), to: rs() },
|
|
6143
|
+
yesterday: { label: "Вчера", from: es(), to: Zt() },
|
|
6144
|
+
tomorrow: { label: "Завтра", from: Xt(), to: Kt() },
|
|
6145
6145
|
currentWeek: { label: "Неделя", from: ee(t, { weekStartsOn: 1 }), to: $e(t, { weekStartsOn: 1 }) },
|
|
6146
|
-
currentMonth: { label: "Месяц", from:
|
|
6146
|
+
currentMonth: { label: "Месяц", from: U(t), to: x(t) },
|
|
6147
6147
|
oneMonth: { label: "1 месяц", from: i, to: x(i) },
|
|
6148
6148
|
threeMonths: { label: "3 месяца", from: i, to: x($(i, 2)) },
|
|
6149
6149
|
nineMonths: { label: "9 месяцев", from: i, to: x($(i, 8)) },
|
|
@@ -6164,23 +6164,23 @@ class Di {
|
|
|
6164
6164
|
* @param now Опорная дата «сейчас»; по умолчанию текущая.
|
|
6165
6165
|
*/
|
|
6166
6166
|
static standardPeriods(r = /* @__PURE__ */ new Date()) {
|
|
6167
|
-
const e = { weekStartsOn: 1 }, t = ge(r), i = z(r), o = y.decadeInterval(r), c =
|
|
6167
|
+
const e = { weekStartsOn: 1 }, t = ge(r), i = z(r), o = y.decadeInterval(r), c = U(r), u = ke(r), p = y.startOfHalfYear(r), g = ue(r), a = y.addHalfYears(r, -1), P = y.addHalfYears(r, 1);
|
|
6168
6168
|
return {
|
|
6169
6169
|
yesterday: { label: "Вчера", group: "day", from: ge(je(r, 1)), to: z(je(r, 1)) },
|
|
6170
6170
|
today: { label: "Сегодня", group: "day", from: t, to: i },
|
|
6171
6171
|
tomorrow: { label: "Завтра", group: "day", from: ge(re(r, 1)), to: z(re(r, 1)) },
|
|
6172
|
-
lastWeek: { label: "Прошлая неделя", group: "week", from: ee(
|
|
6172
|
+
lastWeek: { label: "Прошлая неделя", group: "week", from: ee(Mr(r, 1), e), to: $e(Mr(r, 1), e) },
|
|
6173
6173
|
thisWeek: { label: "Эта неделя", group: "week", from: ee(r, e), to: $e(r, e) },
|
|
6174
|
-
nextWeek: { label: "Следующая неделя", group: "week", from: ee(
|
|
6174
|
+
nextWeek: { label: "Следующая неделя", group: "week", from: ee(vr(r, 1), e), to: $e(vr(r, 1), e) },
|
|
6175
6175
|
lastTenDays: { label: "Прошлая декада", group: "decade", ...y.shiftDecadeInterval(r, -1) },
|
|
6176
6176
|
thisTenDays: { label: "Эта декада", group: "decade", ...o },
|
|
6177
6177
|
nextTenDays: { label: "Следующая декада", group: "decade", ...y.shiftDecadeInterval(r, 1) },
|
|
6178
|
-
lastMonth: { label: "Прошлый месяц", group: "month", from:
|
|
6178
|
+
lastMonth: { label: "Прошлый месяц", group: "month", from: U(ur(r, 1)), to: x(ur(r, 1)) },
|
|
6179
6179
|
thisMonth: { label: "Этот месяц", group: "month", from: c, to: x(r) },
|
|
6180
|
-
nextMonth: { label: "Следующий месяц", group: "month", from:
|
|
6181
|
-
lastQuarter: { label: "Прошлый квартал", group: "quarter", from: ke(
|
|
6180
|
+
nextMonth: { label: "Следующий месяц", group: "month", from: U($(r, 1)), to: x($(r, 1)) },
|
|
6181
|
+
lastQuarter: { label: "Прошлый квартал", group: "quarter", from: ke(lr(r, 1)), to: Be(lr(r, 1)) },
|
|
6182
6182
|
thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: Be(r) },
|
|
6183
|
-
nextQuarter: { label: "Следующий квартал", group: "quarter", from: ke(
|
|
6183
|
+
nextQuarter: { label: "Следующий квартал", group: "quarter", from: ke(or(r, 1)), to: Be(or(r, 1)) },
|
|
6184
6184
|
lastHalfYear: {
|
|
6185
6185
|
label: "Прошлое полугодие",
|
|
6186
6186
|
group: "halfYear",
|
|
@@ -6189,9 +6189,9 @@ class Di {
|
|
|
6189
6189
|
},
|
|
6190
6190
|
thisHalfYear: { label: "Это полугодие", group: "halfYear", from: p, to: y.endOfHalfYear(r) },
|
|
6191
6191
|
nextHalfYear: { label: "Следующее полугодие", group: "halfYear", from: y.startOfHalfYear(P), to: y.endOfHalfYear(P) },
|
|
6192
|
-
lastYear: { label: "Прошлый год", group: "year", from: ue(
|
|
6192
|
+
lastYear: { label: "Прошлый год", group: "year", from: ue(cr(r, 1)), to: de(cr(r, 1)) },
|
|
6193
6193
|
thisYear: { label: "Этот год", group: "year", from: g, to: de(r) },
|
|
6194
|
-
nextYear: { label: "Следующий год", group: "year", from: ue(
|
|
6194
|
+
nextYear: { label: "Следующий год", group: "year", from: ue(nr(r, 1)), to: de(nr(r, 1)) },
|
|
6195
6195
|
fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: ee(r, e), to: i },
|
|
6196
6196
|
fromBeginningOfThisTenDays: { label: "С начала этой декады", group: "other", section: "fromBeginning", from: o.from, to: i },
|
|
6197
6197
|
fromBeginningOfThisMonth: { label: "С начала этого месяца", group: "other", section: "fromBeginning", from: c, to: i },
|
|
@@ -6215,13 +6215,13 @@ class Di {
|
|
|
6215
6215
|
label: "Прошлый месяц, до такой же даты",
|
|
6216
6216
|
group: "other",
|
|
6217
6217
|
section: "lastTillSame",
|
|
6218
|
-
...y.intervalTillSameDate(c,
|
|
6218
|
+
...y.intervalTillSameDate(c, U(ur(r, 1)), r)
|
|
6219
6219
|
},
|
|
6220
6220
|
lastQuarterTillSameDate: {
|
|
6221
6221
|
label: "Прошлый квартал, до такой же даты",
|
|
6222
6222
|
group: "other",
|
|
6223
6223
|
section: "lastTillSame",
|
|
6224
|
-
...y.intervalTillSameDate(u, ke(
|
|
6224
|
+
...y.intervalTillSameDate(u, ke(lr(r, 1)), r)
|
|
6225
6225
|
},
|
|
6226
6226
|
lastHalfYearTillSameDate: {
|
|
6227
6227
|
label: "Прошлое полугодие, до такой же даты",
|
|
@@ -6233,7 +6233,7 @@ class Di {
|
|
|
6233
6233
|
label: "Прошлый год, до такой же даты",
|
|
6234
6234
|
group: "other",
|
|
6235
6235
|
section: "lastTillSame",
|
|
6236
|
-
...y.intervalTillSameDate(g, ue(
|
|
6236
|
+
...y.intervalTillSameDate(g, ue(cr(r, 1)), r)
|
|
6237
6237
|
},
|
|
6238
6238
|
nextWeekTillSameWeekDay: { label: "Следующая неделя, до такого же дня недели", group: "other", section: "nextTillSame", ...y.weekTillSameWeekday(r, 1) },
|
|
6239
6239
|
nextTenDaysTillSameDayNumber: {
|
|
@@ -6246,13 +6246,13 @@ class Di {
|
|
|
6246
6246
|
label: "Следующий месяц, до такой же даты",
|
|
6247
6247
|
group: "other",
|
|
6248
6248
|
section: "nextTillSame",
|
|
6249
|
-
...y.intervalTillSameDate(c,
|
|
6249
|
+
...y.intervalTillSameDate(c, U($(r, 1)), r)
|
|
6250
6250
|
},
|
|
6251
6251
|
nextQuarterTillSameDate: {
|
|
6252
6252
|
label: "Следующий квартал, до такой же даты",
|
|
6253
6253
|
group: "other",
|
|
6254
6254
|
section: "nextTillSame",
|
|
6255
|
-
...y.intervalTillSameDate(u, ke(
|
|
6255
|
+
...y.intervalTillSameDate(u, ke(or(r, 1)), r)
|
|
6256
6256
|
},
|
|
6257
6257
|
nextHalfYearTillSameDate: {
|
|
6258
6258
|
label: "Следующее полугодие, до такой же даты",
|
|
@@ -6264,14 +6264,14 @@ class Di {
|
|
|
6264
6264
|
label: "Следующий год, до такой же даты",
|
|
6265
6265
|
group: "other",
|
|
6266
6266
|
section: "nextTillSame",
|
|
6267
|
-
...y.intervalTillSameDate(g, ue(
|
|
6267
|
+
...y.intervalTillSameDate(g, ue(nr(r, 1)), r)
|
|
6268
6268
|
},
|
|
6269
6269
|
last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: ge(je(r, 6)), to: i },
|
|
6270
6270
|
next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: z(re(r, 6)) }
|
|
6271
6271
|
};
|
|
6272
6272
|
}
|
|
6273
6273
|
}
|
|
6274
|
-
const
|
|
6274
|
+
const bi = [
|
|
6275
6275
|
{ key: "day", label: "День" },
|
|
6276
6276
|
{ key: "week", label: "Неделя" },
|
|
6277
6277
|
{ key: "decade", label: "Декада" },
|
|
@@ -6280,18 +6280,18 @@ const Ti = [
|
|
|
6280
6280
|
{ key: "halfYear", label: "Полугодие" },
|
|
6281
6281
|
{ key: "year", label: "Год" },
|
|
6282
6282
|
{ key: "other", label: "Прочее" }
|
|
6283
|
-
],
|
|
6283
|
+
], Ai = [
|
|
6284
6284
|
{ key: "fromBeginning", label: "С начала периода" },
|
|
6285
6285
|
{ key: "tillEnd", label: "До конца периода" },
|
|
6286
6286
|
{ key: "lastTillSame", label: "Прошлые, до такой же даты" },
|
|
6287
6287
|
{ key: "nextTillSame", label: "Следующие, до такой же даты" },
|
|
6288
6288
|
{ key: "rollingDays", label: "7 дней" }
|
|
6289
6289
|
];
|
|
6290
|
-
function
|
|
6291
|
-
const r =
|
|
6290
|
+
function Si(n) {
|
|
6291
|
+
const r = zt(n * 100);
|
|
6292
6292
|
return `${r >= 0 ? "+" : ""}${r}%`;
|
|
6293
6293
|
}
|
|
6294
|
-
class
|
|
6294
|
+
class Pt {
|
|
6295
6295
|
/**
|
|
6296
6296
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
6297
6297
|
*
|
|
@@ -6307,7 +6307,7 @@ class Dt {
|
|
|
6307
6307
|
*/
|
|
6308
6308
|
static getProductMultiplicity(r) {
|
|
6309
6309
|
var e, t;
|
|
6310
|
-
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !
|
|
6310
|
+
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !Pt.productIsMeasurable(r) ? r.properties.minCount : 1;
|
|
6311
6311
|
}
|
|
6312
6312
|
/**
|
|
6313
6313
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -6351,7 +6351,7 @@ const ye = class ye extends h {
|
|
|
6351
6351
|
*/
|
|
6352
6352
|
cacheResponse(e, t) {
|
|
6353
6353
|
ye.responseDataCache.set(e, {
|
|
6354
|
-
validTo:
|
|
6354
|
+
validTo: ts(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
6355
6355
|
val: t
|
|
6356
6356
|
});
|
|
6357
6357
|
}
|
|
@@ -6375,8 +6375,8 @@ const ye = class ye extends h {
|
|
|
6375
6375
|
* Кэш результатов запросов.
|
|
6376
6376
|
*/
|
|
6377
6377
|
s(ye, "responseDataCache", /* @__PURE__ */ new Map());
|
|
6378
|
-
let
|
|
6379
|
-
class
|
|
6378
|
+
let Ee = ye;
|
|
6379
|
+
class di {
|
|
6380
6380
|
/**
|
|
6381
6381
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
6382
6382
|
*/
|
|
@@ -6392,12 +6392,12 @@ class bi {
|
|
|
6392
6392
|
return r.id === 0 && r.guid === "-undefined-";
|
|
6393
6393
|
}
|
|
6394
6394
|
}
|
|
6395
|
-
class
|
|
6395
|
+
class bt extends Ee {
|
|
6396
6396
|
/**
|
|
6397
6397
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
6398
6398
|
*/
|
|
6399
6399
|
async getManagers() {
|
|
6400
|
-
const r = "/internal/managers", e =
|
|
6400
|
+
const r = "/internal/managers", e = Ee.getCachedResponse(r);
|
|
6401
6401
|
if (e)
|
|
6402
6402
|
return e;
|
|
6403
6403
|
const t = await this.get(r), i = _.instanceListInitializer(Z, t.data);
|
|
@@ -6415,7 +6415,7 @@ class Tt extends Ue {
|
|
|
6415
6415
|
}
|
|
6416
6416
|
}
|
|
6417
6417
|
var xe = /* @__PURE__ */ ((n) => (n.Processing = "processing", n.Completed = "completed", n.Error = "error", n.NeedsActualization = "needs_actualization", n))(xe || {});
|
|
6418
|
-
class
|
|
6418
|
+
class $s {
|
|
6419
6419
|
/**
|
|
6420
6420
|
* Инициализирует экземпляр класса {@link OfferActualization}.
|
|
6421
6421
|
*
|
|
@@ -6438,7 +6438,7 @@ class Ss {
|
|
|
6438
6438
|
* @inheritDoc
|
|
6439
6439
|
*/
|
|
6440
6440
|
s(this, "error");
|
|
6441
|
-
this.status = (r == null ? void 0 : r.status) ?? xe.Processing, this.actualizedAt =
|
|
6441
|
+
this.status = (r == null ? void 0 : r.status) ?? xe.Processing, this.actualizedAt = br.parse(r == null ? void 0 : r.actualizedAt), this.expiresAt = br.parse(r == null ? void 0 : r.expiresAt), this.error = r == null ? void 0 : r.error;
|
|
6442
6442
|
}
|
|
6443
6443
|
/**
|
|
6444
6444
|
* @inheritDoc
|
|
@@ -6471,7 +6471,7 @@ class Ss {
|
|
|
6471
6471
|
return this.status === xe.Completed && !this.isOutdatedAt(r);
|
|
6472
6472
|
}
|
|
6473
6473
|
}
|
|
6474
|
-
class
|
|
6474
|
+
class At extends G {
|
|
6475
6475
|
/**
|
|
6476
6476
|
* Инициализирует экземпляр класса {@link OfferShortInfo}.
|
|
6477
6477
|
*
|
|
@@ -6507,10 +6507,10 @@ class Pt extends G {
|
|
|
6507
6507
|
* @inheritDoc
|
|
6508
6508
|
*/
|
|
6509
6509
|
s(this, "file");
|
|
6510
|
-
this.name = e == null ? void 0 : e.name, this.createdAt =
|
|
6510
|
+
this.name = e == null ? void 0 : e.name, this.createdAt = br.parse(e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.client = new oe(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum, this.isProfstroy = e == null ? void 0 : e.isProfstroy, this.actualization = (e == null ? void 0 : e.actualization) && new $s(e.actualization), this.file = e == null ? void 0 : e.file;
|
|
6511
6511
|
}
|
|
6512
6512
|
}
|
|
6513
|
-
class
|
|
6513
|
+
class ks extends Ir {
|
|
6514
6514
|
/**
|
|
6515
6515
|
* Инициализирует экземпляр класса {@link ProfstroyOfferItem}.
|
|
6516
6516
|
*
|
|
@@ -6549,7 +6549,7 @@ class ds extends Or {
|
|
|
6549
6549
|
return !this.isProductStub && !this.isIgnored && J(this.lineError);
|
|
6550
6550
|
}
|
|
6551
6551
|
}
|
|
6552
|
-
class F extends
|
|
6552
|
+
class F extends At {
|
|
6553
6553
|
/**
|
|
6554
6554
|
* Инициализирует экземпляр класса {@link Offer}.
|
|
6555
6555
|
*
|
|
@@ -6566,11 +6566,11 @@ class F extends Pt {
|
|
|
6566
6566
|
*/
|
|
6567
6567
|
s(this, "products");
|
|
6568
6568
|
this.sum = e.sum ?? 0, this.products = (e.products ?? []).map(
|
|
6569
|
-
(t) => e.isProfstroy ? new
|
|
6569
|
+
(t) => e.isProfstroy ? new ks(t) : new Ir(t)
|
|
6570
6570
|
);
|
|
6571
6571
|
}
|
|
6572
6572
|
}
|
|
6573
|
-
class
|
|
6573
|
+
class $i extends Fe {
|
|
6574
6574
|
/**
|
|
6575
6575
|
* Инициализирует экземпляр класса {@link OffersListFilters}.
|
|
6576
6576
|
*
|
|
@@ -6593,8 +6593,8 @@ class Si extends Fe {
|
|
|
6593
6593
|
/**
|
|
6594
6594
|
* @inheritDoc
|
|
6595
6595
|
*/
|
|
6596
|
-
s(this, "createdAt", new
|
|
6597
|
-
this.id = e == null ? void 0 : e.id, this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.name = e == null ? void 0 : e.name, this.createdAt = new
|
|
6596
|
+
s(this, "createdAt", new A());
|
|
6597
|
+
this.id = e == null ? void 0 : e.id, this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.name = e == null ? void 0 : e.name, this.createdAt = new A(e == null ? void 0 : e.createdAt);
|
|
6598
6598
|
}
|
|
6599
6599
|
/**
|
|
6600
6600
|
* @inheritDoc
|
|
@@ -6611,9 +6611,9 @@ class Si extends Fe {
|
|
|
6611
6611
|
return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, e;
|
|
6612
6612
|
}
|
|
6613
6613
|
}
|
|
6614
|
-
class
|
|
6614
|
+
class rr extends D {
|
|
6615
6615
|
}
|
|
6616
|
-
class
|
|
6616
|
+
class St extends Tt {
|
|
6617
6617
|
/**
|
|
6618
6618
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
6619
6619
|
*
|
|
@@ -6683,10 +6683,10 @@ class At extends Ct {
|
|
|
6683
6683
|
date: R((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
|
|
6684
6684
|
address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new _e(e.delivery.address) : void 0,
|
|
6685
6685
|
warehouse: (a = e == null ? void 0 : e.delivery) != null && a.warehouse ? new Me(e.delivery.warehouse) : void 0
|
|
6686
|
-
}, this.attachedUser = e != null && e.attachedUser ? new N(e == null ? void 0 : e.attachedUser) : void 0, this.status = new
|
|
6686
|
+
}, this.attachedUser = e != null && e.attachedUser ? new N(e == null ? void 0 : e.attachedUser) : void 0, this.status = new rr(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new D(e.statusDetail) : void 0, this.salesDirection = new E(e == null ? void 0 : e.salesDirection), this.attachedAt = R(e == null ? void 0 : e.attachedAt) ? C(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isProfstroy = (e == null ? void 0 : e.isProfstroy) ?? !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;
|
|
6687
6687
|
}
|
|
6688
6688
|
}
|
|
6689
|
-
class
|
|
6689
|
+
class Os extends ut {
|
|
6690
6690
|
/**
|
|
6691
6691
|
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
6692
6692
|
*
|
|
@@ -6746,7 +6746,7 @@ class $s extends ct {
|
|
|
6746
6746
|
this.product = new X(e.product), this.currency = new j(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 = W(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
|
|
6747
6747
|
}
|
|
6748
6748
|
}
|
|
6749
|
-
class I extends
|
|
6749
|
+
class I extends St {
|
|
6750
6750
|
/**
|
|
6751
6751
|
* Инициализирует экземпляр класса {@link Order}.
|
|
6752
6752
|
*
|
|
@@ -6814,11 +6814,11 @@ class I extends At {
|
|
|
6814
6814
|
this.products = (e.products ?? []).map((i) => {
|
|
6815
6815
|
var c;
|
|
6816
6816
|
const o = i.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === i.replacementId) : void 0;
|
|
6817
|
-
return new
|
|
6818
|
-
}), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ?
|
|
6817
|
+
return new Os(i, o);
|
|
6818
|
+
}), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ze.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new D(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new rr(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl, this.numberDoc = e.numberDoc;
|
|
6819
6819
|
}
|
|
6820
6820
|
}
|
|
6821
|
-
class
|
|
6821
|
+
class ki extends Y {
|
|
6822
6822
|
/**
|
|
6823
6823
|
* Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
|
|
6824
6824
|
*
|
|
@@ -6830,7 +6830,7 @@ class di extends Y {
|
|
|
6830
6830
|
* @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get_list
|
|
6831
6831
|
*/
|
|
6832
6832
|
getOffers(r, e, t, i = void 0) {
|
|
6833
|
-
return this.getTypedPaginated(
|
|
6833
|
+
return this.getTypedPaginated(At, "/internal/orders/offers", r, e, t, {}, void 0, i);
|
|
6834
6834
|
}
|
|
6835
6835
|
/**
|
|
6836
6836
|
* Создаёт заказ-черновик из содержимого корзины клиента и возвращает данные созданной записи.
|
|
@@ -7054,7 +7054,7 @@ class di extends Y {
|
|
|
7054
7054
|
return this.post(`/internal/orders/offers/${r}/send`, e);
|
|
7055
7055
|
}
|
|
7056
7056
|
}
|
|
7057
|
-
class
|
|
7057
|
+
class Oi {
|
|
7058
7058
|
/**
|
|
7059
7059
|
* Возвращает признак того, что запись создана из файла выгрузки программы «Профстрой».
|
|
7060
7060
|
*
|
|
@@ -7073,8 +7073,8 @@ class $i {
|
|
|
7073
7073
|
return !m(r) && r.isProfstroy === !0 && !m(r.actualization);
|
|
7074
7074
|
}
|
|
7075
7075
|
}
|
|
7076
|
-
var
|
|
7077
|
-
class
|
|
7076
|
+
var Ls = /* @__PURE__ */ ((n) => (n.View = "view", n.Share = "share", n.EditTags = "edit_tags", n.SaveOrderIgnoredProducts = "save_order_ignored_products", n.ChangeStatus = "change_status", n.ChangeProducts = "change_products", n.ChangeOrderParameters = "change_order_parameters", n.Recalculate = "recalculate", n.AttachOrder = "attach_order", n.DetachOrder = "detach_order", n.ChangeAttachedOperator = "change_attached_operator", n.SendOnlinePaymentLink = "send_online_payment_link", n.ConfirmOnlineFullPayment = "confirm_online_full_payment", n.MergeOrders = "merge_orders", n.GetHistory = "get_history", n.CloneOrder = "clone_order", n.DeleteAttachedFile = "delete_attached_file", n))(Ls || {});
|
|
7077
|
+
class Li {
|
|
7078
7078
|
/**
|
|
7079
7079
|
* Инициализирует экземпляр класса {@link OrderEditorData}.
|
|
7080
7080
|
*
|
|
@@ -7141,11 +7141,11 @@ class ki {
|
|
|
7141
7141
|
this.paymentType = r == null ? void 0 : r.payment.type, this.deliveryType = r == null ? void 0 : r.delivery.type, this.contragentId = (e = r == null ? void 0 : r.contragent) == null ? void 0 : e.id, this.deliveryDate = r != null && r.delivery.date ? new Date(r.delivery.date) : void 0, this.addressId = (t = r == null ? void 0 : r.delivery.address) == null ? void 0 : t.id, this.warehouseId = (i = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : i.id, this.comment = r == null ? void 0 : r.comment, this.barcode = r == null ? void 0 : r.barcode, this.operatorsComment = r == null ? void 0 : r.operatorsComment, this.operatorsForWarehouseComment = r == null ? void 0 : r.operatorsForWarehouseComment, this.isAllowProcessingWithoutPayment = r == null ? void 0 : r.isAllowProcessingWithoutPayment;
|
|
7142
7142
|
}
|
|
7143
7143
|
}
|
|
7144
|
-
class
|
|
7144
|
+
class dt extends D {
|
|
7145
7145
|
}
|
|
7146
|
-
class
|
|
7146
|
+
class $t extends D {
|
|
7147
7147
|
}
|
|
7148
|
-
class
|
|
7148
|
+
class Ii extends Fe {
|
|
7149
7149
|
/**
|
|
7150
7150
|
* Инициализирует экземпляр класса {@link OrdersListFilters}.
|
|
7151
7151
|
*
|
|
@@ -7173,7 +7173,7 @@ class Oi extends Fe {
|
|
|
7173
7173
|
/**
|
|
7174
7174
|
* @inheritDoc
|
|
7175
7175
|
*/
|
|
7176
|
-
s(this, "createdAt", new
|
|
7176
|
+
s(this, "createdAt", new A());
|
|
7177
7177
|
/**
|
|
7178
7178
|
* @inheritDoc
|
|
7179
7179
|
*/
|
|
@@ -7181,7 +7181,7 @@ class Oi extends Fe {
|
|
|
7181
7181
|
/**
|
|
7182
7182
|
* @inheritDoc
|
|
7183
7183
|
*/
|
|
7184
|
-
s(this, "deliveryDate", new
|
|
7184
|
+
s(this, "deliveryDate", new A());
|
|
7185
7185
|
/**
|
|
7186
7186
|
* @inheritDoc
|
|
7187
7187
|
*/
|
|
@@ -7209,7 +7209,7 @@ class Oi extends Fe {
|
|
|
7209
7209
|
/**
|
|
7210
7210
|
* @inheritDoc
|
|
7211
7211
|
*/
|
|
7212
|
-
s(this, "attachedAt", new
|
|
7212
|
+
s(this, "attachedAt", new A());
|
|
7213
7213
|
/**
|
|
7214
7214
|
* @inheritDoc
|
|
7215
7215
|
*/
|
|
@@ -7246,7 +7246,7 @@ class Oi extends Fe {
|
|
|
7246
7246
|
* @inheritDoc
|
|
7247
7247
|
*/
|
|
7248
7248
|
s(this, "onlyMyRegions");
|
|
7249
|
-
this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Z(u) : new
|
|
7249
|
+
this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Z(u) : new dt(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new oe(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new N(e.creator) : void 0, this.deliveryDate = new A(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new Re(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new A(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new E(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new K(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new $t(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new Me(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
|
|
7250
7250
|
}
|
|
7251
7251
|
/**
|
|
7252
7252
|
* @inheritDoc
|
|
@@ -7297,7 +7297,7 @@ class Oi extends Fe {
|
|
|
7297
7297
|
return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.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) && !((p = e == null ? void 0 : e.attachedAt) != null && p.to) && delete e.attachedAt, e;
|
|
7298
7298
|
}
|
|
7299
7299
|
}
|
|
7300
|
-
class
|
|
7300
|
+
class Is {
|
|
7301
7301
|
/**
|
|
7302
7302
|
* Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
|
|
7303
7303
|
*
|
|
@@ -7320,10 +7320,10 @@ class Os {
|
|
|
7320
7320
|
* @inheritDoc
|
|
7321
7321
|
*/
|
|
7322
7322
|
s(this, "createdAt");
|
|
7323
|
-
this.user = new N(r == null ? void 0 : r.user), this.status = new
|
|
7323
|
+
this.user = new N(r == null ? void 0 : r.user), this.status = new rr(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new D(r.statusDetail) : void 0, this.createdAt = R(r == null ? void 0 : r.createdAt) ? C(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
|
|
7324
7324
|
}
|
|
7325
7325
|
}
|
|
7326
|
-
class
|
|
7326
|
+
class xi extends Y {
|
|
7327
7327
|
/**
|
|
7328
7328
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
7329
7329
|
*
|
|
@@ -7335,7 +7335,7 @@ class Li extends Y {
|
|
|
7335
7335
|
* @see /doc/api/internal#/Заказы/api_internal_orders_get_list
|
|
7336
7336
|
*/
|
|
7337
7337
|
getOrders(r, e, t, i = void 0) {
|
|
7338
|
-
return this.getTypedPaginated(
|
|
7338
|
+
return this.getTypedPaginated(St, "/internal/orders", r, e, t, {}, void 0, i);
|
|
7339
7339
|
}
|
|
7340
7340
|
/**
|
|
7341
7341
|
* Возвращает количество заказов, соответствующих указанным фильтрам.
|
|
@@ -7548,7 +7548,7 @@ class Li extends Y {
|
|
|
7548
7548
|
* @see /doc/api/internal#/Заказы/api_internal_orders_status_history_get
|
|
7549
7549
|
*/
|
|
7550
7550
|
getOrderStatusHistory(r) {
|
|
7551
|
-
return this.getTypedList(
|
|
7551
|
+
return this.getTypedList(Is, `/internal/orders/${r}/history`);
|
|
7552
7552
|
}
|
|
7553
7553
|
/**
|
|
7554
7554
|
* Возвращает содержимое печатной формы заказа в формате HTML.
|
|
@@ -7690,8 +7690,8 @@ class Li extends Y {
|
|
|
7690
7690
|
);
|
|
7691
7691
|
}
|
|
7692
7692
|
}
|
|
7693
|
-
const
|
|
7694
|
-
class
|
|
7693
|
+
const _i = Symbol("currentOrder");
|
|
7694
|
+
class mr {
|
|
7695
7695
|
/**
|
|
7696
7696
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
7697
7697
|
*
|
|
@@ -7718,12 +7718,12 @@ class fr {
|
|
|
7718
7718
|
* Источник клиентской цены.
|
|
7719
7719
|
*/
|
|
7720
7720
|
s(this, "source");
|
|
7721
|
-
this.client = new oe(r == null ? void 0 : r.client), this.product = new q(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) ??
|
|
7721
|
+
this.client = new oe(r == null ? void 0 : r.client), this.product = new q(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) ?? Lr.Product;
|
|
7722
7722
|
}
|
|
7723
7723
|
}
|
|
7724
|
-
const
|
|
7724
|
+
const yr = (n) => {
|
|
7725
7725
|
var r, e, t, i, o;
|
|
7726
|
-
return n ?
|
|
7726
|
+
return n ? st(
|
|
7727
7727
|
{
|
|
7728
7728
|
cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
|
|
7729
7729
|
clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
|
|
@@ -7732,13 +7732,13 @@ const mr = (n) => {
|
|
|
7732
7732
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
7733
7733
|
hideNotActive: n.hideNotActive
|
|
7734
7734
|
},
|
|
7735
|
-
(c) => m(c) || (W(c) ||
|
|
7735
|
+
(c) => m(c) || (W(c) || Je(c)) && J(c)
|
|
7736
7736
|
) : {};
|
|
7737
|
-
},
|
|
7737
|
+
}, Qr = (n) => {
|
|
7738
7738
|
const r = {};
|
|
7739
7739
|
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;
|
|
7740
7740
|
};
|
|
7741
|
-
class
|
|
7741
|
+
class Ni extends h {
|
|
7742
7742
|
/**
|
|
7743
7743
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
7744
7744
|
*
|
|
@@ -7752,10 +7752,10 @@ class xi extends h {
|
|
|
7752
7752
|
return this.get(
|
|
7753
7753
|
`/internal/price/products/${r}/analyze`,
|
|
7754
7754
|
{
|
|
7755
|
-
...
|
|
7756
|
-
filters:
|
|
7755
|
+
...Qr(e),
|
|
7756
|
+
filters: yr(t)
|
|
7757
7757
|
},
|
|
7758
|
-
(i) => _.instanceListInitializer(
|
|
7758
|
+
(i) => _.instanceListInitializer(mr, i.data)
|
|
7759
7759
|
);
|
|
7760
7760
|
}
|
|
7761
7761
|
/**
|
|
@@ -7771,10 +7771,10 @@ class xi extends h {
|
|
|
7771
7771
|
return this.get(
|
|
7772
7772
|
`/internal/price/categories/${r}/analyze`,
|
|
7773
7773
|
{
|
|
7774
|
-
...
|
|
7775
|
-
filters:
|
|
7774
|
+
...Qr(e),
|
|
7775
|
+
filters: yr(t)
|
|
7776
7776
|
},
|
|
7777
|
-
(i) => _.instanceListInitializer(
|
|
7777
|
+
(i) => _.instanceListInitializer(mr, i.data)
|
|
7778
7778
|
);
|
|
7779
7779
|
}
|
|
7780
7780
|
/**
|
|
@@ -7793,13 +7793,13 @@ class xi extends h {
|
|
|
7793
7793
|
`/internal/price/categories/${r}/analyze/square`,
|
|
7794
7794
|
{
|
|
7795
7795
|
...e,
|
|
7796
|
-
filters:
|
|
7796
|
+
filters: yr(t)
|
|
7797
7797
|
},
|
|
7798
|
-
(i) => _.instanceListInitializer(
|
|
7798
|
+
(i) => _.instanceListInitializer(mr, i.data)
|
|
7799
7799
|
);
|
|
7800
7800
|
}
|
|
7801
7801
|
}
|
|
7802
|
-
class
|
|
7802
|
+
class xs {
|
|
7803
7803
|
/**
|
|
7804
7804
|
* Инициализирует экземпляр класса {@link PriceHistoryItem}.
|
|
7805
7805
|
*
|
|
@@ -7846,10 +7846,10 @@ class Ls {
|
|
|
7846
7846
|
* @inheritDoc
|
|
7847
7847
|
*/
|
|
7848
7848
|
s(this, "currency");
|
|
7849
|
-
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = R(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new
|
|
7849
|
+
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = R(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new Ue(r.product) : void 0, this.client = r.client ? new N(r.client) : void 0, this.executor = r.executor ? new N(r.executor) : void 0, this.currency = r.currency ? new j(r.currency) : void 0;
|
|
7850
7850
|
}
|
|
7851
7851
|
}
|
|
7852
|
-
class
|
|
7852
|
+
class _s extends Ue {
|
|
7853
7853
|
/**
|
|
7854
7854
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
7855
7855
|
*
|
|
@@ -7861,10 +7861,10 @@ class Is extends Ee {
|
|
|
7861
7861
|
* @inheritDoc
|
|
7862
7862
|
*/
|
|
7863
7863
|
s(this, "history");
|
|
7864
|
-
this.history = De(e.history, (t) => new
|
|
7864
|
+
this.history = De(e.history, (t) => new xs(t));
|
|
7865
7865
|
}
|
|
7866
7866
|
}
|
|
7867
|
-
class
|
|
7867
|
+
class qi extends h {
|
|
7868
7868
|
/**
|
|
7869
7869
|
* Возвращает данные об истории изменения цен.
|
|
7870
7870
|
*
|
|
@@ -7874,21 +7874,21 @@ class _i extends h {
|
|
|
7874
7874
|
*/
|
|
7875
7875
|
getProductPriceHistory(r) {
|
|
7876
7876
|
var o, c, u, p, g;
|
|
7877
|
-
const e = O().config.dateFormats.api, t =
|
|
7877
|
+
const e = O().config.dateFormats.api, t = st(
|
|
7878
7878
|
Ne(r, {
|
|
7879
7879
|
costDate: {
|
|
7880
|
-
from:
|
|
7881
|
-
to:
|
|
7880
|
+
from: Ke((o = r.costDate) == null ? void 0 : o.from) ? k(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
7881
|
+
to: Ke((u = r.costDate) == null ? void 0 : u.to) ? k(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
|
|
7882
7882
|
}
|
|
7883
7883
|
}),
|
|
7884
|
-
(a) => m(a) || (W(a) ||
|
|
7884
|
+
(a) => m(a) || (W(a) || Je(a)) && J(a)
|
|
7885
7885
|
), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
|
|
7886
7886
|
return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((a) => [
|
|
7887
|
-
new
|
|
7887
|
+
new _s(Ne(a[0], { history: a }))
|
|
7888
7888
|
]);
|
|
7889
7889
|
}
|
|
7890
7890
|
}
|
|
7891
|
-
class
|
|
7891
|
+
class Jr {
|
|
7892
7892
|
/**
|
|
7893
7893
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
7894
7894
|
*
|
|
@@ -7903,10 +7903,10 @@ class Qr {
|
|
|
7903
7903
|
* Список рекомендованных категорий продуктов.
|
|
7904
7904
|
*/
|
|
7905
7905
|
s(this, "productCategories", []);
|
|
7906
|
-
r != null && r.products && (this.products = r.products.map((e) => new
|
|
7906
|
+
r != null && r.products && (this.products = r.products.map((e) => new Ue(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new Ue(e)));
|
|
7907
7907
|
}
|
|
7908
7908
|
}
|
|
7909
|
-
class
|
|
7909
|
+
class Ui extends h {
|
|
7910
7910
|
/**
|
|
7911
7911
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
7912
7912
|
*
|
|
@@ -7914,7 +7914,7 @@ class Ni extends h {
|
|
|
7914
7914
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
7915
7915
|
*/
|
|
7916
7916
|
getProductCategoryRecommendations(r) {
|
|
7917
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new
|
|
7917
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Jr(e.data));
|
|
7918
7918
|
}
|
|
7919
7919
|
/**
|
|
7920
7920
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -7923,7 +7923,7 @@ class Ni extends h {
|
|
|
7923
7923
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
7924
7924
|
*/
|
|
7925
7925
|
getProductRecommendations(r) {
|
|
7926
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new
|
|
7926
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Jr(e.data));
|
|
7927
7927
|
}
|
|
7928
7928
|
/**
|
|
7929
7929
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -7952,12 +7952,12 @@ class Ni extends h {
|
|
|
7952
7952
|
});
|
|
7953
7953
|
}
|
|
7954
7954
|
}
|
|
7955
|
-
var
|
|
7956
|
-
class
|
|
7955
|
+
var Ns = /* @__PURE__ */ ((n) => (n.New = "new", n.Processing = "processing", n.AwaitingSupplyProducts = "awaiting_supply_products", n.InvoiceIssued = "invoice_issued", n.ProcessingOnStock = "processing_on_stock", n.Finished = "finished", n.OrderUpdated = "order_updated", n.Canceled = "canceled", n.Error = "error", n))(Ns || {}), qs = /* @__PURE__ */ ((n) => (n.CanceledBy1c = "canceled_by1c", n.CanceledByClient = "canceled_by_client", n.FinishedNotApproved = "finished_not_approved", n.ProcessingByPurchasingDepartment = "processing_by_purchasing_department", n.WillWaiting = "will_waiting", n))(qs || {});
|
|
7956
|
+
class Us extends D {
|
|
7957
7957
|
}
|
|
7958
|
-
class
|
|
7958
|
+
class Es extends D {
|
|
7959
7959
|
}
|
|
7960
|
-
class
|
|
7960
|
+
class Kr extends D {
|
|
7961
7961
|
/**
|
|
7962
7962
|
* Инициализирует экземпляр класса {@link CityWithUserRegion}.
|
|
7963
7963
|
*
|
|
@@ -7970,18 +7970,18 @@ class Vr extends D {
|
|
|
7970
7970
|
* @inheritDoc
|
|
7971
7971
|
*/
|
|
7972
7972
|
s(this, "userRegions");
|
|
7973
|
-
this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new
|
|
7973
|
+
this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new er(i))) ?? [];
|
|
7974
7974
|
}
|
|
7975
7975
|
}
|
|
7976
|
-
class Es extends D {
|
|
7977
|
-
}
|
|
7978
|
-
class Us extends D {
|
|
7979
|
-
}
|
|
7980
7976
|
class Fs extends D {
|
|
7981
7977
|
}
|
|
7982
7978
|
class Ms extends D {
|
|
7983
7979
|
}
|
|
7984
|
-
class
|
|
7980
|
+
class Hs extends D {
|
|
7981
|
+
}
|
|
7982
|
+
class Bs extends D {
|
|
7983
|
+
}
|
|
7984
|
+
class Ei {
|
|
7985
7985
|
/**
|
|
7986
7986
|
* Генерирует и возвращает данные-заглушку неопределённой записи справочника.
|
|
7987
7987
|
*
|
|
@@ -8000,9 +8000,9 @@ class qi {
|
|
|
8000
8000
|
return r.id === 0 && r.slug === "-undefined-";
|
|
8001
8001
|
}
|
|
8002
8002
|
}
|
|
8003
|
-
class
|
|
8003
|
+
class kt extends D {
|
|
8004
8004
|
}
|
|
8005
|
-
const B = class B extends
|
|
8005
|
+
const B = class B extends Ee {
|
|
8006
8006
|
/**
|
|
8007
8007
|
* Исключает из списка записей справочника местоположений служебную запись
|
|
8008
8008
|
* неизвестного региона или города.
|
|
@@ -8020,26 +8020,26 @@ const B = class B extends Ue {
|
|
|
8020
8020
|
* и использовать в случае аналогичных запросов.
|
|
8021
8021
|
*/
|
|
8022
8022
|
getReference(r, e = !1) {
|
|
8023
|
-
return this.getTypedDataArrayRequester(
|
|
8023
|
+
return this.getTypedDataArrayRequester(Us, `/internal/references/${r}`, e);
|
|
8024
8024
|
}
|
|
8025
8025
|
/**
|
|
8026
8026
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
8027
8027
|
* первичного интереса.
|
|
8028
8028
|
*/
|
|
8029
8029
|
getChannelPrimaryInterest() {
|
|
8030
|
-
return this.getTypedDataArrayRequester(
|
|
8030
|
+
return this.getTypedDataArrayRequester(Ct, "/internal/references/channel-primary-interest", !0);
|
|
8031
8031
|
}
|
|
8032
8032
|
/**
|
|
8033
8033
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
8034
8034
|
*/
|
|
8035
8035
|
getContactPositions() {
|
|
8036
|
-
return this.getTypedDataArrayRequester(
|
|
8036
|
+
return this.getTypedDataArrayRequester(Fs, "/internal/references/contact-position", !0);
|
|
8037
8037
|
}
|
|
8038
8038
|
/**
|
|
8039
8039
|
* Возвращает {@link Promise} для получения справочника списка направлений кураторства.
|
|
8040
8040
|
*/
|
|
8041
8041
|
getCuratedDirection() {
|
|
8042
|
-
return this.getTypedDataArrayRequester(
|
|
8042
|
+
return this.getTypedDataArrayRequester(_r, "/internal/references/curated-direction", !0);
|
|
8043
8043
|
}
|
|
8044
8044
|
/**
|
|
8045
8045
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
@@ -8064,49 +8064,49 @@ const B = class B extends Ue {
|
|
|
8064
8064
|
* Возвращает {@link Promise} для получения справочника операторов.
|
|
8065
8065
|
*/
|
|
8066
8066
|
getOperators() {
|
|
8067
|
-
return this.getTypedDataArrayRequester(
|
|
8067
|
+
return this.getTypedDataArrayRequester(dt, "/internal/references/operator", !0);
|
|
8068
8068
|
}
|
|
8069
8069
|
/**
|
|
8070
8070
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
8071
8071
|
*/
|
|
8072
8072
|
getOrderPaymentStatuses() {
|
|
8073
|
-
return this.getTypedDataArrayRequester(
|
|
8073
|
+
return this.getTypedDataArrayRequester(Ms, "/public/references/order-payment-status", !0);
|
|
8074
8074
|
}
|
|
8075
8075
|
/**
|
|
8076
8076
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
8077
8077
|
*/
|
|
8078
8078
|
getOrderStatuses() {
|
|
8079
|
-
return this.getTypedDataArrayRequester(
|
|
8079
|
+
return this.getTypedDataArrayRequester(rr, "/internal/references/order-status", !0);
|
|
8080
8080
|
}
|
|
8081
8081
|
/**
|
|
8082
8082
|
* Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
|
|
8083
8083
|
*/
|
|
8084
8084
|
getOrderStatusDetails() {
|
|
8085
|
-
return this.getTypedDataArrayRequester(
|
|
8085
|
+
return this.getTypedDataArrayRequester(Hs, "/internal/references/order-status-detail", !0);
|
|
8086
8086
|
}
|
|
8087
8087
|
/**
|
|
8088
8088
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
8089
8089
|
*/
|
|
8090
8090
|
getPaymentTypes() {
|
|
8091
|
-
return this.getTypedDataArrayRequester(
|
|
8091
|
+
return this.getTypedDataArrayRequester($t, "/public/references/payment-type", !0);
|
|
8092
8092
|
}
|
|
8093
8093
|
/**
|
|
8094
8094
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
8095
8095
|
*/
|
|
8096
8096
|
getResourceTypes() {
|
|
8097
|
-
return this.getTypedDataArrayRequester(
|
|
8097
|
+
return this.getTypedDataArrayRequester(kt, "/internal/references/resource-type", !0);
|
|
8098
8098
|
}
|
|
8099
8099
|
/**
|
|
8100
8100
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
8101
8101
|
*/
|
|
8102
8102
|
getSalesDirections() {
|
|
8103
|
-
return this.getTypedDataArrayRequester(
|
|
8103
|
+
return this.getTypedDataArrayRequester(E, "/public/references/sales-direction", !0);
|
|
8104
8104
|
}
|
|
8105
8105
|
/**
|
|
8106
8106
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
8107
8107
|
*/
|
|
8108
8108
|
getSourcePrimaryInterest() {
|
|
8109
|
-
return this.getTypedDataArrayRequester(
|
|
8109
|
+
return this.getTypedDataArrayRequester(Dt, "/internal/references/source-primary-interest", !0);
|
|
8110
8110
|
}
|
|
8111
8111
|
/**
|
|
8112
8112
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -8144,7 +8144,7 @@ const B = class B extends Ue {
|
|
|
8144
8144
|
* @param regionId Идентификатор региона.
|
|
8145
8145
|
*/
|
|
8146
8146
|
getCitiesByRegion(r) {
|
|
8147
|
-
return this.getTypedDataArrayRequester(
|
|
8147
|
+
return this.getTypedDataArrayRequester(Es, "/internal/references/city", !1, { params: { regionId: r } }).then(
|
|
8148
8148
|
(e) => B.withoutUnknownLocation(e)
|
|
8149
8149
|
);
|
|
8150
8150
|
}
|
|
@@ -8155,7 +8155,7 @@ const B = class B extends Ue {
|
|
|
8155
8155
|
* @param regionId Идентификатор региона.
|
|
8156
8156
|
*/
|
|
8157
8157
|
getCitiesWithUserRegionByRegion(r) {
|
|
8158
|
-
return this.getTypedDataArrayRequester(
|
|
8158
|
+
return this.getTypedDataArrayRequester(Kr, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
|
|
8159
8159
|
(e) => B.withoutUnknownLocation(e)
|
|
8160
8160
|
);
|
|
8161
8161
|
}
|
|
@@ -8184,7 +8184,7 @@ const B = class B extends Ue {
|
|
|
8184
8184
|
* @param signal Сигнал отмены запроса.
|
|
8185
8185
|
*/
|
|
8186
8186
|
searchCityWithUserRegion(r, e = void 0) {
|
|
8187
|
-
return this.getTypedDataArrayRequester(
|
|
8187
|
+
return this.getTypedDataArrayRequester(Kr, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
|
|
8188
8188
|
(t) => B.withoutUnknownLocation(t)
|
|
8189
8189
|
);
|
|
8190
8190
|
}
|
|
@@ -8212,7 +8212,7 @@ const B = class B extends Ue {
|
|
|
8212
8212
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
8213
8213
|
*/
|
|
8214
8214
|
getPropertyTypes() {
|
|
8215
|
-
return this.getTypedDataArrayRequester(
|
|
8215
|
+
return this.getTypedDataArrayRequester(yt, "/internal/references/property-type", !0);
|
|
8216
8216
|
}
|
|
8217
8217
|
/**
|
|
8218
8218
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
@@ -8224,7 +8224,7 @@ const B = class B extends Ue {
|
|
|
8224
8224
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
8225
8225
|
*/
|
|
8226
8226
|
getProductFileType() {
|
|
8227
|
-
return this.getTypedDataArrayRequester(
|
|
8227
|
+
return this.getTypedDataArrayRequester(Bs, "/public/references/product-file-type", !0);
|
|
8228
8228
|
}
|
|
8229
8229
|
};
|
|
8230
8230
|
/**
|
|
@@ -8234,7 +8234,7 @@ const B = class B extends Ue {
|
|
|
8234
8234
|
s(B, "unknownLocationId", 1);
|
|
8235
8235
|
let S = B;
|
|
8236
8236
|
const d = ne("common.references_private", () => {
|
|
8237
|
-
const n = v({}), r = v(void 0), e = v(void 0), t = v(void 0), i = v(void 0), o = v(void 0), c = v(void 0), u = v(void 0), p = v(void 0), g = v(void 0), a = v(void 0), P = v(void 0),
|
|
8237
|
+
const n = v({}), r = v(void 0), e = v(void 0), t = v(void 0), i = v(void 0), o = v(void 0), c = v(void 0), u = v(void 0), p = v(void 0), g = v(void 0), a = v(void 0), P = v(void 0), Ae = v(void 0), Se = v(void 0), ce = v(void 0), le = v(void 0), tr = v(void 0), sr = v(void 0), ir = v(void 0), l = v(void 0);
|
|
8238
8238
|
return {
|
|
8239
8239
|
/**
|
|
8240
8240
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -8287,7 +8287,7 @@ const d = ne("common.references_private", () => {
|
|
|
8287
8287
|
/**
|
|
8288
8288
|
* Справочник групп партнеров.
|
|
8289
8289
|
*/
|
|
8290
|
-
partnerGroupReference:
|
|
8290
|
+
partnerGroupReference: Ae,
|
|
8291
8291
|
/**
|
|
8292
8292
|
* Справочник типов файлов продукктов/категорий.
|
|
8293
8293
|
*/
|
|
@@ -8303,112 +8303,112 @@ const d = ne("common.references_private", () => {
|
|
|
8303
8303
|
/**
|
|
8304
8304
|
* Справочник источников первичного интереса.
|
|
8305
8305
|
*/
|
|
8306
|
-
sourcePrimaryInterestReference:
|
|
8306
|
+
sourcePrimaryInterestReference: tr,
|
|
8307
8307
|
/**
|
|
8308
8308
|
* Справочник складов.
|
|
8309
8309
|
*/
|
|
8310
|
-
warehousesReference:
|
|
8310
|
+
warehousesReference: sr,
|
|
8311
8311
|
/**
|
|
8312
8312
|
* Справочник типов свойств.
|
|
8313
8313
|
*/
|
|
8314
|
-
propertyTypesReference:
|
|
8314
|
+
propertyTypesReference: ir,
|
|
8315
8315
|
/**
|
|
8316
8316
|
* Справочник коэффициентов цен.
|
|
8317
8317
|
*/
|
|
8318
8318
|
priceCoefficientsReference: l
|
|
8319
8319
|
};
|
|
8320
|
-
}),
|
|
8321
|
-
const n =
|
|
8320
|
+
}), Fi = ne("common.references", () => {
|
|
8321
|
+
const n = b(() => {
|
|
8322
8322
|
const l = d();
|
|
8323
8323
|
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(S).getChannelPrimaryInterest().then((f) => {
|
|
8324
8324
|
l.channelPrimaryInterestReference = f;
|
|
8325
8325
|
}).catch(T)), l.channelPrimaryInterestReference;
|
|
8326
|
-
}), r =
|
|
8326
|
+
}), r = b(() => {
|
|
8327
8327
|
const l = d();
|
|
8328
8328
|
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(S).getContactPositions().then((f) => {
|
|
8329
8329
|
l.contactPositionsReference = f;
|
|
8330
8330
|
}).catch(T)), l.contactPositionsReference;
|
|
8331
|
-
}), e =
|
|
8331
|
+
}), e = b(() => {
|
|
8332
8332
|
const l = d();
|
|
8333
8333
|
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(S).getCurrency().then((f) => {
|
|
8334
8334
|
l.currencyReference = f;
|
|
8335
8335
|
}).catch(T)), l.currencyReference;
|
|
8336
|
-
}), t =
|
|
8336
|
+
}), t = b(() => {
|
|
8337
8337
|
const l = d();
|
|
8338
8338
|
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(S).getOpf().then((f) => {
|
|
8339
8339
|
l.opfReference = f;
|
|
8340
8340
|
}).catch(T)), l.opfReference;
|
|
8341
|
-
}), i =
|
|
8341
|
+
}), i = b(() => {
|
|
8342
8342
|
const l = d();
|
|
8343
8343
|
return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(S).getOperators().then((f) => {
|
|
8344
8344
|
l.operatorReference = f;
|
|
8345
8345
|
}).catch(T)), l.operatorReference;
|
|
8346
|
-
}), o =
|
|
8346
|
+
}), o = b(() => {
|
|
8347
8347
|
const l = d();
|
|
8348
8348
|
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(S).getOrderPaymentStatuses().then((f) => {
|
|
8349
8349
|
l.orderPaymentStatusReference = f;
|
|
8350
8350
|
}).catch(T)), l.orderPaymentStatusReference;
|
|
8351
|
-
}), c =
|
|
8351
|
+
}), c = b(() => {
|
|
8352
8352
|
const l = d();
|
|
8353
8353
|
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(S).getOrderStatuses().then((f) => {
|
|
8354
8354
|
l.orderStatusReference = f;
|
|
8355
8355
|
}).catch(T)), l.orderStatusReference;
|
|
8356
|
-
}), u =
|
|
8356
|
+
}), u = b(() => {
|
|
8357
8357
|
const l = d();
|
|
8358
8358
|
return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(S).getOrderStatusDetails().then((f) => {
|
|
8359
8359
|
l.orderStatusDetailReference = f;
|
|
8360
8360
|
}).catch(T)), l.orderStatusDetailReference;
|
|
8361
|
-
}), p =
|
|
8361
|
+
}), p = b(() => {
|
|
8362
8362
|
const l = d();
|
|
8363
8363
|
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(S).getPaymentTypes().then((f) => {
|
|
8364
8364
|
l.paymentTypeReference = f;
|
|
8365
8365
|
}).catch(T)), l.paymentTypeReference;
|
|
8366
|
-
}), g =
|
|
8366
|
+
}), g = b(() => {
|
|
8367
8367
|
const l = d();
|
|
8368
8368
|
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(S).getPartnerGroup().then((f) => {
|
|
8369
8369
|
l.partnerGroupReference = f;
|
|
8370
8370
|
}).catch(T)), l.partnerGroupReference;
|
|
8371
|
-
}), a =
|
|
8371
|
+
}), a = b(() => {
|
|
8372
8372
|
const l = d();
|
|
8373
8373
|
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(S).getProductFileType().then((f) => {
|
|
8374
8374
|
l.productFileTypeReference = f;
|
|
8375
8375
|
}).catch(T)), l.productFileTypeReference;
|
|
8376
|
-
}), P =
|
|
8376
|
+
}), P = b(() => {
|
|
8377
8377
|
const l = d();
|
|
8378
8378
|
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(S).getResourceTypes().then((f) => {
|
|
8379
8379
|
l.resourceTypesReference = f;
|
|
8380
8380
|
}).catch(T)), l.resourceTypesReference;
|
|
8381
|
-
}),
|
|
8381
|
+
}), Ae = b(() => {
|
|
8382
8382
|
const l = d();
|
|
8383
8383
|
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(S).getSalesDirections().then((f) => {
|
|
8384
8384
|
l.salesDirectionsReference = f;
|
|
8385
8385
|
}).catch(T)), l.salesDirectionsReference;
|
|
8386
|
-
}), Se =
|
|
8386
|
+
}), Se = b(() => {
|
|
8387
8387
|
const l = d();
|
|
8388
8388
|
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(S).getSourcePrimaryInterest().then((f) => {
|
|
8389
8389
|
l.sourcePrimaryInterestReference = f;
|
|
8390
8390
|
}).catch(T)), l.sourcePrimaryInterestReference;
|
|
8391
|
-
}), ce =
|
|
8391
|
+
}), ce = b(() => {
|
|
8392
8392
|
const l = d();
|
|
8393
8393
|
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(S).getDeliveryTypes().then((f) => {
|
|
8394
8394
|
l.deliveryTypeReference = f;
|
|
8395
8395
|
}).catch(T)), l.deliveryTypeReference;
|
|
8396
|
-
}), le =
|
|
8396
|
+
}), le = b(() => {
|
|
8397
8397
|
const l = d();
|
|
8398
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(
|
|
8398
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(bt).getManagers().then((f) => {
|
|
8399
8399
|
l.managersList = f;
|
|
8400
8400
|
}).catch(T)), l.managersList;
|
|
8401
|
-
}),
|
|
8401
|
+
}), tr = b(() => {
|
|
8402
8402
|
const l = d();
|
|
8403
8403
|
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(S).getWarehouses().then((f) => {
|
|
8404
8404
|
l.warehousesReference = f;
|
|
8405
8405
|
}).catch(T)), l.warehousesReference;
|
|
8406
|
-
}),
|
|
8406
|
+
}), sr = b(() => {
|
|
8407
8407
|
const l = d();
|
|
8408
8408
|
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(S).getPropertyTypes().then((f) => {
|
|
8409
8409
|
l.propertyTypesReference = f;
|
|
8410
8410
|
}).catch(T)), l.propertyTypesReference;
|
|
8411
|
-
}),
|
|
8411
|
+
}), ir = b(() => {
|
|
8412
8412
|
const l = d();
|
|
8413
8413
|
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(S).getPriceCoefficients().then((f) => {
|
|
8414
8414
|
l.priceCoefficientsReference = f;
|
|
@@ -8466,7 +8466,7 @@ const d = ne("common.references_private", () => {
|
|
|
8466
8466
|
/**
|
|
8467
8467
|
* Справочник направлений продаж.
|
|
8468
8468
|
*/
|
|
8469
|
-
salesDirectionsReference:
|
|
8469
|
+
salesDirectionsReference: Ae,
|
|
8470
8470
|
/**
|
|
8471
8471
|
* Справочник каналов первичного интереса.
|
|
8472
8472
|
*/
|
|
@@ -8482,18 +8482,18 @@ const d = ne("common.references_private", () => {
|
|
|
8482
8482
|
/**
|
|
8483
8483
|
* Справочник складов.
|
|
8484
8484
|
*/
|
|
8485
|
-
warehousesReference:
|
|
8485
|
+
warehousesReference: tr,
|
|
8486
8486
|
/**
|
|
8487
8487
|
* Справочник типов свойств.
|
|
8488
8488
|
*/
|
|
8489
|
-
propertyTypesReference:
|
|
8489
|
+
propertyTypesReference: sr,
|
|
8490
8490
|
/**
|
|
8491
8491
|
* Справочник коэффициентов цен.
|
|
8492
8492
|
*/
|
|
8493
|
-
priceCoefficientsReference:
|
|
8493
|
+
priceCoefficientsReference: ir
|
|
8494
8494
|
};
|
|
8495
8495
|
});
|
|
8496
|
-
class
|
|
8496
|
+
class zs {
|
|
8497
8497
|
/**
|
|
8498
8498
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
8499
8499
|
*
|
|
@@ -8511,7 +8511,7 @@ class Hs {
|
|
|
8511
8511
|
this.name = r.name, this.content = r.content;
|
|
8512
8512
|
}
|
|
8513
8513
|
}
|
|
8514
|
-
class
|
|
8514
|
+
class Xr {
|
|
8515
8515
|
/**
|
|
8516
8516
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
8517
8517
|
*
|
|
@@ -8551,10 +8551,10 @@ class Jr {
|
|
|
8551
8551
|
*/
|
|
8552
8552
|
s(this, "tags");
|
|
8553
8553
|
var e;
|
|
8554
|
-
this.resourceType = new
|
|
8554
|
+
this.resourceType = new kt(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((t) => new zs(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
|
|
8555
8555
|
}
|
|
8556
8556
|
}
|
|
8557
|
-
class
|
|
8557
|
+
class Mi extends h {
|
|
8558
8558
|
/**
|
|
8559
8559
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
8560
8560
|
*
|
|
@@ -8562,7 +8562,7 @@ class Ui extends h {
|
|
|
8562
8562
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
8563
8563
|
*/
|
|
8564
8564
|
getResourceSeoData(r, e) {
|
|
8565
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new
|
|
8565
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new Xr(t.data));
|
|
8566
8566
|
}
|
|
8567
8567
|
/**
|
|
8568
8568
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -8573,7 +8573,7 @@ class Ui extends h {
|
|
|
8573
8573
|
* в случае ошибок в запросах.
|
|
8574
8574
|
*/
|
|
8575
8575
|
saveResourceSeoData(r, e = {}) {
|
|
8576
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new
|
|
8576
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new Xr(t.data), e);
|
|
8577
8577
|
}
|
|
8578
8578
|
/**
|
|
8579
8579
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -8585,7 +8585,61 @@ class Ui extends h {
|
|
|
8585
8585
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
8586
8586
|
}
|
|
8587
8587
|
}
|
|
8588
|
-
|
|
8588
|
+
var Qe = /* @__PURE__ */ ((n) => (n[n.Undetermined = 0] = "Undetermined", n[n.Complete = 1] = "Complete", n[n.Incomplete = 2] = "Incomplete", n))(Qe || {});
|
|
8589
|
+
class ar {
|
|
8590
|
+
/**
|
|
8591
|
+
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
8592
|
+
*
|
|
8593
|
+
* @param feedback Сообщение об ошибке валидации.
|
|
8594
|
+
* @param validationStatus Статус валидации.
|
|
8595
|
+
*/
|
|
8596
|
+
constructor(r, e) {
|
|
8597
|
+
/**
|
|
8598
|
+
* Признак необходимости отображать сообщение об ошибке валидации.
|
|
8599
|
+
*/
|
|
8600
|
+
s(this, "showFeedback", !1);
|
|
8601
|
+
/**
|
|
8602
|
+
* Сообщение об ошибке валидации.
|
|
8603
|
+
*/
|
|
8604
|
+
s(this, "feedback", "");
|
|
8605
|
+
/**
|
|
8606
|
+
* Статус валидации.
|
|
8607
|
+
*/
|
|
8608
|
+
s(this, "validationStatus");
|
|
8609
|
+
this.showFeedback = !!r, this.feedback = r, this.validationStatus = e;
|
|
8610
|
+
}
|
|
8611
|
+
}
|
|
8612
|
+
class Hi {
|
|
8613
|
+
/**
|
|
8614
|
+
* Возвращает признак, что адрес с указанной полнотой нельзя сохранять.
|
|
8615
|
+
*
|
|
8616
|
+
* @param quality Полнота адреса или `undefined`, если она неизвестна.
|
|
8617
|
+
* @param isIncompleteBlocked Признак, что сохранение неполного адреса запрещено.
|
|
8618
|
+
*/
|
|
8619
|
+
static isBlocked(r, e) {
|
|
8620
|
+
return e && r === Qe.Incomplete;
|
|
8621
|
+
}
|
|
8622
|
+
/**
|
|
8623
|
+
* Возвращает результат проверки полноты адреса для отображения под полем ввода
|
|
8624
|
+
* или `undefined`, если адрес полный или полнота неизвестна.
|
|
8625
|
+
*
|
|
8626
|
+
* Неполный адрес при запрете сохранения отображается как ошибка, в остальных случаях как предупреждение.
|
|
8627
|
+
*
|
|
8628
|
+
* @param quality Полнота адреса.
|
|
8629
|
+
* @param isIncompleteBlocked Признак, что сохранение неполного адреса запрещено.
|
|
8630
|
+
*/
|
|
8631
|
+
static getValidationResult(r, e) {
|
|
8632
|
+
switch (r) {
|
|
8633
|
+
case Qe.Incomplete:
|
|
8634
|
+
return e ? new ar("Адрес неполный, выберите более точный вариант из подсказок", "error") : new ar("Адрес неполный, проверьте его", "warning");
|
|
8635
|
+
case Qe.Undetermined:
|
|
8636
|
+
return new ar("Не удалось определить полноту адреса, проверьте его", "warning");
|
|
8637
|
+
default:
|
|
8638
|
+
return;
|
|
8639
|
+
}
|
|
8640
|
+
}
|
|
8641
|
+
}
|
|
8642
|
+
class Bi extends h {
|
|
8589
8643
|
/**
|
|
8590
8644
|
* Возвращает подсказки по адресам.
|
|
8591
8645
|
*
|
|
@@ -8632,8 +8686,8 @@ class Fi extends h {
|
|
|
8632
8686
|
});
|
|
8633
8687
|
}
|
|
8634
8688
|
}
|
|
8635
|
-
var
|
|
8636
|
-
class
|
|
8689
|
+
var Ot = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(Ot || {});
|
|
8690
|
+
class Ws extends mt {
|
|
8637
8691
|
/**
|
|
8638
8692
|
* Инициализирует экземпляр класса {@link User}.
|
|
8639
8693
|
*
|
|
@@ -8657,10 +8711,10 @@ class Bs extends gt {
|
|
|
8657
8711
|
* Роль ценообразования текущего пользователя.
|
|
8658
8712
|
*/
|
|
8659
8713
|
s(this, "pricingRole");
|
|
8660
|
-
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
|
|
8714
|
+
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 gt(e.pricingRole) : void 0;
|
|
8661
8715
|
}
|
|
8662
8716
|
}
|
|
8663
|
-
class
|
|
8717
|
+
class zi extends h {
|
|
8664
8718
|
/**
|
|
8665
8719
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
8666
8720
|
*/
|
|
@@ -8676,16 +8730,16 @@ class Mi extends h {
|
|
|
8676
8730
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
8677
8731
|
}
|
|
8678
8732
|
}
|
|
8679
|
-
class
|
|
8733
|
+
class js extends h {
|
|
8680
8734
|
/**
|
|
8681
8735
|
* Возвращает данные о текущем пользователе.
|
|
8682
8736
|
*/
|
|
8683
8737
|
// eslint-disable-next-line class-methods-use-this
|
|
8684
8738
|
getCurrentUser() {
|
|
8685
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
8739
|
+
return this.get("/internal/users/info", {}, (r) => new Ws(r.data), !0);
|
|
8686
8740
|
}
|
|
8687
8741
|
}
|
|
8688
|
-
const
|
|
8742
|
+
const Ar = ne("common.user_state_private", () => {
|
|
8689
8743
|
const n = v({}), r = v(void 0), e = v(void 0);
|
|
8690
8744
|
return {
|
|
8691
8745
|
/**
|
|
@@ -8702,23 +8756,23 @@ const Pr = ne("common.user_state_private", () => {
|
|
|
8702
8756
|
currentManager: e
|
|
8703
8757
|
};
|
|
8704
8758
|
});
|
|
8705
|
-
function
|
|
8706
|
-
const r =
|
|
8707
|
-
(n == null ? void 0 : n.type) !==
|
|
8759
|
+
function Zr(n) {
|
|
8760
|
+
const r = Ar();
|
|
8761
|
+
(n == null ? void 0 : n.type) !== Ot.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(bt).getManager(n.id).then((e) => {
|
|
8708
8762
|
r.currentManager = e;
|
|
8709
8763
|
}).catch(T).finally(() => {
|
|
8710
8764
|
r.dataLoaderList.currentManager = !1;
|
|
8711
8765
|
}));
|
|
8712
8766
|
}
|
|
8713
|
-
const
|
|
8714
|
-
const n =
|
|
8715
|
-
const e =
|
|
8716
|
-
return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(
|
|
8717
|
-
e.currentUser = t,
|
|
8767
|
+
const Wi = ne("common.user_state", () => {
|
|
8768
|
+
const n = b(() => {
|
|
8769
|
+
const e = Ar();
|
|
8770
|
+
return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(js).getCurrentUser().then((t) => {
|
|
8771
|
+
e.currentUser = t, Zr(t);
|
|
8718
8772
|
}).catch(T).finally(() => {
|
|
8719
8773
|
e.dataLoaderList.currentUser = !1;
|
|
8720
8774
|
})), e.currentUser;
|
|
8721
|
-
}), r =
|
|
8775
|
+
}), r = b(() => (Zr(n.value), Ar().currentManager));
|
|
8722
8776
|
return {
|
|
8723
8777
|
/**
|
|
8724
8778
|
* Данные о текущем пользователе.
|
|
@@ -8730,7 +8784,7 @@ const Hi = ne("common.user_state", () => {
|
|
|
8730
8784
|
currentManager: r
|
|
8731
8785
|
};
|
|
8732
8786
|
});
|
|
8733
|
-
class
|
|
8787
|
+
class Sr {
|
|
8734
8788
|
/**
|
|
8735
8789
|
* Инициализирует экземпляр класса {@link UserRegionEmployee}.
|
|
8736
8790
|
*
|
|
@@ -8745,10 +8799,10 @@ class Ar {
|
|
|
8745
8799
|
* @inheritDoc
|
|
8746
8800
|
*/
|
|
8747
8801
|
s(this, "salesDirection");
|
|
8748
|
-
this.user = new N(r == null ? void 0 : r.user), this.salesDirection = new
|
|
8802
|
+
this.user = new N(r == null ? void 0 : r.user), this.salesDirection = new E(r == null ? void 0 : r.salesDirection);
|
|
8749
8803
|
}
|
|
8750
8804
|
}
|
|
8751
|
-
class
|
|
8805
|
+
class wr extends er {
|
|
8752
8806
|
/**
|
|
8753
8807
|
* Инициализирует экземпляр класса {@link UserRegion}.
|
|
8754
8808
|
*
|
|
@@ -8765,10 +8819,10 @@ class yr extends Ze {
|
|
|
8765
8819
|
* @inheritDoc
|
|
8766
8820
|
*/
|
|
8767
8821
|
s(this, "users");
|
|
8768
|
-
this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new Re(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new
|
|
8822
|
+
this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new Re(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new Sr(o))) ?? [];
|
|
8769
8823
|
}
|
|
8770
8824
|
}
|
|
8771
|
-
class
|
|
8825
|
+
class ji extends Fe {
|
|
8772
8826
|
/**
|
|
8773
8827
|
* Инициализирует экземпляр класса {@link UserRegionsListFilters}.
|
|
8774
8828
|
*
|
|
@@ -8804,7 +8858,7 @@ class Bi extends Fe {
|
|
|
8804
8858
|
return this;
|
|
8805
8859
|
}
|
|
8806
8860
|
}
|
|
8807
|
-
class
|
|
8861
|
+
class Gi extends Y {
|
|
8808
8862
|
/**
|
|
8809
8863
|
* Возвращает список регионов пользователей.
|
|
8810
8864
|
*
|
|
@@ -8815,7 +8869,7 @@ class zi extends Y {
|
|
|
8815
8869
|
* @see /doc/api/internal#/operations/api_internal_user_region_get_list
|
|
8816
8870
|
*/
|
|
8817
8871
|
getRegionsList(r, e, t) {
|
|
8818
|
-
return this.getTypedPaginated(
|
|
8872
|
+
return this.getTypedPaginated(er, "/internal/users/regions", r, e, t);
|
|
8819
8873
|
}
|
|
8820
8874
|
/**
|
|
8821
8875
|
* Возвращает полные данные о регионе пользователей.
|
|
@@ -8825,7 +8879,7 @@ class zi extends Y {
|
|
|
8825
8879
|
* @see /doc/api/internal#/operations/api_internal_user_region_get
|
|
8826
8880
|
*/
|
|
8827
8881
|
getRegion(r) {
|
|
8828
|
-
return this.get(`/internal/users/regions/${r}`, {}, (e) => new
|
|
8882
|
+
return this.get(`/internal/users/regions/${r}`, {}, (e) => new wr(e.data));
|
|
8829
8883
|
}
|
|
8830
8884
|
/**
|
|
8831
8885
|
* Создаёт новый регион пользователей.
|
|
@@ -8838,7 +8892,7 @@ class zi extends Y {
|
|
|
8838
8892
|
* @see /doc/api/internal#/operations/api_internal_user_region_create
|
|
8839
8893
|
*/
|
|
8840
8894
|
createRegion(r, e = {}) {
|
|
8841
|
-
return this.post("/internal/users/regions", r, (t) => new
|
|
8895
|
+
return this.post("/internal/users/regions", r, (t) => new wr(t.data), e);
|
|
8842
8896
|
}
|
|
8843
8897
|
/**
|
|
8844
8898
|
* Изменяет данные о регионе пользователей.
|
|
@@ -8852,7 +8906,7 @@ class zi extends Y {
|
|
|
8852
8906
|
* @see /doc/api/internal#/operations/api_internal_user_region_change
|
|
8853
8907
|
*/
|
|
8854
8908
|
updateRegion(r, e, t = {}) {
|
|
8855
|
-
return this.patch(`/internal/users/regions/${r}`, e, (i) => new
|
|
8909
|
+
return this.patch(`/internal/users/regions/${r}`, e, (i) => new wr(i.data), t);
|
|
8856
8910
|
}
|
|
8857
8911
|
/**
|
|
8858
8912
|
* Удаляет регион пользователей.
|
|
@@ -8872,7 +8926,7 @@ class zi extends Y {
|
|
|
8872
8926
|
* @see /doc/api/internal#/operations/api_internal_user_region_user_get_list
|
|
8873
8927
|
*/
|
|
8874
8928
|
getRegionEmployees(r) {
|
|
8875
|
-
return this.getTypedList(
|
|
8929
|
+
return this.getTypedList(Sr, `/internal/users/regions/${r}/users`);
|
|
8876
8930
|
}
|
|
8877
8931
|
/**
|
|
8878
8932
|
* Закрепляет сотрудника за регионом по указанному направлению продаж.
|
|
@@ -8884,7 +8938,7 @@ class zi extends Y {
|
|
|
8884
8938
|
* @see /doc/api/internal#/operations/api_internal_user_region_user_add
|
|
8885
8939
|
*/
|
|
8886
8940
|
attachRegionEmployee(r, e, t) {
|
|
8887
|
-
return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new
|
|
8941
|
+
return this.post(`/internal/users/regions/${r}/users/${e}`, { salesDirectionId: t }, (i) => new Sr(i.data));
|
|
8888
8942
|
}
|
|
8889
8943
|
/**
|
|
8890
8944
|
* Открепляет сотрудника от региона по указанному направлению продаж.
|
|
@@ -8903,223 +8957,202 @@ class zi extends Y {
|
|
|
8903
8957
|
});
|
|
8904
8958
|
}
|
|
8905
8959
|
}
|
|
8906
|
-
class Wi {
|
|
8907
|
-
/**
|
|
8908
|
-
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
8909
|
-
*
|
|
8910
|
-
* @param feedback Сообщение об ошибке валидации.
|
|
8911
|
-
* @param validationStatus Статус валидации.
|
|
8912
|
-
*/
|
|
8913
|
-
constructor(r, e) {
|
|
8914
|
-
/**
|
|
8915
|
-
* Признак необходимости отображать сообщение об ошибке валидации.
|
|
8916
|
-
*/
|
|
8917
|
-
s(this, "showFeedback", !1);
|
|
8918
|
-
/**
|
|
8919
|
-
* Сообщение об ошибке валидации.
|
|
8920
|
-
*/
|
|
8921
|
-
s(this, "feedback", "");
|
|
8922
|
-
/**
|
|
8923
|
-
* Статус валидации.
|
|
8924
|
-
*/
|
|
8925
|
-
s(this, "validationStatus");
|
|
8926
|
-
this.showFeedback = !!r, this.feedback = r, this.validationStatus = e;
|
|
8927
|
-
}
|
|
8928
|
-
}
|
|
8929
8960
|
export {
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8961
|
+
Qe as AddressQualityEnum,
|
|
8962
|
+
Hi as AddressQualityHelper,
|
|
8963
|
+
Us as AnyReference,
|
|
8964
|
+
us as AppBaseConfig,
|
|
8965
|
+
Tr as BankAccount,
|
|
8933
8966
|
Y as BasePaginationProvider,
|
|
8934
|
-
|
|
8935
|
-
|
|
8967
|
+
pr as BlogPost,
|
|
8968
|
+
Rr as BlogPostMediaFile,
|
|
8936
8969
|
Ye as BlogPostMediaTypeEnum,
|
|
8937
|
-
|
|
8970
|
+
Ve as BlogPostPublicationStatusEnum,
|
|
8938
8971
|
ae as BlogPostShortInfo,
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8972
|
+
ei as BlogPostsListFilters,
|
|
8973
|
+
Cr as BlogProvider,
|
|
8974
|
+
ms as CalculationTypeEnum,
|
|
8942
8975
|
y as CalendarHelper,
|
|
8943
8976
|
Oe as Cart,
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8977
|
+
ti as CartProvider,
|
|
8978
|
+
ii as CatalogProvider,
|
|
8979
|
+
lt as CatalogableItem,
|
|
8980
|
+
V as Category,
|
|
8981
|
+
Rs as CategoryFilter,
|
|
8982
|
+
jr as CategoryFilterSetting,
|
|
8983
|
+
vs as CategoryFilterValue,
|
|
8984
|
+
Wr as CategoryPricingRule,
|
|
8985
|
+
Ct as ChannelPrimaryInterest,
|
|
8986
|
+
Es as City,
|
|
8954
8987
|
Re as CityWithRegionAndCountry,
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8988
|
+
Kr as CityWithUserRegion,
|
|
8989
|
+
Vr as Client,
|
|
8990
|
+
Ps as ClientAdditionalData,
|
|
8991
|
+
Xe as ClientCategory,
|
|
8959
8992
|
H as ClientDataProvider,
|
|
8960
|
-
|
|
8961
|
-
|
|
8993
|
+
ni as ClientPriceProvider,
|
|
8994
|
+
oi as ClientPriceTemplateProvider,
|
|
8962
8995
|
X as ClientProduct,
|
|
8963
|
-
|
|
8964
|
-
|
|
8996
|
+
ui as ClientProductCategoryDataProvider,
|
|
8997
|
+
pi as ClientProductDataProvider,
|
|
8965
8998
|
oe as ClientShortInfo,
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8999
|
+
Cs as ClientsAdditionalDataRequestTypeEnum,
|
|
9000
|
+
yi as ClientsListFilters,
|
|
9001
|
+
Ue as CodedIdentity,
|
|
9002
|
+
vi as ConfiguratorProvider,
|
|
9003
|
+
As as ConfiguratorsEnum,
|
|
9004
|
+
Pr as Contact,
|
|
9005
|
+
ht as ContactLinks,
|
|
8973
9006
|
se as ContactPerson,
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
9007
|
+
bs as ContactPersonRelated,
|
|
9008
|
+
Fs as ContactPosition,
|
|
9009
|
+
fr as ContactRelation,
|
|
9010
|
+
wt as ContragentBase,
|
|
9011
|
+
Ze as ContragentFactory,
|
|
9012
|
+
vt as ContragentIc,
|
|
9013
|
+
Ds as ContragentPerson,
|
|
9014
|
+
Ts as ContragentUlNr,
|
|
9015
|
+
Rt as ContragentUlR,
|
|
9016
|
+
Lr as CostSourceEnum,
|
|
8984
9017
|
we as Country,
|
|
8985
|
-
|
|
8986
|
-
|
|
9018
|
+
_r as CuratedDirection,
|
|
9019
|
+
Nr as Curator,
|
|
8987
9020
|
j as Currency,
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
9021
|
+
Bi as DataSuggestionProvider,
|
|
9022
|
+
br as DateHelper,
|
|
9023
|
+
Pi as DateTimeProvider,
|
|
9024
|
+
at as DeletableNamedIdentity,
|
|
8992
9025
|
_e as DeliveryAddress,
|
|
8993
9026
|
K as DeliveryType,
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
9027
|
+
it as DetailedJwtPayload,
|
|
9028
|
+
ns as DeviceTypeResolutionConfig,
|
|
9029
|
+
ps as DiscountShortInfo,
|
|
9030
|
+
ar as FieldValidationResultData,
|
|
8998
9031
|
te as FilterGroup,
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9032
|
+
Br as FilterItem,
|
|
9033
|
+
kr as FilterOpEnum,
|
|
9034
|
+
ws as FilterSettings,
|
|
9035
|
+
ct as GeoCoordinates,
|
|
9036
|
+
gs as HiddenCatalogableItem,
|
|
9037
|
+
Ee as HttpCachedRequester,
|
|
9038
|
+
os as HttpParamsConfig,
|
|
9006
9039
|
h as HttpRequester,
|
|
9007
9040
|
G as Identity,
|
|
9008
|
-
|
|
9041
|
+
fs as Image,
|
|
9009
9042
|
M as InterceptorsEnum,
|
|
9010
9043
|
Te as JwtPayload,
|
|
9011
9044
|
Z as Manager,
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9045
|
+
xr as ManagerCommon,
|
|
9046
|
+
di as ManagerDataFactory,
|
|
9047
|
+
bt as ManagerDataProvider,
|
|
9048
|
+
zs as MetaTagItem,
|
|
9016
9049
|
L as NamedIdentity,
|
|
9017
9050
|
F as Offer,
|
|
9018
|
-
|
|
9051
|
+
$s as OfferActualization,
|
|
9019
9052
|
xe as OfferActualizationStatus,
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9053
|
+
Oi as OfferHelper,
|
|
9054
|
+
At as OfferShortInfo,
|
|
9055
|
+
ki as OffersDataProvider,
|
|
9056
|
+
$i as OffersListFilters,
|
|
9057
|
+
dt as Operator,
|
|
9025
9058
|
ie as Opf,
|
|
9026
|
-
|
|
9059
|
+
Q as OpfEnum,
|
|
9027
9060
|
I as Order,
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9061
|
+
Ls as OrderAction,
|
|
9062
|
+
Li as OrderEditorData,
|
|
9063
|
+
St as OrderInfo,
|
|
9064
|
+
Os as OrderItem,
|
|
9065
|
+
ut as OrderItemBase,
|
|
9066
|
+
Ms as OrderPaymentStatus,
|
|
9067
|
+
Tt as OrderShortInfo,
|
|
9068
|
+
rr as OrderStatus,
|
|
9069
|
+
Hs as OrderStatusDetail,
|
|
9070
|
+
qs as OrderStatusDetailEnum,
|
|
9071
|
+
Ns as OrderStatusEnum,
|
|
9072
|
+
Is as OrderStatusHistoryInfo,
|
|
9073
|
+
xi as OrdersDataProvider,
|
|
9074
|
+
Ii as OrdersListFilters,
|
|
9042
9075
|
Fe as PaginationFiltersBase,
|
|
9043
9076
|
Ce as PartnerGroup,
|
|
9044
|
-
|
|
9077
|
+
$t as PaymentType,
|
|
9045
9078
|
Ge as PreferencesStorageProvider,
|
|
9046
|
-
|
|
9047
|
-
|
|
9079
|
+
mr as PriceAnalyze,
|
|
9080
|
+
Ni as PriceAnalyzeProvider,
|
|
9048
9081
|
Pe as PriceCoefficient,
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9082
|
+
ot as PriceCoefficientEnum,
|
|
9083
|
+
qi as PriceHistoryDataProvider,
|
|
9084
|
+
xs as PriceHistoryItem,
|
|
9052
9085
|
fe as PriceTemplate,
|
|
9053
|
-
|
|
9086
|
+
hr as PriceTemplateCategory,
|
|
9054
9087
|
Le as PriceTemplateClient,
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9088
|
+
ft as PriceTemplateICatalogableItem,
|
|
9089
|
+
gr as PriceTemplateProduct,
|
|
9090
|
+
hi as PriceTemplateProvider,
|
|
9058
9091
|
Ie as PricingRole,
|
|
9059
|
-
|
|
9060
|
-
|
|
9092
|
+
gi as PricingRoleProvider,
|
|
9093
|
+
Dr as PrimaryCatalogableItem,
|
|
9061
9094
|
q as Product,
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9095
|
+
ci as ProductCategoryDataProvider,
|
|
9096
|
+
li as ProductDataProvider,
|
|
9097
|
+
Bs as ProductFileType,
|
|
9098
|
+
pt as ProductFilterTypeEnum,
|
|
9099
|
+
Or as ProductPriceCoefficient,
|
|
9100
|
+
_s as ProductPriceHistory,
|
|
9101
|
+
zr as ProductUnit,
|
|
9102
|
+
ks as ProfstroyOfferItem,
|
|
9103
|
+
fi as PropertiesProvider,
|
|
9071
9104
|
me as Property,
|
|
9072
|
-
|
|
9073
|
-
|
|
9105
|
+
yt as PropertyType,
|
|
9106
|
+
ys as PropertyTypeEnum,
|
|
9074
9107
|
he as PropertyValue,
|
|
9075
|
-
|
|
9076
|
-
|
|
9108
|
+
Ui as RecommendationsDataProvider,
|
|
9109
|
+
Jr as RecommendationsList,
|
|
9077
9110
|
D as Reference,
|
|
9078
|
-
|
|
9111
|
+
Ei as ReferenceDataFactory,
|
|
9079
9112
|
S as ReferenceDataProvider,
|
|
9080
9113
|
ve as Region,
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9114
|
+
kt as ResourceType,
|
|
9115
|
+
bi as STANDARD_PERIOD_GROUPS,
|
|
9116
|
+
Ai as STANDARD_PERIOD_SECTIONS,
|
|
9117
|
+
E as SalesDirection,
|
|
9118
|
+
cs as SentryConfig,
|
|
9119
|
+
Xr as Seo,
|
|
9120
|
+
Mi as SeoDataProvider,
|
|
9121
|
+
Dt as SourcePrimaryInterest,
|
|
9122
|
+
hs as StockCount,
|
|
9123
|
+
Ri as TableDataPagination,
|
|
9124
|
+
Ss as TableDataPaginationRequestParams,
|
|
9125
|
+
Ci as TableDataSortRequestParams,
|
|
9126
|
+
mi as TemplateProductCategoryDataProvider,
|
|
9127
|
+
si as TemplatesListFilters,
|
|
9095
9128
|
_ as TypedInstanceFactory,
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9129
|
+
Pt as UnitsHelper,
|
|
9130
|
+
ai as UnknownClientDataProvider,
|
|
9131
|
+
nt as UpdatableNamedIdentity,
|
|
9132
|
+
Ws as User,
|
|
9133
|
+
zi as UserAuthDataProvider,
|
|
9134
|
+
mt as UserCommonInfo,
|
|
9135
|
+
js as UserDataProvider,
|
|
9136
|
+
gt as UserPricingRole,
|
|
9137
|
+
wr as UserRegion,
|
|
9138
|
+
Sr as UserRegionEmployee,
|
|
9139
|
+
Gi as UserRegionProvider,
|
|
9140
|
+
er as UserRegionShortInfo,
|
|
9141
|
+
ji as UserRegionsListFilters,
|
|
9109
9142
|
N as UserShortInfo,
|
|
9110
|
-
|
|
9111
|
-
|
|
9143
|
+
Ot as UserTypeEnum,
|
|
9144
|
+
wi as VersionConfig,
|
|
9112
9145
|
Me as Warehouse,
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9146
|
+
ls as WebSocketConfig,
|
|
9147
|
+
_i as currentOrderInjectionKey,
|
|
9148
|
+
Di as daysAgoIso,
|
|
9149
|
+
Gr as findCatalogItemByIdRecursive,
|
|
9150
|
+
Yr as flattenCatalogItems,
|
|
9151
|
+
Si as formatPercentChange,
|
|
9152
|
+
Ti as formatRelativeDate,
|
|
9153
|
+
ds as pluralize,
|
|
9121
9154
|
ze as useAuthStateStore,
|
|
9122
9155
|
O as useBaseConfigStateStore,
|
|
9123
|
-
|
|
9124
|
-
|
|
9156
|
+
Fi as useReferencesStore,
|
|
9157
|
+
Wi as useUserStateStore
|
|
9125
9158
|
};
|