@snabcentr/common-lib 1.71.5 → 1.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +1 -1
- package/dist/release_notes.tmp +2 -4
- package/dist/sc-common-lib.js +270 -278
- package/dist/sc-common-lib.js.map +1 -1
- package/dist/sc-common-lib.umd.cjs +1 -1
- package/dist/sc-common-lib.umd.cjs.map +1 -1
- package/dist/src/cart/providers/cart-provider.d.ts +8 -0
- package/dist/src/cart/providers/cart-provider.d.ts.map +1 -1
- package/dist/src/config/classes/http-params-config.d.ts +0 -8
- package/dist/src/config/classes/http-params-config.d.ts.map +1 -1
- package/dist/src/config/interfaces/i-http-params-config.d.ts +0 -8
- package/dist/src/config/interfaces/i-http-params-config.d.ts.map +1 -1
- package/dist/src/http/classes/http-requester.d.ts +1 -1
- package/dist/src/http/classes/http-requester.d.ts.map +1 -1
- package/dist/src/price-history/providers/price-history-data-provider.d.ts +0 -4
- package/dist/src/price-history/providers/price-history-data-provider.d.ts.map +1 -1
- package/dist/src/recommendations/providers/recommendations-data-provider.d.ts +0 -4
- package/dist/src/recommendations/providers/recommendations-data-provider.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -2,11 +2,11 @@ var wr = Object.defineProperty;
|
|
|
2
2
|
var Cr = (n, r, e) => r in n ? wr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
3
|
var t = (n, r, e) => Cr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { jwtDecode as Ye } from "jwt-decode";
|
|
5
|
-
import { merge as
|
|
5
|
+
import { merge as me, isUndefined as vr, isNil as $, noop as C, mapValues as Pr, isArray as J, every as Rr, split as ar, toUpper as Ar, constant as Dr, isString as w, cloneDeep as $r, toLower as Tr, isFunction as Ne, map as ve, forEach as br, isDate as de, isEmpty as Pe, omitBy as Xe, isObject as Ze } from "lodash-es";
|
|
6
6
|
import { objectToCamel as Oe, objectToSnake as Me } from "ts-case-convert";
|
|
7
7
|
import { defineStore as Z } from "pinia";
|
|
8
|
-
import { ref as
|
|
9
|
-
import { parseISO as
|
|
8
|
+
import { ref as y, markRaw as _r, computed as R } from "vue";
|
|
9
|
+
import { parseISO as v, format as q, isAfter as Sr, startOfToday as er, addSeconds as Ir, addBusinessDays as dr, endOfTomorrow as Lr, startOfTomorrow as kr, endOfYesterday as xr, startOfYesterday as Nr, endOfToday as Or, endOfDay as qr, startOfDay as Ur } from "date-fns";
|
|
10
10
|
import Gr from "axios";
|
|
11
11
|
class ie {
|
|
12
12
|
/**
|
|
@@ -99,7 +99,7 @@ class ie {
|
|
|
99
99
|
* @inheritDoc
|
|
100
100
|
*/
|
|
101
101
|
t(this, "email", "");
|
|
102
|
-
|
|
102
|
+
me(this, r);
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* Возвращает данные полезной нагрузки для указанного JWT-токена.
|
|
@@ -111,7 +111,7 @@ class ie {
|
|
|
111
111
|
return s.resourceAccess = e.resource_access, s;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class kt extends ie {
|
|
115
115
|
/**
|
|
116
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
117
117
|
*
|
|
@@ -143,7 +143,7 @@ class dt extends ie {
|
|
|
143
143
|
* @inheritDoc
|
|
144
144
|
*/
|
|
145
145
|
t(this, "address");
|
|
146
|
-
|
|
146
|
+
me(this, e);
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
149
|
* Возвращает данные полезной нагрузки для указанного JWT-токена.
|
|
@@ -193,7 +193,7 @@ t(W, "config");
|
|
|
193
193
|
let D = W;
|
|
194
194
|
const ee = Z("__auth_state_private", () => {
|
|
195
195
|
var i;
|
|
196
|
-
const n =
|
|
196
|
+
const n = y(Promise.resolve((i = D.getConfig().devMode) == null ? void 0 : i.initAuthBearerToken)), r = y(void 0), e = y(void 0), s = _r(/* @__PURE__ */ new Map());
|
|
197
197
|
return {
|
|
198
198
|
/**
|
|
199
199
|
* {@link Promise<string>} для получения jwt-ключа доступа к системам.
|
|
@@ -212,14 +212,14 @@ const ee = Z("__auth_state_private", () => {
|
|
|
212
212
|
*/
|
|
213
213
|
userPermissionsComputedRefs: s
|
|
214
214
|
};
|
|
215
|
-
}),
|
|
215
|
+
}), $e = Z("__auth_state", () => {
|
|
216
216
|
const n = R(() => {
|
|
217
217
|
const i = ee();
|
|
218
218
|
if ($(i.jwtToken) && !$(i.jwtTokenUpdater)) {
|
|
219
219
|
const o = i.jwtTokenUpdater();
|
|
220
220
|
i.jwtToken = o, o.then((c) => {
|
|
221
221
|
i.jwtToken = Promise.resolve(c);
|
|
222
|
-
}).catch(
|
|
222
|
+
}).catch(C);
|
|
223
223
|
}
|
|
224
224
|
return i.jwtToken;
|
|
225
225
|
});
|
|
@@ -232,22 +232,22 @@ const ee = Z("__auth_state_private", () => {
|
|
|
232
232
|
function s(i) {
|
|
233
233
|
const o = ee();
|
|
234
234
|
!$(o.jwtToken) && $(o.userPermissions) && o.jwtToken.then((u) => {
|
|
235
|
-
const
|
|
236
|
-
o.userPermissions =
|
|
237
|
-
}).catch(
|
|
235
|
+
const f = ie.getJwtPayload(u);
|
|
236
|
+
o.userPermissions = f.exp * 1e3 > Date.now() ? Pr(f.resourceAccess, (m) => (m == null ? void 0 : m.roles) ?? []) : void 0;
|
|
237
|
+
}).catch(C);
|
|
238
238
|
const c = J(i) ? i.join(" && ") : i;
|
|
239
239
|
if (o.userPermissionsComputedRefs.has(c))
|
|
240
240
|
return o.userPermissionsComputedRefs.get(c);
|
|
241
241
|
const p = R(() => {
|
|
242
|
-
const u = (
|
|
242
|
+
const u = (f) => {
|
|
243
243
|
var _;
|
|
244
|
-
const
|
|
245
|
-
if (
|
|
244
|
+
const m = ar(f, ".");
|
|
245
|
+
if (m.length < 2)
|
|
246
246
|
return !1;
|
|
247
|
-
const [S, I] =
|
|
247
|
+
const [S, I] = m, b = (_ = ee().userPermissions) == null ? void 0 : _[S];
|
|
248
248
|
return J(b) && b.includes(I);
|
|
249
249
|
};
|
|
250
|
-
return J(i) ? Rr(i, (
|
|
250
|
+
return J(i) ? Rr(i, (f) => u(f)) : u(i);
|
|
251
251
|
});
|
|
252
252
|
return o.userPermissionsComputedRefs.set(c, p), p;
|
|
253
253
|
}
|
|
@@ -363,7 +363,7 @@ class Le extends rr {
|
|
|
363
363
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
class
|
|
366
|
+
class ue extends Le {
|
|
367
367
|
/**
|
|
368
368
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
369
369
|
*
|
|
@@ -387,7 +387,7 @@ class he extends Le {
|
|
|
387
387
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
388
388
|
*/
|
|
389
389
|
t(this, "currencyRates");
|
|
390
|
-
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [
|
|
390
|
+
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [Ar(s), i])) : void 0;
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
var tr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(tr || {});
|
|
@@ -410,12 +410,12 @@ class P extends T {
|
|
|
410
410
|
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
class
|
|
413
|
+
class Re extends P {
|
|
414
414
|
/**
|
|
415
415
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
416
416
|
*/
|
|
417
417
|
static getRetailPriceCoefficient() {
|
|
418
|
-
return { id: -2, slug: tr.Retail, name: "Розн. цена", guid: "", isNewRec:
|
|
418
|
+
return { id: -2, slug: tr.Retail, name: "Розн. цена", guid: "", isNewRec: Dr(!0) };
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
class qe {
|
|
@@ -445,7 +445,7 @@ class qe {
|
|
|
445
445
|
* Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
|
|
446
446
|
*/
|
|
447
447
|
t(this, "readOnly");
|
|
448
|
-
this.coefficient = new
|
|
448
|
+
this.coefficient = new Re(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;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
class sr {
|
|
@@ -468,7 +468,7 @@ class sr {
|
|
|
468
468
|
}
|
|
469
469
|
class K extends P {
|
|
470
470
|
}
|
|
471
|
-
class
|
|
471
|
+
class ae extends P {
|
|
472
472
|
/**
|
|
473
473
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
474
474
|
*
|
|
@@ -500,7 +500,7 @@ class Re extends P {
|
|
|
500
500
|
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new sr(e == null ? void 0 : e.coordinates);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
class
|
|
503
|
+
class Fr {
|
|
504
504
|
/**
|
|
505
505
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
506
506
|
*
|
|
@@ -515,10 +515,10 @@ class jr {
|
|
|
515
515
|
* Количество остатков товара на складе.
|
|
516
516
|
*/
|
|
517
517
|
t(this, "count");
|
|
518
|
-
this.warehouse = new
|
|
518
|
+
this.warehouse = new ae(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
class
|
|
521
|
+
class jr extends rr {
|
|
522
522
|
/**
|
|
523
523
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
524
524
|
*
|
|
@@ -556,7 +556,7 @@ class Mr {
|
|
|
556
556
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
class
|
|
559
|
+
class k extends jr {
|
|
560
560
|
/**
|
|
561
561
|
* Инициализирует экземпляр класса {@link Product}.
|
|
562
562
|
*
|
|
@@ -641,7 +641,7 @@ class d extends Fr {
|
|
|
641
641
|
* Список коэффициентов цен на продукт.
|
|
642
642
|
*/
|
|
643
643
|
t(this, "priceCoefficients");
|
|
644
|
-
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate =
|
|
644
|
+
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = w(e == null ? void 0 : e.costDate) ? v(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((u) => new Fr(u))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
645
645
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((u) => u.isPrimary));
|
|
646
646
|
s && (this.category = new Le({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((u) => new Le(u))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((u) => new Mr(u, D.getConfig().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 = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((u) => new qe(u))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
647
647
|
}
|
|
@@ -718,7 +718,7 @@ class Hr extends M {
|
|
|
718
718
|
* Признак того, что позиция является дополнительной продажей.
|
|
719
719
|
*/
|
|
720
720
|
t(this, "isAdditionalSale");
|
|
721
|
-
this.product = new
|
|
721
|
+
this.product = new k(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ue(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && $r(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
class Br extends Hr {
|
|
@@ -771,7 +771,7 @@ class Br extends Hr {
|
|
|
771
771
|
this.currency = e.currency, this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing;
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
|
-
class
|
|
774
|
+
class ge {
|
|
775
775
|
/**
|
|
776
776
|
* Инициализирует экземпляр класса {@link Cart}.
|
|
777
777
|
*
|
|
@@ -812,7 +812,7 @@ class Ue {
|
|
|
812
812
|
return new r(e);
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
|
-
const
|
|
815
|
+
const L = class L {
|
|
816
816
|
/**
|
|
817
817
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
818
818
|
*/
|
|
@@ -832,7 +832,7 @@ const k = class k {
|
|
|
832
832
|
* @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
833
833
|
* @param disableNotifications Признак необходимости отключить уведомления об ошибках.
|
|
834
834
|
*/
|
|
835
|
-
t(this, "errorResponseHandler",
|
|
835
|
+
t(this, "errorResponseHandler", C);
|
|
836
836
|
/**
|
|
837
837
|
* Список идентификаторов обработчиков запросов для возможности отключить те или иные обработчики.
|
|
838
838
|
*/
|
|
@@ -851,7 +851,7 @@ const k = class k {
|
|
|
851
851
|
// eslint-disable-next-line class-methods-use-this
|
|
852
852
|
t(this, "authRequestInterceptor", async (r) => {
|
|
853
853
|
let e;
|
|
854
|
-
return $(
|
|
854
|
+
return $($e().jwtToken) || (e = await $e().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
|
|
855
855
|
});
|
|
856
856
|
/**
|
|
857
857
|
* Перехватчик запроса для преобразования данных запроса.
|
|
@@ -868,7 +868,7 @@ const k = class k {
|
|
|
868
868
|
t(this, "authErrorsResponseInterceptors", (r) => {
|
|
869
869
|
var s;
|
|
870
870
|
const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
|
|
871
|
-
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (
|
|
871
|
+
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : ($e().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
|
|
872
872
|
});
|
|
873
873
|
/**
|
|
874
874
|
* Перехватчик ответа для преобразования данных ответа на запрос.
|
|
@@ -878,7 +878,7 @@ const k = class k {
|
|
|
878
878
|
// eslint-disable-next-line class-methods-use-this
|
|
879
879
|
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Oe(r.data)), r));
|
|
880
880
|
const r = D.getConfig().version;
|
|
881
|
-
this.errorResponseHandler =
|
|
881
|
+
this.errorResponseHandler = L.defaultErrorsResponseHandler, this.httpClient = Gr.create({
|
|
882
882
|
headers: {
|
|
883
883
|
"APP-VERSION": `${r.name} (${r.version}, ${q(r.date, D.getConfig().dateFormats.uiDate)})`,
|
|
884
884
|
Accept: "application/json",
|
|
@@ -889,7 +889,7 @@ const k = class k {
|
|
|
889
889
|
(e) => Promise.reject(e)
|
|
890
890
|
), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
|
|
891
891
|
(e) => e,
|
|
892
|
-
(e) =>
|
|
892
|
+
(e) => L.convertHttpErrorResponse(e)
|
|
893
893
|
), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((e) => e, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
|
|
894
894
|
this.dataConverterResponseInterceptor,
|
|
895
895
|
(e) => Promise.reject(e)
|
|
@@ -901,7 +901,7 @@ const k = class k {
|
|
|
901
901
|
* @param handler Ссылка на функцию-обработчик ошибок.
|
|
902
902
|
*/
|
|
903
903
|
static setDefaultErrorsResponseHandler(r) {
|
|
904
|
-
|
|
904
|
+
L.defaultErrorsResponseHandler = r;
|
|
905
905
|
}
|
|
906
906
|
/**
|
|
907
907
|
* Возвращает экземпляр объекта текущего класса.
|
|
@@ -909,7 +909,7 @@ const k = class k {
|
|
|
909
909
|
* @param type Тип данных, которыми оперирует метод.
|
|
910
910
|
*/
|
|
911
911
|
static getInstance(r) {
|
|
912
|
-
return Object.prototype.hasOwnProperty.call(
|
|
912
|
+
return Object.prototype.hasOwnProperty.call(L.instances, r.name) || (L.instances[r.name] = Ue.simpleInstanceInitializer(r)), L.instances[r.name];
|
|
913
913
|
}
|
|
914
914
|
/**
|
|
915
915
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -1007,15 +1007,15 @@ const k = class k {
|
|
|
1007
1007
|
* Экземпляр объекта текущего класса.
|
|
1008
1008
|
*/
|
|
1009
1009
|
// eslint-disable-next-line no-use-before-define
|
|
1010
|
-
t(
|
|
1010
|
+
t(L, "instances", {}), /**
|
|
1011
1011
|
* Базовый обработчик ошибок выполнения запросов.
|
|
1012
1012
|
*
|
|
1013
1013
|
* @param error Данные об ошибке.
|
|
1014
1014
|
* @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
1015
1015
|
* @param disableNotifications Признак необходимости отключить уведомления об ошибках.
|
|
1016
1016
|
*/
|
|
1017
|
-
t(
|
|
1018
|
-
let h =
|
|
1017
|
+
t(L, "defaultErrorsResponseHandler", C);
|
|
1018
|
+
let h = L;
|
|
1019
1019
|
class xt extends h {
|
|
1020
1020
|
/**
|
|
1021
1021
|
* Возвращает содержимое корзины указанного клиента.
|
|
@@ -1025,7 +1025,7 @@ class xt extends h {
|
|
|
1025
1025
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_get
|
|
1026
1026
|
*/
|
|
1027
1027
|
getCart(r) {
|
|
1028
|
-
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new
|
|
1028
|
+
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ge(e.data));
|
|
1029
1029
|
}
|
|
1030
1030
|
/**
|
|
1031
1031
|
* Удаляет всё содержимое корзины.
|
|
@@ -1063,7 +1063,7 @@ class xt extends h {
|
|
|
1063
1063
|
isAdditionalSale: e.isAdditionalSale,
|
|
1064
1064
|
...e.configuratorParams
|
|
1065
1065
|
},
|
|
1066
|
-
(i) => new
|
|
1066
|
+
(i) => new ge(i.data),
|
|
1067
1067
|
s
|
|
1068
1068
|
);
|
|
1069
1069
|
}
|
|
@@ -1093,7 +1093,7 @@ class xt extends h {
|
|
|
1093
1093
|
isAdditionalSale: e.isAdditionalSale,
|
|
1094
1094
|
...e.configuratorParams
|
|
1095
1095
|
},
|
|
1096
|
-
(i) => new
|
|
1096
|
+
(i) => new ge(i.data),
|
|
1097
1097
|
s
|
|
1098
1098
|
);
|
|
1099
1099
|
}
|
|
@@ -1117,11 +1117,21 @@ class xt extends h {
|
|
|
1117
1117
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
|
|
1118
1118
|
*/
|
|
1119
1119
|
addCartItemFromCSV(r, e) {
|
|
1120
|
-
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new
|
|
1120
|
+
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new ge(s.data));
|
|
1121
|
+
}
|
|
1122
|
+
/**
|
|
1123
|
+
* Возвращает пример CSV файла для добавления продуктов в корзину.
|
|
1124
|
+
*
|
|
1125
|
+
* @param client Данные о клиенте, для которого необходимо получить пример CSV файла.
|
|
1126
|
+
*
|
|
1127
|
+
* @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv_example
|
|
1128
|
+
*/
|
|
1129
|
+
getCartItemFromCSVExample(r) {
|
|
1130
|
+
return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
|
|
1121
1131
|
}
|
|
1122
1132
|
}
|
|
1123
1133
|
var zr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(zr || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), Wr = /* @__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))(Wr || {});
|
|
1124
|
-
class B extends
|
|
1134
|
+
class B extends ue {
|
|
1125
1135
|
/**
|
|
1126
1136
|
* Инициализирует экземпляр класса {@link Category}.
|
|
1127
1137
|
*
|
|
@@ -1138,7 +1148,7 @@ class B extends he {
|
|
|
1138
1148
|
* Список продуктов категории.
|
|
1139
1149
|
*/
|
|
1140
1150
|
t(this, "products");
|
|
1141
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new B(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new
|
|
1151
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new B(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new k(o));
|
|
1142
1152
|
}
|
|
1143
1153
|
}
|
|
1144
1154
|
class ir extends T {
|
|
@@ -1153,7 +1163,7 @@ class ir extends T {
|
|
|
1153
1163
|
* Дата и время последнего изменения.
|
|
1154
1164
|
*/
|
|
1155
1165
|
t(this, "updatedAt");
|
|
1156
|
-
this.updatedAt =
|
|
1166
|
+
this.updatedAt = w(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1157
1167
|
}
|
|
1158
1168
|
}
|
|
1159
1169
|
class Er extends ir {
|
|
@@ -1168,7 +1178,7 @@ class Er extends ir {
|
|
|
1168
1178
|
* Дата и время последнего удаления.
|
|
1169
1179
|
*/
|
|
1170
1180
|
t(this, "deletedAt");
|
|
1171
|
-
this.deletedAt =
|
|
1181
|
+
this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1172
1182
|
}
|
|
1173
1183
|
}
|
|
1174
1184
|
class Nt {
|
|
@@ -1182,7 +1192,7 @@ class Nt {
|
|
|
1182
1192
|
if (e)
|
|
1183
1193
|
try {
|
|
1184
1194
|
const s = JSON.parse(e);
|
|
1185
|
-
if (Sr(
|
|
1195
|
+
if (Sr(v(s.availableFor) || er(), /* @__PURE__ */ new Date()))
|
|
1186
1196
|
return s.data ?? {};
|
|
1187
1197
|
} catch {
|
|
1188
1198
|
localStorage.removeItem(r);
|
|
@@ -1256,7 +1266,7 @@ class Vr extends T {
|
|
|
1256
1266
|
* Дата и время удаления.
|
|
1257
1267
|
*/
|
|
1258
1268
|
t(this, "deletedAt");
|
|
1259
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt =
|
|
1269
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = w(e == null ? void 0 : e.publishedAt) ? v(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new G(e == null ? void 0 : e.owner), this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1260
1270
|
}
|
|
1261
1271
|
}
|
|
1262
1272
|
class z extends ir {
|
|
@@ -1275,10 +1285,10 @@ class z extends ir {
|
|
|
1275
1285
|
* Дата и время создания шаблона.
|
|
1276
1286
|
*/
|
|
1277
1287
|
t(this, "createdAt");
|
|
1278
|
-
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt =
|
|
1288
|
+
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
|
|
1279
1289
|
}
|
|
1280
1290
|
}
|
|
1281
|
-
class Q extends
|
|
1291
|
+
class Q extends k {
|
|
1282
1292
|
/**
|
|
1283
1293
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1284
1294
|
*
|
|
@@ -1422,7 +1432,7 @@ class Ae extends oe {
|
|
|
1422
1432
|
this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new Kr(e.pricingRole) : void 0;
|
|
1423
1433
|
}
|
|
1424
1434
|
}
|
|
1425
|
-
class Qr extends
|
|
1435
|
+
class Qr extends ue {
|
|
1426
1436
|
/**
|
|
1427
1437
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1428
1438
|
*
|
|
@@ -1488,10 +1498,10 @@ class nr {
|
|
|
1488
1498
|
* Процент, который прибавляется к значению выбранного коэффициента.
|
|
1489
1499
|
*/
|
|
1490
1500
|
t(this, "increasePercent");
|
|
1491
|
-
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new
|
|
1501
|
+
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Re(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1492
1502
|
}
|
|
1493
1503
|
}
|
|
1494
|
-
class
|
|
1504
|
+
class Te extends nr {
|
|
1495
1505
|
/**
|
|
1496
1506
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1497
1507
|
*
|
|
@@ -1503,7 +1513,7 @@ class $e extends nr {
|
|
|
1503
1513
|
* Базовые данные о продукте.
|
|
1504
1514
|
*/
|
|
1505
1515
|
t(this, "productCategory");
|
|
1506
|
-
this.productCategory = new
|
|
1516
|
+
this.productCategory = new ue(e == null ? void 0 : e.productCategory);
|
|
1507
1517
|
}
|
|
1508
1518
|
}
|
|
1509
1519
|
class Y extends P {
|
|
@@ -1523,7 +1533,7 @@ class ce extends P {
|
|
|
1523
1533
|
e && (this.country = new Y(e.country));
|
|
1524
1534
|
}
|
|
1525
1535
|
}
|
|
1526
|
-
class
|
|
1536
|
+
class Fe extends P {
|
|
1527
1537
|
/**
|
|
1528
1538
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
1529
1539
|
*
|
|
@@ -1574,10 +1584,10 @@ class or extends T {
|
|
|
1574
1584
|
* Признак активности учетной записи пользователя.
|
|
1575
1585
|
*/
|
|
1576
1586
|
t(this, "isActive");
|
|
1577
|
-
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 x(e.salesDirection) : void 0, this.createdAt =
|
|
1587
|
+
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 x(e.salesDirection) : void 0, this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = w(e == null ? void 0 : e.lastLoginAt) ? v(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1578
1588
|
}
|
|
1579
1589
|
}
|
|
1580
|
-
class
|
|
1590
|
+
class he extends or {
|
|
1581
1591
|
/**
|
|
1582
1592
|
* Инициализирует экземпляр класса {@link Client}.
|
|
1583
1593
|
*
|
|
@@ -1619,7 +1629,7 @@ class ge extends or {
|
|
|
1619
1629
|
* Список менеджеров клиента.
|
|
1620
1630
|
*/
|
|
1621
1631
|
t(this, "managers");
|
|
1622
|
-
this.salesDirection = new x(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
|
|
1632
|
+
this.salesDirection = new x(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 Fe(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new oe(i))) ?? [];
|
|
1623
1633
|
}
|
|
1624
1634
|
}
|
|
1625
1635
|
class re extends M {
|
|
@@ -1646,10 +1656,10 @@ class re extends M {
|
|
|
1646
1656
|
* Данные шаблона прайс-листа.
|
|
1647
1657
|
*/
|
|
1648
1658
|
t(this, "priceTemplate");
|
|
1649
|
-
this.createdAt =
|
|
1659
|
+
this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new he(e == null ? void 0 : e.client), this.priceTemplate = new z(e == null ? void 0 : e.priceTemplate);
|
|
1650
1660
|
}
|
|
1651
1661
|
}
|
|
1652
|
-
class
|
|
1662
|
+
class be extends nr {
|
|
1653
1663
|
/**
|
|
1654
1664
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1655
1665
|
*
|
|
@@ -1661,7 +1671,7 @@ class Te extends nr {
|
|
|
1661
1671
|
* Базовые данные о продукте.
|
|
1662
1672
|
*/
|
|
1663
1673
|
t(this, "product");
|
|
1664
|
-
this.product = new
|
|
1674
|
+
this.product = new k(e == null ? void 0 : e.product);
|
|
1665
1675
|
}
|
|
1666
1676
|
}
|
|
1667
1677
|
class cr extends P {
|
|
@@ -1723,7 +1733,7 @@ class O {
|
|
|
1723
1733
|
* Окончание периода.
|
|
1724
1734
|
*/
|
|
1725
1735
|
t(this, "to");
|
|
1726
|
-
this.from =
|
|
1736
|
+
this.from = w(r == null ? void 0 : r.from) ? v(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = w(r == null ? void 0 : r.to) ? v(r.to) : (r == null ? void 0 : r.to) ?? null;
|
|
1727
1737
|
}
|
|
1728
1738
|
}
|
|
1729
1739
|
class Ot {
|
|
@@ -1786,7 +1796,7 @@ class Ot {
|
|
|
1786
1796
|
return Object.keys(this).forEach((c) => {
|
|
1787
1797
|
const p = this[c];
|
|
1788
1798
|
// eslint-disable-next-line prettier/prettier
|
|
1789
|
-
$(p) ||
|
|
1799
|
+
$(p) || w(p) && p.trim().length === 0 || Ne(p.isNewRec) && p.isNewRec() || (r[c] = p);
|
|
1790
1800
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
|
|
1791
1801
|
}
|
|
1792
1802
|
}
|
|
@@ -1844,7 +1854,7 @@ class He {
|
|
|
1844
1854
|
* Минимальный коэффициент цены.
|
|
1845
1855
|
*/
|
|
1846
1856
|
t(this, "minCoefficient");
|
|
1847
|
-
this.role = new se(r == null ? void 0 : r.role), this.category = new
|
|
1857
|
+
this.role = new se(r == null ? void 0 : r.role), this.category = new ue(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
|
|
1848
1858
|
}
|
|
1849
1859
|
}
|
|
1850
1860
|
class Yr {
|
|
@@ -1880,14 +1890,6 @@ class Xr {
|
|
|
1880
1890
|
* @inheritDoc
|
|
1881
1891
|
*/
|
|
1882
1892
|
t(this, "portalApiUrl");
|
|
1883
|
-
/**
|
|
1884
|
-
* @inheritDoc
|
|
1885
|
-
*/
|
|
1886
|
-
t(this, "priceHistoryApiUrl");
|
|
1887
|
-
/**
|
|
1888
|
-
* @inheritDoc
|
|
1889
|
-
*/
|
|
1890
|
-
t(this, "recommendationsApiUrl");
|
|
1891
1893
|
/**
|
|
1892
1894
|
* @inheritDoc
|
|
1893
1895
|
*/
|
|
@@ -1896,7 +1898,7 @@ class Xr {
|
|
|
1896
1898
|
* @inheritDoc
|
|
1897
1899
|
*/
|
|
1898
1900
|
t(this, "responseDataCacheTimeout");
|
|
1899
|
-
this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.
|
|
1901
|
+
this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
|
|
1900
1902
|
}
|
|
1901
1903
|
}
|
|
1902
1904
|
class Zr {
|
|
@@ -1963,7 +1965,7 @@ class et {
|
|
|
1963
1965
|
* Текущая версия приложения.
|
|
1964
1966
|
*/
|
|
1965
1967
|
t(this, "version");
|
|
1966
|
-
this.date =
|
|
1968
|
+
this.date = w(r == null ? void 0 : r.date) ? v(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";
|
|
1967
1969
|
}
|
|
1968
1970
|
}
|
|
1969
1971
|
class rt {
|
|
@@ -2289,7 +2291,7 @@ class Gt extends h {
|
|
|
2289
2291
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2290
2292
|
}
|
|
2291
2293
|
}
|
|
2292
|
-
class
|
|
2294
|
+
class Ft extends h {
|
|
2293
2295
|
/**
|
|
2294
2296
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2295
2297
|
*
|
|
@@ -2381,7 +2383,7 @@ class jt extends h {
|
|
|
2381
2383
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2382
2384
|
}
|
|
2383
2385
|
}
|
|
2384
|
-
class
|
|
2386
|
+
class jt extends h {
|
|
2385
2387
|
/**
|
|
2386
2388
|
* Возвращает список данных о корневых категориях.
|
|
2387
2389
|
*
|
|
@@ -2441,7 +2443,7 @@ class Ft extends h {
|
|
|
2441
2443
|
showHidden: s,
|
|
2442
2444
|
withPriceCoefficients: e
|
|
2443
2445
|
},
|
|
2444
|
-
(i) =>
|
|
2446
|
+
(i) => ve(i.data, (o) => new k(o))
|
|
2445
2447
|
);
|
|
2446
2448
|
}
|
|
2447
2449
|
/**
|
|
@@ -2483,7 +2485,7 @@ class Mt extends h {
|
|
|
2483
2485
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
2484
2486
|
*/
|
|
2485
2487
|
getProductData(r, e = !1) {
|
|
2486
|
-
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new
|
|
2488
|
+
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new k(s.data));
|
|
2487
2489
|
}
|
|
2488
2490
|
/**
|
|
2489
2491
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -2491,7 +2493,7 @@ class Mt extends h {
|
|
|
2491
2493
|
* @param productId Идентификатор продукта.
|
|
2492
2494
|
*/
|
|
2493
2495
|
getPublicProductData(r) {
|
|
2494
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
2496
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new k(e.data));
|
|
2495
2497
|
}
|
|
2496
2498
|
/**
|
|
2497
2499
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -2504,7 +2506,7 @@ class Mt extends h {
|
|
|
2504
2506
|
return this.get(
|
|
2505
2507
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2506
2508
|
{},
|
|
2507
|
-
(e) =>
|
|
2509
|
+
(e) => ve(e.data, (s) => new qe(s))
|
|
2508
2510
|
);
|
|
2509
2511
|
}
|
|
2510
2512
|
/**
|
|
@@ -2516,7 +2518,7 @@ class Mt extends h {
|
|
|
2516
2518
|
publicSimpleSearch(r, e = 10) {
|
|
2517
2519
|
return new Promise((s, i) => {
|
|
2518
2520
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2519
|
-
s(o.products.map((c) => new
|
|
2521
|
+
s(o.products.map((c) => new k(c)));
|
|
2520
2522
|
}).catch((o) => {
|
|
2521
2523
|
i(o);
|
|
2522
2524
|
});
|
|
@@ -2581,7 +2583,7 @@ class Ht extends h {
|
|
|
2581
2583
|
showHidden: i,
|
|
2582
2584
|
withPriceCoefficients: s
|
|
2583
2585
|
},
|
|
2584
|
-
(o) =>
|
|
2586
|
+
(o) => ve(o.data, (c) => new Q(c))
|
|
2585
2587
|
);
|
|
2586
2588
|
}
|
|
2587
2589
|
}
|
|
@@ -2606,7 +2608,7 @@ class Bt extends h {
|
|
|
2606
2608
|
);
|
|
2607
2609
|
}
|
|
2608
2610
|
}
|
|
2609
|
-
var
|
|
2611
|
+
var je = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(je || {});
|
|
2610
2612
|
class Be {
|
|
2611
2613
|
/**
|
|
2612
2614
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
@@ -2626,7 +2628,7 @@ class Be {
|
|
|
2626
2628
|
* Значение с которым сравнивается поле.
|
|
2627
2629
|
*/
|
|
2628
2630
|
t(this, "value");
|
|
2629
|
-
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ??
|
|
2631
|
+
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? je.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2630
2632
|
}
|
|
2631
2633
|
/**
|
|
2632
2634
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -2638,7 +2640,7 @@ class Be {
|
|
|
2638
2640
|
field: this.field,
|
|
2639
2641
|
op: this.op
|
|
2640
2642
|
};
|
|
2641
|
-
return r.value =
|
|
2643
|
+
return r.value = de(this.value) ? q(this.value, D.getConfig().dateFormats.api) : this.value, r;
|
|
2642
2644
|
}
|
|
2643
2645
|
}
|
|
2644
2646
|
class le {
|
|
@@ -2693,7 +2695,7 @@ class De extends h {
|
|
|
2693
2695
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2694
2696
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2695
2697
|
};
|
|
2696
|
-
return e && (u.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())),
|
|
2698
|
+
return e && (u.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), Pe(s) || (u.sort = J(s) ? s : [s]), o && (u = { ...u, ...o }), this.get(r, u, c, p);
|
|
2697
2699
|
}
|
|
2698
2700
|
}
|
|
2699
2701
|
class zt extends De {
|
|
@@ -2768,7 +2770,7 @@ class zt extends De {
|
|
|
2768
2770
|
return this.get(
|
|
2769
2771
|
`/internal/price/templates/${r}/products`,
|
|
2770
2772
|
{},
|
|
2771
|
-
(e) => e.data.map((s) => new
|
|
2773
|
+
(e) => e.data.map((s) => new be(s))
|
|
2772
2774
|
);
|
|
2773
2775
|
}
|
|
2774
2776
|
/**
|
|
@@ -2780,7 +2782,7 @@ class zt extends De {
|
|
|
2780
2782
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
2781
2783
|
*/
|
|
2782
2784
|
getProductTemplatePrice(r, e) {
|
|
2783
|
-
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new
|
|
2785
|
+
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new be(s.data));
|
|
2784
2786
|
}
|
|
2785
2787
|
/**
|
|
2786
2788
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -2799,7 +2801,7 @@ class zt extends De {
|
|
|
2799
2801
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2800
2802
|
increase_percent: s.value
|
|
2801
2803
|
},
|
|
2802
|
-
(o) => new
|
|
2804
|
+
(o) => new be(o.data)
|
|
2803
2805
|
);
|
|
2804
2806
|
}
|
|
2805
2807
|
/**
|
|
@@ -2824,7 +2826,7 @@ class zt extends De {
|
|
|
2824
2826
|
return this.get(
|
|
2825
2827
|
`/internal/price/templates/${r}/categories`,
|
|
2826
2828
|
{},
|
|
2827
|
-
(e) => e.data.map((s) => new
|
|
2829
|
+
(e) => e.data.map((s) => new Te(s))
|
|
2828
2830
|
);
|
|
2829
2831
|
}
|
|
2830
2832
|
/**
|
|
@@ -2839,7 +2841,7 @@ class zt extends De {
|
|
|
2839
2841
|
return this.get(
|
|
2840
2842
|
`/internal/price/templates/${r}/categories/${e}`,
|
|
2841
2843
|
{},
|
|
2842
|
-
(s) => new
|
|
2844
|
+
(s) => new Te(s.data)
|
|
2843
2845
|
);
|
|
2844
2846
|
}
|
|
2845
2847
|
/**
|
|
@@ -2865,7 +2867,7 @@ class zt extends De {
|
|
|
2865
2867
|
},
|
|
2866
2868
|
params: i ? { recursively: !0 } : {}
|
|
2867
2869
|
},
|
|
2868
|
-
(c) => new
|
|
2870
|
+
(c) => new Te(c.data)
|
|
2869
2871
|
);
|
|
2870
2872
|
}
|
|
2871
2873
|
/**
|
|
@@ -3382,7 +3384,7 @@ function We(n) {
|
|
|
3382
3384
|
}
|
|
3383
3385
|
}), r;
|
|
3384
3386
|
}
|
|
3385
|
-
var tt = /* @__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))(tt || {}),
|
|
3387
|
+
var tt = /* @__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))(tt || {}), d = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(d || {});
|
|
3386
3388
|
class st extends P {
|
|
3387
3389
|
}
|
|
3388
3390
|
class lr extends P {
|
|
@@ -3410,15 +3412,15 @@ class ye extends T {
|
|
|
3410
3412
|
e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
|
|
3411
3413
|
}
|
|
3412
3414
|
}
|
|
3413
|
-
class
|
|
3415
|
+
class F extends P {
|
|
3414
3416
|
/**
|
|
3415
3417
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
3416
3418
|
*/
|
|
3417
3419
|
static generatePersonItem() {
|
|
3418
|
-
return new
|
|
3420
|
+
return new F({
|
|
3419
3421
|
id: 1,
|
|
3420
3422
|
guid: "",
|
|
3421
|
-
slug:
|
|
3423
|
+
slug: d.Person,
|
|
3422
3424
|
name: ""
|
|
3423
3425
|
});
|
|
3424
3426
|
}
|
|
@@ -3468,7 +3470,7 @@ class ke extends M {
|
|
|
3468
3470
|
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ye(e.currency));
|
|
3469
3471
|
}
|
|
3470
3472
|
}
|
|
3471
|
-
class
|
|
3473
|
+
class xe extends T {
|
|
3472
3474
|
/**
|
|
3473
3475
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3474
3476
|
*
|
|
@@ -3487,7 +3489,7 @@ class de extends T {
|
|
|
3487
3489
|
this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
|
|
3488
3490
|
}
|
|
3489
3491
|
}
|
|
3490
|
-
class
|
|
3492
|
+
class j extends xe {
|
|
3491
3493
|
/**
|
|
3492
3494
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3493
3495
|
*
|
|
@@ -3519,7 +3521,7 @@ class F extends de {
|
|
|
3519
3521
|
* Дата и время последнего удаления.
|
|
3520
3522
|
*/
|
|
3521
3523
|
t(this, "deletedAt");
|
|
3522
|
-
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt =
|
|
3524
|
+
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = w(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3523
3525
|
}
|
|
3524
3526
|
}
|
|
3525
3527
|
class hr extends T {
|
|
@@ -3538,7 +3540,7 @@ class hr extends T {
|
|
|
3538
3540
|
/**
|
|
3539
3541
|
* Данные об организационно-правовой форме.
|
|
3540
3542
|
*/
|
|
3541
|
-
t(this, "opf",
|
|
3543
|
+
t(this, "opf", F.generatePersonItem());
|
|
3542
3544
|
/**
|
|
3543
3545
|
* Направление продаж.
|
|
3544
3546
|
*/
|
|
@@ -3580,10 +3582,10 @@ class hr extends T {
|
|
|
3580
3582
|
*/
|
|
3581
3583
|
t(this, "updater");
|
|
3582
3584
|
if (e) {
|
|
3583
|
-
if (this.opf = new
|
|
3585
|
+
if (this.opf = new F(e.opf), this.salesDirection = new x(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e.createdAt, this.creator = e.creator ? new G(e.creator) : void 0, this.updatedAt = w(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new G(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new X(e.partnerGroup)), e.manager && (this.manager = new oe(e.manager)), e.contacts) {
|
|
3584
3586
|
const s = [];
|
|
3585
3587
|
e.contacts.forEach((i) => {
|
|
3586
|
-
s.push(new
|
|
3588
|
+
s.push(new j(i));
|
|
3587
3589
|
}), this.contacts = s;
|
|
3588
3590
|
}
|
|
3589
3591
|
if (e.bankAccounts) {
|
|
@@ -3694,18 +3696,18 @@ class we {
|
|
|
3694
3696
|
*/
|
|
3695
3697
|
static createInstance(r) {
|
|
3696
3698
|
switch (r.opf.slug) {
|
|
3697
|
-
case
|
|
3699
|
+
case d.Ic:
|
|
3698
3700
|
return new gr(r);
|
|
3699
|
-
case
|
|
3701
|
+
case d.UlR:
|
|
3700
3702
|
return new mr(r);
|
|
3701
|
-
case
|
|
3703
|
+
case d.UlNr:
|
|
3702
3704
|
return new ut(r);
|
|
3703
3705
|
default:
|
|
3704
3706
|
return new pt(r);
|
|
3705
3707
|
}
|
|
3706
3708
|
}
|
|
3707
3709
|
}
|
|
3708
|
-
class
|
|
3710
|
+
class _e extends M {
|
|
3709
3711
|
/**
|
|
3710
3712
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
3711
3713
|
*
|
|
@@ -3720,7 +3722,7 @@ class be extends M {
|
|
|
3720
3722
|
this.isPrimary = e.isPrimary;
|
|
3721
3723
|
}
|
|
3722
3724
|
}
|
|
3723
|
-
class ht extends
|
|
3725
|
+
class ht extends j {
|
|
3724
3726
|
/**
|
|
3725
3727
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3726
3728
|
*
|
|
@@ -3745,7 +3747,7 @@ class ht extends F {
|
|
|
3745
3747
|
*/
|
|
3746
3748
|
addresses: []
|
|
3747
3749
|
});
|
|
3748
|
-
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new
|
|
3750
|
+
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new _e(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new _e(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new _e(s))));
|
|
3749
3751
|
}
|
|
3750
3752
|
}
|
|
3751
3753
|
class Ce extends Er {
|
|
@@ -3785,10 +3787,10 @@ class Ce extends Er {
|
|
|
3785
3787
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
3786
3788
|
*/
|
|
3787
3789
|
t(this, "isTransportCompanyAddress");
|
|
3788
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new sr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new
|
|
3790
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new sr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new j(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;
|
|
3789
3791
|
}
|
|
3790
3792
|
}
|
|
3791
|
-
class Ee extends
|
|
3793
|
+
class Ee extends he {
|
|
3792
3794
|
/**
|
|
3793
3795
|
* Инициализирует экземпляр класса {@link Client}.
|
|
3794
3796
|
*
|
|
@@ -3842,7 +3844,7 @@ class Ee extends ge {
|
|
|
3842
3844
|
* Дополнительные данные о клиенте.
|
|
3843
3845
|
*/
|
|
3844
3846
|
t(this, "extraData");
|
|
3845
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => we.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new X(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new
|
|
3847
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => we.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new X(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new j(p))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((p) => new Ce(p))) ?? [], this.channelPrimaryInterest = new lr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new ur(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new ae(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
3846
3848
|
}
|
|
3847
3849
|
}
|
|
3848
3850
|
class Jt {
|
|
@@ -3941,7 +3943,7 @@ class Jt {
|
|
|
3941
3943
|
*/
|
|
3942
3944
|
t(this, "lastOrder");
|
|
3943
3945
|
var e, s, i, o, c, p;
|
|
3944
|
-
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((u) => new
|
|
3946
|
+
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((u) => new Fe(u)), this.region = new ce(r == null ? void 0 : r.region), this.country = new Y(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new O(r == null ? void 0 : r.createdAt), this.lastLoginDate = new O(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((u) => new Ae(u)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((u) => new x(u)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new F(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new K(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((u) => new X(u)), this.contact = new xe(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
3945
3947
|
createdAt: new O((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
|
|
3946
3948
|
creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
|
|
3947
3949
|
isApproved: (p = r == null ? void 0 : r.lastOrder) == null ? void 0 : p.isApproved
|
|
@@ -3991,7 +3993,7 @@ class Jt {
|
|
|
3991
3993
|
this.salesDirections = [];
|
|
3992
3994
|
break;
|
|
3993
3995
|
case "contragentType":
|
|
3994
|
-
this.contragentType = new
|
|
3996
|
+
this.contragentType = new F();
|
|
3995
3997
|
break;
|
|
3996
3998
|
case "preferredDeliveryType":
|
|
3997
3999
|
this.preferredDeliveryType = new K();
|
|
@@ -4000,7 +4002,7 @@ class Jt {
|
|
|
4000
4002
|
this.partnerGroups = [];
|
|
4001
4003
|
break;
|
|
4002
4004
|
case "contact":
|
|
4003
|
-
this.contact = new
|
|
4005
|
+
this.contact = new xe();
|
|
4004
4006
|
break;
|
|
4005
4007
|
}
|
|
4006
4008
|
return this;
|
|
@@ -4015,7 +4017,7 @@ class Jt {
|
|
|
4015
4017
|
return Object.keys(this).forEach((c) => {
|
|
4016
4018
|
const p = this[c];
|
|
4017
4019
|
// eslint-disable-next-line prettier/prettier
|
|
4018
|
-
$(p) ||
|
|
4020
|
+
$(p) || w(p) && p.trim().length === 0 || Ne(p.isNewRec) && p.isNewRec() || (r[c] = p);
|
|
4019
4021
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.lastLoginDate) != null && i.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
|
|
4020
4022
|
}
|
|
4021
4023
|
}
|
|
@@ -4039,7 +4041,7 @@ class fr extends M {
|
|
|
4039
4041
|
* Признак того, что заказ подтвержден в 1С.
|
|
4040
4042
|
*/
|
|
4041
4043
|
t(this, "isApproved1c");
|
|
4042
|
-
this.createdAt =
|
|
4044
|
+
this.createdAt = w(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new G(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
4043
4045
|
}
|
|
4044
4046
|
}
|
|
4045
4047
|
class gt extends T {
|
|
@@ -4075,7 +4077,7 @@ class gt extends T {
|
|
|
4075
4077
|
* Список менеджеров.
|
|
4076
4078
|
*/
|
|
4077
4079
|
t(this, "managers");
|
|
4078
|
-
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new
|
|
4080
|
+
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new j(o))), e.lastOrder && (this.lastOrder = new fr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new X(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new x(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new oe(o)));
|
|
4079
4081
|
}
|
|
4080
4082
|
}
|
|
4081
4083
|
class mt {
|
|
@@ -4168,7 +4170,7 @@ class Yt extends De {
|
|
|
4168
4170
|
getClientsList(r, e, s, i) {
|
|
4169
4171
|
return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
|
|
4170
4172
|
const c = { ...o.data };
|
|
4171
|
-
return c.data = c.data.map((p) => new
|
|
4173
|
+
return c.data = c.data.map((p) => new he(p)), c;
|
|
4172
4174
|
});
|
|
4173
4175
|
}
|
|
4174
4176
|
/**
|
|
@@ -4181,7 +4183,7 @@ class Yt extends De {
|
|
|
4181
4183
|
return this.getClientsList({
|
|
4182
4184
|
groupOp: "and",
|
|
4183
4185
|
groups: [],
|
|
4184
|
-
filters: [{ field: "phone", op:
|
|
4186
|
+
filters: [{ field: "phone", op: je.Contains, value: r }]
|
|
4185
4187
|
});
|
|
4186
4188
|
}
|
|
4187
4189
|
/**
|
|
@@ -4347,17 +4349,17 @@ class Yt extends De {
|
|
|
4347
4349
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
|
|
4348
4350
|
*/
|
|
4349
4351
|
createContragentClientData(r, e, s = {}) {
|
|
4350
|
-
var u,
|
|
4352
|
+
var u, f, m, S, I, b, _, N;
|
|
4351
4353
|
let i;
|
|
4352
4354
|
const o = e, c = e, p = e;
|
|
4353
4355
|
switch (e.opf.slug) {
|
|
4354
|
-
case
|
|
4356
|
+
case d.Ic:
|
|
4355
4357
|
i = {
|
|
4356
4358
|
opf: o.opf.slug,
|
|
4357
4359
|
name: o.name,
|
|
4358
4360
|
alternative_name: o.alternativeName,
|
|
4359
4361
|
partner_group_id: (u = o.partnerGroup) == null ? void 0 : u.id,
|
|
4360
|
-
manager_id: (
|
|
4362
|
+
manager_id: (f = o.manager) == null ? void 0 : f.id,
|
|
4361
4363
|
comment: o.comment,
|
|
4362
4364
|
inn: o.inn,
|
|
4363
4365
|
okpo: o.okpo,
|
|
@@ -4369,12 +4371,12 @@ class Yt extends De {
|
|
|
4369
4371
|
actual_address: o.actualAddress
|
|
4370
4372
|
};
|
|
4371
4373
|
break;
|
|
4372
|
-
case
|
|
4374
|
+
case d.UlR:
|
|
4373
4375
|
i = {
|
|
4374
4376
|
opf: c.opf.slug,
|
|
4375
4377
|
name: c.name,
|
|
4376
4378
|
alternative_name: c.alternativeName,
|
|
4377
|
-
partner_group_id: (
|
|
4379
|
+
partner_group_id: (m = c.partnerGroup) == null ? void 0 : m.id,
|
|
4378
4380
|
manager_id: (S = c.manager) == null ? void 0 : S.id,
|
|
4379
4381
|
comment: c.comment,
|
|
4380
4382
|
inn: c.inn,
|
|
@@ -4388,7 +4390,7 @@ class Yt extends De {
|
|
|
4388
4390
|
actual_address: c.actualAddress
|
|
4389
4391
|
};
|
|
4390
4392
|
break;
|
|
4391
|
-
case
|
|
4393
|
+
case d.UlNr:
|
|
4392
4394
|
i = {
|
|
4393
4395
|
opf: p.opf.slug,
|
|
4394
4396
|
name: p.name,
|
|
@@ -4436,17 +4438,17 @@ class Yt extends De {
|
|
|
4436
4438
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
|
|
4437
4439
|
*/
|
|
4438
4440
|
updateContragentClientData(r, e, s = {}) {
|
|
4439
|
-
var u,
|
|
4441
|
+
var u, f, m, S, I, b, _, N;
|
|
4440
4442
|
let i;
|
|
4441
4443
|
const o = e, c = e, p = e;
|
|
4442
4444
|
switch (e.opf.slug) {
|
|
4443
|
-
case
|
|
4445
|
+
case d.Ic:
|
|
4444
4446
|
i = {
|
|
4445
4447
|
opf: o.opf.slug,
|
|
4446
4448
|
name: o.name,
|
|
4447
4449
|
alternative_name: o.alternativeName,
|
|
4448
4450
|
partner_group_id: (u = o.partnerGroup) == null ? void 0 : u.id,
|
|
4449
|
-
manager_id: (
|
|
4451
|
+
manager_id: (f = o.manager) == null ? void 0 : f.id,
|
|
4450
4452
|
comment: o.comment,
|
|
4451
4453
|
inn: o.inn,
|
|
4452
4454
|
okpo: o.okpo,
|
|
@@ -4458,12 +4460,12 @@ class Yt extends De {
|
|
|
4458
4460
|
actual_address: o.actualAddress
|
|
4459
4461
|
};
|
|
4460
4462
|
break;
|
|
4461
|
-
case
|
|
4463
|
+
case d.UlR:
|
|
4462
4464
|
i = {
|
|
4463
4465
|
opf: c.opf.slug,
|
|
4464
4466
|
name: c.name,
|
|
4465
4467
|
alternative_name: c.alternativeName,
|
|
4466
|
-
partner_group_id: (
|
|
4468
|
+
partner_group_id: (m = c.partnerGroup) == null ? void 0 : m.id,
|
|
4467
4469
|
manager_id: (S = c.manager) == null ? void 0 : S.id,
|
|
4468
4470
|
comment: c.comment,
|
|
4469
4471
|
inn: c.inn,
|
|
@@ -4477,7 +4479,7 @@ class Yt extends De {
|
|
|
4477
4479
|
actual_address: c.actualAddress
|
|
4478
4480
|
};
|
|
4479
4481
|
break;
|
|
4480
|
-
case
|
|
4482
|
+
case d.UlNr:
|
|
4481
4483
|
i = {
|
|
4482
4484
|
opf: p.opf.slug,
|
|
4483
4485
|
name: p.name,
|
|
@@ -4700,7 +4702,7 @@ class Yt extends De {
|
|
|
4700
4702
|
comment: e.comment,
|
|
4701
4703
|
not_disturb: e.notDisturb
|
|
4702
4704
|
},
|
|
4703
|
-
(i) => new
|
|
4705
|
+
(i) => new j(i.data),
|
|
4704
4706
|
s
|
|
4705
4707
|
);
|
|
4706
4708
|
}
|
|
@@ -4843,7 +4845,7 @@ class Yt extends De {
|
|
|
4843
4845
|
comment: e.comment,
|
|
4844
4846
|
...s
|
|
4845
4847
|
};
|
|
4846
|
-
return (c = e.phone) != null && c.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (u) => new
|
|
4848
|
+
return (c = e.phone) != null && c.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (u) => new j(u.data), i);
|
|
4847
4849
|
}
|
|
4848
4850
|
/**
|
|
4849
4851
|
* Устанавливает признак основного контактного лица.
|
|
@@ -4919,10 +4921,10 @@ const E = class E extends h {
|
|
|
4919
4921
|
*/
|
|
4920
4922
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
4921
4923
|
getTypedDataArrayRequester(e, s, i = !1, o = {}) {
|
|
4922
|
-
const c = s + (
|
|
4924
|
+
const c = s + (Pe(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? E.getCachedResponse(c) : void 0;
|
|
4923
4925
|
return p ? Promise.resolve(p) : this.get(s, o).then((u) => {
|
|
4924
|
-
const
|
|
4925
|
-
return i &&
|
|
4926
|
+
const f = u.map((m) => Ue.instanceInitializer(e, m));
|
|
4927
|
+
return i && f && this.cacheResponse(s, f), f;
|
|
4926
4928
|
});
|
|
4927
4929
|
}
|
|
4928
4930
|
};
|
|
@@ -4973,7 +4975,7 @@ class Zt extends h {
|
|
|
4973
4975
|
const i = this.get(
|
|
4974
4976
|
`internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.configurator}/product`,
|
|
4975
4977
|
{ params: e },
|
|
4976
|
-
(c) => new
|
|
4978
|
+
(c) => new k(c.data)
|
|
4977
4979
|
);
|
|
4978
4980
|
return i.catch((c) => {
|
|
4979
4981
|
this.errorResponseHandler(c, s);
|
|
@@ -5021,13 +5023,13 @@ class es {
|
|
|
5021
5023
|
* Возвращает диапазон дат по умолчанию.
|
|
5022
5024
|
*/
|
|
5023
5025
|
static defaultDateRanges() {
|
|
5024
|
-
const r =
|
|
5026
|
+
const r = dr(/* @__PURE__ */ new Date(), 1);
|
|
5025
5027
|
return {
|
|
5026
5028
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5027
5029
|
nextWorkingDay: { label: "Следующий рабочий день", from: Ur(r), to: qr(r) },
|
|
5028
5030
|
today: { label: "Сегодня", from: er(), to: Or() },
|
|
5029
5031
|
yesterday: { label: "Вчера", from: Nr(), to: xr() },
|
|
5030
|
-
tomorrow: { label: "Завтра", from:
|
|
5032
|
+
tomorrow: { label: "Завтра", from: kr(), to: Lr() }
|
|
5031
5033
|
};
|
|
5032
5034
|
}
|
|
5033
5035
|
}
|
|
@@ -5107,7 +5109,7 @@ class yr extends fr {
|
|
|
5107
5109
|
* @param data Данные для первоначальной инициализации.
|
|
5108
5110
|
*/
|
|
5109
5111
|
constructor(e) {
|
|
5110
|
-
var s, i, o, c, p, u,
|
|
5112
|
+
var s, i, o, c, p, u, f, m;
|
|
5111
5113
|
super(e);
|
|
5112
5114
|
/**
|
|
5113
5115
|
* Краткие данные о клиенте.
|
|
@@ -5149,16 +5151,16 @@ class yr extends fr {
|
|
|
5149
5151
|
* Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
|
|
5150
5152
|
*/
|
|
5151
5153
|
t(this, "isNotInStock");
|
|
5152
|
-
this.client = new
|
|
5154
|
+
this.client = new he(e == null ? void 0 : e.client), this.payment = {
|
|
5153
5155
|
type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
|
|
5154
5156
|
status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
|
|
5155
5157
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
5156
5158
|
}, this.delivery = {
|
|
5157
5159
|
type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
|
|
5158
|
-
date:
|
|
5159
|
-
address: (
|
|
5160
|
-
warehouse: (
|
|
5161
|
-
}, this.attachedUser = new G(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new x(e == null ? void 0 : e.salesDirection), this.pendingAt =
|
|
5160
|
+
date: w((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? v(e.delivery.date) : ((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ?? /* @__PURE__ */ new Date(),
|
|
5161
|
+
address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new Ce(e.delivery.address) : void 0,
|
|
5162
|
+
warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new ae(e.delivery.warehouse) : void 0
|
|
5163
|
+
}, this.attachedUser = new G(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new x(e == null ? void 0 : e.salesDirection), this.pendingAt = w(e == null ? void 0 : e.pendingAt) ? v(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = w(e == null ? void 0 : e.processedAt) ? v(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
|
|
5162
5164
|
}
|
|
5163
5165
|
}
|
|
5164
5166
|
class yt extends M {
|
|
@@ -5321,7 +5323,7 @@ class ts extends De {
|
|
|
5321
5323
|
return this.get(`/internal/orders/${r}`, {}, (e) => new wt(e.data));
|
|
5322
5324
|
}
|
|
5323
5325
|
}
|
|
5324
|
-
class
|
|
5326
|
+
class Se {
|
|
5325
5327
|
/**
|
|
5326
5328
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
5327
5329
|
*
|
|
@@ -5348,10 +5350,10 @@ class _e {
|
|
|
5348
5350
|
* Источник клиентской цены.
|
|
5349
5351
|
*/
|
|
5350
5352
|
t(this, "source");
|
|
5351
|
-
this.client = new
|
|
5353
|
+
this.client = new he(r == null ? void 0 : r.client), this.product = new k(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Ge.Product;
|
|
5352
5354
|
}
|
|
5353
5355
|
}
|
|
5354
|
-
const
|
|
5356
|
+
const Ie = (n) => {
|
|
5355
5357
|
var r, e, s, i, o;
|
|
5356
5358
|
return n ? Xe(
|
|
5357
5359
|
{
|
|
@@ -5362,7 +5364,7 @@ const Se = (n) => {
|
|
|
5362
5364
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
5363
5365
|
hideNotActive: n.hideNotActive
|
|
5364
5366
|
},
|
|
5365
|
-
(c) => $(c) || (J(c) || Ze(c)) &&
|
|
5367
|
+
(c) => $(c) || (J(c) || Ze(c)) && Pe(c)
|
|
5366
5368
|
) : {};
|
|
5367
5369
|
}, Je = (n) => {
|
|
5368
5370
|
const r = {};
|
|
@@ -5383,9 +5385,9 @@ class ss extends h {
|
|
|
5383
5385
|
`/internal/price/products/${r}/analyze`,
|
|
5384
5386
|
{
|
|
5385
5387
|
...Je(e),
|
|
5386
|
-
filters:
|
|
5388
|
+
filters: Ie(s)
|
|
5387
5389
|
},
|
|
5388
|
-
(i) => i.data.map((o) => new
|
|
5390
|
+
(i) => i.data.map((o) => new Se(o))
|
|
5389
5391
|
);
|
|
5390
5392
|
}
|
|
5391
5393
|
/**
|
|
@@ -5402,9 +5404,9 @@ class ss extends h {
|
|
|
5402
5404
|
`/internal/price/categories/${r}/analyze`,
|
|
5403
5405
|
{
|
|
5404
5406
|
...Je(e),
|
|
5405
|
-
filters:
|
|
5407
|
+
filters: Ie(s)
|
|
5406
5408
|
},
|
|
5407
|
-
(i) => i.data.map((o) => new
|
|
5409
|
+
(i) => i.data.map((o) => new Se(o))
|
|
5408
5410
|
);
|
|
5409
5411
|
}
|
|
5410
5412
|
/**
|
|
@@ -5423,9 +5425,9 @@ class ss extends h {
|
|
|
5423
5425
|
`/internal/price/categories/${r}/analyze/square`,
|
|
5424
5426
|
{
|
|
5425
5427
|
...e,
|
|
5426
|
-
filters:
|
|
5428
|
+
filters: Ie(s)
|
|
5427
5429
|
},
|
|
5428
|
-
(i) => i.data.map((o) => new
|
|
5430
|
+
(i) => i.data.map((o) => new Se(o))
|
|
5429
5431
|
);
|
|
5430
5432
|
}
|
|
5431
5433
|
}
|
|
@@ -5476,7 +5478,7 @@ class Ct {
|
|
|
5476
5478
|
* @inheritDoc
|
|
5477
5479
|
*/
|
|
5478
5480
|
t(this, "currency");
|
|
5479
|
-
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate =
|
|
5481
|
+
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = w(r.costDate) ? v(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ne(r.product) : void 0, this.client = r.client ? new G(r.client) : void 0, this.executor = r.executor ? new G(r.executor) : void 0, this.currency = r.currency ? new ye(r.currency) : void 0;
|
|
5480
5482
|
}
|
|
5481
5483
|
}
|
|
5482
5484
|
class vt extends ne {
|
|
@@ -5491,16 +5493,10 @@ class vt extends ne {
|
|
|
5491
5493
|
* @inheritDoc
|
|
5492
5494
|
*/
|
|
5493
5495
|
t(this, "history");
|
|
5494
|
-
this.history =
|
|
5496
|
+
this.history = ve(e.history, (s) => new Ct(s));
|
|
5495
5497
|
}
|
|
5496
5498
|
}
|
|
5497
5499
|
class is extends h {
|
|
5498
|
-
/**
|
|
5499
|
-
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
5500
|
-
*/
|
|
5501
|
-
constructor() {
|
|
5502
|
-
super(), this.baseUrl = `${D.getConfig().http.priceHistoryApiUrl ?? ""}/api`;
|
|
5503
|
-
}
|
|
5504
5500
|
/**
|
|
5505
5501
|
* Возвращает данные об истории изменения цен.
|
|
5506
5502
|
*
|
|
@@ -5509,17 +5505,19 @@ class is extends h {
|
|
|
5509
5505
|
* @see /docs/api#/operations/api_internal_price_history_get
|
|
5510
5506
|
*/
|
|
5511
5507
|
getProductPriceHistory(r) {
|
|
5512
|
-
var
|
|
5508
|
+
var o, c, p, u, f;
|
|
5513
5509
|
const e = D.getConfig().dateFormats.api, s = Xe(
|
|
5514
|
-
|
|
5510
|
+
me(r, {
|
|
5515
5511
|
costDate: {
|
|
5516
|
-
from:
|
|
5517
|
-
to:
|
|
5512
|
+
from: de((o = r.costDate) == null ? void 0 : o.from) ? q(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
5513
|
+
to: de((p = r.costDate) == null ? void 0 : p.to) ? q(r.costDate.to, e) : (u = r.costDate) == null ? void 0 : u.to
|
|
5518
5514
|
}
|
|
5519
5515
|
}),
|
|
5520
|
-
(
|
|
5521
|
-
);
|
|
5522
|
-
return this.get(
|
|
5516
|
+
(m) => $(m) || (J(m) || Ze(m)) && Pe(m)
|
|
5517
|
+
), i = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
|
|
5518
|
+
return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((m) => [
|
|
5519
|
+
new vt(me(m[0], { history: m }))
|
|
5520
|
+
]);
|
|
5523
5521
|
}
|
|
5524
5522
|
}
|
|
5525
5523
|
class Ke {
|
|
@@ -5541,12 +5539,6 @@ class Ke {
|
|
|
5541
5539
|
}
|
|
5542
5540
|
}
|
|
5543
5541
|
class ns extends h {
|
|
5544
|
-
/**
|
|
5545
|
-
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
5546
|
-
*/
|
|
5547
|
-
constructor() {
|
|
5548
|
-
super(), this.baseUrl = `${D.getConfig().http.recommendationsApiUrl ?? ""}/api`;
|
|
5549
|
-
}
|
|
5550
5542
|
/**
|
|
5551
5543
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
5552
5544
|
*
|
|
@@ -5554,7 +5546,7 @@ class ns extends h {
|
|
|
5554
5546
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
5555
5547
|
*/
|
|
5556
5548
|
getProductCategoryRecommendations(r) {
|
|
5557
|
-
return this.get(`/internal/recommendations/categories/${r.id}`, {}, (e) => new Ke(e.data));
|
|
5549
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Ke(e.data));
|
|
5558
5550
|
}
|
|
5559
5551
|
/**
|
|
5560
5552
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -5563,7 +5555,7 @@ class ns extends h {
|
|
|
5563
5555
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
5564
5556
|
*/
|
|
5565
5557
|
getProductRecommendations(r) {
|
|
5566
|
-
return this.get(`/internal/recommendations/products/${r.id}`, {}, (e) => new Ke(e.data));
|
|
5558
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Ke(e.data));
|
|
5567
5559
|
}
|
|
5568
5560
|
/**
|
|
5569
5561
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -5573,7 +5565,7 @@ class ns extends h {
|
|
|
5573
5565
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_save
|
|
5574
5566
|
*/
|
|
5575
5567
|
saveProductCategoryRecommendations(r, e) {
|
|
5576
|
-
return this.post(`/internal/recommendations/categories/${r.id}`, {
|
|
5568
|
+
return this.post(`/internal/catalog/recommendations/categories/${r.id}`, {
|
|
5577
5569
|
product_categories: e.productCategories.map((s) => s.id),
|
|
5578
5570
|
products: e.products.map((s) => s.id)
|
|
5579
5571
|
});
|
|
@@ -5586,13 +5578,13 @@ class ns extends h {
|
|
|
5586
5578
|
* @see /docs/api#/operations/api_internal_recommendations_product_save
|
|
5587
5579
|
*/
|
|
5588
5580
|
saveProductRecommendations(r, e) {
|
|
5589
|
-
return this.post(`/internal/recommendations/products/${r.id}`, {
|
|
5581
|
+
return this.post(`/internal/catalog/recommendations/products/${r.id}`, {
|
|
5590
5582
|
product_categories: e.productCategories.map((s) => s.id),
|
|
5591
5583
|
products: e.products.map((s) => s.id)
|
|
5592
5584
|
});
|
|
5593
5585
|
}
|
|
5594
5586
|
}
|
|
5595
|
-
class
|
|
5587
|
+
class A extends pe {
|
|
5596
5588
|
/**
|
|
5597
5589
|
* Возвращает {@link Promise} для получения данных указанного справочника.
|
|
5598
5590
|
*
|
|
@@ -5633,7 +5625,7 @@ class a extends pe {
|
|
|
5633
5625
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
5634
5626
|
*/
|
|
5635
5627
|
getOpf() {
|
|
5636
|
-
return this.getTypedDataArrayRequester(
|
|
5628
|
+
return this.getTypedDataArrayRequester(F, "/public/references/opf", !0);
|
|
5637
5629
|
}
|
|
5638
5630
|
/**
|
|
5639
5631
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
@@ -5677,7 +5669,7 @@ class a extends pe {
|
|
|
5677
5669
|
* @param term Терм поиска.
|
|
5678
5670
|
*/
|
|
5679
5671
|
searchCity(r) {
|
|
5680
|
-
return this.getTypedDataArrayRequester(
|
|
5672
|
+
return this.getTypedDataArrayRequester(Fe, `/internal/references/city-with-region-and-country/search?term=${r}`);
|
|
5681
5673
|
}
|
|
5682
5674
|
/**
|
|
5683
5675
|
* Выполняет поиск данных о регионах по терму в названии.
|
|
@@ -5705,7 +5697,7 @@ class a extends pe {
|
|
|
5705
5697
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
5706
5698
|
*/
|
|
5707
5699
|
getWarehouses() {
|
|
5708
|
-
return this.getTypedDataArrayRequester(
|
|
5700
|
+
return this.getTypedDataArrayRequester(ae, "/public/references/warehouse", !0);
|
|
5709
5701
|
}
|
|
5710
5702
|
/**
|
|
5711
5703
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
@@ -5717,7 +5709,7 @@ class a extends pe {
|
|
|
5717
5709
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
5718
5710
|
*/
|
|
5719
5711
|
getPriceCoefficients() {
|
|
5720
|
-
return this.getTypedDataArrayRequester(
|
|
5712
|
+
return this.getTypedDataArrayRequester(Re, "/internal/references/price-coefficient", !0);
|
|
5721
5713
|
}
|
|
5722
5714
|
/**
|
|
5723
5715
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
@@ -5726,8 +5718,8 @@ class a extends pe {
|
|
|
5726
5718
|
return this.getTypedDataArrayRequester(lt, "/public/references/product-file-type", !0);
|
|
5727
5719
|
}
|
|
5728
5720
|
}
|
|
5729
|
-
const
|
|
5730
|
-
const n =
|
|
5721
|
+
const a = Z("__references_private", () => {
|
|
5722
|
+
const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), p = y(void 0), u = y(void 0), f = y(void 0), m = y(void 0), S = y(void 0), I = y(void 0), b = y(void 0), _ = y(void 0), N = y(void 0), U = y(void 0), l = y(void 0);
|
|
5731
5723
|
return {
|
|
5732
5724
|
/**
|
|
5733
5725
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5768,11 +5760,11 @@ const A = Z("__references_private", () => {
|
|
|
5768
5760
|
/**
|
|
5769
5761
|
* Справочник типов оплаты заказов.
|
|
5770
5762
|
*/
|
|
5771
|
-
paymentTypeReference:
|
|
5763
|
+
paymentTypeReference: f,
|
|
5772
5764
|
/**
|
|
5773
5765
|
* Справочник групп партнеров.
|
|
5774
5766
|
*/
|
|
5775
|
-
partnerGroupReference:
|
|
5767
|
+
partnerGroupReference: m,
|
|
5776
5768
|
/**
|
|
5777
5769
|
* Справочник типов файлов продукктов/категорий.
|
|
5778
5770
|
*/
|
|
@@ -5804,90 +5796,90 @@ const A = Z("__references_private", () => {
|
|
|
5804
5796
|
};
|
|
5805
5797
|
}), os = Z("references", () => {
|
|
5806
5798
|
const n = R(() => {
|
|
5807
|
-
const l =
|
|
5808
|
-
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(
|
|
5799
|
+
const l = a();
|
|
5800
|
+
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(A).getChannelPrimaryInterest().then((g) => {
|
|
5809
5801
|
l.channelPrimaryInterestReference = g;
|
|
5810
|
-
}).catch(
|
|
5802
|
+
}).catch(C)), l.channelPrimaryInterestReference;
|
|
5811
5803
|
}), r = R(() => {
|
|
5812
|
-
const l =
|
|
5813
|
-
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(
|
|
5804
|
+
const l = a();
|
|
5805
|
+
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(A).getContactPositions().then((g) => {
|
|
5814
5806
|
l.contactPositionsReference = g;
|
|
5815
|
-
}).catch(
|
|
5807
|
+
}).catch(C)), l.contactPositionsReference;
|
|
5816
5808
|
}), e = R(() => {
|
|
5817
|
-
const l =
|
|
5818
|
-
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(
|
|
5809
|
+
const l = a();
|
|
5810
|
+
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(A).getCurrency().then((g) => {
|
|
5819
5811
|
l.currencyReference = g;
|
|
5820
|
-
}).catch(
|
|
5812
|
+
}).catch(C)), l.currencyReference;
|
|
5821
5813
|
}), s = R(() => {
|
|
5822
|
-
const l =
|
|
5823
|
-
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(
|
|
5814
|
+
const l = a();
|
|
5815
|
+
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(A).getOpf().then((g) => {
|
|
5824
5816
|
l.opfReference = g;
|
|
5825
|
-
}).catch(
|
|
5817
|
+
}).catch(C)), l.opfReference;
|
|
5826
5818
|
}), i = R(() => {
|
|
5827
|
-
const l =
|
|
5828
|
-
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(
|
|
5819
|
+
const l = a();
|
|
5820
|
+
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(A).getOrderPaymentStatuses().then((g) => {
|
|
5829
5821
|
l.orderPaymentStatusReference = g;
|
|
5830
|
-
}).catch(
|
|
5822
|
+
}).catch(C)), l.orderPaymentStatusReference;
|
|
5831
5823
|
}), o = R(() => {
|
|
5832
|
-
const l =
|
|
5833
|
-
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(
|
|
5824
|
+
const l = a();
|
|
5825
|
+
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(A).getOrderStatuses().then((g) => {
|
|
5834
5826
|
l.orderStatusReference = g;
|
|
5835
|
-
}).catch(
|
|
5827
|
+
}).catch(C)), l.orderStatusReference;
|
|
5836
5828
|
}), c = R(() => {
|
|
5837
|
-
const l =
|
|
5838
|
-
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(
|
|
5829
|
+
const l = a();
|
|
5830
|
+
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(A).getPaymentTypes().then((g) => {
|
|
5839
5831
|
l.paymentTypeReference = g;
|
|
5840
|
-
}).catch(
|
|
5832
|
+
}).catch(C)), l.paymentTypeReference;
|
|
5841
5833
|
}), p = R(() => {
|
|
5842
|
-
const l =
|
|
5843
|
-
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(
|
|
5834
|
+
const l = a();
|
|
5835
|
+
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(A).getPartnerGroup().then((g) => {
|
|
5844
5836
|
l.partnerGroupReference = g;
|
|
5845
|
-
}).catch(
|
|
5837
|
+
}).catch(C)), l.partnerGroupReference;
|
|
5846
5838
|
}), u = R(() => {
|
|
5847
|
-
const l =
|
|
5848
|
-
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(
|
|
5839
|
+
const l = a();
|
|
5840
|
+
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(A).getProductFileType().then((g) => {
|
|
5849
5841
|
l.productFileTypeReference = g;
|
|
5850
|
-
}).catch(
|
|
5851
|
-
}),
|
|
5852
|
-
const l =
|
|
5853
|
-
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(
|
|
5842
|
+
}).catch(C)), l.productFileTypeReference;
|
|
5843
|
+
}), f = R(() => {
|
|
5844
|
+
const l = a();
|
|
5845
|
+
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(A).getResourceTypes().then((g) => {
|
|
5854
5846
|
l.resourceTypesReference = g;
|
|
5855
|
-
}).catch(
|
|
5856
|
-
}),
|
|
5857
|
-
const l =
|
|
5858
|
-
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(
|
|
5847
|
+
}).catch(C)), l.resourceTypesReference;
|
|
5848
|
+
}), m = R(() => {
|
|
5849
|
+
const l = a();
|
|
5850
|
+
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(A).getSalesDirections().then((g) => {
|
|
5859
5851
|
l.salesDirectionsReference = g;
|
|
5860
|
-
}).catch(
|
|
5852
|
+
}).catch(C)), l.salesDirectionsReference;
|
|
5861
5853
|
}), S = R(() => {
|
|
5862
|
-
const l =
|
|
5863
|
-
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(
|
|
5854
|
+
const l = a();
|
|
5855
|
+
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(A).getSourcePrimaryInterest().then((g) => {
|
|
5864
5856
|
l.sourcePrimaryInterestReference = g;
|
|
5865
|
-
}).catch(
|
|
5857
|
+
}).catch(C)), l.sourcePrimaryInterestReference;
|
|
5866
5858
|
}), I = R(() => {
|
|
5867
|
-
const l =
|
|
5868
|
-
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(
|
|
5859
|
+
const l = a();
|
|
5860
|
+
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(A).getDeliveryTypes().then((g) => {
|
|
5869
5861
|
l.deliveryTypeReference = g;
|
|
5870
|
-
}).catch(
|
|
5862
|
+
}).catch(C)), l.deliveryTypeReference;
|
|
5871
5863
|
}), b = R(() => {
|
|
5872
|
-
const l =
|
|
5864
|
+
const l = a();
|
|
5873
5865
|
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(ft).getManagers().then((g) => {
|
|
5874
5866
|
l.managersList = g;
|
|
5875
|
-
}).catch(
|
|
5867
|
+
}).catch(C)), l.managersList;
|
|
5876
5868
|
}), _ = R(() => {
|
|
5877
|
-
const l =
|
|
5878
|
-
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(
|
|
5869
|
+
const l = a();
|
|
5870
|
+
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(A).getWarehouses().then((g) => {
|
|
5879
5871
|
l.warehousesReference = g;
|
|
5880
|
-
}).catch(
|
|
5872
|
+
}).catch(C)), l.warehousesReference;
|
|
5881
5873
|
}), N = R(() => {
|
|
5882
|
-
const l =
|
|
5883
|
-
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(
|
|
5874
|
+
const l = a();
|
|
5875
|
+
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(A).getPropertyTypes().then((g) => {
|
|
5884
5876
|
l.propertyTypesReference = g;
|
|
5885
|
-
}).catch(
|
|
5877
|
+
}).catch(C)), l.propertyTypesReference;
|
|
5886
5878
|
}), U = R(() => {
|
|
5887
|
-
const l =
|
|
5888
|
-
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(
|
|
5879
|
+
const l = a();
|
|
5880
|
+
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(A).getPriceCoefficients().then((g) => {
|
|
5889
5881
|
l.priceCoefficientsReference = g;
|
|
5890
|
-
}).catch(
|
|
5882
|
+
}).catch(C)), l.priceCoefficientsReference;
|
|
5891
5883
|
});
|
|
5892
5884
|
return {
|
|
5893
5885
|
/**
|
|
@@ -5929,11 +5921,11 @@ const A = Z("__references_private", () => {
|
|
|
5929
5921
|
/**
|
|
5930
5922
|
* Справочник типов ресурсов.
|
|
5931
5923
|
*/
|
|
5932
|
-
resourceTypesReference:
|
|
5924
|
+
resourceTypesReference: f,
|
|
5933
5925
|
/**
|
|
5934
5926
|
* Справочник направлений продаж.
|
|
5935
5927
|
*/
|
|
5936
|
-
salesDirectionsReference:
|
|
5928
|
+
salesDirectionsReference: m,
|
|
5937
5929
|
/**
|
|
5938
5930
|
* Справочник каналов первичного интереса.
|
|
5939
5931
|
*/
|
|
@@ -6096,7 +6088,7 @@ class ls extends h {
|
|
|
6096
6088
|
}
|
|
6097
6089
|
}
|
|
6098
6090
|
var Rt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Rt || {});
|
|
6099
|
-
class
|
|
6091
|
+
class at extends or {
|
|
6100
6092
|
/**
|
|
6101
6093
|
* Инициализирует экземпляр класса {@link User}.
|
|
6102
6094
|
*
|
|
@@ -6135,17 +6127,17 @@ class ps extends h {
|
|
|
6135
6127
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
6136
6128
|
}
|
|
6137
6129
|
}
|
|
6138
|
-
class
|
|
6130
|
+
class At extends h {
|
|
6139
6131
|
/**
|
|
6140
6132
|
* Возвращает данные о текущем пользователе.
|
|
6141
6133
|
*/
|
|
6142
6134
|
// eslint-disable-next-line class-methods-use-this
|
|
6143
6135
|
getCurrentUser() {
|
|
6144
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
6136
|
+
return this.get("/internal/users/info", {}, (r) => new at(r.data));
|
|
6145
6137
|
}
|
|
6146
6138
|
}
|
|
6147
|
-
const
|
|
6148
|
-
const n =
|
|
6139
|
+
const Dt = Z("__user_state_private", () => {
|
|
6140
|
+
const n = y({}), r = y(void 0);
|
|
6149
6141
|
return {
|
|
6150
6142
|
/**
|
|
6151
6143
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -6161,10 +6153,10 @@ const at = Z("__user_state_private", () => {
|
|
|
6161
6153
|
* Данные о текущем пользователе.
|
|
6162
6154
|
*/
|
|
6163
6155
|
currentUser: R(() => {
|
|
6164
|
-
const r =
|
|
6165
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(
|
|
6156
|
+
const r = Dt();
|
|
6157
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(At).getCurrentUser().then((e) => {
|
|
6166
6158
|
r.currentUser = e;
|
|
6167
|
-
}).catch(
|
|
6159
|
+
}).catch(C).finally(() => {
|
|
6168
6160
|
r.dataLoaderList.currentUser = !1;
|
|
6169
6161
|
})), r.currentUser;
|
|
6170
6162
|
})
|
|
@@ -6199,7 +6191,7 @@ export {
|
|
|
6199
6191
|
ke as BankAccount,
|
|
6200
6192
|
De as BasePaginationProvider,
|
|
6201
6193
|
zr as CalculationTypeEnum,
|
|
6202
|
-
|
|
6194
|
+
ge as Cart,
|
|
6203
6195
|
Br as CartItem,
|
|
6204
6196
|
Hr as CartItemBase,
|
|
6205
6197
|
xt as CartProvider,
|
|
@@ -6209,27 +6201,27 @@ export {
|
|
|
6209
6201
|
He as CategoryPricingRule,
|
|
6210
6202
|
lr as ChannelPrimaryInterest,
|
|
6211
6203
|
Vt as City,
|
|
6212
|
-
|
|
6204
|
+
Fe as CityWithRegionAndCountry,
|
|
6213
6205
|
Ee as Client,
|
|
6214
6206
|
gt as ClientAdditionalData,
|
|
6215
6207
|
fe as ClientCategory,
|
|
6216
6208
|
Yt as ClientDataProvider,
|
|
6217
6209
|
Gt as ClientPriceProvider,
|
|
6218
|
-
|
|
6210
|
+
Ft as ClientPriceTemplateProvider,
|
|
6219
6211
|
Q as ClientProduct,
|
|
6220
6212
|
Ht as ClientProductCategoryDataProvider,
|
|
6221
6213
|
Bt as ClientProductDataProvider,
|
|
6222
|
-
|
|
6214
|
+
he as ClientShortInfo,
|
|
6223
6215
|
tt as ClientsAdditionalDataRequestTypeEnum,
|
|
6224
6216
|
Jt as ClientsListFilters,
|
|
6225
6217
|
ne as CodedIdentity,
|
|
6226
6218
|
Zt as ConfiguratorProvider,
|
|
6227
|
-
|
|
6219
|
+
xe as Contact,
|
|
6228
6220
|
Jr as ContactLinks,
|
|
6229
|
-
|
|
6221
|
+
j as ContactPerson,
|
|
6230
6222
|
ht as ContactPersonRelated,
|
|
6231
6223
|
it as ContactPosition,
|
|
6232
|
-
|
|
6224
|
+
_e as ContactRelation,
|
|
6233
6225
|
hr as ContragentBase,
|
|
6234
6226
|
we as ContragentFactory,
|
|
6235
6227
|
gr as ContragentIc,
|
|
@@ -6247,15 +6239,15 @@ export {
|
|
|
6247
6239
|
Er as DeletableNamedIdentity,
|
|
6248
6240
|
Ce as DeliveryAddress,
|
|
6249
6241
|
K as DeliveryType,
|
|
6250
|
-
|
|
6242
|
+
kt as DetailedJwtPayload,
|
|
6251
6243
|
Yr as DeviceTypeResolutionConfig,
|
|
6252
6244
|
Vr as DiscountShortInfo,
|
|
6253
6245
|
hs as FieldValidationResultData,
|
|
6254
6246
|
le as FilterGroup,
|
|
6255
6247
|
Be as FilterItem,
|
|
6256
|
-
|
|
6248
|
+
je as FilterOpEnum,
|
|
6257
6249
|
sr as GeoCoordinates,
|
|
6258
|
-
|
|
6250
|
+
jr as HiddenCatalogableItem,
|
|
6259
6251
|
pe as HttpCachedRequester,
|
|
6260
6252
|
Xr as HttpParamsConfig,
|
|
6261
6253
|
h as HttpRequester,
|
|
@@ -6268,8 +6260,8 @@ export {
|
|
|
6268
6260
|
ft as ManagerDataProvider,
|
|
6269
6261
|
Pt as MetaTagItem,
|
|
6270
6262
|
T as NamedIdentity,
|
|
6271
|
-
|
|
6272
|
-
|
|
6263
|
+
F as Opf,
|
|
6264
|
+
d as OpfEnum,
|
|
6273
6265
|
wt as Order,
|
|
6274
6266
|
yr as OrderInfo,
|
|
6275
6267
|
nt as OrderPaymentStatus,
|
|
@@ -6280,23 +6272,23 @@ export {
|
|
|
6280
6272
|
X as PartnerGroup,
|
|
6281
6273
|
ct as PaymentType,
|
|
6282
6274
|
Nt as PreferencesStorageProvider,
|
|
6283
|
-
|
|
6275
|
+
Se as PriceAnalyze,
|
|
6284
6276
|
ss as PriceAnalyzeProvider,
|
|
6285
|
-
|
|
6277
|
+
Re as PriceCoefficient,
|
|
6286
6278
|
tr as PriceCoefficientEnum,
|
|
6287
6279
|
is as PriceHistoryDataProvider,
|
|
6288
6280
|
Ct as PriceHistoryItem,
|
|
6289
6281
|
z as PriceTemplate,
|
|
6290
|
-
|
|
6282
|
+
Te as PriceTemplateCategory,
|
|
6291
6283
|
re as PriceTemplateClient,
|
|
6292
6284
|
nr as PriceTemplateICatalogableItem,
|
|
6293
|
-
|
|
6285
|
+
be as PriceTemplateProduct,
|
|
6294
6286
|
zt as PriceTemplateProvider,
|
|
6295
6287
|
se as PricingRole,
|
|
6296
6288
|
Wt as PricingRoleProvider,
|
|
6297
6289
|
Le as PrimaryCatalogableItem,
|
|
6298
|
-
|
|
6299
|
-
|
|
6290
|
+
k as Product,
|
|
6291
|
+
jt as ProductCategoryDataProvider,
|
|
6300
6292
|
Mt as ProductDataProvider,
|
|
6301
6293
|
lt as ProductFileType,
|
|
6302
6294
|
qe as ProductPriceCoefficient,
|
|
@@ -6309,7 +6301,7 @@ export {
|
|
|
6309
6301
|
ns as RecommendationsDataProvider,
|
|
6310
6302
|
Ke as RecommendationsList,
|
|
6311
6303
|
P as Reference,
|
|
6312
|
-
|
|
6304
|
+
A as ReferenceDataProvider,
|
|
6313
6305
|
ce as Region,
|
|
6314
6306
|
pr as ResourceType,
|
|
6315
6307
|
x as SalesDirection,
|
|
@@ -6317,25 +6309,25 @@ export {
|
|
|
6317
6309
|
Qe as Seo,
|
|
6318
6310
|
cs as SeoDataProvider,
|
|
6319
6311
|
ur as SourcePrimaryInterest,
|
|
6320
|
-
|
|
6312
|
+
Fr as StockCount,
|
|
6321
6313
|
Ot as TemplatesListFilters,
|
|
6322
6314
|
Ue as TypedInstanceFactory,
|
|
6323
6315
|
Ve as UnitsHelper,
|
|
6324
6316
|
Xt as UnknownClientDataProvider,
|
|
6325
6317
|
ir as UpdatableNamedIdentity,
|
|
6326
|
-
|
|
6318
|
+
at as User,
|
|
6327
6319
|
ps as UserAuthDataProvider,
|
|
6328
6320
|
or as UserCommonInfo,
|
|
6329
|
-
|
|
6321
|
+
At as UserDataProvider,
|
|
6330
6322
|
Kr as UserPricingRole,
|
|
6331
6323
|
G as UserShortInfo,
|
|
6332
6324
|
Rt as UserTypeEnum,
|
|
6333
6325
|
et as VersionConfig,
|
|
6334
|
-
|
|
6326
|
+
ae as Warehouse,
|
|
6335
6327
|
rt as WebSocketConfig,
|
|
6336
6328
|
ze as findCatalogItemByIdRecursive,
|
|
6337
6329
|
We as flattenCatalogItems,
|
|
6338
|
-
|
|
6330
|
+
$e as useAuthStateStore,
|
|
6339
6331
|
os as useReferencesStore,
|
|
6340
6332
|
us as useUserStateStore
|
|
6341
6333
|
};
|