@snabcentr/common-lib 2.7.8 → 2.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +1 -1
- package/dist/release_notes.tmp +2 -4
- package/dist/sc-common-lib.js +65 -49
- 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/orders/interfaces/i-delivery-cost-info.d.ts +3 -3
- package/dist/src/orders/interfaces/i-delivery-cost-info.d.ts.map +1 -1
- package/dist/src/orders/providers/orders-data-provider.d.ts +14 -1
- package/dist/src/orders/providers/orders-data-provider.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
|
-
## 2.
|
|
1
|
+
## 2.8.2 (2026-06-24)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
- [#13186: Фильтр заказов «За кем закреплен заказ» поддерживает закрепление за менеджерами](web_soft/libs/ts/snabcentr-common-lib@6b8d65226a7e02e59a0c110cfd51dbc04d3f95b2) ([merge request](web_soft/libs/ts/snabcentr-common-lib!198))
|
|
3
|
+
No changes.
|
|
6
4
|
|
package/dist/sc-common-lib.js
CHANGED
|
@@ -6,7 +6,7 @@ import { merge as pe, isNil as A, isEmpty as X, noop as v, mapValues as or, isAr
|
|
|
6
6
|
import { objectToCamel as He, objectToSnake as Ee } from "ts-case-convert";
|
|
7
7
|
import { defineStore as W } from "pinia";
|
|
8
8
|
import { ref as y, markRaw as Mr, computed as P } from "vue";
|
|
9
|
-
import { isAfter as Ve, parseISO as R, startOfToday as Oe, format as
|
|
9
|
+
import { isAfter as Ve, parseISO as R, startOfToday as Oe, format as I, addSeconds as jr, addBusinessDays as Gr, endOfTomorrow as Br, startOfTomorrow as zr, endOfYesterday as Wr, startOfYesterday as Jr, endOfToday as Er, endOfDay as Vr, startOfDay as Kr } from "date-fns";
|
|
10
10
|
import Qr, { CanceledError as Yr } from "axios";
|
|
11
11
|
class M {
|
|
12
12
|
/**
|
|
@@ -336,7 +336,7 @@ class tt {
|
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
const
|
|
339
|
+
const k = W("common.config", () => {
|
|
340
340
|
const i = y(new tt());
|
|
341
341
|
return {
|
|
342
342
|
/**
|
|
@@ -486,7 +486,7 @@ const V = W("common.auth_state_private", () => {
|
|
|
486
486
|
);
|
|
487
487
|
if (o)
|
|
488
488
|
return Promise.resolve(o);
|
|
489
|
-
const c = (u =
|
|
489
|
+
const c = (u = k().config.devMode) == null ? void 0 : u.initAuthBearerToken;
|
|
490
490
|
return c ? Promise.resolve(c) : void 0;
|
|
491
491
|
})()
|
|
492
492
|
), r = y(void 0), e = y(void 0), s = Mr(/* @__PURE__ */ new Map());
|
|
@@ -1101,7 +1101,7 @@ class L extends it {
|
|
|
1101
1101
|
t(this, "priceCoefficients");
|
|
1102
1102
|
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Qe(e.unit) : new Qe(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new O(e.currency) : new O(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = C(e == null ? void 0 : e.costDate) ? R(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((h) => new ot(h))) ?? [], this.type = "product";
|
|
1103
1103
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
|
|
1104
|
-
s && (this.category = new qe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new qe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new st(h,
|
|
1104
|
+
s && (this.category = new qe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new qe(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new st(h, k().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new je(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
1105
1105
|
}
|
|
1106
1106
|
/**
|
|
1107
1107
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -1349,7 +1349,7 @@ const a = class a {
|
|
|
1349
1349
|
/**
|
|
1350
1350
|
* Базовый URL путь для выполнения запросов.
|
|
1351
1351
|
*/
|
|
1352
|
-
t(this, "baseUrl", `${
|
|
1352
|
+
t(this, "baseUrl", `${k().config.http.portalApiUrl}/api`);
|
|
1353
1353
|
/**
|
|
1354
1354
|
* Обработчик ошибок выполнения запросов текущего экземпляра класса.
|
|
1355
1355
|
*
|
|
@@ -2111,7 +2111,7 @@ class oe extends re {
|
|
|
2111
2111
|
this.createdAt = C(e == null ? void 0 : e.createdAt) ? R(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? R(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new te(e == null ? void 0 : e.client), this.priceTemplate = new Q(e == null ? void 0 : e.priceTemplate);
|
|
2112
2112
|
}
|
|
2113
2113
|
}
|
|
2114
|
-
class
|
|
2114
|
+
class ke extends wr {
|
|
2115
2115
|
/**
|
|
2116
2116
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
2117
2117
|
*
|
|
@@ -2336,7 +2336,7 @@ class Vt extends p {
|
|
|
2336
2336
|
*/
|
|
2337
2337
|
// eslint-disable-next-line class-methods-use-this
|
|
2338
2338
|
getPriceExportLink(r = "csv", e = !1, s = void 0, n = void 0) {
|
|
2339
|
-
let c = `${
|
|
2339
|
+
let c = `${k().config.http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
|
|
2340
2340
|
return s && (c += `&category_id=${s}`), n && (c += `&client_id=${n}`), c;
|
|
2341
2341
|
}
|
|
2342
2342
|
}
|
|
@@ -2574,12 +2574,12 @@ class Qt extends p {
|
|
|
2574
2574
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_attach
|
|
2575
2575
|
*/
|
|
2576
2576
|
attachTemplate(r, e, s) {
|
|
2577
|
-
const n =
|
|
2577
|
+
const n = k().config.dateFormats.api;
|
|
2578
2578
|
return this.post(
|
|
2579
2579
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
2580
2580
|
s && {
|
|
2581
|
-
startAt: s.startAt &&
|
|
2582
|
-
endAt: s.endAt &&
|
|
2581
|
+
startAt: s.startAt && I(s.startAt, n),
|
|
2582
|
+
endAt: s.endAt && I(s.endAt, n)
|
|
2583
2583
|
},
|
|
2584
2584
|
(o) => new oe(o.data),
|
|
2585
2585
|
{},
|
|
@@ -2608,12 +2608,12 @@ class Qt extends p {
|
|
|
2608
2608
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_change
|
|
2609
2609
|
*/
|
|
2610
2610
|
changeTemplate(r, e, s, n) {
|
|
2611
|
-
const o =
|
|
2611
|
+
const o = k().config.dateFormats.api;
|
|
2612
2612
|
return this.patch(
|
|
2613
2613
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
2614
2614
|
n && {
|
|
2615
|
-
startAt: n.startAt &&
|
|
2616
|
-
endAt: n.endAt &&
|
|
2615
|
+
startAt: n.startAt && I(n.startAt, o),
|
|
2616
|
+
endAt: n.endAt && I(n.endAt, o)
|
|
2617
2617
|
},
|
|
2618
2618
|
(c) => new oe(c.data)
|
|
2619
2619
|
);
|
|
@@ -2888,7 +2888,7 @@ class Xe {
|
|
|
2888
2888
|
field: this.field,
|
|
2889
2889
|
op: this.op
|
|
2890
2890
|
};
|
|
2891
|
-
return r.value = xe(this.value) ?
|
|
2891
|
+
return r.value = xe(this.value) ? I(this.value, k().config.dateFormats.api) : this.value, r;
|
|
2892
2892
|
}
|
|
2893
2893
|
}
|
|
2894
2894
|
class G {
|
|
@@ -3019,7 +3019,7 @@ class rs extends Ae {
|
|
|
3019
3019
|
return this.get(
|
|
3020
3020
|
`/internal/price/templates/${r}/products`,
|
|
3021
3021
|
{},
|
|
3022
|
-
(e) => e.data.map((s) => new
|
|
3022
|
+
(e) => e.data.map((s) => new ke(s))
|
|
3023
3023
|
);
|
|
3024
3024
|
}
|
|
3025
3025
|
/**
|
|
@@ -3031,7 +3031,7 @@ class rs extends Ae {
|
|
|
3031
3031
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
3032
3032
|
*/
|
|
3033
3033
|
getProductTemplatePrice(r, e) {
|
|
3034
|
-
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new
|
|
3034
|
+
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new ke(s.data));
|
|
3035
3035
|
}
|
|
3036
3036
|
/**
|
|
3037
3037
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -3050,7 +3050,7 @@ class rs extends Ae {
|
|
|
3050
3050
|
price_coefficient_id: (n = s.coefficient) == null ? void 0 : n.id,
|
|
3051
3051
|
increase_percent: s.value
|
|
3052
3052
|
},
|
|
3053
|
-
(o) => new
|
|
3053
|
+
(o) => new ke(o.data)
|
|
3054
3054
|
);
|
|
3055
3055
|
}
|
|
3056
3056
|
/**
|
|
@@ -4008,7 +4008,7 @@ class Re {
|
|
|
4008
4008
|
}
|
|
4009
4009
|
}
|
|
4010
4010
|
}
|
|
4011
|
-
class
|
|
4011
|
+
class Ie extends re {
|
|
4012
4012
|
/**
|
|
4013
4013
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
4014
4014
|
*
|
|
@@ -4048,7 +4048,7 @@ class Ct extends z {
|
|
|
4048
4048
|
*/
|
|
4049
4049
|
addresses: []
|
|
4050
4050
|
});
|
|
4051
|
-
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new
|
|
4051
|
+
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Ie(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Ie(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Ie(s))));
|
|
4052
4052
|
}
|
|
4053
4053
|
}
|
|
4054
4054
|
class ue extends pr {
|
|
@@ -5165,7 +5165,7 @@ const Y = class Y extends p {
|
|
|
5165
5165
|
* Время кэширования данных ответов на запросы (секунд).
|
|
5166
5166
|
*/
|
|
5167
5167
|
t(this, "responseDataCacheTimeout");
|
|
5168
|
-
this.responseDataCacheTimeout =
|
|
5168
|
+
this.responseDataCacheTimeout = k().config.http.responseDataCacheTimeout;
|
|
5169
5169
|
}
|
|
5170
5170
|
/**
|
|
5171
5171
|
* Возвращает кэшированные данные.
|
|
@@ -5357,7 +5357,7 @@ class ms {
|
|
|
5357
5357
|
};
|
|
5358
5358
|
}
|
|
5359
5359
|
}
|
|
5360
|
-
class
|
|
5360
|
+
class kr {
|
|
5361
5361
|
/**
|
|
5362
5362
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
5363
5363
|
*
|
|
@@ -5373,7 +5373,7 @@ class Ir {
|
|
|
5373
5373
|
*/
|
|
5374
5374
|
static getProductMultiplicity(r) {
|
|
5375
5375
|
var e, s;
|
|
5376
|
-
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !
|
|
5376
|
+
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !kr.productIsMeasurable(r) ? r.properties.minCount : 1;
|
|
5377
5377
|
}
|
|
5378
5378
|
/**
|
|
5379
5379
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -5485,7 +5485,7 @@ class ws {
|
|
|
5485
5485
|
this.paymentType = r == null ? void 0 : r.payment.type, this.deliveryType = r == null ? void 0 : r.delivery.type, this.contragentId = (e = r == null ? void 0 : r.contragent) == null ? void 0 : e.id, this.deliveryDate = r != null && r.delivery.date ? new Date(r.delivery.date) : void 0, this.addressId = (s = r == null ? void 0 : r.delivery.address) == null ? void 0 : s.id, this.warehouseId = (n = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : n.id, this.comment = r == null ? void 0 : r.comment, this.barcode = r == null ? void 0 : r.barcode, this.operatorsComment = r == null ? void 0 : r.operatorsComment, this.operatorsForWarehouseComment = r == null ? void 0 : r.operatorsForWarehouseComment, this.isAllowProcessingWithoutPayment = r == null ? void 0 : r.isAllowProcessingWithoutPayment;
|
|
5486
5486
|
}
|
|
5487
5487
|
}
|
|
5488
|
-
class
|
|
5488
|
+
class Ir extends dr {
|
|
5489
5489
|
/**
|
|
5490
5490
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
5491
5491
|
*
|
|
@@ -6158,7 +6158,7 @@ class St extends fr {
|
|
|
6158
6158
|
this.product = new j(e.product), this.currency = new O(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, s && (this.replacement = s, this.quantity !== s.quantity && this.changedFields.push("quantity"), this.length !== s.length && this.changedFields.push("length"));
|
|
6159
6159
|
}
|
|
6160
6160
|
}
|
|
6161
|
-
class d extends
|
|
6161
|
+
class d extends Ir {
|
|
6162
6162
|
/**
|
|
6163
6163
|
* Инициализирует экземпляр класса {@link Order}.
|
|
6164
6164
|
*
|
|
@@ -6272,7 +6272,7 @@ class Cs extends Ae {
|
|
|
6272
6272
|
{},
|
|
6273
6273
|
(o) => {
|
|
6274
6274
|
const c = { ...o.data };
|
|
6275
|
-
return c.data = c.data.map((u) => new
|
|
6275
|
+
return c.data = c.data.map((u) => new Ir(u)), c;
|
|
6276
6276
|
},
|
|
6277
6277
|
void 0,
|
|
6278
6278
|
n
|
|
@@ -6320,21 +6320,26 @@ class Cs extends Ae {
|
|
|
6320
6320
|
* @param clientId Идентификатор клиента.
|
|
6321
6321
|
* @param salesDirectionId Идентификатор направления продаж.
|
|
6322
6322
|
* @param data Данные для создания заказа.
|
|
6323
|
+
* @param cartItemIds Идентификаторы позиций корзины (`IOrderItem.id`),
|
|
6324
|
+
* которые необходимо включить в заказ (частичный заказ).
|
|
6325
|
+
* Если не указаны или список пуст, заказ создаётся из всех
|
|
6326
|
+
* товаров корзины по указанному направлению продаж.
|
|
6323
6327
|
* @param validationFieldResultData Список полей, для которых необходимо
|
|
6324
6328
|
* установить данные об ошибках валидации
|
|
6325
6329
|
* в случае ошибок в запросах.
|
|
6326
6330
|
* @see /doc/api/internal#/operations/api_internal_client_orders_create
|
|
6327
6331
|
*/
|
|
6328
|
-
createClientOrder(r, e, s, n = {}) {
|
|
6329
|
-
const
|
|
6332
|
+
createClientOrder(r, e, s, n, o = {}) {
|
|
6333
|
+
const c = k().config.dateFormats.api;
|
|
6330
6334
|
return this.post(
|
|
6331
6335
|
`/internal/clients/${r}/orders/${e}`,
|
|
6332
6336
|
{
|
|
6333
6337
|
...s,
|
|
6334
|
-
deliveryDate:
|
|
6338
|
+
deliveryDate: I(s.deliveryDate, c),
|
|
6339
|
+
items: n != null && n.length ? n : void 0
|
|
6335
6340
|
},
|
|
6336
|
-
(
|
|
6337
|
-
|
|
6341
|
+
(u) => u.data.map((h) => new d(h)),
|
|
6342
|
+
o
|
|
6338
6343
|
);
|
|
6339
6344
|
}
|
|
6340
6345
|
/**
|
|
@@ -6357,6 +6362,17 @@ class Cs extends Ae {
|
|
|
6357
6362
|
detachOrder(r) {
|
|
6358
6363
|
return this.patch(`/internal/orders/${r}/detach`, {}, (e) => new d(e.data));
|
|
6359
6364
|
}
|
|
6365
|
+
/**
|
|
6366
|
+
* Объединяет указанные заказы в базовый заказ и возвращает обновлённые данные базового заказа.
|
|
6367
|
+
*
|
|
6368
|
+
* @param orderId Идентификатор базового заказа, в который переносятся товары.
|
|
6369
|
+
* @param ids Идентификаторы заказов, товары которых необходимо перенести в базовый заказ.
|
|
6370
|
+
*
|
|
6371
|
+
* @see /doc/api/internal#/Заказы/api_internal_orders_merge
|
|
6372
|
+
*/
|
|
6373
|
+
mergeOrders(r, e) {
|
|
6374
|
+
return this.patch(`/internal/orders/${r}/merge`, { ids: e }, (s) => new d(s.data));
|
|
6375
|
+
}
|
|
6360
6376
|
/**
|
|
6361
6377
|
* Пересчитывает стоимость корзины указанного заказа и возвращает обновлённые данные заказа.
|
|
6362
6378
|
*
|
|
@@ -6389,12 +6405,12 @@ class Cs extends Ae {
|
|
|
6389
6405
|
* @see /doc/api/internal#/Заказы/api_internal_orders_update
|
|
6390
6406
|
*/
|
|
6391
6407
|
updateOrder(r, e, s = {}) {
|
|
6392
|
-
const n =
|
|
6408
|
+
const n = k().config.dateFormats.api;
|
|
6393
6409
|
return this.patch(
|
|
6394
6410
|
`/internal/orders/${r}`,
|
|
6395
6411
|
{
|
|
6396
6412
|
...e,
|
|
6397
|
-
deliveryDate: e.deliveryDate ?
|
|
6413
|
+
deliveryDate: e.deliveryDate ? I(e.deliveryDate, n) : void 0
|
|
6398
6414
|
},
|
|
6399
6415
|
(o) => new d(o.data),
|
|
6400
6416
|
s
|
|
@@ -6572,11 +6588,11 @@ class Cs extends Ae {
|
|
|
6572
6588
|
* @see /doc/api/internal#/operations/api_internal_orders_delivery_get_cost
|
|
6573
6589
|
*/
|
|
6574
6590
|
getDeliveryCost(r, e, s, n = void 0) {
|
|
6575
|
-
const o =
|
|
6591
|
+
const o = k().config.dateFormats.api;
|
|
6576
6592
|
return this.get(
|
|
6577
6593
|
`/internal/orders/delivery/${r}/cost`,
|
|
6578
6594
|
{
|
|
6579
|
-
date:
|
|
6595
|
+
date: I(e, o),
|
|
6580
6596
|
warehouse_id: s
|
|
6581
6597
|
},
|
|
6582
6598
|
(c) => c.data,
|
|
@@ -6693,7 +6709,7 @@ class Rs extends p {
|
|
|
6693
6709
|
);
|
|
6694
6710
|
}
|
|
6695
6711
|
}
|
|
6696
|
-
class
|
|
6712
|
+
class kt {
|
|
6697
6713
|
/**
|
|
6698
6714
|
* Инициализирует экземпляр класса {@link PriceHistoryItem}.
|
|
6699
6715
|
*
|
|
@@ -6743,7 +6759,7 @@ class It {
|
|
|
6743
6759
|
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? R(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new he(r.product) : void 0, this.client = r.client ? new _(r.client) : void 0, this.executor = r.executor ? new _(r.executor) : void 0, this.currency = r.currency ? new O(r.currency) : void 0;
|
|
6744
6760
|
}
|
|
6745
6761
|
}
|
|
6746
|
-
class
|
|
6762
|
+
class It extends he {
|
|
6747
6763
|
/**
|
|
6748
6764
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
6749
6765
|
*
|
|
@@ -6755,7 +6771,7 @@ class kt extends he {
|
|
|
6755
6771
|
* @inheritDoc
|
|
6756
6772
|
*/
|
|
6757
6773
|
t(this, "history");
|
|
6758
|
-
this.history = fe(e.history, (s) => new
|
|
6774
|
+
this.history = fe(e.history, (s) => new kt(s));
|
|
6759
6775
|
}
|
|
6760
6776
|
}
|
|
6761
6777
|
class Ps extends p {
|
|
@@ -6768,17 +6784,17 @@ class Ps extends p {
|
|
|
6768
6784
|
*/
|
|
6769
6785
|
getProductPriceHistory(r) {
|
|
6770
6786
|
var o, c, u, h, m;
|
|
6771
|
-
const e =
|
|
6787
|
+
const e = k().config.dateFormats.api, s = cr(
|
|
6772
6788
|
pe(r, {
|
|
6773
6789
|
costDate: {
|
|
6774
|
-
from: xe((o = r.costDate) == null ? void 0 : o.from) ?
|
|
6775
|
-
to: xe((u = r.costDate) == null ? void 0 : u.to) ?
|
|
6790
|
+
from: xe((o = r.costDate) == null ? void 0 : o.from) ? I(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
6791
|
+
to: xe((u = r.costDate) == null ? void 0 : u.to) ? I(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
|
|
6776
6792
|
}
|
|
6777
6793
|
}),
|
|
6778
6794
|
(f) => A(f) || (H(f) || lr(f)) && X(f)
|
|
6779
6795
|
), n = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
|
|
6780
6796
|
return delete s.product, this.get(`/internal/price/products/${n}/history`, s).then((f) => [
|
|
6781
|
-
new
|
|
6797
|
+
new It(pe(f[0], { history: f }))
|
|
6782
6798
|
]);
|
|
6783
6799
|
}
|
|
6784
6800
|
}
|
|
@@ -7014,7 +7030,7 @@ class Ts extends p {
|
|
|
7014
7030
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
7015
7031
|
*/
|
|
7016
7032
|
constructor() {
|
|
7017
|
-
super(), this.baseUrl = `${
|
|
7033
|
+
super(), this.baseUrl = `${k().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
|
|
7018
7034
|
}
|
|
7019
7035
|
/**
|
|
7020
7036
|
* Функция для получения обновленных токенов доступа.
|
|
@@ -7117,7 +7133,7 @@ export {
|
|
|
7117
7133
|
z as ContactPerson,
|
|
7118
7134
|
Ct as ContactPersonRelated,
|
|
7119
7135
|
ft as ContactPosition,
|
|
7120
|
-
|
|
7136
|
+
Ie as ContactRelation,
|
|
7121
7137
|
$r as ContragentBase,
|
|
7122
7138
|
Re as ContragentFactory,
|
|
7123
7139
|
Tr as ContragentIc,
|
|
@@ -7164,7 +7180,7 @@ export {
|
|
|
7164
7180
|
d as Order,
|
|
7165
7181
|
$t as OrderAction,
|
|
7166
7182
|
ws as OrderEditorData,
|
|
7167
|
-
|
|
7183
|
+
Ir as OrderInfo,
|
|
7168
7184
|
St as OrderItem,
|
|
7169
7185
|
fr as OrderItemBase,
|
|
7170
7186
|
yt as OrderPaymentStatus,
|
|
@@ -7184,12 +7200,12 @@ export {
|
|
|
7184
7200
|
Pe as PriceCoefficient,
|
|
7185
7201
|
gr as PriceCoefficientEnum,
|
|
7186
7202
|
Ps as PriceHistoryDataProvider,
|
|
7187
|
-
|
|
7203
|
+
kt as PriceHistoryItem,
|
|
7188
7204
|
Q as PriceTemplate,
|
|
7189
7205
|
de as PriceTemplateCategory,
|
|
7190
7206
|
oe as PriceTemplateClient,
|
|
7191
7207
|
wr as PriceTemplateICatalogableItem,
|
|
7192
|
-
|
|
7208
|
+
ke as PriceTemplateProduct,
|
|
7193
7209
|
rs as PriceTemplateProvider,
|
|
7194
7210
|
le as PricingRole,
|
|
7195
7211
|
ts as PricingRoleProvider,
|
|
@@ -7199,7 +7215,7 @@ export {
|
|
|
7199
7215
|
Xt as ProductDataProvider,
|
|
7200
7216
|
wt as ProductFileType,
|
|
7201
7217
|
je as ProductPriceCoefficient,
|
|
7202
|
-
|
|
7218
|
+
It as ProductPriceHistory,
|
|
7203
7219
|
Qe as ProductUnit,
|
|
7204
7220
|
ss as PropertiesProvider,
|
|
7205
7221
|
ce as Property,
|
|
@@ -7222,7 +7238,7 @@ export {
|
|
|
7222
7238
|
is as TemplateProductCategoryDataProvider,
|
|
7223
7239
|
Et as TemplatesListFilters,
|
|
7224
7240
|
Me as TypedInstanceFactory,
|
|
7225
|
-
|
|
7241
|
+
kr as UnitsHelper,
|
|
7226
7242
|
ps as UnknownClientDataProvider,
|
|
7227
7243
|
ur as UpdatableNamedIdentity,
|
|
7228
7244
|
xt as User,
|
|
@@ -7239,7 +7255,7 @@ export {
|
|
|
7239
7255
|
er as flattenCatalogItems,
|
|
7240
7256
|
fs as pluralize,
|
|
7241
7257
|
Se as useAuthStateStore,
|
|
7242
|
-
|
|
7258
|
+
k as useBaseConfigStateStore,
|
|
7243
7259
|
vs as useReferencesStore,
|
|
7244
7260
|
bs as useUserStateStore
|
|
7245
7261
|
};
|