@snabcentr/common-lib 1.49.2 → 1.50.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 +3 -3
- package/dist/sc-common-lib.js +375 -373
- 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/catalog/classes/discount-short-info.d.ts.map +1 -1
- package/dist/src/catalog/providers/properties-provider.d.ts +1 -0
- package/dist/src/catalog/providers/properties-provider.d.ts.map +1 -1
- package/dist/src/clients/classes/clients-list-filters.d.ts +4 -0
- package/dist/src/clients/classes/clients-list-filters.d.ts.map +1 -1
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts +4 -0
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts.map +1 -1
- package/dist/src/clients/providers/client-data-provider.d.ts +3 -1
- package/dist/src/clients/providers/client-data-provider.d.ts.map +1 -1
- package/dist/src/data-table/classes/data-table-pagination-request-params.d.ts +0 -6
- package/dist/src/data-table/classes/data-table-pagination-request-params.d.ts.map +1 -1
- package/dist/src/data-table/interfaces/i-pagination-request-params.d.ts +0 -6
- package/dist/src/data-table/interfaces/i-pagination-request-params.d.ts.map +1 -1
- package/dist/src/http/classes/http-base-cached-requester.d.ts +1 -3
- package/dist/src/http/classes/http-base-cached-requester.d.ts.map +1 -1
- package/dist/src/orders/providers/orders-data-provider.d.ts +1 -0
- package/dist/src/orders/providers/orders-data-provider.d.ts.map +1 -1
- package/dist/src/pagination/providers/base-pagination-provider.d.ts +5 -1
- package/dist/src/pagination/providers/base-pagination-provider.d.ts.map +1 -1
- package/dist/src/system/classes/deletable-named-identity.d.ts.map +1 -1
- package/dist/src/system/classes/updatable-named-identity.d.ts.map +1 -1
- package/dist/src/system/providers/typed-instance-factory.d.ts +2 -6
- package/dist/src/system/providers/typed-instance-factory.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var er = Object.defineProperty;
|
|
2
2
|
var rr = (n, r, e) => r in n ? er(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
3
|
var t = (n, r, e) => rr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
-
import { constant as tr, isUndefined as sr, isString as m, cloneDeep as ir, noop as y, toLower as nr, isNil as
|
|
5
|
-
import { parseISO as f, format as z, addSeconds as
|
|
6
|
-
import
|
|
7
|
-
import { objectToSnake as
|
|
4
|
+
import { constant as tr, isUndefined as sr, isString as m, cloneDeep as ir, noop as y, toLower as nr, isNil as Ue, isFunction as Ge, isDate as or, isEmpty as cr, map as ie, forEach as lr } from "lodash-es";
|
|
5
|
+
import { parseISO as f, format as z, addSeconds as pr, isAfter as ur, startOfToday as Me, addBusinessDays as hr, endOfTomorrow as gr, startOfTomorrow as mr, endOfYesterday as fr, startOfYesterday as yr, endOfToday as Cr, endOfDay as wr, startOfDay as vr } from "date-fns";
|
|
6
|
+
import Pr from "axios";
|
|
7
|
+
import { objectToSnake as ae, objectToCamel as Rr } from "ts-case-convert";
|
|
8
8
|
import { defineStore as he } from "pinia";
|
|
9
|
-
import { ref as w, computed as
|
|
10
|
-
class
|
|
9
|
+
import { ref as w, computed as v } from "vue";
|
|
10
|
+
class H {
|
|
11
11
|
/**
|
|
12
12
|
* Инициализирует экземпляр класса {@link Identity}.
|
|
13
13
|
*
|
|
@@ -31,7 +31,7 @@ class F {
|
|
|
31
31
|
return this.id === -1;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
class A extends
|
|
34
|
+
class A extends H {
|
|
35
35
|
/**
|
|
36
36
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
37
37
|
*
|
|
@@ -46,7 +46,7 @@ class A extends F {
|
|
|
46
46
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
class
|
|
49
|
+
class Fe extends A {
|
|
50
50
|
/**
|
|
51
51
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
52
52
|
*
|
|
@@ -69,7 +69,7 @@ class Me extends A {
|
|
|
69
69
|
this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
class Re extends
|
|
72
|
+
class Re extends Fe {
|
|
73
73
|
/**
|
|
74
74
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
75
75
|
*
|
|
@@ -107,7 +107,7 @@ class re extends Re {
|
|
|
107
107
|
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";
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
var
|
|
110
|
+
var He = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(He || {});
|
|
111
111
|
class C extends A {
|
|
112
112
|
/**
|
|
113
113
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
@@ -132,7 +132,7 @@ class ge extends C {
|
|
|
132
132
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
133
133
|
*/
|
|
134
134
|
static getRetailPriceCoefficient() {
|
|
135
|
-
return { id: -2, slug:
|
|
135
|
+
return { id: -2, slug: He.Retail, name: "Розничная цена", guid: "", isNewRec: tr(!0) };
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
class be {
|
|
@@ -165,7 +165,7 @@ class be {
|
|
|
165
165
|
this.coefficient = new ge(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;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
class
|
|
168
|
+
class de {
|
|
169
169
|
/**
|
|
170
170
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
171
171
|
*
|
|
@@ -214,10 +214,10 @@ class me extends C {
|
|
|
214
214
|
* Координаты склада.
|
|
215
215
|
*/
|
|
216
216
|
t(this, "coordinates");
|
|
217
|
-
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 E(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new
|
|
217
|
+
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 E(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new de(e == null ? void 0 : e.coordinates);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
class
|
|
220
|
+
class Dr {
|
|
221
221
|
/**
|
|
222
222
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
223
223
|
*
|
|
@@ -272,7 +272,7 @@ const W = class W {
|
|
|
272
272
|
*/
|
|
273
273
|
t(W, "config");
|
|
274
274
|
let a = W;
|
|
275
|
-
class
|
|
275
|
+
class $r extends Fe {
|
|
276
276
|
/**
|
|
277
277
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
278
278
|
*
|
|
@@ -287,7 +287,7 @@ class Ar extends Me {
|
|
|
287
287
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
class
|
|
290
|
+
class Ar {
|
|
291
291
|
/**
|
|
292
292
|
* Инициализирует экземпляр класса {@link Image}.
|
|
293
293
|
*
|
|
@@ -310,7 +310,7 @@ class Tr {
|
|
|
310
310
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
class
|
|
313
|
+
class I extends $r {
|
|
314
314
|
/**
|
|
315
315
|
* Инициализирует экземпляр класса {@link Product}.
|
|
316
316
|
*
|
|
@@ -383,9 +383,9 @@ class L extends Ar {
|
|
|
383
383
|
* Список коэффициентов цен на продукт.
|
|
384
384
|
*/
|
|
385
385
|
t(this, "priceCoefficients");
|
|
386
|
-
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 = m(e == null ? void 0 : e.costDate) ? f(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((
|
|
387
|
-
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((
|
|
388
|
-
s && (this.category = new Re({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((
|
|
386
|
+
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 = m(e == null ? void 0 : e.costDate) ? f(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((h) => new Dr(h))) ?? [], this.type = "product";
|
|
387
|
+
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
|
|
388
|
+
s && (this.category = new Re({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new Re(h))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((h) => new Ar(h, a.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((h) => new be(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
389
389
|
}
|
|
390
390
|
/**
|
|
391
391
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -395,7 +395,7 @@ class L extends Ar {
|
|
|
395
395
|
return [...e.linear, ...e.square].includes(this.unit);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
class
|
|
398
|
+
class Tr extends H {
|
|
399
399
|
/**
|
|
400
400
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
401
401
|
*
|
|
@@ -447,10 +447,10 @@ class br extends F {
|
|
|
447
447
|
* Признак того, что позиция является дополнительной продажей.
|
|
448
448
|
*/
|
|
449
449
|
t(this, "isAdditionalSale");
|
|
450
|
-
this.product = new
|
|
450
|
+
this.product = new I(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new re(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && ir(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
class
|
|
453
|
+
class br extends Tr {
|
|
454
454
|
/**
|
|
455
455
|
* Инициализирует экземпляр класса {@link CartItem}.
|
|
456
456
|
*
|
|
@@ -519,7 +519,7 @@ class se {
|
|
|
519
519
|
* Список итоговых сумм по направлениям продаж.
|
|
520
520
|
*/
|
|
521
521
|
t(this, "directionsSum");
|
|
522
|
-
this.items = r.items.map((e) => new
|
|
522
|
+
this.items = r.items.map((e) => new br(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
class _r {
|
|
@@ -611,7 +611,7 @@ class Lr {
|
|
|
611
611
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
class
|
|
614
|
+
class ar {
|
|
615
615
|
/**
|
|
616
616
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
617
617
|
*
|
|
@@ -633,7 +633,7 @@ class xr {
|
|
|
633
633
|
this.date = m(r == null ? void 0 : r.date) ? f(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";
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
class
|
|
636
|
+
class ut {
|
|
637
637
|
/**
|
|
638
638
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
639
639
|
*
|
|
@@ -690,14 +690,14 @@ class ht {
|
|
|
690
690
|
}, this.sentry = new Lr({
|
|
691
691
|
environment: this.environment,
|
|
692
692
|
...r == null ? void 0 : r.sentry
|
|
693
|
-
}), this.urls = r == null ? void 0 : r.urls, this.version = new
|
|
693
|
+
}), this.urls = r == null ? void 0 : r.urls, this.version = new ar(r == null ? void 0 : r.version), this.dateFormats = {
|
|
694
694
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
695
695
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
696
696
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
697
697
|
};
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
|
-
class
|
|
700
|
+
class _e {
|
|
701
701
|
/**
|
|
702
702
|
* Инициализирует экземпляр указанного класса.
|
|
703
703
|
*
|
|
@@ -716,7 +716,7 @@ class ae {
|
|
|
716
716
|
return new r(e);
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
const
|
|
719
|
+
const N = class N {
|
|
720
720
|
/**
|
|
721
721
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
722
722
|
*
|
|
@@ -737,7 +737,7 @@ const x = class x {
|
|
|
737
737
|
*/
|
|
738
738
|
t(this, "defaultInstanceNotificationErrorResponseHandler", y);
|
|
739
739
|
const s = a.getConfig().version;
|
|
740
|
-
this.defaultInstanceNotificationErrorResponseHandler =
|
|
740
|
+
this.defaultInstanceNotificationErrorResponseHandler = N.baseDefaultNotificationErrorResponseHandler, this.httpClient = Pr.create({
|
|
741
741
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
742
742
|
baseURL: r,
|
|
743
743
|
headers: {
|
|
@@ -747,12 +747,12 @@ const x = class x {
|
|
|
747
747
|
...e
|
|
748
748
|
}
|
|
749
749
|
}), this.httpClient.interceptors.request.use(
|
|
750
|
-
(i) => (i.method && (i.method === "get" && i.params && (i.params =
|
|
750
|
+
(i) => (i.method && (i.method === "get" && i.params && (i.params = ae(i.params)), ["put", "patch", "post"].includes(nr(i.method)) && i.data && (i.data = ae(i.data))), i),
|
|
751
751
|
(i) => Promise.reject(i)
|
|
752
752
|
), this.httpClient.interceptors.response.use(
|
|
753
|
-
(i) => (i.data && (i.data =
|
|
753
|
+
(i) => (i.data && (i.data = Rr(i.data)), i),
|
|
754
754
|
// Возвращаем изменённую структуру сообщения об ошибке.
|
|
755
|
-
(i) =>
|
|
755
|
+
(i) => N.convertHttpErrorResponse(i)
|
|
756
756
|
);
|
|
757
757
|
}
|
|
758
758
|
/**
|
|
@@ -761,7 +761,7 @@ const x = class x {
|
|
|
761
761
|
* @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
|
|
762
762
|
*/
|
|
763
763
|
static setBaseDefaultNotificationErrorResponseHandler(r) {
|
|
764
|
-
|
|
764
|
+
N.baseDefaultNotificationErrorResponseHandler = r;
|
|
765
765
|
}
|
|
766
766
|
/**
|
|
767
767
|
* Возвращает экземпляр объекта текущего класса.
|
|
@@ -769,7 +769,7 @@ const x = class x {
|
|
|
769
769
|
* @param type Тип данных, которыми оперирует метод.
|
|
770
770
|
*/
|
|
771
771
|
static getInstance(r) {
|
|
772
|
-
return Object.prototype.hasOwnProperty.call(
|
|
772
|
+
return Object.prototype.hasOwnProperty.call(N.instances, r.name) || (N.instances[r.name] = _e.simpleInstanceInitializer(r)), N.instances[r.name];
|
|
773
773
|
}
|
|
774
774
|
/**
|
|
775
775
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -864,15 +864,15 @@ const x = class x {
|
|
|
864
864
|
* Экземпляр объекта текущего класса.
|
|
865
865
|
*/
|
|
866
866
|
// eslint-disable-next-line no-use-before-define
|
|
867
|
-
t(
|
|
867
|
+
t(N, "instances", {}), /**
|
|
868
868
|
* Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
|
|
869
869
|
*
|
|
870
870
|
* Параметры:
|
|
871
871
|
* - error Данные об ошибке.
|
|
872
872
|
* - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
873
873
|
*/
|
|
874
|
-
t(
|
|
875
|
-
let De =
|
|
874
|
+
t(N, "baseDefaultNotificationErrorResponseHandler", y);
|
|
875
|
+
let De = N;
|
|
876
876
|
const j = class j extends De {
|
|
877
877
|
/**
|
|
878
878
|
* Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
|
|
@@ -908,7 +908,7 @@ const j = class j extends De {
|
|
|
908
908
|
*/
|
|
909
909
|
cacheResponse(e, s) {
|
|
910
910
|
j.responseDataCache.set(e, {
|
|
911
|
-
validTo:
|
|
911
|
+
validTo: pr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
912
912
|
val: s
|
|
913
913
|
});
|
|
914
914
|
}
|
|
@@ -924,7 +924,7 @@ const j = class j extends De {
|
|
|
924
924
|
getTypedDataArrayRequester(e, s, i = !1) {
|
|
925
925
|
const o = i ? j.getCachedResponse(s) : void 0;
|
|
926
926
|
return o ? Promise.resolve(o) : this.get(s).then((l) => {
|
|
927
|
-
const p = l.map((
|
|
927
|
+
const p = l.map((h) => _e.instanceInitializer(e, h));
|
|
928
928
|
return i && p && this.cacheResponse(s, p), p;
|
|
929
929
|
});
|
|
930
930
|
}
|
|
@@ -944,7 +944,7 @@ class u extends $e {
|
|
|
944
944
|
(s = r.devMode) != null && s.authBearerToken && (e.Authorization = `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
|
-
class
|
|
947
|
+
class ht extends u {
|
|
948
948
|
/**
|
|
949
949
|
* Возвращает содержимое корзины указанного клиента.
|
|
950
950
|
*
|
|
@@ -1047,8 +1047,8 @@ class gt extends u {
|
|
|
1047
1047
|
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new se(e.data));
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
|
-
var
|
|
1051
|
-
class
|
|
1050
|
+
var xr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(xr || {}), Se = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Se || {}), Ir = /* @__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))(Ir || {});
|
|
1051
|
+
class q extends re {
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Инициализирует экземпляр класса {@link Category}.
|
|
1054
1054
|
*
|
|
@@ -1065,7 +1065,7 @@ class d extends re {
|
|
|
1065
1065
|
* Список продуктов категории.
|
|
1066
1066
|
*/
|
|
1067
1067
|
t(this, "products");
|
|
1068
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new
|
|
1068
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new q(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
1071
|
class ze extends A {
|
|
@@ -1080,10 +1080,10 @@ class ze extends A {
|
|
|
1080
1080
|
* Дата и время последнего изменения.
|
|
1081
1081
|
*/
|
|
1082
1082
|
t(this, "updatedAt");
|
|
1083
|
-
this.updatedAt = e
|
|
1083
|
+
this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
|
-
class
|
|
1086
|
+
class kr extends ze {
|
|
1087
1087
|
/**
|
|
1088
1088
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1089
1089
|
*
|
|
@@ -1095,10 +1095,10 @@ class Nr extends ze {
|
|
|
1095
1095
|
* Дата и время последнего удаления.
|
|
1096
1096
|
*/
|
|
1097
1097
|
t(this, "deletedAt");
|
|
1098
|
-
this.deletedAt = e
|
|
1098
|
+
this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
class
|
|
1101
|
+
class gt {
|
|
1102
1102
|
/**
|
|
1103
1103
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
1104
1104
|
*
|
|
@@ -1109,7 +1109,7 @@ class mt {
|
|
|
1109
1109
|
if (e)
|
|
1110
1110
|
try {
|
|
1111
1111
|
const s = JSON.parse(e);
|
|
1112
|
-
if (
|
|
1112
|
+
if (ur(f(s.availableFor) || Me(), /* @__PURE__ */ new Date()))
|
|
1113
1113
|
return s.data || {};
|
|
1114
1114
|
} catch {
|
|
1115
1115
|
localStorage.removeItem(r);
|
|
@@ -1132,7 +1132,7 @@ class mt {
|
|
|
1132
1132
|
);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
|
-
class
|
|
1135
|
+
class U extends A {
|
|
1136
1136
|
/**
|
|
1137
1137
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
1138
1138
|
*
|
|
@@ -1147,7 +1147,7 @@ class q extends A {
|
|
|
1147
1147
|
this.type = e == null ? void 0 : e.type;
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
|
-
class
|
|
1150
|
+
class Nr extends A {
|
|
1151
1151
|
/**
|
|
1152
1152
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1153
1153
|
*
|
|
@@ -1183,7 +1183,7 @@ class Or extends A {
|
|
|
1183
1183
|
* Дата и время удаления.
|
|
1184
1184
|
*/
|
|
1185
1185
|
t(this, "deletedAt");
|
|
1186
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = e
|
|
1186
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = m(e == null ? void 0 : e.publishedAt) ? f(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 U(e == null ? void 0 : e.owner), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
1189
|
class B extends ze {
|
|
@@ -1205,7 +1205,7 @@ class B extends ze {
|
|
|
1205
1205
|
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
1208
|
-
class K extends
|
|
1208
|
+
class K extends I {
|
|
1209
1209
|
/**
|
|
1210
1210
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1211
1211
|
*
|
|
@@ -1241,10 +1241,10 @@ class K extends L {
|
|
|
1241
1241
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1242
1242
|
*/
|
|
1243
1243
|
t(this, "isFavorite");
|
|
1244
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ??
|
|
1244
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Se.Product, this.discount = e != null && e.discount ? new Nr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new B(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
|
-
class
|
|
1247
|
+
class Or {
|
|
1248
1248
|
/**
|
|
1249
1249
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1250
1250
|
*
|
|
@@ -1262,7 +1262,7 @@ class dr {
|
|
|
1262
1262
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
1263
1263
|
}
|
|
1264
1264
|
}
|
|
1265
|
-
class
|
|
1265
|
+
class O extends C {
|
|
1266
1266
|
}
|
|
1267
1267
|
class ne extends A {
|
|
1268
1268
|
/**
|
|
@@ -1275,7 +1275,7 @@ class ne extends A {
|
|
|
1275
1275
|
/**
|
|
1276
1276
|
* Направление продаж.
|
|
1277
1277
|
*/
|
|
1278
|
-
t(this, "salesDirection", new
|
|
1278
|
+
t(this, "salesDirection", new O());
|
|
1279
1279
|
/**
|
|
1280
1280
|
* URI путь к фотографии пользователя.
|
|
1281
1281
|
*/
|
|
@@ -1288,7 +1288,7 @@ class ne extends A {
|
|
|
1288
1288
|
* Признак того, что менеджер является основным для клиента.
|
|
1289
1289
|
*/
|
|
1290
1290
|
t(this, "isDefault");
|
|
1291
|
-
e && (this.salesDirection = new
|
|
1291
|
+
e && (this.salesDirection = new O(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Or(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
class fe extends ne {
|
|
@@ -1474,7 +1474,7 @@ class We extends A {
|
|
|
1474
1474
|
* Признак активности учетной записи пользователя.
|
|
1475
1475
|
*/
|
|
1476
1476
|
t(this, "isActive");
|
|
1477
|
-
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
|
|
1477
|
+
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 O(e.salesDirection) : void 0, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = m(e == null ? void 0 : e.lastLoginAt) ? f(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
1480
|
class te extends We {
|
|
@@ -1519,10 +1519,10 @@ class te extends We {
|
|
|
1519
1519
|
* Список менеджеров клиента.
|
|
1520
1520
|
*/
|
|
1521
1521
|
t(this, "managers");
|
|
1522
|
-
this.salesDirection = new
|
|
1522
|
+
this.salesDirection = new O(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 ce(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 ne(i))) ?? [];
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
1525
|
-
class Q extends
|
|
1525
|
+
class Q extends H {
|
|
1526
1526
|
/**
|
|
1527
1527
|
* Инициализирует новый экземпляр класса.
|
|
1528
1528
|
*
|
|
@@ -1561,7 +1561,7 @@ class we extends Be {
|
|
|
1561
1561
|
* Базовые данные о продукте.
|
|
1562
1562
|
*/
|
|
1563
1563
|
t(this, "product");
|
|
1564
|
-
this.product = new
|
|
1564
|
+
this.product = new I(e == null ? void 0 : e.product);
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
1567
|
class je extends C {
|
|
@@ -1589,7 +1589,7 @@ class Y extends A {
|
|
|
1589
1589
|
this.type = new je(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
|
-
class
|
|
1592
|
+
class d {
|
|
1593
1593
|
/**
|
|
1594
1594
|
* Инициализирует экземпляр класса {@link PropertyValue}.
|
|
1595
1595
|
*
|
|
@@ -1612,7 +1612,7 @@ class Ur extends C {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
class Ve extends C {
|
|
1614
1614
|
}
|
|
1615
|
-
class
|
|
1615
|
+
class mt extends C {
|
|
1616
1616
|
}
|
|
1617
1617
|
class Gr extends C {
|
|
1618
1618
|
}
|
|
@@ -1635,16 +1635,16 @@ class le extends A {
|
|
|
1635
1635
|
e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
var
|
|
1639
|
-
class
|
|
1638
|
+
var x = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(x || {});
|
|
1639
|
+
class G extends C {
|
|
1640
1640
|
/**
|
|
1641
1641
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
1642
1642
|
*/
|
|
1643
1643
|
static generatePersonItem() {
|
|
1644
|
-
return new
|
|
1644
|
+
return new G({
|
|
1645
1645
|
id: 1,
|
|
1646
1646
|
guid: "",
|
|
1647
|
-
slug:
|
|
1647
|
+
slug: x.Person,
|
|
1648
1648
|
name: ""
|
|
1649
1649
|
});
|
|
1650
1650
|
}
|
|
@@ -1653,17 +1653,17 @@ class Mr extends C {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
class Fr extends C {
|
|
1655
1655
|
}
|
|
1656
|
-
class
|
|
1656
|
+
class M extends C {
|
|
1657
1657
|
}
|
|
1658
1658
|
class Hr extends C {
|
|
1659
1659
|
}
|
|
1660
|
-
class
|
|
1660
|
+
class dr extends C {
|
|
1661
1661
|
}
|
|
1662
1662
|
class Ee extends C {
|
|
1663
1663
|
}
|
|
1664
1664
|
class Ke extends C {
|
|
1665
1665
|
}
|
|
1666
|
-
class
|
|
1666
|
+
class R extends u {
|
|
1667
1667
|
/**
|
|
1668
1668
|
* Возвращает {@link Promise} для получения данных указанного справочника.
|
|
1669
1669
|
*
|
|
@@ -1698,13 +1698,13 @@ class D extends u {
|
|
|
1698
1698
|
* групп партнеров (направлений деятельности).
|
|
1699
1699
|
*/
|
|
1700
1700
|
getPartnerGroup() {
|
|
1701
|
-
return this.getTypedDataArrayRequester(
|
|
1701
|
+
return this.getTypedDataArrayRequester(M, "/internal/references/partner-group", !0);
|
|
1702
1702
|
}
|
|
1703
1703
|
/**
|
|
1704
1704
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
1705
1705
|
*/
|
|
1706
1706
|
getOpf() {
|
|
1707
|
-
return this.getTypedDataArrayRequester(
|
|
1707
|
+
return this.getTypedDataArrayRequester(G, "/public/references/opf", !0);
|
|
1708
1708
|
}
|
|
1709
1709
|
/**
|
|
1710
1710
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
@@ -1734,7 +1734,7 @@ class D extends u {
|
|
|
1734
1734
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
1735
1735
|
*/
|
|
1736
1736
|
getSalesDirections() {
|
|
1737
|
-
return this.getTypedDataArrayRequester(
|
|
1737
|
+
return this.getTypedDataArrayRequester(O, "/public/references/sales-direction", !0);
|
|
1738
1738
|
}
|
|
1739
1739
|
/**
|
|
1740
1740
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
@@ -1794,11 +1794,11 @@ class D extends u {
|
|
|
1794
1794
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
1795
1795
|
*/
|
|
1796
1796
|
getProductFileType() {
|
|
1797
|
-
return this.getTypedDataArrayRequester(
|
|
1797
|
+
return this.getTypedDataArrayRequester(dr, "/public/references/product-file-type", !0);
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
1800
|
-
var
|
|
1801
|
-
class
|
|
1800
|
+
var zr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(zr || {});
|
|
1801
|
+
class Br extends We {
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Инициализирует экземпляр класса {@link User}.
|
|
1804
1804
|
*
|
|
@@ -1821,16 +1821,16 @@ class Wr extends We {
|
|
|
1821
1821
|
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;
|
|
1822
1822
|
}
|
|
1823
1823
|
}
|
|
1824
|
-
class
|
|
1824
|
+
class Wr extends u {
|
|
1825
1825
|
/**
|
|
1826
1826
|
* Возвращает данные о текущем пользователе.
|
|
1827
1827
|
*/
|
|
1828
1828
|
// eslint-disable-next-line class-methods-use-this
|
|
1829
1829
|
getCurrentUser() {
|
|
1830
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
1830
|
+
return this.get("/internal/users/info", {}, (r) => new Br(r.data));
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
|
-
class
|
|
1833
|
+
class jr {
|
|
1834
1834
|
/**
|
|
1835
1835
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
1836
1836
|
*
|
|
@@ -1873,7 +1873,7 @@ class Vr {
|
|
|
1873
1873
|
* Данные о валюте.
|
|
1874
1874
|
*/
|
|
1875
1875
|
t(this, "currency");
|
|
1876
|
-
this.cost = r.cost, this.costDate = m(r.costDate) ? f(r.costDate) : r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new
|
|
1876
|
+
this.cost = r.cost, this.costDate = m(r.costDate) ? f(r.costDate) : r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new U(r.client) : void 0, this.executor = r.executor ? new U(r.executor) : void 0, this.currency = r.currency ? new le(r.currency) : void 0;
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
1879
1879
|
class xe {
|
|
@@ -1891,7 +1891,7 @@ class xe {
|
|
|
1891
1891
|
* Список рекомендованных категорий продуктов.
|
|
1892
1892
|
*/
|
|
1893
1893
|
t(this, "productCategories", []);
|
|
1894
|
-
r != null && r.products && (this.products = r.products.map((e) => new
|
|
1894
|
+
r != null && r.products && (this.products = r.products.map((e) => new I(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new q(e)));
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
1897
1897
|
class X extends A {
|
|
@@ -1951,8 +1951,8 @@ class Ie {
|
|
|
1951
1951
|
this.role = new X(r == null ? void 0 : r.role), this.category = new re(r == null ? void 0 : r.category), this.minCoefficient = new ge(r == null ? void 0 : r.minCoefficient);
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
1954
|
-
var
|
|
1955
|
-
class Ae extends
|
|
1954
|
+
var Vr = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n))(Vr || {});
|
|
1955
|
+
class Ae extends H {
|
|
1956
1956
|
/**
|
|
1957
1957
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
1958
1958
|
*
|
|
@@ -2002,7 +2002,7 @@ class Te extends A {
|
|
|
2002
2002
|
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;
|
|
2003
2003
|
}
|
|
2004
2004
|
}
|
|
2005
|
-
class
|
|
2005
|
+
class F extends Te {
|
|
2006
2006
|
/**
|
|
2007
2007
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
2008
2008
|
*
|
|
@@ -2053,15 +2053,15 @@ class Je extends A {
|
|
|
2053
2053
|
/**
|
|
2054
2054
|
* Данные об организационно-правовой форме.
|
|
2055
2055
|
*/
|
|
2056
|
-
t(this, "opf",
|
|
2056
|
+
t(this, "opf", G.generatePersonItem());
|
|
2057
2057
|
/**
|
|
2058
2058
|
* Направление продаж.
|
|
2059
2059
|
*/
|
|
2060
|
-
t(this, "salesDirection", new
|
|
2060
|
+
t(this, "salesDirection", new O());
|
|
2061
2061
|
/**
|
|
2062
2062
|
* Группа партнеров (направление деятельности).
|
|
2063
2063
|
*/
|
|
2064
|
-
t(this, "partnerGroup", new
|
|
2064
|
+
t(this, "partnerGroup", new M());
|
|
2065
2065
|
/**
|
|
2066
2066
|
* Список контактных лиц контрагента.
|
|
2067
2067
|
*/
|
|
@@ -2095,10 +2095,10 @@ class Je extends A {
|
|
|
2095
2095
|
*/
|
|
2096
2096
|
t(this, "updater");
|
|
2097
2097
|
if (e) {
|
|
2098
|
-
if (this.opf = new
|
|
2098
|
+
if (this.opf = new G(e.opf), this.salesDirection = new O(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new U(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new M(e.partnerGroup)), e.manager && (this.manager = new ne(e.manager)), e.contacts) {
|
|
2099
2099
|
const s = [];
|
|
2100
2100
|
e.contacts.forEach((i) => {
|
|
2101
|
-
s.push(new
|
|
2101
|
+
s.push(new F(i));
|
|
2102
2102
|
}), this.contacts = s;
|
|
2103
2103
|
}
|
|
2104
2104
|
if (e.bankAccounts) {
|
|
@@ -2110,7 +2110,7 @@ class Je extends A {
|
|
|
2110
2110
|
}
|
|
2111
2111
|
}
|
|
2112
2112
|
}
|
|
2113
|
-
class
|
|
2113
|
+
class Er extends Je {
|
|
2114
2114
|
/**
|
|
2115
2115
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
2116
2116
|
*
|
|
@@ -2178,7 +2178,7 @@ class Ye extends Qe {
|
|
|
2178
2178
|
e && (this.kpp = e.kpp ?? "");
|
|
2179
2179
|
}
|
|
2180
2180
|
}
|
|
2181
|
-
class
|
|
2181
|
+
class Kr extends Ye {
|
|
2182
2182
|
/**
|
|
2183
2183
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
2184
2184
|
*
|
|
@@ -2209,18 +2209,18 @@ class pe {
|
|
|
2209
2209
|
*/
|
|
2210
2210
|
static createInstance(r) {
|
|
2211
2211
|
switch (r.opf.slug) {
|
|
2212
|
-
case
|
|
2212
|
+
case x.Ic:
|
|
2213
2213
|
return new Qe(r);
|
|
2214
|
-
case
|
|
2214
|
+
case x.UlR:
|
|
2215
2215
|
return new Ye(r);
|
|
2216
|
-
case
|
|
2217
|
-
return new Jr(r);
|
|
2218
|
-
default:
|
|
2216
|
+
case x.UlNr:
|
|
2219
2217
|
return new Kr(r);
|
|
2218
|
+
default:
|
|
2219
|
+
return new Er(r);
|
|
2220
2220
|
}
|
|
2221
2221
|
}
|
|
2222
2222
|
}
|
|
2223
|
-
class ve extends
|
|
2223
|
+
class ve extends H {
|
|
2224
2224
|
/**
|
|
2225
2225
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
2226
2226
|
*
|
|
@@ -2235,7 +2235,7 @@ class ve extends F {
|
|
|
2235
2235
|
this.isPrimary = e.isPrimary;
|
|
2236
2236
|
}
|
|
2237
2237
|
}
|
|
2238
|
-
class
|
|
2238
|
+
class Jr extends F {
|
|
2239
2239
|
/**
|
|
2240
2240
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
2241
2241
|
*
|
|
@@ -2263,7 +2263,7 @@ class Qr extends M {
|
|
|
2263
2263
|
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new ve(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new ve(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new ve(s))));
|
|
2264
2264
|
}
|
|
2265
2265
|
}
|
|
2266
|
-
class ue extends
|
|
2266
|
+
class ue extends kr {
|
|
2267
2267
|
/**
|
|
2268
2268
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
2269
2269
|
*
|
|
@@ -2300,7 +2300,7 @@ class ue extends Nr {
|
|
|
2300
2300
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
2301
2301
|
*/
|
|
2302
2302
|
t(this, "isTransportCompanyAddress");
|
|
2303
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
2303
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new de(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new F(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;
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
2306
|
class ke extends te {
|
|
@@ -2357,10 +2357,10 @@ class ke extends te {
|
|
|
2357
2357
|
* Дополнительные данные о клиенте.
|
|
2358
2358
|
*/
|
|
2359
2359
|
t(this, "extraData");
|
|
2360
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => pe.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new
|
|
2360
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => pe.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new M(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new ue(p))) ?? [], this.channelPrimaryInterest = new Ve(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ke(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new E(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 me(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
2363
|
-
class
|
|
2363
|
+
class ft {
|
|
2364
2364
|
/**
|
|
2365
2365
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
2366
2366
|
*
|
|
@@ -2379,6 +2379,10 @@ class yt {
|
|
|
2379
2379
|
* Альтернативное название клиента.
|
|
2380
2380
|
*/
|
|
2381
2381
|
t(this, "alternativeName");
|
|
2382
|
+
/**
|
|
2383
|
+
* Строка запроса для поиска клиентов.
|
|
2384
|
+
*/
|
|
2385
|
+
t(this, "searchTerm");
|
|
2382
2386
|
/**
|
|
2383
2387
|
* Данные о городе.
|
|
2384
2388
|
*/
|
|
@@ -2457,17 +2461,17 @@ class yt {
|
|
|
2457
2461
|
* Данные о параметрах поиска последнего заказа который сделал пользователь.
|
|
2458
2462
|
*/
|
|
2459
2463
|
t(this, "lastOrder");
|
|
2460
|
-
var e, s, i, o, l, p,
|
|
2461
|
-
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.city = new ce(r == null ? void 0 : r.city), this.region = new Z(r == null ? void 0 : r.region), this.country = new J(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 = {
|
|
2462
|
-
from: m((e = r == null ? void 0 : r.createdAt) == null ? void 0 : e.from) ? f((s = r == null ? void 0 : r.createdAt) == null ? void 0 : s.from) : null,
|
|
2463
|
-
to: m((
|
|
2464
|
+
var e, s, i, o, l, p, h, D, $, T, b, _, S, L, k;
|
|
2465
|
+
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.city = new ce(r == null ? void 0 : r.city), this.region = new Z(r == null ? void 0 : r.region), this.country = new J(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 = {
|
|
2466
|
+
from: m((e = r == null ? void 0 : r.createdAt) == null ? void 0 : e.from) ? f((s = r == null ? void 0 : r.createdAt) == null ? void 0 : s.from) : (i = r == null ? void 0 : r.createdAt) == null ? void 0 : i.from,
|
|
2467
|
+
to: m((o = r == null ? void 0 : r.createdAt) == null ? void 0 : o.to) ? f((l = r == null ? void 0 : r.createdAt) == null ? void 0 : l.to) : (p = r == null ? void 0 : r.createdAt) == null ? void 0 : p.to
|
|
2464
2468
|
}, this.lastLoginDate = {
|
|
2465
|
-
from: m((
|
|
2466
|
-
to: m((
|
|
2467
|
-
}, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((
|
|
2468
|
-
createdAt: (
|
|
2469
|
-
creator: (
|
|
2470
|
-
isApproved: (
|
|
2469
|
+
from: m((h = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : h.from) ? f((D = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : D.from) : ($ = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : $.from,
|
|
2470
|
+
to: m((T = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : T.to) ? f((b = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : b.to) : (_ = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : _.to
|
|
2471
|
+
}, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((c) => new fe(c)) : [], this.salesDirection = new O(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new G(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new E(r == null ? void 0 : r.preferredDeliveryType), this.hasCostLessThenStop = r != null && r.hasCostLessThenStop ? !0 : void 0, this.partnerGroup = new M(r == null ? void 0 : r.partnerGroup), this.contact = new Te(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
2472
|
+
createdAt: (S = r == null ? void 0 : r.lastOrder) == null ? void 0 : S.createdAt,
|
|
2473
|
+
creator: (L = r == null ? void 0 : r.lastOrder) == null ? void 0 : L.creator,
|
|
2474
|
+
isApproved: (k = r == null ? void 0 : r.lastOrder) == null ? void 0 : k.isApproved
|
|
2471
2475
|
};
|
|
2472
2476
|
}
|
|
2473
2477
|
/**
|
|
@@ -2482,6 +2486,7 @@ class yt {
|
|
|
2482
2486
|
case "email":
|
|
2483
2487
|
case "name":
|
|
2484
2488
|
case "alternativeName":
|
|
2489
|
+
case "searchTerm":
|
|
2485
2490
|
case "contragentInn":
|
|
2486
2491
|
this[r] = "";
|
|
2487
2492
|
break;
|
|
@@ -2510,16 +2515,16 @@ class yt {
|
|
|
2510
2515
|
this.managers = [];
|
|
2511
2516
|
break;
|
|
2512
2517
|
case "salesDirection":
|
|
2513
|
-
this.salesDirection = new
|
|
2518
|
+
this.salesDirection = new O();
|
|
2514
2519
|
break;
|
|
2515
2520
|
case "contragentType":
|
|
2516
|
-
this.contragentType = new
|
|
2521
|
+
this.contragentType = new G();
|
|
2517
2522
|
break;
|
|
2518
2523
|
case "preferredDeliveryType":
|
|
2519
2524
|
this.preferredDeliveryType = new E();
|
|
2520
2525
|
break;
|
|
2521
2526
|
case "partnerGroup":
|
|
2522
|
-
this.partnerGroup = new
|
|
2527
|
+
this.partnerGroup = new M();
|
|
2523
2528
|
break;
|
|
2524
2529
|
case "hasCostLessThenStop":
|
|
2525
2530
|
this.hasCostLessThenStop = void 0;
|
|
@@ -2540,11 +2545,11 @@ class yt {
|
|
|
2540
2545
|
return Object.keys(this).forEach((l) => {
|
|
2541
2546
|
const p = this[l];
|
|
2542
2547
|
// eslint-disable-next-line prettier/prettier
|
|
2543
|
-
|
|
2548
|
+
Ue(p) || m(p) && p.trim().length === 0 || Ge(p.isNewRec) && p.isNewRec() || (r[l] = p);
|
|
2544
2549
|
}), !((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;
|
|
2545
2550
|
}
|
|
2546
2551
|
}
|
|
2547
|
-
class Xe extends
|
|
2552
|
+
class Xe extends H {
|
|
2548
2553
|
/**
|
|
2549
2554
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
2550
2555
|
*
|
|
@@ -2564,7 +2569,7 @@ class Xe extends F {
|
|
|
2564
2569
|
* Признак того, что заказ подтвержден в 1С.
|
|
2565
2570
|
*/
|
|
2566
2571
|
t(this, "isApproved1c");
|
|
2567
|
-
this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new
|
|
2572
|
+
this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new U(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
2568
2573
|
}
|
|
2569
2574
|
}
|
|
2570
2575
|
class Ze extends Xe {
|
|
@@ -2574,7 +2579,7 @@ class Ze extends Xe {
|
|
|
2574
2579
|
* @param data Данные для первоначальной инициализации.
|
|
2575
2580
|
*/
|
|
2576
2581
|
constructor(e) {
|
|
2577
|
-
var s, i, o, l, p,
|
|
2582
|
+
var s, i, o, l, p, h, D, $;
|
|
2578
2583
|
super(e);
|
|
2579
2584
|
/**
|
|
2580
2585
|
* Краткие данные о клиенте.
|
|
@@ -2622,13 +2627,13 @@ class Ze extends Xe {
|
|
|
2622
2627
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
2623
2628
|
}, this.delivery = {
|
|
2624
2629
|
type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
|
|
2625
|
-
date: m((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? f(e.delivery.date) : ((
|
|
2626
|
-
address: (
|
|
2630
|
+
date: m((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? f(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
|
|
2631
|
+
address: (D = e == null ? void 0 : e.delivery) != null && D.address ? new ue(e.delivery.address) : void 0,
|
|
2627
2632
|
warehouse: ($ = e == null ? void 0 : e.delivery) != null && $.warehouse ? new me(e.delivery.warehouse) : void 0
|
|
2628
|
-
}, this.attachedUser = new
|
|
2633
|
+
}, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new O(e == null ? void 0 : e.salesDirection), this.pendingAt = m(e == null ? void 0 : e.pendingAt) ? f(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? f(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;
|
|
2629
2634
|
}
|
|
2630
2635
|
}
|
|
2631
|
-
class
|
|
2636
|
+
class Qr extends H {
|
|
2632
2637
|
/**
|
|
2633
2638
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
2634
2639
|
*
|
|
@@ -2711,7 +2716,7 @@ class Yr extends F {
|
|
|
2711
2716
|
this.product = new K(e.product), this.quantity = e.quantity, this.currency = e.currency, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing;
|
|
2712
2717
|
}
|
|
2713
2718
|
}
|
|
2714
|
-
class
|
|
2719
|
+
class Yr extends Ze {
|
|
2715
2720
|
/**
|
|
2716
2721
|
* Инициализирует экземпляр класса {@link Order}.
|
|
2717
2722
|
*
|
|
@@ -2751,10 +2756,10 @@ class Xr extends Ze {
|
|
|
2751
2756
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
2752
2757
|
*/
|
|
2753
2758
|
t(this, "isAllowProcessingWithoutPayment");
|
|
2754
|
-
this.products = (e.products ?? []).map((s) => new
|
|
2759
|
+
this.products = (e.products ?? []).map((s) => new Qr(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? pe.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new C(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
2755
2760
|
}
|
|
2756
2761
|
}
|
|
2757
|
-
var
|
|
2762
|
+
var Le = /* @__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))(Le || {});
|
|
2758
2763
|
class Ne {
|
|
2759
2764
|
/**
|
|
2760
2765
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
@@ -2774,7 +2779,7 @@ class Ne {
|
|
|
2774
2779
|
* Значение с которым сравнивается поле.
|
|
2775
2780
|
*/
|
|
2776
2781
|
t(this, "value");
|
|
2777
|
-
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ??
|
|
2782
|
+
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Le.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2778
2783
|
}
|
|
2779
2784
|
/**
|
|
2780
2785
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -2819,7 +2824,7 @@ class ee {
|
|
|
2819
2824
|
toPrimitive() {
|
|
2820
2825
|
return {
|
|
2821
2826
|
groupOp: this.groupOp,
|
|
2822
|
-
filters: this.filters.map((r) => r instanceof Ne &&
|
|
2827
|
+
filters: this.filters.map((r) => r instanceof Ne && Ge(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2823
2828
|
groups: this.groups.map((r) => r instanceof ee ? r.toPrimitive() : r)
|
|
2824
2829
|
};
|
|
2825
2830
|
}
|
|
@@ -2832,30 +2837,30 @@ class ye extends u {
|
|
|
2832
2837
|
* @param filters Параметры фильтрации.
|
|
2833
2838
|
* @param sortParams Параметры сортировки.
|
|
2834
2839
|
* @param paginationParams Параметры пагинации.
|
|
2840
|
+
* @param extraParams Дополнительные параметры запроса.
|
|
2835
2841
|
* @param successHandler Обработчик успешного выполнения запроса.
|
|
2836
2842
|
* @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
|
|
2837
2843
|
*/
|
|
2838
|
-
getPaginated(r, e, s, i, o, l) {
|
|
2839
|
-
|
|
2844
|
+
getPaginated(r, e, s, i, o, l, p) {
|
|
2845
|
+
let h = {
|
|
2840
2846
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2841
|
-
|
|
2847
|
+
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2842
2848
|
};
|
|
2843
|
-
return e && (
|
|
2844
|
-
p[`sort[${v}][field]`] = g.field, p[`sort[${v}][direction]`] = g.direction;
|
|
2845
|
-
}), this.get(r, p, o, l);
|
|
2849
|
+
return e && (h.filters = JSON.stringify((e instanceof ee ? e : new ee(e)).toPrimitive())), cr(s) || (h.sort = s), o && (h = { ...h, ...o }), this.get(r, h, l, p);
|
|
2846
2850
|
}
|
|
2847
2851
|
}
|
|
2848
|
-
class
|
|
2852
|
+
class yt extends ye {
|
|
2849
2853
|
/**
|
|
2850
2854
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
2851
2855
|
*
|
|
2852
2856
|
* @param filters Параметры фильтрации данных.
|
|
2853
2857
|
* @param sortParams Параметры сортировки.
|
|
2854
2858
|
* @param paginationParams Параметры пагинации.
|
|
2859
|
+
*
|
|
2855
2860
|
* @see /doc/api/internal#/Заказы/api_internal_orders_get_list
|
|
2856
2861
|
*/
|
|
2857
2862
|
getOrders(r, e, s) {
|
|
2858
|
-
return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, (i) => {
|
|
2863
|
+
return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
|
|
2859
2864
|
const o = { ...i.data };
|
|
2860
2865
|
return o.data = o.data.map((l) => new Ze(l)), o;
|
|
2861
2866
|
});
|
|
@@ -2875,10 +2880,10 @@ class Ct extends ye {
|
|
|
2875
2880
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
2876
2881
|
*/
|
|
2877
2882
|
getOrder(r) {
|
|
2878
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
2883
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new Yr(e.data));
|
|
2879
2884
|
}
|
|
2880
2885
|
}
|
|
2881
|
-
class
|
|
2886
|
+
class Xr extends A {
|
|
2882
2887
|
/**
|
|
2883
2888
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
2884
2889
|
*
|
|
@@ -2903,10 +2908,10 @@ class Zr extends A {
|
|
|
2903
2908
|
* Данные о последнем заказе клиента.
|
|
2904
2909
|
*/
|
|
2905
2910
|
t(this, "lastOrder");
|
|
2906
|
-
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new
|
|
2911
|
+
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new Xe(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new M(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new E(e.preferredDeliveryType));
|
|
2907
2912
|
}
|
|
2908
2913
|
}
|
|
2909
|
-
class
|
|
2914
|
+
class Zr {
|
|
2910
2915
|
/**
|
|
2911
2916
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
2912
2917
|
*
|
|
@@ -2919,18 +2924,12 @@ class et {
|
|
|
2919
2924
|
t(this, "page", 1);
|
|
2920
2925
|
/**
|
|
2921
2926
|
* Количество записей на странице.
|
|
2922
|
-
*
|
|
2923
|
-
* @deprecated Используйте {@link perPage} вместо.
|
|
2924
2927
|
*/
|
|
2925
2928
|
t(this, "pageSize", 50);
|
|
2926
|
-
|
|
2927
|
-
* Количество записей на странице.
|
|
2928
|
-
*/
|
|
2929
|
-
t(this, "perPage", 50);
|
|
2930
|
-
this.page = (r == null ? void 0 : r.page) ?? 1, this.perPage = (r == null ? void 0 : r.perPage) ?? 50, this.pageSize = (r == null ? void 0 : r.pageSize) ?? this.perPage;
|
|
2929
|
+
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
2931
2930
|
}
|
|
2932
2931
|
}
|
|
2933
|
-
class
|
|
2932
|
+
class Ct extends Zr {
|
|
2934
2933
|
/**
|
|
2935
2934
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
2936
2935
|
*
|
|
@@ -2961,7 +2960,7 @@ class wt extends et {
|
|
|
2961
2960
|
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;
|
|
2962
2961
|
}
|
|
2963
2962
|
}
|
|
2964
|
-
class
|
|
2963
|
+
class wt {
|
|
2965
2964
|
/**
|
|
2966
2965
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
2967
2966
|
*
|
|
@@ -2979,7 +2978,7 @@ class vt {
|
|
|
2979
2978
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
2980
2979
|
}
|
|
2981
2980
|
}
|
|
2982
|
-
class
|
|
2981
|
+
class vt extends ye {
|
|
2983
2982
|
/**
|
|
2984
2983
|
* Возвращает данные об указанном клиенте.
|
|
2985
2984
|
*
|
|
@@ -2995,12 +2994,14 @@ class Pt extends ye {
|
|
|
2995
2994
|
* @param filters Параметры фильтрации данных.
|
|
2996
2995
|
* @param sortParams Параметры сортировки.
|
|
2997
2996
|
* @param paginationParams Параметры пагинации.
|
|
2997
|
+
* @param extraParams Дополнительные параметры запроса.
|
|
2998
|
+
*
|
|
2998
2999
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_list
|
|
2999
3000
|
*/
|
|
3000
|
-
getClientsList(r, e, s) {
|
|
3001
|
-
return this.getPaginated("/internal/clients", r, e, s, (
|
|
3002
|
-
const
|
|
3003
|
-
return
|
|
3001
|
+
getClientsList(r, e, s, i) {
|
|
3002
|
+
return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
|
|
3003
|
+
const l = { ...o.data };
|
|
3004
|
+
return l.data = l.data.map((p) => new te(p)), l;
|
|
3004
3005
|
});
|
|
3005
3006
|
}
|
|
3006
3007
|
/**
|
|
@@ -3013,7 +3014,7 @@ class Pt extends ye {
|
|
|
3013
3014
|
return this.getClientsList({
|
|
3014
3015
|
groupOp: "and",
|
|
3015
3016
|
groups: [],
|
|
3016
|
-
filters: [{ field: "phone", op:
|
|
3017
|
+
filters: [{ field: "phone", op: Le.Contains, value: r }]
|
|
3017
3018
|
});
|
|
3018
3019
|
}
|
|
3019
3020
|
/**
|
|
@@ -3026,7 +3027,7 @@ class Pt extends ye {
|
|
|
3026
3027
|
getAdditionalClientsData(r, e) {
|
|
3027
3028
|
return this.post("/internal/clients/additional-data", { clients: r, requested_data_types: e }, (s) => {
|
|
3028
3029
|
let i = [];
|
|
3029
|
-
return (s == null ? void 0 : s.data.length) > 0 && (i = s.data.map((o) => new
|
|
3030
|
+
return (s == null ? void 0 : s.data.length) > 0 && (i = s.data.map((o) => new Xr(o))), i;
|
|
3030
3031
|
});
|
|
3031
3032
|
}
|
|
3032
3033
|
/**
|
|
@@ -3038,7 +3039,7 @@ class Pt extends ye {
|
|
|
3038
3039
|
getAllClientContacts(r) {
|
|
3039
3040
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
3040
3041
|
let s = [];
|
|
3041
|
-
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new
|
|
3042
|
+
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Jr(i))), s;
|
|
3042
3043
|
});
|
|
3043
3044
|
}
|
|
3044
3045
|
/**
|
|
@@ -3178,17 +3179,17 @@ class Pt extends ye {
|
|
|
3178
3179
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
|
|
3179
3180
|
*/
|
|
3180
3181
|
createContragentClientData(r, e, s = {}) {
|
|
3181
|
-
var
|
|
3182
|
+
var h, D, $, T, b, _, S, L;
|
|
3182
3183
|
let i;
|
|
3183
3184
|
const o = e, l = e, p = e;
|
|
3184
3185
|
switch (e.opf.slug) {
|
|
3185
|
-
case
|
|
3186
|
+
case x.Ic:
|
|
3186
3187
|
i = {
|
|
3187
3188
|
opf: o.opf.slug,
|
|
3188
3189
|
name: o.name,
|
|
3189
3190
|
alternative_name: o.alternativeName,
|
|
3190
|
-
partner_group_id: (
|
|
3191
|
-
manager_id: (
|
|
3191
|
+
partner_group_id: (h = o.partnerGroup) == null ? void 0 : h.id,
|
|
3192
|
+
manager_id: (D = o.manager) == null ? void 0 : D.id,
|
|
3192
3193
|
comment: o.comment,
|
|
3193
3194
|
inn: o.inn,
|
|
3194
3195
|
okpo: o.okpo,
|
|
@@ -3200,7 +3201,7 @@ class Pt extends ye {
|
|
|
3200
3201
|
actual_address: o.actualAddress
|
|
3201
3202
|
};
|
|
3202
3203
|
break;
|
|
3203
|
-
case
|
|
3204
|
+
case x.UlR:
|
|
3204
3205
|
i = {
|
|
3205
3206
|
opf: l.opf.slug,
|
|
3206
3207
|
name: l.name,
|
|
@@ -3219,7 +3220,7 @@ class Pt extends ye {
|
|
|
3219
3220
|
actual_address: l.actualAddress
|
|
3220
3221
|
};
|
|
3221
3222
|
break;
|
|
3222
|
-
case
|
|
3223
|
+
case x.UlNr:
|
|
3223
3224
|
i = {
|
|
3224
3225
|
opf: p.opf.slug,
|
|
3225
3226
|
name: p.name,
|
|
@@ -3246,8 +3247,8 @@ class Pt extends ye {
|
|
|
3246
3247
|
opf: e.opf.slug,
|
|
3247
3248
|
name: e.name,
|
|
3248
3249
|
alternative_name: e.alternativeName,
|
|
3249
|
-
partner_group_id: (
|
|
3250
|
-
manager_id: (
|
|
3250
|
+
partner_group_id: (S = e.partnerGroup) == null ? void 0 : S.id,
|
|
3251
|
+
manager_id: (L = e.manager) == null ? void 0 : L.id,
|
|
3251
3252
|
comment: e.comment
|
|
3252
3253
|
};
|
|
3253
3254
|
break;
|
|
@@ -3255,7 +3256,7 @@ class Pt extends ye {
|
|
|
3255
3256
|
return this.post(
|
|
3256
3257
|
`/internal/clients/${r}/contragents`,
|
|
3257
3258
|
i,
|
|
3258
|
-
(
|
|
3259
|
+
(k) => pe.createInstance(k.data),
|
|
3259
3260
|
s
|
|
3260
3261
|
);
|
|
3261
3262
|
}
|
|
@@ -3270,17 +3271,17 @@ class Pt extends ye {
|
|
|
3270
3271
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
|
|
3271
3272
|
*/
|
|
3272
3273
|
updateContragentClientData(r, e, s = {}) {
|
|
3273
|
-
var
|
|
3274
|
+
var h, D, $, T, b, _, S, L;
|
|
3274
3275
|
let i;
|
|
3275
3276
|
const o = e, l = e, p = e;
|
|
3276
3277
|
switch (e.opf.slug) {
|
|
3277
|
-
case
|
|
3278
|
+
case x.Ic:
|
|
3278
3279
|
i = {
|
|
3279
3280
|
opf: o.opf.slug,
|
|
3280
3281
|
name: o.name,
|
|
3281
3282
|
alternative_name: o.alternativeName,
|
|
3282
|
-
partner_group_id: (
|
|
3283
|
-
manager_id: (
|
|
3283
|
+
partner_group_id: (h = o.partnerGroup) == null ? void 0 : h.id,
|
|
3284
|
+
manager_id: (D = o.manager) == null ? void 0 : D.id,
|
|
3284
3285
|
comment: o.comment,
|
|
3285
3286
|
inn: o.inn,
|
|
3286
3287
|
okpo: o.okpo,
|
|
@@ -3292,7 +3293,7 @@ class Pt extends ye {
|
|
|
3292
3293
|
actual_address: o.actualAddress
|
|
3293
3294
|
};
|
|
3294
3295
|
break;
|
|
3295
|
-
case
|
|
3296
|
+
case x.UlR:
|
|
3296
3297
|
i = {
|
|
3297
3298
|
opf: l.opf.slug,
|
|
3298
3299
|
name: l.name,
|
|
@@ -3311,7 +3312,7 @@ class Pt extends ye {
|
|
|
3311
3312
|
actual_address: l.actualAddress
|
|
3312
3313
|
};
|
|
3313
3314
|
break;
|
|
3314
|
-
case
|
|
3315
|
+
case x.UlNr:
|
|
3315
3316
|
i = {
|
|
3316
3317
|
opf: p.opf.slug,
|
|
3317
3318
|
name: p.name,
|
|
@@ -3338,8 +3339,8 @@ class Pt extends ye {
|
|
|
3338
3339
|
opf: e.opf.slug,
|
|
3339
3340
|
name: e.name,
|
|
3340
3341
|
alternative_name: e.alternativeName,
|
|
3341
|
-
partner_group_id: (
|
|
3342
|
-
manager_id: (
|
|
3342
|
+
partner_group_id: (S = e.partnerGroup) == null ? void 0 : S.id,
|
|
3343
|
+
manager_id: (L = e.manager) == null ? void 0 : L.id,
|
|
3343
3344
|
comment: e.comment
|
|
3344
3345
|
};
|
|
3345
3346
|
break;
|
|
@@ -3347,7 +3348,7 @@ class Pt extends ye {
|
|
|
3347
3348
|
return this.patch(
|
|
3348
3349
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
3349
3350
|
i,
|
|
3350
|
-
(
|
|
3351
|
+
(k) => pe.createInstance(k.data),
|
|
3351
3352
|
s
|
|
3352
3353
|
);
|
|
3353
3354
|
}
|
|
@@ -3537,7 +3538,7 @@ class Pt extends ye {
|
|
|
3537
3538
|
comment: e.comment,
|
|
3538
3539
|
not_disturb: e.notDisturb
|
|
3539
3540
|
},
|
|
3540
|
-
(i) => new
|
|
3541
|
+
(i) => new F(i.data),
|
|
3541
3542
|
s
|
|
3542
3543
|
);
|
|
3543
3544
|
}
|
|
@@ -3680,7 +3681,7 @@ class Pt extends ye {
|
|
|
3680
3681
|
comment: e.comment,
|
|
3681
3682
|
...s
|
|
3682
3683
|
};
|
|
3683
|
-
return (l = e.phone) != null && l.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (
|
|
3684
|
+
return (l = e.phone) != null && l.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new F(h.data), i);
|
|
3684
3685
|
}
|
|
3685
3686
|
/**
|
|
3686
3687
|
* Устанавливает признак основного контактного лица.
|
|
@@ -3709,7 +3710,7 @@ class Pt extends ye {
|
|
|
3709
3710
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
3710
3711
|
}
|
|
3711
3712
|
}
|
|
3712
|
-
class
|
|
3713
|
+
class Pt extends u {
|
|
3713
3714
|
/**
|
|
3714
3715
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
3715
3716
|
*
|
|
@@ -3750,10 +3751,10 @@ class Pe {
|
|
|
3750
3751
|
* Источник клиентской цены.
|
|
3751
3752
|
*/
|
|
3752
3753
|
t(this, "source");
|
|
3753
|
-
this.client = new te(r == null ? void 0 : r.client), this.product = new
|
|
3754
|
+
this.client = new te(r == null ? void 0 : r.client), this.product = new I(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) ?? Se.Product;
|
|
3754
3755
|
}
|
|
3755
3756
|
}
|
|
3756
|
-
class
|
|
3757
|
+
class Rt extends u {
|
|
3757
3758
|
/**
|
|
3758
3759
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
3759
3760
|
*
|
|
@@ -3784,7 +3785,7 @@ class Dt extends u {
|
|
|
3784
3785
|
return s && (l += `&category_id=${s}`), i && (l += `&client_id=${i}`), l;
|
|
3785
3786
|
}
|
|
3786
3787
|
}
|
|
3787
|
-
class
|
|
3788
|
+
class Dt extends u {
|
|
3788
3789
|
/**
|
|
3789
3790
|
* Импортирует цены клиента из CSV файла.
|
|
3790
3791
|
*
|
|
@@ -3983,7 +3984,7 @@ class $t extends u {
|
|
|
3983
3984
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
3984
3985
|
}
|
|
3985
3986
|
}
|
|
3986
|
-
class
|
|
3987
|
+
class $t extends u {
|
|
3987
3988
|
/**
|
|
3988
3989
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
3989
3990
|
*
|
|
@@ -4073,7 +4074,7 @@ class At extends u {
|
|
|
4073
4074
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
4074
4075
|
}
|
|
4075
4076
|
}
|
|
4076
|
-
class
|
|
4077
|
+
class At extends u {
|
|
4077
4078
|
/**
|
|
4078
4079
|
* Возвращает список данных о корневых категориях.
|
|
4079
4080
|
*
|
|
@@ -4087,7 +4088,7 @@ class Tt extends u {
|
|
|
4087
4088
|
{
|
|
4088
4089
|
showHidden: r
|
|
4089
4090
|
},
|
|
4090
|
-
(e) => e.data.map((s) => new
|
|
4091
|
+
(e) => e.data.map((s) => new q(s))
|
|
4091
4092
|
);
|
|
4092
4093
|
}
|
|
4093
4094
|
/**
|
|
@@ -4106,7 +4107,7 @@ class Tt extends u {
|
|
|
4106
4107
|
showHidden: e,
|
|
4107
4108
|
withNestedCategories: s
|
|
4108
4109
|
},
|
|
4109
|
-
(i) => new
|
|
4110
|
+
(i) => new q(i.data)
|
|
4110
4111
|
);
|
|
4111
4112
|
}
|
|
4112
4113
|
/**
|
|
@@ -4115,7 +4116,7 @@ class Tt extends u {
|
|
|
4115
4116
|
* @param categoryID Идентификатор категории продуктов.
|
|
4116
4117
|
*/
|
|
4117
4118
|
getPublicCategoryData(r) {
|
|
4118
|
-
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new
|
|
4119
|
+
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new q(e.data));
|
|
4119
4120
|
}
|
|
4120
4121
|
/**
|
|
4121
4122
|
* Возвращает список продуктов категории.
|
|
@@ -4133,7 +4134,7 @@ class Tt extends u {
|
|
|
4133
4134
|
showHidden: s,
|
|
4134
4135
|
withPriceCoefficients: e
|
|
4135
4136
|
},
|
|
4136
|
-
(i) => ie(i.data, (o) => new
|
|
4137
|
+
(i) => ie(i.data, (o) => new I(o))
|
|
4137
4138
|
);
|
|
4138
4139
|
}
|
|
4139
4140
|
/**
|
|
@@ -4146,7 +4147,7 @@ class Tt extends u {
|
|
|
4146
4147
|
getCategoryProductsCoefficients(r) {
|
|
4147
4148
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
4148
4149
|
const { data: s } = e;
|
|
4149
|
-
return
|
|
4150
|
+
return lr(s, (i) => i.map((o) => new be(o))), s;
|
|
4150
4151
|
});
|
|
4151
4152
|
}
|
|
4152
4153
|
/**
|
|
@@ -4158,14 +4159,14 @@ class Tt extends u {
|
|
|
4158
4159
|
publicSimpleSearch(r, e = 10) {
|
|
4159
4160
|
return new Promise((s, i) => {
|
|
4160
4161
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
4161
|
-
s(o.categories.map((l) => new
|
|
4162
|
+
s(o.categories.map((l) => new q(l)));
|
|
4162
4163
|
}).catch((o) => {
|
|
4163
4164
|
i(o);
|
|
4164
4165
|
});
|
|
4165
4166
|
});
|
|
4166
4167
|
}
|
|
4167
4168
|
}
|
|
4168
|
-
class
|
|
4169
|
+
class Tt extends u {
|
|
4169
4170
|
/**
|
|
4170
4171
|
* Возвращает данные об указанном продукте.
|
|
4171
4172
|
*
|
|
@@ -4175,7 +4176,7 @@ class bt extends u {
|
|
|
4175
4176
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
4176
4177
|
*/
|
|
4177
4178
|
getProductData(r, e = !1) {
|
|
4178
|
-
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new
|
|
4179
|
+
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new I(s.data));
|
|
4179
4180
|
}
|
|
4180
4181
|
/**
|
|
4181
4182
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -4183,7 +4184,7 @@ class bt extends u {
|
|
|
4183
4184
|
* @param productId Идентификатор продукта.
|
|
4184
4185
|
*/
|
|
4185
4186
|
getPublicProductData(r) {
|
|
4186
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
4187
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new I(e.data));
|
|
4187
4188
|
}
|
|
4188
4189
|
/**
|
|
4189
4190
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -4209,7 +4210,7 @@ class bt extends u {
|
|
|
4209
4210
|
*/
|
|
4210
4211
|
getProductPriceHistory(r, e) {
|
|
4211
4212
|
const s = {};
|
|
4212
|
-
return
|
|
4213
|
+
return Ue(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ie(i.data, (o) => new jr(o)));
|
|
4213
4214
|
}
|
|
4214
4215
|
/**
|
|
4215
4216
|
* Выполняет публичный поиск данных о продуктах по терму.
|
|
@@ -4220,14 +4221,14 @@ class bt extends u {
|
|
|
4220
4221
|
publicSimpleSearch(r, e = 10) {
|
|
4221
4222
|
return new Promise((s, i) => {
|
|
4222
4223
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
4223
|
-
s(o.products.map((l) => new
|
|
4224
|
+
s(o.products.map((l) => new I(l)));
|
|
4224
4225
|
}).catch((o) => {
|
|
4225
4226
|
i(o);
|
|
4226
4227
|
});
|
|
4227
4228
|
});
|
|
4228
4229
|
}
|
|
4229
4230
|
}
|
|
4230
|
-
class
|
|
4231
|
+
class bt extends u {
|
|
4231
4232
|
/**
|
|
4232
4233
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
4233
4234
|
*
|
|
@@ -4321,7 +4322,7 @@ class St extends ye {
|
|
|
4321
4322
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_get_list
|
|
4322
4323
|
*/
|
|
4323
4324
|
getTemplateList(r, e, s) {
|
|
4324
|
-
return this.getPaginated("/internal/catalog/properties", r, e, s, (i) => {
|
|
4325
|
+
return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
|
|
4325
4326
|
const o = { ...i.data };
|
|
4326
4327
|
return o.data = o.data.map((l) => new B(l)), o;
|
|
4327
4328
|
});
|
|
@@ -4578,17 +4579,18 @@ class Lt extends u {
|
|
|
4578
4579
|
);
|
|
4579
4580
|
}
|
|
4580
4581
|
}
|
|
4581
|
-
class
|
|
4582
|
+
class at extends ye {
|
|
4582
4583
|
/**
|
|
4583
4584
|
* Возвращает пагинированный список свойств.
|
|
4584
4585
|
*
|
|
4585
4586
|
* @param filters Параметры фильтрации данных.
|
|
4586
4587
|
* @param sortParams Параметры сортировки.
|
|
4587
4588
|
* @param paginationParams Параметры пагинации.
|
|
4589
|
+
*
|
|
4588
4590
|
* @see /doc/api/internal#/operations/api_internal_catalog_properties_get_list
|
|
4589
4591
|
*/
|
|
4590
4592
|
getProperties(r, e, s) {
|
|
4591
|
-
return this.getPaginated("/internal/catalog/properties", r, e, s, (i) => {
|
|
4593
|
+
return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
|
|
4592
4594
|
const o = { ...i.data };
|
|
4593
4595
|
return o.data = o.data.map((l) => new Y(l)), o;
|
|
4594
4596
|
});
|
|
@@ -4653,7 +4655,7 @@ class xt extends ye {
|
|
|
4653
4655
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
|
|
4654
4656
|
*/
|
|
4655
4657
|
getProductProperties(r) {
|
|
4656
|
-
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
4658
|
+
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new d(s)));
|
|
4657
4659
|
}
|
|
4658
4660
|
/**
|
|
4659
4661
|
* Возвращает значение свойства продукта.
|
|
@@ -4663,7 +4665,7 @@ class xt extends ye {
|
|
|
4663
4665
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
|
|
4664
4666
|
*/
|
|
4665
4667
|
getProductProperty(r, e) {
|
|
4666
|
-
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new
|
|
4668
|
+
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new d(s.data));
|
|
4667
4669
|
}
|
|
4668
4670
|
/**
|
|
4669
4671
|
* Обновляет значение свойства продукта.
|
|
@@ -4674,7 +4676,7 @@ class xt extends ye {
|
|
|
4674
4676
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
|
|
4675
4677
|
*/
|
|
4676
4678
|
updateProductProperty(r, e, s) {
|
|
4677
|
-
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new
|
|
4679
|
+
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new d(i.data));
|
|
4678
4680
|
}
|
|
4679
4681
|
/**
|
|
4680
4682
|
* Удаляет значение свойства продукта.
|
|
@@ -4799,7 +4801,7 @@ class xt extends ye {
|
|
|
4799
4801
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
|
|
4800
4802
|
*/
|
|
4801
4803
|
getCategoryProperties(r) {
|
|
4802
|
-
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
4804
|
+
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new d(s)));
|
|
4803
4805
|
}
|
|
4804
4806
|
/**
|
|
4805
4807
|
* Возвращает значение свойства категории.
|
|
@@ -4809,7 +4811,7 @@ class xt extends ye {
|
|
|
4809
4811
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
|
|
4810
4812
|
*/
|
|
4811
4813
|
getCategoryProperty(r, e) {
|
|
4812
|
-
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new
|
|
4814
|
+
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new d(s.data));
|
|
4813
4815
|
}
|
|
4814
4816
|
/**
|
|
4815
4817
|
* Обновляет значение свойства категории.
|
|
@@ -4820,7 +4822,7 @@ class xt extends ye {
|
|
|
4820
4822
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
|
|
4821
4823
|
*/
|
|
4822
4824
|
updateCategoryProperty(r, e, s) {
|
|
4823
|
-
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new
|
|
4825
|
+
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new d(i.data));
|
|
4824
4826
|
}
|
|
4825
4827
|
/**
|
|
4826
4828
|
* Удаляет значение свойства категории.
|
|
@@ -4949,7 +4951,7 @@ class xt extends ye {
|
|
|
4949
4951
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
4950
4952
|
}
|
|
4951
4953
|
}
|
|
4952
|
-
class
|
|
4954
|
+
class xt extends u {
|
|
4953
4955
|
/**
|
|
4954
4956
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
4955
4957
|
*
|
|
@@ -4991,7 +4993,7 @@ class It extends u {
|
|
|
4991
4993
|
});
|
|
4992
4994
|
}
|
|
4993
4995
|
}
|
|
4994
|
-
class
|
|
4996
|
+
class It extends u {
|
|
4995
4997
|
/**
|
|
4996
4998
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
4997
4999
|
*
|
|
@@ -5036,7 +5038,7 @@ class kt extends u {
|
|
|
5036
5038
|
);
|
|
5037
5039
|
}
|
|
5038
5040
|
}
|
|
5039
|
-
class
|
|
5041
|
+
class kt extends u {
|
|
5040
5042
|
/**
|
|
5041
5043
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
5042
5044
|
*
|
|
@@ -5064,7 +5066,7 @@ class Nt extends u {
|
|
|
5064
5066
|
const i = this.get(
|
|
5065
5067
|
`internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
|
|
5066
5068
|
{ params: e },
|
|
5067
|
-
(l) => new
|
|
5069
|
+
(l) => new I(l.data)
|
|
5068
5070
|
);
|
|
5069
5071
|
return i.catch((l) => {
|
|
5070
5072
|
this.defaultInstanceNotificationErrorResponseHandler(l, s);
|
|
@@ -5107,18 +5109,18 @@ class Nt extends u {
|
|
|
5107
5109
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
|
|
5108
5110
|
}
|
|
5109
5111
|
}
|
|
5110
|
-
class
|
|
5112
|
+
class Nt {
|
|
5111
5113
|
/**
|
|
5112
5114
|
* Возвращает диапазон дат по умолчанию.
|
|
5113
5115
|
*/
|
|
5114
5116
|
static defaultDateRanges() {
|
|
5115
|
-
const r =
|
|
5117
|
+
const r = hr(/* @__PURE__ */ new Date(), 1);
|
|
5116
5118
|
return {
|
|
5117
5119
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5118
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
5119
|
-
today: { label: "Сегодня", from:
|
|
5120
|
-
yesterday: { label: "Вчера", from:
|
|
5121
|
-
tomorrow: { label: "Завтра", from:
|
|
5120
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: vr(r), to: wr(r) },
|
|
5121
|
+
today: { label: "Сегодня", from: Me(), to: Cr() },
|
|
5122
|
+
yesterday: { label: "Вчера", from: yr(), to: fr() },
|
|
5123
|
+
tomorrow: { label: "Завтра", from: mr(), to: gr() }
|
|
5122
5124
|
};
|
|
5123
5125
|
}
|
|
5124
5126
|
}
|
|
@@ -5163,7 +5165,7 @@ const V = class V {
|
|
|
5163
5165
|
*/
|
|
5164
5166
|
t(V, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5165
5167
|
let Oe = V;
|
|
5166
|
-
class
|
|
5168
|
+
class Ot {
|
|
5167
5169
|
/**
|
|
5168
5170
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5169
5171
|
*/
|
|
@@ -5179,19 +5181,19 @@ class dt {
|
|
|
5179
5181
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5180
5182
|
}
|
|
5181
5183
|
}
|
|
5182
|
-
class
|
|
5184
|
+
class et extends u {
|
|
5183
5185
|
/**
|
|
5184
5186
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5185
5187
|
*/
|
|
5186
5188
|
getManagers() {
|
|
5187
5189
|
const r = "/internal/managers", e = u.getCachedResponse(r);
|
|
5188
5190
|
return e ? Promise.resolve(e) : this.get(r).then((s) => {
|
|
5189
|
-
const i = s.data.map((o) =>
|
|
5191
|
+
const i = s.data.map((o) => _e.instanceInitializer(fe, o));
|
|
5190
5192
|
return i && this.cacheResponse(r, i), i;
|
|
5191
5193
|
});
|
|
5192
5194
|
}
|
|
5193
5195
|
}
|
|
5194
|
-
class
|
|
5196
|
+
class rt {
|
|
5195
5197
|
/**
|
|
5196
5198
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
5197
5199
|
*
|
|
@@ -5209,7 +5211,7 @@ class tt {
|
|
|
5209
5211
|
this.name = r.name, this.content = r.content;
|
|
5210
5212
|
}
|
|
5211
5213
|
}
|
|
5212
|
-
class
|
|
5214
|
+
class qe {
|
|
5213
5215
|
/**
|
|
5214
5216
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
5215
5217
|
*
|
|
@@ -5245,7 +5247,7 @@ class de {
|
|
|
5245
5247
|
*/
|
|
5246
5248
|
t(this, "meta");
|
|
5247
5249
|
var e;
|
|
5248
|
-
this.resourceType = new Ee(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
|
|
5250
|
+
this.resourceType = new Ee(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 rt(s))) ?? [];
|
|
5249
5251
|
}
|
|
5250
5252
|
}
|
|
5251
5253
|
class qt extends u {
|
|
@@ -5256,7 +5258,7 @@ class qt extends u {
|
|
|
5256
5258
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
5257
5259
|
*/
|
|
5258
5260
|
getResourceSeoData(r, e) {
|
|
5259
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new
|
|
5261
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new qe(s.data));
|
|
5260
5262
|
}
|
|
5261
5263
|
/**
|
|
5262
5264
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -5267,7 +5269,7 @@ class qt extends u {
|
|
|
5267
5269
|
* в случае ошибок в запросах.
|
|
5268
5270
|
*/
|
|
5269
5271
|
saveResourceSeoData(r, e = {}) {
|
|
5270
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new
|
|
5272
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new qe(s.data), e);
|
|
5271
5273
|
}
|
|
5272
5274
|
/**
|
|
5273
5275
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -5279,8 +5281,8 @@ class qt extends u {
|
|
|
5279
5281
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
5280
5282
|
}
|
|
5281
5283
|
}
|
|
5282
|
-
const
|
|
5283
|
-
const n = w({}), r = w(void 0), e = w(void 0), s = w(void 0), i = w(void 0), o = w(void 0), l = w(void 0), p = w(void 0),
|
|
5284
|
+
const P = he("__references_private", () => {
|
|
5285
|
+
const n = w({}), r = w(void 0), e = w(void 0), s = w(void 0), i = w(void 0), o = w(void 0), l = w(void 0), p = w(void 0), h = w(void 0), D = w(void 0), $ = w(void 0), T = w(void 0), b = w(void 0), _ = w(void 0), S = w(void 0), L = w(void 0), k = w(void 0), c = w(void 0);
|
|
5284
5286
|
return {
|
|
5285
5287
|
/**
|
|
5286
5288
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5317,11 +5319,11 @@ const R = he("__references_private", () => {
|
|
|
5317
5319
|
/**
|
|
5318
5320
|
* Справочник статусов заказов.
|
|
5319
5321
|
*/
|
|
5320
|
-
orderStatusReference:
|
|
5322
|
+
orderStatusReference: h,
|
|
5321
5323
|
/**
|
|
5322
5324
|
* Справочник типов оплаты заказов.
|
|
5323
5325
|
*/
|
|
5324
|
-
paymentTypeReference:
|
|
5326
|
+
paymentTypeReference: D,
|
|
5325
5327
|
/**
|
|
5326
5328
|
* Справочник групп партнеров.
|
|
5327
5329
|
*/
|
|
@@ -5341,105 +5343,105 @@ const R = he("__references_private", () => {
|
|
|
5341
5343
|
/**
|
|
5342
5344
|
* Справочник источников первичного интереса.
|
|
5343
5345
|
*/
|
|
5344
|
-
sourcePrimaryInterestReference:
|
|
5346
|
+
sourcePrimaryInterestReference: S,
|
|
5345
5347
|
/**
|
|
5346
5348
|
* Справочник складов.
|
|
5347
5349
|
*/
|
|
5348
|
-
warehousesReference:
|
|
5350
|
+
warehousesReference: L,
|
|
5349
5351
|
/**
|
|
5350
5352
|
* Справочник типов свойств.
|
|
5351
5353
|
*/
|
|
5352
|
-
propertyTypesReference:
|
|
5354
|
+
propertyTypesReference: k,
|
|
5353
5355
|
/**
|
|
5354
5356
|
* Справочник коэффициентов цен.
|
|
5355
5357
|
*/
|
|
5356
5358
|
priceCoefficientsReference: c
|
|
5357
5359
|
};
|
|
5358
5360
|
}), Ut = he("references", () => {
|
|
5359
|
-
const n =
|
|
5360
|
-
const c =
|
|
5361
|
-
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(
|
|
5362
|
-
c.channelPrimaryInterestReference =
|
|
5361
|
+
const n = v(() => {
|
|
5362
|
+
const c = P();
|
|
5363
|
+
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((g) => {
|
|
5364
|
+
c.channelPrimaryInterestReference = g;
|
|
5363
5365
|
}).catch(y)), c.channelPrimaryInterestReference;
|
|
5364
|
-
}), r =
|
|
5365
|
-
const c =
|
|
5366
|
-
return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(
|
|
5367
|
-
c.contactPositionsReference =
|
|
5366
|
+
}), r = v(() => {
|
|
5367
|
+
const c = P();
|
|
5368
|
+
return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(R).getContactPositions().then((g) => {
|
|
5369
|
+
c.contactPositionsReference = g;
|
|
5368
5370
|
}).catch(y)), c.contactPositionsReference;
|
|
5369
|
-
}), e =
|
|
5370
|
-
const c =
|
|
5371
|
-
return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(
|
|
5372
|
-
c.currencyReference =
|
|
5371
|
+
}), e = v(() => {
|
|
5372
|
+
const c = P();
|
|
5373
|
+
return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(R).getCurrency().then((g) => {
|
|
5374
|
+
c.currencyReference = g;
|
|
5373
5375
|
}).catch(y)), c.currencyReference;
|
|
5374
|
-
}), s =
|
|
5375
|
-
const c =
|
|
5376
|
-
return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(
|
|
5377
|
-
c.opfReference =
|
|
5376
|
+
}), s = v(() => {
|
|
5377
|
+
const c = P();
|
|
5378
|
+
return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(R).getOpf().then((g) => {
|
|
5379
|
+
c.opfReference = g;
|
|
5378
5380
|
}).catch(y)), c.opfReference;
|
|
5379
|
-
}), i =
|
|
5380
|
-
const c =
|
|
5381
|
-
return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(
|
|
5382
|
-
c.orderPaymentStatusReference =
|
|
5381
|
+
}), i = v(() => {
|
|
5382
|
+
const c = P();
|
|
5383
|
+
return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(R).getOrderPaymentStatuses().then((g) => {
|
|
5384
|
+
c.orderPaymentStatusReference = g;
|
|
5383
5385
|
}).catch(y)), c.orderPaymentStatusReference;
|
|
5384
|
-
}), o =
|
|
5385
|
-
const c =
|
|
5386
|
-
return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(
|
|
5387
|
-
c.orderStatusReference =
|
|
5386
|
+
}), o = v(() => {
|
|
5387
|
+
const c = P();
|
|
5388
|
+
return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(R).getOrderStatuses().then((g) => {
|
|
5389
|
+
c.orderStatusReference = g;
|
|
5388
5390
|
}).catch(y)), c.orderStatusReference;
|
|
5389
|
-
}), l =
|
|
5390
|
-
const c =
|
|
5391
|
-
return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(
|
|
5392
|
-
c.paymentTypeReference =
|
|
5391
|
+
}), l = v(() => {
|
|
5392
|
+
const c = P();
|
|
5393
|
+
return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(R).getPaymentTypes().then((g) => {
|
|
5394
|
+
c.paymentTypeReference = g;
|
|
5393
5395
|
}).catch(y)), c.paymentTypeReference;
|
|
5394
|
-
}), p =
|
|
5395
|
-
const c =
|
|
5396
|
-
return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(
|
|
5397
|
-
c.partnerGroupReference =
|
|
5396
|
+
}), p = v(() => {
|
|
5397
|
+
const c = P();
|
|
5398
|
+
return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(R).getPartnerGroup().then((g) => {
|
|
5399
|
+
c.partnerGroupReference = g;
|
|
5398
5400
|
}).catch(y)), c.partnerGroupReference;
|
|
5399
|
-
}),
|
|
5400
|
-
const c =
|
|
5401
|
-
return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(
|
|
5402
|
-
c.productFileTypeReference =
|
|
5401
|
+
}), h = v(() => {
|
|
5402
|
+
const c = P();
|
|
5403
|
+
return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(R).getProductFileType().then((g) => {
|
|
5404
|
+
c.productFileTypeReference = g;
|
|
5403
5405
|
}).catch(y)), c.productFileTypeReference;
|
|
5404
|
-
}),
|
|
5405
|
-
const c =
|
|
5406
|
-
return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(
|
|
5407
|
-
c.resourceTypesReference =
|
|
5406
|
+
}), D = v(() => {
|
|
5407
|
+
const c = P();
|
|
5408
|
+
return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(R).getResourceTypes().then((g) => {
|
|
5409
|
+
c.resourceTypesReference = g;
|
|
5408
5410
|
}).catch(y)), c.resourceTypesReference;
|
|
5409
|
-
}), $ =
|
|
5410
|
-
const c =
|
|
5411
|
-
return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(
|
|
5412
|
-
c.salesDirectionsReference =
|
|
5411
|
+
}), $ = v(() => {
|
|
5412
|
+
const c = P();
|
|
5413
|
+
return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(R).getSalesDirections().then((g) => {
|
|
5414
|
+
c.salesDirectionsReference = g;
|
|
5413
5415
|
}).catch(y)), c.salesDirectionsReference;
|
|
5414
|
-
}), T =
|
|
5415
|
-
const c =
|
|
5416
|
-
return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(
|
|
5417
|
-
c.sourcePrimaryInterestReference =
|
|
5416
|
+
}), T = v(() => {
|
|
5417
|
+
const c = P();
|
|
5418
|
+
return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(R).getSourcePrimaryInterest().then((g) => {
|
|
5419
|
+
c.sourcePrimaryInterestReference = g;
|
|
5418
5420
|
}).catch(y)), c.sourcePrimaryInterestReference;
|
|
5419
|
-
}), b =
|
|
5420
|
-
const c =
|
|
5421
|
-
return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(
|
|
5422
|
-
c.deliveryTypeReference =
|
|
5421
|
+
}), b = v(() => {
|
|
5422
|
+
const c = P();
|
|
5423
|
+
return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(R).getDeliveryTypes().then((g) => {
|
|
5424
|
+
c.deliveryTypeReference = g;
|
|
5423
5425
|
}).catch(y)), c.deliveryTypeReference;
|
|
5424
|
-
}), _ =
|
|
5425
|
-
const c =
|
|
5426
|
-
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(
|
|
5427
|
-
c.managersList =
|
|
5426
|
+
}), _ = v(() => {
|
|
5427
|
+
const c = P();
|
|
5428
|
+
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(et).getManagers().then((g) => {
|
|
5429
|
+
c.managersList = g;
|
|
5428
5430
|
}).catch(y)), c.managersList;
|
|
5429
|
-
}),
|
|
5430
|
-
const c =
|
|
5431
|
-
return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(
|
|
5432
|
-
c.warehousesReference =
|
|
5431
|
+
}), S = v(() => {
|
|
5432
|
+
const c = P();
|
|
5433
|
+
return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(R).getWarehouses().then((g) => {
|
|
5434
|
+
c.warehousesReference = g;
|
|
5433
5435
|
}).catch(y)), c.warehousesReference;
|
|
5434
|
-
}),
|
|
5435
|
-
const c =
|
|
5436
|
-
return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(
|
|
5437
|
-
c.propertyTypesReference =
|
|
5436
|
+
}), L = v(() => {
|
|
5437
|
+
const c = P();
|
|
5438
|
+
return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(R).getPropertyTypes().then((g) => {
|
|
5439
|
+
c.propertyTypesReference = g;
|
|
5438
5440
|
}).catch(y)), c.propertyTypesReference;
|
|
5439
|
-
}),
|
|
5440
|
-
const c =
|
|
5441
|
-
return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(
|
|
5442
|
-
c.priceCoefficientsReference =
|
|
5441
|
+
}), k = v(() => {
|
|
5442
|
+
const c = P();
|
|
5443
|
+
return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(R).getPriceCoefficients().then((g) => {
|
|
5444
|
+
c.priceCoefficientsReference = g;
|
|
5443
5445
|
}).catch(y)), c.priceCoefficientsReference;
|
|
5444
5446
|
});
|
|
5445
5447
|
return {
|
|
@@ -5478,11 +5480,11 @@ const R = he("__references_private", () => {
|
|
|
5478
5480
|
/**
|
|
5479
5481
|
* Справочник типов файлов продуктов/категорий.
|
|
5480
5482
|
*/
|
|
5481
|
-
productFilesTypesReference:
|
|
5483
|
+
productFilesTypesReference: h,
|
|
5482
5484
|
/**
|
|
5483
5485
|
* Справочник типов ресурсов.
|
|
5484
5486
|
*/
|
|
5485
|
-
resourceTypesReference:
|
|
5487
|
+
resourceTypesReference: D,
|
|
5486
5488
|
/**
|
|
5487
5489
|
* Справочник направлений продаж.
|
|
5488
5490
|
*/
|
|
@@ -5502,17 +5504,17 @@ const R = he("__references_private", () => {
|
|
|
5502
5504
|
/**
|
|
5503
5505
|
* Справочник складов.
|
|
5504
5506
|
*/
|
|
5505
|
-
warehousesReference:
|
|
5507
|
+
warehousesReference: S,
|
|
5506
5508
|
/**
|
|
5507
5509
|
* Справочник типов свойств.
|
|
5508
5510
|
*/
|
|
5509
|
-
propertyTypesReference:
|
|
5511
|
+
propertyTypesReference: L,
|
|
5510
5512
|
/**
|
|
5511
5513
|
* Справочник коэффициентов цен.
|
|
5512
5514
|
*/
|
|
5513
|
-
priceCoefficientsReference:
|
|
5515
|
+
priceCoefficientsReference: k
|
|
5514
5516
|
};
|
|
5515
|
-
}),
|
|
5517
|
+
}), tt = he("__user_state_private", () => {
|
|
5516
5518
|
const n = w({}), r = w(void 0);
|
|
5517
5519
|
return {
|
|
5518
5520
|
/**
|
|
@@ -5528,9 +5530,9 @@ const R = he("__references_private", () => {
|
|
|
5528
5530
|
/**
|
|
5529
5531
|
* Данные о текущем пользователе.
|
|
5530
5532
|
*/
|
|
5531
|
-
currentUser:
|
|
5532
|
-
const r =
|
|
5533
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(
|
|
5533
|
+
currentUser: v(() => {
|
|
5534
|
+
const r = tt();
|
|
5535
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Wr).getCurrentUser().then((e) => {
|
|
5534
5536
|
r.currentUser = e;
|
|
5535
5537
|
}).catch(y).finally(y)), r.currentUser;
|
|
5536
5538
|
})
|
|
@@ -5607,94 +5609,94 @@ class Ft {
|
|
|
5607
5609
|
}
|
|
5608
5610
|
export {
|
|
5609
5611
|
Ur as AnyReference,
|
|
5610
|
-
|
|
5612
|
+
ut as AppBaseConfig,
|
|
5611
5613
|
a as AppConfigProvider,
|
|
5612
5614
|
Ae as BankAccount,
|
|
5613
5615
|
ye as BasePaginationProvider,
|
|
5614
|
-
|
|
5616
|
+
xr as CalculationTypeEnum,
|
|
5615
5617
|
se as Cart,
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5618
|
+
br as CartItem,
|
|
5619
|
+
Tr as CartItemBase,
|
|
5620
|
+
ht as CartProvider,
|
|
5621
|
+
Rt as CatalogProvider,
|
|
5622
|
+
Fe as CatalogableItem,
|
|
5623
|
+
q as Category,
|
|
5622
5624
|
Ie as CategoryPricingRule,
|
|
5623
5625
|
Ve as ChannelPrimaryInterest,
|
|
5624
|
-
|
|
5626
|
+
mt as City,
|
|
5625
5627
|
ce as CityWithRegionAndCountry,
|
|
5626
5628
|
ke as Client,
|
|
5627
|
-
|
|
5629
|
+
Xr as ClientAdditionalData,
|
|
5628
5630
|
oe as ClientCategory,
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5631
|
+
vt as ClientDataProvider,
|
|
5632
|
+
Dt as ClientPriceProvider,
|
|
5633
|
+
$t as ClientPriceTemplateProvider,
|
|
5632
5634
|
K as ClientProduct,
|
|
5633
|
-
|
|
5635
|
+
bt as ClientProductCategoryDataProvider,
|
|
5634
5636
|
_t as ClientProductDataProvider,
|
|
5635
5637
|
te as ClientShortInfo,
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5638
|
+
Vr as ClientsAdditionalDataRequestTypeEnum,
|
|
5639
|
+
ft as ClientsListFilters,
|
|
5640
|
+
kt as ConfiguratorProvider,
|
|
5639
5641
|
Te as Contact,
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5642
|
+
Or as ContactLinks,
|
|
5643
|
+
F as ContactPerson,
|
|
5644
|
+
Jr as ContactPersonRelated,
|
|
5643
5645
|
Gr as ContactPosition,
|
|
5644
5646
|
ve as ContactRelation,
|
|
5645
5647
|
Je as ContragentBase,
|
|
5646
5648
|
pe as ContragentFactory,
|
|
5647
5649
|
Qe as ContragentIc,
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
+
Er as ContragentPerson,
|
|
5651
|
+
Kr as ContragentUlNr,
|
|
5650
5652
|
Ye as ContragentUlR,
|
|
5651
|
-
|
|
5653
|
+
Se as CostSourceEnum,
|
|
5652
5654
|
J as Country,
|
|
5653
5655
|
le as Currency,
|
|
5654
5656
|
Mt as DataSuggestionProvider,
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5657
|
+
Ct as DataTablePagination,
|
|
5658
|
+
Zr as DataTablePaginationRequestParams,
|
|
5659
|
+
wt as DataTableSortRequestParams,
|
|
5660
|
+
Nt as DateTimeProvider,
|
|
5661
|
+
kr as DeletableNamedIdentity,
|
|
5660
5662
|
ue as DeliveryAddress,
|
|
5661
5663
|
E as DeliveryType,
|
|
5662
5664
|
_r as DeviceTypeResolutionConfig,
|
|
5663
|
-
|
|
5665
|
+
Nr as DiscountShortInfo,
|
|
5664
5666
|
Ft as FieldValidationResultData,
|
|
5665
5667
|
ee as FilterGroup,
|
|
5666
5668
|
Ne as FilterItem,
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5669
|
+
Le as FilterOpEnum,
|
|
5670
|
+
de as GeoCoordinates,
|
|
5671
|
+
$r as HiddenCatalogableItem,
|
|
5670
5672
|
$e as HttpBaseCachedRequester,
|
|
5671
5673
|
De as HttpBaseRequester,
|
|
5672
5674
|
Sr as HttpParamsConfig,
|
|
5673
5675
|
u as HttpRequester,
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
+
H as Identity,
|
|
5677
|
+
Ar as Image,
|
|
5676
5678
|
fe as Manager,
|
|
5677
5679
|
ne as ManagerCommon,
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5680
|
+
Ot as ManagerDataFactory,
|
|
5681
|
+
et as ManagerDataProvider,
|
|
5682
|
+
rt as MetaTagItem,
|
|
5681
5683
|
A as NamedIdentity,
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5684
|
+
G as Opf,
|
|
5685
|
+
x as OpfEnum,
|
|
5686
|
+
Yr as Order,
|
|
5685
5687
|
Ze as OrderInfo,
|
|
5686
5688
|
Mr as OrderPaymentStatus,
|
|
5687
|
-
|
|
5689
|
+
Qr as OrderProduct,
|
|
5688
5690
|
Xe as OrderShortInfo,
|
|
5689
5691
|
Fr as OrderStatus,
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
+
yt as OrdersDataProvider,
|
|
5693
|
+
M as PartnerGroup,
|
|
5692
5694
|
Hr as PaymentType,
|
|
5693
|
-
|
|
5695
|
+
gt as PreferencesStorageProvider,
|
|
5694
5696
|
Pe as PriceAnalyze,
|
|
5695
|
-
|
|
5697
|
+
It as PriceAnalyzeProvider,
|
|
5696
5698
|
ge as PriceCoefficient,
|
|
5697
|
-
|
|
5699
|
+
He as PriceCoefficientEnum,
|
|
5698
5700
|
B as PriceTemplate,
|
|
5699
5701
|
Ce as PriceTemplateCategory,
|
|
5700
5702
|
Q as PriceTemplateClient,
|
|
@@ -5704,39 +5706,39 @@ export {
|
|
|
5704
5706
|
X as PricingRole,
|
|
5705
5707
|
Lt as PricingRoleProvider,
|
|
5706
5708
|
Re as PrimaryCatalogableItem,
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5709
|
+
I as Product,
|
|
5710
|
+
At as ProductCategoryDataProvider,
|
|
5711
|
+
Tt as ProductDataProvider,
|
|
5712
|
+
dr as ProductFileType,
|
|
5711
5713
|
be as ProductPriceCoefficient,
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
+
jr as ProductPriceHistory,
|
|
5715
|
+
at as PropertiesProvider,
|
|
5714
5716
|
Y as Property,
|
|
5715
5717
|
je as PropertyType,
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5718
|
+
Ir as PropertyTypeEnum,
|
|
5719
|
+
d as PropertyValue,
|
|
5720
|
+
xt as RecommendationsDataProvider,
|
|
5719
5721
|
xe as RecommendationsList,
|
|
5720
5722
|
C as Reference,
|
|
5721
|
-
|
|
5723
|
+
R as ReferenceDataProvider,
|
|
5722
5724
|
Z as Region,
|
|
5723
5725
|
Ee as ResourceType,
|
|
5724
|
-
|
|
5726
|
+
O as SalesDirection,
|
|
5725
5727
|
Lr as SentryConfig,
|
|
5726
|
-
|
|
5728
|
+
qe as Seo,
|
|
5727
5729
|
qt as SeoDataProvider,
|
|
5728
5730
|
Ke as SourcePrimaryInterest,
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
+
Dr as StockCount,
|
|
5732
|
+
_e as TypedInstanceFactory,
|
|
5731
5733
|
Oe as UnitsHelper,
|
|
5732
|
-
|
|
5734
|
+
Pt as UnknownClientDataProvider,
|
|
5733
5735
|
ze as UpdatableNamedIdentity,
|
|
5734
|
-
|
|
5736
|
+
Br as User,
|
|
5735
5737
|
We as UserCommonInfo,
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5738
|
+
Wr as UserDataProvider,
|
|
5739
|
+
U as UserShortInfo,
|
|
5740
|
+
zr as UserTypeEnum,
|
|
5741
|
+
ar as VersionConfig,
|
|
5740
5742
|
me as Warehouse,
|
|
5741
5743
|
Ut as useReferencesStore,
|
|
5742
5744
|
Gt as useUserStateStore
|