@snabcentr/common-lib 1.49.3 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +1 -1
- package/dist/release_notes.tmp +3 -3
- package/dist/sc-common-lib.js +358 -356
- 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,
|
|
@@ -3255,7 +3256,7 @@ class Pt extends ye {
|
|
|
3255
3256
|
return this.post(
|
|
3256
3257
|
`/internal/clients/${r}/contragents`,
|
|
3257
3258
|
i,
|
|
3258
|
-
(
|
|
3259
|
+
(k) => pe.createInstance(k.data),
|
|
3259
3260
|
s
|
|
3260
3261
|
);
|
|
3261
3262
|
}
|
|
@@ -3270,17 +3271,17 @@ class Pt extends ye {
|
|
|
3270
3271
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
|
|
3271
3272
|
*/
|
|
3272
3273
|
updateContragentClientData(r, e, s = {}) {
|
|
3273
|
-
var
|
|
3274
|
+
var h, D, $, T, b, _, S, L;
|
|
3274
3275
|
let i;
|
|
3275
3276
|
const o = e, l = e, p = e;
|
|
3276
3277
|
switch (e.opf.slug) {
|
|
3277
|
-
case
|
|
3278
|
+
case x.Ic:
|
|
3278
3279
|
i = {
|
|
3279
3280
|
opf: o.opf.slug,
|
|
3280
3281
|
name: o.name,
|
|
3281
3282
|
alternative_name: o.alternativeName,
|
|
3282
|
-
partner_group_id: (
|
|
3283
|
-
manager_id: (
|
|
3283
|
+
partner_group_id: (h = o.partnerGroup) == null ? void 0 : h.id,
|
|
3284
|
+
manager_id: (D = o.manager) == null ? void 0 : D.id,
|
|
3284
3285
|
comment: o.comment,
|
|
3285
3286
|
inn: o.inn,
|
|
3286
3287
|
okpo: o.okpo,
|
|
@@ -3292,7 +3293,7 @@ class Pt extends ye {
|
|
|
3292
3293
|
actual_address: o.actualAddress
|
|
3293
3294
|
};
|
|
3294
3295
|
break;
|
|
3295
|
-
case
|
|
3296
|
+
case x.UlR:
|
|
3296
3297
|
i = {
|
|
3297
3298
|
opf: l.opf.slug,
|
|
3298
3299
|
name: l.name,
|
|
@@ -3311,7 +3312,7 @@ class Pt extends ye {
|
|
|
3311
3312
|
actual_address: l.actualAddress
|
|
3312
3313
|
};
|
|
3313
3314
|
break;
|
|
3314
|
-
case
|
|
3315
|
+
case x.UlNr:
|
|
3315
3316
|
i = {
|
|
3316
3317
|
opf: p.opf.slug,
|
|
3317
3318
|
name: p.name,
|
|
@@ -3347,7 +3348,7 @@ class Pt extends ye {
|
|
|
3347
3348
|
return this.patch(
|
|
3348
3349
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
3349
3350
|
i,
|
|
3350
|
-
(
|
|
3351
|
+
(k) => pe.createInstance(k.data),
|
|
3351
3352
|
s
|
|
3352
3353
|
);
|
|
3353
3354
|
}
|
|
@@ -3680,7 +3681,7 @@ class Pt extends ye {
|
|
|
3680
3681
|
comment: e.comment,
|
|
3681
3682
|
...s
|
|
3682
3683
|
};
|
|
3683
|
-
return (l = e.phone) != null && l.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (
|
|
3684
|
+
return (l = e.phone) != null && l.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new F(h.data), i);
|
|
3684
3685
|
}
|
|
3685
3686
|
/**
|
|
3686
3687
|
* Устанавливает признак основного контактного лица.
|
|
@@ -3709,7 +3710,7 @@ class Pt extends ye {
|
|
|
3709
3710
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
3710
3711
|
}
|
|
3711
3712
|
}
|
|
3712
|
-
class
|
|
3713
|
+
class Pt extends u {
|
|
3713
3714
|
/**
|
|
3714
3715
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
3715
3716
|
*
|
|
@@ -3750,10 +3751,10 @@ class Pe {
|
|
|
3750
3751
|
* Источник клиентской цены.
|
|
3751
3752
|
*/
|
|
3752
3753
|
t(this, "source");
|
|
3753
|
-
this.client = new te(r == null ? void 0 : r.client), this.product = new
|
|
3754
|
+
this.client = new te(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Se.Product;
|
|
3754
3755
|
}
|
|
3755
3756
|
}
|
|
3756
|
-
class
|
|
3757
|
+
class Rt extends u {
|
|
3757
3758
|
/**
|
|
3758
3759
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
3759
3760
|
*
|
|
@@ -3780,11 +3781,11 @@ class Dt extends u {
|
|
|
3780
3781
|
*/
|
|
3781
3782
|
// eslint-disable-next-line class-methods-use-this
|
|
3782
3783
|
getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
|
|
3783
|
-
let l = `${
|
|
3784
|
+
let l = `${a.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
|
|
3784
3785
|
return s && (l += `&category_id=${s}`), i && (l += `&client_id=${i}`), l;
|
|
3785
3786
|
}
|
|
3786
3787
|
}
|
|
3787
|
-
class
|
|
3788
|
+
class Dt extends u {
|
|
3788
3789
|
/**
|
|
3789
3790
|
* Импортирует цены клиента из CSV файла.
|
|
3790
3791
|
*
|
|
@@ -3983,7 +3984,7 @@ class $t extends u {
|
|
|
3983
3984
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
3984
3985
|
}
|
|
3985
3986
|
}
|
|
3986
|
-
class
|
|
3987
|
+
class $t extends u {
|
|
3987
3988
|
/**
|
|
3988
3989
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
3989
3990
|
*
|
|
@@ -4018,7 +4019,7 @@ class At extends u {
|
|
|
4018
4019
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_attach
|
|
4019
4020
|
*/
|
|
4020
4021
|
attachTemplate(r, e, s) {
|
|
4021
|
-
const i =
|
|
4022
|
+
const i = a.getConfig().dateFormats.api;
|
|
4022
4023
|
return this.post(
|
|
4023
4024
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
4024
4025
|
s && {
|
|
@@ -4050,7 +4051,7 @@ class At extends u {
|
|
|
4050
4051
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_change
|
|
4051
4052
|
*/
|
|
4052
4053
|
changeTemplate(r, e, s, i) {
|
|
4053
|
-
const o =
|
|
4054
|
+
const o = a.getConfig().dateFormats.api;
|
|
4054
4055
|
return this.patch(
|
|
4055
4056
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
4056
4057
|
i && {
|
|
@@ -4073,7 +4074,7 @@ class At extends u {
|
|
|
4073
4074
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
4074
4075
|
}
|
|
4075
4076
|
}
|
|
4076
|
-
class
|
|
4077
|
+
class At extends u {
|
|
4077
4078
|
/**
|
|
4078
4079
|
* Возвращает список данных о корневых категориях.
|
|
4079
4080
|
*
|
|
@@ -4133,7 +4134,7 @@ class Tt extends u {
|
|
|
4133
4134
|
showHidden: s,
|
|
4134
4135
|
withPriceCoefficients: e
|
|
4135
4136
|
},
|
|
4136
|
-
(i) => ie(i.data, (o) => new
|
|
4137
|
+
(i) => ie(i.data, (o) => new I(o))
|
|
4137
4138
|
);
|
|
4138
4139
|
}
|
|
4139
4140
|
/**
|
|
@@ -4146,7 +4147,7 @@ class Tt extends u {
|
|
|
4146
4147
|
getCategoryProductsCoefficients(r) {
|
|
4147
4148
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
4148
4149
|
const { data: s } = e;
|
|
4149
|
-
return
|
|
4150
|
+
return lr(s, (i) => i.map((o) => new be(o))), s;
|
|
4150
4151
|
});
|
|
4151
4152
|
}
|
|
4152
4153
|
/**
|
|
@@ -4165,7 +4166,7 @@ class Tt extends u {
|
|
|
4165
4166
|
});
|
|
4166
4167
|
}
|
|
4167
4168
|
}
|
|
4168
|
-
class
|
|
4169
|
+
class Tt extends u {
|
|
4169
4170
|
/**
|
|
4170
4171
|
* Возвращает данные об указанном продукте.
|
|
4171
4172
|
*
|
|
@@ -4175,7 +4176,7 @@ class bt extends u {
|
|
|
4175
4176
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
4176
4177
|
*/
|
|
4177
4178
|
getProductData(r, e = !1) {
|
|
4178
|
-
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new
|
|
4179
|
+
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new I(s.data));
|
|
4179
4180
|
}
|
|
4180
4181
|
/**
|
|
4181
4182
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -4183,7 +4184,7 @@ class bt extends u {
|
|
|
4183
4184
|
* @param productId Идентификатор продукта.
|
|
4184
4185
|
*/
|
|
4185
4186
|
getPublicProductData(r) {
|
|
4186
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
4187
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new I(e.data));
|
|
4187
4188
|
}
|
|
4188
4189
|
/**
|
|
4189
4190
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -4209,7 +4210,7 @@ class bt extends u {
|
|
|
4209
4210
|
*/
|
|
4210
4211
|
getProductPriceHistory(r, e) {
|
|
4211
4212
|
const s = {};
|
|
4212
|
-
return Ue(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ie(i.data, (o) => new
|
|
4213
|
+
return Ue(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ie(i.data, (o) => new jr(o)));
|
|
4213
4214
|
}
|
|
4214
4215
|
/**
|
|
4215
4216
|
* Выполняет публичный поиск данных о продуктах по терму.
|
|
@@ -4220,14 +4221,14 @@ class bt extends u {
|
|
|
4220
4221
|
publicSimpleSearch(r, e = 10) {
|
|
4221
4222
|
return new Promise((s, i) => {
|
|
4222
4223
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
4223
|
-
s(o.products.map((l) => new
|
|
4224
|
+
s(o.products.map((l) => new I(l)));
|
|
4224
4225
|
}).catch((o) => {
|
|
4225
4226
|
i(o);
|
|
4226
4227
|
});
|
|
4227
4228
|
});
|
|
4228
4229
|
}
|
|
4229
4230
|
}
|
|
4230
|
-
class
|
|
4231
|
+
class bt extends u {
|
|
4231
4232
|
/**
|
|
4232
4233
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
4233
4234
|
*
|
|
@@ -4289,7 +4290,7 @@ class _t extends u {
|
|
|
4289
4290
|
);
|
|
4290
4291
|
}
|
|
4291
4292
|
}
|
|
4292
|
-
class
|
|
4293
|
+
class _t extends u {
|
|
4293
4294
|
/**
|
|
4294
4295
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
4295
4296
|
*
|
|
@@ -4310,7 +4311,7 @@ class St extends u {
|
|
|
4310
4311
|
);
|
|
4311
4312
|
}
|
|
4312
4313
|
}
|
|
4313
|
-
class
|
|
4314
|
+
class St extends ye {
|
|
4314
4315
|
/**
|
|
4315
4316
|
* Возвращает список шаблонов прайс-листа.
|
|
4316
4317
|
*
|
|
@@ -4321,7 +4322,7 @@ class Lt extends ye {
|
|
|
4321
4322
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_get_list
|
|
4322
4323
|
*/
|
|
4323
4324
|
getTemplateList(r, e, s) {
|
|
4324
|
-
return this.getPaginated("/internal/catalog/properties", r, e, s, (i) => {
|
|
4325
|
+
return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
|
|
4325
4326
|
const o = { ...i.data };
|
|
4326
4327
|
return o.data = o.data.map((l) => new B(l)), o;
|
|
4327
4328
|
});
|
|
@@ -4498,7 +4499,7 @@ class Lt extends ye {
|
|
|
4498
4499
|
);
|
|
4499
4500
|
}
|
|
4500
4501
|
}
|
|
4501
|
-
class
|
|
4502
|
+
class Lt extends u {
|
|
4502
4503
|
/**
|
|
4503
4504
|
* Возвращает список ролей ценообразования.
|
|
4504
4505
|
*
|
|
@@ -4559,7 +4560,7 @@ class xt extends u {
|
|
|
4559
4560
|
return this.get(
|
|
4560
4561
|
`/internal/price/roles/rules/categories/${r}`,
|
|
4561
4562
|
{},
|
|
4562
|
-
(e) => e.data.map((s) => new
|
|
4563
|
+
(e) => e.data.map((s) => new Ie(s))
|
|
4563
4564
|
);
|
|
4564
4565
|
}
|
|
4565
4566
|
/**
|
|
@@ -4574,21 +4575,22 @@ class xt extends u {
|
|
|
4574
4575
|
return this.patch(
|
|
4575
4576
|
`/internal/price/roles/rules/categories/${r}`,
|
|
4576
4577
|
e,
|
|
4577
|
-
(s) => s.data.map((i) => new
|
|
4578
|
+
(s) => s.data.map((i) => new Ie(i))
|
|
4578
4579
|
);
|
|
4579
4580
|
}
|
|
4580
4581
|
}
|
|
4581
|
-
class
|
|
4582
|
+
class at extends ye {
|
|
4582
4583
|
/**
|
|
4583
4584
|
* Возвращает пагинированный список свойств.
|
|
4584
4585
|
*
|
|
4585
4586
|
* @param filters Параметры фильтрации данных.
|
|
4586
4587
|
* @param sortParams Параметры сортировки.
|
|
4587
4588
|
* @param paginationParams Параметры пагинации.
|
|
4589
|
+
*
|
|
4588
4590
|
* @see /doc/api/internal#/operations/api_internal_catalog_properties_get_list
|
|
4589
4591
|
*/
|
|
4590
4592
|
getProperties(r, e, s) {
|
|
4591
|
-
return this.getPaginated("/internal/catalog/properties", r, e, s, (i) => {
|
|
4593
|
+
return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
|
|
4592
4594
|
const o = { ...i.data };
|
|
4593
4595
|
return o.data = o.data.map((l) => new Y(l)), o;
|
|
4594
4596
|
});
|
|
@@ -4653,7 +4655,7 @@ class It extends ye {
|
|
|
4653
4655
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
|
|
4654
4656
|
*/
|
|
4655
4657
|
getProductProperties(r) {
|
|
4656
|
-
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
4658
|
+
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new d(s)));
|
|
4657
4659
|
}
|
|
4658
4660
|
/**
|
|
4659
4661
|
* Возвращает значение свойства продукта.
|
|
@@ -4663,7 +4665,7 @@ class It extends ye {
|
|
|
4663
4665
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
|
|
4664
4666
|
*/
|
|
4665
4667
|
getProductProperty(r, e) {
|
|
4666
|
-
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new
|
|
4668
|
+
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new d(s.data));
|
|
4667
4669
|
}
|
|
4668
4670
|
/**
|
|
4669
4671
|
* Обновляет значение свойства продукта.
|
|
@@ -4674,7 +4676,7 @@ class It extends ye {
|
|
|
4674
4676
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
|
|
4675
4677
|
*/
|
|
4676
4678
|
updateProductProperty(r, e, s) {
|
|
4677
|
-
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new
|
|
4679
|
+
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new d(i.data));
|
|
4678
4680
|
}
|
|
4679
4681
|
/**
|
|
4680
4682
|
* Удаляет значение свойства продукта.
|
|
@@ -4799,7 +4801,7 @@ class It extends ye {
|
|
|
4799
4801
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
|
|
4800
4802
|
*/
|
|
4801
4803
|
getCategoryProperties(r) {
|
|
4802
|
-
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
4804
|
+
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new d(s)));
|
|
4803
4805
|
}
|
|
4804
4806
|
/**
|
|
4805
4807
|
* Возвращает значение свойства категории.
|
|
@@ -4809,7 +4811,7 @@ class It extends ye {
|
|
|
4809
4811
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
|
|
4810
4812
|
*/
|
|
4811
4813
|
getCategoryProperty(r, e) {
|
|
4812
|
-
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new
|
|
4814
|
+
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new d(s.data));
|
|
4813
4815
|
}
|
|
4814
4816
|
/**
|
|
4815
4817
|
* Обновляет значение свойства категории.
|
|
@@ -4820,7 +4822,7 @@ class It extends ye {
|
|
|
4820
4822
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
|
|
4821
4823
|
*/
|
|
4822
4824
|
updateCategoryProperty(r, e, s) {
|
|
4823
|
-
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new
|
|
4825
|
+
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new d(i.data));
|
|
4824
4826
|
}
|
|
4825
4827
|
/**
|
|
4826
4828
|
* Удаляет значение свойства категории.
|
|
@@ -4949,14 +4951,14 @@ class It extends ye {
|
|
|
4949
4951
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
4950
4952
|
}
|
|
4951
4953
|
}
|
|
4952
|
-
class
|
|
4954
|
+
class xt extends u {
|
|
4953
4955
|
/**
|
|
4954
4956
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
4955
4957
|
*
|
|
4956
4958
|
* @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
|
|
4957
4959
|
*/
|
|
4958
4960
|
getProductCategoryRecommendations(r) {
|
|
4959
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new
|
|
4961
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new xe(e.data));
|
|
4960
4962
|
}
|
|
4961
4963
|
/**
|
|
4962
4964
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -4964,7 +4966,7 @@ class kt extends u {
|
|
|
4964
4966
|
* @param product Данные о продукте, для которого необходимо получить рекомендации.
|
|
4965
4967
|
*/
|
|
4966
4968
|
getProductRecommendations(r) {
|
|
4967
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new
|
|
4969
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new xe(e.data));
|
|
4968
4970
|
}
|
|
4969
4971
|
/**
|
|
4970
4972
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -4991,7 +4993,7 @@ class kt extends u {
|
|
|
4991
4993
|
});
|
|
4992
4994
|
}
|
|
4993
4995
|
}
|
|
4994
|
-
class
|
|
4996
|
+
class It extends u {
|
|
4995
4997
|
/**
|
|
4996
4998
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
4997
4999
|
*
|
|
@@ -5036,7 +5038,7 @@ class at extends u {
|
|
|
5036
5038
|
);
|
|
5037
5039
|
}
|
|
5038
5040
|
}
|
|
5039
|
-
class
|
|
5041
|
+
class kt extends u {
|
|
5040
5042
|
/**
|
|
5041
5043
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
5042
5044
|
*
|
|
@@ -5064,7 +5066,7 @@ class Nt extends u {
|
|
|
5064
5066
|
const i = this.get(
|
|
5065
5067
|
`internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
|
|
5066
5068
|
{ params: e },
|
|
5067
|
-
(l) => new
|
|
5069
|
+
(l) => new I(l.data)
|
|
5068
5070
|
);
|
|
5069
5071
|
return i.catch((l) => {
|
|
5070
5072
|
this.defaultInstanceNotificationErrorResponseHandler(l, s);
|
|
@@ -5107,18 +5109,18 @@ class Nt extends u {
|
|
|
5107
5109
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
|
|
5108
5110
|
}
|
|
5109
5111
|
}
|
|
5110
|
-
class
|
|
5112
|
+
class Nt {
|
|
5111
5113
|
/**
|
|
5112
5114
|
* Возвращает диапазон дат по умолчанию.
|
|
5113
5115
|
*/
|
|
5114
5116
|
static defaultDateRanges() {
|
|
5115
|
-
const r =
|
|
5117
|
+
const r = hr(/* @__PURE__ */ new Date(), 1);
|
|
5116
5118
|
return {
|
|
5117
5119
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5118
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
5119
|
-
today: { label: "Сегодня", from: Me(), to:
|
|
5120
|
-
yesterday: { label: "Вчера", from:
|
|
5121
|
-
tomorrow: { label: "Завтра", from:
|
|
5120
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: vr(r), to: wr(r) },
|
|
5121
|
+
today: { label: "Сегодня", from: Me(), to: Cr() },
|
|
5122
|
+
yesterday: { label: "Вчера", from: yr(), to: fr() },
|
|
5123
|
+
tomorrow: { label: "Завтра", from: mr(), to: gr() }
|
|
5122
5124
|
};
|
|
5123
5125
|
}
|
|
5124
5126
|
}
|
|
@@ -5163,7 +5165,7 @@ const V = class V {
|
|
|
5163
5165
|
*/
|
|
5164
5166
|
t(V, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5165
5167
|
let Oe = V;
|
|
5166
|
-
class
|
|
5168
|
+
class Ot {
|
|
5167
5169
|
/**
|
|
5168
5170
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5169
5171
|
*/
|
|
@@ -5179,7 +5181,7 @@ class qt {
|
|
|
5179
5181
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5180
5182
|
}
|
|
5181
5183
|
}
|
|
5182
|
-
class
|
|
5184
|
+
class et extends u {
|
|
5183
5185
|
/**
|
|
5184
5186
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5185
5187
|
*/
|
|
@@ -5191,7 +5193,7 @@ class rt extends u {
|
|
|
5191
5193
|
});
|
|
5192
5194
|
}
|
|
5193
5195
|
}
|
|
5194
|
-
class
|
|
5196
|
+
class rt {
|
|
5195
5197
|
/**
|
|
5196
5198
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
5197
5199
|
*
|
|
@@ -5245,10 +5247,10 @@ class qe {
|
|
|
5245
5247
|
*/
|
|
5246
5248
|
t(this, "meta");
|
|
5247
5249
|
var e;
|
|
5248
|
-
this.resourceType = new Ee(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new
|
|
5250
|
+
this.resourceType = new Ee(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new rt(s))) ?? [];
|
|
5249
5251
|
}
|
|
5250
5252
|
}
|
|
5251
|
-
class
|
|
5253
|
+
class qt extends u {
|
|
5252
5254
|
/**
|
|
5253
5255
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
5254
5256
|
*
|
|
@@ -5279,8 +5281,8 @@ class Ut extends u {
|
|
|
5279
5281
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
5280
5282
|
}
|
|
5281
5283
|
}
|
|
5282
|
-
const
|
|
5283
|
-
const n = w({}), r = w(void 0), e = w(void 0), s = w(void 0), i = w(void 0), o = w(void 0), l = w(void 0), p = w(void 0),
|
|
5284
|
+
const P = he("__references_private", () => {
|
|
5285
|
+
const n = w({}), r = w(void 0), e = w(void 0), s = w(void 0), i = w(void 0), o = w(void 0), l = w(void 0), p = w(void 0), h = w(void 0), D = w(void 0), $ = w(void 0), T = w(void 0), b = w(void 0), _ = w(void 0), S = w(void 0), L = w(void 0), k = w(void 0), c = w(void 0);
|
|
5284
5286
|
return {
|
|
5285
5287
|
/**
|
|
5286
5288
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5317,11 +5319,11 @@ const R = he("__references_private", () => {
|
|
|
5317
5319
|
/**
|
|
5318
5320
|
* Справочник статусов заказов.
|
|
5319
5321
|
*/
|
|
5320
|
-
orderStatusReference:
|
|
5322
|
+
orderStatusReference: h,
|
|
5321
5323
|
/**
|
|
5322
5324
|
* Справочник типов оплаты заказов.
|
|
5323
5325
|
*/
|
|
5324
|
-
paymentTypeReference:
|
|
5326
|
+
paymentTypeReference: D,
|
|
5325
5327
|
/**
|
|
5326
5328
|
* Справочник групп партнеров.
|
|
5327
5329
|
*/
|
|
@@ -5349,97 +5351,97 @@ const R = he("__references_private", () => {
|
|
|
5349
5351
|
/**
|
|
5350
5352
|
* Справочник типов свойств.
|
|
5351
5353
|
*/
|
|
5352
|
-
propertyTypesReference:
|
|
5354
|
+
propertyTypesReference: k,
|
|
5353
5355
|
/**
|
|
5354
5356
|
* Справочник коэффициентов цен.
|
|
5355
5357
|
*/
|
|
5356
5358
|
priceCoefficientsReference: c
|
|
5357
5359
|
};
|
|
5358
|
-
}),
|
|
5359
|
-
const n =
|
|
5360
|
-
const c =
|
|
5361
|
-
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(
|
|
5362
|
-
c.channelPrimaryInterestReference =
|
|
5360
|
+
}), Ut = he("references", () => {
|
|
5361
|
+
const n = v(() => {
|
|
5362
|
+
const c = P();
|
|
5363
|
+
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((g) => {
|
|
5364
|
+
c.channelPrimaryInterestReference = g;
|
|
5363
5365
|
}).catch(y)), c.channelPrimaryInterestReference;
|
|
5364
|
-
}), r =
|
|
5365
|
-
const c =
|
|
5366
|
-
return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(
|
|
5367
|
-
c.contactPositionsReference =
|
|
5366
|
+
}), r = v(() => {
|
|
5367
|
+
const c = P();
|
|
5368
|
+
return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(R).getContactPositions().then((g) => {
|
|
5369
|
+
c.contactPositionsReference = g;
|
|
5368
5370
|
}).catch(y)), c.contactPositionsReference;
|
|
5369
|
-
}), e =
|
|
5370
|
-
const c =
|
|
5371
|
-
return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(
|
|
5372
|
-
c.currencyReference =
|
|
5371
|
+
}), e = v(() => {
|
|
5372
|
+
const c = P();
|
|
5373
|
+
return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(R).getCurrency().then((g) => {
|
|
5374
|
+
c.currencyReference = g;
|
|
5373
5375
|
}).catch(y)), c.currencyReference;
|
|
5374
|
-
}), s =
|
|
5375
|
-
const c =
|
|
5376
|
-
return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(
|
|
5377
|
-
c.opfReference =
|
|
5376
|
+
}), s = v(() => {
|
|
5377
|
+
const c = P();
|
|
5378
|
+
return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(R).getOpf().then((g) => {
|
|
5379
|
+
c.opfReference = g;
|
|
5378
5380
|
}).catch(y)), c.opfReference;
|
|
5379
|
-
}), i =
|
|
5380
|
-
const c =
|
|
5381
|
-
return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(
|
|
5382
|
-
c.orderPaymentStatusReference =
|
|
5381
|
+
}), i = v(() => {
|
|
5382
|
+
const c = P();
|
|
5383
|
+
return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(R).getOrderPaymentStatuses().then((g) => {
|
|
5384
|
+
c.orderPaymentStatusReference = g;
|
|
5383
5385
|
}).catch(y)), c.orderPaymentStatusReference;
|
|
5384
|
-
}), o =
|
|
5385
|
-
const c =
|
|
5386
|
-
return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(
|
|
5387
|
-
c.orderStatusReference =
|
|
5386
|
+
}), o = v(() => {
|
|
5387
|
+
const c = P();
|
|
5388
|
+
return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(R).getOrderStatuses().then((g) => {
|
|
5389
|
+
c.orderStatusReference = g;
|
|
5388
5390
|
}).catch(y)), c.orderStatusReference;
|
|
5389
|
-
}), l =
|
|
5390
|
-
const c =
|
|
5391
|
-
return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(
|
|
5392
|
-
c.paymentTypeReference =
|
|
5391
|
+
}), l = v(() => {
|
|
5392
|
+
const c = P();
|
|
5393
|
+
return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(R).getPaymentTypes().then((g) => {
|
|
5394
|
+
c.paymentTypeReference = g;
|
|
5393
5395
|
}).catch(y)), c.paymentTypeReference;
|
|
5394
|
-
}), p =
|
|
5395
|
-
const c =
|
|
5396
|
-
return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(
|
|
5397
|
-
c.partnerGroupReference =
|
|
5396
|
+
}), p = v(() => {
|
|
5397
|
+
const c = P();
|
|
5398
|
+
return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(R).getPartnerGroup().then((g) => {
|
|
5399
|
+
c.partnerGroupReference = g;
|
|
5398
5400
|
}).catch(y)), c.partnerGroupReference;
|
|
5399
|
-
}),
|
|
5400
|
-
const c =
|
|
5401
|
-
return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(
|
|
5402
|
-
c.productFileTypeReference =
|
|
5401
|
+
}), h = v(() => {
|
|
5402
|
+
const c = P();
|
|
5403
|
+
return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(R).getProductFileType().then((g) => {
|
|
5404
|
+
c.productFileTypeReference = g;
|
|
5403
5405
|
}).catch(y)), c.productFileTypeReference;
|
|
5404
|
-
}),
|
|
5405
|
-
const c =
|
|
5406
|
-
return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(
|
|
5407
|
-
c.resourceTypesReference =
|
|
5406
|
+
}), D = v(() => {
|
|
5407
|
+
const c = P();
|
|
5408
|
+
return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(R).getResourceTypes().then((g) => {
|
|
5409
|
+
c.resourceTypesReference = g;
|
|
5408
5410
|
}).catch(y)), c.resourceTypesReference;
|
|
5409
|
-
}), $ =
|
|
5410
|
-
const c =
|
|
5411
|
-
return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(
|
|
5412
|
-
c.salesDirectionsReference =
|
|
5411
|
+
}), $ = v(() => {
|
|
5412
|
+
const c = P();
|
|
5413
|
+
return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(R).getSalesDirections().then((g) => {
|
|
5414
|
+
c.salesDirectionsReference = g;
|
|
5413
5415
|
}).catch(y)), c.salesDirectionsReference;
|
|
5414
|
-
}), T =
|
|
5415
|
-
const c =
|
|
5416
|
-
return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(
|
|
5417
|
-
c.sourcePrimaryInterestReference =
|
|
5416
|
+
}), T = v(() => {
|
|
5417
|
+
const c = P();
|
|
5418
|
+
return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(R).getSourcePrimaryInterest().then((g) => {
|
|
5419
|
+
c.sourcePrimaryInterestReference = g;
|
|
5418
5420
|
}).catch(y)), c.sourcePrimaryInterestReference;
|
|
5419
|
-
}), b =
|
|
5420
|
-
const c =
|
|
5421
|
-
return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(
|
|
5422
|
-
c.deliveryTypeReference =
|
|
5421
|
+
}), b = v(() => {
|
|
5422
|
+
const c = P();
|
|
5423
|
+
return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(R).getDeliveryTypes().then((g) => {
|
|
5424
|
+
c.deliveryTypeReference = g;
|
|
5423
5425
|
}).catch(y)), c.deliveryTypeReference;
|
|
5424
|
-
}), _ =
|
|
5425
|
-
const c =
|
|
5426
|
-
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(
|
|
5427
|
-
c.managersList =
|
|
5426
|
+
}), _ = v(() => {
|
|
5427
|
+
const c = P();
|
|
5428
|
+
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(et).getManagers().then((g) => {
|
|
5429
|
+
c.managersList = g;
|
|
5428
5430
|
}).catch(y)), c.managersList;
|
|
5429
|
-
}), S =
|
|
5430
|
-
const c =
|
|
5431
|
-
return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(
|
|
5432
|
-
c.warehousesReference =
|
|
5431
|
+
}), S = v(() => {
|
|
5432
|
+
const c = P();
|
|
5433
|
+
return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(R).getWarehouses().then((g) => {
|
|
5434
|
+
c.warehousesReference = g;
|
|
5433
5435
|
}).catch(y)), c.warehousesReference;
|
|
5434
|
-
}), L =
|
|
5435
|
-
const c =
|
|
5436
|
-
return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(
|
|
5437
|
-
c.propertyTypesReference =
|
|
5436
|
+
}), L = v(() => {
|
|
5437
|
+
const c = P();
|
|
5438
|
+
return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(R).getPropertyTypes().then((g) => {
|
|
5439
|
+
c.propertyTypesReference = g;
|
|
5438
5440
|
}).catch(y)), c.propertyTypesReference;
|
|
5439
|
-
}),
|
|
5440
|
-
const c =
|
|
5441
|
-
return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(
|
|
5442
|
-
c.priceCoefficientsReference =
|
|
5441
|
+
}), k = v(() => {
|
|
5442
|
+
const c = P();
|
|
5443
|
+
return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(R).getPriceCoefficients().then((g) => {
|
|
5444
|
+
c.priceCoefficientsReference = g;
|
|
5443
5445
|
}).catch(y)), c.priceCoefficientsReference;
|
|
5444
5446
|
});
|
|
5445
5447
|
return {
|
|
@@ -5478,11 +5480,11 @@ const R = he("__references_private", () => {
|
|
|
5478
5480
|
/**
|
|
5479
5481
|
* Справочник типов файлов продуктов/категорий.
|
|
5480
5482
|
*/
|
|
5481
|
-
productFilesTypesReference:
|
|
5483
|
+
productFilesTypesReference: h,
|
|
5482
5484
|
/**
|
|
5483
5485
|
* Справочник типов ресурсов.
|
|
5484
5486
|
*/
|
|
5485
|
-
resourceTypesReference:
|
|
5487
|
+
resourceTypesReference: D,
|
|
5486
5488
|
/**
|
|
5487
5489
|
* Справочник направлений продаж.
|
|
5488
5490
|
*/
|
|
@@ -5510,9 +5512,9 @@ const R = he("__references_private", () => {
|
|
|
5510
5512
|
/**
|
|
5511
5513
|
* Справочник коэффициентов цен.
|
|
5512
5514
|
*/
|
|
5513
|
-
priceCoefficientsReference:
|
|
5515
|
+
priceCoefficientsReference: k
|
|
5514
5516
|
};
|
|
5515
|
-
}),
|
|
5517
|
+
}), tt = he("__user_state_private", () => {
|
|
5516
5518
|
const n = w({}), r = w(void 0);
|
|
5517
5519
|
return {
|
|
5518
5520
|
/**
|
|
@@ -5524,18 +5526,18 @@ const R = he("__references_private", () => {
|
|
|
5524
5526
|
*/
|
|
5525
5527
|
currentUser: r
|
|
5526
5528
|
};
|
|
5527
|
-
}),
|
|
5529
|
+
}), Gt = he("user_state", () => ({
|
|
5528
5530
|
/**
|
|
5529
5531
|
* Данные о текущем пользователе.
|
|
5530
5532
|
*/
|
|
5531
|
-
currentUser:
|
|
5532
|
-
const r =
|
|
5533
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(
|
|
5533
|
+
currentUser: v(() => {
|
|
5534
|
+
const r = tt();
|
|
5535
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Wr).getCurrentUser().then((e) => {
|
|
5534
5536
|
r.currentUser = e;
|
|
5535
5537
|
}).catch(y).finally(y)), r.currentUser;
|
|
5536
5538
|
})
|
|
5537
5539
|
}));
|
|
5538
|
-
class
|
|
5540
|
+
class Mt extends u {
|
|
5539
5541
|
/**
|
|
5540
5542
|
* Возвращает подсказки по адресам.
|
|
5541
5543
|
*
|
|
@@ -5582,7 +5584,7 @@ class Ft extends u {
|
|
|
5582
5584
|
});
|
|
5583
5585
|
}
|
|
5584
5586
|
}
|
|
5585
|
-
class
|
|
5587
|
+
class Ft {
|
|
5586
5588
|
/**
|
|
5587
5589
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
5588
5590
|
*
|
|
@@ -5606,139 +5608,139 @@ class dt {
|
|
|
5606
5608
|
}
|
|
5607
5609
|
}
|
|
5608
5610
|
export {
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5611
|
+
Ur as AnyReference,
|
|
5612
|
+
ut as AppBaseConfig,
|
|
5613
|
+
a as AppConfigProvider,
|
|
5612
5614
|
Ae as BankAccount,
|
|
5613
5615
|
ye as BasePaginationProvider,
|
|
5614
|
-
|
|
5616
|
+
xr as CalculationTypeEnum,
|
|
5615
5617
|
se as Cart,
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5618
|
+
br as CartItem,
|
|
5619
|
+
Tr as CartItemBase,
|
|
5620
|
+
ht as CartProvider,
|
|
5621
|
+
Rt as CatalogProvider,
|
|
5620
5622
|
Fe as CatalogableItem,
|
|
5621
5623
|
q as Category,
|
|
5622
|
-
|
|
5624
|
+
Ie as CategoryPricingRule,
|
|
5623
5625
|
Ve as ChannelPrimaryInterest,
|
|
5624
|
-
|
|
5626
|
+
mt as City,
|
|
5625
5627
|
ce as CityWithRegionAndCountry,
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
+
ke as Client,
|
|
5629
|
+
Xr as ClientAdditionalData,
|
|
5628
5630
|
oe as ClientCategory,
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5631
|
+
vt as ClientDataProvider,
|
|
5632
|
+
Dt as ClientPriceProvider,
|
|
5633
|
+
$t as ClientPriceTemplateProvider,
|
|
5632
5634
|
K as ClientProduct,
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
+
bt as ClientProductCategoryDataProvider,
|
|
5636
|
+
_t as ClientProductDataProvider,
|
|
5635
5637
|
te as ClientShortInfo,
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5638
|
+
Vr as ClientsAdditionalDataRequestTypeEnum,
|
|
5639
|
+
ft as ClientsListFilters,
|
|
5640
|
+
kt as ConfiguratorProvider,
|
|
5639
5641
|
Te as Contact,
|
|
5640
|
-
|
|
5642
|
+
Or as ContactLinks,
|
|
5641
5643
|
F as ContactPerson,
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
+
Jr as ContactPersonRelated,
|
|
5645
|
+
Gr as ContactPosition,
|
|
5644
5646
|
ve as ContactRelation,
|
|
5645
5647
|
Je as ContragentBase,
|
|
5646
5648
|
pe as ContragentFactory,
|
|
5647
5649
|
Qe as ContragentIc,
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
+
Er as ContragentPerson,
|
|
5651
|
+
Kr as ContragentUlNr,
|
|
5650
5652
|
Ye as ContragentUlR,
|
|
5651
5653
|
Se as CostSourceEnum,
|
|
5652
5654
|
J as Country,
|
|
5653
5655
|
le as Currency,
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5656
|
+
Mt as DataSuggestionProvider,
|
|
5657
|
+
Ct as DataTablePagination,
|
|
5658
|
+
Zr as DataTablePaginationRequestParams,
|
|
5659
|
+
wt as DataTableSortRequestParams,
|
|
5660
|
+
Nt as DateTimeProvider,
|
|
5661
|
+
kr as DeletableNamedIdentity,
|
|
5660
5662
|
ue as DeliveryAddress,
|
|
5661
5663
|
E as DeliveryType,
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5664
|
+
_r as DeviceTypeResolutionConfig,
|
|
5665
|
+
Nr as DiscountShortInfo,
|
|
5666
|
+
Ft as FieldValidationResultData,
|
|
5665
5667
|
ee as FilterGroup,
|
|
5666
5668
|
Ne as FilterItem,
|
|
5667
5669
|
Le as FilterOpEnum,
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
+
de as GeoCoordinates,
|
|
5671
|
+
$r as HiddenCatalogableItem,
|
|
5670
5672
|
$e as HttpBaseCachedRequester,
|
|
5671
5673
|
De as HttpBaseRequester,
|
|
5672
|
-
|
|
5674
|
+
Sr as HttpParamsConfig,
|
|
5673
5675
|
u as HttpRequester,
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
+
H as Identity,
|
|
5677
|
+
Ar as Image,
|
|
5676
5678
|
fe as Manager,
|
|
5677
5679
|
ne as ManagerCommon,
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5680
|
+
Ot as ManagerDataFactory,
|
|
5681
|
+
et as ManagerDataProvider,
|
|
5682
|
+
rt as MetaTagItem,
|
|
5681
5683
|
A as NamedIdentity,
|
|
5682
5684
|
G as Opf,
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
+
x as OpfEnum,
|
|
5686
|
+
Yr as Order,
|
|
5685
5687
|
Ze as OrderInfo,
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
+
Mr as OrderPaymentStatus,
|
|
5689
|
+
Qr as OrderProduct,
|
|
5688
5690
|
Xe as OrderShortInfo,
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
+
Fr as OrderStatus,
|
|
5692
|
+
yt as OrdersDataProvider,
|
|
5691
5693
|
M as PartnerGroup,
|
|
5692
5694
|
Hr as PaymentType,
|
|
5693
|
-
|
|
5695
|
+
gt as PreferencesStorageProvider,
|
|
5694
5696
|
Pe as PriceAnalyze,
|
|
5695
|
-
|
|
5697
|
+
It as PriceAnalyzeProvider,
|
|
5696
5698
|
ge as PriceCoefficient,
|
|
5697
|
-
|
|
5699
|
+
He as PriceCoefficientEnum,
|
|
5698
5700
|
B as PriceTemplate,
|
|
5699
5701
|
Ce as PriceTemplateCategory,
|
|
5700
5702
|
Q as PriceTemplateClient,
|
|
5701
5703
|
Be as PriceTemplateICatalogableItem,
|
|
5702
5704
|
we as PriceTemplateProduct,
|
|
5703
|
-
|
|
5705
|
+
St as PriceTemplateProvider,
|
|
5704
5706
|
X as PricingRole,
|
|
5705
|
-
|
|
5707
|
+
Lt as PricingRoleProvider,
|
|
5706
5708
|
Re as PrimaryCatalogableItem,
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5709
|
+
I as Product,
|
|
5710
|
+
At as ProductCategoryDataProvider,
|
|
5711
|
+
Tt as ProductDataProvider,
|
|
5712
|
+
dr as ProductFileType,
|
|
5711
5713
|
be as ProductPriceCoefficient,
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
+
jr as ProductPriceHistory,
|
|
5715
|
+
at as PropertiesProvider,
|
|
5714
5716
|
Y as Property,
|
|
5715
5717
|
je as PropertyType,
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5718
|
+
Ir as PropertyTypeEnum,
|
|
5719
|
+
d as PropertyValue,
|
|
5720
|
+
xt as RecommendationsDataProvider,
|
|
5721
|
+
xe as RecommendationsList,
|
|
5720
5722
|
C as Reference,
|
|
5721
|
-
|
|
5723
|
+
R as ReferenceDataProvider,
|
|
5722
5724
|
Z as Region,
|
|
5723
5725
|
Ee as ResourceType,
|
|
5724
5726
|
O as SalesDirection,
|
|
5725
|
-
|
|
5727
|
+
Lr as SentryConfig,
|
|
5726
5728
|
qe as Seo,
|
|
5727
|
-
|
|
5729
|
+
qt as SeoDataProvider,
|
|
5728
5730
|
Ke as SourcePrimaryInterest,
|
|
5729
|
-
|
|
5731
|
+
Dr as StockCount,
|
|
5730
5732
|
_e as TypedInstanceFactory,
|
|
5731
5733
|
Oe as UnitsHelper,
|
|
5732
|
-
|
|
5734
|
+
Pt as UnknownClientDataProvider,
|
|
5733
5735
|
ze as UpdatableNamedIdentity,
|
|
5734
|
-
|
|
5736
|
+
Br as User,
|
|
5735
5737
|
We as UserCommonInfo,
|
|
5736
|
-
|
|
5738
|
+
Wr as UserDataProvider,
|
|
5737
5739
|
U as UserShortInfo,
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
+
zr as UserTypeEnum,
|
|
5741
|
+
ar as VersionConfig,
|
|
5740
5742
|
me as Warehouse,
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
+
Ut as useReferencesStore,
|
|
5744
|
+
Gt as useUserStateStore
|
|
5743
5745
|
};
|
|
5744
5746
|
//# sourceMappingURL=sc-common-lib.js.map
|