@snabcentr/common-lib 1.49.3 → 1.50.1
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 +359 -360
- 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/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/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 Ue, isFunction as Ge, isDate as or, isEmpty as cr,
|
|
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 d {
|
|
|
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
|
*
|
|
@@ -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
|
*
|
|
@@ -271,8 +271,8 @@ const W = class W {
|
|
|
271
271
|
* Конфигурация приложения.
|
|
272
272
|
*/
|
|
273
273
|
t(W, "config");
|
|
274
|
-
let
|
|
275
|
-
class
|
|
274
|
+
let a = W;
|
|
275
|
+
class $r extends Fe {
|
|
276
276
|
/**
|
|
277
277
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
278
278
|
*
|
|
@@ -287,7 +287,7 @@ class Ar extends Fe {
|
|
|
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,19 +383,19 @@ class k 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
|
* Возвращает признак, что это измеряемый товар.
|
|
392
392
|
*/
|
|
393
393
|
getIsMeasurable() {
|
|
394
|
-
const e =
|
|
394
|
+
const e = a.getConfig().products.units;
|
|
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 d {
|
|
|
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,10 +519,10 @@ 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
|
-
class
|
|
525
|
+
class _r {
|
|
526
526
|
/**
|
|
527
527
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
528
528
|
*
|
|
@@ -544,7 +544,7 @@ class Sr {
|
|
|
544
544
|
this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
class
|
|
547
|
+
class Sr {
|
|
548
548
|
/**
|
|
549
549
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
550
550
|
*
|
|
@@ -566,7 +566,7 @@ class Lr {
|
|
|
566
566
|
this.apiUri = (r == null ? void 0 : r.apiUri) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
class
|
|
569
|
+
class Lr {
|
|
570
570
|
/**
|
|
571
571
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
572
572
|
*
|
|
@@ -611,7 +611,7 @@ class xr {
|
|
|
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 Ir {
|
|
|
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
|
*
|
|
@@ -681,16 +681,16 @@ class ht {
|
|
|
681
681
|
*/
|
|
682
682
|
t(this, "dateFormats");
|
|
683
683
|
var e, s, i;
|
|
684
|
-
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.currentDomain = (r == null ? void 0 : r.currentDomain) ?? "", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new
|
|
684
|
+
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.currentDomain = (r == null ? void 0 : r.currentDomain) ?? "", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Sr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new _r(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
|
|
685
685
|
units: {
|
|
686
686
|
linear: ["пог.м.", "м."],
|
|
687
687
|
square: ["м2"]
|
|
688
688
|
},
|
|
689
689
|
...r == null ? void 0 : r.products
|
|
690
|
-
}, this.sentry = new
|
|
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"
|
|
@@ -736,21 +736,21 @@ const N = class N {
|
|
|
736
736
|
* - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
737
737
|
*/
|
|
738
738
|
t(this, "defaultInstanceNotificationErrorResponseHandler", y);
|
|
739
|
-
const s =
|
|
740
|
-
this.defaultInstanceNotificationErrorResponseHandler = N.baseDefaultNotificationErrorResponseHandler, this.httpClient =
|
|
739
|
+
const s = a.getConfig().version;
|
|
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: {
|
|
744
|
-
"APP-VERSION": `${s.name} (${s.version}, ${z(s.date,
|
|
744
|
+
"APP-VERSION": `${s.name} (${s.version}, ${z(s.date, a.getConfig().dateFormats.api)})`,
|
|
745
745
|
Accept: "application/json",
|
|
746
746
|
"Content-Type": "application/json",
|
|
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
755
|
(i) => N.convertHttpErrorResponse(i)
|
|
756
756
|
);
|
|
@@ -886,7 +886,7 @@ const j = class j extends De {
|
|
|
886
886
|
* Время кэширования данных ответов на запросы (секунд).
|
|
887
887
|
*/
|
|
888
888
|
t(this, "responseDataCacheTimeout");
|
|
889
|
-
const i =
|
|
889
|
+
const i = a.getConfig();
|
|
890
890
|
this.responseDataCacheTimeout = i.http.responseDataCacheTimeout;
|
|
891
891
|
}
|
|
892
892
|
/**
|
|
@@ -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
|
}
|
|
@@ -940,11 +940,11 @@ class u extends $e {
|
|
|
940
940
|
*/
|
|
941
941
|
constructor() {
|
|
942
942
|
var s, i;
|
|
943
|
-
const r =
|
|
943
|
+
const r = a.getConfig(), 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,7 +1047,7 @@ 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
|
|
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
1051
|
class q extends re {
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Инициализирует экземпляр класса {@link Category}.
|
|
@@ -1065,7 +1065,7 @@ class q 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 q(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.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 {
|
|
@@ -1083,7 +1083,7 @@ class ze extends A {
|
|
|
1083
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
|
*
|
|
@@ -1098,7 +1098,7 @@ class Nr extends ze {
|
|
|
1098
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);
|
|
@@ -1147,7 +1147,7 @@ class U 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
|
*
|
|
@@ -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 k {
|
|
|
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) ?? Se.Product, this.discount = e != null && e.discount ? new
|
|
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
|
*
|
|
@@ -1288,7 +1288,7 @@ class ne extends A {
|
|
|
1288
1288
|
* Признак того, что менеджер является основным для клиента.
|
|
1289
1289
|
*/
|
|
1290
1290
|
t(this, "isDefault");
|
|
1291
|
-
e && (this.salesDirection = new O(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = 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 {
|
|
@@ -1322,7 +1322,7 @@ class fe extends ne {
|
|
|
1322
1322
|
this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId;
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
|
-
class
|
|
1325
|
+
class qr extends re {
|
|
1326
1326
|
/**
|
|
1327
1327
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1328
1328
|
*
|
|
@@ -1353,7 +1353,7 @@ class Ur extends re {
|
|
|
1353
1353
|
this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new fe(e.manager) : void 0;
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
|
-
class oe extends
|
|
1356
|
+
class oe extends qr {
|
|
1357
1357
|
/**
|
|
1358
1358
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1359
1359
|
*
|
|
@@ -1522,7 +1522,7 @@ class te extends We {
|
|
|
1522
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
|
*
|
|
@@ -1608,13 +1608,13 @@ class H {
|
|
|
1608
1608
|
this.property = new Y(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
1609
1609
|
}
|
|
1610
1610
|
}
|
|
1611
|
-
class
|
|
1611
|
+
class Ur extends C {
|
|
1612
1612
|
}
|
|
1613
1613
|
class Ve extends C {
|
|
1614
1614
|
}
|
|
1615
|
-
class
|
|
1615
|
+
class mt extends C {
|
|
1616
1616
|
}
|
|
1617
|
-
class
|
|
1617
|
+
class Gr extends C {
|
|
1618
1618
|
}
|
|
1619
1619
|
class le extends A {
|
|
1620
1620
|
/**
|
|
@@ -1635,7 +1635,7 @@ class le extends A {
|
|
|
1635
1635
|
e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
var
|
|
1638
|
+
var x = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(x || {});
|
|
1639
1639
|
class G extends C {
|
|
1640
1640
|
/**
|
|
1641
1641
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
@@ -1644,26 +1644,26 @@ class G extends C {
|
|
|
1644
1644
|
return new G({
|
|
1645
1645
|
id: 1,
|
|
1646
1646
|
guid: "",
|
|
1647
|
-
slug:
|
|
1647
|
+
slug: x.Person,
|
|
1648
1648
|
name: ""
|
|
1649
1649
|
});
|
|
1650
1650
|
}
|
|
1651
1651
|
}
|
|
1652
|
-
class
|
|
1652
|
+
class Mr extends C {
|
|
1653
1653
|
}
|
|
1654
|
-
class
|
|
1654
|
+
class Fr extends C {
|
|
1655
1655
|
}
|
|
1656
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
|
*
|
|
@@ -1672,7 +1672,7 @@ class D extends u {
|
|
|
1672
1672
|
* и использовать в случае аналогичных запросов.
|
|
1673
1673
|
*/
|
|
1674
1674
|
getReference(r, e = !1) {
|
|
1675
|
-
return this.getTypedDataArrayRequester(
|
|
1675
|
+
return this.getTypedDataArrayRequester(Ur, `/internal/references/${r}`, e);
|
|
1676
1676
|
}
|
|
1677
1677
|
/**
|
|
1678
1678
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
@@ -1685,7 +1685,7 @@ class D extends u {
|
|
|
1685
1685
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
1686
1686
|
*/
|
|
1687
1687
|
getContactPositions() {
|
|
1688
|
-
return this.getTypedDataArrayRequester(
|
|
1688
|
+
return this.getTypedDataArrayRequester(Gr, "/internal/references/contact-position", !0);
|
|
1689
1689
|
}
|
|
1690
1690
|
/**
|
|
1691
1691
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
@@ -1710,13 +1710,13 @@ class D extends u {
|
|
|
1710
1710
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
1711
1711
|
*/
|
|
1712
1712
|
getOrderPaymentStatuses() {
|
|
1713
|
-
return this.getTypedDataArrayRequester(
|
|
1713
|
+
return this.getTypedDataArrayRequester(Mr, "/public/references/order-payment-status", !0);
|
|
1714
1714
|
}
|
|
1715
1715
|
/**
|
|
1716
1716
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
1717
1717
|
*/
|
|
1718
1718
|
getOrderStatuses() {
|
|
1719
|
-
return this.getTypedDataArrayRequester(
|
|
1719
|
+
return this.getTypedDataArrayRequester(Fr, "/public/references/order-status", !0);
|
|
1720
1720
|
}
|
|
1721
1721
|
/**
|
|
1722
1722
|
* Возвращает {@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
|
*
|
|
@@ -1876,7 +1876,7 @@ class Vr {
|
|
|
1876
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
|
-
class
|
|
1879
|
+
class xe {
|
|
1880
1880
|
/**
|
|
1881
1881
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
1882
1882
|
*
|
|
@@ -1891,7 +1891,7 @@ class Ie {
|
|
|
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 {
|
|
@@ -1929,7 +1929,7 @@ class X extends A {
|
|
|
1929
1929
|
this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
|
-
class
|
|
1932
|
+
class Ie {
|
|
1933
1933
|
/**
|
|
1934
1934
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
1935
1935
|
*
|
|
@@ -1951,8 +1951,8 @@ class ke {
|
|
|
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
|
*
|
|
@@ -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 d {
|
|
|
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 F {
|
|
|
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,10 +2300,10 @@ 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
|
-
class
|
|
2306
|
+
class ke extends te {
|
|
2307
2307
|
/**
|
|
2308
2308
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2309
2309
|
*
|
|
@@ -2360,7 +2360,7 @@ class ae extends te {
|
|
|
2360
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 = {
|
|
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 = {
|
|
2462
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,
|
|
2463
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((
|
|
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,
|
|
2466
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
|
|
2467
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 = {
|
|
2468
2472
|
createdAt: (S = r == null ? void 0 : r.lastOrder) == null ? void 0 : S.createdAt,
|
|
2469
2473
|
creator: (L = r == null ? void 0 : r.lastOrder) == null ? void 0 : L.creator,
|
|
2470
|
-
isApproved: (
|
|
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;
|
|
@@ -2544,7 +2549,7 @@ class yt {
|
|
|
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
|
*
|
|
@@ -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
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 d {
|
|
|
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,7 +2756,7 @@ 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
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 || {});
|
|
@@ -2786,7 +2791,7 @@ class Ne {
|
|
|
2786
2791
|
field: this.field,
|
|
2787
2792
|
op: this.op
|
|
2788
2793
|
};
|
|
2789
|
-
return r.value = or(this.value) ? z(this.value,
|
|
2794
|
+
return r.value = or(this.value) ? z(this.value, a.getConfig().dateFormats.api) : this.value, r;
|
|
2790
2795
|
}
|
|
2791
2796
|
}
|
|
2792
2797
|
class ee {
|
|
@@ -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
|
*
|
|
@@ -2906,7 +2911,7 @@ class Zr extends A {
|
|
|
2906
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
|
*
|
|
@@ -2987,7 +2986,7 @@ class Pt extends ye {
|
|
|
2987
2986
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
2988
2987
|
*/
|
|
2989
2988
|
getClient(r) {
|
|
2990
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
2989
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new ke(e.data));
|
|
2991
2990
|
}
|
|
2992
2991
|
/**
|
|
2993
2992
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -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
|
/**
|
|
@@ -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
|
/**
|
|
@@ -3068,7 +3069,7 @@ class Pt extends ye {
|
|
|
3068
3069
|
is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
|
|
3069
3070
|
preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
|
|
3070
3071
|
},
|
|
3071
|
-
(i) => new
|
|
3072
|
+
(i) => new ke(i.data),
|
|
3072
3073
|
e
|
|
3073
3074
|
);
|
|
3074
3075
|
}
|
|
@@ -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,
|
|
@@ -3227,9 +3228,6 @@ class Pt extends ye {
|
|
|
3227
3228
|
partner_group_id: (b = p.partnerGroup) == null ? void 0 : b.id,
|
|
3228
3229
|
manager_id: (_ = p.manager) == null ? void 0 : _.id,
|
|
3229
3230
|
comment: p.comment,
|
|
3230
|
-
inn: p.inn,
|
|
3231
|
-
kpp: p.kpp,
|
|
3232
|
-
okpo: p.okpo,
|
|
3233
3231
|
director_name: p.directorName,
|
|
3234
3232
|
director_position: p.directorPosition,
|
|
3235
3233
|
director_acts_on: p.directorActsOn,
|
|
@@ -3238,7 +3236,7 @@ class Pt extends ye {
|
|
|
3238
3236
|
actual_address: p.actualAddress,
|
|
3239
3237
|
registration_country_id: p.registrationCountry.id,
|
|
3240
3238
|
registration_number: p.registrationNumber,
|
|
3241
|
-
tax_number: p.taxNumber
|
|
3239
|
+
tax_number: p.taxNumber || void 0
|
|
3242
3240
|
};
|
|
3243
3241
|
break;
|
|
3244
3242
|
default:
|
|
@@ -3255,7 +3253,7 @@ class Pt extends ye {
|
|
|
3255
3253
|
return this.post(
|
|
3256
3254
|
`/internal/clients/${r}/contragents`,
|
|
3257
3255
|
i,
|
|
3258
|
-
(
|
|
3256
|
+
(k) => pe.createInstance(k.data),
|
|
3259
3257
|
s
|
|
3260
3258
|
);
|
|
3261
3259
|
}
|
|
@@ -3270,17 +3268,17 @@ class Pt extends ye {
|
|
|
3270
3268
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
|
|
3271
3269
|
*/
|
|
3272
3270
|
updateContragentClientData(r, e, s = {}) {
|
|
3273
|
-
var
|
|
3271
|
+
var h, D, $, T, b, _, S, L;
|
|
3274
3272
|
let i;
|
|
3275
3273
|
const o = e, l = e, p = e;
|
|
3276
3274
|
switch (e.opf.slug) {
|
|
3277
|
-
case
|
|
3275
|
+
case x.Ic:
|
|
3278
3276
|
i = {
|
|
3279
3277
|
opf: o.opf.slug,
|
|
3280
3278
|
name: o.name,
|
|
3281
3279
|
alternative_name: o.alternativeName,
|
|
3282
|
-
partner_group_id: (
|
|
3283
|
-
manager_id: (
|
|
3280
|
+
partner_group_id: (h = o.partnerGroup) == null ? void 0 : h.id,
|
|
3281
|
+
manager_id: (D = o.manager) == null ? void 0 : D.id,
|
|
3284
3282
|
comment: o.comment,
|
|
3285
3283
|
inn: o.inn,
|
|
3286
3284
|
okpo: o.okpo,
|
|
@@ -3292,7 +3290,7 @@ class Pt extends ye {
|
|
|
3292
3290
|
actual_address: o.actualAddress
|
|
3293
3291
|
};
|
|
3294
3292
|
break;
|
|
3295
|
-
case
|
|
3293
|
+
case x.UlR:
|
|
3296
3294
|
i = {
|
|
3297
3295
|
opf: l.opf.slug,
|
|
3298
3296
|
name: l.name,
|
|
@@ -3311,7 +3309,7 @@ class Pt extends ye {
|
|
|
3311
3309
|
actual_address: l.actualAddress
|
|
3312
3310
|
};
|
|
3313
3311
|
break;
|
|
3314
|
-
case
|
|
3312
|
+
case x.UlNr:
|
|
3315
3313
|
i = {
|
|
3316
3314
|
opf: p.opf.slug,
|
|
3317
3315
|
name: p.name,
|
|
@@ -3347,7 +3345,7 @@ class Pt extends ye {
|
|
|
3347
3345
|
return this.patch(
|
|
3348
3346
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
3349
3347
|
i,
|
|
3350
|
-
(
|
|
3348
|
+
(k) => pe.createInstance(k.data),
|
|
3351
3349
|
s
|
|
3352
3350
|
);
|
|
3353
3351
|
}
|
|
@@ -3680,7 +3678,7 @@ class Pt extends ye {
|
|
|
3680
3678
|
comment: e.comment,
|
|
3681
3679
|
...s
|
|
3682
3680
|
};
|
|
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, (
|
|
3681
|
+
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
3682
|
}
|
|
3685
3683
|
/**
|
|
3686
3684
|
* Устанавливает признак основного контактного лица.
|
|
@@ -3709,7 +3707,7 @@ class Pt extends ye {
|
|
|
3709
3707
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
3710
3708
|
}
|
|
3711
3709
|
}
|
|
3712
|
-
class
|
|
3710
|
+
class Pt extends u {
|
|
3713
3711
|
/**
|
|
3714
3712
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
3715
3713
|
*
|
|
@@ -3750,10 +3748,10 @@ class Pe {
|
|
|
3750
3748
|
* Источник клиентской цены.
|
|
3751
3749
|
*/
|
|
3752
3750
|
t(this, "source");
|
|
3753
|
-
this.client = new te(r == null ? void 0 : r.client), this.product = new
|
|
3751
|
+
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
3752
|
}
|
|
3755
3753
|
}
|
|
3756
|
-
class
|
|
3754
|
+
class Rt extends u {
|
|
3757
3755
|
/**
|
|
3758
3756
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
3759
3757
|
*
|
|
@@ -3780,11 +3778,11 @@ class Dt extends u {
|
|
|
3780
3778
|
*/
|
|
3781
3779
|
// eslint-disable-next-line class-methods-use-this
|
|
3782
3780
|
getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
|
|
3783
|
-
let l = `${
|
|
3781
|
+
let l = `${a.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
|
|
3784
3782
|
return s && (l += `&category_id=${s}`), i && (l += `&client_id=${i}`), l;
|
|
3785
3783
|
}
|
|
3786
3784
|
}
|
|
3787
|
-
class
|
|
3785
|
+
class Dt extends u {
|
|
3788
3786
|
/**
|
|
3789
3787
|
* Импортирует цены клиента из CSV файла.
|
|
3790
3788
|
*
|
|
@@ -3983,7 +3981,7 @@ class $t extends u {
|
|
|
3983
3981
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
3984
3982
|
}
|
|
3985
3983
|
}
|
|
3986
|
-
class
|
|
3984
|
+
class $t extends u {
|
|
3987
3985
|
/**
|
|
3988
3986
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
3989
3987
|
*
|
|
@@ -4018,7 +4016,7 @@ class At extends u {
|
|
|
4018
4016
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_attach
|
|
4019
4017
|
*/
|
|
4020
4018
|
attachTemplate(r, e, s) {
|
|
4021
|
-
const i =
|
|
4019
|
+
const i = a.getConfig().dateFormats.api;
|
|
4022
4020
|
return this.post(
|
|
4023
4021
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
4024
4022
|
s && {
|
|
@@ -4050,7 +4048,7 @@ class At extends u {
|
|
|
4050
4048
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_change
|
|
4051
4049
|
*/
|
|
4052
4050
|
changeTemplate(r, e, s, i) {
|
|
4053
|
-
const o =
|
|
4051
|
+
const o = a.getConfig().dateFormats.api;
|
|
4054
4052
|
return this.patch(
|
|
4055
4053
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
4056
4054
|
i && {
|
|
@@ -4073,7 +4071,7 @@ class At extends u {
|
|
|
4073
4071
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
4074
4072
|
}
|
|
4075
4073
|
}
|
|
4076
|
-
class
|
|
4074
|
+
class At extends u {
|
|
4077
4075
|
/**
|
|
4078
4076
|
* Возвращает список данных о корневых категориях.
|
|
4079
4077
|
*
|
|
@@ -4133,7 +4131,7 @@ class Tt extends u {
|
|
|
4133
4131
|
showHidden: s,
|
|
4134
4132
|
withPriceCoefficients: e
|
|
4135
4133
|
},
|
|
4136
|
-
(i) => ie(i.data, (o) => new
|
|
4134
|
+
(i) => ie(i.data, (o) => new I(o))
|
|
4137
4135
|
);
|
|
4138
4136
|
}
|
|
4139
4137
|
/**
|
|
@@ -4146,7 +4144,7 @@ class Tt extends u {
|
|
|
4146
4144
|
getCategoryProductsCoefficients(r) {
|
|
4147
4145
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
4148
4146
|
const { data: s } = e;
|
|
4149
|
-
return
|
|
4147
|
+
return lr(s, (i) => i.map((o) => new be(o))), s;
|
|
4150
4148
|
});
|
|
4151
4149
|
}
|
|
4152
4150
|
/**
|
|
@@ -4165,7 +4163,7 @@ class Tt extends u {
|
|
|
4165
4163
|
});
|
|
4166
4164
|
}
|
|
4167
4165
|
}
|
|
4168
|
-
class
|
|
4166
|
+
class Tt extends u {
|
|
4169
4167
|
/**
|
|
4170
4168
|
* Возвращает данные об указанном продукте.
|
|
4171
4169
|
*
|
|
@@ -4175,7 +4173,7 @@ class bt extends u {
|
|
|
4175
4173
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
4176
4174
|
*/
|
|
4177
4175
|
getProductData(r, e = !1) {
|
|
4178
|
-
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new
|
|
4176
|
+
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new I(s.data));
|
|
4179
4177
|
}
|
|
4180
4178
|
/**
|
|
4181
4179
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -4183,7 +4181,7 @@ class bt extends u {
|
|
|
4183
4181
|
* @param productId Идентификатор продукта.
|
|
4184
4182
|
*/
|
|
4185
4183
|
getPublicProductData(r) {
|
|
4186
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
4184
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new I(e.data));
|
|
4187
4185
|
}
|
|
4188
4186
|
/**
|
|
4189
4187
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -4209,7 +4207,7 @@ class bt extends u {
|
|
|
4209
4207
|
*/
|
|
4210
4208
|
getProductPriceHistory(r, e) {
|
|
4211
4209
|
const s = {};
|
|
4212
|
-
return Ue(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ie(i.data, (o) => new
|
|
4210
|
+
return Ue(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ie(i.data, (o) => new jr(o)));
|
|
4213
4211
|
}
|
|
4214
4212
|
/**
|
|
4215
4213
|
* Выполняет публичный поиск данных о продуктах по терму.
|
|
@@ -4220,14 +4218,14 @@ class bt extends u {
|
|
|
4220
4218
|
publicSimpleSearch(r, e = 10) {
|
|
4221
4219
|
return new Promise((s, i) => {
|
|
4222
4220
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
4223
|
-
s(o.products.map((l) => new
|
|
4221
|
+
s(o.products.map((l) => new I(l)));
|
|
4224
4222
|
}).catch((o) => {
|
|
4225
4223
|
i(o);
|
|
4226
4224
|
});
|
|
4227
4225
|
});
|
|
4228
4226
|
}
|
|
4229
4227
|
}
|
|
4230
|
-
class
|
|
4228
|
+
class bt extends u {
|
|
4231
4229
|
/**
|
|
4232
4230
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
4233
4231
|
*
|
|
@@ -4289,7 +4287,7 @@ class _t extends u {
|
|
|
4289
4287
|
);
|
|
4290
4288
|
}
|
|
4291
4289
|
}
|
|
4292
|
-
class
|
|
4290
|
+
class _t extends u {
|
|
4293
4291
|
/**
|
|
4294
4292
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
4295
4293
|
*
|
|
@@ -4310,7 +4308,7 @@ class St extends u {
|
|
|
4310
4308
|
);
|
|
4311
4309
|
}
|
|
4312
4310
|
}
|
|
4313
|
-
class
|
|
4311
|
+
class St extends ye {
|
|
4314
4312
|
/**
|
|
4315
4313
|
* Возвращает список шаблонов прайс-листа.
|
|
4316
4314
|
*
|
|
@@ -4321,7 +4319,7 @@ class Lt extends ye {
|
|
|
4321
4319
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_get_list
|
|
4322
4320
|
*/
|
|
4323
4321
|
getTemplateList(r, e, s) {
|
|
4324
|
-
return this.getPaginated("/internal/catalog/properties", r, e, s, (i) => {
|
|
4322
|
+
return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
|
|
4325
4323
|
const o = { ...i.data };
|
|
4326
4324
|
return o.data = o.data.map((l) => new B(l)), o;
|
|
4327
4325
|
});
|
|
@@ -4498,7 +4496,7 @@ class Lt extends ye {
|
|
|
4498
4496
|
);
|
|
4499
4497
|
}
|
|
4500
4498
|
}
|
|
4501
|
-
class
|
|
4499
|
+
class Lt extends u {
|
|
4502
4500
|
/**
|
|
4503
4501
|
* Возвращает список ролей ценообразования.
|
|
4504
4502
|
*
|
|
@@ -4559,7 +4557,7 @@ class xt extends u {
|
|
|
4559
4557
|
return this.get(
|
|
4560
4558
|
`/internal/price/roles/rules/categories/${r}`,
|
|
4561
4559
|
{},
|
|
4562
|
-
(e) => e.data.map((s) => new
|
|
4560
|
+
(e) => e.data.map((s) => new Ie(s))
|
|
4563
4561
|
);
|
|
4564
4562
|
}
|
|
4565
4563
|
/**
|
|
@@ -4574,21 +4572,22 @@ class xt extends u {
|
|
|
4574
4572
|
return this.patch(
|
|
4575
4573
|
`/internal/price/roles/rules/categories/${r}`,
|
|
4576
4574
|
e,
|
|
4577
|
-
(s) => s.data.map((i) => new
|
|
4575
|
+
(s) => s.data.map((i) => new Ie(i))
|
|
4578
4576
|
);
|
|
4579
4577
|
}
|
|
4580
4578
|
}
|
|
4581
|
-
class
|
|
4579
|
+
class at extends ye {
|
|
4582
4580
|
/**
|
|
4583
4581
|
* Возвращает пагинированный список свойств.
|
|
4584
4582
|
*
|
|
4585
4583
|
* @param filters Параметры фильтрации данных.
|
|
4586
4584
|
* @param sortParams Параметры сортировки.
|
|
4587
4585
|
* @param paginationParams Параметры пагинации.
|
|
4586
|
+
*
|
|
4588
4587
|
* @see /doc/api/internal#/operations/api_internal_catalog_properties_get_list
|
|
4589
4588
|
*/
|
|
4590
4589
|
getProperties(r, e, s) {
|
|
4591
|
-
return this.getPaginated("/internal/catalog/properties", r, e, s, (i) => {
|
|
4590
|
+
return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
|
|
4592
4591
|
const o = { ...i.data };
|
|
4593
4592
|
return o.data = o.data.map((l) => new Y(l)), o;
|
|
4594
4593
|
});
|
|
@@ -4653,7 +4652,7 @@ class It extends ye {
|
|
|
4653
4652
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
|
|
4654
4653
|
*/
|
|
4655
4654
|
getProductProperties(r) {
|
|
4656
|
-
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
4655
|
+
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new d(s)));
|
|
4657
4656
|
}
|
|
4658
4657
|
/**
|
|
4659
4658
|
* Возвращает значение свойства продукта.
|
|
@@ -4663,7 +4662,7 @@ class It extends ye {
|
|
|
4663
4662
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
|
|
4664
4663
|
*/
|
|
4665
4664
|
getProductProperty(r, e) {
|
|
4666
|
-
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new
|
|
4665
|
+
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new d(s.data));
|
|
4667
4666
|
}
|
|
4668
4667
|
/**
|
|
4669
4668
|
* Обновляет значение свойства продукта.
|
|
@@ -4674,7 +4673,7 @@ class It extends ye {
|
|
|
4674
4673
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
|
|
4675
4674
|
*/
|
|
4676
4675
|
updateProductProperty(r, e, s) {
|
|
4677
|
-
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new
|
|
4676
|
+
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new d(i.data));
|
|
4678
4677
|
}
|
|
4679
4678
|
/**
|
|
4680
4679
|
* Удаляет значение свойства продукта.
|
|
@@ -4799,7 +4798,7 @@ class It extends ye {
|
|
|
4799
4798
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
|
|
4800
4799
|
*/
|
|
4801
4800
|
getCategoryProperties(r) {
|
|
4802
|
-
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
4801
|
+
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new d(s)));
|
|
4803
4802
|
}
|
|
4804
4803
|
/**
|
|
4805
4804
|
* Возвращает значение свойства категории.
|
|
@@ -4809,7 +4808,7 @@ class It extends ye {
|
|
|
4809
4808
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
|
|
4810
4809
|
*/
|
|
4811
4810
|
getCategoryProperty(r, e) {
|
|
4812
|
-
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new
|
|
4811
|
+
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new d(s.data));
|
|
4813
4812
|
}
|
|
4814
4813
|
/**
|
|
4815
4814
|
* Обновляет значение свойства категории.
|
|
@@ -4820,7 +4819,7 @@ class It extends ye {
|
|
|
4820
4819
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
|
|
4821
4820
|
*/
|
|
4822
4821
|
updateCategoryProperty(r, e, s) {
|
|
4823
|
-
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new
|
|
4822
|
+
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new d(i.data));
|
|
4824
4823
|
}
|
|
4825
4824
|
/**
|
|
4826
4825
|
* Удаляет значение свойства категории.
|
|
@@ -4949,14 +4948,14 @@ class It extends ye {
|
|
|
4949
4948
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
4950
4949
|
}
|
|
4951
4950
|
}
|
|
4952
|
-
class
|
|
4951
|
+
class xt extends u {
|
|
4953
4952
|
/**
|
|
4954
4953
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
4955
4954
|
*
|
|
4956
4955
|
* @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
|
|
4957
4956
|
*/
|
|
4958
4957
|
getProductCategoryRecommendations(r) {
|
|
4959
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new
|
|
4958
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new xe(e.data));
|
|
4960
4959
|
}
|
|
4961
4960
|
/**
|
|
4962
4961
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -4964,7 +4963,7 @@ class kt extends u {
|
|
|
4964
4963
|
* @param product Данные о продукте, для которого необходимо получить рекомендации.
|
|
4965
4964
|
*/
|
|
4966
4965
|
getProductRecommendations(r) {
|
|
4967
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new
|
|
4966
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new xe(e.data));
|
|
4968
4967
|
}
|
|
4969
4968
|
/**
|
|
4970
4969
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -4991,7 +4990,7 @@ class kt extends u {
|
|
|
4991
4990
|
});
|
|
4992
4991
|
}
|
|
4993
4992
|
}
|
|
4994
|
-
class
|
|
4993
|
+
class It extends u {
|
|
4995
4994
|
/**
|
|
4996
4995
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
4997
4996
|
*
|
|
@@ -5036,7 +5035,7 @@ class at extends u {
|
|
|
5036
5035
|
);
|
|
5037
5036
|
}
|
|
5038
5037
|
}
|
|
5039
|
-
class
|
|
5038
|
+
class kt extends u {
|
|
5040
5039
|
/**
|
|
5041
5040
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
5042
5041
|
*
|
|
@@ -5064,7 +5063,7 @@ class Nt extends u {
|
|
|
5064
5063
|
const i = this.get(
|
|
5065
5064
|
`internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
|
|
5066
5065
|
{ params: e },
|
|
5067
|
-
(l) => new
|
|
5066
|
+
(l) => new I(l.data)
|
|
5068
5067
|
);
|
|
5069
5068
|
return i.catch((l) => {
|
|
5070
5069
|
this.defaultInstanceNotificationErrorResponseHandler(l, s);
|
|
@@ -5107,18 +5106,18 @@ class Nt extends u {
|
|
|
5107
5106
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
|
|
5108
5107
|
}
|
|
5109
5108
|
}
|
|
5110
|
-
class
|
|
5109
|
+
class Nt {
|
|
5111
5110
|
/**
|
|
5112
5111
|
* Возвращает диапазон дат по умолчанию.
|
|
5113
5112
|
*/
|
|
5114
5113
|
static defaultDateRanges() {
|
|
5115
|
-
const r =
|
|
5114
|
+
const r = hr(/* @__PURE__ */ new Date(), 1);
|
|
5116
5115
|
return {
|
|
5117
5116
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5118
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
5119
|
-
today: { label: "Сегодня", from: Me(), to:
|
|
5120
|
-
yesterday: { label: "Вчера", from:
|
|
5121
|
-
tomorrow: { label: "Завтра", from:
|
|
5117
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: vr(r), to: wr(r) },
|
|
5118
|
+
today: { label: "Сегодня", from: Me(), to: Cr() },
|
|
5119
|
+
yesterday: { label: "Вчера", from: yr(), to: fr() },
|
|
5120
|
+
tomorrow: { label: "Завтра", from: mr(), to: gr() }
|
|
5122
5121
|
};
|
|
5123
5122
|
}
|
|
5124
5123
|
}
|
|
@@ -5163,7 +5162,7 @@ const V = class V {
|
|
|
5163
5162
|
*/
|
|
5164
5163
|
t(V, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5165
5164
|
let Oe = V;
|
|
5166
|
-
class
|
|
5165
|
+
class Ot {
|
|
5167
5166
|
/**
|
|
5168
5167
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5169
5168
|
*/
|
|
@@ -5179,7 +5178,7 @@ class qt {
|
|
|
5179
5178
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5180
5179
|
}
|
|
5181
5180
|
}
|
|
5182
|
-
class
|
|
5181
|
+
class et extends u {
|
|
5183
5182
|
/**
|
|
5184
5183
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5185
5184
|
*/
|
|
@@ -5191,7 +5190,7 @@ class rt extends u {
|
|
|
5191
5190
|
});
|
|
5192
5191
|
}
|
|
5193
5192
|
}
|
|
5194
|
-
class
|
|
5193
|
+
class rt {
|
|
5195
5194
|
/**
|
|
5196
5195
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
5197
5196
|
*
|
|
@@ -5245,10 +5244,10 @@ class qe {
|
|
|
5245
5244
|
*/
|
|
5246
5245
|
t(this, "meta");
|
|
5247
5246
|
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
|
|
5247
|
+
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
5248
|
}
|
|
5250
5249
|
}
|
|
5251
|
-
class
|
|
5250
|
+
class qt extends u {
|
|
5252
5251
|
/**
|
|
5253
5252
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
5254
5253
|
*
|
|
@@ -5279,8 +5278,8 @@ class Ut extends u {
|
|
|
5279
5278
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
5280
5279
|
}
|
|
5281
5280
|
}
|
|
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),
|
|
5281
|
+
const P = he("__references_private", () => {
|
|
5282
|
+
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
5283
|
return {
|
|
5285
5284
|
/**
|
|
5286
5285
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5317,11 +5316,11 @@ const R = he("__references_private", () => {
|
|
|
5317
5316
|
/**
|
|
5318
5317
|
* Справочник статусов заказов.
|
|
5319
5318
|
*/
|
|
5320
|
-
orderStatusReference:
|
|
5319
|
+
orderStatusReference: h,
|
|
5321
5320
|
/**
|
|
5322
5321
|
* Справочник типов оплаты заказов.
|
|
5323
5322
|
*/
|
|
5324
|
-
paymentTypeReference:
|
|
5323
|
+
paymentTypeReference: D,
|
|
5325
5324
|
/**
|
|
5326
5325
|
* Справочник групп партнеров.
|
|
5327
5326
|
*/
|
|
@@ -5349,97 +5348,97 @@ const R = he("__references_private", () => {
|
|
|
5349
5348
|
/**
|
|
5350
5349
|
* Справочник типов свойств.
|
|
5351
5350
|
*/
|
|
5352
|
-
propertyTypesReference:
|
|
5351
|
+
propertyTypesReference: k,
|
|
5353
5352
|
/**
|
|
5354
5353
|
* Справочник коэффициентов цен.
|
|
5355
5354
|
*/
|
|
5356
5355
|
priceCoefficientsReference: c
|
|
5357
5356
|
};
|
|
5358
|
-
}),
|
|
5359
|
-
const n =
|
|
5360
|
-
const c =
|
|
5361
|
-
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(
|
|
5362
|
-
c.channelPrimaryInterestReference =
|
|
5357
|
+
}), Ut = he("references", () => {
|
|
5358
|
+
const n = v(() => {
|
|
5359
|
+
const c = P();
|
|
5360
|
+
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((g) => {
|
|
5361
|
+
c.channelPrimaryInterestReference = g;
|
|
5363
5362
|
}).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 =
|
|
5363
|
+
}), r = v(() => {
|
|
5364
|
+
const c = P();
|
|
5365
|
+
return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(R).getContactPositions().then((g) => {
|
|
5366
|
+
c.contactPositionsReference = g;
|
|
5368
5367
|
}).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 =
|
|
5368
|
+
}), e = v(() => {
|
|
5369
|
+
const c = P();
|
|
5370
|
+
return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(R).getCurrency().then((g) => {
|
|
5371
|
+
c.currencyReference = g;
|
|
5373
5372
|
}).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 =
|
|
5373
|
+
}), s = v(() => {
|
|
5374
|
+
const c = P();
|
|
5375
|
+
return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(R).getOpf().then((g) => {
|
|
5376
|
+
c.opfReference = g;
|
|
5378
5377
|
}).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 =
|
|
5378
|
+
}), i = v(() => {
|
|
5379
|
+
const c = P();
|
|
5380
|
+
return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(R).getOrderPaymentStatuses().then((g) => {
|
|
5381
|
+
c.orderPaymentStatusReference = g;
|
|
5383
5382
|
}).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 =
|
|
5383
|
+
}), o = v(() => {
|
|
5384
|
+
const c = P();
|
|
5385
|
+
return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(R).getOrderStatuses().then((g) => {
|
|
5386
|
+
c.orderStatusReference = g;
|
|
5388
5387
|
}).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 =
|
|
5388
|
+
}), l = v(() => {
|
|
5389
|
+
const c = P();
|
|
5390
|
+
return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(R).getPaymentTypes().then((g) => {
|
|
5391
|
+
c.paymentTypeReference = g;
|
|
5393
5392
|
}).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 =
|
|
5393
|
+
}), p = v(() => {
|
|
5394
|
+
const c = P();
|
|
5395
|
+
return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(R).getPartnerGroup().then((g) => {
|
|
5396
|
+
c.partnerGroupReference = g;
|
|
5398
5397
|
}).catch(y)), c.partnerGroupReference;
|
|
5399
|
-
}),
|
|
5400
|
-
const c =
|
|
5401
|
-
return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(
|
|
5402
|
-
c.productFileTypeReference =
|
|
5398
|
+
}), h = v(() => {
|
|
5399
|
+
const c = P();
|
|
5400
|
+
return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(R).getProductFileType().then((g) => {
|
|
5401
|
+
c.productFileTypeReference = g;
|
|
5403
5402
|
}).catch(y)), c.productFileTypeReference;
|
|
5404
|
-
}),
|
|
5405
|
-
const c =
|
|
5406
|
-
return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(
|
|
5407
|
-
c.resourceTypesReference =
|
|
5403
|
+
}), D = v(() => {
|
|
5404
|
+
const c = P();
|
|
5405
|
+
return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(R).getResourceTypes().then((g) => {
|
|
5406
|
+
c.resourceTypesReference = g;
|
|
5408
5407
|
}).catch(y)), c.resourceTypesReference;
|
|
5409
|
-
}), $ =
|
|
5410
|
-
const c =
|
|
5411
|
-
return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(
|
|
5412
|
-
c.salesDirectionsReference =
|
|
5408
|
+
}), $ = v(() => {
|
|
5409
|
+
const c = P();
|
|
5410
|
+
return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(R).getSalesDirections().then((g) => {
|
|
5411
|
+
c.salesDirectionsReference = g;
|
|
5413
5412
|
}).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 =
|
|
5413
|
+
}), T = v(() => {
|
|
5414
|
+
const c = P();
|
|
5415
|
+
return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(R).getSourcePrimaryInterest().then((g) => {
|
|
5416
|
+
c.sourcePrimaryInterestReference = g;
|
|
5418
5417
|
}).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 =
|
|
5418
|
+
}), b = v(() => {
|
|
5419
|
+
const c = P();
|
|
5420
|
+
return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(R).getDeliveryTypes().then((g) => {
|
|
5421
|
+
c.deliveryTypeReference = g;
|
|
5423
5422
|
}).catch(y)), c.deliveryTypeReference;
|
|
5424
|
-
}), _ =
|
|
5425
|
-
const c =
|
|
5426
|
-
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(
|
|
5427
|
-
c.managersList =
|
|
5423
|
+
}), _ = v(() => {
|
|
5424
|
+
const c = P();
|
|
5425
|
+
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(et).getManagers().then((g) => {
|
|
5426
|
+
c.managersList = g;
|
|
5428
5427
|
}).catch(y)), c.managersList;
|
|
5429
|
-
}), S =
|
|
5430
|
-
const c =
|
|
5431
|
-
return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(
|
|
5432
|
-
c.warehousesReference =
|
|
5428
|
+
}), S = v(() => {
|
|
5429
|
+
const c = P();
|
|
5430
|
+
return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(R).getWarehouses().then((g) => {
|
|
5431
|
+
c.warehousesReference = g;
|
|
5433
5432
|
}).catch(y)), c.warehousesReference;
|
|
5434
|
-
}), L =
|
|
5435
|
-
const c =
|
|
5436
|
-
return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(
|
|
5437
|
-
c.propertyTypesReference =
|
|
5433
|
+
}), L = v(() => {
|
|
5434
|
+
const c = P();
|
|
5435
|
+
return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(R).getPropertyTypes().then((g) => {
|
|
5436
|
+
c.propertyTypesReference = g;
|
|
5438
5437
|
}).catch(y)), c.propertyTypesReference;
|
|
5439
|
-
}),
|
|
5440
|
-
const c =
|
|
5441
|
-
return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(
|
|
5442
|
-
c.priceCoefficientsReference =
|
|
5438
|
+
}), k = v(() => {
|
|
5439
|
+
const c = P();
|
|
5440
|
+
return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(R).getPriceCoefficients().then((g) => {
|
|
5441
|
+
c.priceCoefficientsReference = g;
|
|
5443
5442
|
}).catch(y)), c.priceCoefficientsReference;
|
|
5444
5443
|
});
|
|
5445
5444
|
return {
|
|
@@ -5478,11 +5477,11 @@ const R = he("__references_private", () => {
|
|
|
5478
5477
|
/**
|
|
5479
5478
|
* Справочник типов файлов продуктов/категорий.
|
|
5480
5479
|
*/
|
|
5481
|
-
productFilesTypesReference:
|
|
5480
|
+
productFilesTypesReference: h,
|
|
5482
5481
|
/**
|
|
5483
5482
|
* Справочник типов ресурсов.
|
|
5484
5483
|
*/
|
|
5485
|
-
resourceTypesReference:
|
|
5484
|
+
resourceTypesReference: D,
|
|
5486
5485
|
/**
|
|
5487
5486
|
* Справочник направлений продаж.
|
|
5488
5487
|
*/
|
|
@@ -5510,9 +5509,9 @@ const R = he("__references_private", () => {
|
|
|
5510
5509
|
/**
|
|
5511
5510
|
* Справочник коэффициентов цен.
|
|
5512
5511
|
*/
|
|
5513
|
-
priceCoefficientsReference:
|
|
5512
|
+
priceCoefficientsReference: k
|
|
5514
5513
|
};
|
|
5515
|
-
}),
|
|
5514
|
+
}), tt = he("__user_state_private", () => {
|
|
5516
5515
|
const n = w({}), r = w(void 0);
|
|
5517
5516
|
return {
|
|
5518
5517
|
/**
|
|
@@ -5524,18 +5523,18 @@ const R = he("__references_private", () => {
|
|
|
5524
5523
|
*/
|
|
5525
5524
|
currentUser: r
|
|
5526
5525
|
};
|
|
5527
|
-
}),
|
|
5526
|
+
}), Gt = he("user_state", () => ({
|
|
5528
5527
|
/**
|
|
5529
5528
|
* Данные о текущем пользователе.
|
|
5530
5529
|
*/
|
|
5531
|
-
currentUser:
|
|
5532
|
-
const r =
|
|
5533
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(
|
|
5530
|
+
currentUser: v(() => {
|
|
5531
|
+
const r = tt();
|
|
5532
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Wr).getCurrentUser().then((e) => {
|
|
5534
5533
|
r.currentUser = e;
|
|
5535
5534
|
}).catch(y).finally(y)), r.currentUser;
|
|
5536
5535
|
})
|
|
5537
5536
|
}));
|
|
5538
|
-
class
|
|
5537
|
+
class Mt extends u {
|
|
5539
5538
|
/**
|
|
5540
5539
|
* Возвращает подсказки по адресам.
|
|
5541
5540
|
*
|
|
@@ -5582,7 +5581,7 @@ class Ft extends u {
|
|
|
5582
5581
|
});
|
|
5583
5582
|
}
|
|
5584
5583
|
}
|
|
5585
|
-
class
|
|
5584
|
+
class Ft {
|
|
5586
5585
|
/**
|
|
5587
5586
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
5588
5587
|
*
|
|
@@ -5606,139 +5605,139 @@ class dt {
|
|
|
5606
5605
|
}
|
|
5607
5606
|
}
|
|
5608
5607
|
export {
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5608
|
+
Ur as AnyReference,
|
|
5609
|
+
ut as AppBaseConfig,
|
|
5610
|
+
a as AppConfigProvider,
|
|
5612
5611
|
Ae as BankAccount,
|
|
5613
5612
|
ye as BasePaginationProvider,
|
|
5614
|
-
|
|
5613
|
+
xr as CalculationTypeEnum,
|
|
5615
5614
|
se as Cart,
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5615
|
+
br as CartItem,
|
|
5616
|
+
Tr as CartItemBase,
|
|
5617
|
+
ht as CartProvider,
|
|
5618
|
+
Rt as CatalogProvider,
|
|
5620
5619
|
Fe as CatalogableItem,
|
|
5621
5620
|
q as Category,
|
|
5622
|
-
|
|
5621
|
+
Ie as CategoryPricingRule,
|
|
5623
5622
|
Ve as ChannelPrimaryInterest,
|
|
5624
|
-
|
|
5623
|
+
mt as City,
|
|
5625
5624
|
ce as CityWithRegionAndCountry,
|
|
5626
|
-
|
|
5627
|
-
|
|
5625
|
+
ke as Client,
|
|
5626
|
+
Xr as ClientAdditionalData,
|
|
5628
5627
|
oe as ClientCategory,
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5628
|
+
vt as ClientDataProvider,
|
|
5629
|
+
Dt as ClientPriceProvider,
|
|
5630
|
+
$t as ClientPriceTemplateProvider,
|
|
5632
5631
|
K as ClientProduct,
|
|
5633
|
-
|
|
5634
|
-
|
|
5632
|
+
bt as ClientProductCategoryDataProvider,
|
|
5633
|
+
_t as ClientProductDataProvider,
|
|
5635
5634
|
te as ClientShortInfo,
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5635
|
+
Vr as ClientsAdditionalDataRequestTypeEnum,
|
|
5636
|
+
ft as ClientsListFilters,
|
|
5637
|
+
kt as ConfiguratorProvider,
|
|
5639
5638
|
Te as Contact,
|
|
5640
|
-
|
|
5639
|
+
Or as ContactLinks,
|
|
5641
5640
|
F as ContactPerson,
|
|
5642
|
-
|
|
5643
|
-
|
|
5641
|
+
Jr as ContactPersonRelated,
|
|
5642
|
+
Gr as ContactPosition,
|
|
5644
5643
|
ve as ContactRelation,
|
|
5645
5644
|
Je as ContragentBase,
|
|
5646
5645
|
pe as ContragentFactory,
|
|
5647
5646
|
Qe as ContragentIc,
|
|
5648
|
-
|
|
5649
|
-
|
|
5647
|
+
Er as ContragentPerson,
|
|
5648
|
+
Kr as ContragentUlNr,
|
|
5650
5649
|
Ye as ContragentUlR,
|
|
5651
5650
|
Se as CostSourceEnum,
|
|
5652
5651
|
J as Country,
|
|
5653
5652
|
le as Currency,
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5653
|
+
Mt as DataSuggestionProvider,
|
|
5654
|
+
Ct as DataTablePagination,
|
|
5655
|
+
Zr as DataTablePaginationRequestParams,
|
|
5656
|
+
wt as DataTableSortRequestParams,
|
|
5657
|
+
Nt as DateTimeProvider,
|
|
5658
|
+
kr as DeletableNamedIdentity,
|
|
5660
5659
|
ue as DeliveryAddress,
|
|
5661
5660
|
E as DeliveryType,
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5661
|
+
_r as DeviceTypeResolutionConfig,
|
|
5662
|
+
Nr as DiscountShortInfo,
|
|
5663
|
+
Ft as FieldValidationResultData,
|
|
5665
5664
|
ee as FilterGroup,
|
|
5666
5665
|
Ne as FilterItem,
|
|
5667
5666
|
Le as FilterOpEnum,
|
|
5668
|
-
|
|
5669
|
-
|
|
5667
|
+
de as GeoCoordinates,
|
|
5668
|
+
$r as HiddenCatalogableItem,
|
|
5670
5669
|
$e as HttpBaseCachedRequester,
|
|
5671
5670
|
De as HttpBaseRequester,
|
|
5672
|
-
|
|
5671
|
+
Sr as HttpParamsConfig,
|
|
5673
5672
|
u as HttpRequester,
|
|
5674
|
-
|
|
5675
|
-
|
|
5673
|
+
H as Identity,
|
|
5674
|
+
Ar as Image,
|
|
5676
5675
|
fe as Manager,
|
|
5677
5676
|
ne as ManagerCommon,
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5677
|
+
Ot as ManagerDataFactory,
|
|
5678
|
+
et as ManagerDataProvider,
|
|
5679
|
+
rt as MetaTagItem,
|
|
5681
5680
|
A as NamedIdentity,
|
|
5682
5681
|
G as Opf,
|
|
5683
|
-
|
|
5684
|
-
|
|
5682
|
+
x as OpfEnum,
|
|
5683
|
+
Yr as Order,
|
|
5685
5684
|
Ze as OrderInfo,
|
|
5686
|
-
|
|
5687
|
-
|
|
5685
|
+
Mr as OrderPaymentStatus,
|
|
5686
|
+
Qr as OrderProduct,
|
|
5688
5687
|
Xe as OrderShortInfo,
|
|
5689
|
-
|
|
5690
|
-
|
|
5688
|
+
Fr as OrderStatus,
|
|
5689
|
+
yt as OrdersDataProvider,
|
|
5691
5690
|
M as PartnerGroup,
|
|
5692
5691
|
Hr as PaymentType,
|
|
5693
|
-
|
|
5692
|
+
gt as PreferencesStorageProvider,
|
|
5694
5693
|
Pe as PriceAnalyze,
|
|
5695
|
-
|
|
5694
|
+
It as PriceAnalyzeProvider,
|
|
5696
5695
|
ge as PriceCoefficient,
|
|
5697
|
-
|
|
5696
|
+
He as PriceCoefficientEnum,
|
|
5698
5697
|
B as PriceTemplate,
|
|
5699
5698
|
Ce as PriceTemplateCategory,
|
|
5700
5699
|
Q as PriceTemplateClient,
|
|
5701
5700
|
Be as PriceTemplateICatalogableItem,
|
|
5702
5701
|
we as PriceTemplateProduct,
|
|
5703
|
-
|
|
5702
|
+
St as PriceTemplateProvider,
|
|
5704
5703
|
X as PricingRole,
|
|
5705
|
-
|
|
5704
|
+
Lt as PricingRoleProvider,
|
|
5706
5705
|
Re as PrimaryCatalogableItem,
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5706
|
+
I as Product,
|
|
5707
|
+
At as ProductCategoryDataProvider,
|
|
5708
|
+
Tt as ProductDataProvider,
|
|
5709
|
+
dr as ProductFileType,
|
|
5711
5710
|
be as ProductPriceCoefficient,
|
|
5712
|
-
|
|
5713
|
-
|
|
5711
|
+
jr as ProductPriceHistory,
|
|
5712
|
+
at as PropertiesProvider,
|
|
5714
5713
|
Y as Property,
|
|
5715
5714
|
je as PropertyType,
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5715
|
+
Ir as PropertyTypeEnum,
|
|
5716
|
+
d as PropertyValue,
|
|
5717
|
+
xt as RecommendationsDataProvider,
|
|
5718
|
+
xe as RecommendationsList,
|
|
5720
5719
|
C as Reference,
|
|
5721
|
-
|
|
5720
|
+
R as ReferenceDataProvider,
|
|
5722
5721
|
Z as Region,
|
|
5723
5722
|
Ee as ResourceType,
|
|
5724
5723
|
O as SalesDirection,
|
|
5725
|
-
|
|
5724
|
+
Lr as SentryConfig,
|
|
5726
5725
|
qe as Seo,
|
|
5727
|
-
|
|
5726
|
+
qt as SeoDataProvider,
|
|
5728
5727
|
Ke as SourcePrimaryInterest,
|
|
5729
|
-
|
|
5728
|
+
Dr as StockCount,
|
|
5730
5729
|
_e as TypedInstanceFactory,
|
|
5731
5730
|
Oe as UnitsHelper,
|
|
5732
|
-
|
|
5731
|
+
Pt as UnknownClientDataProvider,
|
|
5733
5732
|
ze as UpdatableNamedIdentity,
|
|
5734
|
-
|
|
5733
|
+
Br as User,
|
|
5735
5734
|
We as UserCommonInfo,
|
|
5736
|
-
|
|
5735
|
+
Wr as UserDataProvider,
|
|
5737
5736
|
U as UserShortInfo,
|
|
5738
|
-
|
|
5739
|
-
|
|
5737
|
+
zr as UserTypeEnum,
|
|
5738
|
+
ar as VersionConfig,
|
|
5740
5739
|
me as Warehouse,
|
|
5741
|
-
|
|
5742
|
-
|
|
5740
|
+
Ut as useReferencesStore,
|
|
5741
|
+
Gt as useUserStateStore
|
|
5743
5742
|
};
|
|
5744
5743
|
//# sourceMappingURL=sc-common-lib.js.map
|