@snabcentr/common-lib 1.67.0 → 1.67.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 +2 -4
- package/dist/sc-common-lib.js +90 -69
- 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/user/providers/index.d.ts +1 -0
- package/dist/src/user/providers/index.d.ts.map +1 -1
- package/dist/src/user/states/user-state-store.d.ts +3 -3
- package/dist/src/user/states/user-state-store.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/manifest.json
CHANGED
package/dist/release_notes.tmp
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
## 1.67.
|
|
1
|
+
## 1.67.2 (2025-08-29)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
- [#12080: Исправлены ошибки выполнения запросов](web_soft/libs/ts/snabcentr-common-lib@4d8bc8471ad21a6affc2366f31df9540c8133756) ([merge request](web_soft/libs/ts/snabcentr-common-lib!127))
|
|
3
|
+
No changes.
|
|
6
4
|
|
package/dist/sc-common-lib.js
CHANGED
|
@@ -2,7 +2,7 @@ var hr = Object.defineProperty;
|
|
|
2
2
|
var gr = (n, r, e) => r in n ? hr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
3
|
var t = (n, r, e) => gr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { jwtDecode as Ve } from "jwt-decode";
|
|
5
|
-
import { merge as Ee, isUndefined as mr, isNil as T, noop as C, toUpper as fr, constant as yr, isString as m, cloneDeep as
|
|
5
|
+
import { merge as Ee, isUndefined as mr, isNil as T, noop as C, toUpper as fr, constant as yr, isString as m, cloneDeep as Cr, toLower as wr, isFunction as Ie, isEmpty as Le, map as pe, forEach as vr, isDate as Pr, isArray as Je, omitBy as Rr, isObject as Ar } from "lodash-es";
|
|
6
6
|
import { objectToCamel as ke, objectToSnake as Ue } from "ts-case-convert";
|
|
7
7
|
import { defineStore as X } from "pinia";
|
|
8
8
|
import { ref as f, computed as v } from "vue";
|
|
@@ -420,7 +420,7 @@ class Xe {
|
|
|
420
420
|
}
|
|
421
421
|
class J extends w {
|
|
422
422
|
}
|
|
423
|
-
class
|
|
423
|
+
class Ce extends w {
|
|
424
424
|
/**
|
|
425
425
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
426
426
|
*
|
|
@@ -467,7 +467,7 @@ class xr {
|
|
|
467
467
|
* Количество остатков товара на складе.
|
|
468
468
|
*/
|
|
469
469
|
t(this, "count");
|
|
470
|
-
this.warehouse = new
|
|
470
|
+
this.warehouse = new Ce(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
class Nr extends Qe {
|
|
@@ -670,7 +670,7 @@ class qr extends B {
|
|
|
670
670
|
* Признак того, что позиция является дополнительной продажей.
|
|
671
671
|
*/
|
|
672
672
|
t(this, "isAdditionalSale");
|
|
673
|
-
this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new oe(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams &&
|
|
673
|
+
this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new oe(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Cr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
class Ur extends qr {
|
|
@@ -811,7 +811,7 @@ const S = class S {
|
|
|
811
811
|
* @param request Данные запроса.
|
|
812
812
|
*/
|
|
813
813
|
// eslint-disable-next-line class-methods-use-this
|
|
814
|
-
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ue(r.params)), ["put", "patch", "post"].includes(
|
|
814
|
+
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Ue(r.params)), ["put", "patch", "post"].includes(wr(r.method)) && r.data && (r.data = Ue(r.data))), r));
|
|
815
815
|
/**
|
|
816
816
|
* Перехватчик ошибок ответов на запрос.
|
|
817
817
|
*
|
|
@@ -1315,7 +1315,7 @@ class te extends $ {
|
|
|
1315
1315
|
e && (this.salesDirection = new I(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Hr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
|
-
class
|
|
1318
|
+
class we extends te {
|
|
1319
1319
|
/**
|
|
1320
1320
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1321
1321
|
*
|
|
@@ -1374,7 +1374,7 @@ class zr extends oe {
|
|
|
1374
1374
|
* Данные о менеджере за которым закреплена категория.
|
|
1375
1375
|
*/
|
|
1376
1376
|
t(this, "manager");
|
|
1377
|
-
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
|
|
1377
|
+
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 we(e.manager) : void 0;
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
1380
|
class he extends zr {
|
|
@@ -1941,7 +1941,7 @@ class A extends ie {
|
|
|
1941
1941
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
1942
1942
|
*/
|
|
1943
1943
|
getWarehouses() {
|
|
1944
|
-
return this.getTypedDataArrayRequester(
|
|
1944
|
+
return this.getTypedDataArrayRequester(Ce, "/public/references/warehouse", !0);
|
|
1945
1945
|
}
|
|
1946
1946
|
/**
|
|
1947
1947
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
@@ -1970,7 +1970,7 @@ class Qr extends ie {
|
|
|
1970
1970
|
const r = "/internal/managers", e = ie.getCachedResponse(r);
|
|
1971
1971
|
if (e)
|
|
1972
1972
|
return e;
|
|
1973
|
-
const i = (await this.get(r)).data.map((o) => xe.instanceInitializer(
|
|
1973
|
+
const i = (await this.get(r)).data.map((o) => xe.instanceInitializer(we, o));
|
|
1974
1974
|
return this.cacheResponse(r, i), i;
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
@@ -2232,6 +2232,22 @@ class Xr extends rr {
|
|
|
2232
2232
|
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;
|
|
2233
2233
|
}
|
|
2234
2234
|
}
|
|
2235
|
+
class It extends h {
|
|
2236
|
+
/**
|
|
2237
|
+
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
2238
|
+
*/
|
|
2239
|
+
constructor() {
|
|
2240
|
+
super(), this.baseUrl = `${D.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
|
|
2241
|
+
}
|
|
2242
|
+
/**
|
|
2243
|
+
* Функция для получения обновленных токенов доступа.
|
|
2244
|
+
*
|
|
2245
|
+
* @deprecated Данный механизм будет полностью удален при полном переходе на Vue приложение.
|
|
2246
|
+
*/
|
|
2247
|
+
getAccessToken() {
|
|
2248
|
+
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2235
2251
|
class Zr extends h {
|
|
2236
2252
|
/**
|
|
2237
2253
|
* Возвращает данные о текущем пользователе.
|
|
@@ -2253,13 +2269,17 @@ const et = X("__user_state_private", () => {
|
|
|
2253
2269
|
*/
|
|
2254
2270
|
currentUser: r
|
|
2255
2271
|
};
|
|
2256
|
-
}),
|
|
2272
|
+
}), Lt = X("user_state", () => ({
|
|
2257
2273
|
/**
|
|
2258
2274
|
* Данные о текущем пользователе.
|
|
2259
2275
|
*/
|
|
2260
|
-
currentUser: v(
|
|
2276
|
+
currentUser: v(() => {
|
|
2261
2277
|
const r = et();
|
|
2262
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0,
|
|
2278
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Zr).getCurrentUser().then((e) => {
|
|
2279
|
+
r.currentUser = e;
|
|
2280
|
+
}).catch(C).finally(() => {
|
|
2281
|
+
r.dataLoaderList.currentUser = !1;
|
|
2282
|
+
})), r.currentUser;
|
|
2263
2283
|
})
|
|
2264
2284
|
}));
|
|
2265
2285
|
class rt {
|
|
@@ -2494,7 +2514,7 @@ class nt {
|
|
|
2494
2514
|
this.date = m(r == null ? void 0 : r.date) ? y(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";
|
|
2495
2515
|
}
|
|
2496
2516
|
}
|
|
2497
|
-
class
|
|
2517
|
+
class kt {
|
|
2498
2518
|
/**
|
|
2499
2519
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
2500
2520
|
*
|
|
@@ -2544,7 +2564,7 @@ class Lt {
|
|
|
2544
2564
|
};
|
|
2545
2565
|
}
|
|
2546
2566
|
}
|
|
2547
|
-
class
|
|
2567
|
+
class dt extends h {
|
|
2548
2568
|
/**
|
|
2549
2569
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
2550
2570
|
*
|
|
@@ -2575,7 +2595,7 @@ class kt extends h {
|
|
|
2575
2595
|
return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
|
|
2576
2596
|
}
|
|
2577
2597
|
}
|
|
2578
|
-
class
|
|
2598
|
+
class xt extends h {
|
|
2579
2599
|
/**
|
|
2580
2600
|
* Импортирует цены клиента из CSV файла.
|
|
2581
2601
|
*
|
|
@@ -2774,7 +2794,7 @@ class dt extends h {
|
|
|
2774
2794
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2775
2795
|
}
|
|
2776
2796
|
}
|
|
2777
|
-
class
|
|
2797
|
+
class Nt extends h {
|
|
2778
2798
|
/**
|
|
2779
2799
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2780
2800
|
*
|
|
@@ -2866,7 +2886,7 @@ class xt extends h {
|
|
|
2866
2886
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2867
2887
|
}
|
|
2868
2888
|
}
|
|
2869
|
-
class
|
|
2889
|
+
class Ot extends h {
|
|
2870
2890
|
/**
|
|
2871
2891
|
* Возвращает список данных о корневых категориях.
|
|
2872
2892
|
*
|
|
@@ -2958,7 +2978,7 @@ class Nt extends h {
|
|
|
2958
2978
|
});
|
|
2959
2979
|
}
|
|
2960
2980
|
}
|
|
2961
|
-
class
|
|
2981
|
+
class qt extends h {
|
|
2962
2982
|
/**
|
|
2963
2983
|
* Возвращает данные об указанном продукте.
|
|
2964
2984
|
*
|
|
@@ -3020,7 +3040,7 @@ class Ot extends h {
|
|
|
3020
3040
|
});
|
|
3021
3041
|
}
|
|
3022
3042
|
}
|
|
3023
|
-
class
|
|
3043
|
+
class Ut extends h {
|
|
3024
3044
|
/**
|
|
3025
3045
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
3026
3046
|
*
|
|
@@ -3082,7 +3102,7 @@ class qt extends h {
|
|
|
3082
3102
|
);
|
|
3083
3103
|
}
|
|
3084
3104
|
}
|
|
3085
|
-
class
|
|
3105
|
+
class Gt extends h {
|
|
3086
3106
|
/**
|
|
3087
3107
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
3088
3108
|
*
|
|
@@ -3193,7 +3213,7 @@ class ve extends h {
|
|
|
3193
3213
|
return e && (u.filters = JSON.stringify((e instanceof ne ? e : new ne(e)).toPrimitive())), Le(s) || (u.sort = Je(s) ? s : [s]), o && (u = { ...u, ...o }), this.get(r, u, c, p);
|
|
3194
3214
|
}
|
|
3195
3215
|
}
|
|
3196
|
-
class
|
|
3216
|
+
class Mt extends ve {
|
|
3197
3217
|
/**
|
|
3198
3218
|
* Возвращает список шаблонов прайс-листа.
|
|
3199
3219
|
*
|
|
@@ -3397,7 +3417,7 @@ class Gt extends ve {
|
|
|
3397
3417
|
);
|
|
3398
3418
|
}
|
|
3399
3419
|
}
|
|
3400
|
-
class
|
|
3420
|
+
class Ft extends h {
|
|
3401
3421
|
/**
|
|
3402
3422
|
* Возвращает список ролей ценообразования.
|
|
3403
3423
|
*
|
|
@@ -3477,7 +3497,7 @@ class Mt extends h {
|
|
|
3477
3497
|
);
|
|
3478
3498
|
}
|
|
3479
3499
|
}
|
|
3480
|
-
class
|
|
3500
|
+
class Bt extends ve {
|
|
3481
3501
|
/**
|
|
3482
3502
|
* Возвращает пагинированный список свойств.
|
|
3483
3503
|
*
|
|
@@ -3849,7 +3869,7 @@ class Ft extends ve {
|
|
|
3849
3869
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3850
3870
|
}
|
|
3851
3871
|
}
|
|
3852
|
-
class
|
|
3872
|
+
class Ht extends h {
|
|
3853
3873
|
/**
|
|
3854
3874
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
3855
3875
|
*
|
|
@@ -4318,10 +4338,10 @@ class He extends ce {
|
|
|
4318
4338
|
* Дополнительные данные о клиенте.
|
|
4319
4339
|
*/
|
|
4320
4340
|
t(this, "extraData");
|
|
4321
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => me.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new Y(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((p) => new fe(p))) ?? [], this.channelPrimaryInterest = new sr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new nr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new J(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
|
|
4341
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => me.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new Y(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((p) => new fe(p))) ?? [], this.channelPrimaryInterest = new sr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new nr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new J(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 Ce(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
4322
4342
|
}
|
|
4323
4343
|
}
|
|
4324
|
-
class
|
|
4344
|
+
class zt {
|
|
4325
4345
|
/**
|
|
4326
4346
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
4327
4347
|
*
|
|
@@ -4417,7 +4437,7 @@ class Ht {
|
|
|
4417
4437
|
*/
|
|
4418
4438
|
t(this, "lastOrder");
|
|
4419
4439
|
var e, s, i, o, c, p;
|
|
4420
|
-
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 Oe(u)), this.region = new se(r == null ? void 0 : r.region), this.country = new Q(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
|
|
4440
|
+
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 Oe(u)), this.region = new se(r == null ? void 0 : r.region), this.country = new Q(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 we(u)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((u) => new I(u)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new M(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new J(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((u) => new Y(u)), this.contact = new Se(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
4421
4441
|
createdAt: new O((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
|
|
4422
4442
|
creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
|
|
4423
4443
|
isApproved: (p = r == null ? void 0 : r.lastOrder) == null ? void 0 : p.isApproved
|
|
@@ -4572,7 +4592,7 @@ class ht {
|
|
|
4572
4592
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4573
4593
|
}
|
|
4574
4594
|
}
|
|
4575
|
-
class
|
|
4595
|
+
class jt extends ht {
|
|
4576
4596
|
/**
|
|
4577
4597
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4578
4598
|
*
|
|
@@ -4603,7 +4623,7 @@ class zt extends ht {
|
|
|
4603
4623
|
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;
|
|
4604
4624
|
}
|
|
4605
4625
|
}
|
|
4606
|
-
class
|
|
4626
|
+
class Wt {
|
|
4607
4627
|
/**
|
|
4608
4628
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
4609
4629
|
*
|
|
@@ -4621,7 +4641,7 @@ class jt {
|
|
|
4621
4641
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4622
4642
|
}
|
|
4623
4643
|
}
|
|
4624
|
-
class
|
|
4644
|
+
class Vt extends ve {
|
|
4625
4645
|
/**
|
|
4626
4646
|
* Возвращает данные об указанном клиенте.
|
|
4627
4647
|
*
|
|
@@ -5348,7 +5368,7 @@ class Wt extends ve {
|
|
|
5348
5368
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
5349
5369
|
}
|
|
5350
5370
|
}
|
|
5351
|
-
class
|
|
5371
|
+
class Et extends h {
|
|
5352
5372
|
/**
|
|
5353
5373
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
5354
5374
|
*
|
|
@@ -5362,7 +5382,7 @@ class Vt extends h {
|
|
|
5362
5382
|
});
|
|
5363
5383
|
}
|
|
5364
5384
|
}
|
|
5365
|
-
class
|
|
5385
|
+
class Jt extends h {
|
|
5366
5386
|
/**
|
|
5367
5387
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
5368
5388
|
*
|
|
@@ -5433,7 +5453,7 @@ class Et extends h {
|
|
|
5433
5453
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
|
|
5434
5454
|
}
|
|
5435
5455
|
}
|
|
5436
|
-
class
|
|
5456
|
+
class Kt {
|
|
5437
5457
|
/**
|
|
5438
5458
|
* Возвращает диапазон дат по умолчанию.
|
|
5439
5459
|
*/
|
|
@@ -5489,12 +5509,12 @@ const E = class E {
|
|
|
5489
5509
|
*/
|
|
5490
5510
|
t(E, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5491
5511
|
let ze = E;
|
|
5492
|
-
class
|
|
5512
|
+
class Qt {
|
|
5493
5513
|
/**
|
|
5494
5514
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5495
5515
|
*/
|
|
5496
5516
|
static generateUndefinedManagerInstance() {
|
|
5497
|
-
return new
|
|
5517
|
+
return new we({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
|
|
5498
5518
|
}
|
|
5499
5519
|
/**
|
|
5500
5520
|
* Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
|
|
@@ -5562,7 +5582,7 @@ class ur extends pr {
|
|
|
5562
5582
|
type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
|
|
5563
5583
|
date: m((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? y(e.delivery.date) : ((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ?? /* @__PURE__ */ new Date(),
|
|
5564
5584
|
address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new fe(e.delivery.address) : void 0,
|
|
5565
|
-
warehouse: (a = e == null ? void 0 : e.delivery) != null && a.warehouse ? new
|
|
5585
|
+
warehouse: (a = e == null ? void 0 : e.delivery) != null && a.warehouse ? new Ce(e.delivery.warehouse) : void 0
|
|
5566
5586
|
}, this.attachedUser = new G(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new I(e == null ? void 0 : e.salesDirection), this.pendingAt = m(e == null ? void 0 : e.pendingAt) ? y(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? y(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;
|
|
5567
5587
|
}
|
|
5568
5588
|
}
|
|
@@ -5692,7 +5712,7 @@ class mt extends ur {
|
|
|
5692
5712
|
this.products = (e.products ?? []).map((s) => new gt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? me.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5693
5713
|
}
|
|
5694
5714
|
}
|
|
5695
|
-
class
|
|
5715
|
+
class Yt extends ve {
|
|
5696
5716
|
/**
|
|
5697
5717
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5698
5718
|
*
|
|
@@ -5773,7 +5793,7 @@ const Te = (n) => {
|
|
|
5773
5793
|
const r = {};
|
|
5774
5794
|
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;
|
|
5775
5795
|
};
|
|
5776
|
-
class
|
|
5796
|
+
class Xt extends h {
|
|
5777
5797
|
/**
|
|
5778
5798
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
5779
5799
|
*
|
|
@@ -5891,7 +5911,7 @@ class We {
|
|
|
5891
5911
|
this.resourceType = new ir(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new ft(s))) ?? [];
|
|
5892
5912
|
}
|
|
5893
5913
|
}
|
|
5894
|
-
class
|
|
5914
|
+
class Zt extends h {
|
|
5895
5915
|
/**
|
|
5896
5916
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
5897
5917
|
*
|
|
@@ -5922,7 +5942,7 @@ class Xt extends h {
|
|
|
5922
5942
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
5923
5943
|
}
|
|
5924
5944
|
}
|
|
5925
|
-
class
|
|
5945
|
+
class es extends h {
|
|
5926
5946
|
/**
|
|
5927
5947
|
* Возвращает подсказки по адресам.
|
|
5928
5948
|
*
|
|
@@ -5969,7 +5989,7 @@ class Zt extends h {
|
|
|
5969
5989
|
});
|
|
5970
5990
|
}
|
|
5971
5991
|
}
|
|
5972
|
-
class
|
|
5992
|
+
class rs {
|
|
5973
5993
|
/**
|
|
5974
5994
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
5975
5995
|
*
|
|
@@ -5994,7 +6014,7 @@ class es {
|
|
|
5994
6014
|
}
|
|
5995
6015
|
export {
|
|
5996
6016
|
jr as AnyReference,
|
|
5997
|
-
|
|
6017
|
+
kt as AppBaseConfig,
|
|
5998
6018
|
D as AppConfigProvider,
|
|
5999
6019
|
_e as BankAccount,
|
|
6000
6020
|
ve as BasePaginationProvider,
|
|
@@ -6003,7 +6023,7 @@ export {
|
|
|
6003
6023
|
Ur as CartItem,
|
|
6004
6024
|
qr as CartItemBase,
|
|
6005
6025
|
$t as CartProvider,
|
|
6006
|
-
|
|
6026
|
+
dt as CatalogProvider,
|
|
6007
6027
|
Qe as CatalogableItem,
|
|
6008
6028
|
U as Category,
|
|
6009
6029
|
Me as CategoryPricingRule,
|
|
@@ -6013,16 +6033,16 @@ export {
|
|
|
6013
6033
|
He as Client,
|
|
6014
6034
|
ut as ClientAdditionalData,
|
|
6015
6035
|
he as ClientCategory,
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6036
|
+
Vt as ClientDataProvider,
|
|
6037
|
+
xt as ClientPriceProvider,
|
|
6038
|
+
Nt as ClientPriceTemplateProvider,
|
|
6019
6039
|
K as ClientProduct,
|
|
6020
|
-
|
|
6021
|
-
|
|
6040
|
+
Ut as ClientProductCategoryDataProvider,
|
|
6041
|
+
Gt as ClientProductDataProvider,
|
|
6022
6042
|
ce as ClientShortInfo,
|
|
6023
6043
|
ot as ClientsAdditionalDataRequestTypeEnum,
|
|
6024
|
-
|
|
6025
|
-
|
|
6044
|
+
zt as ClientsListFilters,
|
|
6045
|
+
Jt as ConfiguratorProvider,
|
|
6026
6046
|
Se as Contact,
|
|
6027
6047
|
Hr as ContactLinks,
|
|
6028
6048
|
F as ContactPerson,
|
|
@@ -6038,18 +6058,18 @@ export {
|
|
|
6038
6058
|
Ne as CostSourceEnum,
|
|
6039
6059
|
Q as Country,
|
|
6040
6060
|
ge as Currency,
|
|
6041
|
-
|
|
6042
|
-
|
|
6061
|
+
es as DataSuggestionProvider,
|
|
6062
|
+
jt as DataTablePagination,
|
|
6043
6063
|
ht as DataTablePaginationRequestParams,
|
|
6044
|
-
|
|
6045
|
-
|
|
6064
|
+
Wt as DataTableSortRequestParams,
|
|
6065
|
+
Kt as DateTimeProvider,
|
|
6046
6066
|
Fr as DeletableNamedIdentity,
|
|
6047
6067
|
fe as DeliveryAddress,
|
|
6048
6068
|
J as DeliveryType,
|
|
6049
6069
|
Dt as DetailedJwtPayload,
|
|
6050
6070
|
tt as DeviceTypeResolutionConfig,
|
|
6051
6071
|
Br as DiscountShortInfo,
|
|
6052
|
-
|
|
6072
|
+
rs as FieldValidationResultData,
|
|
6053
6073
|
ne as FilterGroup,
|
|
6054
6074
|
Fe as FilterItem,
|
|
6055
6075
|
qe as FilterOpEnum,
|
|
@@ -6061,9 +6081,9 @@ export {
|
|
|
6061
6081
|
B as Identity,
|
|
6062
6082
|
Or as Image,
|
|
6063
6083
|
ue as JwtPayload,
|
|
6064
|
-
|
|
6084
|
+
we as Manager,
|
|
6065
6085
|
te as ManagerCommon,
|
|
6066
|
-
|
|
6086
|
+
Qt as ManagerDataFactory,
|
|
6067
6087
|
Qr as ManagerDataProvider,
|
|
6068
6088
|
ft as MetaTagItem,
|
|
6069
6089
|
$ as NamedIdentity,
|
|
@@ -6075,12 +6095,12 @@ export {
|
|
|
6075
6095
|
gt as OrderProduct,
|
|
6076
6096
|
pr as OrderShortInfo,
|
|
6077
6097
|
Er as OrderStatus,
|
|
6078
|
-
|
|
6098
|
+
Yt as OrdersDataProvider,
|
|
6079
6099
|
Y as PartnerGroup,
|
|
6080
6100
|
Jr as PaymentType,
|
|
6081
6101
|
Tt as PreferencesStorageProvider,
|
|
6082
6102
|
$e as PriceAnalyze,
|
|
6083
|
-
|
|
6103
|
+
Xt as PriceAnalyzeProvider,
|
|
6084
6104
|
ye as PriceCoefficient,
|
|
6085
6105
|
Ye as PriceCoefficientEnum,
|
|
6086
6106
|
j as PriceTemplate,
|
|
@@ -6088,22 +6108,22 @@ export {
|
|
|
6088
6108
|
Z as PriceTemplateClient,
|
|
6089
6109
|
er as PriceTemplateICatalogableItem,
|
|
6090
6110
|
ae as PriceTemplateProduct,
|
|
6091
|
-
|
|
6111
|
+
Mt as PriceTemplateProvider,
|
|
6092
6112
|
re as PricingRole,
|
|
6093
|
-
|
|
6113
|
+
Ft as PricingRoleProvider,
|
|
6094
6114
|
be as PrimaryCatalogableItem,
|
|
6095
6115
|
_ as Product,
|
|
6096
|
-
|
|
6097
|
-
|
|
6116
|
+
Ot as ProductCategoryDataProvider,
|
|
6117
|
+
qt as ProductDataProvider,
|
|
6098
6118
|
Kr as ProductFileType,
|
|
6099
6119
|
de as ProductPriceCoefficient,
|
|
6100
6120
|
rt as ProductPriceHistory,
|
|
6101
|
-
|
|
6121
|
+
Bt as PropertiesProvider,
|
|
6102
6122
|
ee as Property,
|
|
6103
6123
|
tr as PropertyType,
|
|
6104
6124
|
Mr as PropertyTypeEnum,
|
|
6105
6125
|
H as PropertyValue,
|
|
6106
|
-
|
|
6126
|
+
Ht as RecommendationsDataProvider,
|
|
6107
6127
|
Ge as RecommendationsList,
|
|
6108
6128
|
w as Reference,
|
|
6109
6129
|
A as ReferenceDataProvider,
|
|
@@ -6112,24 +6132,25 @@ export {
|
|
|
6112
6132
|
I as SalesDirection,
|
|
6113
6133
|
it as SentryConfig,
|
|
6114
6134
|
We as Seo,
|
|
6115
|
-
|
|
6135
|
+
Zt as SeoDataProvider,
|
|
6116
6136
|
nr as SourcePrimaryInterest,
|
|
6117
6137
|
xr as StockCount,
|
|
6118
6138
|
bt as TemplatesListFilters,
|
|
6119
6139
|
xe as TypedInstanceFactory,
|
|
6120
6140
|
ze as UnitsHelper,
|
|
6121
|
-
|
|
6141
|
+
Et as UnknownClientDataProvider,
|
|
6122
6142
|
Ze as UpdatableNamedIdentity,
|
|
6123
6143
|
Xr as User,
|
|
6144
|
+
It as UserAuthDataProvider,
|
|
6124
6145
|
rr as UserCommonInfo,
|
|
6125
6146
|
Zr as UserDataProvider,
|
|
6126
6147
|
G as UserShortInfo,
|
|
6127
6148
|
Yr as UserTypeEnum,
|
|
6128
6149
|
nt as VersionConfig,
|
|
6129
|
-
|
|
6150
|
+
Ce as Warehouse,
|
|
6130
6151
|
Be as findCatalogItemByIdRecursive,
|
|
6131
6152
|
Re as useAuthStateStore,
|
|
6132
6153
|
St as useReferencesStore,
|
|
6133
|
-
|
|
6154
|
+
Lt as useUserStateStore
|
|
6134
6155
|
};
|
|
6135
6156
|
//# sourceMappingURL=sc-common-lib.js.map
|