@snabcentr/common-lib 2.25.2 → 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 -2
- package/dist/sc-common-lib.js +692 -654
- 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/http/classes/http-requester.d.ts.map +1 -1
- package/dist/src/http/interfaces/i-http-response-error.d.ts +1 -1
- package/dist/src/http/interfaces/i-http-response-error.d.ts.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
|
|
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 rt 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 ts {
|
|
|
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 ss {
|
|
|
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 is {
|
|
|
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 ns {
|
|
|
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 os {
|
|
|
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 os {
|
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
const O = ne("common.config", () => {
|
|
341
|
-
const n =
|
|
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);
|
|
@@ -479,7 +479,7 @@ function Ur(n) {
|
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
const pe = ne("common.auth_state_private", () => {
|
|
482
|
-
const n =
|
|
482
|
+
const n = v(
|
|
483
483
|
(() => {
|
|
484
484
|
var u;
|
|
485
485
|
const o = Ge.getActualDataFromStorage(
|
|
@@ -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 =
|
|
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 vr 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 Ks 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
|
* Выполняет сброс указанного фильтра в значение по умолчанию.
|
|
@@ -911,7 +911,7 @@ class _ {
|
|
|
911
911
|
return De(e, (t) => _.instanceInitializer(r, t));
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
const
|
|
914
|
+
const w = class w {
|
|
915
915
|
/**
|
|
916
916
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
917
917
|
*/
|
|
@@ -950,7 +950,7 @@ const v = class v {
|
|
|
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 =
|
|
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
|
*
|
|
@@ -964,7 +964,7 @@ const v = class v {
|
|
|
964
964
|
return Promise.reject(r);
|
|
965
965
|
e.__isRetryRequest = !0;
|
|
966
966
|
try {
|
|
967
|
-
await
|
|
967
|
+
await w.isStaleUnauthorizedRequest(e) || await w.refreshAccessToken();
|
|
968
968
|
} catch {
|
|
969
969
|
return Promise.reject(r);
|
|
970
970
|
}
|
|
@@ -981,7 +981,7 @@ const v = class v {
|
|
|
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
|
/**
|
|
@@ -990,8 +990,8 @@ const v = class v {
|
|
|
990
990
|
* @param response Данные ответа на запрос.
|
|
991
991
|
*/
|
|
992
992
|
// eslint-disable-next-line class-methods-use-this
|
|
993
|
-
s(this, "dataConverterResponseInterceptor", (r) => (r.data =
|
|
994
|
-
this.httpClient =
|
|
993
|
+
s(this, "dataConverterResponseInterceptor", (r) => (r.data = w.toCamelCaseData(r.data), r));
|
|
994
|
+
this.httpClient = ss.create({
|
|
995
995
|
headers: {
|
|
996
996
|
Accept: "application/json",
|
|
997
997
|
"Content-Type": "application/json"
|
|
@@ -1003,14 +1003,14 @@ const v = class v {
|
|
|
1003
1003
|
this.authRequestInterceptor,
|
|
1004
1004
|
(r) => Promise.reject(r)
|
|
1005
1005
|
), this.interceptorIds.request[M.DEFAULT_REQUEST_INTERCEPTOR] = this.httpClient.interceptors.request.use(
|
|
1006
|
-
(r) =>
|
|
1006
|
+
(r) => w.applyDefaultRequestHook(r),
|
|
1007
1007
|
(r) => Promise.reject(r)
|
|
1008
1008
|
), this.interceptorIds.request[M.BASE_URL_REQUEST_INTERCEPTOR] = this.httpClient.interceptors.request.use(
|
|
1009
1009
|
this.setBaseUrlRequestInterceptor,
|
|
1010
1010
|
(r) => Promise.reject(r)
|
|
1011
1011
|
), this.interceptorIds.response[M.CONVERT_HTTP_ERROR_RESPONSE_INTERCEPTOR] = this.httpClient.interceptors.response.use(
|
|
1012
1012
|
(r) => r,
|
|
1013
|
-
(r) =>
|
|
1013
|
+
(r) => w.convertHttpErrorResponse(r)
|
|
1014
1014
|
), this.interceptorIds.response[M.CANCELED_RESPONSE_INTERCEPTOR] = this.httpClient.interceptors.response.use(
|
|
1015
1015
|
(r) => r,
|
|
1016
1016
|
this.canceledResponseInterceptor
|
|
@@ -1028,7 +1028,7 @@ const v = class v {
|
|
|
1028
1028
|
* @param handler Ссылка на функцию-обработчик ошибок.
|
|
1029
1029
|
*/
|
|
1030
1030
|
static setDefaultErrorsResponseHandler(r) {
|
|
1031
|
-
|
|
1031
|
+
w.defaultErrorsResponseHandler = r;
|
|
1032
1032
|
}
|
|
1033
1033
|
/**
|
|
1034
1034
|
* Устанавливает базовый хук для запросов.
|
|
@@ -1036,7 +1036,7 @@ const v = class v {
|
|
|
1036
1036
|
* @param hook Ссылка на функцию-хук.
|
|
1037
1037
|
*/
|
|
1038
1038
|
static setDefaultRequestHook(r) {
|
|
1039
|
-
|
|
1039
|
+
w.defaultRequestHook = r;
|
|
1040
1040
|
}
|
|
1041
1041
|
/**
|
|
1042
1042
|
* Проверяет, что значение можно безопасно пропустить через конвертер ключей.
|
|
@@ -1046,7 +1046,7 @@ const v = class v {
|
|
|
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 v = class v {
|
|
|
1054
1054
|
* @param data Исходные данные.
|
|
1055
1055
|
*/
|
|
1056
1056
|
static toCamelCaseData(r) {
|
|
1057
|
-
return
|
|
1057
|
+
return w.canConvertCaseKeys(r) ? $r(r) : r;
|
|
1058
1058
|
}
|
|
1059
1059
|
/**
|
|
1060
1060
|
* Приводит ключи данных к snake_case, если значение является обычным объектом или массивом.
|
|
@@ -1062,7 +1062,7 @@ const v = class v {
|
|
|
1062
1062
|
* @param data Исходные данные.
|
|
1063
1063
|
*/
|
|
1064
1064
|
static toSnakeCaseData(r) {
|
|
1065
|
-
return
|
|
1065
|
+
return w.canConvertCaseKeys(r) ? Wt(r) : r;
|
|
1066
1066
|
}
|
|
1067
1067
|
/**
|
|
1068
1068
|
* Возвращает токен доступа из заголовка Authorization исходного запроса.
|
|
@@ -1071,7 +1071,7 @@ const v = class v {
|
|
|
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;
|
|
@@ -1084,7 +1084,7 @@ const v = class v {
|
|
|
1084
1084
|
* @param request Данные запроса.
|
|
1085
1085
|
*/
|
|
1086
1086
|
static async isStaleUnauthorizedRequest(r) {
|
|
1087
|
-
const e =
|
|
1087
|
+
const e = w.getRequestAccessToken(r);
|
|
1088
1088
|
if (m(e))
|
|
1089
1089
|
return !1;
|
|
1090
1090
|
const t = ze().jwtToken;
|
|
@@ -1100,13 +1100,13 @@ const v = class v {
|
|
|
1100
1100
|
* Сбрасывает токен и запускает одно обновление на все параллельные ответы 401.
|
|
1101
1101
|
*/
|
|
1102
1102
|
static refreshAccessToken() {
|
|
1103
|
-
if (!m(
|
|
1104
|
-
return
|
|
1103
|
+
if (!m(w.tokenRefreshPromise))
|
|
1104
|
+
return w.tokenRefreshPromise;
|
|
1105
1105
|
ze().invalidateJwtToken();
|
|
1106
1106
|
const e = ze().jwtToken ?? Promise.resolve();
|
|
1107
|
-
return
|
|
1108
|
-
|
|
1109
|
-
}),
|
|
1107
|
+
return w.tokenRefreshPromise = e.finally(() => {
|
|
1108
|
+
w.tokenRefreshPromise = void 0;
|
|
1109
|
+
}), w.tokenRefreshPromise;
|
|
1110
1110
|
}
|
|
1111
1111
|
/**
|
|
1112
1112
|
* Вызывает базовый хук запроса.
|
|
@@ -1116,7 +1116,7 @@ const v = class v {
|
|
|
1116
1116
|
* @param request Данные запроса.
|
|
1117
1117
|
*/
|
|
1118
1118
|
static applyDefaultRequestHook(r) {
|
|
1119
|
-
return m(
|
|
1119
|
+
return m(w.defaultRequestHook) ? r : w.defaultRequestHook(r);
|
|
1120
1120
|
}
|
|
1121
1121
|
/**
|
|
1122
1122
|
* Возвращает экземпляр объекта текущего класса.
|
|
@@ -1124,7 +1124,7 @@ const v = class v {
|
|
|
1124
1124
|
* @param type Тип данных, которыми оперирует метод.
|
|
1125
1125
|
*/
|
|
1126
1126
|
static getInstance(r) {
|
|
1127
|
-
return Object.prototype.hasOwnProperty.call(
|
|
1127
|
+
return Object.prototype.hasOwnProperty.call(w.instances, r.name) || (w.instances[r.name] = _.simpleInstanceInitializer(r)), w.instances[r.name];
|
|
1128
1128
|
}
|
|
1129
1129
|
/**
|
|
1130
1130
|
* Приводит данные об ошибке к форме ошибки HTTP запроса.
|
|
@@ -1135,13 +1135,16 @@ const v = class v {
|
|
|
1135
1135
|
* @param error Данные об ошибке.
|
|
1136
1136
|
*/
|
|
1137
1137
|
static toHttpResponseError(r) {
|
|
1138
|
-
|
|
1138
|
+
if (Je(r) && "status" in r)
|
|
1139
|
+
return r;
|
|
1140
|
+
const e = qr(r) ? r.message : "Не удалось обработать данные ответа сервера.";
|
|
1141
|
+
return Ur(new Error(e), {
|
|
1142
|
+
name: "HttpResponseError",
|
|
1139
1143
|
status: 0,
|
|
1140
1144
|
statusText: "Invalid response data",
|
|
1141
|
-
message: _r(r) ? r.message : "Не удалось обработать данные ответа сервера.",
|
|
1142
1145
|
headers: {},
|
|
1143
|
-
rawError:
|
|
1144
|
-
};
|
|
1146
|
+
rawError: qr(r) ? r : new Error(String(r))
|
|
1147
|
+
});
|
|
1145
1148
|
}
|
|
1146
1149
|
/**
|
|
1147
1150
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -1152,15 +1155,17 @@ const v = class v {
|
|
|
1152
1155
|
var e, t;
|
|
1153
1156
|
if (m(r) || !m(r.request) || !m(r.response)) {
|
|
1154
1157
|
const i = m(r) ? {} : r == null ? void 0 : r.response;
|
|
1155
|
-
return Promise.reject(
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1158
|
+
return Promise.reject(
|
|
1159
|
+
Ur(new Error(((e = i == null ? void 0 : i.data) == null ? void 0 : e.message) ?? "Unknown Error. Probably network error."), {
|
|
1160
|
+
name: "HttpResponseError",
|
|
1161
|
+
status: (i == null ? void 0 : i.status) ?? 0,
|
|
1162
|
+
statusText: (i == null ? void 0 : i.statusText) ?? "Unknown",
|
|
1163
|
+
errors: (t = i == null ? void 0 : i.data) == null ? void 0 : t.errors,
|
|
1164
|
+
headers: (i == null ? void 0 : i.headers) ?? {},
|
|
1165
|
+
data: i == null ? void 0 : i.data,
|
|
1166
|
+
rawError: r
|
|
1167
|
+
})
|
|
1168
|
+
);
|
|
1164
1169
|
}
|
|
1165
1170
|
return Promise.reject(r);
|
|
1166
1171
|
}
|
|
@@ -1175,7 +1180,7 @@ const v = class v {
|
|
|
1175
1180
|
request(r, e = void 0, t = {}, i = !1) {
|
|
1176
1181
|
const o = this.httpClient.request(r).then((c) => e ? e(c) : c.data);
|
|
1177
1182
|
return o.catch((c) => {
|
|
1178
|
-
(c == null ? void 0 : c.name) !== "CanceledError" &&
|
|
1183
|
+
(c == null ? void 0 : c.name) !== "CanceledError" && w.defaultErrorsResponseHandler(w.toHttpResponseError(c), t, i);
|
|
1179
1184
|
}), o;
|
|
1180
1185
|
}
|
|
1181
1186
|
/**
|
|
@@ -1263,23 +1268,23 @@ const v = class v {
|
|
|
1263
1268
|
* Экземпляр объекта текущего класса.
|
|
1264
1269
|
*/
|
|
1265
1270
|
// eslint-disable-next-line no-use-before-define
|
|
1266
|
-
s(
|
|
1271
|
+
s(w, "instances", {}), /**
|
|
1267
1272
|
* Базовый обработчик ошибок выполнения запросов.
|
|
1268
1273
|
*
|
|
1269
1274
|
* @param error Данные об ошибке.
|
|
1270
1275
|
* @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
1271
1276
|
* @param disableNotifications Признак необходимости отключить уведомления об ошибках.
|
|
1272
1277
|
*/
|
|
1273
|
-
s(
|
|
1278
|
+
s(w, "defaultErrorsResponseHandler", T), /**
|
|
1274
1279
|
* Базовый хук для запросов.
|
|
1275
1280
|
*/
|
|
1276
|
-
s(
|
|
1281
|
+
s(w, "defaultRequestHook"), /**
|
|
1277
1282
|
* Общий Promise обновления токена для параллельных ответов 401.
|
|
1278
1283
|
*/
|
|
1279
|
-
s(
|
|
1280
|
-
let h =
|
|
1281
|
-
var
|
|
1282
|
-
class
|
|
1284
|
+
s(w, "tokenRefreshPromise");
|
|
1285
|
+
let h = w;
|
|
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 {
|
|
1283
1288
|
/**
|
|
1284
1289
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
1285
1290
|
*
|
|
@@ -1298,7 +1303,7 @@ class Fr {
|
|
|
1298
1303
|
* Значение с которым сравнивается поле.
|
|
1299
1304
|
*/
|
|
1300
1305
|
s(this, "value");
|
|
1301
|
-
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) ?? "";
|
|
1302
1307
|
}
|
|
1303
1308
|
/**
|
|
1304
1309
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -1310,9 +1315,9 @@ class Fr {
|
|
|
1310
1315
|
field: this.field,
|
|
1311
1316
|
op: this.op
|
|
1312
1317
|
};
|
|
1313
|
-
if (
|
|
1318
|
+
if (Ke(this.value))
|
|
1314
1319
|
e.value = k(this.value, r);
|
|
1315
|
-
else if (
|
|
1320
|
+
else if (Et(this.value)) {
|
|
1316
1321
|
const t = this.value;
|
|
1317
1322
|
e.value = {
|
|
1318
1323
|
from: t.from ? k(t.from, r) : null,
|
|
@@ -1343,7 +1348,7 @@ class te {
|
|
|
1343
1348
|
*/
|
|
1344
1349
|
s(this, "groups");
|
|
1345
1350
|
var e, t;
|
|
1346
|
-
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))) ?? [];
|
|
1347
1352
|
}
|
|
1348
1353
|
/**
|
|
1349
1354
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -1353,7 +1358,7 @@ class te {
|
|
|
1353
1358
|
toPrimitive() {
|
|
1354
1359
|
return {
|
|
1355
1360
|
groupOp: this.groupOp,
|
|
1356
|
-
filters: this.filters.map((r) => r instanceof
|
|
1361
|
+
filters: this.filters.map((r) => r instanceof Br && dr(r.toPrimitive) ? r.toPrimitive() : r),
|
|
1357
1362
|
groups: this.groups.map((r) => r instanceof te ? r.toPrimitive() : r)
|
|
1358
1363
|
};
|
|
1359
1364
|
}
|
|
@@ -1406,7 +1411,7 @@ class Y extends h {
|
|
|
1406
1411
|
);
|
|
1407
1412
|
}
|
|
1408
1413
|
}
|
|
1409
|
-
class
|
|
1414
|
+
class Cr extends Y {
|
|
1410
1415
|
/**
|
|
1411
1416
|
* Возвращает данные статьи блога, подготовленные для отправки на портал.
|
|
1412
1417
|
*
|
|
@@ -1450,7 +1455,7 @@ class wr extends Y {
|
|
|
1450
1455
|
* @see /doc/api/internal#/operations/api_internal_blog_get
|
|
1451
1456
|
*/
|
|
1452
1457
|
getPost(r) {
|
|
1453
|
-
return this.get(`/internal/blog/${r}`, {}, (e) => new
|
|
1458
|
+
return this.get(`/internal/blog/${r}`, {}, (e) => new pr(e.data));
|
|
1454
1459
|
}
|
|
1455
1460
|
/**
|
|
1456
1461
|
* Создаёт новую статью блога.
|
|
@@ -1463,7 +1468,7 @@ class wr extends Y {
|
|
|
1463
1468
|
* @see /doc/api/internal#/operations/api_internal_blog_create
|
|
1464
1469
|
*/
|
|
1465
1470
|
createPost(r, e = {}) {
|
|
1466
|
-
return this.post("/internal/blog",
|
|
1471
|
+
return this.post("/internal/blog", Cr.preparePostSaveData(r), (t) => new pr(t.data), e);
|
|
1467
1472
|
}
|
|
1468
1473
|
/**
|
|
1469
1474
|
* Изменяет данные о статье блога.
|
|
@@ -1477,7 +1482,7 @@ class wr extends Y {
|
|
|
1477
1482
|
* @see /doc/api/internal#/operations/api_internal_blog_update
|
|
1478
1483
|
*/
|
|
1479
1484
|
updatePost(r, e, t = {}) {
|
|
1480
|
-
return this.patch(`/internal/blog/${r}`,
|
|
1485
|
+
return this.patch(`/internal/blog/${r}`, Cr.preparePostSaveData(e), (i) => new pr(i.data), t);
|
|
1481
1486
|
}
|
|
1482
1487
|
/**
|
|
1483
1488
|
* Удаляет статью блога.
|
|
@@ -1512,7 +1517,7 @@ class wr extends Y {
|
|
|
1512
1517
|
i && i(c.total ? Math.round(c.loaded / c.total * 100) : 0);
|
|
1513
1518
|
}
|
|
1514
1519
|
},
|
|
1515
|
-
(c) => new
|
|
1520
|
+
(c) => new Rr(c.data),
|
|
1516
1521
|
o
|
|
1517
1522
|
);
|
|
1518
1523
|
}
|
|
@@ -1532,7 +1537,7 @@ class wr extends Y {
|
|
|
1532
1537
|
return this.patch(
|
|
1533
1538
|
`/internal/blog/${r}/media/${e}`,
|
|
1534
1539
|
{ isCover: t },
|
|
1535
|
-
(o) => new
|
|
1540
|
+
(o) => new Rr(o.data),
|
|
1536
1541
|
i
|
|
1537
1542
|
);
|
|
1538
1543
|
}
|
|
@@ -1590,7 +1595,7 @@ class N extends L {
|
|
|
1590
1595
|
this.type = e == null ? void 0 : e.type, this.isActive = (e == null ? void 0 : e.isActive) ?? !0;
|
|
1591
1596
|
}
|
|
1592
1597
|
}
|
|
1593
|
-
class
|
|
1598
|
+
class ps extends L {
|
|
1594
1599
|
/**
|
|
1595
1600
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1596
1601
|
*
|
|
@@ -1629,7 +1634,7 @@ class cs extends L {
|
|
|
1629
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;
|
|
1630
1635
|
}
|
|
1631
1636
|
}
|
|
1632
|
-
class
|
|
1637
|
+
class nt extends L {
|
|
1633
1638
|
/**
|
|
1634
1639
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1635
1640
|
*
|
|
@@ -1644,7 +1649,7 @@ class tt extends L {
|
|
|
1644
1649
|
this.updatedAt = R(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1645
1650
|
}
|
|
1646
1651
|
}
|
|
1647
|
-
class fe extends
|
|
1652
|
+
class fe extends nt {
|
|
1648
1653
|
/**
|
|
1649
1654
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1650
1655
|
*
|
|
@@ -1667,7 +1672,7 @@ class fe extends tt {
|
|
|
1667
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;
|
|
1668
1673
|
}
|
|
1669
1674
|
}
|
|
1670
|
-
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 || {});
|
|
1671
1676
|
class D extends L {
|
|
1672
1677
|
/**
|
|
1673
1678
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
@@ -1694,14 +1699,14 @@ class Pe extends D {
|
|
|
1694
1699
|
static getRetailPriceCoefficient() {
|
|
1695
1700
|
const r = new Pe({
|
|
1696
1701
|
id: -2,
|
|
1697
|
-
slug:
|
|
1702
|
+
slug: ot.Retail,
|
|
1698
1703
|
name: "Розн. цена",
|
|
1699
1704
|
guid: ""
|
|
1700
1705
|
});
|
|
1701
|
-
return r.isNewRec =
|
|
1706
|
+
return r.isNewRec = Ft(!0), r;
|
|
1702
1707
|
}
|
|
1703
1708
|
}
|
|
1704
|
-
class
|
|
1709
|
+
class Or {
|
|
1705
1710
|
/**
|
|
1706
1711
|
* Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
|
|
1707
1712
|
*
|
|
@@ -1731,7 +1736,7 @@ class $r {
|
|
|
1731
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;
|
|
1732
1737
|
}
|
|
1733
1738
|
}
|
|
1734
|
-
class
|
|
1739
|
+
class ct {
|
|
1735
1740
|
/**
|
|
1736
1741
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
1737
1742
|
*
|
|
@@ -1780,10 +1785,10 @@ class Me extends D {
|
|
|
1780
1785
|
* Координаты склада.
|
|
1781
1786
|
*/
|
|
1782
1787
|
s(this, "coordinates");
|
|
1783
|
-
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);
|
|
1784
1789
|
}
|
|
1785
1790
|
}
|
|
1786
|
-
class
|
|
1791
|
+
class hs {
|
|
1787
1792
|
/**
|
|
1788
1793
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
1789
1794
|
*
|
|
@@ -1828,7 +1833,7 @@ class j extends L {
|
|
|
1828
1833
|
e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
|
|
1829
1834
|
}
|
|
1830
1835
|
}
|
|
1831
|
-
class
|
|
1836
|
+
class zr extends L {
|
|
1832
1837
|
/**
|
|
1833
1838
|
* Инициализирует экземпляр класса {@link ProductUnit}.
|
|
1834
1839
|
*
|
|
@@ -1855,7 +1860,7 @@ class Mr extends L {
|
|
|
1855
1860
|
e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
|
|
1856
1861
|
}
|
|
1857
1862
|
}
|
|
1858
|
-
class
|
|
1863
|
+
class Ue extends L {
|
|
1859
1864
|
/**
|
|
1860
1865
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
1861
1866
|
*
|
|
@@ -1870,7 +1875,7 @@ class Ee extends L {
|
|
|
1870
1875
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
1871
1876
|
}
|
|
1872
1877
|
}
|
|
1873
|
-
class
|
|
1878
|
+
class lt extends Ue {
|
|
1874
1879
|
/**
|
|
1875
1880
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
1876
1881
|
*
|
|
@@ -1889,7 +1894,7 @@ class nt extends Ee {
|
|
|
1889
1894
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
1890
1895
|
}
|
|
1891
1896
|
}
|
|
1892
|
-
class
|
|
1897
|
+
class gs extends lt {
|
|
1893
1898
|
/**
|
|
1894
1899
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
1895
1900
|
*
|
|
@@ -1904,7 +1909,7 @@ class us extends nt {
|
|
|
1904
1909
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
1905
1910
|
}
|
|
1906
1911
|
}
|
|
1907
|
-
class
|
|
1912
|
+
class fs {
|
|
1908
1913
|
/**
|
|
1909
1914
|
* Инициализирует экземпляр класса {@link Image}.
|
|
1910
1915
|
*
|
|
@@ -1927,7 +1932,7 @@ class ps {
|
|
|
1927
1932
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
1928
1933
|
}
|
|
1929
1934
|
}
|
|
1930
|
-
class
|
|
1935
|
+
class Dr extends lt {
|
|
1931
1936
|
/**
|
|
1932
1937
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
1933
1938
|
*
|
|
@@ -1942,7 +1947,7 @@ class Rr extends nt {
|
|
|
1942
1947
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
1943
1948
|
}
|
|
1944
1949
|
}
|
|
1945
|
-
class q extends
|
|
1950
|
+
class q extends gs {
|
|
1946
1951
|
/**
|
|
1947
1952
|
* Инициализирует экземпляр класса {@link Product}.
|
|
1948
1953
|
*
|
|
@@ -2019,9 +2024,9 @@ class q extends us {
|
|
|
2019
2024
|
* Список коэффициентов цен на продукт.
|
|
2020
2025
|
*/
|
|
2021
2026
|
s(this, "priceCoefficients");
|
|
2022
|
-
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";
|
|
2023
2028
|
const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
|
|
2024
|
-
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);
|
|
2025
2030
|
}
|
|
2026
2031
|
/**
|
|
2027
2032
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -2042,7 +2047,7 @@ class q extends us {
|
|
|
2042
2047
|
return this.retailCostRub ?? this.costRub;
|
|
2043
2048
|
}
|
|
2044
2049
|
}
|
|
2045
|
-
var
|
|
2050
|
+
var Lr = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Lr || {});
|
|
2046
2051
|
class X extends q {
|
|
2047
2052
|
/**
|
|
2048
2053
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
@@ -2079,10 +2084,10 @@ class X extends q {
|
|
|
2079
2084
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
2080
2085
|
*/
|
|
2081
2086
|
s(this, "isFavorite");
|
|
2082
|
-
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;
|
|
2083
2088
|
}
|
|
2084
2089
|
}
|
|
2085
|
-
class
|
|
2090
|
+
class be extends Dr {
|
|
2086
2091
|
/**
|
|
2087
2092
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
2088
2093
|
*
|
|
@@ -2106,10 +2111,10 @@ class Ae extends Rr {
|
|
|
2106
2111
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
2107
2112
|
*/
|
|
2108
2113
|
s(this, "currencyRates");
|
|
2109
|
-
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;
|
|
2110
2115
|
}
|
|
2111
2116
|
}
|
|
2112
|
-
class
|
|
2117
|
+
class ut extends G {
|
|
2113
2118
|
/**
|
|
2114
2119
|
* Инициализирует экземпляр класса {@link OrderItemBase}.
|
|
2115
2120
|
*
|
|
@@ -2185,10 +2190,10 @@ class ot extends G {
|
|
|
2185
2190
|
* @inheritDoc
|
|
2186
2191
|
*/
|
|
2187
2192
|
s(this, "replacementId");
|
|
2188
|
-
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;
|
|
2189
2194
|
}
|
|
2190
2195
|
}
|
|
2191
|
-
let
|
|
2196
|
+
let Ir = class extends ut {
|
|
2192
2197
|
/**
|
|
2193
2198
|
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
2194
2199
|
*
|
|
@@ -2254,10 +2259,10 @@ class Oe {
|
|
|
2254
2259
|
* @inheritDoc
|
|
2255
2260
|
*/
|
|
2256
2261
|
s(this, "directionsSum");
|
|
2257
|
-
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;
|
|
2258
2263
|
}
|
|
2259
2264
|
}
|
|
2260
|
-
class
|
|
2265
|
+
class ti extends h {
|
|
2261
2266
|
/**
|
|
2262
2267
|
* Возвращает содержимое корзины указанного клиента.
|
|
2263
2268
|
*
|
|
@@ -2371,8 +2376,8 @@ class Zs extends h {
|
|
|
2371
2376
|
return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
|
|
2372
2377
|
}
|
|
2373
2378
|
}
|
|
2374
|
-
var
|
|
2375
|
-
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 {
|
|
2376
2381
|
/**
|
|
2377
2382
|
* Инициализирует экземпляр класса {@link Category}.
|
|
2378
2383
|
*
|
|
@@ -2389,10 +2394,10 @@ class Q extends Ae {
|
|
|
2389
2394
|
* Список продуктов категории.
|
|
2390
2395
|
*/
|
|
2391
2396
|
s(this, "products");
|
|
2392
|
-
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));
|
|
2393
2398
|
}
|
|
2394
2399
|
}
|
|
2395
|
-
class
|
|
2400
|
+
class ht {
|
|
2396
2401
|
/**
|
|
2397
2402
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
2398
2403
|
*
|
|
@@ -2410,9 +2415,9 @@ class lt {
|
|
|
2410
2415
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
2411
2416
|
}
|
|
2412
2417
|
}
|
|
2413
|
-
class
|
|
2418
|
+
class E extends D {
|
|
2414
2419
|
}
|
|
2415
|
-
class
|
|
2420
|
+
class xr extends L {
|
|
2416
2421
|
/**
|
|
2417
2422
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
2418
2423
|
*
|
|
@@ -2440,12 +2445,12 @@ class Lr extends L {
|
|
|
2440
2445
|
* @inheritDoc
|
|
2441
2446
|
*/
|
|
2442
2447
|
s(this, "isRegionalDirector");
|
|
2443
|
-
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;
|
|
2444
2449
|
}
|
|
2445
2450
|
}
|
|
2446
|
-
class
|
|
2451
|
+
class _r extends D {
|
|
2447
2452
|
}
|
|
2448
|
-
class
|
|
2453
|
+
class gt extends L {
|
|
2449
2454
|
/**
|
|
2450
2455
|
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
2451
2456
|
*
|
|
@@ -2468,7 +2473,7 @@ class ut extends L {
|
|
|
2468
2473
|
this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
|
|
2469
2474
|
}
|
|
2470
2475
|
}
|
|
2471
|
-
class
|
|
2476
|
+
class er extends L {
|
|
2472
2477
|
/**
|
|
2473
2478
|
* Инициализирует экземпляр класса {@link UserRegionShortInfo}.
|
|
2474
2479
|
*
|
|
@@ -2483,7 +2488,7 @@ class Ze extends L {
|
|
|
2483
2488
|
this.abbr = (e == null ? void 0 : e.abbr) ?? "";
|
|
2484
2489
|
}
|
|
2485
2490
|
}
|
|
2486
|
-
class Z extends
|
|
2491
|
+
class Z extends xr {
|
|
2487
2492
|
/**
|
|
2488
2493
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
2489
2494
|
*
|
|
@@ -2540,10 +2545,10 @@ class Z extends Lr {
|
|
|
2540
2545
|
* Дата и время последнего входа в систему.
|
|
2541
2546
|
*/
|
|
2542
2547
|
s(this, "lastLoginAt");
|
|
2543
|
-
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;
|
|
2544
2549
|
}
|
|
2545
2550
|
}
|
|
2546
|
-
class
|
|
2551
|
+
class as extends be {
|
|
2547
2552
|
/**
|
|
2548
2553
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
2549
2554
|
*
|
|
@@ -2574,7 +2579,7 @@ class fs extends Ae {
|
|
|
2574
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;
|
|
2575
2580
|
}
|
|
2576
2581
|
}
|
|
2577
|
-
class
|
|
2582
|
+
class Xe extends as {
|
|
2578
2583
|
/**
|
|
2579
2584
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
2580
2585
|
*
|
|
@@ -2591,10 +2596,10 @@ class Ke extends fs {
|
|
|
2591
2596
|
* Список продуктов категории.
|
|
2592
2597
|
*/
|
|
2593
2598
|
s(this, "products");
|
|
2594
|
-
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));
|
|
2595
2600
|
}
|
|
2596
2601
|
}
|
|
2597
|
-
class
|
|
2602
|
+
class ft {
|
|
2598
2603
|
/**
|
|
2599
2604
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
2600
2605
|
*
|
|
@@ -2612,7 +2617,7 @@ class pt {
|
|
|
2612
2617
|
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
2613
2618
|
}
|
|
2614
2619
|
}
|
|
2615
|
-
class
|
|
2620
|
+
class hr extends ft {
|
|
2616
2621
|
/**
|
|
2617
2622
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
2618
2623
|
*
|
|
@@ -2624,10 +2629,10 @@ class pr extends pt {
|
|
|
2624
2629
|
* Базовые данные о продукте.
|
|
2625
2630
|
*/
|
|
2626
2631
|
s(this, "productCategory");
|
|
2627
|
-
this.productCategory = new
|
|
2632
|
+
this.productCategory = new be(e == null ? void 0 : e.productCategory);
|
|
2628
2633
|
}
|
|
2629
2634
|
}
|
|
2630
|
-
class
|
|
2635
|
+
class Nr extends L {
|
|
2631
2636
|
/**
|
|
2632
2637
|
* Инициализирует экземпляр класса {@link Curator}.
|
|
2633
2638
|
*
|
|
@@ -2647,12 +2652,12 @@ class xr extends L {
|
|
|
2647
2652
|
* @inheritDoc
|
|
2648
2653
|
*/
|
|
2649
2654
|
s(this, "curatedDirection");
|
|
2650
|
-
this.photo = e.photo, this.contacts = new
|
|
2655
|
+
this.photo = e.photo, this.contacts = new ht(e.contacts), this.curatedDirection = new _r(e.curatedDirection);
|
|
2651
2656
|
}
|
|
2652
2657
|
}
|
|
2653
|
-
class ve extends D {
|
|
2654
|
-
}
|
|
2655
2658
|
class we extends D {
|
|
2659
|
+
}
|
|
2660
|
+
class ve extends D {
|
|
2656
2661
|
/**
|
|
2657
2662
|
* Инициализирует экземпляр класса {@link Region}.
|
|
2658
2663
|
*
|
|
@@ -2663,8 +2668,8 @@ class we extends D {
|
|
|
2663
2668
|
/**
|
|
2664
2669
|
* Данные о стране, в которой расположен регион.
|
|
2665
2670
|
*/
|
|
2666
|
-
s(this, "country", new
|
|
2667
|
-
e && (this.country = new
|
|
2671
|
+
s(this, "country", new we());
|
|
2672
|
+
e && (this.country = new we(e.country));
|
|
2668
2673
|
}
|
|
2669
2674
|
}
|
|
2670
2675
|
class Re extends D {
|
|
@@ -2678,11 +2683,11 @@ class Re extends D {
|
|
|
2678
2683
|
/**
|
|
2679
2684
|
* Данные о регионе, в котором расположен город.
|
|
2680
2685
|
*/
|
|
2681
|
-
s(this, "region", new
|
|
2682
|
-
e && (this.region = new
|
|
2686
|
+
s(this, "region", new ve());
|
|
2687
|
+
e && (this.region = new ve(e.region));
|
|
2683
2688
|
}
|
|
2684
2689
|
}
|
|
2685
|
-
class
|
|
2690
|
+
class mt extends L {
|
|
2686
2691
|
/**
|
|
2687
2692
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
2688
2693
|
*
|
|
@@ -2718,10 +2723,10 @@ class ht extends L {
|
|
|
2718
2723
|
* Признак активности учетной записи пользователя.
|
|
2719
2724
|
*/
|
|
2720
2725
|
s(this, "isActive");
|
|
2721
|
-
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;
|
|
2722
2727
|
}
|
|
2723
2728
|
}
|
|
2724
|
-
class oe extends
|
|
2729
|
+
class oe extends mt {
|
|
2725
2730
|
/**
|
|
2726
2731
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2727
2732
|
*
|
|
@@ -2767,7 +2772,7 @@ class oe extends ht {
|
|
|
2767
2772
|
* @inheritDoc
|
|
2768
2773
|
*/
|
|
2769
2774
|
s(this, "curators");
|
|
2770
|
-
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;
|
|
2771
2776
|
}
|
|
2772
2777
|
}
|
|
2773
2778
|
class Le extends G {
|
|
@@ -2797,7 +2802,7 @@ class Le extends G {
|
|
|
2797
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);
|
|
2798
2803
|
}
|
|
2799
2804
|
}
|
|
2800
|
-
class
|
|
2805
|
+
class gr extends ft {
|
|
2801
2806
|
/**
|
|
2802
2807
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
2803
2808
|
*
|
|
@@ -2812,7 +2817,7 @@ class hr extends pt {
|
|
|
2812
2817
|
this.product = new q(e == null ? void 0 : e.product);
|
|
2813
2818
|
}
|
|
2814
2819
|
}
|
|
2815
|
-
class
|
|
2820
|
+
class yt extends D {
|
|
2816
2821
|
}
|
|
2817
2822
|
class me extends L {
|
|
2818
2823
|
/**
|
|
@@ -2838,7 +2843,7 @@ class me extends L {
|
|
|
2838
2843
|
* Признак того, что по свойству может производиться фильтрация в каталоге.
|
|
2839
2844
|
*/
|
|
2840
2845
|
s(this, "isFilterable");
|
|
2841
|
-
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;
|
|
2842
2847
|
}
|
|
2843
2848
|
}
|
|
2844
2849
|
class he {
|
|
@@ -2860,7 +2865,7 @@ class he {
|
|
|
2860
2865
|
this.property = new me(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2861
2866
|
}
|
|
2862
2867
|
}
|
|
2863
|
-
class
|
|
2868
|
+
class si {
|
|
2864
2869
|
/**
|
|
2865
2870
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
2866
2871
|
*
|
|
@@ -2886,12 +2891,12 @@ class ei {
|
|
|
2886
2891
|
/**
|
|
2887
2892
|
* Период создания.
|
|
2888
2893
|
*/
|
|
2889
|
-
s(this, "createdAt", new
|
|
2894
|
+
s(this, "createdAt", new A());
|
|
2890
2895
|
/**
|
|
2891
2896
|
* Период изменения.
|
|
2892
2897
|
*/
|
|
2893
|
-
s(this, "updatedAt", new
|
|
2894
|
-
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);
|
|
2895
2900
|
}
|
|
2896
2901
|
/**
|
|
2897
2902
|
* Выполняет сброс указанного фильтра в значение по умолчанию.
|
|
@@ -2925,7 +2930,7 @@ class ei {
|
|
|
2925
2930
|
return Object.keys(this).forEach((c) => {
|
|
2926
2931
|
const u = this[c];
|
|
2927
2932
|
// eslint-disable-next-line prettier/prettier
|
|
2928
|
-
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);
|
|
2929
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;
|
|
2930
2935
|
}
|
|
2931
2936
|
}
|
|
@@ -2964,7 +2969,7 @@ class Ie extends L {
|
|
|
2964
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;
|
|
2965
2970
|
}
|
|
2966
2971
|
}
|
|
2967
|
-
class
|
|
2972
|
+
class Wr {
|
|
2968
2973
|
/**
|
|
2969
2974
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
2970
2975
|
*
|
|
@@ -2983,10 +2988,10 @@ class Hr {
|
|
|
2983
2988
|
* Минимальный коэффициент цены.
|
|
2984
2989
|
*/
|
|
2985
2990
|
s(this, "minCoefficient");
|
|
2986
|
-
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);
|
|
2987
2992
|
}
|
|
2988
2993
|
}
|
|
2989
|
-
class
|
|
2994
|
+
class ws {
|
|
2990
2995
|
/**
|
|
2991
2996
|
* Инициализирует экземпляр класса {@link FilterSettings}.
|
|
2992
2997
|
*
|
|
@@ -3019,7 +3024,7 @@ class ms {
|
|
|
3019
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;
|
|
3020
3025
|
}
|
|
3021
3026
|
}
|
|
3022
|
-
class
|
|
3027
|
+
class jr {
|
|
3023
3028
|
/**
|
|
3024
3029
|
* Инициализирует экземпляр класса {@link CategoryFilterSetting}.
|
|
3025
3030
|
*
|
|
@@ -3038,10 +3043,10 @@ class Br {
|
|
|
3038
3043
|
* @inheritDoc
|
|
3039
3044
|
*/
|
|
3040
3045
|
s(this, "settings");
|
|
3041
|
-
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);
|
|
3042
3047
|
}
|
|
3043
3048
|
}
|
|
3044
|
-
class
|
|
3049
|
+
class vs {
|
|
3045
3050
|
/**
|
|
3046
3051
|
* Инициализирует экземпляр класса {@link CategoryFilterValue}.
|
|
3047
3052
|
*
|
|
@@ -3059,7 +3064,7 @@ class ys {
|
|
|
3059
3064
|
this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "";
|
|
3060
3065
|
}
|
|
3061
3066
|
}
|
|
3062
|
-
class
|
|
3067
|
+
class Rs {
|
|
3063
3068
|
/**
|
|
3064
3069
|
* Инициализирует экземпляр класса {@link CategoryFilter}.
|
|
3065
3070
|
*
|
|
@@ -3102,10 +3107,10 @@ class as {
|
|
|
3102
3107
|
*/
|
|
3103
3108
|
s(this, "max");
|
|
3104
3109
|
var e;
|
|
3105
|
-
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;
|
|
3106
3111
|
}
|
|
3107
3112
|
}
|
|
3108
|
-
class
|
|
3113
|
+
class ii extends h {
|
|
3109
3114
|
/**
|
|
3110
3115
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
3111
3116
|
*
|
|
@@ -3136,7 +3141,7 @@ class ri extends h {
|
|
|
3136
3141
|
return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
|
|
3137
3142
|
}
|
|
3138
3143
|
}
|
|
3139
|
-
class
|
|
3144
|
+
class ni extends h {
|
|
3140
3145
|
/**
|
|
3141
3146
|
* Импортирует цены клиента из CSV файла.
|
|
3142
3147
|
*
|
|
@@ -3335,7 +3340,7 @@ class ti extends h {
|
|
|
3335
3340
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
3336
3341
|
}
|
|
3337
3342
|
}
|
|
3338
|
-
class
|
|
3343
|
+
class oi extends h {
|
|
3339
3344
|
/**
|
|
3340
3345
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
3341
3346
|
*
|
|
@@ -3423,7 +3428,7 @@ class si extends h {
|
|
|
3423
3428
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
|
|
3424
3429
|
}
|
|
3425
3430
|
}
|
|
3426
|
-
class
|
|
3431
|
+
class ci extends h {
|
|
3427
3432
|
/**
|
|
3428
3433
|
* Возвращает список данных о корневых категориях.
|
|
3429
3434
|
*
|
|
@@ -3432,7 +3437,7 @@ class ii extends h {
|
|
|
3432
3437
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
|
|
3433
3438
|
*/
|
|
3434
3439
|
getRootCategoriesList(r = !1) {
|
|
3435
|
-
return this.getTypedList(
|
|
3440
|
+
return this.getTypedList(V, "/internal/catalog/categories", {
|
|
3436
3441
|
showHidden: r
|
|
3437
3442
|
});
|
|
3438
3443
|
}
|
|
@@ -3452,7 +3457,7 @@ class ii extends h {
|
|
|
3452
3457
|
showHidden: e,
|
|
3453
3458
|
withNestedCategories: t
|
|
3454
3459
|
},
|
|
3455
|
-
(i) => new
|
|
3460
|
+
(i) => new V(i.data)
|
|
3456
3461
|
);
|
|
3457
3462
|
}
|
|
3458
3463
|
/**
|
|
@@ -3461,7 +3466,7 @@ class ii extends h {
|
|
|
3461
3466
|
* @param categoryID Идентификатор категории продуктов.
|
|
3462
3467
|
*/
|
|
3463
3468
|
getPublicCategoryData(r) {
|
|
3464
|
-
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new
|
|
3469
|
+
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new V(e.data));
|
|
3465
3470
|
}
|
|
3466
3471
|
/**
|
|
3467
3472
|
* Возвращает список продуктов категории.
|
|
@@ -3492,7 +3497,7 @@ class ii extends h {
|
|
|
3492
3497
|
getCategoryProductsCoefficients(r) {
|
|
3493
3498
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
3494
3499
|
const { data: t } = e;
|
|
3495
|
-
return
|
|
3500
|
+
return Bt(t, (i) => i.map((o) => new Or(o))), t;
|
|
3496
3501
|
});
|
|
3497
3502
|
}
|
|
3498
3503
|
/**
|
|
@@ -3504,14 +3509,14 @@ class ii extends h {
|
|
|
3504
3509
|
publicSimpleSearch(r, e = 10) {
|
|
3505
3510
|
return new Promise((t, i) => {
|
|
3506
3511
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
3507
|
-
t(o.categories.map((c) => new
|
|
3512
|
+
t(o.categories.map((c) => new V(c)));
|
|
3508
3513
|
}).catch((o) => {
|
|
3509
3514
|
i(o);
|
|
3510
3515
|
});
|
|
3511
3516
|
});
|
|
3512
3517
|
}
|
|
3513
3518
|
}
|
|
3514
|
-
class
|
|
3519
|
+
class li extends Y {
|
|
3515
3520
|
/**
|
|
3516
3521
|
* Возвращает данные об указанном продукте.
|
|
3517
3522
|
*
|
|
@@ -3542,7 +3547,7 @@ class ni extends Y {
|
|
|
3542
3547
|
return this.get(
|
|
3543
3548
|
`/internal/catalog/products/${r}/coefficients`,
|
|
3544
3549
|
{},
|
|
3545
|
-
(e) => De(e.data, (t) => new
|
|
3550
|
+
(e) => De(e.data, (t) => new Or(t))
|
|
3546
3551
|
);
|
|
3547
3552
|
}
|
|
3548
3553
|
/**
|
|
@@ -3577,7 +3582,7 @@ class ni extends Y {
|
|
|
3577
3582
|
});
|
|
3578
3583
|
}
|
|
3579
3584
|
}
|
|
3580
|
-
class
|
|
3585
|
+
class ui extends h {
|
|
3581
3586
|
/**
|
|
3582
3587
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
3583
3588
|
*
|
|
@@ -3587,7 +3592,7 @@ class oi extends h {
|
|
|
3587
3592
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
|
|
3588
3593
|
*/
|
|
3589
3594
|
getRootCategoriesList(r, e = !1) {
|
|
3590
|
-
return this.getTypedList(
|
|
3595
|
+
return this.getTypedList(Xe, "/internal/catalog/categories", {
|
|
3591
3596
|
clientId: r,
|
|
3592
3597
|
showHidden: e
|
|
3593
3598
|
});
|
|
@@ -3610,7 +3615,7 @@ class oi extends h {
|
|
|
3610
3615
|
showHidden: t,
|
|
3611
3616
|
withNestedCategories: i
|
|
3612
3617
|
},
|
|
3613
|
-
(o) => new
|
|
3618
|
+
(o) => new Xe(o.data)
|
|
3614
3619
|
);
|
|
3615
3620
|
}
|
|
3616
3621
|
/**
|
|
@@ -3635,7 +3640,7 @@ class oi extends h {
|
|
|
3635
3640
|
);
|
|
3636
3641
|
}
|
|
3637
3642
|
}
|
|
3638
|
-
class
|
|
3643
|
+
class pi extends Y {
|
|
3639
3644
|
/**
|
|
3640
3645
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
3641
3646
|
*
|
|
@@ -3674,7 +3679,7 @@ class ci extends Y {
|
|
|
3674
3679
|
});
|
|
3675
3680
|
}
|
|
3676
3681
|
}
|
|
3677
|
-
class
|
|
3682
|
+
class hi extends Y {
|
|
3678
3683
|
/**
|
|
3679
3684
|
* Возвращает список шаблонов прайс-листа.
|
|
3680
3685
|
*
|
|
@@ -3740,7 +3745,7 @@ class li extends Y {
|
|
|
3740
3745
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get_list
|
|
3741
3746
|
*/
|
|
3742
3747
|
getProductTemplatePrices(r) {
|
|
3743
|
-
return this.getTypedList(
|
|
3748
|
+
return this.getTypedList(gr, `/internal/price/templates/${r}/products`);
|
|
3744
3749
|
}
|
|
3745
3750
|
/**
|
|
3746
3751
|
* Возвращает данные о цене на продукт в шаблоне прайс-листа.
|
|
@@ -3751,7 +3756,7 @@ class li extends Y {
|
|
|
3751
3756
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
3752
3757
|
*/
|
|
3753
3758
|
getProductTemplatePrice(r, e) {
|
|
3754
|
-
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));
|
|
3755
3760
|
}
|
|
3756
3761
|
/**
|
|
3757
3762
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -3770,7 +3775,7 @@ class li extends Y {
|
|
|
3770
3775
|
price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
|
|
3771
3776
|
increase_percent: t.value
|
|
3772
3777
|
},
|
|
3773
|
-
(o) => new
|
|
3778
|
+
(o) => new gr(o.data)
|
|
3774
3779
|
);
|
|
3775
3780
|
}
|
|
3776
3781
|
/**
|
|
@@ -3792,7 +3797,7 @@ class li extends Y {
|
|
|
3792
3797
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_category_get_list
|
|
3793
3798
|
*/
|
|
3794
3799
|
getCategoryTemplatePrices(r) {
|
|
3795
|
-
return this.getTypedList(
|
|
3800
|
+
return this.getTypedList(hr, `/internal/price/templates/${r}/categories`);
|
|
3796
3801
|
}
|
|
3797
3802
|
/**
|
|
3798
3803
|
* Возвращает данные о цене на категорию продуктов в шаблоне прайс-листа.
|
|
@@ -3806,7 +3811,7 @@ class li extends Y {
|
|
|
3806
3811
|
return this.get(
|
|
3807
3812
|
`/internal/price/templates/${r}/categories/${e}`,
|
|
3808
3813
|
{},
|
|
3809
|
-
(t) => new
|
|
3814
|
+
(t) => new hr(t.data)
|
|
3810
3815
|
);
|
|
3811
3816
|
}
|
|
3812
3817
|
/**
|
|
@@ -3832,7 +3837,7 @@ class li extends Y {
|
|
|
3832
3837
|
},
|
|
3833
3838
|
params: i ? { recursively: !0 } : {}
|
|
3834
3839
|
},
|
|
3835
|
-
(c) => new
|
|
3840
|
+
(c) => new hr(c.data)
|
|
3836
3841
|
);
|
|
3837
3842
|
}
|
|
3838
3843
|
/**
|
|
@@ -3863,7 +3868,7 @@ class li extends Y {
|
|
|
3863
3868
|
return this.getTypedList(Le, `/internal/price/templates/${r}/clients`);
|
|
3864
3869
|
}
|
|
3865
3870
|
}
|
|
3866
|
-
class
|
|
3871
|
+
class gi extends h {
|
|
3867
3872
|
/**
|
|
3868
3873
|
* Возвращает список ролей ценообразования.
|
|
3869
3874
|
*
|
|
@@ -3921,7 +3926,7 @@ class ui extends h {
|
|
|
3921
3926
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_category_rules_get
|
|
3922
3927
|
*/
|
|
3923
3928
|
getCategoryRules(r) {
|
|
3924
|
-
return this.getTypedList(
|
|
3929
|
+
return this.getTypedList(Wr, `/internal/price/roles/rules/categories/${r}`);
|
|
3925
3930
|
}
|
|
3926
3931
|
/**
|
|
3927
3932
|
* Обновляет правила для роли ценообразования по указанной категории.
|
|
@@ -3935,11 +3940,11 @@ class ui extends h {
|
|
|
3935
3940
|
return this.patch(
|
|
3936
3941
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3937
3942
|
e,
|
|
3938
|
-
(t) => _.instanceListInitializer(
|
|
3943
|
+
(t) => _.instanceListInitializer(Wr, t.data)
|
|
3939
3944
|
);
|
|
3940
3945
|
}
|
|
3941
3946
|
}
|
|
3942
|
-
class
|
|
3947
|
+
class fi extends Y {
|
|
3943
3948
|
/**
|
|
3944
3949
|
* Возвращает пагинированный список свойств.
|
|
3945
3950
|
*
|
|
@@ -4318,7 +4323,7 @@ class pi extends Y {
|
|
|
4318
4323
|
return this.get(
|
|
4319
4324
|
`/internal/catalog/categories/${r}/filters`,
|
|
4320
4325
|
{ recursively: e },
|
|
4321
|
-
(t) => t.data.map((i) => new
|
|
4326
|
+
(t) => t.data.map((i) => new Rs(i))
|
|
4322
4327
|
);
|
|
4323
4328
|
}
|
|
4324
4329
|
/**
|
|
@@ -4328,7 +4333,7 @@ class pi extends Y {
|
|
|
4328
4333
|
* @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_get_list
|
|
4329
4334
|
*/
|
|
4330
4335
|
getCategoryFilterSettings(r) {
|
|
4331
|
-
return this.getTypedList(
|
|
4336
|
+
return this.getTypedList(jr, `/internal/catalog/categories/${r}/filter-settings`);
|
|
4332
4337
|
}
|
|
4333
4338
|
/**
|
|
4334
4339
|
* Сохраняет настройки фильтра в категории.
|
|
@@ -4342,7 +4347,7 @@ class pi extends Y {
|
|
|
4342
4347
|
return this.patch(
|
|
4343
4348
|
`/internal/catalog/categories/${r}/filter-settings/${e}`,
|
|
4344
4349
|
t,
|
|
4345
|
-
(i) => new
|
|
4350
|
+
(i) => new jr(i.data)
|
|
4346
4351
|
);
|
|
4347
4352
|
}
|
|
4348
4353
|
/**
|
|
@@ -4356,7 +4361,7 @@ class pi extends Y {
|
|
|
4356
4361
|
return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
|
|
4357
4362
|
}
|
|
4358
4363
|
}
|
|
4359
|
-
class
|
|
4364
|
+
class mi extends h {
|
|
4360
4365
|
/**
|
|
4361
4366
|
* Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
|
|
4362
4367
|
*
|
|
@@ -4366,7 +4371,7 @@ class hi extends h {
|
|
|
4366
4371
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_categories_get_list
|
|
4367
4372
|
*/
|
|
4368
4373
|
getRootCategoriesList(r, e = !1) {
|
|
4369
|
-
return this.getTypedList(
|
|
4374
|
+
return this.getTypedList(V, "/internal/catalog/categories", {
|
|
4370
4375
|
priceTemplateId: r,
|
|
4371
4376
|
showHidden: e
|
|
4372
4377
|
});
|
|
@@ -4389,7 +4394,7 @@ class hi extends h {
|
|
|
4389
4394
|
showHidden: t,
|
|
4390
4395
|
withNestedCategories: i
|
|
4391
4396
|
},
|
|
4392
|
-
(o) => new
|
|
4397
|
+
(o) => new V(o.data)
|
|
4393
4398
|
);
|
|
4394
4399
|
}
|
|
4395
4400
|
/**
|
|
@@ -4414,7 +4419,7 @@ class hi extends h {
|
|
|
4414
4419
|
);
|
|
4415
4420
|
}
|
|
4416
4421
|
}
|
|
4417
|
-
function
|
|
4422
|
+
function Gr(n, r, e) {
|
|
4418
4423
|
let t;
|
|
4419
4424
|
return n.some((i) => {
|
|
4420
4425
|
if (i.type === e && i.id === r)
|
|
@@ -4423,29 +4428,29 @@ function zr(n, r, e) {
|
|
|
4423
4428
|
return !1;
|
|
4424
4429
|
const o = i;
|
|
4425
4430
|
if (o.products && o.products.length > 0) {
|
|
4426
|
-
const c =
|
|
4431
|
+
const c = Gr(o.products, r, e);
|
|
4427
4432
|
if (c)
|
|
4428
4433
|
return t = c, !0;
|
|
4429
4434
|
}
|
|
4430
4435
|
if (o.categories && o.categories.length > 0) {
|
|
4431
|
-
const c =
|
|
4436
|
+
const c = Gr(o.categories, r, e);
|
|
4432
4437
|
if (c)
|
|
4433
4438
|
return t = c, !0;
|
|
4434
4439
|
}
|
|
4435
4440
|
return !1;
|
|
4436
4441
|
}), t;
|
|
4437
4442
|
}
|
|
4438
|
-
function
|
|
4443
|
+
function Yr(n) {
|
|
4439
4444
|
const r = [];
|
|
4440
4445
|
return n.forEach((e) => {
|
|
4441
4446
|
if (r.push(e), e.type === "category") {
|
|
4442
4447
|
const t = e;
|
|
4443
|
-
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));
|
|
4444
4449
|
}
|
|
4445
4450
|
}), r;
|
|
4446
4451
|
}
|
|
4447
|
-
var
|
|
4448
|
-
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 {
|
|
4449
4454
|
/**
|
|
4450
4455
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
4451
4456
|
*
|
|
@@ -4476,7 +4481,7 @@ class Cr extends G {
|
|
|
4476
4481
|
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new j(e.currency));
|
|
4477
4482
|
}
|
|
4478
4483
|
}
|
|
4479
|
-
class
|
|
4484
|
+
class Pr extends L {
|
|
4480
4485
|
/**
|
|
4481
4486
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
4482
4487
|
*
|
|
@@ -4495,7 +4500,7 @@ class Dr extends L {
|
|
|
4495
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;
|
|
4496
4501
|
}
|
|
4497
4502
|
}
|
|
4498
|
-
class se extends
|
|
4503
|
+
class se extends Pr {
|
|
4499
4504
|
/**
|
|
4500
4505
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
4501
4506
|
*
|
|
@@ -4538,14 +4543,14 @@ class ie extends D {
|
|
|
4538
4543
|
return new ie({
|
|
4539
4544
|
id: 1,
|
|
4540
4545
|
guid: "",
|
|
4541
|
-
slug:
|
|
4546
|
+
slug: Q.Person,
|
|
4542
4547
|
name: ""
|
|
4543
4548
|
});
|
|
4544
4549
|
}
|
|
4545
4550
|
}
|
|
4546
4551
|
class Ce extends D {
|
|
4547
4552
|
}
|
|
4548
|
-
class
|
|
4553
|
+
class at extends nt {
|
|
4549
4554
|
/**
|
|
4550
4555
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
4551
4556
|
*
|
|
@@ -4560,7 +4565,7 @@ class ft extends tt {
|
|
|
4560
4565
|
this.deletedAt = R(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
4561
4566
|
}
|
|
4562
4567
|
}
|
|
4563
|
-
class
|
|
4568
|
+
class wt extends at {
|
|
4564
4569
|
/**
|
|
4565
4570
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
4566
4571
|
*
|
|
@@ -4615,13 +4620,13 @@ class mt extends ft {
|
|
|
4615
4620
|
if (e.bankAccounts) {
|
|
4616
4621
|
const t = [];
|
|
4617
4622
|
e.bankAccounts.forEach((i) => {
|
|
4618
|
-
t.push(new
|
|
4623
|
+
t.push(new Tr(i));
|
|
4619
4624
|
}), this.bankAccounts = t;
|
|
4620
4625
|
}
|
|
4621
4626
|
}
|
|
4622
4627
|
}
|
|
4623
4628
|
}
|
|
4624
|
-
class
|
|
4629
|
+
class Ds extends wt {
|
|
4625
4630
|
/**
|
|
4626
4631
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
4627
4632
|
*
|
|
@@ -4631,7 +4636,7 @@ class ws extends mt {
|
|
|
4631
4636
|
super(r);
|
|
4632
4637
|
}
|
|
4633
4638
|
}
|
|
4634
|
-
class
|
|
4639
|
+
class vt extends wt {
|
|
4635
4640
|
/**
|
|
4636
4641
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
4637
4642
|
*
|
|
@@ -4678,7 +4683,7 @@ class yt extends mt {
|
|
|
4678
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 ?? "");
|
|
4679
4684
|
}
|
|
4680
4685
|
}
|
|
4681
|
-
class
|
|
4686
|
+
class Rt extends vt {
|
|
4682
4687
|
/**
|
|
4683
4688
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
4684
4689
|
*
|
|
@@ -4693,7 +4698,7 @@ class at extends yt {
|
|
|
4693
4698
|
e && (this.kpp = e.kpp ?? "");
|
|
4694
4699
|
}
|
|
4695
4700
|
}
|
|
4696
|
-
class
|
|
4701
|
+
class Ts extends Rt {
|
|
4697
4702
|
/**
|
|
4698
4703
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
4699
4704
|
*
|
|
@@ -4704,7 +4709,7 @@ class Rs extends at {
|
|
|
4704
4709
|
/**
|
|
4705
4710
|
* Страна регистрации юридического лица нерезидента.
|
|
4706
4711
|
*/
|
|
4707
|
-
s(this, "registrationCountry", new
|
|
4712
|
+
s(this, "registrationCountry", new we());
|
|
4708
4713
|
/**
|
|
4709
4714
|
* Регистрационный номер юридического лица нерезидента.
|
|
4710
4715
|
*/
|
|
@@ -4713,10 +4718,10 @@ class Rs extends at {
|
|
|
4713
4718
|
* Налоговый номер юридического лица нерезидента.
|
|
4714
4719
|
*/
|
|
4715
4720
|
s(this, "taxNumber", "");
|
|
4716
|
-
e && (this.registrationCountry = new
|
|
4721
|
+
e && (this.registrationCountry = new we(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
4717
4722
|
}
|
|
4718
4723
|
}
|
|
4719
|
-
class
|
|
4724
|
+
class Ze {
|
|
4720
4725
|
/**
|
|
4721
4726
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
4722
4727
|
*
|
|
@@ -4724,18 +4729,18 @@ class Xe {
|
|
|
4724
4729
|
*/
|
|
4725
4730
|
static createInstance(r) {
|
|
4726
4731
|
switch (r.opf.slug) {
|
|
4727
|
-
case
|
|
4728
|
-
return new
|
|
4729
|
-
case
|
|
4730
|
-
return new
|
|
4731
|
-
case
|
|
4732
|
-
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);
|
|
4733
4738
|
default:
|
|
4734
|
-
return new
|
|
4739
|
+
return new Ds(r);
|
|
4735
4740
|
}
|
|
4736
4741
|
}
|
|
4737
4742
|
}
|
|
4738
|
-
class _e extends
|
|
4743
|
+
class _e extends at {
|
|
4739
4744
|
/**
|
|
4740
4745
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
4741
4746
|
*
|
|
@@ -4772,14 +4777,14 @@ class _e extends ft {
|
|
|
4772
4777
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
4773
4778
|
*/
|
|
4774
4779
|
s(this, "isTransportCompanyAddress");
|
|
4775
|
-
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;
|
|
4776
4781
|
}
|
|
4777
4782
|
}
|
|
4778
|
-
class
|
|
4783
|
+
class Ct extends D {
|
|
4779
4784
|
}
|
|
4780
|
-
class
|
|
4785
|
+
class Dt extends D {
|
|
4781
4786
|
}
|
|
4782
|
-
class
|
|
4787
|
+
class Vr extends oe {
|
|
4783
4788
|
/**
|
|
4784
4789
|
* Инициализирует экземпляр класса {@link Client}.
|
|
4785
4790
|
*
|
|
@@ -4829,10 +4834,10 @@ class jr extends oe {
|
|
|
4829
4834
|
* @inheritDoc
|
|
4830
4835
|
*/
|
|
4831
4836
|
s(this, "extraData");
|
|
4832
|
-
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) ?? {};
|
|
4833
4838
|
}
|
|
4834
4839
|
}
|
|
4835
|
-
class
|
|
4840
|
+
class yi extends Fe {
|
|
4836
4841
|
/**
|
|
4837
4842
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
4838
4843
|
*
|
|
@@ -4888,11 +4893,11 @@ class gi extends Fe {
|
|
|
4888
4893
|
/**
|
|
4889
4894
|
* @inheritDoc
|
|
4890
4895
|
*/
|
|
4891
|
-
s(this, "createdAt", new
|
|
4896
|
+
s(this, "createdAt", new A());
|
|
4892
4897
|
/**
|
|
4893
4898
|
* @inheritDoc
|
|
4894
4899
|
*/
|
|
4895
|
-
s(this, "lastLoginDate", new
|
|
4900
|
+
s(this, "lastLoginDate", new A());
|
|
4896
4901
|
/**
|
|
4897
4902
|
* @inheritDoc
|
|
4898
4903
|
*/
|
|
@@ -4944,12 +4949,12 @@ class gi extends Fe {
|
|
|
4944
4949
|
/**
|
|
4945
4950
|
* @inheritDoc
|
|
4946
4951
|
*/
|
|
4947
|
-
s(this, "noOrdersPeriod", new
|
|
4948
|
-
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
|
|
4949
|
-
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),
|
|
4950
4955
|
creator: (g = e == null ? void 0 : e.lastOrder) == null ? void 0 : g.creator,
|
|
4951
4956
|
isApproved: (a = e == null ? void 0 : e.lastOrder) == null ? void 0 : a.isApproved
|
|
4952
|
-
}, this.noOrdersPeriod = new
|
|
4957
|
+
}, this.noOrdersPeriod = new A(e == null ? void 0 : e.noOrdersPeriod);
|
|
4953
4958
|
}
|
|
4954
4959
|
/**
|
|
4955
4960
|
* @inheritDoc
|
|
@@ -4960,7 +4965,7 @@ class gi extends Fe {
|
|
|
4960
4965
|
this.cities = [];
|
|
4961
4966
|
break;
|
|
4962
4967
|
case "region":
|
|
4963
|
-
this.region = new
|
|
4968
|
+
this.region = new ve();
|
|
4964
4969
|
break;
|
|
4965
4970
|
case "isActive":
|
|
4966
4971
|
this.isActive = !0;
|
|
@@ -4996,7 +5001,7 @@ class gi extends Fe {
|
|
|
4996
5001
|
this.partnerGroups = [];
|
|
4997
5002
|
break;
|
|
4998
5003
|
case "contact":
|
|
4999
|
-
this.contact = new
|
|
5004
|
+
this.contact = new Pr();
|
|
5000
5005
|
break;
|
|
5001
5006
|
default:
|
|
5002
5007
|
this[e] = void 0;
|
|
@@ -5013,7 +5018,7 @@ class gi extends Fe {
|
|
|
5013
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;
|
|
5014
5019
|
}
|
|
5015
5020
|
}
|
|
5016
|
-
class
|
|
5021
|
+
class Tt extends G {
|
|
5017
5022
|
/**
|
|
5018
5023
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
5019
5024
|
*
|
|
@@ -5032,7 +5037,7 @@ class Rt extends G {
|
|
|
5032
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);
|
|
5033
5038
|
}
|
|
5034
5039
|
}
|
|
5035
|
-
class
|
|
5040
|
+
class Ps extends L {
|
|
5036
5041
|
/**
|
|
5037
5042
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
5038
5043
|
*
|
|
@@ -5069,10 +5074,10 @@ class Cs extends L {
|
|
|
5069
5074
|
* @inheritDoc
|
|
5070
5075
|
*/
|
|
5071
5076
|
s(this, "curators");
|
|
5072
|
-
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;
|
|
5073
5078
|
}
|
|
5074
5079
|
}
|
|
5075
|
-
class
|
|
5080
|
+
class fr extends G {
|
|
5076
5081
|
/**
|
|
5077
5082
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
5078
5083
|
*
|
|
@@ -5087,7 +5092,7 @@ class gr extends G {
|
|
|
5087
5092
|
this.isPrimary = e.isPrimary;
|
|
5088
5093
|
}
|
|
5089
5094
|
}
|
|
5090
|
-
class
|
|
5095
|
+
class bs extends se {
|
|
5091
5096
|
/**
|
|
5092
5097
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
5093
5098
|
*
|
|
@@ -5112,7 +5117,7 @@ class Ds extends se {
|
|
|
5112
5117
|
*/
|
|
5113
5118
|
addresses: []
|
|
5114
5119
|
});
|
|
5115
|
-
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))));
|
|
5116
5121
|
}
|
|
5117
5122
|
}
|
|
5118
5123
|
class H extends Y {
|
|
@@ -5147,7 +5152,7 @@ class H extends Y {
|
|
|
5147
5152
|
let e;
|
|
5148
5153
|
const t = r, i = r, o = r;
|
|
5149
5154
|
switch (r.opf.slug) {
|
|
5150
|
-
case
|
|
5155
|
+
case Q.Ic:
|
|
5151
5156
|
e = {
|
|
5152
5157
|
opf: t.opf.slug,
|
|
5153
5158
|
name: t.name,
|
|
@@ -5165,7 +5170,7 @@ class H extends Y {
|
|
|
5165
5170
|
actual_address: t.actualAddress
|
|
5166
5171
|
};
|
|
5167
5172
|
break;
|
|
5168
|
-
case
|
|
5173
|
+
case Q.UlR:
|
|
5169
5174
|
e = {
|
|
5170
5175
|
opf: i.opf.slug,
|
|
5171
5176
|
name: i.name,
|
|
@@ -5184,7 +5189,7 @@ class H extends Y {
|
|
|
5184
5189
|
actual_address: i.actualAddress
|
|
5185
5190
|
};
|
|
5186
5191
|
break;
|
|
5187
|
-
case
|
|
5192
|
+
case Q.UlNr:
|
|
5188
5193
|
e = {
|
|
5189
5194
|
opf: o.opf.slug,
|
|
5190
5195
|
name: o.name,
|
|
@@ -5256,7 +5261,7 @@ class H extends Y {
|
|
|
5256
5261
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
5257
5262
|
*/
|
|
5258
5263
|
getClient(r) {
|
|
5259
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
5264
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new Vr(e.data));
|
|
5260
5265
|
}
|
|
5261
5266
|
/**
|
|
5262
5267
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -5292,7 +5297,7 @@ class H extends Y {
|
|
|
5292
5297
|
return this.getClientsList({
|
|
5293
5298
|
groupOp: "and",
|
|
5294
5299
|
groups: [],
|
|
5295
|
-
filters: [{ field: "phone", op:
|
|
5300
|
+
filters: [{ field: "phone", op: kr.Contains, value: r }]
|
|
5296
5301
|
});
|
|
5297
5302
|
}
|
|
5298
5303
|
/**
|
|
@@ -5307,7 +5312,7 @@ class H extends Y {
|
|
|
5307
5312
|
return this.post(
|
|
5308
5313
|
"/internal/clients/additional-data",
|
|
5309
5314
|
{ clients: t, requested_data_types: e },
|
|
5310
|
-
(i) => _.instanceListInitializer(
|
|
5315
|
+
(i) => _.instanceListInitializer(Ps, i.data)
|
|
5311
5316
|
);
|
|
5312
5317
|
}
|
|
5313
5318
|
/**
|
|
@@ -5317,7 +5322,7 @@ class H extends Y {
|
|
|
5317
5322
|
* @see /doc/api/internal#/Контакты/api_internal_client_contact_get_all_contact_list
|
|
5318
5323
|
*/
|
|
5319
5324
|
getAllClientContacts(r) {
|
|
5320
|
-
return this.getTypedList(
|
|
5325
|
+
return this.getTypedList(bs, `/internal/clients/${r}/contacts/all`);
|
|
5321
5326
|
}
|
|
5322
5327
|
/**
|
|
5323
5328
|
* Создаёт нового клиента на основе указанных данных.
|
|
@@ -5327,7 +5332,7 @@ class H extends Y {
|
|
|
5327
5332
|
* @see /doc/api/internal#/Клиенты/api_internal_client_create
|
|
5328
5333
|
*/
|
|
5329
5334
|
createClientCommonData(r, e = {}) {
|
|
5330
|
-
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);
|
|
5331
5336
|
}
|
|
5332
5337
|
/**
|
|
5333
5338
|
* Обновляет данные указанного клиента.
|
|
@@ -5467,7 +5472,7 @@ class H extends Y {
|
|
|
5467
5472
|
return this.post(
|
|
5468
5473
|
`/internal/clients/${r}/contragents`,
|
|
5469
5474
|
H.transformContragentClientDataToRequest(e),
|
|
5470
|
-
(i) =>
|
|
5475
|
+
(i) => Ze.createInstance(i.data),
|
|
5471
5476
|
t
|
|
5472
5477
|
);
|
|
5473
5478
|
}
|
|
@@ -5483,7 +5488,7 @@ class H extends Y {
|
|
|
5483
5488
|
return this.patch(
|
|
5484
5489
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
5485
5490
|
H.transformContragentClientDataToRequest(e),
|
|
5486
|
-
(i) =>
|
|
5491
|
+
(i) => Ze.createInstance(i.data),
|
|
5487
5492
|
t
|
|
5488
5493
|
);
|
|
5489
5494
|
}
|
|
@@ -5561,7 +5566,7 @@ class H extends Y {
|
|
|
5561
5566
|
return this.post(
|
|
5562
5567
|
`/internal/clients/${r}/contragents/${e}/bank-accounts`,
|
|
5563
5568
|
H.transformClientContragentBankAccountToRequest(t),
|
|
5564
|
-
(o) => new
|
|
5569
|
+
(o) => new Tr(o.data),
|
|
5565
5570
|
i
|
|
5566
5571
|
);
|
|
5567
5572
|
}
|
|
@@ -5578,7 +5583,7 @@ class H extends Y {
|
|
|
5578
5583
|
return this.patch(
|
|
5579
5584
|
`/internal/clients/${r}/contragents/${e}/bank-accounts/${t.id}`,
|
|
5580
5585
|
H.transformClientContragentBankAccountToRequest(t),
|
|
5581
|
-
(o) => new
|
|
5586
|
+
(o) => new Tr(o.data),
|
|
5582
5587
|
i
|
|
5583
5588
|
);
|
|
5584
5589
|
}
|
|
@@ -5800,7 +5805,7 @@ class H extends Y {
|
|
|
5800
5805
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
5801
5806
|
}
|
|
5802
5807
|
}
|
|
5803
|
-
class
|
|
5808
|
+
class ai extends h {
|
|
5804
5809
|
/**
|
|
5805
5810
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
5806
5811
|
*
|
|
@@ -5814,7 +5819,7 @@ class fi extends h {
|
|
|
5814
5819
|
});
|
|
5815
5820
|
}
|
|
5816
5821
|
}
|
|
5817
|
-
class
|
|
5822
|
+
class wi {
|
|
5818
5823
|
/**
|
|
5819
5824
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
5820
5825
|
*
|
|
@@ -5836,8 +5841,8 @@ class mi {
|
|
|
5836
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";
|
|
5837
5842
|
}
|
|
5838
5843
|
}
|
|
5839
|
-
var
|
|
5840
|
-
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 {
|
|
5841
5846
|
/**
|
|
5842
5847
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
5843
5848
|
*
|
|
@@ -5929,7 +5934,7 @@ class yi extends h {
|
|
|
5929
5934
|
});
|
|
5930
5935
|
}
|
|
5931
5936
|
}
|
|
5932
|
-
class
|
|
5937
|
+
class Ss {
|
|
5933
5938
|
/**
|
|
5934
5939
|
* Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
|
|
5935
5940
|
*
|
|
@@ -5947,7 +5952,7 @@ class Ps {
|
|
|
5947
5952
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
5948
5953
|
}
|
|
5949
5954
|
}
|
|
5950
|
-
class
|
|
5955
|
+
class Ri extends Ss {
|
|
5951
5956
|
/**
|
|
5952
5957
|
* Инициализирует экземпляр класса {@link TableDataPagination}.
|
|
5953
5958
|
*
|
|
@@ -5978,7 +5983,7 @@ class ai extends Ps {
|
|
|
5978
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;
|
|
5979
5984
|
}
|
|
5980
5985
|
}
|
|
5981
|
-
class
|
|
5986
|
+
class Ci {
|
|
5982
5987
|
/**
|
|
5983
5988
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
5984
5989
|
*
|
|
@@ -6051,8 +6056,8 @@ class y {
|
|
|
6051
6056
|
* @param date Опорная дата.
|
|
6052
6057
|
*/
|
|
6053
6058
|
static intervalTillSameDate(r, e, t) {
|
|
6054
|
-
const i =
|
|
6055
|
-
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)) };
|
|
6056
6061
|
}
|
|
6057
6062
|
/**
|
|
6058
6063
|
* Возвращает интервал «сдвинутая неделя до такого же дня недели»; недели начинаются с понедельника.
|
|
@@ -6061,7 +6066,7 @@ class y {
|
|
|
6061
6066
|
* @param shiftWeeks Смещение в неделях, может быть отрицательным.
|
|
6062
6067
|
*/
|
|
6063
6068
|
static weekTillSameWeekday(r, e) {
|
|
6064
|
-
const t = ee(
|
|
6069
|
+
const t = ee(vr(r, e), { weekStartsOn: 1 }), i = We(r, ee(r, { weekStartsOn: 1 }));
|
|
6065
6070
|
return { from: t, to: z(re(t, i)) };
|
|
6066
6071
|
}
|
|
6067
6072
|
/**
|
|
@@ -6082,14 +6087,14 @@ class y {
|
|
|
6082
6087
|
* @param shift Смещение в декадах, может быть отрицательным.
|
|
6083
6088
|
*/
|
|
6084
6089
|
static shiftedDecadeBounds(r, e) {
|
|
6085
|
-
const t =
|
|
6090
|
+
const t = Fr(r);
|
|
6086
6091
|
let i = 2;
|
|
6087
6092
|
t <= 10 ? i = 0 : t <= 20 && (i = 1);
|
|
6088
|
-
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));
|
|
6089
6094
|
return [g, a];
|
|
6090
6095
|
}
|
|
6091
6096
|
}
|
|
6092
|
-
class
|
|
6097
|
+
class br {
|
|
6093
6098
|
/**
|
|
6094
6099
|
* Преобразует значение даты из данных ответа в дату.
|
|
6095
6100
|
* Строки разбираются как ISO-даты; нечитаемое значение равносильно отсутствию даты.
|
|
@@ -6100,17 +6105,17 @@ class Tr {
|
|
|
6100
6105
|
if (m(r))
|
|
6101
6106
|
return;
|
|
6102
6107
|
const e = R(r) ? C(r) : r;
|
|
6103
|
-
return
|
|
6108
|
+
return Qt(e) ? e : void 0;
|
|
6104
6109
|
}
|
|
6105
6110
|
}
|
|
6106
|
-
function
|
|
6111
|
+
function Di(n) {
|
|
6107
6112
|
return k(je(qe(), n), "yyyy-MM-dd");
|
|
6108
6113
|
}
|
|
6109
|
-
function
|
|
6114
|
+
function ds(n, r) {
|
|
6110
6115
|
const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(n));
|
|
6111
6116
|
return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
|
|
6112
6117
|
}
|
|
6113
|
-
function
|
|
6118
|
+
function Ti(n) {
|
|
6114
6119
|
const r = C(n), e = We(qe(), r);
|
|
6115
6120
|
switch (!0) {
|
|
6116
6121
|
case e === 0:
|
|
@@ -6120,25 +6125,25 @@ function Ri(n) {
|
|
|
6120
6125
|
case e < 0:
|
|
6121
6126
|
return n;
|
|
6122
6127
|
default:
|
|
6123
|
-
return `${e} ${
|
|
6128
|
+
return `${e} ${ds(e, ["день", "дня", "дней"])} назад`;
|
|
6124
6129
|
}
|
|
6125
6130
|
}
|
|
6126
|
-
class
|
|
6131
|
+
class Pi {
|
|
6127
6132
|
/**
|
|
6128
6133
|
* Возвращает предустановленные диапазоны дат.
|
|
6129
6134
|
*
|
|
6130
6135
|
* @param year Год, от которого считаются годовые периоды (1/3/9 месяцев, кварталы, полугодия, год); по умолчанию текущий.
|
|
6131
6136
|
*/
|
|
6132
6137
|
static defaultDateRanges(r) {
|
|
6133
|
-
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);
|
|
6134
6139
|
return {
|
|
6135
6140
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
6136
6141
|
nextWorkingDay: { label: "Следующий рабочий день", from: ge(e), to: z(e) },
|
|
6137
|
-
today: { label: "Сегодня", from: qe(), to:
|
|
6138
|
-
yesterday: { label: "Вчера", from:
|
|
6139
|
-
tomorrow: { label: "Завтра", from:
|
|
6142
|
+
today: { label: "Сегодня", from: qe(), to: rs() },
|
|
6143
|
+
yesterday: { label: "Вчера", from: es(), to: Zt() },
|
|
6144
|
+
tomorrow: { label: "Завтра", from: Xt(), to: Kt() },
|
|
6140
6145
|
currentWeek: { label: "Неделя", from: ee(t, { weekStartsOn: 1 }), to: $e(t, { weekStartsOn: 1 }) },
|
|
6141
|
-
currentMonth: { label: "Месяц", from:
|
|
6146
|
+
currentMonth: { label: "Месяц", from: U(t), to: x(t) },
|
|
6142
6147
|
oneMonth: { label: "1 месяц", from: i, to: x(i) },
|
|
6143
6148
|
threeMonths: { label: "3 месяца", from: i, to: x($(i, 2)) },
|
|
6144
6149
|
nineMonths: { label: "9 месяцев", from: i, to: x($(i, 8)) },
|
|
@@ -6159,23 +6164,23 @@ class Ci {
|
|
|
6159
6164
|
* @param now Опорная дата «сейчас»; по умолчанию текущая.
|
|
6160
6165
|
*/
|
|
6161
6166
|
static standardPeriods(r = /* @__PURE__ */ new Date()) {
|
|
6162
|
-
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);
|
|
6163
6168
|
return {
|
|
6164
6169
|
yesterday: { label: "Вчера", group: "day", from: ge(je(r, 1)), to: z(je(r, 1)) },
|
|
6165
6170
|
today: { label: "Сегодня", group: "day", from: t, to: i },
|
|
6166
6171
|
tomorrow: { label: "Завтра", group: "day", from: ge(re(r, 1)), to: z(re(r, 1)) },
|
|
6167
|
-
lastWeek: { label: "Прошлая неделя", group: "week", from: ee(
|
|
6172
|
+
lastWeek: { label: "Прошлая неделя", group: "week", from: ee(Mr(r, 1), e), to: $e(Mr(r, 1), e) },
|
|
6168
6173
|
thisWeek: { label: "Эта неделя", group: "week", from: ee(r, e), to: $e(r, e) },
|
|
6169
|
-
nextWeek: { label: "Следующая неделя", group: "week", from: ee(
|
|
6174
|
+
nextWeek: { label: "Следующая неделя", group: "week", from: ee(vr(r, 1), e), to: $e(vr(r, 1), e) },
|
|
6170
6175
|
lastTenDays: { label: "Прошлая декада", group: "decade", ...y.shiftDecadeInterval(r, -1) },
|
|
6171
6176
|
thisTenDays: { label: "Эта декада", group: "decade", ...o },
|
|
6172
6177
|
nextTenDays: { label: "Следующая декада", group: "decade", ...y.shiftDecadeInterval(r, 1) },
|
|
6173
|
-
lastMonth: { label: "Прошлый месяц", group: "month", from:
|
|
6178
|
+
lastMonth: { label: "Прошлый месяц", group: "month", from: U(ur(r, 1)), to: x(ur(r, 1)) },
|
|
6174
6179
|
thisMonth: { label: "Этот месяц", group: "month", from: c, to: x(r) },
|
|
6175
|
-
nextMonth: { label: "Следующий месяц", group: "month", from:
|
|
6176
|
-
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)) },
|
|
6177
6182
|
thisQuarter: { label: "Этот квартал", group: "quarter", from: u, to: Be(r) },
|
|
6178
|
-
nextQuarter: { label: "Следующий квартал", group: "quarter", from: ke(
|
|
6183
|
+
nextQuarter: { label: "Следующий квартал", group: "quarter", from: ke(or(r, 1)), to: Be(or(r, 1)) },
|
|
6179
6184
|
lastHalfYear: {
|
|
6180
6185
|
label: "Прошлое полугодие",
|
|
6181
6186
|
group: "halfYear",
|
|
@@ -6184,9 +6189,9 @@ class Ci {
|
|
|
6184
6189
|
},
|
|
6185
6190
|
thisHalfYear: { label: "Это полугодие", group: "halfYear", from: p, to: y.endOfHalfYear(r) },
|
|
6186
6191
|
nextHalfYear: { label: "Следующее полугодие", group: "halfYear", from: y.startOfHalfYear(P), to: y.endOfHalfYear(P) },
|
|
6187
|
-
lastYear: { label: "Прошлый год", group: "year", from: ue(
|
|
6192
|
+
lastYear: { label: "Прошлый год", group: "year", from: ue(cr(r, 1)), to: de(cr(r, 1)) },
|
|
6188
6193
|
thisYear: { label: "Этот год", group: "year", from: g, to: de(r) },
|
|
6189
|
-
nextYear: { label: "Следующий год", group: "year", from: ue(
|
|
6194
|
+
nextYear: { label: "Следующий год", group: "year", from: ue(nr(r, 1)), to: de(nr(r, 1)) },
|
|
6190
6195
|
fromBeginningOfThisWeek: { label: "С начала этой недели", group: "other", section: "fromBeginning", from: ee(r, e), to: i },
|
|
6191
6196
|
fromBeginningOfThisTenDays: { label: "С начала этой декады", group: "other", section: "fromBeginning", from: o.from, to: i },
|
|
6192
6197
|
fromBeginningOfThisMonth: { label: "С начала этого месяца", group: "other", section: "fromBeginning", from: c, to: i },
|
|
@@ -6210,13 +6215,13 @@ class Ci {
|
|
|
6210
6215
|
label: "Прошлый месяц, до такой же даты",
|
|
6211
6216
|
group: "other",
|
|
6212
6217
|
section: "lastTillSame",
|
|
6213
|
-
...y.intervalTillSameDate(c,
|
|
6218
|
+
...y.intervalTillSameDate(c, U(ur(r, 1)), r)
|
|
6214
6219
|
},
|
|
6215
6220
|
lastQuarterTillSameDate: {
|
|
6216
6221
|
label: "Прошлый квартал, до такой же даты",
|
|
6217
6222
|
group: "other",
|
|
6218
6223
|
section: "lastTillSame",
|
|
6219
|
-
...y.intervalTillSameDate(u, ke(
|
|
6224
|
+
...y.intervalTillSameDate(u, ke(lr(r, 1)), r)
|
|
6220
6225
|
},
|
|
6221
6226
|
lastHalfYearTillSameDate: {
|
|
6222
6227
|
label: "Прошлое полугодие, до такой же даты",
|
|
@@ -6228,7 +6233,7 @@ class Ci {
|
|
|
6228
6233
|
label: "Прошлый год, до такой же даты",
|
|
6229
6234
|
group: "other",
|
|
6230
6235
|
section: "lastTillSame",
|
|
6231
|
-
...y.intervalTillSameDate(g, ue(
|
|
6236
|
+
...y.intervalTillSameDate(g, ue(cr(r, 1)), r)
|
|
6232
6237
|
},
|
|
6233
6238
|
nextWeekTillSameWeekDay: { label: "Следующая неделя, до такого же дня недели", group: "other", section: "nextTillSame", ...y.weekTillSameWeekday(r, 1) },
|
|
6234
6239
|
nextTenDaysTillSameDayNumber: {
|
|
@@ -6241,13 +6246,13 @@ class Ci {
|
|
|
6241
6246
|
label: "Следующий месяц, до такой же даты",
|
|
6242
6247
|
group: "other",
|
|
6243
6248
|
section: "nextTillSame",
|
|
6244
|
-
...y.intervalTillSameDate(c,
|
|
6249
|
+
...y.intervalTillSameDate(c, U($(r, 1)), r)
|
|
6245
6250
|
},
|
|
6246
6251
|
nextQuarterTillSameDate: {
|
|
6247
6252
|
label: "Следующий квартал, до такой же даты",
|
|
6248
6253
|
group: "other",
|
|
6249
6254
|
section: "nextTillSame",
|
|
6250
|
-
...y.intervalTillSameDate(u, ke(
|
|
6255
|
+
...y.intervalTillSameDate(u, ke(or(r, 1)), r)
|
|
6251
6256
|
},
|
|
6252
6257
|
nextHalfYearTillSameDate: {
|
|
6253
6258
|
label: "Следующее полугодие, до такой же даты",
|
|
@@ -6259,14 +6264,14 @@ class Ci {
|
|
|
6259
6264
|
label: "Следующий год, до такой же даты",
|
|
6260
6265
|
group: "other",
|
|
6261
6266
|
section: "nextTillSame",
|
|
6262
|
-
...y.intervalTillSameDate(g, ue(
|
|
6267
|
+
...y.intervalTillSameDate(g, ue(nr(r, 1)), r)
|
|
6263
6268
|
},
|
|
6264
6269
|
last7Days: { label: "Последние 7 дней", group: "other", section: "rollingDays", from: ge(je(r, 6)), to: i },
|
|
6265
6270
|
next7Days: { label: "Следующие 7 дней", group: "other", section: "rollingDays", from: t, to: z(re(r, 6)) }
|
|
6266
6271
|
};
|
|
6267
6272
|
}
|
|
6268
6273
|
}
|
|
6269
|
-
const
|
|
6274
|
+
const bi = [
|
|
6270
6275
|
{ key: "day", label: "День" },
|
|
6271
6276
|
{ key: "week", label: "Неделя" },
|
|
6272
6277
|
{ key: "decade", label: "Декада" },
|
|
@@ -6275,18 +6280,18 @@ const Di = [
|
|
|
6275
6280
|
{ key: "halfYear", label: "Полугодие" },
|
|
6276
6281
|
{ key: "year", label: "Год" },
|
|
6277
6282
|
{ key: "other", label: "Прочее" }
|
|
6278
|
-
],
|
|
6283
|
+
], Ai = [
|
|
6279
6284
|
{ key: "fromBeginning", label: "С начала периода" },
|
|
6280
6285
|
{ key: "tillEnd", label: "До конца периода" },
|
|
6281
6286
|
{ key: "lastTillSame", label: "Прошлые, до такой же даты" },
|
|
6282
6287
|
{ key: "nextTillSame", label: "Следующие, до такой же даты" },
|
|
6283
6288
|
{ key: "rollingDays", label: "7 дней" }
|
|
6284
6289
|
];
|
|
6285
|
-
function
|
|
6286
|
-
const r =
|
|
6290
|
+
function Si(n) {
|
|
6291
|
+
const r = zt(n * 100);
|
|
6287
6292
|
return `${r >= 0 ? "+" : ""}${r}%`;
|
|
6288
6293
|
}
|
|
6289
|
-
class
|
|
6294
|
+
class Pt {
|
|
6290
6295
|
/**
|
|
6291
6296
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
6292
6297
|
*
|
|
@@ -6302,7 +6307,7 @@ class Ct {
|
|
|
6302
6307
|
*/
|
|
6303
6308
|
static getProductMultiplicity(r) {
|
|
6304
6309
|
var e, t;
|
|
6305
|
-
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;
|
|
6306
6311
|
}
|
|
6307
6312
|
/**
|
|
6308
6313
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -6346,7 +6351,7 @@ const ye = class ye extends h {
|
|
|
6346
6351
|
*/
|
|
6347
6352
|
cacheResponse(e, t) {
|
|
6348
6353
|
ye.responseDataCache.set(e, {
|
|
6349
|
-
validTo:
|
|
6354
|
+
validTo: ts(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
6350
6355
|
val: t
|
|
6351
6356
|
});
|
|
6352
6357
|
}
|
|
@@ -6370,8 +6375,8 @@ const ye = class ye extends h {
|
|
|
6370
6375
|
* Кэш результатов запросов.
|
|
6371
6376
|
*/
|
|
6372
6377
|
s(ye, "responseDataCache", /* @__PURE__ */ new Map());
|
|
6373
|
-
let
|
|
6374
|
-
class
|
|
6378
|
+
let Ee = ye;
|
|
6379
|
+
class di {
|
|
6375
6380
|
/**
|
|
6376
6381
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
6377
6382
|
*/
|
|
@@ -6387,12 +6392,12 @@ class Ai {
|
|
|
6387
6392
|
return r.id === 0 && r.guid === "-undefined-";
|
|
6388
6393
|
}
|
|
6389
6394
|
}
|
|
6390
|
-
class
|
|
6395
|
+
class bt extends Ee {
|
|
6391
6396
|
/**
|
|
6392
6397
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
6393
6398
|
*/
|
|
6394
6399
|
async getManagers() {
|
|
6395
|
-
const r = "/internal/managers", e =
|
|
6400
|
+
const r = "/internal/managers", e = Ee.getCachedResponse(r);
|
|
6396
6401
|
if (e)
|
|
6397
6402
|
return e;
|
|
6398
6403
|
const t = await this.get(r), i = _.instanceListInitializer(Z, t.data);
|
|
@@ -6410,7 +6415,7 @@ class Dt extends Ue {
|
|
|
6410
6415
|
}
|
|
6411
6416
|
}
|
|
6412
6417
|
var xe = /* @__PURE__ */ ((n) => (n.Processing = "processing", n.Completed = "completed", n.Error = "error", n.NeedsActualization = "needs_actualization", n))(xe || {});
|
|
6413
|
-
class
|
|
6418
|
+
class $s {
|
|
6414
6419
|
/**
|
|
6415
6420
|
* Инициализирует экземпляр класса {@link OfferActualization}.
|
|
6416
6421
|
*
|
|
@@ -6433,7 +6438,7 @@ class bs {
|
|
|
6433
6438
|
* @inheritDoc
|
|
6434
6439
|
*/
|
|
6435
6440
|
s(this, "error");
|
|
6436
|
-
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;
|
|
6437
6442
|
}
|
|
6438
6443
|
/**
|
|
6439
6444
|
* @inheritDoc
|
|
@@ -6466,7 +6471,7 @@ class bs {
|
|
|
6466
6471
|
return this.status === xe.Completed && !this.isOutdatedAt(r);
|
|
6467
6472
|
}
|
|
6468
6473
|
}
|
|
6469
|
-
class
|
|
6474
|
+
class At extends G {
|
|
6470
6475
|
/**
|
|
6471
6476
|
* Инициализирует экземпляр класса {@link OfferShortInfo}.
|
|
6472
6477
|
*
|
|
@@ -6502,10 +6507,10 @@ class Tt extends G {
|
|
|
6502
6507
|
* @inheritDoc
|
|
6503
6508
|
*/
|
|
6504
6509
|
s(this, "file");
|
|
6505
|
-
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;
|
|
6506
6511
|
}
|
|
6507
6512
|
}
|
|
6508
|
-
class
|
|
6513
|
+
class ks extends Ir {
|
|
6509
6514
|
/**
|
|
6510
6515
|
* Инициализирует экземпляр класса {@link ProfstroyOfferItem}.
|
|
6511
6516
|
*
|
|
@@ -6544,7 +6549,7 @@ class Ss extends Or {
|
|
|
6544
6549
|
return !this.isProductStub && !this.isIgnored && J(this.lineError);
|
|
6545
6550
|
}
|
|
6546
6551
|
}
|
|
6547
|
-
class F extends
|
|
6552
|
+
class F extends At {
|
|
6548
6553
|
/**
|
|
6549
6554
|
* Инициализирует экземпляр класса {@link Offer}.
|
|
6550
6555
|
*
|
|
@@ -6561,11 +6566,11 @@ class F extends Tt {
|
|
|
6561
6566
|
*/
|
|
6562
6567
|
s(this, "products");
|
|
6563
6568
|
this.sum = e.sum ?? 0, this.products = (e.products ?? []).map(
|
|
6564
|
-
(t) => e.isProfstroy ? new
|
|
6569
|
+
(t) => e.isProfstroy ? new ks(t) : new Ir(t)
|
|
6565
6570
|
);
|
|
6566
6571
|
}
|
|
6567
6572
|
}
|
|
6568
|
-
class
|
|
6573
|
+
class $i extends Fe {
|
|
6569
6574
|
/**
|
|
6570
6575
|
* Инициализирует экземпляр класса {@link OffersListFilters}.
|
|
6571
6576
|
*
|
|
@@ -6588,8 +6593,8 @@ class bi extends Fe {
|
|
|
6588
6593
|
/**
|
|
6589
6594
|
* @inheritDoc
|
|
6590
6595
|
*/
|
|
6591
|
-
s(this, "createdAt", new
|
|
6592
|
-
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);
|
|
6593
6598
|
}
|
|
6594
6599
|
/**
|
|
6595
6600
|
* @inheritDoc
|
|
@@ -6606,9 +6611,9 @@ class bi extends Fe {
|
|
|
6606
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;
|
|
6607
6612
|
}
|
|
6608
6613
|
}
|
|
6609
|
-
class
|
|
6614
|
+
class rr extends D {
|
|
6610
6615
|
}
|
|
6611
|
-
class
|
|
6616
|
+
class St extends Tt {
|
|
6612
6617
|
/**
|
|
6613
6618
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
6614
6619
|
*
|
|
@@ -6678,10 +6683,10 @@ class Pt extends Rt {
|
|
|
6678
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(),
|
|
6679
6684
|
address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new _e(e.delivery.address) : void 0,
|
|
6680
6685
|
warehouse: (a = e == null ? void 0 : e.delivery) != null && a.warehouse ? new Me(e.delivery.warehouse) : void 0
|
|
6681
|
-
}, 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;
|
|
6682
6687
|
}
|
|
6683
6688
|
}
|
|
6684
|
-
class
|
|
6689
|
+
class Os extends ut {
|
|
6685
6690
|
/**
|
|
6686
6691
|
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
6687
6692
|
*
|
|
@@ -6741,7 +6746,7 @@ class ds extends ot {
|
|
|
6741
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"));
|
|
6742
6747
|
}
|
|
6743
6748
|
}
|
|
6744
|
-
class I extends
|
|
6749
|
+
class I extends St {
|
|
6745
6750
|
/**
|
|
6746
6751
|
* Инициализирует экземпляр класса {@link Order}.
|
|
6747
6752
|
*
|
|
@@ -6809,11 +6814,11 @@ class I extends Pt {
|
|
|
6809
6814
|
this.products = (e.products ?? []).map((i) => {
|
|
6810
6815
|
var c;
|
|
6811
6816
|
const o = i.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === i.replacementId) : void 0;
|
|
6812
|
-
return new
|
|
6813
|
-
}), 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;
|
|
6814
6819
|
}
|
|
6815
6820
|
}
|
|
6816
|
-
class
|
|
6821
|
+
class ki extends Y {
|
|
6817
6822
|
/**
|
|
6818
6823
|
* Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
|
|
6819
6824
|
*
|
|
@@ -6825,7 +6830,7 @@ class Si extends Y {
|
|
|
6825
6830
|
* @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get_list
|
|
6826
6831
|
*/
|
|
6827
6832
|
getOffers(r, e, t, i = void 0) {
|
|
6828
|
-
return this.getTypedPaginated(
|
|
6833
|
+
return this.getTypedPaginated(At, "/internal/orders/offers", r, e, t, {}, void 0, i);
|
|
6829
6834
|
}
|
|
6830
6835
|
/**
|
|
6831
6836
|
* Создаёт заказ-черновик из содержимого корзины клиента и возвращает данные созданной записи.
|
|
@@ -7049,7 +7054,7 @@ class Si extends Y {
|
|
|
7049
7054
|
return this.post(`/internal/orders/offers/${r}/send`, e);
|
|
7050
7055
|
}
|
|
7051
7056
|
}
|
|
7052
|
-
class
|
|
7057
|
+
class Oi {
|
|
7053
7058
|
/**
|
|
7054
7059
|
* Возвращает признак того, что запись создана из файла выгрузки программы «Профстрой».
|
|
7055
7060
|
*
|
|
@@ -7068,8 +7073,8 @@ class di {
|
|
|
7068
7073
|
return !m(r) && r.isProfstroy === !0 && !m(r.actualization);
|
|
7069
7074
|
}
|
|
7070
7075
|
}
|
|
7071
|
-
var
|
|
7072
|
-
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 {
|
|
7073
7078
|
/**
|
|
7074
7079
|
* Инициализирует экземпляр класса {@link OrderEditorData}.
|
|
7075
7080
|
*
|
|
@@ -7136,11 +7141,11 @@ class $i {
|
|
|
7136
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;
|
|
7137
7142
|
}
|
|
7138
7143
|
}
|
|
7139
|
-
class
|
|
7144
|
+
class dt extends D {
|
|
7140
7145
|
}
|
|
7141
|
-
class
|
|
7146
|
+
class $t extends D {
|
|
7142
7147
|
}
|
|
7143
|
-
class
|
|
7148
|
+
class Ii extends Fe {
|
|
7144
7149
|
/**
|
|
7145
7150
|
* Инициализирует экземпляр класса {@link OrdersListFilters}.
|
|
7146
7151
|
*
|
|
@@ -7168,7 +7173,7 @@ class ki extends Fe {
|
|
|
7168
7173
|
/**
|
|
7169
7174
|
* @inheritDoc
|
|
7170
7175
|
*/
|
|
7171
|
-
s(this, "createdAt", new
|
|
7176
|
+
s(this, "createdAt", new A());
|
|
7172
7177
|
/**
|
|
7173
7178
|
* @inheritDoc
|
|
7174
7179
|
*/
|
|
@@ -7176,7 +7181,7 @@ class ki extends Fe {
|
|
|
7176
7181
|
/**
|
|
7177
7182
|
* @inheritDoc
|
|
7178
7183
|
*/
|
|
7179
|
-
s(this, "deliveryDate", new
|
|
7184
|
+
s(this, "deliveryDate", new A());
|
|
7180
7185
|
/**
|
|
7181
7186
|
* @inheritDoc
|
|
7182
7187
|
*/
|
|
@@ -7204,7 +7209,7 @@ class ki extends Fe {
|
|
|
7204
7209
|
/**
|
|
7205
7210
|
* @inheritDoc
|
|
7206
7211
|
*/
|
|
7207
|
-
s(this, "attachedAt", new
|
|
7212
|
+
s(this, "attachedAt", new A());
|
|
7208
7213
|
/**
|
|
7209
7214
|
* @inheritDoc
|
|
7210
7215
|
*/
|
|
@@ -7241,7 +7246,7 @@ class ki extends Fe {
|
|
|
7241
7246
|
* @inheritDoc
|
|
7242
7247
|
*/
|
|
7243
7248
|
s(this, "onlyMyRegions");
|
|
7244
|
-
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;
|
|
7245
7250
|
}
|
|
7246
7251
|
/**
|
|
7247
7252
|
* @inheritDoc
|
|
@@ -7292,7 +7297,7 @@ class ki extends Fe {
|
|
|
7292
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;
|
|
7293
7298
|
}
|
|
7294
7299
|
}
|
|
7295
|
-
class
|
|
7300
|
+
class Is {
|
|
7296
7301
|
/**
|
|
7297
7302
|
* Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
|
|
7298
7303
|
*
|
|
@@ -7315,10 +7320,10 @@ class ks {
|
|
|
7315
7320
|
* @inheritDoc
|
|
7316
7321
|
*/
|
|
7317
7322
|
s(this, "createdAt");
|
|
7318
|
-
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();
|
|
7319
7324
|
}
|
|
7320
7325
|
}
|
|
7321
|
-
class
|
|
7326
|
+
class xi extends Y {
|
|
7322
7327
|
/**
|
|
7323
7328
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
7324
7329
|
*
|
|
@@ -7330,7 +7335,7 @@ class Oi extends Y {
|
|
|
7330
7335
|
* @see /doc/api/internal#/Заказы/api_internal_orders_get_list
|
|
7331
7336
|
*/
|
|
7332
7337
|
getOrders(r, e, t, i = void 0) {
|
|
7333
|
-
return this.getTypedPaginated(
|
|
7338
|
+
return this.getTypedPaginated(St, "/internal/orders", r, e, t, {}, void 0, i);
|
|
7334
7339
|
}
|
|
7335
7340
|
/**
|
|
7336
7341
|
* Возвращает количество заказов, соответствующих указанным фильтрам.
|
|
@@ -7543,7 +7548,7 @@ class Oi extends Y {
|
|
|
7543
7548
|
* @see /doc/api/internal#/Заказы/api_internal_orders_status_history_get
|
|
7544
7549
|
*/
|
|
7545
7550
|
getOrderStatusHistory(r) {
|
|
7546
|
-
return this.getTypedList(
|
|
7551
|
+
return this.getTypedList(Is, `/internal/orders/${r}/history`);
|
|
7547
7552
|
}
|
|
7548
7553
|
/**
|
|
7549
7554
|
* Возвращает содержимое печатной формы заказа в формате HTML.
|
|
@@ -7685,8 +7690,8 @@ class Oi extends Y {
|
|
|
7685
7690
|
);
|
|
7686
7691
|
}
|
|
7687
7692
|
}
|
|
7688
|
-
const
|
|
7689
|
-
class
|
|
7693
|
+
const _i = Symbol("currentOrder");
|
|
7694
|
+
class mr {
|
|
7690
7695
|
/**
|
|
7691
7696
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
7692
7697
|
*
|
|
@@ -7713,12 +7718,12 @@ class fr {
|
|
|
7713
7718
|
* Источник клиентской цены.
|
|
7714
7719
|
*/
|
|
7715
7720
|
s(this, "source");
|
|
7716
|
-
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;
|
|
7717
7722
|
}
|
|
7718
7723
|
}
|
|
7719
|
-
const
|
|
7724
|
+
const yr = (n) => {
|
|
7720
7725
|
var r, e, t, i, o;
|
|
7721
|
-
return n ?
|
|
7726
|
+
return n ? st(
|
|
7722
7727
|
{
|
|
7723
7728
|
cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
|
|
7724
7729
|
clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
|
|
@@ -7727,13 +7732,13 @@ const mr = (n) => {
|
|
|
7727
7732
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
7728
7733
|
hideNotActive: n.hideNotActive
|
|
7729
7734
|
},
|
|
7730
|
-
(c) => m(c) || (W(c) ||
|
|
7735
|
+
(c) => m(c) || (W(c) || Je(c)) && J(c)
|
|
7731
7736
|
) : {};
|
|
7732
|
-
},
|
|
7737
|
+
}, Qr = (n) => {
|
|
7733
7738
|
const r = {};
|
|
7734
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;
|
|
7735
7740
|
};
|
|
7736
|
-
class
|
|
7741
|
+
class Ni extends h {
|
|
7737
7742
|
/**
|
|
7738
7743
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
7739
7744
|
*
|
|
@@ -7747,10 +7752,10 @@ class Ii extends h {
|
|
|
7747
7752
|
return this.get(
|
|
7748
7753
|
`/internal/price/products/${r}/analyze`,
|
|
7749
7754
|
{
|
|
7750
|
-
...
|
|
7751
|
-
filters:
|
|
7755
|
+
...Qr(e),
|
|
7756
|
+
filters: yr(t)
|
|
7752
7757
|
},
|
|
7753
|
-
(i) => _.instanceListInitializer(
|
|
7758
|
+
(i) => _.instanceListInitializer(mr, i.data)
|
|
7754
7759
|
);
|
|
7755
7760
|
}
|
|
7756
7761
|
/**
|
|
@@ -7766,10 +7771,10 @@ class Ii extends h {
|
|
|
7766
7771
|
return this.get(
|
|
7767
7772
|
`/internal/price/categories/${r}/analyze`,
|
|
7768
7773
|
{
|
|
7769
|
-
...
|
|
7770
|
-
filters:
|
|
7774
|
+
...Qr(e),
|
|
7775
|
+
filters: yr(t)
|
|
7771
7776
|
},
|
|
7772
|
-
(i) => _.instanceListInitializer(
|
|
7777
|
+
(i) => _.instanceListInitializer(mr, i.data)
|
|
7773
7778
|
);
|
|
7774
7779
|
}
|
|
7775
7780
|
/**
|
|
@@ -7788,13 +7793,13 @@ class Ii extends h {
|
|
|
7788
7793
|
`/internal/price/categories/${r}/analyze/square`,
|
|
7789
7794
|
{
|
|
7790
7795
|
...e,
|
|
7791
|
-
filters:
|
|
7796
|
+
filters: yr(t)
|
|
7792
7797
|
},
|
|
7793
|
-
(i) => _.instanceListInitializer(
|
|
7798
|
+
(i) => _.instanceListInitializer(mr, i.data)
|
|
7794
7799
|
);
|
|
7795
7800
|
}
|
|
7796
7801
|
}
|
|
7797
|
-
class
|
|
7802
|
+
class xs {
|
|
7798
7803
|
/**
|
|
7799
7804
|
* Инициализирует экземпляр класса {@link PriceHistoryItem}.
|
|
7800
7805
|
*
|
|
@@ -7841,10 +7846,10 @@ class Os {
|
|
|
7841
7846
|
* @inheritDoc
|
|
7842
7847
|
*/
|
|
7843
7848
|
s(this, "currency");
|
|
7844
|
-
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;
|
|
7845
7850
|
}
|
|
7846
7851
|
}
|
|
7847
|
-
class
|
|
7852
|
+
class _s extends Ue {
|
|
7848
7853
|
/**
|
|
7849
7854
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
7850
7855
|
*
|
|
@@ -7856,10 +7861,10 @@ class Ls extends Ee {
|
|
|
7856
7861
|
* @inheritDoc
|
|
7857
7862
|
*/
|
|
7858
7863
|
s(this, "history");
|
|
7859
|
-
this.history = De(e.history, (t) => new
|
|
7864
|
+
this.history = De(e.history, (t) => new xs(t));
|
|
7860
7865
|
}
|
|
7861
7866
|
}
|
|
7862
|
-
class
|
|
7867
|
+
class qi extends h {
|
|
7863
7868
|
/**
|
|
7864
7869
|
* Возвращает данные об истории изменения цен.
|
|
7865
7870
|
*
|
|
@@ -7869,21 +7874,21 @@ class xi extends h {
|
|
|
7869
7874
|
*/
|
|
7870
7875
|
getProductPriceHistory(r) {
|
|
7871
7876
|
var o, c, u, p, g;
|
|
7872
|
-
const e = O().config.dateFormats.api, t =
|
|
7877
|
+
const e = O().config.dateFormats.api, t = st(
|
|
7873
7878
|
Ne(r, {
|
|
7874
7879
|
costDate: {
|
|
7875
|
-
from:
|
|
7876
|
-
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
|
|
7877
7882
|
}
|
|
7878
7883
|
}),
|
|
7879
|
-
(a) => m(a) || (W(a) ||
|
|
7884
|
+
(a) => m(a) || (W(a) || Je(a)) && J(a)
|
|
7880
7885
|
), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
|
|
7881
7886
|
return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((a) => [
|
|
7882
|
-
new
|
|
7887
|
+
new _s(Ne(a[0], { history: a }))
|
|
7883
7888
|
]);
|
|
7884
7889
|
}
|
|
7885
7890
|
}
|
|
7886
|
-
class
|
|
7891
|
+
class Jr {
|
|
7887
7892
|
/**
|
|
7888
7893
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
7889
7894
|
*
|
|
@@ -7898,10 +7903,10 @@ class Yr {
|
|
|
7898
7903
|
* Список рекомендованных категорий продуктов.
|
|
7899
7904
|
*/
|
|
7900
7905
|
s(this, "productCategories", []);
|
|
7901
|
-
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)));
|
|
7902
7907
|
}
|
|
7903
7908
|
}
|
|
7904
|
-
class
|
|
7909
|
+
class Ui extends h {
|
|
7905
7910
|
/**
|
|
7906
7911
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
7907
7912
|
*
|
|
@@ -7909,7 +7914,7 @@ class _i extends h {
|
|
|
7909
7914
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
7910
7915
|
*/
|
|
7911
7916
|
getProductCategoryRecommendations(r) {
|
|
7912
|
-
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));
|
|
7913
7918
|
}
|
|
7914
7919
|
/**
|
|
7915
7920
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -7918,7 +7923,7 @@ class _i extends h {
|
|
|
7918
7923
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
7919
7924
|
*/
|
|
7920
7925
|
getProductRecommendations(r) {
|
|
7921
|
-
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));
|
|
7922
7927
|
}
|
|
7923
7928
|
/**
|
|
7924
7929
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -7947,12 +7952,12 @@ class _i extends h {
|
|
|
7947
7952
|
});
|
|
7948
7953
|
}
|
|
7949
7954
|
}
|
|
7950
|
-
var
|
|
7951
|
-
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 {
|
|
7952
7957
|
}
|
|
7953
|
-
class
|
|
7958
|
+
class Es extends D {
|
|
7954
7959
|
}
|
|
7955
|
-
class
|
|
7960
|
+
class Kr extends D {
|
|
7956
7961
|
/**
|
|
7957
7962
|
* Инициализирует экземпляр класса {@link CityWithUserRegion}.
|
|
7958
7963
|
*
|
|
@@ -7965,18 +7970,18 @@ class Qr extends D {
|
|
|
7965
7970
|
* @inheritDoc
|
|
7966
7971
|
*/
|
|
7967
7972
|
s(this, "userRegions");
|
|
7968
|
-
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))) ?? [];
|
|
7969
7974
|
}
|
|
7970
7975
|
}
|
|
7971
|
-
class
|
|
7976
|
+
class Fs extends D {
|
|
7972
7977
|
}
|
|
7973
|
-
class
|
|
7978
|
+
class Ms extends D {
|
|
7974
7979
|
}
|
|
7975
|
-
class
|
|
7980
|
+
class Hs extends D {
|
|
7976
7981
|
}
|
|
7977
|
-
class
|
|
7982
|
+
class Bs extends D {
|
|
7978
7983
|
}
|
|
7979
|
-
class
|
|
7984
|
+
class Ei {
|
|
7980
7985
|
/**
|
|
7981
7986
|
* Генерирует и возвращает данные-заглушку неопределённой записи справочника.
|
|
7982
7987
|
*
|
|
@@ -7995,9 +8000,9 @@ class Ni {
|
|
|
7995
8000
|
return r.id === 0 && r.slug === "-undefined-";
|
|
7996
8001
|
}
|
|
7997
8002
|
}
|
|
7998
|
-
class
|
|
8003
|
+
class kt extends D {
|
|
7999
8004
|
}
|
|
8000
|
-
const B = class B extends
|
|
8005
|
+
const B = class B extends Ee {
|
|
8001
8006
|
/**
|
|
8002
8007
|
* Исключает из списка записей справочника местоположений служебную запись
|
|
8003
8008
|
* неизвестного региона или города.
|
|
@@ -8015,26 +8020,26 @@ const B = class B extends Ue {
|
|
|
8015
8020
|
* и использовать в случае аналогичных запросов.
|
|
8016
8021
|
*/
|
|
8017
8022
|
getReference(r, e = !1) {
|
|
8018
|
-
return this.getTypedDataArrayRequester(
|
|
8023
|
+
return this.getTypedDataArrayRequester(Us, `/internal/references/${r}`, e);
|
|
8019
8024
|
}
|
|
8020
8025
|
/**
|
|
8021
8026
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
8022
8027
|
* первичного интереса.
|
|
8023
8028
|
*/
|
|
8024
8029
|
getChannelPrimaryInterest() {
|
|
8025
|
-
return this.getTypedDataArrayRequester(
|
|
8030
|
+
return this.getTypedDataArrayRequester(Ct, "/internal/references/channel-primary-interest", !0);
|
|
8026
8031
|
}
|
|
8027
8032
|
/**
|
|
8028
8033
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
8029
8034
|
*/
|
|
8030
8035
|
getContactPositions() {
|
|
8031
|
-
return this.getTypedDataArrayRequester(
|
|
8036
|
+
return this.getTypedDataArrayRequester(Fs, "/internal/references/contact-position", !0);
|
|
8032
8037
|
}
|
|
8033
8038
|
/**
|
|
8034
8039
|
* Возвращает {@link Promise} для получения справочника списка направлений кураторства.
|
|
8035
8040
|
*/
|
|
8036
8041
|
getCuratedDirection() {
|
|
8037
|
-
return this.getTypedDataArrayRequester(
|
|
8042
|
+
return this.getTypedDataArrayRequester(_r, "/internal/references/curated-direction", !0);
|
|
8038
8043
|
}
|
|
8039
8044
|
/**
|
|
8040
8045
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
@@ -8059,49 +8064,49 @@ const B = class B extends Ue {
|
|
|
8059
8064
|
* Возвращает {@link Promise} для получения справочника операторов.
|
|
8060
8065
|
*/
|
|
8061
8066
|
getOperators() {
|
|
8062
|
-
return this.getTypedDataArrayRequester(
|
|
8067
|
+
return this.getTypedDataArrayRequester(dt, "/internal/references/operator", !0);
|
|
8063
8068
|
}
|
|
8064
8069
|
/**
|
|
8065
8070
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
8066
8071
|
*/
|
|
8067
8072
|
getOrderPaymentStatuses() {
|
|
8068
|
-
return this.getTypedDataArrayRequester(
|
|
8073
|
+
return this.getTypedDataArrayRequester(Ms, "/public/references/order-payment-status", !0);
|
|
8069
8074
|
}
|
|
8070
8075
|
/**
|
|
8071
8076
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
8072
8077
|
*/
|
|
8073
8078
|
getOrderStatuses() {
|
|
8074
|
-
return this.getTypedDataArrayRequester(
|
|
8079
|
+
return this.getTypedDataArrayRequester(rr, "/internal/references/order-status", !0);
|
|
8075
8080
|
}
|
|
8076
8081
|
/**
|
|
8077
8082
|
* Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
|
|
8078
8083
|
*/
|
|
8079
8084
|
getOrderStatusDetails() {
|
|
8080
|
-
return this.getTypedDataArrayRequester(
|
|
8085
|
+
return this.getTypedDataArrayRequester(Hs, "/internal/references/order-status-detail", !0);
|
|
8081
8086
|
}
|
|
8082
8087
|
/**
|
|
8083
8088
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
8084
8089
|
*/
|
|
8085
8090
|
getPaymentTypes() {
|
|
8086
|
-
return this.getTypedDataArrayRequester(
|
|
8091
|
+
return this.getTypedDataArrayRequester($t, "/public/references/payment-type", !0);
|
|
8087
8092
|
}
|
|
8088
8093
|
/**
|
|
8089
8094
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
8090
8095
|
*/
|
|
8091
8096
|
getResourceTypes() {
|
|
8092
|
-
return this.getTypedDataArrayRequester(
|
|
8097
|
+
return this.getTypedDataArrayRequester(kt, "/internal/references/resource-type", !0);
|
|
8093
8098
|
}
|
|
8094
8099
|
/**
|
|
8095
8100
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
8096
8101
|
*/
|
|
8097
8102
|
getSalesDirections() {
|
|
8098
|
-
return this.getTypedDataArrayRequester(
|
|
8103
|
+
return this.getTypedDataArrayRequester(E, "/public/references/sales-direction", !0);
|
|
8099
8104
|
}
|
|
8100
8105
|
/**
|
|
8101
8106
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
8102
8107
|
*/
|
|
8103
8108
|
getSourcePrimaryInterest() {
|
|
8104
|
-
return this.getTypedDataArrayRequester(
|
|
8109
|
+
return this.getTypedDataArrayRequester(Dt, "/internal/references/source-primary-interest", !0);
|
|
8105
8110
|
}
|
|
8106
8111
|
/**
|
|
8107
8112
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -8117,7 +8122,7 @@ const B = class B extends Ue {
|
|
|
8117
8122
|
* @param term Терм поиска.
|
|
8118
8123
|
*/
|
|
8119
8124
|
searchRegion(r) {
|
|
8120
|
-
return this.getTypedDataArrayRequester(
|
|
8125
|
+
return this.getTypedDataArrayRequester(ve, `/internal/references/region-with-country/search?term=${r}`);
|
|
8121
8126
|
}
|
|
8122
8127
|
/**
|
|
8123
8128
|
* Возвращает {@link Promise} для получения справочника регионов указанной страны.
|
|
@@ -8127,7 +8132,7 @@ const B = class B extends Ue {
|
|
|
8127
8132
|
* @param countryId Идентификатор страны.
|
|
8128
8133
|
*/
|
|
8129
8134
|
getRegionsByCountry(r) {
|
|
8130
|
-
return this.getTypedDataArrayRequester(
|
|
8135
|
+
return this.getTypedDataArrayRequester(ve, "/internal/references/region", !1, { params: { countryId: r } }).then(
|
|
8131
8136
|
(e) => B.withoutUnknownLocation(e)
|
|
8132
8137
|
);
|
|
8133
8138
|
}
|
|
@@ -8139,7 +8144,7 @@ const B = class B extends Ue {
|
|
|
8139
8144
|
* @param regionId Идентификатор региона.
|
|
8140
8145
|
*/
|
|
8141
8146
|
getCitiesByRegion(r) {
|
|
8142
|
-
return this.getTypedDataArrayRequester(
|
|
8147
|
+
return this.getTypedDataArrayRequester(Es, "/internal/references/city", !1, { params: { regionId: r } }).then(
|
|
8143
8148
|
(e) => B.withoutUnknownLocation(e)
|
|
8144
8149
|
);
|
|
8145
8150
|
}
|
|
@@ -8150,7 +8155,7 @@ const B = class B extends Ue {
|
|
|
8150
8155
|
* @param regionId Идентификатор региона.
|
|
8151
8156
|
*/
|
|
8152
8157
|
getCitiesWithUserRegionByRegion(r) {
|
|
8153
|
-
return this.getTypedDataArrayRequester(
|
|
8158
|
+
return this.getTypedDataArrayRequester(Kr, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
|
|
8154
8159
|
(e) => B.withoutUnknownLocation(e)
|
|
8155
8160
|
);
|
|
8156
8161
|
}
|
|
@@ -8179,7 +8184,7 @@ const B = class B extends Ue {
|
|
|
8179
8184
|
* @param signal Сигнал отмены запроса.
|
|
8180
8185
|
*/
|
|
8181
8186
|
searchCityWithUserRegion(r, e = void 0) {
|
|
8182
|
-
return this.getTypedDataArrayRequester(
|
|
8187
|
+
return this.getTypedDataArrayRequester(Kr, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
|
|
8183
8188
|
(t) => B.withoutUnknownLocation(t)
|
|
8184
8189
|
);
|
|
8185
8190
|
}
|
|
@@ -8189,7 +8194,7 @@ const B = class B extends Ue {
|
|
|
8189
8194
|
* @param term Терм поиска.
|
|
8190
8195
|
*/
|
|
8191
8196
|
searchCountry(r) {
|
|
8192
|
-
return this.getTypedDataArrayRequester(
|
|
8197
|
+
return this.getTypedDataArrayRequester(we, `/internal/references/country/search?term=${r}`);
|
|
8193
8198
|
}
|
|
8194
8199
|
/**
|
|
8195
8200
|
* Возвращает {@link Promise} для получения справочника типов доставки.
|
|
@@ -8207,7 +8212,7 @@ const B = class B extends Ue {
|
|
|
8207
8212
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
8208
8213
|
*/
|
|
8209
8214
|
getPropertyTypes() {
|
|
8210
|
-
return this.getTypedDataArrayRequester(
|
|
8215
|
+
return this.getTypedDataArrayRequester(yt, "/internal/references/property-type", !0);
|
|
8211
8216
|
}
|
|
8212
8217
|
/**
|
|
8213
8218
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
@@ -8219,7 +8224,7 @@ const B = class B extends Ue {
|
|
|
8219
8224
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
8220
8225
|
*/
|
|
8221
8226
|
getProductFileType() {
|
|
8222
|
-
return this.getTypedDataArrayRequester(
|
|
8227
|
+
return this.getTypedDataArrayRequester(Bs, "/public/references/product-file-type", !0);
|
|
8223
8228
|
}
|
|
8224
8229
|
};
|
|
8225
8230
|
/**
|
|
@@ -8229,7 +8234,7 @@ const B = class B extends Ue {
|
|
|
8229
8234
|
s(B, "unknownLocationId", 1);
|
|
8230
8235
|
let S = B;
|
|
8231
8236
|
const d = ne("common.references_private", () => {
|
|
8232
|
-
const n =
|
|
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);
|
|
8233
8238
|
return {
|
|
8234
8239
|
/**
|
|
8235
8240
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -8282,7 +8287,7 @@ const d = ne("common.references_private", () => {
|
|
|
8282
8287
|
/**
|
|
8283
8288
|
* Справочник групп партнеров.
|
|
8284
8289
|
*/
|
|
8285
|
-
partnerGroupReference:
|
|
8290
|
+
partnerGroupReference: Ae,
|
|
8286
8291
|
/**
|
|
8287
8292
|
* Справочник типов файлов продукктов/категорий.
|
|
8288
8293
|
*/
|
|
@@ -8298,112 +8303,112 @@ const d = ne("common.references_private", () => {
|
|
|
8298
8303
|
/**
|
|
8299
8304
|
* Справочник источников первичного интереса.
|
|
8300
8305
|
*/
|
|
8301
|
-
sourcePrimaryInterestReference:
|
|
8306
|
+
sourcePrimaryInterestReference: tr,
|
|
8302
8307
|
/**
|
|
8303
8308
|
* Справочник складов.
|
|
8304
8309
|
*/
|
|
8305
|
-
warehousesReference:
|
|
8310
|
+
warehousesReference: sr,
|
|
8306
8311
|
/**
|
|
8307
8312
|
* Справочник типов свойств.
|
|
8308
8313
|
*/
|
|
8309
|
-
propertyTypesReference:
|
|
8314
|
+
propertyTypesReference: ir,
|
|
8310
8315
|
/**
|
|
8311
8316
|
* Справочник коэффициентов цен.
|
|
8312
8317
|
*/
|
|
8313
8318
|
priceCoefficientsReference: l
|
|
8314
8319
|
};
|
|
8315
|
-
}),
|
|
8316
|
-
const n =
|
|
8320
|
+
}), Fi = ne("common.references", () => {
|
|
8321
|
+
const n = b(() => {
|
|
8317
8322
|
const l = d();
|
|
8318
8323
|
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(S).getChannelPrimaryInterest().then((f) => {
|
|
8319
8324
|
l.channelPrimaryInterestReference = f;
|
|
8320
8325
|
}).catch(T)), l.channelPrimaryInterestReference;
|
|
8321
|
-
}), r =
|
|
8326
|
+
}), r = b(() => {
|
|
8322
8327
|
const l = d();
|
|
8323
8328
|
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(S).getContactPositions().then((f) => {
|
|
8324
8329
|
l.contactPositionsReference = f;
|
|
8325
8330
|
}).catch(T)), l.contactPositionsReference;
|
|
8326
|
-
}), e =
|
|
8331
|
+
}), e = b(() => {
|
|
8327
8332
|
const l = d();
|
|
8328
8333
|
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(S).getCurrency().then((f) => {
|
|
8329
8334
|
l.currencyReference = f;
|
|
8330
8335
|
}).catch(T)), l.currencyReference;
|
|
8331
|
-
}), t =
|
|
8336
|
+
}), t = b(() => {
|
|
8332
8337
|
const l = d();
|
|
8333
8338
|
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(S).getOpf().then((f) => {
|
|
8334
8339
|
l.opfReference = f;
|
|
8335
8340
|
}).catch(T)), l.opfReference;
|
|
8336
|
-
}), i =
|
|
8341
|
+
}), i = b(() => {
|
|
8337
8342
|
const l = d();
|
|
8338
8343
|
return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(S).getOperators().then((f) => {
|
|
8339
8344
|
l.operatorReference = f;
|
|
8340
8345
|
}).catch(T)), l.operatorReference;
|
|
8341
|
-
}), o =
|
|
8346
|
+
}), o = b(() => {
|
|
8342
8347
|
const l = d();
|
|
8343
8348
|
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(S).getOrderPaymentStatuses().then((f) => {
|
|
8344
8349
|
l.orderPaymentStatusReference = f;
|
|
8345
8350
|
}).catch(T)), l.orderPaymentStatusReference;
|
|
8346
|
-
}), c =
|
|
8351
|
+
}), c = b(() => {
|
|
8347
8352
|
const l = d();
|
|
8348
8353
|
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(S).getOrderStatuses().then((f) => {
|
|
8349
8354
|
l.orderStatusReference = f;
|
|
8350
8355
|
}).catch(T)), l.orderStatusReference;
|
|
8351
|
-
}), u =
|
|
8356
|
+
}), u = b(() => {
|
|
8352
8357
|
const l = d();
|
|
8353
8358
|
return !l.orderStatusDetailReference && !l.dataLoaderList.orderStatusDetailReference && (l.dataLoaderList.orderStatusDetailReference = !0, h.getInstance(S).getOrderStatusDetails().then((f) => {
|
|
8354
8359
|
l.orderStatusDetailReference = f;
|
|
8355
8360
|
}).catch(T)), l.orderStatusDetailReference;
|
|
8356
|
-
}), p =
|
|
8361
|
+
}), p = b(() => {
|
|
8357
8362
|
const l = d();
|
|
8358
8363
|
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(S).getPaymentTypes().then((f) => {
|
|
8359
8364
|
l.paymentTypeReference = f;
|
|
8360
8365
|
}).catch(T)), l.paymentTypeReference;
|
|
8361
|
-
}), g =
|
|
8366
|
+
}), g = b(() => {
|
|
8362
8367
|
const l = d();
|
|
8363
8368
|
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(S).getPartnerGroup().then((f) => {
|
|
8364
8369
|
l.partnerGroupReference = f;
|
|
8365
8370
|
}).catch(T)), l.partnerGroupReference;
|
|
8366
|
-
}), a =
|
|
8371
|
+
}), a = b(() => {
|
|
8367
8372
|
const l = d();
|
|
8368
8373
|
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(S).getProductFileType().then((f) => {
|
|
8369
8374
|
l.productFileTypeReference = f;
|
|
8370
8375
|
}).catch(T)), l.productFileTypeReference;
|
|
8371
|
-
}), P =
|
|
8376
|
+
}), P = b(() => {
|
|
8372
8377
|
const l = d();
|
|
8373
8378
|
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(S).getResourceTypes().then((f) => {
|
|
8374
8379
|
l.resourceTypesReference = f;
|
|
8375
8380
|
}).catch(T)), l.resourceTypesReference;
|
|
8376
|
-
}),
|
|
8381
|
+
}), Ae = b(() => {
|
|
8377
8382
|
const l = d();
|
|
8378
8383
|
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(S).getSalesDirections().then((f) => {
|
|
8379
8384
|
l.salesDirectionsReference = f;
|
|
8380
8385
|
}).catch(T)), l.salesDirectionsReference;
|
|
8381
|
-
}), Se =
|
|
8386
|
+
}), Se = b(() => {
|
|
8382
8387
|
const l = d();
|
|
8383
8388
|
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(S).getSourcePrimaryInterest().then((f) => {
|
|
8384
8389
|
l.sourcePrimaryInterestReference = f;
|
|
8385
8390
|
}).catch(T)), l.sourcePrimaryInterestReference;
|
|
8386
|
-
}), ce =
|
|
8391
|
+
}), ce = b(() => {
|
|
8387
8392
|
const l = d();
|
|
8388
8393
|
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(S).getDeliveryTypes().then((f) => {
|
|
8389
8394
|
l.deliveryTypeReference = f;
|
|
8390
8395
|
}).catch(T)), l.deliveryTypeReference;
|
|
8391
|
-
}), le =
|
|
8396
|
+
}), le = b(() => {
|
|
8392
8397
|
const l = d();
|
|
8393
|
-
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) => {
|
|
8394
8399
|
l.managersList = f;
|
|
8395
8400
|
}).catch(T)), l.managersList;
|
|
8396
|
-
}),
|
|
8401
|
+
}), tr = b(() => {
|
|
8397
8402
|
const l = d();
|
|
8398
8403
|
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(S).getWarehouses().then((f) => {
|
|
8399
8404
|
l.warehousesReference = f;
|
|
8400
8405
|
}).catch(T)), l.warehousesReference;
|
|
8401
|
-
}),
|
|
8406
|
+
}), sr = b(() => {
|
|
8402
8407
|
const l = d();
|
|
8403
8408
|
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(S).getPropertyTypes().then((f) => {
|
|
8404
8409
|
l.propertyTypesReference = f;
|
|
8405
8410
|
}).catch(T)), l.propertyTypesReference;
|
|
8406
|
-
}),
|
|
8411
|
+
}), ir = b(() => {
|
|
8407
8412
|
const l = d();
|
|
8408
8413
|
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(S).getPriceCoefficients().then((f) => {
|
|
8409
8414
|
l.priceCoefficientsReference = f;
|
|
@@ -8461,7 +8466,7 @@ const d = ne("common.references_private", () => {
|
|
|
8461
8466
|
/**
|
|
8462
8467
|
* Справочник направлений продаж.
|
|
8463
8468
|
*/
|
|
8464
|
-
salesDirectionsReference:
|
|
8469
|
+
salesDirectionsReference: Ae,
|
|
8465
8470
|
/**
|
|
8466
8471
|
* Справочник каналов первичного интереса.
|
|
8467
8472
|
*/
|
|
@@ -8477,18 +8482,18 @@ const d = ne("common.references_private", () => {
|
|
|
8477
8482
|
/**
|
|
8478
8483
|
* Справочник складов.
|
|
8479
8484
|
*/
|
|
8480
|
-
warehousesReference:
|
|
8485
|
+
warehousesReference: tr,
|
|
8481
8486
|
/**
|
|
8482
8487
|
* Справочник типов свойств.
|
|
8483
8488
|
*/
|
|
8484
|
-
propertyTypesReference:
|
|
8489
|
+
propertyTypesReference: sr,
|
|
8485
8490
|
/**
|
|
8486
8491
|
* Справочник коэффициентов цен.
|
|
8487
8492
|
*/
|
|
8488
|
-
priceCoefficientsReference:
|
|
8493
|
+
priceCoefficientsReference: ir
|
|
8489
8494
|
};
|
|
8490
8495
|
});
|
|
8491
|
-
class
|
|
8496
|
+
class zs {
|
|
8492
8497
|
/**
|
|
8493
8498
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
8494
8499
|
*
|
|
@@ -8506,7 +8511,7 @@ class Ms {
|
|
|
8506
8511
|
this.name = r.name, this.content = r.content;
|
|
8507
8512
|
}
|
|
8508
8513
|
}
|
|
8509
|
-
class
|
|
8514
|
+
class Xr {
|
|
8510
8515
|
/**
|
|
8511
8516
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
8512
8517
|
*
|
|
@@ -8546,10 +8551,10 @@ class Vr {
|
|
|
8546
8551
|
*/
|
|
8547
8552
|
s(this, "tags");
|
|
8548
8553
|
var e;
|
|
8549
|
-
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;
|
|
8550
8555
|
}
|
|
8551
8556
|
}
|
|
8552
|
-
class
|
|
8557
|
+
class Mi extends h {
|
|
8553
8558
|
/**
|
|
8554
8559
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
8555
8560
|
*
|
|
@@ -8557,7 +8562,7 @@ class Ei extends h {
|
|
|
8557
8562
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
8558
8563
|
*/
|
|
8559
8564
|
getResourceSeoData(r, e) {
|
|
8560
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new
|
|
8565
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new Xr(t.data));
|
|
8561
8566
|
}
|
|
8562
8567
|
/**
|
|
8563
8568
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -8568,7 +8573,7 @@ class Ei extends h {
|
|
|
8568
8573
|
* в случае ошибок в запросах.
|
|
8569
8574
|
*/
|
|
8570
8575
|
saveResourceSeoData(r, e = {}) {
|
|
8571
|
-
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);
|
|
8572
8577
|
}
|
|
8573
8578
|
/**
|
|
8574
8579
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -8580,7 +8585,61 @@ class Ei extends h {
|
|
|
8580
8585
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
8581
8586
|
}
|
|
8582
8587
|
}
|
|
8583
|
-
|
|
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 {
|
|
8584
8643
|
/**
|
|
8585
8644
|
* Возвращает подсказки по адресам.
|
|
8586
8645
|
*
|
|
@@ -8627,8 +8686,8 @@ class Ui extends h {
|
|
|
8627
8686
|
});
|
|
8628
8687
|
}
|
|
8629
8688
|
}
|
|
8630
|
-
var
|
|
8631
|
-
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 {
|
|
8632
8691
|
/**
|
|
8633
8692
|
* Инициализирует экземпляр класса {@link User}.
|
|
8634
8693
|
*
|
|
@@ -8652,10 +8711,10 @@ class Hs extends ht {
|
|
|
8652
8711
|
* Роль ценообразования текущего пользователя.
|
|
8653
8712
|
*/
|
|
8654
8713
|
s(this, "pricingRole");
|
|
8655
|
-
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;
|
|
8656
8715
|
}
|
|
8657
8716
|
}
|
|
8658
|
-
class
|
|
8717
|
+
class zi extends h {
|
|
8659
8718
|
/**
|
|
8660
8719
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
8661
8720
|
*/
|
|
@@ -8671,17 +8730,17 @@ class Fi extends h {
|
|
|
8671
8730
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
8672
8731
|
}
|
|
8673
8732
|
}
|
|
8674
|
-
class
|
|
8733
|
+
class js extends h {
|
|
8675
8734
|
/**
|
|
8676
8735
|
* Возвращает данные о текущем пользователе.
|
|
8677
8736
|
*/
|
|
8678
8737
|
// eslint-disable-next-line class-methods-use-this
|
|
8679
8738
|
getCurrentUser() {
|
|
8680
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
8739
|
+
return this.get("/internal/users/info", {}, (r) => new Ws(r.data), !0);
|
|
8681
8740
|
}
|
|
8682
8741
|
}
|
|
8683
|
-
const
|
|
8684
|
-
const n =
|
|
8742
|
+
const Ar = ne("common.user_state_private", () => {
|
|
8743
|
+
const n = v({}), r = v(void 0), e = v(void 0);
|
|
8685
8744
|
return {
|
|
8686
8745
|
/**
|
|
8687
8746
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -8697,23 +8756,23 @@ const Pr = ne("common.user_state_private", () => {
|
|
|
8697
8756
|
currentManager: e
|
|
8698
8757
|
};
|
|
8699
8758
|
});
|
|
8700
|
-
function
|
|
8701
|
-
const r =
|
|
8702
|
-
(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) => {
|
|
8703
8762
|
r.currentManager = e;
|
|
8704
8763
|
}).catch(T).finally(() => {
|
|
8705
8764
|
r.dataLoaderList.currentManager = !1;
|
|
8706
8765
|
}));
|
|
8707
8766
|
}
|
|
8708
|
-
const
|
|
8709
|
-
const n =
|
|
8710
|
-
const e =
|
|
8711
|
-
return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(
|
|
8712
|
-
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);
|
|
8713
8772
|
}).catch(T).finally(() => {
|
|
8714
8773
|
e.dataLoaderList.currentUser = !1;
|
|
8715
8774
|
})), e.currentUser;
|
|
8716
|
-
}), r =
|
|
8775
|
+
}), r = b(() => (Zr(n.value), Ar().currentManager));
|
|
8717
8776
|
return {
|
|
8718
8777
|
/**
|
|
8719
8778
|
* Данные о текущем пользователе.
|
|
@@ -8725,7 +8784,7 @@ const Mi = ne("common.user_state", () => {
|
|
|
8725
8784
|
currentManager: r
|
|
8726
8785
|
};
|
|
8727
8786
|
});
|
|
8728
|
-
class
|
|
8787
|
+
class Sr {
|
|
8729
8788
|
/**
|
|
8730
8789
|
* Инициализирует экземпляр класса {@link UserRegionEmployee}.
|
|
8731
8790
|
*
|
|
@@ -8740,10 +8799,10 @@ class Ar {
|
|
|
8740
8799
|
* @inheritDoc
|
|
8741
8800
|
*/
|
|
8742
8801
|
s(this, "salesDirection");
|
|
8743
|
-
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);
|
|
8744
8803
|
}
|
|
8745
8804
|
}
|
|
8746
|
-
class
|
|
8805
|
+
class wr extends er {
|
|
8747
8806
|
/**
|
|
8748
8807
|
* Инициализирует экземпляр класса {@link UserRegion}.
|
|
8749
8808
|
*
|
|
@@ -8760,10 +8819,10 @@ class yr extends Ze {
|
|
|
8760
8819
|
* @inheritDoc
|
|
8761
8820
|
*/
|
|
8762
8821
|
s(this, "users");
|
|
8763
|
-
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))) ?? [];
|
|
8764
8823
|
}
|
|
8765
8824
|
}
|
|
8766
|
-
class
|
|
8825
|
+
class ji extends Fe {
|
|
8767
8826
|
/**
|
|
8768
8827
|
* Инициализирует экземпляр класса {@link UserRegionsListFilters}.
|
|
8769
8828
|
*
|
|
@@ -8799,7 +8858,7 @@ class Hi extends Fe {
|
|
|
8799
8858
|
return this;
|
|
8800
8859
|
}
|
|
8801
8860
|
}
|
|
8802
|
-
class
|
|
8861
|
+
class Gi extends Y {
|
|
8803
8862
|
/**
|
|
8804
8863
|
* Возвращает список регионов пользователей.
|
|
8805
8864
|
*
|
|
@@ -8810,7 +8869,7 @@ class Bi extends Y {
|
|
|
8810
8869
|
* @see /doc/api/internal#/operations/api_internal_user_region_get_list
|
|
8811
8870
|
*/
|
|
8812
8871
|
getRegionsList(r, e, t) {
|
|
8813
|
-
return this.getTypedPaginated(
|
|
8872
|
+
return this.getTypedPaginated(er, "/internal/users/regions", r, e, t);
|
|
8814
8873
|
}
|
|
8815
8874
|
/**
|
|
8816
8875
|
* Возвращает полные данные о регионе пользователей.
|
|
@@ -8820,7 +8879,7 @@ class Bi extends Y {
|
|
|
8820
8879
|
* @see /doc/api/internal#/operations/api_internal_user_region_get
|
|
8821
8880
|
*/
|
|
8822
8881
|
getRegion(r) {
|
|
8823
|
-
return this.get(`/internal/users/regions/${r}`, {}, (e) => new
|
|
8882
|
+
return this.get(`/internal/users/regions/${r}`, {}, (e) => new wr(e.data));
|
|
8824
8883
|
}
|
|
8825
8884
|
/**
|
|
8826
8885
|
* Создаёт новый регион пользователей.
|
|
@@ -8833,7 +8892,7 @@ class Bi extends Y {
|
|
|
8833
8892
|
* @see /doc/api/internal#/operations/api_internal_user_region_create
|
|
8834
8893
|
*/
|
|
8835
8894
|
createRegion(r, e = {}) {
|
|
8836
|
-
return this.post("/internal/users/regions", r, (t) => new
|
|
8895
|
+
return this.post("/internal/users/regions", r, (t) => new wr(t.data), e);
|
|
8837
8896
|
}
|
|
8838
8897
|
/**
|
|
8839
8898
|
* Изменяет данные о регионе пользователей.
|
|
@@ -8847,7 +8906,7 @@ class Bi extends Y {
|
|
|
8847
8906
|
* @see /doc/api/internal#/operations/api_internal_user_region_change
|
|
8848
8907
|
*/
|
|
8849
8908
|
updateRegion(r, e, t = {}) {
|
|
8850
|
-
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);
|
|
8851
8910
|
}
|
|
8852
8911
|
/**
|
|
8853
8912
|
* Удаляет регион пользователей.
|
|
@@ -8867,7 +8926,7 @@ class Bi extends Y {
|
|
|
8867
8926
|
* @see /doc/api/internal#/operations/api_internal_user_region_user_get_list
|
|
8868
8927
|
*/
|
|
8869
8928
|
getRegionEmployees(r) {
|
|
8870
|
-
return this.getTypedList(
|
|
8929
|
+
return this.getTypedList(Sr, `/internal/users/regions/${r}/users`);
|
|
8871
8930
|
}
|
|
8872
8931
|
/**
|
|
8873
8932
|
* Закрепляет сотрудника за регионом по указанному направлению продаж.
|
|
@@ -8879,7 +8938,7 @@ class Bi extends Y {
|
|
|
8879
8938
|
* @see /doc/api/internal#/operations/api_internal_user_region_user_add
|
|
8880
8939
|
*/
|
|
8881
8940
|
attachRegionEmployee(r, e, t) {
|
|
8882
|
-
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));
|
|
8883
8942
|
}
|
|
8884
8943
|
/**
|
|
8885
8944
|
* Открепляет сотрудника от региона по указанному направлению продаж.
|
|
@@ -8898,223 +8957,202 @@ class Bi extends Y {
|
|
|
8898
8957
|
});
|
|
8899
8958
|
}
|
|
8900
8959
|
}
|
|
8901
|
-
class zi {
|
|
8902
|
-
/**
|
|
8903
|
-
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
8904
|
-
*
|
|
8905
|
-
* @param feedback Сообщение об ошибке валидации.
|
|
8906
|
-
* @param validationStatus Статус валидации.
|
|
8907
|
-
*/
|
|
8908
|
-
constructor(r, e) {
|
|
8909
|
-
/**
|
|
8910
|
-
* Признак необходимости отображать сообщение об ошибке валидации.
|
|
8911
|
-
*/
|
|
8912
|
-
s(this, "showFeedback", !1);
|
|
8913
|
-
/**
|
|
8914
|
-
* Сообщение об ошибке валидации.
|
|
8915
|
-
*/
|
|
8916
|
-
s(this, "feedback", "");
|
|
8917
|
-
/**
|
|
8918
|
-
* Статус валидации.
|
|
8919
|
-
*/
|
|
8920
|
-
s(this, "validationStatus");
|
|
8921
|
-
this.showFeedback = !!r, this.feedback = r, this.validationStatus = e;
|
|
8922
|
-
}
|
|
8923
|
-
}
|
|
8924
8960
|
export {
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8961
|
+
Qe as AddressQualityEnum,
|
|
8962
|
+
Hi as AddressQualityHelper,
|
|
8963
|
+
Us as AnyReference,
|
|
8964
|
+
us as AppBaseConfig,
|
|
8965
|
+
Tr as BankAccount,
|
|
8928
8966
|
Y as BasePaginationProvider,
|
|
8929
|
-
|
|
8930
|
-
|
|
8967
|
+
pr as BlogPost,
|
|
8968
|
+
Rr as BlogPostMediaFile,
|
|
8931
8969
|
Ye as BlogPostMediaTypeEnum,
|
|
8932
|
-
|
|
8970
|
+
Ve as BlogPostPublicationStatusEnum,
|
|
8933
8971
|
ae as BlogPostShortInfo,
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8972
|
+
ei as BlogPostsListFilters,
|
|
8973
|
+
Cr as BlogProvider,
|
|
8974
|
+
ms as CalculationTypeEnum,
|
|
8937
8975
|
y as CalendarHelper,
|
|
8938
8976
|
Oe as Cart,
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
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,
|
|
8949
8987
|
Re as CityWithRegionAndCountry,
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8988
|
+
Kr as CityWithUserRegion,
|
|
8989
|
+
Vr as Client,
|
|
8990
|
+
Ps as ClientAdditionalData,
|
|
8991
|
+
Xe as ClientCategory,
|
|
8954
8992
|
H as ClientDataProvider,
|
|
8955
|
-
|
|
8956
|
-
|
|
8993
|
+
ni as ClientPriceProvider,
|
|
8994
|
+
oi as ClientPriceTemplateProvider,
|
|
8957
8995
|
X as ClientProduct,
|
|
8958
|
-
|
|
8959
|
-
|
|
8996
|
+
ui as ClientProductCategoryDataProvider,
|
|
8997
|
+
pi as ClientProductDataProvider,
|
|
8960
8998
|
oe as ClientShortInfo,
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
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,
|
|
8968
9006
|
se as ContactPerson,
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
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,
|
|
9017
|
+
we as Country,
|
|
9018
|
+
_r as CuratedDirection,
|
|
9019
|
+
Nr as Curator,
|
|
8982
9020
|
j as Currency,
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
9021
|
+
Bi as DataSuggestionProvider,
|
|
9022
|
+
br as DateHelper,
|
|
9023
|
+
Pi as DateTimeProvider,
|
|
9024
|
+
at as DeletableNamedIdentity,
|
|
8987
9025
|
_e as DeliveryAddress,
|
|
8988
9026
|
K as DeliveryType,
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
9027
|
+
it as DetailedJwtPayload,
|
|
9028
|
+
ns as DeviceTypeResolutionConfig,
|
|
9029
|
+
ps as DiscountShortInfo,
|
|
9030
|
+
ar as FieldValidationResultData,
|
|
8993
9031
|
te as FilterGroup,
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
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,
|
|
9001
9039
|
h as HttpRequester,
|
|
9002
9040
|
G as Identity,
|
|
9003
|
-
|
|
9041
|
+
fs as Image,
|
|
9004
9042
|
M as InterceptorsEnum,
|
|
9005
9043
|
Te as JwtPayload,
|
|
9006
9044
|
Z as Manager,
|
|
9007
|
-
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
|
|
9045
|
+
xr as ManagerCommon,
|
|
9046
|
+
di as ManagerDataFactory,
|
|
9047
|
+
bt as ManagerDataProvider,
|
|
9048
|
+
zs as MetaTagItem,
|
|
9011
9049
|
L as NamedIdentity,
|
|
9012
9050
|
F as Offer,
|
|
9013
|
-
|
|
9051
|
+
$s as OfferActualization,
|
|
9014
9052
|
xe as OfferActualizationStatus,
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9053
|
+
Oi as OfferHelper,
|
|
9054
|
+
At as OfferShortInfo,
|
|
9055
|
+
ki as OffersDataProvider,
|
|
9056
|
+
$i as OffersListFilters,
|
|
9057
|
+
dt as Operator,
|
|
9020
9058
|
ie as Opf,
|
|
9021
|
-
|
|
9059
|
+
Q as OpfEnum,
|
|
9022
9060
|
I as Order,
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
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,
|
|
9037
9075
|
Fe as PaginationFiltersBase,
|
|
9038
9076
|
Ce as PartnerGroup,
|
|
9039
|
-
|
|
9077
|
+
$t as PaymentType,
|
|
9040
9078
|
Ge as PreferencesStorageProvider,
|
|
9041
|
-
|
|
9042
|
-
|
|
9079
|
+
mr as PriceAnalyze,
|
|
9080
|
+
Ni as PriceAnalyzeProvider,
|
|
9043
9081
|
Pe as PriceCoefficient,
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9082
|
+
ot as PriceCoefficientEnum,
|
|
9083
|
+
qi as PriceHistoryDataProvider,
|
|
9084
|
+
xs as PriceHistoryItem,
|
|
9047
9085
|
fe as PriceTemplate,
|
|
9048
|
-
|
|
9086
|
+
hr as PriceTemplateCategory,
|
|
9049
9087
|
Le as PriceTemplateClient,
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9088
|
+
ft as PriceTemplateICatalogableItem,
|
|
9089
|
+
gr as PriceTemplateProduct,
|
|
9090
|
+
hi as PriceTemplateProvider,
|
|
9053
9091
|
Ie as PricingRole,
|
|
9054
|
-
|
|
9055
|
-
|
|
9092
|
+
gi as PricingRoleProvider,
|
|
9093
|
+
Dr as PrimaryCatalogableItem,
|
|
9056
9094
|
q as Product,
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
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,
|
|
9066
9104
|
me as Property,
|
|
9067
|
-
|
|
9068
|
-
|
|
9105
|
+
yt as PropertyType,
|
|
9106
|
+
ys as PropertyTypeEnum,
|
|
9069
9107
|
he as PropertyValue,
|
|
9070
|
-
|
|
9071
|
-
|
|
9108
|
+
Ui as RecommendationsDataProvider,
|
|
9109
|
+
Jr as RecommendationsList,
|
|
9072
9110
|
D as Reference,
|
|
9073
|
-
|
|
9111
|
+
Ei as ReferenceDataFactory,
|
|
9074
9112
|
S as ReferenceDataProvider,
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9113
|
+
ve as Region,
|
|
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,
|
|
9090
9128
|
_ as TypedInstanceFactory,
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
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,
|
|
9104
9142
|
N as UserShortInfo,
|
|
9105
|
-
|
|
9106
|
-
|
|
9143
|
+
Ot as UserTypeEnum,
|
|
9144
|
+
wi as VersionConfig,
|
|
9107
9145
|
Me as Warehouse,
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
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,
|
|
9116
9154
|
ze as useAuthStateStore,
|
|
9117
9155
|
O as useBaseConfigStateStore,
|
|
9118
|
-
|
|
9119
|
-
|
|
9156
|
+
Fi as useReferencesStore,
|
|
9157
|
+
Wi as useUserStateStore
|
|
9120
9158
|
};
|