@snabcentr/common-lib 3.8.1 → 3.8.2
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 +6 -2
- package/dist/sc-common-lib.js +459 -448
- 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/clients/classes/contragent/contragent-ic.d.ts +4 -0
- package/dist/src/clients/classes/contragent/contragent-ic.d.ts.map +1 -1
- package/dist/src/clients/interfaces/contragent/i-contragent-ic.d.ts +4 -0
- package/dist/src/clients/interfaces/contragent/i-contragent-ic.d.ts.map +1 -1
- package/dist/src/clients/providers/client-data-provider.d.ts.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/interfaces/i-organization-suggestion.d.ts +4 -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 Q, noop as R, mapValues as
|
|
6
|
-
import { objectToCamel as Nr, objectToSnake as
|
|
1
|
+
var Wt = Object.defineProperty;
|
|
2
|
+
var jt = (n, r, e) => r in n ? Wt(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var s = (n, r, e) => jt(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jwtDecode as ft } from "jwt-decode";
|
|
5
|
+
import { merge as Ne, isNil as m, isEmpty as Q, noop as R, mapValues as mt, isArray as V, every as Yt, split as Vt, isString as I, startsWith as yt, endsWith as Qt, includes as Jt, isFunction as qr, map as P, isObject as Ze, isDate as er, isError as Wr, assign as jr, toLower as Kt, isPlainObject as Xt, isUndefined as Be, constant as Zt, toUpper as es, cloneDeep as rs, forEach as ts, some as Yr, round as at, omitBy as wt } from "lodash-es";
|
|
6
|
+
import { objectToCamel as Nr, objectToSnake as ss } from "ts-case-convert";
|
|
7
7
|
import { defineStore as ue } from "pinia";
|
|
8
|
-
import { ref as
|
|
9
|
-
import { isAfter as
|
|
10
|
-
import
|
|
8
|
+
import { ref as v, markRaw as is, computed as b } from "vue";
|
|
9
|
+
import { isAfter as Vr, parseISO as _, startOfToday as Ee, isValid as Qr, format as $, endOfMonth as x, addMonths as k, differenceInCalendarMonths as ns, startOfMonth as H, getDate as Jr, getDaysInMonth as os, endOfDay as B, startOfDay as re, setDate as cs, startOfWeek as te, addWeeks as dr, differenceInCalendarDays as je, addDays as se, subDays as Ye, addBusinessDays as ls, startOfYear as ae, endOfYear as $e, endOfWeek as ke, endOfTomorrow as us, startOfTomorrow as ps, endOfYesterday as hs, startOfYesterday as gs, endOfToday as fs, startOfQuarter as Oe, endOfQuarter as Ge, addYears as hr, addQuarters as gr, subYears as fr, subQuarters as mr, subMonths as yr, subWeeks as Kr, addSeconds as ms } from "date-fns";
|
|
10
|
+
import ys, { CanceledError as as } from "axios";
|
|
11
11
|
class be {
|
|
12
12
|
/**
|
|
13
13
|
* Инициализирует экземпляр класса {@link JwtPayload}.
|
|
@@ -107,11 +107,11 @@ class be {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
const e =
|
|
110
|
+
const e = ft(r), t = new be(Nr(e));
|
|
111
111
|
return t.resourceAccess = e.resource_access, t;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class vt extends be {
|
|
115
115
|
/**
|
|
116
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
117
117
|
*
|
|
@@ -151,11 +151,11 @@ class wt extends be {
|
|
|
151
151
|
* @param jwtToken JWT-ключ доступа.
|
|
152
152
|
*/
|
|
153
153
|
static getJwtPayload(e) {
|
|
154
|
-
const t =
|
|
154
|
+
const t = ft(e), i = new vt(Nr(t));
|
|
155
155
|
return i.resourceAccess = t.resource_access, i;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
class
|
|
158
|
+
class ws {
|
|
159
159
|
/**
|
|
160
160
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
161
161
|
*
|
|
@@ -177,7 +177,7 @@ class as {
|
|
|
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 vs {
|
|
181
181
|
/**
|
|
182
182
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
183
183
|
*
|
|
@@ -244,7 +244,7 @@ class Cs {
|
|
|
244
244
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
class
|
|
247
|
+
class Ds {
|
|
248
248
|
/**
|
|
249
249
|
* Инициализирует экземпляр класса {@link WebSocketConfig}.
|
|
250
250
|
*
|
|
@@ -283,7 +283,7 @@ class vs {
|
|
|
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 Rs {
|
|
287
287
|
/**
|
|
288
288
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
289
289
|
*
|
|
@@ -331,10 +331,10 @@ class Ds {
|
|
|
331
331
|
*/
|
|
332
332
|
s(this, "numberPrecision");
|
|
333
333
|
var e, t, i, o;
|
|
334
|
-
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new
|
|
334
|
+
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new vs(r == null ? void 0 : r.http), this.deviceTypeByResolution = new ws(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Cs({
|
|
335
335
|
environment: this.environment,
|
|
336
336
|
...r == null ? void 0 : r.sentry
|
|
337
|
-
}), 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
|
|
337
|
+
}), 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 Ds(r.websocket) : void 0, this.dateFormats = {
|
|
338
338
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
339
339
|
uiDate: ((t = r == null ? void 0 : r.dateFormats) == null ? void 0 : t.uiDate) ?? "dd.MM.yyyy",
|
|
340
340
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
@@ -344,7 +344,7 @@ class Ds {
|
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
const S = ue("common.config", () => {
|
|
347
|
-
const n =
|
|
347
|
+
const n = v(new Rs());
|
|
348
348
|
return {
|
|
349
349
|
/**
|
|
350
350
|
* Конфигурационные данные приложения.
|
|
@@ -385,7 +385,7 @@ class Ve {
|
|
|
385
385
|
if (e)
|
|
386
386
|
try {
|
|
387
387
|
const t = JSON.parse(e);
|
|
388
|
-
if (!t.availableFor ||
|
|
388
|
+
if (!t.availableFor || Vr(_(t.availableFor) || Ee(), /* @__PURE__ */ new Date())) {
|
|
389
389
|
if (m(t.data) || Q(t.data))
|
|
390
390
|
throw new Error("Data is empty");
|
|
391
391
|
return t.data;
|
|
@@ -460,7 +460,7 @@ class Ve {
|
|
|
460
460
|
const i = localStorage.getItem(t);
|
|
461
461
|
if (i) {
|
|
462
462
|
const o = JSON.parse(i);
|
|
463
|
-
o.availableFor && !
|
|
463
|
+
o.availableFor && !Vr(_(o.availableFor) || Ee(), /* @__PURE__ */ new Date()) && r.push(t);
|
|
464
464
|
}
|
|
465
465
|
} catch {
|
|
466
466
|
r.push(t);
|
|
@@ -476,7 +476,7 @@ class Ve {
|
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Xr(n) {
|
|
480
480
|
try {
|
|
481
481
|
const r = be.getJwtPayload(n);
|
|
482
482
|
return new Date(r.exp * 1e3);
|
|
@@ -485,7 +485,7 @@ function Kr(n) {
|
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
const we = ue("common.auth_state_private", () => {
|
|
488
|
-
const n =
|
|
488
|
+
const n = v(
|
|
489
489
|
(() => {
|
|
490
490
|
var u;
|
|
491
491
|
const o = Ve.getActualDataFromStorage(
|
|
@@ -497,11 +497,11 @@ const we = ue("common.auth_state_private", () => {
|
|
|
497
497
|
const c = (u = S().config.devMode) == null ? void 0 : u.initAuthBearerToken;
|
|
498
498
|
return c ? Promise.resolve(c) : void 0;
|
|
499
499
|
})()
|
|
500
|
-
), r =
|
|
500
|
+
), r = v(void 0), e = v(void 0), t = is(/* @__PURE__ */ new Map());
|
|
501
501
|
function i() {
|
|
502
502
|
e.value = void 0, m(n.value) || n.value.then((o) => {
|
|
503
503
|
const c = be.getJwtPayload(o);
|
|
504
|
-
e.value = c.exp * 1e3 > Date.now() ?
|
|
504
|
+
e.value = c.exp * 1e3 > Date.now() ? mt(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
|
|
505
505
|
}).catch(R);
|
|
506
506
|
}
|
|
507
507
|
return {
|
|
@@ -532,7 +532,7 @@ const we = ue("common.auth_state_private", () => {
|
|
|
532
532
|
if (m(o.jwtToken) && !m(o.jwtTokenUpdater)) {
|
|
533
533
|
const c = o.jwtTokenUpdater();
|
|
534
534
|
o.jwtToken = c, c.then((u) => {
|
|
535
|
-
o.jwtToken = Promise.resolve(u), Ve.saveActualDataToStorage("sc.token", u,
|
|
535
|
+
o.jwtToken = Promise.resolve(u), Ve.saveActualDataToStorage("sc.token", u, Xr(u)), o.recalculateUserPermissions();
|
|
536
536
|
}).catch(R);
|
|
537
537
|
}
|
|
538
538
|
return o.jwtToken;
|
|
@@ -542,7 +542,7 @@ const we = ue("common.auth_state_private", () => {
|
|
|
542
542
|
}
|
|
543
543
|
function e(o) {
|
|
544
544
|
const c = we();
|
|
545
|
-
c.jwtToken = Promise.resolve(o), Ve.saveActualDataToStorage("sc.token", o,
|
|
545
|
+
c.jwtToken = Promise.resolve(o), Ve.saveActualDataToStorage("sc.token", o, Xr(o)), c.recalculateUserPermissions();
|
|
546
546
|
}
|
|
547
547
|
function t() {
|
|
548
548
|
const o = we();
|
|
@@ -552,7 +552,7 @@ const we = ue("common.auth_state_private", () => {
|
|
|
552
552
|
const c = we();
|
|
553
553
|
!m(c.jwtToken) && m(c.userPermissions) && c.jwtToken.then((g) => {
|
|
554
554
|
const a = be.getJwtPayload(g);
|
|
555
|
-
c.userPermissions = a.exp * 1e3 > Date.now() ?
|
|
555
|
+
c.userPermissions = a.exp * 1e3 > Date.now() ? mt(a.resourceAccess, (T) => (T == null ? void 0 : T.roles) ?? []) : void 0;
|
|
556
556
|
}).catch(R);
|
|
557
557
|
const u = V(o) ? o.join(" && ") : o;
|
|
558
558
|
if (c.userPermissionsComputedRefs.has(u))
|
|
@@ -560,13 +560,13 @@ const we = ue("common.auth_state_private", () => {
|
|
|
560
560
|
const p = b(() => {
|
|
561
561
|
const g = (a) => {
|
|
562
562
|
var ye;
|
|
563
|
-
const T =
|
|
563
|
+
const T = Vt(a, ".");
|
|
564
564
|
if (T.length < 2)
|
|
565
565
|
return !1;
|
|
566
566
|
const [Ae, Se] = T, me = (ye = we().userPermissions) == null ? void 0 : ye[Ae];
|
|
567
567
|
return V(me) && me.includes(Se);
|
|
568
568
|
};
|
|
569
|
-
return V(o) ?
|
|
569
|
+
return V(o) ? Yt(o, (a) => g(a)) : g(o);
|
|
570
570
|
});
|
|
571
571
|
return c.userPermissionsComputedRefs.set(u, p), p;
|
|
572
572
|
}
|
|
@@ -680,7 +680,7 @@ class O {
|
|
|
680
680
|
if (m(r))
|
|
681
681
|
return;
|
|
682
682
|
const e = I(r) ? _(r) : r;
|
|
683
|
-
return
|
|
683
|
+
return Qr(e) ? e : void 0;
|
|
684
684
|
}
|
|
685
685
|
/**
|
|
686
686
|
* Возвращает дату в формате API либо `null`, если дата не задана или некорректна.
|
|
@@ -688,7 +688,7 @@ class O {
|
|
|
688
688
|
* @param date Дата.
|
|
689
689
|
*/
|
|
690
690
|
static toApiFormat(r) {
|
|
691
|
-
return m(r) || !
|
|
691
|
+
return m(r) || !Qr(r) ? null : $(r, S().config.dateFormats.api);
|
|
692
692
|
}
|
|
693
693
|
/**
|
|
694
694
|
* Возвращает период с датами начала и окончания в формате API.
|
|
@@ -755,7 +755,7 @@ class Ue extends sr {
|
|
|
755
755
|
* @param slug Символьное обозначение статьи.
|
|
756
756
|
*/
|
|
757
757
|
static getSlugError(e) {
|
|
758
|
-
return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." :
|
|
758
|
+
return e ? /[^a-z0-9-]/.test(e) ? "Допустимы только строчные латинские буквы, цифры и дефис: пример «kak-vybrat-podokonnik»." : yt(e, "-") || Qt(e, "-") ? "Обозначение не может начинаться или заканчиваться дефисом." : Jt(e, "--") ? "Дефисы не могут идти подряд: разделяйте слова одним дефисом." : "" : "";
|
|
759
759
|
}
|
|
760
760
|
/**
|
|
761
761
|
* Преобразует значение даты, полученное из API, в объект {@link Date}.
|
|
@@ -851,7 +851,7 @@ class D {
|
|
|
851
851
|
this.from = I(r == null ? void 0 : r.from) ? _(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = I(r == null ? void 0 : r.to) ? _(r.to) : (r == null ? void 0 : r.to) ?? null;
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
|
-
class
|
|
854
|
+
class yi extends de {
|
|
855
855
|
/**
|
|
856
856
|
* Инициализирует экземпляр класса {@link BlogPostsListFilters}.
|
|
857
857
|
*
|
|
@@ -998,7 +998,7 @@ const w = class w {
|
|
|
998
998
|
* @param request Данные запроса.
|
|
999
999
|
*/
|
|
1000
1000
|
// eslint-disable-next-line class-methods-use-this
|
|
1001
|
-
s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && !m(r.params) && (r.params = w.toSnakeCaseData(r.params)), ["put", "patch", "post"].includes(
|
|
1001
|
+
s(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && !m(r.params) && (r.params = w.toSnakeCaseData(r.params)), ["put", "patch", "post"].includes(Kt(r.method)) && !m(r.data) && (r.data = w.toSnakeCaseData(r.data))), r));
|
|
1002
1002
|
/**
|
|
1003
1003
|
* Перехватчик ошибок ответов на запрос.
|
|
1004
1004
|
*
|
|
@@ -1029,7 +1029,7 @@ const w = class w {
|
|
|
1029
1029
|
s(this, "canceledResponseInterceptor", (r) => {
|
|
1030
1030
|
const e = r.rawError ?? r;
|
|
1031
1031
|
if (e.name === "CanceledError" || e.code === "ERR_CANCELED")
|
|
1032
|
-
throw new
|
|
1032
|
+
throw new as("Request canceled");
|
|
1033
1033
|
return Promise.reject(r);
|
|
1034
1034
|
});
|
|
1035
1035
|
/**
|
|
@@ -1039,7 +1039,7 @@ const w = class w {
|
|
|
1039
1039
|
*/
|
|
1040
1040
|
// eslint-disable-next-line class-methods-use-this
|
|
1041
1041
|
s(this, "dataConverterResponseInterceptor", (r) => (r.data = w.toCamelCaseData(r.data), r));
|
|
1042
|
-
this.httpClient =
|
|
1042
|
+
this.httpClient = ys.create({
|
|
1043
1043
|
headers: {
|
|
1044
1044
|
Accept: "application/json",
|
|
1045
1045
|
"Content-Type": "application/json"
|
|
@@ -1110,7 +1110,7 @@ const w = class w {
|
|
|
1110
1110
|
* @param data Исходные данные.
|
|
1111
1111
|
*/
|
|
1112
1112
|
static toSnakeCaseData(r) {
|
|
1113
|
-
return w.canConvertCaseKeys(r) ?
|
|
1113
|
+
return w.canConvertCaseKeys(r) ? ss(r) : r;
|
|
1114
1114
|
}
|
|
1115
1115
|
/**
|
|
1116
1116
|
* Возвращает токен доступа из заголовка Authorization исходного запроса.
|
|
@@ -1119,7 +1119,7 @@ const w = class w {
|
|
|
1119
1119
|
*/
|
|
1120
1120
|
static getRequestAccessToken(r) {
|
|
1121
1121
|
const e = r.headers.get("Authorization"), t = I(e) ? e : void 0, i = "Bearer ";
|
|
1122
|
-
if (m(t) || !
|
|
1122
|
+
if (m(t) || !yt(t, i))
|
|
1123
1123
|
return;
|
|
1124
1124
|
const o = t.slice(i.length);
|
|
1125
1125
|
return o === "" ? void 0 : o;
|
|
@@ -1183,13 +1183,16 @@ const w = class w {
|
|
|
1183
1183
|
* @param error Данные об ошибке.
|
|
1184
1184
|
*/
|
|
1185
1185
|
static toHttpResponseError(r) {
|
|
1186
|
-
|
|
1186
|
+
if (Ze(r) && "status" in r)
|
|
1187
|
+
return r;
|
|
1188
|
+
const e = Wr(r) ? r.message : "Не удалось обработать данные ответа сервера.";
|
|
1189
|
+
return jr(new Error(e), {
|
|
1190
|
+
name: "HttpResponseError",
|
|
1187
1191
|
status: 0,
|
|
1188
1192
|
statusText: "Invalid response data",
|
|
1189
|
-
message: Wr(r) ? r.message : "Не удалось обработать данные ответа сервера.",
|
|
1190
1193
|
headers: {},
|
|
1191
1194
|
rawError: Wr(r) ? r : new Error(String(r))
|
|
1192
|
-
};
|
|
1195
|
+
});
|
|
1193
1196
|
}
|
|
1194
1197
|
/**
|
|
1195
1198
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -1200,15 +1203,17 @@ const w = class w {
|
|
|
1200
1203
|
var e, t;
|
|
1201
1204
|
if (m(r) || !m(r.request) || !m(r.response)) {
|
|
1202
1205
|
const i = m(r) ? {} : r == null ? void 0 : r.response;
|
|
1203
|
-
return Promise.reject(
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1206
|
+
return Promise.reject(
|
|
1207
|
+
jr(new Error(((e = i == null ? void 0 : i.data) == null ? void 0 : e.message) ?? "Unknown Error. Probably network error."), {
|
|
1208
|
+
name: "HttpResponseError",
|
|
1209
|
+
status: (i == null ? void 0 : i.status) ?? 0,
|
|
1210
|
+
statusText: (i == null ? void 0 : i.statusText) ?? "Unknown",
|
|
1211
|
+
errors: (t = i == null ? void 0 : i.data) == null ? void 0 : t.errors,
|
|
1212
|
+
headers: (i == null ? void 0 : i.headers) ?? {},
|
|
1213
|
+
data: i == null ? void 0 : i.data,
|
|
1214
|
+
rawError: r
|
|
1215
|
+
})
|
|
1216
|
+
);
|
|
1212
1217
|
}
|
|
1213
1218
|
return Promise.reject(r);
|
|
1214
1219
|
}
|
|
@@ -1327,7 +1332,7 @@ s(w, "defaultRequestHook"), /**
|
|
|
1327
1332
|
s(w, "tokenRefreshPromise");
|
|
1328
1333
|
let h = w;
|
|
1329
1334
|
var Er = /* @__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))(Er || {});
|
|
1330
|
-
class
|
|
1335
|
+
class Zr {
|
|
1331
1336
|
/**
|
|
1332
1337
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
1333
1338
|
*
|
|
@@ -1360,7 +1365,7 @@ class Xr {
|
|
|
1360
1365
|
};
|
|
1361
1366
|
if (er(this.value))
|
|
1362
1367
|
e.value = $(this.value, r);
|
|
1363
|
-
else if (
|
|
1368
|
+
else if (Xt(this.value)) {
|
|
1364
1369
|
const t = this.value;
|
|
1365
1370
|
e.value = {
|
|
1366
1371
|
from: t.from ? $(t.from, r) : null,
|
|
@@ -1391,7 +1396,7 @@ class ie {
|
|
|
1391
1396
|
*/
|
|
1392
1397
|
s(this, "groups");
|
|
1393
1398
|
var e, t;
|
|
1394
|
-
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
|
|
1399
|
+
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 Zr(i))) ?? [], this.groups = ((t = r == null ? void 0 : r.groups) == null ? void 0 : t.map((i) => new ie(i))) ?? [];
|
|
1395
1400
|
}
|
|
1396
1401
|
/**
|
|
1397
1402
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -1401,7 +1406,7 @@ class ie {
|
|
|
1401
1406
|
toPrimitive() {
|
|
1402
1407
|
return {
|
|
1403
1408
|
groupOp: this.groupOp,
|
|
1404
|
-
filters: this.filters.map((r) => r instanceof
|
|
1409
|
+
filters: this.filters.map((r) => r instanceof Zr && qr(r.toPrimitive) ? r.toPrimitive() : r),
|
|
1405
1410
|
groups: this.groups.map((r) => r instanceof ie ? r.toPrimitive() : r)
|
|
1406
1411
|
};
|
|
1407
1412
|
}
|
|
@@ -1707,7 +1712,7 @@ class Ur extends nr {
|
|
|
1707
1712
|
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = O.parse(e == null ? void 0 : e.publishedAt), this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new q(e == null ? void 0 : e.owner);
|
|
1708
1713
|
}
|
|
1709
1714
|
}
|
|
1710
|
-
class
|
|
1715
|
+
class Ce extends ir {
|
|
1711
1716
|
/**
|
|
1712
1717
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1713
1718
|
*
|
|
@@ -1727,7 +1732,7 @@ class ve extends ir {
|
|
|
1727
1732
|
}
|
|
1728
1733
|
}
|
|
1729
1734
|
var Ct = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Ct || {});
|
|
1730
|
-
class
|
|
1735
|
+
class C extends N {
|
|
1731
1736
|
/**
|
|
1732
1737
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
1733
1738
|
*
|
|
@@ -1746,7 +1751,7 @@ class v extends N {
|
|
|
1746
1751
|
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
1747
1752
|
}
|
|
1748
1753
|
}
|
|
1749
|
-
class he extends
|
|
1754
|
+
class he extends C {
|
|
1750
1755
|
/**
|
|
1751
1756
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
1752
1757
|
*/
|
|
@@ -1757,7 +1762,7 @@ class he extends v {
|
|
|
1757
1762
|
name: "Розн. цена",
|
|
1758
1763
|
guid: ""
|
|
1759
1764
|
});
|
|
1760
|
-
return r.isNewRec =
|
|
1765
|
+
return r.isNewRec = Zt(!0), r;
|
|
1761
1766
|
}
|
|
1762
1767
|
}
|
|
1763
1768
|
class Fr {
|
|
@@ -1790,7 +1795,7 @@ class Fr {
|
|
|
1790
1795
|
this.coefficient = new he(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;
|
|
1791
1796
|
}
|
|
1792
1797
|
}
|
|
1793
|
-
class
|
|
1798
|
+
class Dt {
|
|
1794
1799
|
/**
|
|
1795
1800
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
1796
1801
|
*
|
|
@@ -1808,9 +1813,9 @@ class vt {
|
|
|
1808
1813
|
this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
|
|
1809
1814
|
}
|
|
1810
1815
|
}
|
|
1811
|
-
class X extends
|
|
1816
|
+
class X extends C {
|
|
1812
1817
|
}
|
|
1813
|
-
class He extends
|
|
1818
|
+
class He extends C {
|
|
1814
1819
|
/**
|
|
1815
1820
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
1816
1821
|
*
|
|
@@ -1839,10 +1844,10 @@ class He extends v {
|
|
|
1839
1844
|
* Координаты склада.
|
|
1840
1845
|
*/
|
|
1841
1846
|
s(this, "coordinates");
|
|
1842
|
-
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 X(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new
|
|
1847
|
+
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 X(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Dt(e == null ? void 0 : e.coordinates);
|
|
1843
1848
|
}
|
|
1844
1849
|
}
|
|
1845
|
-
class
|
|
1850
|
+
class Ps {
|
|
1846
1851
|
/**
|
|
1847
1852
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
1848
1853
|
*
|
|
@@ -1887,7 +1892,7 @@ class J extends N {
|
|
|
1887
1892
|
e && (this.signature = e.signature ?? "", this.code = e.code, this.symbol = e.symbol ?? "", this.precision = e.precision);
|
|
1888
1893
|
}
|
|
1889
1894
|
}
|
|
1890
|
-
class
|
|
1895
|
+
class et extends N {
|
|
1891
1896
|
/**
|
|
1892
1897
|
* Инициализирует экземпляр класса {@link ProductUnit}.
|
|
1893
1898
|
*
|
|
@@ -1929,7 +1934,7 @@ class Fe extends N {
|
|
|
1929
1934
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
1930
1935
|
}
|
|
1931
1936
|
}
|
|
1932
|
-
class
|
|
1937
|
+
class Rt extends Fe {
|
|
1933
1938
|
/**
|
|
1934
1939
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
1935
1940
|
*
|
|
@@ -1948,7 +1953,7 @@ class Dt extends Fe {
|
|
|
1948
1953
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
1949
1954
|
}
|
|
1950
1955
|
}
|
|
1951
|
-
class
|
|
1956
|
+
class Ts extends Rt {
|
|
1952
1957
|
/**
|
|
1953
1958
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
1954
1959
|
*
|
|
@@ -1963,7 +1968,7 @@ class Ps extends Dt {
|
|
|
1963
1968
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
1964
1969
|
}
|
|
1965
1970
|
}
|
|
1966
|
-
class
|
|
1971
|
+
class bs {
|
|
1967
1972
|
/**
|
|
1968
1973
|
* Инициализирует экземпляр класса {@link Image}.
|
|
1969
1974
|
*
|
|
@@ -1986,7 +1991,7 @@ class Ts {
|
|
|
1986
1991
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
1987
1992
|
}
|
|
1988
1993
|
}
|
|
1989
|
-
class $r extends
|
|
1994
|
+
class $r extends Rt {
|
|
1990
1995
|
/**
|
|
1991
1996
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
1992
1997
|
*
|
|
@@ -2001,7 +2006,7 @@ class $r extends Dt {
|
|
|
2001
2006
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
2002
2007
|
}
|
|
2003
2008
|
}
|
|
2004
|
-
class E extends
|
|
2009
|
+
class E extends Ts {
|
|
2005
2010
|
/**
|
|
2006
2011
|
* Инициализирует экземпляр класса {@link Product}.
|
|
2007
2012
|
*
|
|
@@ -2078,9 +2083,9 @@ class E extends Ps {
|
|
|
2078
2083
|
* Список коэффициентов цен на продукт.
|
|
2079
2084
|
*/
|
|
2080
2085
|
s(this, "priceCoefficients");
|
|
2081
|
-
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new
|
|
2086
|
+
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new et(e.unit) : new et(), 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 = I(e == null ? void 0 : e.costDate) ? _(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 Ps(p))) ?? [], this.type = "product";
|
|
2082
2087
|
const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
|
|
2083
|
-
t && (this.category = new $r({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new $r(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new
|
|
2088
|
+
t && (this.category = new $r({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new $r(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new bs(p, S().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 Fr(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
2084
2089
|
}
|
|
2085
2090
|
/**
|
|
2086
2091
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -2146,7 +2151,7 @@ class Pe extends E {
|
|
|
2146
2151
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
2147
2152
|
*/
|
|
2148
2153
|
s(this, "isFavorite");
|
|
2149
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Mr.Product, this.discount = e != null && e.discount ? new Ur(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new
|
|
2154
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Mr.Product, this.discount = e != null && e.discount ? new Ur(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Ce(e.priceTemplate) : void 0, this.priceCoefficient = e != null && e.priceCoefficient ? new he(e.priceCoefficient) : void 0, this.increasePercent = e == null ? void 0 : e.increasePercent, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
|
|
2150
2155
|
}
|
|
2151
2156
|
}
|
|
2152
2157
|
class ge extends $r {
|
|
@@ -2173,10 +2178,10 @@ class ge extends $r {
|
|
|
2173
2178
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
2174
2179
|
*/
|
|
2175
2180
|
s(this, "currencyRates");
|
|
2176
|
-
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]) => [
|
|
2181
|
+
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]) => [es(t), i])) : void 0;
|
|
2177
2182
|
}
|
|
2178
2183
|
}
|
|
2179
|
-
class
|
|
2184
|
+
class Pt extends pe {
|
|
2180
2185
|
/**
|
|
2181
2186
|
* Инициализирует экземпляр класса {@link OrderItemBase}.
|
|
2182
2187
|
*
|
|
@@ -2252,10 +2257,10 @@ class Rt extends pe {
|
|
|
2252
2257
|
* @inheritDoc
|
|
2253
2258
|
*/
|
|
2254
2259
|
s(this, "replacementId");
|
|
2255
|
-
this.product = new Pe(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ge(), 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 &&
|
|
2260
|
+
this.product = new Pe(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ge(), 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 && rs(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new q(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
|
|
2256
2261
|
}
|
|
2257
2262
|
}
|
|
2258
|
-
let Hr = class extends
|
|
2263
|
+
let Hr = class extends Pt {
|
|
2259
2264
|
/**
|
|
2260
2265
|
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
2261
2266
|
*
|
|
@@ -2324,7 +2329,7 @@ class Le {
|
|
|
2324
2329
|
this.items = r.items.map((e) => new Hr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
2325
2330
|
}
|
|
2326
2331
|
}
|
|
2327
|
-
class
|
|
2332
|
+
class wi extends h {
|
|
2328
2333
|
/**
|
|
2329
2334
|
* Возвращает содержимое корзины указанного клиента.
|
|
2330
2335
|
*
|
|
@@ -2438,7 +2443,7 @@ class ai extends h {
|
|
|
2438
2443
|
return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
|
|
2439
2444
|
}
|
|
2440
2445
|
}
|
|
2441
|
-
var
|
|
2446
|
+
var ds = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(ds || {}), As = /* @__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))(As || {}), Tt = /* @__PURE__ */ ((n) => (n.Checkbox = "checkbox", n.Range = "range", n.Toggle = "toggle", n))(Tt || {});
|
|
2442
2447
|
class Y extends ge {
|
|
2443
2448
|
/**
|
|
2444
2449
|
* Инициализирует экземпляр класса {@link Category}.
|
|
@@ -2459,7 +2464,7 @@ class Y extends ge {
|
|
|
2459
2464
|
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Y(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new E(o));
|
|
2460
2465
|
}
|
|
2461
2466
|
}
|
|
2462
|
-
class
|
|
2467
|
+
class bt {
|
|
2463
2468
|
/**
|
|
2464
2469
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
2465
2470
|
*
|
|
@@ -2477,7 +2482,7 @@ class Tt {
|
|
|
2477
2482
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
2478
2483
|
}
|
|
2479
2484
|
}
|
|
2480
|
-
class F extends
|
|
2485
|
+
class F extends C {
|
|
2481
2486
|
}
|
|
2482
2487
|
class Br extends ir {
|
|
2483
2488
|
/**
|
|
@@ -2507,12 +2512,12 @@ class Br extends ir {
|
|
|
2507
2512
|
* @inheritDoc
|
|
2508
2513
|
*/
|
|
2509
2514
|
s(this, "isRegionalDirector");
|
|
2510
|
-
this.salesDirection = e != null && e.salesDirection ? new F(e.salesDirection) : new F(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new
|
|
2515
|
+
this.salesDirection = e != null && e.salesDirection ? new F(e.salesDirection) : new F(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new bt(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
|
|
2511
2516
|
}
|
|
2512
2517
|
}
|
|
2513
|
-
class Gr extends
|
|
2518
|
+
class Gr extends C {
|
|
2514
2519
|
}
|
|
2515
|
-
class
|
|
2520
|
+
class dt extends N {
|
|
2516
2521
|
/**
|
|
2517
2522
|
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
2518
2523
|
*
|
|
@@ -2603,10 +2608,10 @@ class Z extends Br {
|
|
|
2603
2608
|
* Дата и время последнего входа в систему.
|
|
2604
2609
|
*/
|
|
2605
2610
|
s(this, "lastLoginAt");
|
|
2606
|
-
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.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new
|
|
2611
|
+
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.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new dt(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((c) => new Gr(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 or(c)), this.managers = (o = e == null ? void 0 : e.managers) == null ? void 0 : o.map((c) => new Z(c)), this.lastLoginAt = I(e == null ? void 0 : e.lastLoginAt) ? _(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt;
|
|
2607
2612
|
}
|
|
2608
2613
|
}
|
|
2609
|
-
class
|
|
2614
|
+
class Ss extends ge {
|
|
2610
2615
|
/**
|
|
2611
2616
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
2612
2617
|
*
|
|
@@ -2637,7 +2642,7 @@ class As extends ge {
|
|
|
2637
2642
|
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;
|
|
2638
2643
|
}
|
|
2639
2644
|
}
|
|
2640
|
-
class rr extends
|
|
2645
|
+
class rr extends Ss {
|
|
2641
2646
|
/**
|
|
2642
2647
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
2643
2648
|
*
|
|
@@ -2657,7 +2662,7 @@ class rr extends As {
|
|
|
2657
2662
|
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new rr(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Pe(o));
|
|
2658
2663
|
}
|
|
2659
2664
|
}
|
|
2660
|
-
class
|
|
2665
|
+
class At {
|
|
2661
2666
|
/**
|
|
2662
2667
|
* Инициализирует экземпляр класса {@link PriceCatalogableItem}.
|
|
2663
2668
|
*
|
|
@@ -2675,7 +2680,7 @@ class dt {
|
|
|
2675
2680
|
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new he(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
2676
2681
|
}
|
|
2677
2682
|
}
|
|
2678
|
-
class
|
|
2683
|
+
class St extends At {
|
|
2679
2684
|
/**
|
|
2680
2685
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
2681
2686
|
*
|
|
@@ -2685,7 +2690,7 @@ class At extends dt {
|
|
|
2685
2690
|
super(r);
|
|
2686
2691
|
}
|
|
2687
2692
|
}
|
|
2688
|
-
class wr extends
|
|
2693
|
+
class wr extends St {
|
|
2689
2694
|
/**
|
|
2690
2695
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
2691
2696
|
*
|
|
@@ -2720,12 +2725,12 @@ class zr extends N {
|
|
|
2720
2725
|
* @inheritDoc
|
|
2721
2726
|
*/
|
|
2722
2727
|
s(this, "curatedDirection");
|
|
2723
|
-
this.photo = e.photo, this.contacts = new
|
|
2728
|
+
this.photo = e.photo, this.contacts = new bt(e.contacts), this.curatedDirection = new Gr(e.curatedDirection);
|
|
2724
2729
|
}
|
|
2725
2730
|
}
|
|
2726
|
-
class Te extends
|
|
2731
|
+
class Te extends C {
|
|
2727
2732
|
}
|
|
2728
|
-
class ne extends
|
|
2733
|
+
class ne extends C {
|
|
2729
2734
|
/**
|
|
2730
2735
|
* Инициализирует экземпляр класса {@link Region}.
|
|
2731
2736
|
*
|
|
@@ -2740,7 +2745,7 @@ class ne extends v {
|
|
|
2740
2745
|
e && (this.country = new Te(e.country));
|
|
2741
2746
|
}
|
|
2742
2747
|
}
|
|
2743
|
-
class ee extends
|
|
2748
|
+
class ee extends C {
|
|
2744
2749
|
/**
|
|
2745
2750
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
2746
2751
|
*
|
|
@@ -2755,7 +2760,7 @@ class ee extends v {
|
|
|
2755
2760
|
e && (this.region = new ne(e.region));
|
|
2756
2761
|
}
|
|
2757
2762
|
}
|
|
2758
|
-
class
|
|
2763
|
+
class $t extends ir {
|
|
2759
2764
|
/**
|
|
2760
2765
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
2761
2766
|
*
|
|
@@ -2790,7 +2795,7 @@ class St extends ir {
|
|
|
2790
2795
|
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 F(e.salesDirection) : void 0, this.lastLoginAt = I(e == null ? void 0 : e.lastLoginAt) ? _(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
2791
2796
|
}
|
|
2792
2797
|
}
|
|
2793
|
-
class fe extends
|
|
2798
|
+
class fe extends $t {
|
|
2794
2799
|
/**
|
|
2795
2800
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2796
2801
|
*
|
|
@@ -2839,7 +2844,7 @@ class fe extends St {
|
|
|
2839
2844
|
this.salesDirection = new F(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 ee(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 Br(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new zr(o))) ?? void 0;
|
|
2840
2845
|
}
|
|
2841
2846
|
}
|
|
2842
|
-
class
|
|
2847
|
+
class $s extends sr {
|
|
2843
2848
|
/**
|
|
2844
2849
|
* Инициализирует экземпляр класса {@link DeletableIdentity}.
|
|
2845
2850
|
*
|
|
@@ -2855,7 +2860,7 @@ class Ss extends sr {
|
|
|
2855
2860
|
this.deletedAt = O.parse(e == null ? void 0 : e.deletedAt);
|
|
2856
2861
|
}
|
|
2857
2862
|
}
|
|
2858
|
-
class xe extends
|
|
2863
|
+
class xe extends $s {
|
|
2859
2864
|
/**
|
|
2860
2865
|
* Инициализирует новый экземпляр класса.
|
|
2861
2866
|
*
|
|
@@ -2871,10 +2876,10 @@ class xe extends Ss {
|
|
|
2871
2876
|
* Данные шаблона прайс-листа.
|
|
2872
2877
|
*/
|
|
2873
2878
|
s(this, "priceTemplate");
|
|
2874
|
-
this.client = new fe(e == null ? void 0 : e.client), this.priceTemplate = new
|
|
2879
|
+
this.client = new fe(e == null ? void 0 : e.client), this.priceTemplate = new Ce(e == null ? void 0 : e.priceTemplate);
|
|
2875
2880
|
}
|
|
2876
2881
|
}
|
|
2877
|
-
class
|
|
2882
|
+
class vr extends St {
|
|
2878
2883
|
/**
|
|
2879
2884
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
2880
2885
|
*
|
|
@@ -2889,7 +2894,7 @@ class Cr extends At {
|
|
|
2889
2894
|
this.product = new E(e == null ? void 0 : e.product);
|
|
2890
2895
|
}
|
|
2891
2896
|
}
|
|
2892
|
-
class
|
|
2897
|
+
class kt extends C {
|
|
2893
2898
|
}
|
|
2894
2899
|
class De extends N {
|
|
2895
2900
|
/**
|
|
@@ -2915,10 +2920,10 @@ class De extends N {
|
|
|
2915
2920
|
* Признак того, что по свойству может производиться фильтрация в каталоге.
|
|
2916
2921
|
*/
|
|
2917
2922
|
s(this, "isFilterable");
|
|
2918
|
-
this.type = new
|
|
2923
|
+
this.type = new kt(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;
|
|
2919
2924
|
}
|
|
2920
2925
|
}
|
|
2921
|
-
class
|
|
2926
|
+
class ve {
|
|
2922
2927
|
/**
|
|
2923
2928
|
* Инициализирует экземпляр класса {@link PropertyValue}.
|
|
2924
2929
|
*
|
|
@@ -2937,7 +2942,7 @@ class Ce {
|
|
|
2937
2942
|
this.property = new De(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2938
2943
|
}
|
|
2939
2944
|
}
|
|
2940
|
-
class
|
|
2945
|
+
class vi {
|
|
2941
2946
|
/**
|
|
2942
2947
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
2943
2948
|
*
|
|
@@ -3006,7 +3011,7 @@ class wi {
|
|
|
3006
3011
|
}), !((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;
|
|
3007
3012
|
}
|
|
3008
3013
|
}
|
|
3009
|
-
class
|
|
3014
|
+
class Ot extends At {
|
|
3010
3015
|
/**
|
|
3011
3016
|
* Инициализирует экземпляр класса {@link ClientPriceCatalogableItem}.
|
|
3012
3017
|
*
|
|
@@ -3025,7 +3030,7 @@ class kt extends dt {
|
|
|
3025
3030
|
this.executor = e != null && e.executor ? new q(e.executor) : void 0, this.createdAt = O.parse(e == null ? void 0 : e.createdAt);
|
|
3026
3031
|
}
|
|
3027
3032
|
}
|
|
3028
|
-
class
|
|
3033
|
+
class Cr extends Ot {
|
|
3029
3034
|
/**
|
|
3030
3035
|
* Инициализирует экземпляр класса {@link ClientPriceProduct}.
|
|
3031
3036
|
*
|
|
@@ -3040,7 +3045,7 @@ class vr extends kt {
|
|
|
3040
3045
|
this.product = new E(e == null ? void 0 : e.product);
|
|
3041
3046
|
}
|
|
3042
3047
|
}
|
|
3043
|
-
class
|
|
3048
|
+
class rt extends Ot {
|
|
3044
3049
|
/**
|
|
3045
3050
|
* Инициализирует экземпляр класса {@link ClientPriceCategory}.
|
|
3046
3051
|
*
|
|
@@ -3090,7 +3095,7 @@ class Ie extends N {
|
|
|
3090
3095
|
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;
|
|
3091
3096
|
}
|
|
3092
3097
|
}
|
|
3093
|
-
class
|
|
3098
|
+
class tt {
|
|
3094
3099
|
/**
|
|
3095
3100
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
3096
3101
|
*
|
|
@@ -3112,7 +3117,7 @@ class rt {
|
|
|
3112
3117
|
this.role = new Ie(r == null ? void 0 : r.role), this.category = new ge(r == null ? void 0 : r.category), this.minCoefficient = new he(r == null ? void 0 : r.minCoefficient);
|
|
3113
3118
|
}
|
|
3114
3119
|
}
|
|
3115
|
-
class
|
|
3120
|
+
class ks {
|
|
3116
3121
|
/**
|
|
3117
3122
|
* Инициализирует экземпляр класса {@link FilterSettings}.
|
|
3118
3123
|
*
|
|
@@ -3145,7 +3150,7 @@ class $s {
|
|
|
3145
3150
|
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;
|
|
3146
3151
|
}
|
|
3147
3152
|
}
|
|
3148
|
-
class
|
|
3153
|
+
class st {
|
|
3149
3154
|
/**
|
|
3150
3155
|
* Инициализирует экземпляр класса {@link CategoryFilterSetting}.
|
|
3151
3156
|
*
|
|
@@ -3164,10 +3169,10 @@ class tt {
|
|
|
3164
3169
|
* @inheritDoc
|
|
3165
3170
|
*/
|
|
3166
3171
|
s(this, "settings");
|
|
3167
|
-
this.category = new ge(r == null ? void 0 : r.category), this.property = new De(r == null ? void 0 : r.property), this.settings = new
|
|
3172
|
+
this.category = new ge(r == null ? void 0 : r.category), this.property = new De(r == null ? void 0 : r.property), this.settings = new ks(r == null ? void 0 : r.settings);
|
|
3168
3173
|
}
|
|
3169
3174
|
}
|
|
3170
|
-
class
|
|
3175
|
+
class Os {
|
|
3171
3176
|
/**
|
|
3172
3177
|
* Инициализирует экземпляр класса {@link CategoryFilterValue}.
|
|
3173
3178
|
*
|
|
@@ -3185,7 +3190,7 @@ class ks {
|
|
|
3185
3190
|
this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "";
|
|
3186
3191
|
}
|
|
3187
3192
|
}
|
|
3188
|
-
class
|
|
3193
|
+
class Ls {
|
|
3189
3194
|
/**
|
|
3190
3195
|
* Инициализирует экземпляр класса {@link CategoryFilter}.
|
|
3191
3196
|
*
|
|
@@ -3228,7 +3233,7 @@ class Os {
|
|
|
3228
3233
|
*/
|
|
3229
3234
|
s(this, "max");
|
|
3230
3235
|
var e;
|
|
3231
|
-
this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ??
|
|
3236
|
+
this.id = (r == null ? void 0 : r.id) ?? "", this.label = (r == null ? void 0 : r.label) ?? "", this.type = (r == null ? void 0 : r.type) ?? Tt.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 Os(t))) ?? [], this.min = (r == null ? void 0 : r.min) ?? null, this.max = (r == null ? void 0 : r.max) ?? null;
|
|
3232
3237
|
}
|
|
3233
3238
|
}
|
|
3234
3239
|
class Ci extends h {
|
|
@@ -3262,7 +3267,7 @@ class Ci extends h {
|
|
|
3262
3267
|
return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
|
|
3263
3268
|
}
|
|
3264
3269
|
}
|
|
3265
|
-
class
|
|
3270
|
+
class Di extends h {
|
|
3266
3271
|
/**
|
|
3267
3272
|
* Импортирует цены клиента из CSV файла.
|
|
3268
3273
|
*
|
|
@@ -3283,7 +3288,7 @@ class vi extends h {
|
|
|
3283
3288
|
* @see /doc/api/internal#/operations/api_internal_client_price_categories_get_list
|
|
3284
3289
|
*/
|
|
3285
3290
|
getCategoryPrices(r) {
|
|
3286
|
-
return this.getTypedList(
|
|
3291
|
+
return this.getTypedList(rt, `/internal/clients/${r}/price/categories`);
|
|
3287
3292
|
}
|
|
3288
3293
|
/**
|
|
3289
3294
|
* Возвращает цену прайс-листа клиента, установленную на категорию.
|
|
@@ -3294,7 +3299,7 @@ class vi extends h {
|
|
|
3294
3299
|
* @see /doc/api/internal#/operations/api_internal_client_price_categories_get
|
|
3295
3300
|
*/
|
|
3296
3301
|
getCategoryPrice(r, e) {
|
|
3297
|
-
return this.get(`/internal/clients/${r}/price/categories/${e}`, {}, (t) => new
|
|
3302
|
+
return this.get(`/internal/clients/${r}/price/categories/${e}`, {}, (t) => new rt(t.data));
|
|
3298
3303
|
}
|
|
3299
3304
|
/**
|
|
3300
3305
|
* Устанавливает цену прайс-листа клиента на категорию.
|
|
@@ -3426,7 +3431,7 @@ class vi extends h {
|
|
|
3426
3431
|
* @see /doc/api/internal#/operations/api_internal_client_price_products_get_list
|
|
3427
3432
|
*/
|
|
3428
3433
|
getProductPrices(r) {
|
|
3429
|
-
return this.getTypedList(
|
|
3434
|
+
return this.getTypedList(Cr, `/internal/clients/${r}/price/products`);
|
|
3430
3435
|
}
|
|
3431
3436
|
/**
|
|
3432
3437
|
* Возвращает цену прайс-листа клиента, установленную на продукт.
|
|
@@ -3437,7 +3442,7 @@ class vi extends h {
|
|
|
3437
3442
|
* @see /doc/api/internal#/operations/api_internal_client_price_products_get
|
|
3438
3443
|
*/
|
|
3439
3444
|
getProductPrice(r, e) {
|
|
3440
|
-
return this.get(`/internal/clients/${r}/price/products/${e}`, {}, (t) => new
|
|
3445
|
+
return this.get(`/internal/clients/${r}/price/products/${e}`, {}, (t) => new Cr(t.data));
|
|
3441
3446
|
}
|
|
3442
3447
|
/**
|
|
3443
3448
|
* Устанавливает цену прайс-листа клиента на продукт.
|
|
@@ -3456,7 +3461,7 @@ class vi extends h {
|
|
|
3456
3461
|
price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
|
|
3457
3462
|
increase_percent: t.value
|
|
3458
3463
|
},
|
|
3459
|
-
(o) => new
|
|
3464
|
+
(o) => new Cr(o.data)
|
|
3460
3465
|
);
|
|
3461
3466
|
}
|
|
3462
3467
|
/**
|
|
@@ -3531,7 +3536,7 @@ class vi extends h {
|
|
|
3531
3536
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
3532
3537
|
}
|
|
3533
3538
|
}
|
|
3534
|
-
class
|
|
3539
|
+
class Ri extends h {
|
|
3535
3540
|
/**
|
|
3536
3541
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
3537
3542
|
*
|
|
@@ -3619,7 +3624,7 @@ class Di extends h {
|
|
|
3619
3624
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
|
|
3620
3625
|
}
|
|
3621
3626
|
}
|
|
3622
|
-
class
|
|
3627
|
+
class Pi extends h {
|
|
3623
3628
|
/**
|
|
3624
3629
|
* Возвращает список данных о корневых категориях.
|
|
3625
3630
|
*
|
|
@@ -3688,7 +3693,7 @@ class Ri extends h {
|
|
|
3688
3693
|
getCategoryProductsCoefficients(r) {
|
|
3689
3694
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
3690
3695
|
const { data: t } = e;
|
|
3691
|
-
return
|
|
3696
|
+
return ts(t, (i) => i.map((o) => new Fr(o))), t;
|
|
3692
3697
|
});
|
|
3693
3698
|
}
|
|
3694
3699
|
/**
|
|
@@ -3707,7 +3712,7 @@ class Ri extends h {
|
|
|
3707
3712
|
});
|
|
3708
3713
|
}
|
|
3709
3714
|
}
|
|
3710
|
-
class
|
|
3715
|
+
class Ti extends M {
|
|
3711
3716
|
/**
|
|
3712
3717
|
* Возвращает данные об указанном продукте.
|
|
3713
3718
|
*
|
|
@@ -3773,7 +3778,7 @@ class Pi extends M {
|
|
|
3773
3778
|
});
|
|
3774
3779
|
}
|
|
3775
3780
|
}
|
|
3776
|
-
class
|
|
3781
|
+
class bi extends h {
|
|
3777
3782
|
/**
|
|
3778
3783
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
3779
3784
|
*
|
|
@@ -3831,7 +3836,7 @@ class Ti extends h {
|
|
|
3831
3836
|
);
|
|
3832
3837
|
}
|
|
3833
3838
|
}
|
|
3834
|
-
class
|
|
3839
|
+
class di extends M {
|
|
3835
3840
|
/**
|
|
3836
3841
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
3837
3842
|
*
|
|
@@ -3870,7 +3875,7 @@ class bi extends M {
|
|
|
3870
3875
|
});
|
|
3871
3876
|
}
|
|
3872
3877
|
}
|
|
3873
|
-
class
|
|
3878
|
+
class Ai extends M {
|
|
3874
3879
|
/**
|
|
3875
3880
|
* Возвращает список шаблонов прайс-листа.
|
|
3876
3881
|
*
|
|
@@ -3881,7 +3886,7 @@ class di extends M {
|
|
|
3881
3886
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_get_list
|
|
3882
3887
|
*/
|
|
3883
3888
|
getTemplateList(r, e, t) {
|
|
3884
|
-
return this.getTypedPaginated(
|
|
3889
|
+
return this.getTypedPaginated(Ce, "/internal/price/templates", r, e, t);
|
|
3885
3890
|
}
|
|
3886
3891
|
/**
|
|
3887
3892
|
* Создание нового шаблона прайс-листа.
|
|
@@ -3893,7 +3898,7 @@ class di extends M {
|
|
|
3893
3898
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
|
|
3894
3899
|
*/
|
|
3895
3900
|
createTemplate(r, e = {}) {
|
|
3896
|
-
return this.post("/internal/price/templates", r, (t) => new
|
|
3901
|
+
return this.post("/internal/price/templates", r, (t) => new Ce(t.data), e);
|
|
3897
3902
|
}
|
|
3898
3903
|
/**
|
|
3899
3904
|
* Возвращает данные о шаблоне прайс-листа.
|
|
@@ -3903,7 +3908,7 @@ class di extends M {
|
|
|
3903
3908
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
|
|
3904
3909
|
*/
|
|
3905
3910
|
getTemplate(r) {
|
|
3906
|
-
return this.get(`/internal/price/templates/${r}`, {}, (e) => new
|
|
3911
|
+
return this.get(`/internal/price/templates/${r}`, {}, (e) => new Ce(e.data));
|
|
3907
3912
|
}
|
|
3908
3913
|
/**
|
|
3909
3914
|
* Изменяет данные о шаблоне прайс-листа.
|
|
@@ -3916,7 +3921,7 @@ class di extends M {
|
|
|
3916
3921
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
|
|
3917
3922
|
*/
|
|
3918
3923
|
updateTemplate(r, e, t = {}) {
|
|
3919
|
-
return this.patch(`/internal/price/templates/${r}`, e, (i) => new
|
|
3924
|
+
return this.patch(`/internal/price/templates/${r}`, e, (i) => new Ce(i.data), t);
|
|
3920
3925
|
}
|
|
3921
3926
|
/**
|
|
3922
3927
|
* Удаляет данные о шаблоне прайс-листа.
|
|
@@ -3936,7 +3941,7 @@ class di extends M {
|
|
|
3936
3941
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get_list
|
|
3937
3942
|
*/
|
|
3938
3943
|
getProductTemplatePrices(r) {
|
|
3939
|
-
return this.getTypedList(
|
|
3944
|
+
return this.getTypedList(vr, `/internal/price/templates/${r}/products`);
|
|
3940
3945
|
}
|
|
3941
3946
|
/**
|
|
3942
3947
|
* Возвращает данные о цене на продукт в шаблоне прайс-листа.
|
|
@@ -3947,7 +3952,7 @@ class di extends M {
|
|
|
3947
3952
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
3948
3953
|
*/
|
|
3949
3954
|
getProductTemplatePrice(r, e) {
|
|
3950
|
-
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new
|
|
3955
|
+
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new vr(t.data));
|
|
3951
3956
|
}
|
|
3952
3957
|
/**
|
|
3953
3958
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -3966,7 +3971,7 @@ class di extends M {
|
|
|
3966
3971
|
price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
|
|
3967
3972
|
increase_percent: t.value
|
|
3968
3973
|
},
|
|
3969
|
-
(o) => new
|
|
3974
|
+
(o) => new vr(o.data)
|
|
3970
3975
|
);
|
|
3971
3976
|
}
|
|
3972
3977
|
/**
|
|
@@ -4059,7 +4064,7 @@ class di extends M {
|
|
|
4059
4064
|
return this.getTypedList(xe, `/internal/price/templates/${r}/clients`);
|
|
4060
4065
|
}
|
|
4061
4066
|
}
|
|
4062
|
-
class
|
|
4067
|
+
class Si extends h {
|
|
4063
4068
|
/**
|
|
4064
4069
|
* Возвращает список ролей ценообразования.
|
|
4065
4070
|
*
|
|
@@ -4117,7 +4122,7 @@ class Ai extends h {
|
|
|
4117
4122
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_category_rules_get
|
|
4118
4123
|
*/
|
|
4119
4124
|
getCategoryRules(r) {
|
|
4120
|
-
return this.getTypedList(
|
|
4125
|
+
return this.getTypedList(tt, `/internal/price/roles/rules/categories/${r}`);
|
|
4121
4126
|
}
|
|
4122
4127
|
/**
|
|
4123
4128
|
* Обновляет правила для роли ценообразования по указанной категории.
|
|
@@ -4131,11 +4136,11 @@ class Ai extends h {
|
|
|
4131
4136
|
return this.patch(
|
|
4132
4137
|
`/internal/price/roles/rules/categories/${r}`,
|
|
4133
4138
|
e,
|
|
4134
|
-
(t) => U.instanceListInitializer(
|
|
4139
|
+
(t) => U.instanceListInitializer(tt, t.data)
|
|
4135
4140
|
);
|
|
4136
4141
|
}
|
|
4137
4142
|
}
|
|
4138
|
-
class
|
|
4143
|
+
class $i extends M {
|
|
4139
4144
|
/**
|
|
4140
4145
|
* Возвращает пагинированный список свойств.
|
|
4141
4146
|
*
|
|
@@ -4208,7 +4213,7 @@ class Si extends M {
|
|
|
4208
4213
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
|
|
4209
4214
|
*/
|
|
4210
4215
|
getProductProperties(r) {
|
|
4211
|
-
return this.getTypedList(
|
|
4216
|
+
return this.getTypedList(ve, `/internal/catalog/products/${r}/properties`);
|
|
4212
4217
|
}
|
|
4213
4218
|
/**
|
|
4214
4219
|
* Возвращает значение свойства продукта.
|
|
@@ -4218,7 +4223,7 @@ class Si extends M {
|
|
|
4218
4223
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
|
|
4219
4224
|
*/
|
|
4220
4225
|
getProductProperty(r, e) {
|
|
4221
|
-
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new
|
|
4226
|
+
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new ve(t.data));
|
|
4222
4227
|
}
|
|
4223
4228
|
/**
|
|
4224
4229
|
* Обновляет значение свойства продукта.
|
|
@@ -4229,7 +4234,7 @@ class Si extends M {
|
|
|
4229
4234
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
|
|
4230
4235
|
*/
|
|
4231
4236
|
updateProductProperty(r, e, t) {
|
|
4232
|
-
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new
|
|
4237
|
+
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new ve(i.data));
|
|
4233
4238
|
}
|
|
4234
4239
|
/**
|
|
4235
4240
|
* Удаляет значение свойства продукта.
|
|
@@ -4354,7 +4359,7 @@ class Si extends M {
|
|
|
4354
4359
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
|
|
4355
4360
|
*/
|
|
4356
4361
|
getCategoryProperties(r) {
|
|
4357
|
-
return this.getTypedList(
|
|
4362
|
+
return this.getTypedList(ve, `/internal/catalog/categories/${r}/properties`);
|
|
4358
4363
|
}
|
|
4359
4364
|
/**
|
|
4360
4365
|
* Возвращает значение свойства категории.
|
|
@@ -4364,7 +4369,7 @@ class Si extends M {
|
|
|
4364
4369
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
|
|
4365
4370
|
*/
|
|
4366
4371
|
getCategoryProperty(r, e) {
|
|
4367
|
-
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new
|
|
4372
|
+
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new ve(t.data));
|
|
4368
4373
|
}
|
|
4369
4374
|
/**
|
|
4370
4375
|
* Обновляет значение свойства категории.
|
|
@@ -4375,7 +4380,7 @@ class Si extends M {
|
|
|
4375
4380
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
|
|
4376
4381
|
*/
|
|
4377
4382
|
updateCategoryProperty(r, e, t) {
|
|
4378
|
-
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new
|
|
4383
|
+
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new ve(i.data));
|
|
4379
4384
|
}
|
|
4380
4385
|
/**
|
|
4381
4386
|
* Удаляет значение свойства категории.
|
|
@@ -4514,7 +4519,7 @@ class Si extends M {
|
|
|
4514
4519
|
return this.get(
|
|
4515
4520
|
`/internal/catalog/categories/${r}/filters`,
|
|
4516
4521
|
{ recursively: e },
|
|
4517
|
-
(t) => t.data.map((i) => new
|
|
4522
|
+
(t) => t.data.map((i) => new Ls(i))
|
|
4518
4523
|
);
|
|
4519
4524
|
}
|
|
4520
4525
|
/**
|
|
@@ -4524,7 +4529,7 @@ class Si extends M {
|
|
|
4524
4529
|
* @see /doc/api/internal#/operations/api_internal_catalog_categories_filter_settings_get_list
|
|
4525
4530
|
*/
|
|
4526
4531
|
getCategoryFilterSettings(r) {
|
|
4527
|
-
return this.getTypedList(
|
|
4532
|
+
return this.getTypedList(st, `/internal/catalog/categories/${r}/filter-settings`);
|
|
4528
4533
|
}
|
|
4529
4534
|
/**
|
|
4530
4535
|
* Сохраняет настройки фильтра в категории.
|
|
@@ -4538,7 +4543,7 @@ class Si extends M {
|
|
|
4538
4543
|
return this.patch(
|
|
4539
4544
|
`/internal/catalog/categories/${r}/filter-settings/${e}`,
|
|
4540
4545
|
t,
|
|
4541
|
-
(i) => new
|
|
4546
|
+
(i) => new st(i.data)
|
|
4542
4547
|
);
|
|
4543
4548
|
}
|
|
4544
4549
|
/**
|
|
@@ -4552,7 +4557,7 @@ class Si extends M {
|
|
|
4552
4557
|
return this.delete(`/internal/catalog/categories/${r}/filter-settings/${e}`);
|
|
4553
4558
|
}
|
|
4554
4559
|
}
|
|
4555
|
-
class
|
|
4560
|
+
class ki extends h {
|
|
4556
4561
|
/**
|
|
4557
4562
|
* Возвращает список данных о корневых категориях указанного шаблона прайс-листа.
|
|
4558
4563
|
*
|
|
@@ -4610,7 +4615,7 @@ class $i extends h {
|
|
|
4610
4615
|
);
|
|
4611
4616
|
}
|
|
4612
4617
|
}
|
|
4613
|
-
function
|
|
4618
|
+
function it(n, r, e) {
|
|
4614
4619
|
let t;
|
|
4615
4620
|
return n.some((i) => {
|
|
4616
4621
|
if (i.type === e && i.id === r)
|
|
@@ -4619,28 +4624,28 @@ function st(n, r, e) {
|
|
|
4619
4624
|
return !1;
|
|
4620
4625
|
const o = i;
|
|
4621
4626
|
if (o.products && o.products.length > 0) {
|
|
4622
|
-
const c =
|
|
4627
|
+
const c = it(o.products, r, e);
|
|
4623
4628
|
if (c)
|
|
4624
4629
|
return t = c, !0;
|
|
4625
4630
|
}
|
|
4626
4631
|
if (o.categories && o.categories.length > 0) {
|
|
4627
|
-
const c =
|
|
4632
|
+
const c = it(o.categories, r, e);
|
|
4628
4633
|
if (c)
|
|
4629
4634
|
return t = c, !0;
|
|
4630
4635
|
}
|
|
4631
4636
|
return !1;
|
|
4632
4637
|
}), t;
|
|
4633
4638
|
}
|
|
4634
|
-
function
|
|
4639
|
+
function nt(n) {
|
|
4635
4640
|
const r = [];
|
|
4636
4641
|
return n.forEach((e) => {
|
|
4637
4642
|
if (r.push(e), e.type === "category") {
|
|
4638
4643
|
const t = e;
|
|
4639
|
-
t.products && t.products.length > 0 && r.push(...
|
|
4644
|
+
t.products && t.products.length > 0 && r.push(...nt(t.products)), t.categories && t.categories.length > 0 && r.push(...nt(t.categories));
|
|
4640
4645
|
}
|
|
4641
4646
|
}), r;
|
|
4642
4647
|
}
|
|
4643
|
-
var
|
|
4648
|
+
var xs = /* @__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))(xs || {}), K = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(K || {});
|
|
4644
4649
|
class kr extends pe {
|
|
4645
4650
|
/**
|
|
4646
4651
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
@@ -4718,7 +4723,7 @@ class oe extends Or {
|
|
|
4718
4723
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment;
|
|
4719
4724
|
}
|
|
4720
4725
|
}
|
|
4721
|
-
class ce extends
|
|
4726
|
+
class ce extends C {
|
|
4722
4727
|
/**
|
|
4723
4728
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
4724
4729
|
*/
|
|
@@ -4731,9 +4736,9 @@ class ce extends v {
|
|
|
4731
4736
|
});
|
|
4732
4737
|
}
|
|
4733
4738
|
}
|
|
4734
|
-
class le extends
|
|
4739
|
+
class le extends C {
|
|
4735
4740
|
}
|
|
4736
|
-
class
|
|
4741
|
+
class Lt extends nr {
|
|
4737
4742
|
/**
|
|
4738
4743
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
4739
4744
|
*
|
|
@@ -4790,7 +4795,7 @@ class Ot extends nr {
|
|
|
4790
4795
|
}
|
|
4791
4796
|
}
|
|
4792
4797
|
}
|
|
4793
|
-
class
|
|
4798
|
+
class Is extends Lt {
|
|
4794
4799
|
/**
|
|
4795
4800
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
4796
4801
|
*
|
|
@@ -4800,7 +4805,7 @@ class xs extends Ot {
|
|
|
4800
4805
|
super(r);
|
|
4801
4806
|
}
|
|
4802
4807
|
}
|
|
4803
|
-
class
|
|
4808
|
+
class xt extends Lt {
|
|
4804
4809
|
/**
|
|
4805
4810
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
4806
4811
|
*
|
|
@@ -4816,6 +4821,10 @@ class Lt extends Ot {
|
|
|
4816
4821
|
* Код ОКПО.
|
|
4817
4822
|
*/
|
|
4818
4823
|
s(this, "okpo", "");
|
|
4824
|
+
/**
|
|
4825
|
+
* ОГРН (ОГРНИП для индивидуального предпринимателя).
|
|
4826
|
+
*/
|
|
4827
|
+
s(this, "ogrn", "");
|
|
4819
4828
|
/**
|
|
4820
4829
|
* ФИО руководителя.
|
|
4821
4830
|
*/
|
|
@@ -4840,10 +4849,10 @@ class Lt extends Ot {
|
|
|
4840
4849
|
* Фактический адрес.
|
|
4841
4850
|
*/
|
|
4842
4851
|
s(this, "actualAddress", "");
|
|
4843
|
-
e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
|
|
4852
|
+
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 ?? "");
|
|
4844
4853
|
}
|
|
4845
4854
|
}
|
|
4846
|
-
class
|
|
4855
|
+
class It extends xt {
|
|
4847
4856
|
/**
|
|
4848
4857
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
4849
4858
|
*
|
|
@@ -4858,7 +4867,7 @@ class xt extends Lt {
|
|
|
4858
4867
|
e && (this.kpp = e.kpp ?? "");
|
|
4859
4868
|
}
|
|
4860
4869
|
}
|
|
4861
|
-
class
|
|
4870
|
+
class _s extends It {
|
|
4862
4871
|
/**
|
|
4863
4872
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
4864
4873
|
*
|
|
@@ -4890,13 +4899,13 @@ class tr {
|
|
|
4890
4899
|
static createInstance(r) {
|
|
4891
4900
|
switch (r.opf.slug) {
|
|
4892
4901
|
case K.Ic:
|
|
4893
|
-
return new Lt(r);
|
|
4894
|
-
case K.UlR:
|
|
4895
4902
|
return new xt(r);
|
|
4903
|
+
case K.UlR:
|
|
4904
|
+
return new It(r);
|
|
4896
4905
|
case K.UlNr:
|
|
4897
|
-
return new
|
|
4906
|
+
return new _s(r);
|
|
4898
4907
|
default:
|
|
4899
|
-
return new
|
|
4908
|
+
return new Is(r);
|
|
4900
4909
|
}
|
|
4901
4910
|
}
|
|
4902
4911
|
}
|
|
@@ -4937,14 +4946,14 @@ class qe extends nr {
|
|
|
4937
4946
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
4938
4947
|
*/
|
|
4939
4948
|
s(this, "isTransportCompanyAddress");
|
|
4940
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
4949
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Dt(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new oe(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;
|
|
4941
4950
|
}
|
|
4942
4951
|
}
|
|
4943
|
-
class
|
|
4952
|
+
class _t extends C {
|
|
4944
4953
|
}
|
|
4945
|
-
class
|
|
4954
|
+
class qt extends C {
|
|
4946
4955
|
}
|
|
4947
|
-
class
|
|
4956
|
+
class ot extends fe {
|
|
4948
4957
|
/**
|
|
4949
4958
|
* Инициализирует экземпляр класса {@link Client}.
|
|
4950
4959
|
*
|
|
@@ -4994,10 +5003,10 @@ class nt extends fe {
|
|
|
4994
5003
|
* @inheritDoc
|
|
4995
5004
|
*/
|
|
4996
5005
|
s(this, "extraData");
|
|
4997
|
-
this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => tr.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new le(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new oe(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new qe(u))) ?? [], this.channelPrimaryInterest = new
|
|
5006
|
+
this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => tr.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new le(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new oe(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new qe(u))) ?? [], this.channelPrimaryInterest = new _t(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new qt(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new He(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
4998
5007
|
}
|
|
4999
5008
|
}
|
|
5000
|
-
class
|
|
5009
|
+
class Oi extends de {
|
|
5001
5010
|
/**
|
|
5002
5011
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
5003
5012
|
*
|
|
@@ -5178,7 +5187,7 @@ class ki extends de {
|
|
|
5178
5187
|
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;
|
|
5179
5188
|
}
|
|
5180
5189
|
}
|
|
5181
|
-
class
|
|
5190
|
+
class Nt extends sr {
|
|
5182
5191
|
/**
|
|
5183
5192
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
5184
5193
|
*
|
|
@@ -5193,7 +5202,7 @@ class qt extends sr {
|
|
|
5193
5202
|
this.creator = new q(e == null ? void 0 : e.creator);
|
|
5194
5203
|
}
|
|
5195
5204
|
}
|
|
5196
|
-
class
|
|
5205
|
+
class qs extends N {
|
|
5197
5206
|
/**
|
|
5198
5207
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
5199
5208
|
*
|
|
@@ -5230,7 +5239,7 @@ class _s extends N {
|
|
|
5230
5239
|
* @inheritDoc
|
|
5231
5240
|
*/
|
|
5232
5241
|
s(this, "curators");
|
|
5233
|
-
this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new oe(u))) ?? void 0, this.lastOrder = e.lastOrder ? new
|
|
5242
|
+
this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new oe(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Nt(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new le(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new X(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new F(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Br(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new zr(u))) ?? void 0;
|
|
5234
5243
|
}
|
|
5235
5244
|
}
|
|
5236
5245
|
class Dr extends pe {
|
|
@@ -5248,7 +5257,7 @@ class Dr extends pe {
|
|
|
5248
5257
|
this.isPrimary = e.isPrimary;
|
|
5249
5258
|
}
|
|
5250
5259
|
}
|
|
5251
|
-
class
|
|
5260
|
+
class Ns extends oe {
|
|
5252
5261
|
/**
|
|
5253
5262
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
5254
5263
|
*
|
|
@@ -5317,6 +5326,7 @@ class W extends M {
|
|
|
5317
5326
|
comment: t.comment,
|
|
5318
5327
|
inn: t.inn,
|
|
5319
5328
|
okpo: t.okpo,
|
|
5329
|
+
ogrn: t.ogrn || void 0,
|
|
5320
5330
|
director_name: t.directorName,
|
|
5321
5331
|
director_position: t.directorPosition,
|
|
5322
5332
|
director_acts_on: t.directorActsOn,
|
|
@@ -5335,6 +5345,7 @@ class W extends M {
|
|
|
5335
5345
|
inn: i.inn,
|
|
5336
5346
|
kpp: i.kpp,
|
|
5337
5347
|
okpo: i.okpo,
|
|
5348
|
+
ogrn: i.ogrn || void 0,
|
|
5338
5349
|
director_name: i.directorName,
|
|
5339
5350
|
director_position: i.directorPosition,
|
|
5340
5351
|
director_acts_on: i.directorActsOn,
|
|
@@ -5415,7 +5426,7 @@ class W extends M {
|
|
|
5415
5426
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
5416
5427
|
*/
|
|
5417
5428
|
getClient(r) {
|
|
5418
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
5429
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new ot(e.data));
|
|
5419
5430
|
}
|
|
5420
5431
|
/**
|
|
5421
5432
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -5466,7 +5477,7 @@ class W extends M {
|
|
|
5466
5477
|
return this.post(
|
|
5467
5478
|
"/internal/clients/additional-data",
|
|
5468
5479
|
{ clients: t, requested_data_types: e },
|
|
5469
|
-
(i) => U.instanceListInitializer(
|
|
5480
|
+
(i) => U.instanceListInitializer(qs, i.data)
|
|
5470
5481
|
);
|
|
5471
5482
|
}
|
|
5472
5483
|
/**
|
|
@@ -5476,7 +5487,7 @@ class W extends M {
|
|
|
5476
5487
|
* @see /doc/api/internal#/Контакты/api_internal_client_contact_get_all_contact_list
|
|
5477
5488
|
*/
|
|
5478
5489
|
getAllClientContacts(r) {
|
|
5479
|
-
return this.getTypedList(
|
|
5490
|
+
return this.getTypedList(Ns, `/internal/clients/${r}/contacts/all`);
|
|
5480
5491
|
}
|
|
5481
5492
|
/**
|
|
5482
5493
|
* Создаёт нового клиента на основе указанных данных.
|
|
@@ -5486,7 +5497,7 @@ class W extends M {
|
|
|
5486
5497
|
* @see /doc/api/internal#/Клиенты/api_internal_client_create
|
|
5487
5498
|
*/
|
|
5488
5499
|
createClientCommonData(r, e = {}) {
|
|
5489
|
-
return this.post("/internal/clients", W.transformClientDataToRequest(r), (t) => new
|
|
5500
|
+
return this.post("/internal/clients", W.transformClientDataToRequest(r), (t) => new ot(t.data), e);
|
|
5490
5501
|
}
|
|
5491
5502
|
/**
|
|
5492
5503
|
* Обновляет данные указанного клиента.
|
|
@@ -5959,7 +5970,7 @@ class W extends M {
|
|
|
5959
5970
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
5960
5971
|
}
|
|
5961
5972
|
}
|
|
5962
|
-
class
|
|
5973
|
+
class Li extends h {
|
|
5963
5974
|
/**
|
|
5964
5975
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
5965
5976
|
*
|
|
@@ -5973,7 +5984,7 @@ class Oi extends h {
|
|
|
5973
5984
|
});
|
|
5974
5985
|
}
|
|
5975
5986
|
}
|
|
5976
|
-
class
|
|
5987
|
+
class xi {
|
|
5977
5988
|
/**
|
|
5978
5989
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
5979
5990
|
*
|
|
@@ -5995,8 +6006,8 @@ class Li {
|
|
|
5995
6006
|
this.date = I(r == null ? void 0 : r.date) ? _(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";
|
|
5996
6007
|
}
|
|
5997
6008
|
}
|
|
5998
|
-
var
|
|
5999
|
-
class
|
|
6009
|
+
var Es = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Es || {});
|
|
6010
|
+
class Ii extends h {
|
|
6000
6011
|
/**
|
|
6001
6012
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
6002
6013
|
*
|
|
@@ -6088,7 +6099,7 @@ class xi extends h {
|
|
|
6088
6099
|
});
|
|
6089
6100
|
}
|
|
6090
6101
|
}
|
|
6091
|
-
class
|
|
6102
|
+
class Us {
|
|
6092
6103
|
/**
|
|
6093
6104
|
* Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
|
|
6094
6105
|
*
|
|
@@ -6106,7 +6117,7 @@ class Es {
|
|
|
6106
6117
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
6107
6118
|
}
|
|
6108
6119
|
}
|
|
6109
|
-
class
|
|
6120
|
+
class _i extends Us {
|
|
6110
6121
|
/**
|
|
6111
6122
|
* Инициализирует экземпляр класса {@link TableDataPagination}.
|
|
6112
6123
|
*
|
|
@@ -6137,7 +6148,7 @@ class Ii extends Es {
|
|
|
6137
6148
|
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;
|
|
6138
6149
|
}
|
|
6139
6150
|
}
|
|
6140
|
-
class
|
|
6151
|
+
class qi {
|
|
6141
6152
|
/**
|
|
6142
6153
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
6143
6154
|
*
|
|
@@ -6210,8 +6221,8 @@ class y {
|
|
|
6210
6221
|
* @param date Опорная дата.
|
|
6211
6222
|
*/
|
|
6212
6223
|
static intervalTillSameDate(r, e, t) {
|
|
6213
|
-
const i =
|
|
6214
|
-
return { from: re(e), to: B(
|
|
6224
|
+
const i = ns(H(t), H(r)), o = H(k(e, i)), c = Math.min(Jr(t), os(o));
|
|
6225
|
+
return { from: re(e), to: B(cs(o, c)) };
|
|
6215
6226
|
}
|
|
6216
6227
|
/**
|
|
6217
6228
|
* Возвращает интервал «сдвинутая неделя до такого же дня недели»; недели начинаются с понедельника.
|
|
@@ -6241,21 +6252,21 @@ class y {
|
|
|
6241
6252
|
* @param shift Смещение в декадах, может быть отрицательным.
|
|
6242
6253
|
*/
|
|
6243
6254
|
static shiftedDecadeBounds(r, e) {
|
|
6244
|
-
const t =
|
|
6255
|
+
const t = Jr(r);
|
|
6245
6256
|
let i = 2;
|
|
6246
6257
|
t <= 10 ? i = 0 : t <= 20 && (i = 1);
|
|
6247
6258
|
const o = i + e, c = Math.floor(o / 3), u = (o % 3 + 3) % 3, p = H(k(r, c)), g = se(p, u * 10), a = u === 2 ? x(p) : B(se(g, 9));
|
|
6248
6259
|
return [g, a];
|
|
6249
6260
|
}
|
|
6250
6261
|
}
|
|
6251
|
-
function
|
|
6262
|
+
function Ni(n) {
|
|
6252
6263
|
return $(Ye(Ee(), n), "yyyy-MM-dd");
|
|
6253
6264
|
}
|
|
6254
|
-
function
|
|
6265
|
+
function Fs(n, r) {
|
|
6255
6266
|
const e = [2, 0, 1, 1, 1, 2], t = Math.floor(Math.abs(n));
|
|
6256
6267
|
return r[t % 100 > 4 && t % 100 < 20 ? 2 : e[Math.min(t % 10, 5)]];
|
|
6257
6268
|
}
|
|
6258
|
-
function
|
|
6269
|
+
function Ei(n) {
|
|
6259
6270
|
const r = _(n), e = je(Ee(), r);
|
|
6260
6271
|
switch (!0) {
|
|
6261
6272
|
case e === 0:
|
|
@@ -6265,23 +6276,23 @@ function Ni(n) {
|
|
|
6265
6276
|
case e < 0:
|
|
6266
6277
|
return n;
|
|
6267
6278
|
default:
|
|
6268
|
-
return `${e} ${
|
|
6279
|
+
return `${e} ${Fs(e, ["день", "дня", "дней"])} назад`;
|
|
6269
6280
|
}
|
|
6270
6281
|
}
|
|
6271
|
-
class
|
|
6282
|
+
class Ui {
|
|
6272
6283
|
/**
|
|
6273
6284
|
* Возвращает предустановленные диапазоны дат.
|
|
6274
6285
|
*
|
|
6275
6286
|
* @param year Год, от которого считаются годовые периоды (1/3/9 месяцев, кварталы, полугодия, год); по умолчанию текущий.
|
|
6276
6287
|
*/
|
|
6277
6288
|
static defaultDateRanges(r) {
|
|
6278
|
-
const e =
|
|
6289
|
+
const e = ls(/* @__PURE__ */ new Date(), 1), t = /* @__PURE__ */ new Date(), i = ae(r === void 0 ? t : new Date(r, 0, 1)), o = $e(i);
|
|
6279
6290
|
return {
|
|
6280
6291
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
6281
6292
|
nextWorkingDay: { label: "Следующий рабочий день", from: re(e), to: B(e) },
|
|
6282
|
-
today: { label: "Сегодня", from: Ee(), to:
|
|
6283
|
-
yesterday: { label: "Вчера", from:
|
|
6284
|
-
tomorrow: { label: "Завтра", from:
|
|
6293
|
+
today: { label: "Сегодня", from: Ee(), to: fs() },
|
|
6294
|
+
yesterday: { label: "Вчера", from: gs(), to: hs() },
|
|
6295
|
+
tomorrow: { label: "Завтра", from: ps(), to: us() },
|
|
6285
6296
|
currentWeek: { label: "Неделя", from: te(t, { weekStartsOn: 1 }), to: ke(t, { weekStartsOn: 1 }) },
|
|
6286
6297
|
currentMonth: { label: "Месяц", from: H(t), to: x(t) },
|
|
6287
6298
|
oneMonth: { label: "1 месяц", from: i, to: x(i) },
|
|
@@ -6309,7 +6320,7 @@ class Ei {
|
|
|
6309
6320
|
yesterday: { label: "Вчера", group: "day", from: re(Ye(r, 1)), to: B(Ye(r, 1)) },
|
|
6310
6321
|
today: { label: "Сегодня", group: "day", from: t, to: i },
|
|
6311
6322
|
tomorrow: { label: "Завтра", group: "day", from: re(se(r, 1)), to: B(se(r, 1)) },
|
|
6312
|
-
lastWeek: { label: "Прошлая неделя", group: "week", from: te(
|
|
6323
|
+
lastWeek: { label: "Прошлая неделя", group: "week", from: te(Kr(r, 1), e), to: ke(Kr(r, 1), e) },
|
|
6313
6324
|
thisWeek: { label: "Эта неделя", group: "week", from: te(r, e), to: ke(r, e) },
|
|
6314
6325
|
nextWeek: { label: "Следующая неделя", group: "week", from: te(dr(r, 1), e), to: ke(dr(r, 1), e) },
|
|
6315
6326
|
lastTenDays: { label: "Прошлая декада", group: "decade", ...y.shiftDecadeInterval(r, -1) },
|
|
@@ -6411,7 +6422,7 @@ class Ei {
|
|
|
6411
6422
|
};
|
|
6412
6423
|
}
|
|
6413
6424
|
}
|
|
6414
|
-
const
|
|
6425
|
+
const Fi = [
|
|
6415
6426
|
{ key: "day", label: "День" },
|
|
6416
6427
|
{ key: "week", label: "Неделя" },
|
|
6417
6428
|
{ key: "decade", label: "Декада" },
|
|
@@ -6420,7 +6431,7 @@ const Ui = [
|
|
|
6420
6431
|
{ key: "halfYear", label: "Полугодие" },
|
|
6421
6432
|
{ key: "year", label: "Год" },
|
|
6422
6433
|
{ key: "other", label: "Прочее" }
|
|
6423
|
-
],
|
|
6434
|
+
], Mi = [
|
|
6424
6435
|
{ key: "fromBeginning", label: "С начала периода" },
|
|
6425
6436
|
{ key: "tillEnd", label: "До конца периода" },
|
|
6426
6437
|
{ key: "lastTillSame", label: "Прошлые, до такой же даты" },
|
|
@@ -6446,7 +6457,7 @@ class Lr extends N {
|
|
|
6446
6457
|
this.city = e != null && e.city ? new ee(e.city) : void 0, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
6447
6458
|
}
|
|
6448
6459
|
}
|
|
6449
|
-
class
|
|
6460
|
+
class Ms {
|
|
6450
6461
|
/**
|
|
6451
6462
|
* Инициализирует экземпляр класса {@link DiscountConditions}.
|
|
6452
6463
|
*
|
|
@@ -6497,7 +6508,7 @@ class Fs {
|
|
|
6497
6508
|
* Скидка без условий отбора клиентов доступна всем клиентам.
|
|
6498
6509
|
*/
|
|
6499
6510
|
hasClientConditions() {
|
|
6500
|
-
return
|
|
6511
|
+
return Yr([this.salesDirections, this.partnerGroups, this.managers, this.additionalClients, this.fixedClients, this.regions, this.cities], (r) => !Q(r)) || Yr([this.lastLoginDate, this.lastOrderDate], (r) => !!r.from || !!r.to);
|
|
6501
6512
|
}
|
|
6502
6513
|
/**
|
|
6503
6514
|
* Устанавливает период последнего входа или последнего заказа клиента целыми днями:
|
|
@@ -6525,7 +6536,7 @@ class Fs {
|
|
|
6525
6536
|
};
|
|
6526
6537
|
}
|
|
6527
6538
|
}
|
|
6528
|
-
class
|
|
6539
|
+
class Hs {
|
|
6529
6540
|
/**
|
|
6530
6541
|
* Возвращает коэффициент стоимости товара от розничной цены для указанного процента скидки
|
|
6531
6542
|
* с точностью коэффициента из настроек приложения.
|
|
@@ -6533,11 +6544,11 @@ class Ms {
|
|
|
6533
6544
|
* @param percent Процент скидки (10 для скидки 10 %).
|
|
6534
6545
|
*/
|
|
6535
6546
|
static percentToCostCoefficient(r) {
|
|
6536
|
-
return
|
|
6547
|
+
return at((100 - r) / 100, S().config.numberPrecision.priceCoefficient);
|
|
6537
6548
|
}
|
|
6538
6549
|
}
|
|
6539
6550
|
var Ke = /* @__PURE__ */ ((n) => (n.Active = "active", n.Scheduled = "scheduled", n.Completed = "completed", n))(Ke || {});
|
|
6540
|
-
class
|
|
6551
|
+
class Bs {
|
|
6541
6552
|
/**
|
|
6542
6553
|
* Возвращает состояние скидки на указанный момент по датам начала и окончания действия.
|
|
6543
6554
|
*
|
|
@@ -6584,7 +6595,7 @@ class Rr extends Ur {
|
|
|
6584
6595
|
* @inheritDoc
|
|
6585
6596
|
*/
|
|
6586
6597
|
s(this, "countDiscountedClients");
|
|
6587
|
-
this.conditions = new
|
|
6598
|
+
this.conditions = new Ms(e == null ? void 0 : e.conditions), this.products = P((e == null ? void 0 : e.products) ?? [], (t) => new E(t)), this.productCategories = P((e == null ? void 0 : e.productCategories) ?? [], (t) => new Y(t)), this.countDiscountedPrices = (e == null ? void 0 : e.countDiscountedPrices) ?? 0, this.expectedCountDiscountedPrices = (e == null ? void 0 : e.expectedCountDiscountedPrices) ?? 0, this.countDiscountedProducts = (e == null ? void 0 : e.countDiscountedProducts) ?? 0, this.countDiscountedClients = (e == null ? void 0 : e.countDiscountedClients) ?? 0;
|
|
6588
6599
|
}
|
|
6589
6600
|
/**
|
|
6590
6601
|
* Возвращает состояние скидки на указанный момент.
|
|
@@ -6592,7 +6603,7 @@ class Rr extends Ur {
|
|
|
6592
6603
|
* @param now Момент, на который определяется состояние.
|
|
6593
6604
|
*/
|
|
6594
6605
|
getState(e = /* @__PURE__ */ new Date()) {
|
|
6595
|
-
return
|
|
6606
|
+
return Bs.resolve(this, e);
|
|
6596
6607
|
}
|
|
6597
6608
|
/**
|
|
6598
6609
|
* Переносит счётчики цен, товаров и клиентов из указанной скидки, не затрагивая остальные данные.
|
|
@@ -6614,7 +6625,7 @@ class Rr extends Ur {
|
|
|
6614
6625
|
toSaveData() {
|
|
6615
6626
|
return {
|
|
6616
6627
|
name: this.name,
|
|
6617
|
-
costCoefficient:
|
|
6628
|
+
costCoefficient: Hs.percentToCostCoefficient(this.percent),
|
|
6618
6629
|
isLowPriceAllowed: this.isLowPriceAllowed,
|
|
6619
6630
|
publishedAt: this.publishedAt ?? null,
|
|
6620
6631
|
deletedAt: this.deletedAt ?? null,
|
|
@@ -6625,7 +6636,7 @@ class Rr extends Ur {
|
|
|
6625
6636
|
};
|
|
6626
6637
|
}
|
|
6627
6638
|
}
|
|
6628
|
-
class
|
|
6639
|
+
class ct {
|
|
6629
6640
|
/**
|
|
6630
6641
|
* Инициализирует экземпляр класса {@link DiscountClientEligibility}.
|
|
6631
6642
|
*
|
|
@@ -6673,7 +6684,7 @@ class ot {
|
|
|
6673
6684
|
return this.additionalClientsCondition || this.fixedClientsCondition || this.partnerGroupsCondition || this.managersCondition || this.citiesCondition || this.regionsCondition || this.salesDirectionsCondition;
|
|
6674
6685
|
}
|
|
6675
6686
|
}
|
|
6676
|
-
class
|
|
6687
|
+
class Hi extends de {
|
|
6677
6688
|
/**
|
|
6678
6689
|
* Инициализирует экземпляр класса {@link DiscountsListFilters}.
|
|
6679
6690
|
*
|
|
@@ -6813,7 +6824,7 @@ class xr extends M {
|
|
|
6813
6824
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_discount_clients_get
|
|
6814
6825
|
*/
|
|
6815
6826
|
getEligibleClients(r) {
|
|
6816
|
-
return this.getTypedList(
|
|
6827
|
+
return this.getTypedList(ct, `/internal/price/discounts/${r}/clients`);
|
|
6817
6828
|
}
|
|
6818
6829
|
/**
|
|
6819
6830
|
* Проверяет, подходит ли клиент под скидку.
|
|
@@ -6827,7 +6838,7 @@ class xr extends M {
|
|
|
6827
6838
|
return this.get(
|
|
6828
6839
|
`/internal/price/discounts/${r}/clients/${e}/check`,
|
|
6829
6840
|
{},
|
|
6830
|
-
(t) => new
|
|
6841
|
+
(t) => new ct(t.data)
|
|
6831
6842
|
);
|
|
6832
6843
|
}
|
|
6833
6844
|
}
|
|
@@ -6876,7 +6887,7 @@ class We extends pe {
|
|
|
6876
6887
|
};
|
|
6877
6888
|
}
|
|
6878
6889
|
}
|
|
6879
|
-
class
|
|
6890
|
+
class Bi extends M {
|
|
6880
6891
|
/**
|
|
6881
6892
|
* Возвращает список часто задаваемых вопросов.
|
|
6882
6893
|
*
|
|
@@ -6981,11 +6992,11 @@ class Hi extends M {
|
|
|
6981
6992
|
return this.delete(`/internal/faq/groups/${r}`);
|
|
6982
6993
|
}
|
|
6983
6994
|
}
|
|
6984
|
-
function
|
|
6985
|
-
const r =
|
|
6995
|
+
function Gi(n) {
|
|
6996
|
+
const r = at(n * 100);
|
|
6986
6997
|
return `${r >= 0 ? "+" : ""}${r}%`;
|
|
6987
6998
|
}
|
|
6988
|
-
class
|
|
6999
|
+
class Et {
|
|
6989
7000
|
/**
|
|
6990
7001
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
6991
7002
|
*
|
|
@@ -7001,7 +7012,7 @@ class Nt {
|
|
|
7001
7012
|
*/
|
|
7002
7013
|
static getProductMultiplicity(r) {
|
|
7003
7014
|
var e, t;
|
|
7004
|
-
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !
|
|
7015
|
+
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) == null ? void 0 : t.minCount) != null && !Et.productIsMeasurable(r) ? r.properties.minCount : 1;
|
|
7005
7016
|
}
|
|
7006
7017
|
/**
|
|
7007
7018
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -7045,7 +7056,7 @@ const Re = class Re extends h {
|
|
|
7045
7056
|
*/
|
|
7046
7057
|
cacheResponse(e, t) {
|
|
7047
7058
|
Re.responseDataCache.set(e, {
|
|
7048
|
-
validTo:
|
|
7059
|
+
validTo: ms(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
7049
7060
|
val: t
|
|
7050
7061
|
});
|
|
7051
7062
|
}
|
|
@@ -7070,7 +7081,7 @@ const Re = class Re extends h {
|
|
|
7070
7081
|
*/
|
|
7071
7082
|
s(Re, "responseDataCache", /* @__PURE__ */ new Map());
|
|
7072
7083
|
let Me = Re;
|
|
7073
|
-
class
|
|
7084
|
+
class zi {
|
|
7074
7085
|
/**
|
|
7075
7086
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
7076
7087
|
*/
|
|
@@ -7086,7 +7097,7 @@ class Gi {
|
|
|
7086
7097
|
return r.id === 0 && r.guid === "-undefined-";
|
|
7087
7098
|
}
|
|
7088
7099
|
}
|
|
7089
|
-
class
|
|
7100
|
+
class Ut extends Me {
|
|
7090
7101
|
/**
|
|
7091
7102
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
7092
7103
|
*/
|
|
@@ -7109,7 +7120,7 @@ class Et extends Me {
|
|
|
7109
7120
|
}
|
|
7110
7121
|
}
|
|
7111
7122
|
var _e = /* @__PURE__ */ ((n) => (n.Processing = "processing", n.Completed = "completed", n.Error = "error", n.NeedsActualization = "needs_actualization", n))(_e || {});
|
|
7112
|
-
class
|
|
7123
|
+
class Gs {
|
|
7113
7124
|
/**
|
|
7114
7125
|
* Инициализирует экземпляр класса {@link OfferActualization}.
|
|
7115
7126
|
*
|
|
@@ -7165,7 +7176,7 @@ class Bs {
|
|
|
7165
7176
|
return this.status === _e.Completed && !this.isOutdatedAt(r);
|
|
7166
7177
|
}
|
|
7167
7178
|
}
|
|
7168
|
-
class
|
|
7179
|
+
class Ft extends sr {
|
|
7169
7180
|
/**
|
|
7170
7181
|
* Инициализирует экземпляр класса {@link OfferShortInfo}.
|
|
7171
7182
|
*
|
|
@@ -7197,10 +7208,10 @@ class Ut extends sr {
|
|
|
7197
7208
|
* @inheritDoc
|
|
7198
7209
|
*/
|
|
7199
7210
|
s(this, "file");
|
|
7200
|
-
this.name = e == null ? void 0 : e.name, this.client = new fe(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
|
|
7211
|
+
this.name = e == null ? void 0 : e.name, this.client = new fe(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 Gs(e.actualization), this.file = e == null ? void 0 : e.file;
|
|
7201
7212
|
}
|
|
7202
7213
|
}
|
|
7203
|
-
class
|
|
7214
|
+
class zs extends Hr {
|
|
7204
7215
|
/**
|
|
7205
7216
|
* Инициализирует экземпляр класса {@link ProfstroyOfferItem}.
|
|
7206
7217
|
*
|
|
@@ -7239,7 +7250,7 @@ class Gs extends Hr {
|
|
|
7239
7250
|
return !this.isProductStub && !this.isIgnored && Q(this.lineError);
|
|
7240
7251
|
}
|
|
7241
7252
|
}
|
|
7242
|
-
class G extends
|
|
7253
|
+
class G extends Ft {
|
|
7243
7254
|
/**
|
|
7244
7255
|
* Инициализирует экземпляр класса {@link Offer}.
|
|
7245
7256
|
*
|
|
@@ -7256,11 +7267,11 @@ class G extends Ut {
|
|
|
7256
7267
|
*/
|
|
7257
7268
|
s(this, "products");
|
|
7258
7269
|
this.sum = e.sum ?? 0, this.products = (e.products ?? []).map(
|
|
7259
|
-
(t) => e.isProfstroy ? new
|
|
7270
|
+
(t) => e.isProfstroy ? new zs(t) : new Hr(t)
|
|
7260
7271
|
);
|
|
7261
7272
|
}
|
|
7262
7273
|
}
|
|
7263
|
-
class
|
|
7274
|
+
class Wi extends de {
|
|
7264
7275
|
/**
|
|
7265
7276
|
* Инициализирует экземпляр класса {@link OffersListFilters}.
|
|
7266
7277
|
*
|
|
@@ -7301,9 +7312,9 @@ class zi extends de {
|
|
|
7301
7312
|
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;
|
|
7302
7313
|
}
|
|
7303
7314
|
}
|
|
7304
|
-
class cr extends
|
|
7315
|
+
class cr extends C {
|
|
7305
7316
|
}
|
|
7306
|
-
class
|
|
7317
|
+
class Mt extends Nt {
|
|
7307
7318
|
/**
|
|
7308
7319
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
7309
7320
|
*
|
|
@@ -7373,10 +7384,10 @@ class Ft extends qt {
|
|
|
7373
7384
|
date: I((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? _(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
|
|
7374
7385
|
address: (g = e == null ? void 0 : e.delivery) != null && g.address ? new qe(e.delivery.address) : void 0,
|
|
7375
7386
|
warehouse: (a = e == null ? void 0 : e.delivery) != null && a.warehouse ? new He(e.delivery.warehouse) : void 0
|
|
7376
|
-
}, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new cr(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new
|
|
7387
|
+
}, this.attachedUser = e != null && e.attachedUser ? new q(e == null ? void 0 : e.attachedUser) : void 0, this.status = new cr(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new C(e.statusDetail) : void 0, this.salesDirection = new F(e == null ? void 0 : e.salesDirection), this.attachedAt = I(e == null ? void 0 : e.attachedAt) ? _(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;
|
|
7377
7388
|
}
|
|
7378
7389
|
}
|
|
7379
|
-
class
|
|
7390
|
+
class Ws extends Pt {
|
|
7380
7391
|
/**
|
|
7381
7392
|
* Инициализирует экземпляр класса {@link OrderItem}.
|
|
7382
7393
|
*
|
|
@@ -7436,7 +7447,7 @@ class zs extends Rt {
|
|
|
7436
7447
|
this.product = new Pe(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 = V(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"));
|
|
7437
7448
|
}
|
|
7438
7449
|
}
|
|
7439
|
-
class L extends
|
|
7450
|
+
class L extends Mt {
|
|
7440
7451
|
/**
|
|
7441
7452
|
* Инициализирует экземпляр класса {@link Order}.
|
|
7442
7453
|
*
|
|
@@ -7504,11 +7515,11 @@ class L extends Ft {
|
|
|
7504
7515
|
this.products = (e.products ?? []).map((i) => {
|
|
7505
7516
|
var c;
|
|
7506
7517
|
const o = i.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === i.replacementId) : void 0;
|
|
7507
|
-
return new
|
|
7508
|
-
}), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? tr.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new
|
|
7518
|
+
return new Ws(i, o);
|
|
7519
|
+
}), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? tr.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new C(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new cr(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl, this.numberDoc = e.numberDoc;
|
|
7509
7520
|
}
|
|
7510
7521
|
}
|
|
7511
|
-
class
|
|
7522
|
+
class ji extends M {
|
|
7512
7523
|
/**
|
|
7513
7524
|
* Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
|
|
7514
7525
|
*
|
|
@@ -7520,7 +7531,7 @@ class Wi extends M {
|
|
|
7520
7531
|
* @see /doc/api/internal#/Заказы/api_internal_order_commercial_offer_get_list
|
|
7521
7532
|
*/
|
|
7522
7533
|
getOffers(r, e, t, i = void 0) {
|
|
7523
|
-
return this.getTypedPaginated(
|
|
7534
|
+
return this.getTypedPaginated(Ft, "/internal/orders/offers", r, e, t, {}, void 0, i);
|
|
7524
7535
|
}
|
|
7525
7536
|
/**
|
|
7526
7537
|
* Создаёт заказ-черновик из содержимого корзины клиента и возвращает данные созданной записи.
|
|
@@ -7744,7 +7755,7 @@ class Wi extends M {
|
|
|
7744
7755
|
return this.post(`/internal/orders/offers/${r}/send`, e);
|
|
7745
7756
|
}
|
|
7746
7757
|
}
|
|
7747
|
-
class
|
|
7758
|
+
class Yi {
|
|
7748
7759
|
/**
|
|
7749
7760
|
* Возвращает признак того, что запись создана из файла выгрузки программы «Профстрой».
|
|
7750
7761
|
*
|
|
@@ -7763,8 +7774,8 @@ class ji {
|
|
|
7763
7774
|
return !m(r) && r.isProfstroy === !0 && !m(r.actualization);
|
|
7764
7775
|
}
|
|
7765
7776
|
}
|
|
7766
|
-
var
|
|
7767
|
-
class
|
|
7777
|
+
var js = /* @__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))(js || {});
|
|
7778
|
+
class Vi {
|
|
7768
7779
|
/**
|
|
7769
7780
|
* Инициализирует экземпляр класса {@link OrderEditorData}.
|
|
7770
7781
|
*
|
|
@@ -7831,11 +7842,11 @@ class Yi {
|
|
|
7831
7842
|
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;
|
|
7832
7843
|
}
|
|
7833
7844
|
}
|
|
7834
|
-
class
|
|
7845
|
+
class Ht extends C {
|
|
7835
7846
|
}
|
|
7836
|
-
class
|
|
7847
|
+
class Bt extends C {
|
|
7837
7848
|
}
|
|
7838
|
-
class
|
|
7849
|
+
class Qi extends de {
|
|
7839
7850
|
/**
|
|
7840
7851
|
* Инициализирует экземпляр класса {@link OrdersListFilters}.
|
|
7841
7852
|
*
|
|
@@ -7936,7 +7947,7 @@ class Vi extends de {
|
|
|
7936
7947
|
* @inheritDoc
|
|
7937
7948
|
*/
|
|
7938
7949
|
s(this, "onlyMyRegions");
|
|
7939
|
-
this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Z(u) : new
|
|
7950
|
+
this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new Z(u) : new Ht(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new fe(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new D(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new q(e.creator) : void 0, this.deliveryDate = new D(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 ee(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 D(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new F(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new X(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Bt(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new He(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
|
|
7940
7951
|
}
|
|
7941
7952
|
/**
|
|
7942
7953
|
* @inheritDoc
|
|
@@ -7987,7 +7998,7 @@ class Vi extends de {
|
|
|
7987
7998
|
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;
|
|
7988
7999
|
}
|
|
7989
8000
|
}
|
|
7990
|
-
class
|
|
8001
|
+
class Ys {
|
|
7991
8002
|
/**
|
|
7992
8003
|
* Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
|
|
7993
8004
|
*
|
|
@@ -8010,10 +8021,10 @@ class js {
|
|
|
8010
8021
|
* @inheritDoc
|
|
8011
8022
|
*/
|
|
8012
8023
|
s(this, "createdAt");
|
|
8013
|
-
this.user = new q(r == null ? void 0 : r.user), this.status = new cr(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new
|
|
8024
|
+
this.user = new q(r == null ? void 0 : r.user), this.status = new cr(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new C(r.statusDetail) : void 0, this.createdAt = I(r == null ? void 0 : r.createdAt) ? _(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
|
|
8014
8025
|
}
|
|
8015
8026
|
}
|
|
8016
|
-
class
|
|
8027
|
+
class Ji extends M {
|
|
8017
8028
|
/**
|
|
8018
8029
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
8019
8030
|
*
|
|
@@ -8025,7 +8036,7 @@ class Qi extends M {
|
|
|
8025
8036
|
* @see /doc/api/internal#/Заказы/api_internal_orders_get_list
|
|
8026
8037
|
*/
|
|
8027
8038
|
getOrders(r, e, t, i = void 0) {
|
|
8028
|
-
return this.getTypedPaginated(
|
|
8039
|
+
return this.getTypedPaginated(Mt, "/internal/orders", r, e, t, {}, void 0, i);
|
|
8029
8040
|
}
|
|
8030
8041
|
/**
|
|
8031
8042
|
* Возвращает количество заказов, соответствующих указанным фильтрам.
|
|
@@ -8239,7 +8250,7 @@ class Qi extends M {
|
|
|
8239
8250
|
* @see /doc/api/internal#/Заказы/api_internal_orders_status_history_get
|
|
8240
8251
|
*/
|
|
8241
8252
|
getOrderStatusHistory(r) {
|
|
8242
|
-
return this.getTypedList(
|
|
8253
|
+
return this.getTypedList(Ys, `/internal/orders/${r}/history`);
|
|
8243
8254
|
}
|
|
8244
8255
|
/**
|
|
8245
8256
|
* Возвращает содержимое печатной формы заказа в формате HTML.
|
|
@@ -8381,7 +8392,7 @@ class Qi extends M {
|
|
|
8381
8392
|
);
|
|
8382
8393
|
}
|
|
8383
8394
|
}
|
|
8384
|
-
const
|
|
8395
|
+
const Ki = Symbol("currentOrder");
|
|
8385
8396
|
class Pr {
|
|
8386
8397
|
/**
|
|
8387
8398
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
@@ -8414,7 +8425,7 @@ class Pr {
|
|
|
8414
8425
|
}
|
|
8415
8426
|
const Tr = (n) => {
|
|
8416
8427
|
var r, e, t, i, o;
|
|
8417
|
-
return n ?
|
|
8428
|
+
return n ? wt(
|
|
8418
8429
|
{
|
|
8419
8430
|
cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
|
|
8420
8431
|
clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
|
|
@@ -8425,11 +8436,11 @@ const Tr = (n) => {
|
|
|
8425
8436
|
},
|
|
8426
8437
|
(c) => m(c) || (V(c) || Ze(c)) && Q(c)
|
|
8427
8438
|
) : {};
|
|
8428
|
-
},
|
|
8439
|
+
}, lt = (n) => {
|
|
8429
8440
|
const r = {};
|
|
8430
8441
|
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;
|
|
8431
8442
|
};
|
|
8432
|
-
class
|
|
8443
|
+
class Xi extends h {
|
|
8433
8444
|
/**
|
|
8434
8445
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
8435
8446
|
*
|
|
@@ -8443,7 +8454,7 @@ class Ki extends h {
|
|
|
8443
8454
|
return this.get(
|
|
8444
8455
|
`/internal/price/products/${r}/analyze`,
|
|
8445
8456
|
{
|
|
8446
|
-
...
|
|
8457
|
+
...lt(e),
|
|
8447
8458
|
filters: Tr(t)
|
|
8448
8459
|
},
|
|
8449
8460
|
(i) => U.instanceListInitializer(Pr, i.data)
|
|
@@ -8462,7 +8473,7 @@ class Ki extends h {
|
|
|
8462
8473
|
return this.get(
|
|
8463
8474
|
`/internal/price/categories/${r}/analyze`,
|
|
8464
8475
|
{
|
|
8465
|
-
...
|
|
8476
|
+
...lt(e),
|
|
8466
8477
|
filters: Tr(t)
|
|
8467
8478
|
},
|
|
8468
8479
|
(i) => U.instanceListInitializer(Pr, i.data)
|
|
@@ -8490,7 +8501,7 @@ class Ki extends h {
|
|
|
8490
8501
|
);
|
|
8491
8502
|
}
|
|
8492
8503
|
}
|
|
8493
|
-
class
|
|
8504
|
+
class Vs {
|
|
8494
8505
|
/**
|
|
8495
8506
|
* Инициализирует экземпляр класса {@link PriceHistoryItem}.
|
|
8496
8507
|
*
|
|
@@ -8540,7 +8551,7 @@ class Ys {
|
|
|
8540
8551
|
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = I(r.costDate) ? _(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new Fe(r.product) : void 0, this.client = r.client ? new q(r.client) : void 0, this.executor = r.executor ? new q(r.executor) : void 0, this.currency = r.currency ? new J(r.currency) : void 0;
|
|
8541
8552
|
}
|
|
8542
8553
|
}
|
|
8543
|
-
class
|
|
8554
|
+
class Qs extends Fe {
|
|
8544
8555
|
/**
|
|
8545
8556
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
8546
8557
|
*
|
|
@@ -8552,10 +8563,10 @@ class Vs extends Fe {
|
|
|
8552
8563
|
* @inheritDoc
|
|
8553
8564
|
*/
|
|
8554
8565
|
s(this, "history");
|
|
8555
|
-
this.history = P(e.history, (t) => new
|
|
8566
|
+
this.history = P(e.history, (t) => new Vs(t));
|
|
8556
8567
|
}
|
|
8557
8568
|
}
|
|
8558
|
-
class
|
|
8569
|
+
class Zi extends h {
|
|
8559
8570
|
/**
|
|
8560
8571
|
* Возвращает данные об истории изменения цен.
|
|
8561
8572
|
*
|
|
@@ -8565,7 +8576,7 @@ class Xi extends h {
|
|
|
8565
8576
|
*/
|
|
8566
8577
|
getProductPriceHistory(r) {
|
|
8567
8578
|
var o, c, u, p, g;
|
|
8568
|
-
const e = S().config.dateFormats.api, t =
|
|
8579
|
+
const e = S().config.dateFormats.api, t = wt(
|
|
8569
8580
|
Ne(r, {
|
|
8570
8581
|
costDate: {
|
|
8571
8582
|
from: er((o = r.costDate) == null ? void 0 : o.from) ? $(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
@@ -8575,11 +8586,11 @@ class Xi extends h {
|
|
|
8575
8586
|
(a) => m(a) || (V(a) || Ze(a)) && Q(a)
|
|
8576
8587
|
), i = ((g = r.product) == null ? void 0 : g[0]) ?? 0;
|
|
8577
8588
|
return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((a) => [
|
|
8578
|
-
new
|
|
8589
|
+
new Qs(Ne(a[0], { history: a }))
|
|
8579
8590
|
]);
|
|
8580
8591
|
}
|
|
8581
8592
|
}
|
|
8582
|
-
class
|
|
8593
|
+
class ut {
|
|
8583
8594
|
/**
|
|
8584
8595
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
8585
8596
|
*
|
|
@@ -8597,7 +8608,7 @@ class lt {
|
|
|
8597
8608
|
r != null && r.products && (this.products = r.products.map((e) => new Fe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new Fe(e)));
|
|
8598
8609
|
}
|
|
8599
8610
|
}
|
|
8600
|
-
class
|
|
8611
|
+
class en extends h {
|
|
8601
8612
|
/**
|
|
8602
8613
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
8603
8614
|
*
|
|
@@ -8605,7 +8616,7 @@ class Zi extends h {
|
|
|
8605
8616
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
8606
8617
|
*/
|
|
8607
8618
|
getProductCategoryRecommendations(r) {
|
|
8608
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new
|
|
8619
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new ut(e.data));
|
|
8609
8620
|
}
|
|
8610
8621
|
/**
|
|
8611
8622
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -8614,7 +8625,7 @@ class Zi extends h {
|
|
|
8614
8625
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
8615
8626
|
*/
|
|
8616
8627
|
getProductRecommendations(r) {
|
|
8617
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new
|
|
8628
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new ut(e.data));
|
|
8618
8629
|
}
|
|
8619
8630
|
/**
|
|
8620
8631
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -8643,12 +8654,12 @@ class Zi extends h {
|
|
|
8643
8654
|
});
|
|
8644
8655
|
}
|
|
8645
8656
|
}
|
|
8646
|
-
var
|
|
8647
|
-
class
|
|
8657
|
+
var Js = /* @__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))(Js || {}), Ks = /* @__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))(Ks || {});
|
|
8658
|
+
class Xs extends C {
|
|
8648
8659
|
}
|
|
8649
|
-
class
|
|
8660
|
+
class Zs extends C {
|
|
8650
8661
|
}
|
|
8651
|
-
class
|
|
8662
|
+
class pt extends C {
|
|
8652
8663
|
/**
|
|
8653
8664
|
* Инициализирует экземпляр класса {@link CityWithUserRegion}.
|
|
8654
8665
|
*
|
|
@@ -8664,15 +8675,15 @@ class ut extends v {
|
|
|
8664
8675
|
this.userRegions = ((t = e == null ? void 0 : e.userRegions) == null ? void 0 : t.map((i) => new or(i))) ?? [];
|
|
8665
8676
|
}
|
|
8666
8677
|
}
|
|
8667
|
-
class
|
|
8678
|
+
class ei extends C {
|
|
8668
8679
|
}
|
|
8669
|
-
class
|
|
8680
|
+
class ri extends C {
|
|
8670
8681
|
}
|
|
8671
|
-
class
|
|
8682
|
+
class ti extends C {
|
|
8672
8683
|
}
|
|
8673
|
-
class
|
|
8684
|
+
class si extends C {
|
|
8674
8685
|
}
|
|
8675
|
-
class
|
|
8686
|
+
class rn {
|
|
8676
8687
|
/**
|
|
8677
8688
|
* Генерирует и возвращает данные-заглушку неопределённой записи справочника.
|
|
8678
8689
|
*
|
|
@@ -8691,7 +8702,7 @@ class en {
|
|
|
8691
8702
|
return r.id === 0 && r.slug === "-undefined-";
|
|
8692
8703
|
}
|
|
8693
8704
|
}
|
|
8694
|
-
class
|
|
8705
|
+
class Gt extends C {
|
|
8695
8706
|
}
|
|
8696
8707
|
const j = class j extends Me {
|
|
8697
8708
|
/**
|
|
@@ -8711,20 +8722,20 @@ const j = class j extends Me {
|
|
|
8711
8722
|
* и использовать в случае аналогичных запросов.
|
|
8712
8723
|
*/
|
|
8713
8724
|
getReference(r, e = !1) {
|
|
8714
|
-
return this.getTypedDataArrayRequester(
|
|
8725
|
+
return this.getTypedDataArrayRequester(Xs, `/internal/references/${r}`, e);
|
|
8715
8726
|
}
|
|
8716
8727
|
/**
|
|
8717
8728
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
8718
8729
|
* первичного интереса.
|
|
8719
8730
|
*/
|
|
8720
8731
|
getChannelPrimaryInterest() {
|
|
8721
|
-
return this.getTypedDataArrayRequester(
|
|
8732
|
+
return this.getTypedDataArrayRequester(_t, "/internal/references/channel-primary-interest", !0);
|
|
8722
8733
|
}
|
|
8723
8734
|
/**
|
|
8724
8735
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
8725
8736
|
*/
|
|
8726
8737
|
getContactPositions() {
|
|
8727
|
-
return this.getTypedDataArrayRequester(
|
|
8738
|
+
return this.getTypedDataArrayRequester(ei, "/internal/references/contact-position", !0);
|
|
8728
8739
|
}
|
|
8729
8740
|
/**
|
|
8730
8741
|
* Возвращает {@link Promise} для получения справочника списка направлений кураторства.
|
|
@@ -8755,13 +8766,13 @@ const j = class j extends Me {
|
|
|
8755
8766
|
* Возвращает {@link Promise} для получения справочника операторов.
|
|
8756
8767
|
*/
|
|
8757
8768
|
getOperators() {
|
|
8758
|
-
return this.getTypedDataArrayRequester(
|
|
8769
|
+
return this.getTypedDataArrayRequester(Ht, "/internal/references/operator", !0);
|
|
8759
8770
|
}
|
|
8760
8771
|
/**
|
|
8761
8772
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
8762
8773
|
*/
|
|
8763
8774
|
getOrderPaymentStatuses() {
|
|
8764
|
-
return this.getTypedDataArrayRequester(
|
|
8775
|
+
return this.getTypedDataArrayRequester(ri, "/public/references/order-payment-status", !0);
|
|
8765
8776
|
}
|
|
8766
8777
|
/**
|
|
8767
8778
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
@@ -8773,19 +8784,19 @@ const j = class j extends Me {
|
|
|
8773
8784
|
* Возвращает {@link Promise} для получения справочника детализирующих статусов (подстатусов) заказов.
|
|
8774
8785
|
*/
|
|
8775
8786
|
getOrderStatusDetails() {
|
|
8776
|
-
return this.getTypedDataArrayRequester(
|
|
8787
|
+
return this.getTypedDataArrayRequester(ti, "/internal/references/order-status-detail", !0);
|
|
8777
8788
|
}
|
|
8778
8789
|
/**
|
|
8779
8790
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
8780
8791
|
*/
|
|
8781
8792
|
getPaymentTypes() {
|
|
8782
|
-
return this.getTypedDataArrayRequester(
|
|
8793
|
+
return this.getTypedDataArrayRequester(Bt, "/public/references/payment-type", !0);
|
|
8783
8794
|
}
|
|
8784
8795
|
/**
|
|
8785
8796
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
8786
8797
|
*/
|
|
8787
8798
|
getResourceTypes() {
|
|
8788
|
-
return this.getTypedDataArrayRequester(
|
|
8799
|
+
return this.getTypedDataArrayRequester(Gt, "/internal/references/resource-type", !0);
|
|
8789
8800
|
}
|
|
8790
8801
|
/**
|
|
8791
8802
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
@@ -8797,7 +8808,7 @@ const j = class j extends Me {
|
|
|
8797
8808
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
8798
8809
|
*/
|
|
8799
8810
|
getSourcePrimaryInterest() {
|
|
8800
|
-
return this.getTypedDataArrayRequester(
|
|
8811
|
+
return this.getTypedDataArrayRequester(qt, "/internal/references/source-primary-interest", !0);
|
|
8801
8812
|
}
|
|
8802
8813
|
/**
|
|
8803
8814
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -8835,7 +8846,7 @@ const j = class j extends Me {
|
|
|
8835
8846
|
* @param regionId Идентификатор региона.
|
|
8836
8847
|
*/
|
|
8837
8848
|
getCitiesByRegion(r) {
|
|
8838
|
-
return this.getTypedDataArrayRequester(
|
|
8849
|
+
return this.getTypedDataArrayRequester(Zs, "/internal/references/city", !1, { params: { regionId: r } }).then(
|
|
8839
8850
|
(e) => j.withoutUnknownLocation(e)
|
|
8840
8851
|
);
|
|
8841
8852
|
}
|
|
@@ -8846,7 +8857,7 @@ const j = class j extends Me {
|
|
|
8846
8857
|
* @param regionId Идентификатор региона.
|
|
8847
8858
|
*/
|
|
8848
8859
|
getCitiesWithUserRegionByRegion(r) {
|
|
8849
|
-
return this.getTypedDataArrayRequester(
|
|
8860
|
+
return this.getTypedDataArrayRequester(pt, "/internal/references/city-with-user-region", !1, { params: { regionId: r } }).then(
|
|
8850
8861
|
(e) => j.withoutUnknownLocation(e)
|
|
8851
8862
|
);
|
|
8852
8863
|
}
|
|
@@ -8875,7 +8886,7 @@ const j = class j extends Me {
|
|
|
8875
8886
|
* @param signal Сигнал отмены запроса.
|
|
8876
8887
|
*/
|
|
8877
8888
|
searchCityWithUserRegion(r, e = void 0) {
|
|
8878
|
-
return this.getTypedDataArrayRequester(
|
|
8889
|
+
return this.getTypedDataArrayRequester(pt, "/internal/references/city-with-user-region/search", !1, { term: r }, e).then(
|
|
8879
8890
|
(t) => j.withoutUnknownLocation(t)
|
|
8880
8891
|
);
|
|
8881
8892
|
}
|
|
@@ -8903,7 +8914,7 @@ const j = class j extends Me {
|
|
|
8903
8914
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
8904
8915
|
*/
|
|
8905
8916
|
getPropertyTypes() {
|
|
8906
|
-
return this.getTypedDataArrayRequester(
|
|
8917
|
+
return this.getTypedDataArrayRequester(kt, "/internal/references/property-type", !0);
|
|
8907
8918
|
}
|
|
8908
8919
|
/**
|
|
8909
8920
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
@@ -8915,7 +8926,7 @@ const j = class j extends Me {
|
|
|
8915
8926
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
8916
8927
|
*/
|
|
8917
8928
|
getProductFileType() {
|
|
8918
|
-
return this.getTypedDataArrayRequester(
|
|
8929
|
+
return this.getTypedDataArrayRequester(si, "/public/references/product-file-type", !0);
|
|
8919
8930
|
}
|
|
8920
8931
|
};
|
|
8921
8932
|
/**
|
|
@@ -8925,7 +8936,7 @@ const j = class j extends Me {
|
|
|
8925
8936
|
s(j, "unknownLocationId", 1);
|
|
8926
8937
|
let d = j;
|
|
8927
8938
|
const A = ue("common.references_private", () => {
|
|
8928
|
-
const n =
|
|
8939
|
+
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), T = v(void 0), Ae = v(void 0), Se = v(void 0), me = v(void 0), ye = v(void 0), lr = v(void 0), ur = v(void 0), pr = v(void 0), l = v(void 0);
|
|
8929
8940
|
return {
|
|
8930
8941
|
/**
|
|
8931
8942
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -9008,7 +9019,7 @@ const A = ue("common.references_private", () => {
|
|
|
9008
9019
|
*/
|
|
9009
9020
|
priceCoefficientsReference: l
|
|
9010
9021
|
};
|
|
9011
|
-
}),
|
|
9022
|
+
}), tn = ue("common.references", () => {
|
|
9012
9023
|
const n = b(() => {
|
|
9013
9024
|
const l = A();
|
|
9014
9025
|
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(d).getChannelPrimaryInterest().then((f) => {
|
|
@@ -9086,7 +9097,7 @@ const A = ue("common.references_private", () => {
|
|
|
9086
9097
|
}).catch(R)), l.deliveryTypeReference;
|
|
9087
9098
|
}), ye = b(() => {
|
|
9088
9099
|
const l = A();
|
|
9089
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(
|
|
9100
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Ut).getManagers().then((f) => {
|
|
9090
9101
|
l.managersList = f;
|
|
9091
9102
|
}).catch(R)), l.managersList;
|
|
9092
9103
|
}), lr = b(() => {
|
|
@@ -9184,7 +9195,7 @@ const A = ue("common.references_private", () => {
|
|
|
9184
9195
|
priceCoefficientsReference: pr
|
|
9185
9196
|
};
|
|
9186
9197
|
});
|
|
9187
|
-
class
|
|
9198
|
+
class ii {
|
|
9188
9199
|
/**
|
|
9189
9200
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
9190
9201
|
*
|
|
@@ -9202,7 +9213,7 @@ class si {
|
|
|
9202
9213
|
this.name = r.name, this.content = r.content;
|
|
9203
9214
|
}
|
|
9204
9215
|
}
|
|
9205
|
-
class
|
|
9216
|
+
class ht {
|
|
9206
9217
|
/**
|
|
9207
9218
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
9208
9219
|
*
|
|
@@ -9242,10 +9253,10 @@ class pt {
|
|
|
9242
9253
|
*/
|
|
9243
9254
|
s(this, "tags");
|
|
9244
9255
|
var e;
|
|
9245
|
-
this.resourceType = new
|
|
9256
|
+
this.resourceType = new Gt(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 ii(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
|
|
9246
9257
|
}
|
|
9247
9258
|
}
|
|
9248
|
-
class
|
|
9259
|
+
class sn extends h {
|
|
9249
9260
|
/**
|
|
9250
9261
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
9251
9262
|
*
|
|
@@ -9253,7 +9264,7 @@ class tn extends h {
|
|
|
9253
9264
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
9254
9265
|
*/
|
|
9255
9266
|
getResourceSeoData(r, e) {
|
|
9256
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new
|
|
9267
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new ht(t.data));
|
|
9257
9268
|
}
|
|
9258
9269
|
/**
|
|
9259
9270
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -9264,7 +9275,7 @@ class tn extends h {
|
|
|
9264
9275
|
* в случае ошибок в запросах.
|
|
9265
9276
|
*/
|
|
9266
9277
|
saveResourceSeoData(r, e = {}) {
|
|
9267
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new
|
|
9278
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new ht(t.data), e);
|
|
9268
9279
|
}
|
|
9269
9280
|
/**
|
|
9270
9281
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -9276,7 +9287,7 @@ class tn extends h {
|
|
|
9276
9287
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
9277
9288
|
}
|
|
9278
9289
|
}
|
|
9279
|
-
class
|
|
9290
|
+
class nn extends h {
|
|
9280
9291
|
/**
|
|
9281
9292
|
* Возвращает подсказки по адресам.
|
|
9282
9293
|
*
|
|
@@ -9323,8 +9334,8 @@ class sn extends h {
|
|
|
9323
9334
|
});
|
|
9324
9335
|
}
|
|
9325
9336
|
}
|
|
9326
|
-
var
|
|
9327
|
-
class
|
|
9337
|
+
var zt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.ExternalSeo = "external_seo", n.Guest = "guest", n))(zt || {});
|
|
9338
|
+
class ni extends $t {
|
|
9328
9339
|
/**
|
|
9329
9340
|
* Инициализирует экземпляр класса {@link User}.
|
|
9330
9341
|
*
|
|
@@ -9348,10 +9359,10 @@ class ii extends St {
|
|
|
9348
9359
|
* Роль ценообразования текущего пользователя.
|
|
9349
9360
|
*/
|
|
9350
9361
|
s(this, "pricingRole");
|
|
9351
|
-
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
|
|
9362
|
+
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 dt(e.pricingRole) : void 0;
|
|
9352
9363
|
}
|
|
9353
9364
|
}
|
|
9354
|
-
class
|
|
9365
|
+
class on extends h {
|
|
9355
9366
|
/**
|
|
9356
9367
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
9357
9368
|
*/
|
|
@@ -9367,17 +9378,17 @@ class nn extends h {
|
|
|
9367
9378
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
9368
9379
|
}
|
|
9369
9380
|
}
|
|
9370
|
-
class
|
|
9381
|
+
class oi extends h {
|
|
9371
9382
|
/**
|
|
9372
9383
|
* Возвращает данные о текущем пользователе.
|
|
9373
9384
|
*/
|
|
9374
9385
|
// eslint-disable-next-line class-methods-use-this
|
|
9375
9386
|
getCurrentUser() {
|
|
9376
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
9387
|
+
return this.get("/internal/users/info", {}, (r) => new ni(r.data), !0);
|
|
9377
9388
|
}
|
|
9378
9389
|
}
|
|
9379
9390
|
const Ir = ue("common.user_state_private", () => {
|
|
9380
|
-
const n =
|
|
9391
|
+
const n = v({}), r = v(void 0), e = v(void 0);
|
|
9381
9392
|
return {
|
|
9382
9393
|
/**
|
|
9383
9394
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -9393,23 +9404,23 @@ const Ir = ue("common.user_state_private", () => {
|
|
|
9393
9404
|
currentManager: e
|
|
9394
9405
|
};
|
|
9395
9406
|
});
|
|
9396
|
-
function
|
|
9407
|
+
function gt(n) {
|
|
9397
9408
|
const r = Ir();
|
|
9398
|
-
(n == null ? void 0 : n.type) !==
|
|
9409
|
+
(n == null ? void 0 : n.type) !== zt.Manager || r.currentManager || r.dataLoaderList.currentManager || (r.dataLoaderList.currentManager = !0, h.getInstance(Ut).getManager(n.id).then((e) => {
|
|
9399
9410
|
r.currentManager = e;
|
|
9400
9411
|
}).catch(R).finally(() => {
|
|
9401
9412
|
r.dataLoaderList.currentManager = !1;
|
|
9402
9413
|
}));
|
|
9403
9414
|
}
|
|
9404
|
-
const
|
|
9415
|
+
const cn = ue("common.user_state", () => {
|
|
9405
9416
|
const n = b(() => {
|
|
9406
9417
|
const e = Ir();
|
|
9407
|
-
return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(
|
|
9408
|
-
e.currentUser = t,
|
|
9418
|
+
return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(oi).getCurrentUser().then((t) => {
|
|
9419
|
+
e.currentUser = t, gt(t);
|
|
9409
9420
|
}).catch(R).finally(() => {
|
|
9410
9421
|
e.dataLoaderList.currentUser = !1;
|
|
9411
9422
|
})), e.currentUser;
|
|
9412
|
-
}), r = b(() => (
|
|
9423
|
+
}), r = b(() => (gt(n.value), Ir().currentManager));
|
|
9413
9424
|
return {
|
|
9414
9425
|
/**
|
|
9415
9426
|
* Данные о текущем пользователе.
|
|
@@ -9459,7 +9470,7 @@ class br extends or {
|
|
|
9459
9470
|
this.cities = ((t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((o) => new ee(o))) ?? [], this.users = ((i = e == null ? void 0 : e.users) == null ? void 0 : i.map((o) => new _r(o))) ?? [];
|
|
9460
9471
|
}
|
|
9461
9472
|
}
|
|
9462
|
-
class
|
|
9473
|
+
class ln extends de {
|
|
9463
9474
|
/**
|
|
9464
9475
|
* Инициализирует экземпляр класса {@link UserRegionsListFilters}.
|
|
9465
9476
|
*
|
|
@@ -9495,7 +9506,7 @@ class cn extends de {
|
|
|
9495
9506
|
return this;
|
|
9496
9507
|
}
|
|
9497
9508
|
}
|
|
9498
|
-
class
|
|
9509
|
+
class un extends M {
|
|
9499
9510
|
/**
|
|
9500
9511
|
* Возвращает список регионов пользователей.
|
|
9501
9512
|
*
|
|
@@ -9594,7 +9605,7 @@ class ln extends M {
|
|
|
9594
9605
|
});
|
|
9595
9606
|
}
|
|
9596
9607
|
}
|
|
9597
|
-
class
|
|
9608
|
+
class pn {
|
|
9598
9609
|
/**
|
|
9599
9610
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
9600
9611
|
*
|
|
@@ -9618,8 +9629,8 @@ class un {
|
|
|
9618
9629
|
}
|
|
9619
9630
|
}
|
|
9620
9631
|
export {
|
|
9621
|
-
|
|
9622
|
-
|
|
9632
|
+
Xs as AnyReference,
|
|
9633
|
+
Rs as AppBaseConfig,
|
|
9623
9634
|
kr as BankAccount,
|
|
9624
9635
|
M as BasePaginationProvider,
|
|
9625
9636
|
ar as BlogPost,
|
|
@@ -9627,208 +9638,208 @@ export {
|
|
|
9627
9638
|
Qe as BlogPostMediaTypeEnum,
|
|
9628
9639
|
Je as BlogPostPublicationStatusEnum,
|
|
9629
9640
|
Ue as BlogPostShortInfo,
|
|
9630
|
-
|
|
9641
|
+
yi as BlogPostsListFilters,
|
|
9631
9642
|
Sr as BlogProvider,
|
|
9632
|
-
|
|
9643
|
+
ds as CalculationTypeEnum,
|
|
9633
9644
|
y as CalendarHelper,
|
|
9634
9645
|
Le as Cart,
|
|
9635
|
-
|
|
9646
|
+
wi as CartProvider,
|
|
9636
9647
|
Ci as CatalogProvider,
|
|
9637
|
-
|
|
9648
|
+
Rt as CatalogableItem,
|
|
9638
9649
|
Y as Category,
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9650
|
+
Ls as CategoryFilter,
|
|
9651
|
+
st as CategoryFilterSetting,
|
|
9652
|
+
Os as CategoryFilterValue,
|
|
9653
|
+
tt as CategoryPricingRule,
|
|
9654
|
+
_t as ChannelPrimaryInterest,
|
|
9655
|
+
Zs as City,
|
|
9645
9656
|
ee as CityWithRegionAndCountry,
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9657
|
+
pt as CityWithUserRegion,
|
|
9658
|
+
ot as Client,
|
|
9659
|
+
qs as ClientAdditionalData,
|
|
9649
9660
|
rr as ClientCategory,
|
|
9650
9661
|
W as ClientDataProvider,
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9662
|
+
Ot as ClientPriceCatalogableItem,
|
|
9663
|
+
rt as ClientPriceCategory,
|
|
9664
|
+
Cr as ClientPriceProduct,
|
|
9665
|
+
Di as ClientPriceProvider,
|
|
9666
|
+
Ri as ClientPriceTemplateProvider,
|
|
9656
9667
|
Pe as ClientProduct,
|
|
9657
|
-
|
|
9658
|
-
|
|
9668
|
+
bi as ClientProductCategoryDataProvider,
|
|
9669
|
+
di as ClientProductDataProvider,
|
|
9659
9670
|
fe as ClientShortInfo,
|
|
9660
|
-
|
|
9661
|
-
|
|
9671
|
+
xs as ClientsAdditionalDataRequestTypeEnum,
|
|
9672
|
+
Oi as ClientsListFilters,
|
|
9662
9673
|
Fe as CodedIdentity,
|
|
9663
|
-
|
|
9664
|
-
|
|
9674
|
+
Ii as ConfiguratorProvider,
|
|
9675
|
+
Es as ConfiguratorsEnum,
|
|
9665
9676
|
Or as Contact,
|
|
9666
|
-
|
|
9677
|
+
bt as ContactLinks,
|
|
9667
9678
|
oe as ContactPerson,
|
|
9668
|
-
|
|
9669
|
-
|
|
9679
|
+
Ns as ContactPersonRelated,
|
|
9680
|
+
ei as ContactPosition,
|
|
9670
9681
|
Dr as ContactRelation,
|
|
9671
|
-
|
|
9682
|
+
Lt as ContragentBase,
|
|
9672
9683
|
tr as ContragentFactory,
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9684
|
+
xt as ContragentIc,
|
|
9685
|
+
Is as ContragentPerson,
|
|
9686
|
+
_s as ContragentUlNr,
|
|
9687
|
+
It as ContragentUlR,
|
|
9677
9688
|
Mr as CostSourceEnum,
|
|
9678
9689
|
Te as Country,
|
|
9679
9690
|
sr as CreatableIdentity,
|
|
9680
9691
|
Gr as CuratedDirection,
|
|
9681
9692
|
zr as Curator,
|
|
9682
9693
|
J as Currency,
|
|
9683
|
-
|
|
9694
|
+
nn as DataSuggestionProvider,
|
|
9684
9695
|
O as DateHelper,
|
|
9685
|
-
|
|
9686
|
-
|
|
9696
|
+
Ui as DateTimeProvider,
|
|
9697
|
+
$s as DeletableIdentity,
|
|
9687
9698
|
nr as DeletableNamedIdentity,
|
|
9688
9699
|
qe as DeliveryAddress,
|
|
9689
9700
|
X as DeliveryType,
|
|
9690
|
-
|
|
9691
|
-
|
|
9701
|
+
vt as DetailedJwtPayload,
|
|
9702
|
+
ws as DeviceTypeResolutionConfig,
|
|
9692
9703
|
Rr as Discount,
|
|
9693
9704
|
Lr as DiscountClient,
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9705
|
+
ct as DiscountClientEligibility,
|
|
9706
|
+
Ms as DiscountConditions,
|
|
9707
|
+
Hs as DiscountHelper,
|
|
9697
9708
|
xr as DiscountProvider,
|
|
9698
9709
|
Ur as DiscountShortInfo,
|
|
9699
9710
|
Ke as DiscountStateEnum,
|
|
9700
|
-
|
|
9701
|
-
|
|
9711
|
+
Bs as DiscountStateHelper,
|
|
9712
|
+
Hi as DiscountsListFilters,
|
|
9702
9713
|
We as Faq,
|
|
9703
9714
|
Xe as FaqGroup,
|
|
9704
|
-
|
|
9705
|
-
|
|
9715
|
+
Bi as FaqProvider,
|
|
9716
|
+
pn as FieldValidationResultData,
|
|
9706
9717
|
ie as FilterGroup,
|
|
9707
|
-
|
|
9718
|
+
Zr as FilterItem,
|
|
9708
9719
|
Er as FilterOpEnum,
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9720
|
+
ks as FilterSettings,
|
|
9721
|
+
Dt as GeoCoordinates,
|
|
9722
|
+
Ts as HiddenCatalogableItem,
|
|
9712
9723
|
Me as HttpCachedRequester,
|
|
9713
|
-
|
|
9724
|
+
vs as HttpParamsConfig,
|
|
9714
9725
|
h as HttpRequester,
|
|
9715
9726
|
pe as Identity,
|
|
9716
|
-
|
|
9727
|
+
bs as Image,
|
|
9717
9728
|
z as InterceptorsEnum,
|
|
9718
9729
|
be as JwtPayload,
|
|
9719
9730
|
Z as Manager,
|
|
9720
9731
|
Br as ManagerCommon,
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9732
|
+
zi as ManagerDataFactory,
|
|
9733
|
+
Ut as ManagerDataProvider,
|
|
9734
|
+
ii as MetaTagItem,
|
|
9724
9735
|
N as NamedIdentity,
|
|
9725
9736
|
G as Offer,
|
|
9726
|
-
|
|
9737
|
+
Gs as OfferActualization,
|
|
9727
9738
|
_e as OfferActualizationStatus,
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9739
|
+
Yi as OfferHelper,
|
|
9740
|
+
Ft as OfferShortInfo,
|
|
9741
|
+
ji as OffersDataProvider,
|
|
9742
|
+
Wi as OffersListFilters,
|
|
9743
|
+
Ht as Operator,
|
|
9733
9744
|
ce as Opf,
|
|
9734
9745
|
K as OpfEnum,
|
|
9735
9746
|
L as Order,
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9747
|
+
js as OrderAction,
|
|
9748
|
+
Vi as OrderEditorData,
|
|
9749
|
+
Mt as OrderInfo,
|
|
9750
|
+
Ws as OrderItem,
|
|
9751
|
+
Pt as OrderItemBase,
|
|
9752
|
+
ri as OrderPaymentStatus,
|
|
9753
|
+
Nt as OrderShortInfo,
|
|
9743
9754
|
cr as OrderStatus,
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9755
|
+
ti as OrderStatusDetail,
|
|
9756
|
+
Ks as OrderStatusDetailEnum,
|
|
9757
|
+
Js as OrderStatusEnum,
|
|
9758
|
+
Ys as OrderStatusHistoryInfo,
|
|
9759
|
+
Ji as OrdersDataProvider,
|
|
9760
|
+
Qi as OrdersListFilters,
|
|
9750
9761
|
de as PaginationFiltersBase,
|
|
9751
9762
|
le as PartnerGroup,
|
|
9752
|
-
|
|
9763
|
+
Bt as PaymentType,
|
|
9753
9764
|
Ve as PreferencesStorageProvider,
|
|
9754
9765
|
Pr as PriceAnalyze,
|
|
9755
|
-
|
|
9756
|
-
|
|
9766
|
+
Xi as PriceAnalyzeProvider,
|
|
9767
|
+
At as PriceCatalogableItem,
|
|
9757
9768
|
he as PriceCoefficient,
|
|
9758
9769
|
Ct as PriceCoefficientEnum,
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9770
|
+
Zi as PriceHistoryDataProvider,
|
|
9771
|
+
Vs as PriceHistoryItem,
|
|
9772
|
+
Ce as PriceTemplate,
|
|
9762
9773
|
wr as PriceTemplateCategory,
|
|
9763
9774
|
xe as PriceTemplateClient,
|
|
9764
|
-
|
|
9765
|
-
|
|
9766
|
-
|
|
9775
|
+
St as PriceTemplateICatalogableItem,
|
|
9776
|
+
vr as PriceTemplateProduct,
|
|
9777
|
+
Ai as PriceTemplateProvider,
|
|
9767
9778
|
Ie as PricingRole,
|
|
9768
|
-
|
|
9779
|
+
Si as PricingRoleProvider,
|
|
9769
9780
|
$r as PrimaryCatalogableItem,
|
|
9770
9781
|
E as Product,
|
|
9771
|
-
|
|
9772
|
-
|
|
9773
|
-
|
|
9774
|
-
|
|
9782
|
+
Pi as ProductCategoryDataProvider,
|
|
9783
|
+
Ti as ProductDataProvider,
|
|
9784
|
+
si as ProductFileType,
|
|
9785
|
+
Tt as ProductFilterTypeEnum,
|
|
9775
9786
|
Fr as ProductPriceCoefficient,
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9787
|
+
Qs as ProductPriceHistory,
|
|
9788
|
+
et as ProductUnit,
|
|
9789
|
+
zs as ProfstroyOfferItem,
|
|
9790
|
+
$i as PropertiesProvider,
|
|
9780
9791
|
De as Property,
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9792
|
+
kt as PropertyType,
|
|
9793
|
+
As as PropertyTypeEnum,
|
|
9794
|
+
ve as PropertyValue,
|
|
9795
|
+
en as RecommendationsDataProvider,
|
|
9796
|
+
ut as RecommendationsList,
|
|
9797
|
+
C as Reference,
|
|
9798
|
+
rn as ReferenceDataFactory,
|
|
9788
9799
|
d as ReferenceDataProvider,
|
|
9789
9800
|
ne as Region,
|
|
9790
|
-
|
|
9791
|
-
|
|
9792
|
-
|
|
9801
|
+
Gt as ResourceType,
|
|
9802
|
+
Fi as STANDARD_PERIOD_GROUPS,
|
|
9803
|
+
Mi as STANDARD_PERIOD_SECTIONS,
|
|
9793
9804
|
F as SalesDirection,
|
|
9794
9805
|
Cs as SentryConfig,
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9806
|
+
ht as Seo,
|
|
9807
|
+
sn as SeoDataProvider,
|
|
9808
|
+
qt as SourcePrimaryInterest,
|
|
9809
|
+
Ps as StockCount,
|
|
9810
|
+
_i as TableDataPagination,
|
|
9811
|
+
Us as TableDataPaginationRequestParams,
|
|
9812
|
+
qi as TableDataSortRequestParams,
|
|
9813
|
+
ki as TemplateProductCategoryDataProvider,
|
|
9814
|
+
vi as TemplatesListFilters,
|
|
9804
9815
|
U as TypedInstanceFactory,
|
|
9805
|
-
|
|
9806
|
-
|
|
9816
|
+
Et as UnitsHelper,
|
|
9817
|
+
Li as UnknownClientDataProvider,
|
|
9807
9818
|
ir as UpdatableNamedIdentity,
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9812
|
-
|
|
9819
|
+
ni as User,
|
|
9820
|
+
on as UserAuthDataProvider,
|
|
9821
|
+
$t as UserCommonInfo,
|
|
9822
|
+
oi as UserDataProvider,
|
|
9823
|
+
dt as UserPricingRole,
|
|
9813
9824
|
br as UserRegion,
|
|
9814
9825
|
_r as UserRegionEmployee,
|
|
9815
|
-
|
|
9826
|
+
un as UserRegionProvider,
|
|
9816
9827
|
or as UserRegionShortInfo,
|
|
9817
|
-
|
|
9828
|
+
ln as UserRegionsListFilters,
|
|
9818
9829
|
q as UserShortInfo,
|
|
9819
|
-
|
|
9820
|
-
|
|
9830
|
+
zt as UserTypeEnum,
|
|
9831
|
+
xi as VersionConfig,
|
|
9821
9832
|
He as Warehouse,
|
|
9822
|
-
|
|
9823
|
-
|
|
9824
|
-
|
|
9825
|
-
|
|
9826
|
-
|
|
9827
|
-
|
|
9828
|
-
|
|
9829
|
-
|
|
9833
|
+
Ds as WebSocketConfig,
|
|
9834
|
+
Ki as currentOrderInjectionKey,
|
|
9835
|
+
Ni as daysAgoIso,
|
|
9836
|
+
it as findCatalogItemByIdRecursive,
|
|
9837
|
+
nt as flattenCatalogItems,
|
|
9838
|
+
Gi as formatPercentChange,
|
|
9839
|
+
Ei as formatRelativeDate,
|
|
9840
|
+
Fs as pluralize,
|
|
9830
9841
|
ze as useAuthStateStore,
|
|
9831
9842
|
S as useBaseConfigStateStore,
|
|
9832
|
-
|
|
9833
|
-
|
|
9843
|
+
tn as useReferencesStore,
|
|
9844
|
+
cn as useUserStateStore
|
|
9834
9845
|
};
|