@snabcentr/common-lib 1.37.2 → 1.39.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 +364 -330
- package/dist/sc-common-lib.js.map +1 -1
- package/dist/sc-common-lib.umd.cjs +1 -1
- package/dist/sc-common-lib.umd.cjs.map +1 -1
- package/dist/src/catalog/classes/property-type.d.ts +3 -2
- package/dist/src/catalog/classes/property-type.d.ts.map +1 -1
- package/dist/src/catalog/enums/index.d.ts +1 -0
- package/dist/src/catalog/enums/index.d.ts.map +1 -1
- package/dist/src/catalog/enums/property-type-enum.d.ts +38 -0
- package/dist/src/catalog/enums/property-type-enum.d.ts.map +1 -0
- package/dist/src/catalog/interfaces/i-property-type.d.ts +3 -2
- package/dist/src/catalog/interfaces/i-property-type.d.ts.map +1 -1
- package/dist/src/catalog/providers/catalog-provider.d.ts +10 -0
- package/dist/src/catalog/providers/catalog-provider.d.ts.map +1 -1
- package/dist/src/references/classes/opf.d.ts +2 -1
- package/dist/src/references/classes/opf.d.ts.map +1 -1
- package/dist/src/references/providers/reference-data-provider.d.ts +5 -0
- package/dist/src/references/providers/reference-data-provider.d.ts.map +1 -1
- package/dist/src/states/references-store.d.ts +14 -1
- package/dist/src/states/references-store.d.ts.map +1 -1
- package/dist/src/system/classes/reference.d.ts +2 -2
- package/dist/src/system/classes/reference.d.ts.map +1 -1
- package/dist/src/system/interfaces/i-reference.d.ts +2 -2
- package/dist/src/system/interfaces/i-reference.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var s = (i, r, e) =>
|
|
4
|
-
import { isUndefined as _e, cloneDeep as
|
|
5
|
-
import { format as
|
|
6
|
-
import
|
|
7
|
-
import { objectToSnake as Pe, objectToCamel as
|
|
8
|
-
import { defineStore as
|
|
1
|
+
var Be = Object.defineProperty;
|
|
2
|
+
var We = (i, r, e) => r in i ? Be(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
|
|
3
|
+
var s = (i, r, e) => We(i, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { isUndefined as _e, cloneDeep as ze, noop as f, toLower as Fe, isString as P, map as Y, forEach as je, isNil as Ee, isEmpty as Ve, isArray as Je, isFunction as Qe } from "lodash-es";
|
|
5
|
+
import { format as Ye, addSeconds as Ke, parseISO as O, isAfter as Xe, startOfToday as ue, parse as z, getDay as Ze, startOfTomorrow as ce, nextMonday as er, getUnixTime as x, endOfTomorrow as rr, endOfYesterday as sr, startOfYesterday as tr, endOfToday as nr, endOfDay as ir, startOfDay as or } from "date-fns";
|
|
6
|
+
import cr from "axios";
|
|
7
|
+
import { objectToSnake as Pe, objectToCamel as lr } from "ts-case-convert";
|
|
8
|
+
import { defineStore as te } from "pinia";
|
|
9
9
|
import { ref as w, computed as C } from "vue";
|
|
10
|
-
class
|
|
10
|
+
class E {
|
|
11
11
|
/**
|
|
12
12
|
* Инициализирует экземпляр класса {@link Identity}.
|
|
13
13
|
*
|
|
@@ -31,7 +31,7 @@ class F {
|
|
|
31
31
|
return this.id === -1;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
class
|
|
34
|
+
class A extends E {
|
|
35
35
|
/**
|
|
36
36
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
37
37
|
*
|
|
@@ -46,7 +46,7 @@ class R extends F {
|
|
|
46
46
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
class Se extends
|
|
49
|
+
class Se extends A {
|
|
50
50
|
/**
|
|
51
51
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
52
52
|
*
|
|
@@ -107,7 +107,7 @@ class ye extends pe {
|
|
|
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
|
-
class y extends
|
|
110
|
+
class y extends A {
|
|
111
111
|
/**
|
|
112
112
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
113
113
|
*
|
|
@@ -174,9 +174,9 @@ class Te {
|
|
|
174
174
|
this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
class
|
|
177
|
+
class F extends y {
|
|
178
178
|
}
|
|
179
|
-
class
|
|
179
|
+
class ne extends y {
|
|
180
180
|
/**
|
|
181
181
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
182
182
|
*
|
|
@@ -205,10 +205,10 @@ class te extends y {
|
|
|
205
205
|
* Координаты склада.
|
|
206
206
|
*/
|
|
207
207
|
s(this, "coordinates");
|
|
208
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((n) => new
|
|
208
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((n) => new F(n))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Te(e == null ? void 0 : e.coordinates);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
class
|
|
211
|
+
class ur {
|
|
212
212
|
/**
|
|
213
213
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
214
214
|
*
|
|
@@ -223,26 +223,26 @@ class lr {
|
|
|
223
223
|
* Количество остатков товара на складе.
|
|
224
224
|
*/
|
|
225
225
|
s(this, "count");
|
|
226
|
-
this.warehouse = new
|
|
226
|
+
this.warehouse = new ne(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
const
|
|
229
|
+
const H = class H {
|
|
230
230
|
/**
|
|
231
231
|
* Инициализирует и возвращает конфигурацию приложения.
|
|
232
232
|
*
|
|
233
233
|
* @param config Данные для первоначальной инициализации.
|
|
234
234
|
*/
|
|
235
235
|
static init(r) {
|
|
236
|
-
|
|
236
|
+
H.config = r;
|
|
237
237
|
}
|
|
238
238
|
/**
|
|
239
239
|
* Возвращает текущую конфигурацию приложения.
|
|
240
240
|
*/
|
|
241
241
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
242
242
|
static getConfig() {
|
|
243
|
-
if (_e(
|
|
243
|
+
if (_e(H.config))
|
|
244
244
|
throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
|
|
245
|
-
return
|
|
245
|
+
return H.config;
|
|
246
246
|
}
|
|
247
247
|
/**
|
|
248
248
|
* Выполняет загрузку конфигурации по указанному пути.
|
|
@@ -261,9 +261,9 @@ const q = class q {
|
|
|
261
261
|
/**
|
|
262
262
|
* Конфигурация приложения.
|
|
263
263
|
*/
|
|
264
|
-
s(
|
|
265
|
-
let
|
|
266
|
-
class
|
|
264
|
+
s(H, "config");
|
|
265
|
+
let k = H;
|
|
266
|
+
class pr extends Se {
|
|
267
267
|
/**
|
|
268
268
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
269
269
|
*
|
|
@@ -278,7 +278,7 @@ class ur extends Se {
|
|
|
278
278
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
|
-
class
|
|
281
|
+
class hr {
|
|
282
282
|
/**
|
|
283
283
|
* Инициализирует экземпляр класса {@link Image}.
|
|
284
284
|
*
|
|
@@ -301,7 +301,7 @@ class pr {
|
|
|
301
301
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
class I extends
|
|
304
|
+
class I extends pr {
|
|
305
305
|
/**
|
|
306
306
|
* Инициализирует экземпляр класса {@link Product}.
|
|
307
307
|
*
|
|
@@ -374,22 +374,22 @@ class I extends ur {
|
|
|
374
374
|
* Список коэффициентов цен на продукт.
|
|
375
375
|
*/
|
|
376
376
|
s(this, "priceCoefficients");
|
|
377
|
-
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 = e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((h) => new
|
|
377
|
+
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 = e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((n = e == null ? void 0 : e.stockCount) == null ? void 0 : n.map((h) => new ur(h))) ?? [], this.type = "product";
|
|
378
378
|
const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
|
|
379
379
|
t && (this.category = new pe({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new pe(h))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((h) => {
|
|
380
380
|
var m;
|
|
381
|
-
return new
|
|
381
|
+
return new hr(h, (m = k.getConfig().urls) == null ? void 0 : m.mediaServer);
|
|
382
382
|
})) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new we(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
383
383
|
}
|
|
384
384
|
/**
|
|
385
385
|
* Возвращает признак, что это измеряемый товар.
|
|
386
386
|
*/
|
|
387
387
|
getIsMeasurable() {
|
|
388
|
-
const e =
|
|
388
|
+
const e = k.getConfig().products.units;
|
|
389
389
|
return [...e.linear, ...e.square].includes(this.unit);
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
class
|
|
392
|
+
class gr extends E {
|
|
393
393
|
/**
|
|
394
394
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
395
395
|
*
|
|
@@ -441,10 +441,10 @@ class hr extends F {
|
|
|
441
441
|
* Признак того, что позиция является дополнительной продажей.
|
|
442
442
|
*/
|
|
443
443
|
s(this, "isAdditionalSale");
|
|
444
|
-
this.product = new I(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ye(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams &&
|
|
444
|
+
this.product = new I(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ye(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && ze(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
class
|
|
447
|
+
class mr extends gr {
|
|
448
448
|
/**
|
|
449
449
|
* Инициализирует экземпляр класса {@link CartItem}.
|
|
450
450
|
*
|
|
@@ -513,10 +513,10 @@ class Q {
|
|
|
513
513
|
* Список итоговых сумм по направлениям продаж.
|
|
514
514
|
*/
|
|
515
515
|
s(this, "directionsSum");
|
|
516
|
-
this.items = r.items.map((e) => new
|
|
516
|
+
this.items = r.items.map((e) => new mr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
class
|
|
519
|
+
class fr {
|
|
520
520
|
/**
|
|
521
521
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
522
522
|
*
|
|
@@ -538,7 +538,7 @@ class mr {
|
|
|
538
538
|
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;
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
class
|
|
541
|
+
class yr {
|
|
542
542
|
/**
|
|
543
543
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
544
544
|
*
|
|
@@ -556,7 +556,7 @@ class fr {
|
|
|
556
556
|
this.apiUri = (r == null ? void 0 : r.apiUri) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
class
|
|
559
|
+
class wr {
|
|
560
560
|
/**
|
|
561
561
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
562
562
|
*
|
|
@@ -601,7 +601,7 @@ class yr {
|
|
|
601
601
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
class
|
|
604
|
+
class Cr {
|
|
605
605
|
/**
|
|
606
606
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
607
607
|
*
|
|
@@ -620,10 +620,10 @@ class wr {
|
|
|
620
620
|
* Текущая версия приложения.
|
|
621
621
|
*/
|
|
622
622
|
s(this, "version");
|
|
623
|
-
this.date = (r == null ? void 0 : r.date) ??
|
|
623
|
+
this.date = (r == null ? void 0 : r.date) ?? Ye(/* @__PURE__ */ new Date(), "dd.MM.yyyy"), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
class
|
|
626
|
+
class Kr {
|
|
627
627
|
/**
|
|
628
628
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
629
629
|
*
|
|
@@ -666,16 +666,16 @@ class Yr {
|
|
|
666
666
|
* Данные о текущем выпуске приложения.
|
|
667
667
|
*/
|
|
668
668
|
s(this, "version");
|
|
669
|
-
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
|
|
669
|
+
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 yr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new fr(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
|
|
670
670
|
units: {
|
|
671
671
|
linear: ["пог.м.", "м."],
|
|
672
672
|
square: ["м2"]
|
|
673
673
|
},
|
|
674
674
|
...r == null ? void 0 : r.products
|
|
675
|
-
}, this.sentry = new
|
|
675
|
+
}, this.sentry = new wr({
|
|
676
676
|
environment: this.environment,
|
|
677
677
|
...r == null ? void 0 : r.sentry
|
|
678
|
-
}), this.urls = r == null ? void 0 : r.urls, this.version = new
|
|
678
|
+
}), this.urls = r == null ? void 0 : r.urls, this.version = new Cr(r == null ? void 0 : r.version);
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
class Ce {
|
|
@@ -717,8 +717,8 @@ const $ = class $ {
|
|
|
717
717
|
* - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
718
718
|
*/
|
|
719
719
|
s(this, "defaultInstanceNotificationErrorResponseHandler", f);
|
|
720
|
-
const t =
|
|
721
|
-
this.defaultInstanceNotificationErrorResponseHandler = $.baseDefaultNotificationErrorResponseHandler, this.httpClient =
|
|
720
|
+
const t = k.getConfig().version;
|
|
721
|
+
this.defaultInstanceNotificationErrorResponseHandler = $.baseDefaultNotificationErrorResponseHandler, this.httpClient = cr.create({
|
|
722
722
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
723
723
|
baseURL: r,
|
|
724
724
|
headers: {
|
|
@@ -728,10 +728,10 @@ const $ = class $ {
|
|
|
728
728
|
...e
|
|
729
729
|
}
|
|
730
730
|
}), this.httpClient.interceptors.request.use(
|
|
731
|
-
(n) => (n.method && (n.method === "get" && n.params && (n.params = Pe(n.params)), ["put", "patch", "post"].includes(
|
|
731
|
+
(n) => (n.method && (n.method === "get" && n.params && (n.params = Pe(n.params)), ["put", "patch", "post"].includes(Fe(n.method)) && n.data && (n.data = Pe(n.data))), n),
|
|
732
732
|
(n) => Promise.reject(n)
|
|
733
733
|
), this.httpClient.interceptors.response.use(
|
|
734
|
-
(n) => (n.data && (n.data =
|
|
734
|
+
(n) => (n.data && (n.data = lr(n.data)), n),
|
|
735
735
|
// Возвращаем изменённую структуру сообщения об ошибке.
|
|
736
736
|
(n) => $.convertHttpErrorResponse(n)
|
|
737
737
|
);
|
|
@@ -841,7 +841,7 @@ s($, "instances", {}), /**
|
|
|
841
841
|
*/
|
|
842
842
|
s($, "baseDefaultNotificationErrorResponseHandler", f);
|
|
843
843
|
let he = $;
|
|
844
|
-
const
|
|
844
|
+
const B = class B extends he {
|
|
845
845
|
/**
|
|
846
846
|
* Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
|
|
847
847
|
*
|
|
@@ -854,7 +854,7 @@ const H = class H extends he {
|
|
|
854
854
|
* Время кэширования данных ответов на запросы (секунд).
|
|
855
855
|
*/
|
|
856
856
|
s(this, "responseDataCacheTimeout");
|
|
857
|
-
const n =
|
|
857
|
+
const n = k.getConfig();
|
|
858
858
|
this.responseDataCacheTimeout = n.http.responseDataCacheTimeout;
|
|
859
859
|
}
|
|
860
860
|
/**
|
|
@@ -864,7 +864,7 @@ const H = class H extends he {
|
|
|
864
864
|
* @param url URL запроса.
|
|
865
865
|
*/
|
|
866
866
|
static getCachedResponse(e) {
|
|
867
|
-
const t =
|
|
867
|
+
const t = B.responseDataCache.get(e);
|
|
868
868
|
if (t && t.validTo > /* @__PURE__ */ new Date())
|
|
869
869
|
return t.val;
|
|
870
870
|
}
|
|
@@ -875,8 +875,8 @@ const H = class H extends he {
|
|
|
875
875
|
* @param data Данные для кэширования.
|
|
876
876
|
*/
|
|
877
877
|
cacheResponse(e, t) {
|
|
878
|
-
|
|
879
|
-
validTo:
|
|
878
|
+
B.responseDataCache.set(e, {
|
|
879
|
+
validTo: Ke(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
880
880
|
val: t
|
|
881
881
|
});
|
|
882
882
|
}
|
|
@@ -890,7 +890,7 @@ const H = class H extends he {
|
|
|
890
890
|
*/
|
|
891
891
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
892
892
|
getTypedDataArrayRequester(e, t, n = !1) {
|
|
893
|
-
const o = n ?
|
|
893
|
+
const o = n ? B.getCachedResponse(t) : void 0;
|
|
894
894
|
return o ? Promise.resolve(o) : this.get(t).then((l) => {
|
|
895
895
|
const u = l.map((h) => Ce.instanceInitializer(e, h));
|
|
896
896
|
return n && u && this.cacheResponse(t, u), u;
|
|
@@ -900,19 +900,19 @@ const H = class H extends he {
|
|
|
900
900
|
/**
|
|
901
901
|
* Кэш результатов запросов.
|
|
902
902
|
*/
|
|
903
|
-
s(
|
|
904
|
-
let ge =
|
|
903
|
+
s(B, "responseDataCache", /* @__PURE__ */ new Map());
|
|
904
|
+
let ge = B;
|
|
905
905
|
class g extends ge {
|
|
906
906
|
/**
|
|
907
907
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
908
908
|
*/
|
|
909
909
|
constructor() {
|
|
910
910
|
var t, n;
|
|
911
|
-
const r =
|
|
911
|
+
const r = k.getConfig(), e = {};
|
|
912
912
|
(t = r.devMode) != null && t.authBearerToken && (e.Authorization = `Bearer ${(n = r.devMode) == null ? void 0 : n.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
class
|
|
915
|
+
class Xr extends g {
|
|
916
916
|
/**
|
|
917
917
|
* Возвращает содержимое корзины указанного клиента.
|
|
918
918
|
*
|
|
@@ -1015,8 +1015,8 @@ class Kr extends g {
|
|
|
1015
1015
|
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new Q(e.data));
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
|
-
var Le = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Le || {});
|
|
1019
|
-
class
|
|
1018
|
+
var Le = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(Le || {}), vr = /* @__PURE__ */ ((i) => (i.Unknown = "unknown", i.Bool = "bool", i.Integer = "integer", i.Float = "float", i.String = "string", i.Range = "range", i.Json = "json", i.Object = "object", i))(vr || {});
|
|
1019
|
+
class N extends ye {
|
|
1020
1020
|
/**
|
|
1021
1021
|
* Инициализирует экземпляр класса {@link Category}.
|
|
1022
1022
|
*
|
|
@@ -1033,10 +1033,10 @@ class k extends ye {
|
|
|
1033
1033
|
* Список продуктов категории.
|
|
1034
1034
|
*/
|
|
1035
1035
|
s(this, "products");
|
|
1036
|
-
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new
|
|
1036
|
+
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new N(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new I(o));
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
class
|
|
1039
|
+
class ae extends A {
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1042
1042
|
*
|
|
@@ -1051,7 +1051,7 @@ class Ie extends R {
|
|
|
1051
1051
|
this.updatedAt = e == null ? void 0 : e.updatedAt;
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
|
-
class
|
|
1054
|
+
class Dr extends ae {
|
|
1055
1055
|
/**
|
|
1056
1056
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1057
1057
|
*
|
|
@@ -1063,10 +1063,10 @@ class Cr extends Ie {
|
|
|
1063
1063
|
* Дата и время последнего удаления в формате Y-m-d H:i:s.
|
|
1064
1064
|
*/
|
|
1065
1065
|
s(this, "deletedAt");
|
|
1066
|
-
this.deletedAt = e != null && e.deletedAt ? P(e.deletedAt) ?
|
|
1066
|
+
this.deletedAt = e != null && e.deletedAt ? P(e.deletedAt) ? O(e.deletedAt) : e.deletedAt : void 0;
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
|
-
class
|
|
1069
|
+
class Zr {
|
|
1070
1070
|
/**
|
|
1071
1071
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
1072
1072
|
*
|
|
@@ -1077,7 +1077,7 @@ class Xr {
|
|
|
1077
1077
|
if (e)
|
|
1078
1078
|
try {
|
|
1079
1079
|
const t = JSON.parse(e);
|
|
1080
|
-
if (
|
|
1080
|
+
if (Xe(O(t.availableFor) || ue(), /* @__PURE__ */ new Date()))
|
|
1081
1081
|
return t.data || {};
|
|
1082
1082
|
} catch {
|
|
1083
1083
|
localStorage.removeItem(r);
|
|
@@ -1100,7 +1100,7 @@ class Xr {
|
|
|
1100
1100
|
);
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
|
-
class
|
|
1103
|
+
class d extends A {
|
|
1104
1104
|
/**
|
|
1105
1105
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
1106
1106
|
*
|
|
@@ -1115,7 +1115,7 @@ class O extends R {
|
|
|
1115
1115
|
this.type = e == null ? void 0 : e.type;
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
1118
|
-
class
|
|
1118
|
+
class Pr extends A {
|
|
1119
1119
|
/**
|
|
1120
1120
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1121
1121
|
*
|
|
@@ -1151,10 +1151,10 @@ class vr extends R {
|
|
|
1151
1151
|
* Дата и время удаления в формате Y-m-d H:i:s.
|
|
1152
1152
|
*/
|
|
1153
1153
|
s(this, "deletedAt");
|
|
1154
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = e != null && e.publishedAt ? P(e.publishedAt) ?
|
|
1154
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = e != null && e.publishedAt ? P(e.publishedAt) ? O(e.publishedAt) : e.publishedAt : void 0, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new d(e == null ? void 0 : e.owner), this.deletedAt = e != null && e.deletedAt ? P(e.deletedAt) ? O(e.deletedAt) : e.deletedAt : void 0;
|
|
1155
1155
|
}
|
|
1156
1156
|
}
|
|
1157
|
-
class
|
|
1157
|
+
class Rr extends ae {
|
|
1158
1158
|
/**
|
|
1159
1159
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1160
1160
|
*
|
|
@@ -1170,10 +1170,10 @@ class Dr extends Ie {
|
|
|
1170
1170
|
* Дата и время создания шаблона.
|
|
1171
1171
|
*/
|
|
1172
1172
|
s(this, "createdAt");
|
|
1173
|
-
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = e != null && e.createdAt ? P(e.createdAt) ?
|
|
1173
|
+
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = e != null && e.createdAt ? P(e.createdAt) ? O(e.createdAt) : e.createdAt : /* @__PURE__ */ new Date();
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
|
-
class
|
|
1176
|
+
class ie extends I {
|
|
1177
1177
|
/**
|
|
1178
1178
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1179
1179
|
*
|
|
@@ -1209,10 +1209,10 @@ class ne extends I {
|
|
|
1209
1209
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1210
1210
|
*/
|
|
1211
1211
|
s(this, "isFavorite");
|
|
1212
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Le.Product, this.discount = e != null && e.discount ? new
|
|
1212
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Le.Product, this.discount = e != null && e.discount ? new Pr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Rr(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;
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
class
|
|
1215
|
+
class Ar {
|
|
1216
1216
|
/**
|
|
1217
1217
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1218
1218
|
*
|
|
@@ -1232,7 +1232,7 @@ class Pr {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
class _ extends y {
|
|
1234
1234
|
}
|
|
1235
|
-
class
|
|
1235
|
+
class K extends A {
|
|
1236
1236
|
/**
|
|
1237
1237
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1238
1238
|
*
|
|
@@ -1256,10 +1256,10 @@ class Y extends R {
|
|
|
1256
1256
|
* Признак того, что менеджер является основным для клиента.
|
|
1257
1257
|
*/
|
|
1258
1258
|
s(this, "isDefault");
|
|
1259
|
-
e && (this.salesDirection = new _(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new
|
|
1259
|
+
e && (this.salesDirection = new _(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Ar(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
|
-
class
|
|
1262
|
+
class oe extends K {
|
|
1263
1263
|
/**
|
|
1264
1264
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1265
1265
|
*
|
|
@@ -1290,7 +1290,7 @@ class ie extends Y {
|
|
|
1290
1290
|
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;
|
|
1291
1291
|
}
|
|
1292
1292
|
}
|
|
1293
|
-
class
|
|
1293
|
+
class br extends ye {
|
|
1294
1294
|
/**
|
|
1295
1295
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1296
1296
|
*
|
|
@@ -1318,10 +1318,10 @@ class Rr extends ye {
|
|
|
1318
1318
|
* Данные о менеджере за которым закреплена категория.
|
|
1319
1319
|
*/
|
|
1320
1320
|
s(this, "manager");
|
|
1321
|
-
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
|
|
1321
|
+
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 oe(e.manager) : void 0;
|
|
1322
1322
|
}
|
|
1323
1323
|
}
|
|
1324
|
-
class
|
|
1324
|
+
class X extends br {
|
|
1325
1325
|
/**
|
|
1326
1326
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1327
1327
|
*
|
|
@@ -1338,12 +1338,12 @@ class K extends Rr {
|
|
|
1338
1338
|
* Список продуктов категории.
|
|
1339
1339
|
*/
|
|
1340
1340
|
s(this, "products");
|
|
1341
|
-
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new
|
|
1341
|
+
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new X(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new ie(o));
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
|
-
class
|
|
1344
|
+
class Ie extends y {
|
|
1345
1345
|
}
|
|
1346
|
-
class
|
|
1346
|
+
class V extends A {
|
|
1347
1347
|
/**
|
|
1348
1348
|
* Инициализирует экземпляр класса {@link Property}.
|
|
1349
1349
|
*
|
|
@@ -1363,7 +1363,7 @@ class j extends R {
|
|
|
1363
1363
|
* Дополнительные метаданные свойства.
|
|
1364
1364
|
*/
|
|
1365
1365
|
s(this, "metadata");
|
|
1366
|
-
this.type = new
|
|
1366
|
+
this.type = new Ie(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
1369
|
class M {
|
|
@@ -1382,18 +1382,18 @@ class M {
|
|
|
1382
1382
|
* Может быть строкой, числом, boolean, диапазоном или JSON объектом.
|
|
1383
1383
|
*/
|
|
1384
1384
|
s(this, "value");
|
|
1385
|
-
this.property = new
|
|
1385
|
+
this.property = new V(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
|
-
class
|
|
1388
|
+
class $r extends y {
|
|
1389
1389
|
}
|
|
1390
1390
|
class xe extends y {
|
|
1391
1391
|
}
|
|
1392
|
-
class
|
|
1392
|
+
class es extends y {
|
|
1393
1393
|
}
|
|
1394
|
-
class
|
|
1394
|
+
class j extends y {
|
|
1395
1395
|
}
|
|
1396
|
-
class
|
|
1396
|
+
class J extends y {
|
|
1397
1397
|
/**
|
|
1398
1398
|
* Инициализирует экземпляр класса {@link Region}.
|
|
1399
1399
|
*
|
|
@@ -1404,11 +1404,11 @@ class V extends y {
|
|
|
1404
1404
|
/**
|
|
1405
1405
|
* Данные о стране, в которой расположен регион.
|
|
1406
1406
|
*/
|
|
1407
|
-
s(this, "country", new
|
|
1408
|
-
e && (this.country = new
|
|
1407
|
+
s(this, "country", new j());
|
|
1408
|
+
e && (this.country = new j(e.country));
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
1411
|
-
class
|
|
1411
|
+
class Z extends y {
|
|
1412
1412
|
/**
|
|
1413
1413
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
1414
1414
|
*
|
|
@@ -1419,13 +1419,13 @@ class X extends y {
|
|
|
1419
1419
|
/**
|
|
1420
1420
|
* Данные о регионе, в котором расположен город.
|
|
1421
1421
|
*/
|
|
1422
|
-
s(this, "region", new
|
|
1423
|
-
e && (this.region = new
|
|
1422
|
+
s(this, "region", new J());
|
|
1423
|
+
e && (this.region = new J(e.region));
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
|
-
class
|
|
1426
|
+
class _r extends y {
|
|
1427
1427
|
}
|
|
1428
|
-
class
|
|
1428
|
+
class ee extends A {
|
|
1429
1429
|
/**
|
|
1430
1430
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
1431
1431
|
*
|
|
@@ -1445,12 +1445,12 @@ class Z extends R {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
1447
|
var b = /* @__PURE__ */ ((i) => (i.Person = "individual", i.Ic = "entrepreneur", i.UlR = "legal", i.UlNr = "non_resident_legal", i))(b || {});
|
|
1448
|
-
class
|
|
1448
|
+
class U extends y {
|
|
1449
1449
|
/**
|
|
1450
1450
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
1451
1451
|
*/
|
|
1452
1452
|
static generatePersonItem() {
|
|
1453
|
-
return new
|
|
1453
|
+
return new U({
|
|
1454
1454
|
id: 1,
|
|
1455
1455
|
guid: "",
|
|
1456
1456
|
slug: b.Person,
|
|
@@ -1458,17 +1458,17 @@ class d extends y {
|
|
|
1458
1458
|
});
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
|
-
class _r extends y {
|
|
1462
|
-
}
|
|
1463
1461
|
class Sr extends y {
|
|
1464
1462
|
}
|
|
1463
|
+
class Tr extends y {
|
|
1464
|
+
}
|
|
1465
1465
|
class G extends y {
|
|
1466
1466
|
}
|
|
1467
|
-
class
|
|
1467
|
+
class Lr extends y {
|
|
1468
1468
|
}
|
|
1469
1469
|
class ke extends y {
|
|
1470
1470
|
}
|
|
1471
|
-
class
|
|
1471
|
+
class Ne extends y {
|
|
1472
1472
|
}
|
|
1473
1473
|
class D extends g {
|
|
1474
1474
|
/**
|
|
@@ -1479,7 +1479,7 @@ class D extends g {
|
|
|
1479
1479
|
* и использовать в случае аналогичных запросов.
|
|
1480
1480
|
*/
|
|
1481
1481
|
getReference(r, e = !1) {
|
|
1482
|
-
return this.getTypedDataArrayRequester(
|
|
1482
|
+
return this.getTypedDataArrayRequester($r, `/internal/references/${r}`, e);
|
|
1483
1483
|
}
|
|
1484
1484
|
/**
|
|
1485
1485
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
@@ -1492,13 +1492,13 @@ class D extends g {
|
|
|
1492
1492
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
1493
1493
|
*/
|
|
1494
1494
|
getContactPositions() {
|
|
1495
|
-
return this.getTypedDataArrayRequester(
|
|
1495
|
+
return this.getTypedDataArrayRequester(_r, "/internal/references/contact-position", !0);
|
|
1496
1496
|
}
|
|
1497
1497
|
/**
|
|
1498
1498
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
1499
1499
|
*/
|
|
1500
1500
|
getCurrency() {
|
|
1501
|
-
return this.getTypedDataArrayRequester(
|
|
1501
|
+
return this.getTypedDataArrayRequester(ee, "/public/references/currency", !0);
|
|
1502
1502
|
}
|
|
1503
1503
|
/**
|
|
1504
1504
|
* Возвращает {@link Promise} для получения справочника данных
|
|
@@ -1511,25 +1511,25 @@ class D extends g {
|
|
|
1511
1511
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
1512
1512
|
*/
|
|
1513
1513
|
getOpf() {
|
|
1514
|
-
return this.getTypedDataArrayRequester(
|
|
1514
|
+
return this.getTypedDataArrayRequester(U, "/public/references/opf", !0);
|
|
1515
1515
|
}
|
|
1516
1516
|
/**
|
|
1517
1517
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
1518
1518
|
*/
|
|
1519
1519
|
getOrderPaymentStatuses() {
|
|
1520
|
-
return this.getTypedDataArrayRequester(
|
|
1520
|
+
return this.getTypedDataArrayRequester(Sr, "/public/references/order-payment-status", !0);
|
|
1521
1521
|
}
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
1524
1524
|
*/
|
|
1525
1525
|
getOrderStatuses() {
|
|
1526
|
-
return this.getTypedDataArrayRequester(
|
|
1526
|
+
return this.getTypedDataArrayRequester(Tr, "/public/references/order-status", !0);
|
|
1527
1527
|
}
|
|
1528
1528
|
/**
|
|
1529
1529
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
1530
1530
|
*/
|
|
1531
1531
|
getPaymentTypes() {
|
|
1532
|
-
return this.getTypedDataArrayRequester(
|
|
1532
|
+
return this.getTypedDataArrayRequester(Lr, "/public/references/payment-type", !0);
|
|
1533
1533
|
}
|
|
1534
1534
|
/**
|
|
1535
1535
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
@@ -1547,7 +1547,7 @@ class D extends g {
|
|
|
1547
1547
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
1548
1548
|
*/
|
|
1549
1549
|
getSourcePrimaryInterest() {
|
|
1550
|
-
return this.getTypedDataArrayRequester(
|
|
1550
|
+
return this.getTypedDataArrayRequester(Ne, "/internal/references/source-primary-interest", !0);
|
|
1551
1551
|
}
|
|
1552
1552
|
/**
|
|
1553
1553
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -1555,7 +1555,7 @@ class D extends g {
|
|
|
1555
1555
|
* @param term Терм поиска.
|
|
1556
1556
|
*/
|
|
1557
1557
|
searchCity(r) {
|
|
1558
|
-
return this.getTypedDataArrayRequester(
|
|
1558
|
+
return this.getTypedDataArrayRequester(Z, `/internal/references/city-with-region-and-country/search?term=${r}`);
|
|
1559
1559
|
}
|
|
1560
1560
|
/**
|
|
1561
1561
|
* Выполняет поиск данных о регионах по терму в названии.
|
|
@@ -1563,7 +1563,7 @@ class D extends g {
|
|
|
1563
1563
|
* @param term Терм поиска.
|
|
1564
1564
|
*/
|
|
1565
1565
|
searchRegion(r) {
|
|
1566
|
-
return this.getTypedDataArrayRequester(
|
|
1566
|
+
return this.getTypedDataArrayRequester(J, `/internal/references/region-with-country/search?term=${r}`);
|
|
1567
1567
|
}
|
|
1568
1568
|
/**
|
|
1569
1569
|
* Выполняет поиск данных о странах по терму в названии.
|
|
@@ -1571,23 +1571,29 @@ class D extends g {
|
|
|
1571
1571
|
* @param term Терм поиска.
|
|
1572
1572
|
*/
|
|
1573
1573
|
searchCountry(r) {
|
|
1574
|
-
return this.getTypedDataArrayRequester(
|
|
1574
|
+
return this.getTypedDataArrayRequester(j, `/internal/references/country/search?term=${r}`);
|
|
1575
1575
|
}
|
|
1576
1576
|
/**
|
|
1577
1577
|
* Возвращает {@link Promise} для получения справочника типов доставки.
|
|
1578
1578
|
*/
|
|
1579
1579
|
getDeliveryTypes() {
|
|
1580
|
-
return this.getTypedDataArrayRequester(
|
|
1580
|
+
return this.getTypedDataArrayRequester(F, "/internal/references/delivery-type", !0);
|
|
1581
1581
|
}
|
|
1582
1582
|
/**
|
|
1583
1583
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
1584
1584
|
*/
|
|
1585
1585
|
getWarehouses() {
|
|
1586
|
-
return this.getTypedDataArrayRequester(
|
|
1586
|
+
return this.getTypedDataArrayRequester(ne, "/public/references/warehouse", !0);
|
|
1587
|
+
}
|
|
1588
|
+
/**
|
|
1589
|
+
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
1590
|
+
*/
|
|
1591
|
+
getPropertyTypes() {
|
|
1592
|
+
return this.getTypedDataArrayRequester(Ie, "/internal/references/property-type", !0);
|
|
1587
1593
|
}
|
|
1588
1594
|
}
|
|
1589
|
-
var
|
|
1590
|
-
class
|
|
1595
|
+
var ar = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))(ar || {});
|
|
1596
|
+
class Oe extends A {
|
|
1591
1597
|
/**
|
|
1592
1598
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1593
1599
|
*
|
|
@@ -1623,10 +1629,10 @@ class Ne extends R {
|
|
|
1623
1629
|
* Признак активности учетной записи пользователя.
|
|
1624
1630
|
*/
|
|
1625
1631
|
s(this, "isActive");
|
|
1626
|
-
this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new _(e.salesDirection) : void 0, this.createdAt = P(e == null ? void 0 : e.createdAt) ?
|
|
1632
|
+
this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new _(e.salesDirection) : void 0, this.createdAt = P(e == null ? void 0 : e.createdAt) ? O(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = P(e == null ? void 0 : e.lastLoginAt) ? O(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1627
1633
|
}
|
|
1628
1634
|
}
|
|
1629
|
-
class Ir extends
|
|
1635
|
+
class Ir extends Oe {
|
|
1630
1636
|
/**
|
|
1631
1637
|
* Инициализирует экземпляр класса {@link User}.
|
|
1632
1638
|
*
|
|
@@ -1701,7 +1707,7 @@ class kr {
|
|
|
1701
1707
|
* Данные о валюте.
|
|
1702
1708
|
*/
|
|
1703
1709
|
s(this, "currency");
|
|
1704
|
-
this.cost = r.cost, this.costDate = r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new
|
|
1710
|
+
this.cost = r.cost, this.costDate = r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new d(r.client) : void 0, this.executor = r.executor ? new d(r.executor) : void 0, this.currency = r.currency ? new ee(r.currency) : void 0;
|
|
1705
1711
|
}
|
|
1706
1712
|
}
|
|
1707
1713
|
class Re {
|
|
@@ -1719,10 +1725,10 @@ class Re {
|
|
|
1719
1725
|
* Список рекомендованных категорий продуктов.
|
|
1720
1726
|
*/
|
|
1721
1727
|
s(this, "productCategories", []);
|
|
1722
|
-
r != null && r.products && (this.products = r.products.map((e) => new I(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new
|
|
1728
|
+
r != null && r.products && (this.products = r.products.map((e) => new I(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new N(e)));
|
|
1723
1729
|
}
|
|
1724
1730
|
}
|
|
1725
|
-
class
|
|
1731
|
+
class rs extends g {
|
|
1726
1732
|
/**
|
|
1727
1733
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
1728
1734
|
*
|
|
@@ -1737,8 +1743,22 @@ class es extends g {
|
|
|
1737
1743
|
show_hidden: e
|
|
1738
1744
|
});
|
|
1739
1745
|
}
|
|
1746
|
+
/**
|
|
1747
|
+
* Возвращает ссылку для скачивания файла с ценами.
|
|
1748
|
+
*
|
|
1749
|
+
* @param format Формат скачиваемого файла прайс-листа.
|
|
1750
|
+
* @param showHidden Признак того, что необходимо включить в ответ скрытые продукты.
|
|
1751
|
+
* @param clientId Идентификатор клиента для которого необходимо получить файл.
|
|
1752
|
+
*
|
|
1753
|
+
* @see /doc/api/internal#/operations/api_internal_price_export
|
|
1754
|
+
*/
|
|
1755
|
+
// eslint-disable-next-line class-methods-use-this
|
|
1756
|
+
getPriceExportLink(r = "csv", e = !1, t = void 0) {
|
|
1757
|
+
let o = `${k.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
|
|
1758
|
+
return t && (o += `&client_id=${t}`), o;
|
|
1759
|
+
}
|
|
1740
1760
|
}
|
|
1741
|
-
class
|
|
1761
|
+
class ss extends g {
|
|
1742
1762
|
/**
|
|
1743
1763
|
* Возвращает список данных о корневых категориях.
|
|
1744
1764
|
*
|
|
@@ -1752,7 +1772,7 @@ class rs extends g {
|
|
|
1752
1772
|
{
|
|
1753
1773
|
showHidden: r
|
|
1754
1774
|
},
|
|
1755
|
-
(e) => e.data.map((t) => new
|
|
1775
|
+
(e) => e.data.map((t) => new N(t))
|
|
1756
1776
|
);
|
|
1757
1777
|
}
|
|
1758
1778
|
/**
|
|
@@ -1771,7 +1791,7 @@ class rs extends g {
|
|
|
1771
1791
|
showHidden: e,
|
|
1772
1792
|
withNestedCategories: t
|
|
1773
1793
|
},
|
|
1774
|
-
(n) => new
|
|
1794
|
+
(n) => new N(n.data)
|
|
1775
1795
|
);
|
|
1776
1796
|
}
|
|
1777
1797
|
/**
|
|
@@ -1780,7 +1800,7 @@ class rs extends g {
|
|
|
1780
1800
|
* @param categoryID Идентификатор категории продуктов.
|
|
1781
1801
|
*/
|
|
1782
1802
|
getPublicCategoryData(r) {
|
|
1783
|
-
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new
|
|
1803
|
+
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new N(e.data));
|
|
1784
1804
|
}
|
|
1785
1805
|
/**
|
|
1786
1806
|
* Возвращает список продуктов категории.
|
|
@@ -1798,7 +1818,7 @@ class rs extends g {
|
|
|
1798
1818
|
showHidden: t,
|
|
1799
1819
|
withPriceCoefficients: e
|
|
1800
1820
|
},
|
|
1801
|
-
(n) =>
|
|
1821
|
+
(n) => Y(n.data, (o) => new I(o))
|
|
1802
1822
|
);
|
|
1803
1823
|
}
|
|
1804
1824
|
/**
|
|
@@ -1811,7 +1831,7 @@ class rs extends g {
|
|
|
1811
1831
|
getCategoryProductsCoefficients(r) {
|
|
1812
1832
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
1813
1833
|
const t = { ...e.data };
|
|
1814
|
-
return
|
|
1834
|
+
return je(t, (n) => n.map((o) => new we(o))), t;
|
|
1815
1835
|
});
|
|
1816
1836
|
}
|
|
1817
1837
|
/**
|
|
@@ -1823,14 +1843,14 @@ class rs extends g {
|
|
|
1823
1843
|
publicSimpleSearch(r, e = 10) {
|
|
1824
1844
|
return new Promise((t, n) => {
|
|
1825
1845
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
1826
|
-
t(o.categories.map((l) => new
|
|
1846
|
+
t(o.categories.map((l) => new N(l)));
|
|
1827
1847
|
}).catch((o) => {
|
|
1828
1848
|
n(o);
|
|
1829
1849
|
});
|
|
1830
1850
|
});
|
|
1831
1851
|
}
|
|
1832
1852
|
}
|
|
1833
|
-
class
|
|
1853
|
+
class ts extends g {
|
|
1834
1854
|
/**
|
|
1835
1855
|
* Возвращает данные об указанном продукте.
|
|
1836
1856
|
*
|
|
@@ -1858,7 +1878,7 @@ class ss extends g {
|
|
|
1858
1878
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_coefficients_get
|
|
1859
1879
|
*/
|
|
1860
1880
|
getProductPriceCoefficients(r) {
|
|
1861
|
-
return this.get(`/internal/catalog/products/${r}/coefficients`, {}, (e) =>
|
|
1881
|
+
return this.get(`/internal/catalog/products/${r}/coefficients`, {}, (e) => Y(e.data, (t) => new we(t)));
|
|
1862
1882
|
}
|
|
1863
1883
|
/**
|
|
1864
1884
|
* Возвращает данные об истории изменения цен для указанного продукта.
|
|
@@ -1870,7 +1890,7 @@ class ss extends g {
|
|
|
1870
1890
|
*/
|
|
1871
1891
|
getProductPriceHistory(r, e) {
|
|
1872
1892
|
const t = {};
|
|
1873
|
-
return
|
|
1893
|
+
return Ee(e) || (t.clientId = e), this.get(`/internal/price/products/${r}/history`, t, (n) => Y(n.data, (o) => new kr(o)));
|
|
1874
1894
|
}
|
|
1875
1895
|
/**
|
|
1876
1896
|
* Выполняет публичный поиск данных о продуктах по терму.
|
|
@@ -1888,7 +1908,7 @@ class ss extends g {
|
|
|
1888
1908
|
});
|
|
1889
1909
|
}
|
|
1890
1910
|
}
|
|
1891
|
-
class
|
|
1911
|
+
class ns extends g {
|
|
1892
1912
|
/**
|
|
1893
1913
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
1894
1914
|
*
|
|
@@ -1904,7 +1924,7 @@ class ts extends g {
|
|
|
1904
1924
|
clientId: r,
|
|
1905
1925
|
showHidden: e
|
|
1906
1926
|
},
|
|
1907
|
-
(t) => t.data.map((n) => new
|
|
1927
|
+
(t) => t.data.map((n) => new X(n))
|
|
1908
1928
|
);
|
|
1909
1929
|
}
|
|
1910
1930
|
/**
|
|
@@ -1925,7 +1945,7 @@ class ts extends g {
|
|
|
1925
1945
|
showHidden: t,
|
|
1926
1946
|
withNestedCategories: n
|
|
1927
1947
|
},
|
|
1928
|
-
(o) => new
|
|
1948
|
+
(o) => new X(o.data)
|
|
1929
1949
|
);
|
|
1930
1950
|
}
|
|
1931
1951
|
/**
|
|
@@ -1946,11 +1966,11 @@ class ts extends g {
|
|
|
1946
1966
|
showHidden: n,
|
|
1947
1967
|
withPriceCoefficients: t
|
|
1948
1968
|
},
|
|
1949
|
-
(o) =>
|
|
1969
|
+
(o) => Y(o.data, (l) => new ie(l))
|
|
1950
1970
|
);
|
|
1951
1971
|
}
|
|
1952
1972
|
}
|
|
1953
|
-
class
|
|
1973
|
+
class is extends g {
|
|
1954
1974
|
/**
|
|
1955
1975
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
1956
1976
|
*
|
|
@@ -1967,7 +1987,7 @@ class ns extends g {
|
|
|
1967
1987
|
clientId: e,
|
|
1968
1988
|
withPriceCoefficients: t
|
|
1969
1989
|
},
|
|
1970
|
-
(n) => new
|
|
1990
|
+
(n) => new ie(n.data)
|
|
1971
1991
|
);
|
|
1972
1992
|
}
|
|
1973
1993
|
}
|
|
@@ -1987,12 +2007,12 @@ class ve extends g {
|
|
|
1987
2007
|
page: (n == null ? void 0 : n.page) ?? 1,
|
|
1988
2008
|
per_page: (n == null ? void 0 : n.pageSize) ?? (n == null ? void 0 : n.perPage) ?? 10
|
|
1989
2009
|
};
|
|
1990
|
-
return e && (u.filters = JSON.stringify(e)),
|
|
2010
|
+
return e && (u.filters = JSON.stringify(e)), Ve(t) || (Je(t) ? t : [t]).forEach((h, m) => {
|
|
1991
2011
|
u[`sort[${m}][field]`] = h.field, u[`sort[${m}][direction]`] = h.direction;
|
|
1992
2012
|
}), this.get(r, u, o, l);
|
|
1993
2013
|
}
|
|
1994
2014
|
}
|
|
1995
|
-
class
|
|
2015
|
+
class os extends ve {
|
|
1996
2016
|
/**
|
|
1997
2017
|
* Возвращает пагинированный список свойств.
|
|
1998
2018
|
*
|
|
@@ -2004,7 +2024,7 @@ class is extends ve {
|
|
|
2004
2024
|
getProperties(r, e, t) {
|
|
2005
2025
|
return this.getPaginated("/internal/catalog/properties", r, e, t, (n) => {
|
|
2006
2026
|
const o = { ...n.data };
|
|
2007
|
-
return o.data = o.data.map((l) => new
|
|
2027
|
+
return o.data = o.data.map((l) => new V(l)), o;
|
|
2008
2028
|
});
|
|
2009
2029
|
}
|
|
2010
2030
|
/**
|
|
@@ -2021,7 +2041,7 @@ class is extends ve {
|
|
|
2021
2041
|
...t,
|
|
2022
2042
|
type: e
|
|
2023
2043
|
},
|
|
2024
|
-
(n) => new
|
|
2044
|
+
(n) => new V(n.data)
|
|
2025
2045
|
);
|
|
2026
2046
|
}
|
|
2027
2047
|
/**
|
|
@@ -2031,7 +2051,7 @@ class is extends ve {
|
|
|
2031
2051
|
* @see /doc/api/internal#/operations/api_internal_catalog_properties_get
|
|
2032
2052
|
*/
|
|
2033
2053
|
getProperty(r) {
|
|
2034
|
-
return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new
|
|
2054
|
+
return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new V(e.data));
|
|
2035
2055
|
}
|
|
2036
2056
|
/**
|
|
2037
2057
|
* Обновляет существующее свойство.
|
|
@@ -2048,7 +2068,7 @@ class is extends ve {
|
|
|
2048
2068
|
...n,
|
|
2049
2069
|
type: t
|
|
2050
2070
|
},
|
|
2051
|
-
(o) => new
|
|
2071
|
+
(o) => new V(o.data)
|
|
2052
2072
|
);
|
|
2053
2073
|
}
|
|
2054
2074
|
/**
|
|
@@ -2353,7 +2373,7 @@ class is extends ve {
|
|
|
2353
2373
|
return this.patch(`/internal/catalog/categories/${r}/properties/slug`, { slug: e });
|
|
2354
2374
|
}
|
|
2355
2375
|
}
|
|
2356
|
-
class
|
|
2376
|
+
class cs extends g {
|
|
2357
2377
|
/**
|
|
2358
2378
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
2359
2379
|
*
|
|
@@ -2395,8 +2415,8 @@ class os extends g {
|
|
|
2395
2415
|
});
|
|
2396
2416
|
}
|
|
2397
2417
|
}
|
|
2398
|
-
var
|
|
2399
|
-
class me extends
|
|
2418
|
+
var Nr = /* @__PURE__ */ ((i) => (i.LastOrder = "last_order", i.Contacts = "contacts", i.PartnerGroups = "partner_groups", i.PreferredDeliveryType = "preferred_delivery_type", i))(Nr || {});
|
|
2419
|
+
class me extends E {
|
|
2400
2420
|
/**
|
|
2401
2421
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
2402
2422
|
*
|
|
@@ -2423,11 +2443,11 @@ class me extends F {
|
|
|
2423
2443
|
/**
|
|
2424
2444
|
* Данные о валюте.
|
|
2425
2445
|
*/
|
|
2426
|
-
s(this, "currency", new
|
|
2427
|
-
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new
|
|
2446
|
+
s(this, "currency", new ee());
|
|
2447
|
+
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ee(e.currency));
|
|
2428
2448
|
}
|
|
2429
2449
|
}
|
|
2430
|
-
class fe extends
|
|
2450
|
+
class fe extends A {
|
|
2431
2451
|
/**
|
|
2432
2452
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
2433
2453
|
*
|
|
@@ -2446,7 +2466,7 @@ class fe extends R {
|
|
|
2446
2466
|
this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
|
|
2447
2467
|
}
|
|
2448
2468
|
}
|
|
2449
|
-
class
|
|
2469
|
+
class q extends fe {
|
|
2450
2470
|
/**
|
|
2451
2471
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
2452
2472
|
*
|
|
@@ -2481,7 +2501,7 @@ class U extends fe {
|
|
|
2481
2501
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = e == null ? void 0 : e.deletedAt;
|
|
2482
2502
|
}
|
|
2483
2503
|
}
|
|
2484
|
-
class
|
|
2504
|
+
class de extends A {
|
|
2485
2505
|
/**
|
|
2486
2506
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
2487
2507
|
*
|
|
@@ -2493,11 +2513,11 @@ class Oe extends R {
|
|
|
2493
2513
|
/**
|
|
2494
2514
|
* Данные о менеджере.
|
|
2495
2515
|
*/
|
|
2496
|
-
s(this, "manager", new
|
|
2516
|
+
s(this, "manager", new K());
|
|
2497
2517
|
/**
|
|
2498
2518
|
* Данные об организационно-правовой форме.
|
|
2499
2519
|
*/
|
|
2500
|
-
s(this, "opf",
|
|
2520
|
+
s(this, "opf", U.generatePersonItem());
|
|
2501
2521
|
/**
|
|
2502
2522
|
* Направление продаж.
|
|
2503
2523
|
*/
|
|
@@ -2539,10 +2559,10 @@ class Oe extends R {
|
|
|
2539
2559
|
*/
|
|
2540
2560
|
s(this, "updater");
|
|
2541
2561
|
if (e) {
|
|
2542
|
-
if (this.opf = new
|
|
2562
|
+
if (this.opf = new U(e.opf), this.salesDirection = new _(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = P(e == null ? void 0 : e.createdAt) ? z(e == null ? void 0 : e.createdAt, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date()) : e.createdAt, this.creator = e.creator ? new d(e.creator) : void 0, this.updatedAt = P(e == null ? void 0 : e.updatedAt) ? z(e == null ? void 0 : e.updatedAt, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date()) : e.updatedAt, this.updater = e.updater ? new d(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new G(e.partnerGroup)), e.manager && (this.manager = new K(e.manager)), e.contacts) {
|
|
2543
2563
|
const t = [];
|
|
2544
2564
|
e.contacts.forEach((n) => {
|
|
2545
|
-
t.push(new
|
|
2565
|
+
t.push(new q(n));
|
|
2546
2566
|
}), this.contacts = t;
|
|
2547
2567
|
}
|
|
2548
2568
|
if (e.bankAccounts) {
|
|
@@ -2554,7 +2574,7 @@ class Oe extends R {
|
|
|
2554
2574
|
}
|
|
2555
2575
|
}
|
|
2556
2576
|
}
|
|
2557
|
-
class
|
|
2577
|
+
class Or extends de {
|
|
2558
2578
|
/**
|
|
2559
2579
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
2560
2580
|
*
|
|
@@ -2564,7 +2584,7 @@ class Nr extends Oe {
|
|
|
2564
2584
|
super(r);
|
|
2565
2585
|
}
|
|
2566
2586
|
}
|
|
2567
|
-
class
|
|
2587
|
+
class Ue extends de {
|
|
2568
2588
|
/**
|
|
2569
2589
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
2570
2590
|
*
|
|
@@ -2607,7 +2627,7 @@ class de extends Oe {
|
|
|
2607
2627
|
e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
|
|
2608
2628
|
}
|
|
2609
2629
|
}
|
|
2610
|
-
class Ge extends
|
|
2630
|
+
class Ge extends Ue {
|
|
2611
2631
|
/**
|
|
2612
2632
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
2613
2633
|
*
|
|
@@ -2622,7 +2642,7 @@ class Ge extends de {
|
|
|
2622
2642
|
e && (this.kpp = e.kpp ?? "");
|
|
2623
2643
|
}
|
|
2624
2644
|
}
|
|
2625
|
-
class
|
|
2645
|
+
class dr extends Ge {
|
|
2626
2646
|
/**
|
|
2627
2647
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
2628
2648
|
*
|
|
@@ -2633,7 +2653,7 @@ class Or extends Ge {
|
|
|
2633
2653
|
/**
|
|
2634
2654
|
* Страна регистрации юридического лица нерезидента.
|
|
2635
2655
|
*/
|
|
2636
|
-
s(this, "registrationCountry", new
|
|
2656
|
+
s(this, "registrationCountry", new j());
|
|
2637
2657
|
/**
|
|
2638
2658
|
* Регистрационный номер юридического лица нерезидента.
|
|
2639
2659
|
*/
|
|
@@ -2642,10 +2662,10 @@ class Or extends Ge {
|
|
|
2642
2662
|
* Налоговый номер юридического лица нерезидента.
|
|
2643
2663
|
*/
|
|
2644
2664
|
s(this, "taxNumber", "");
|
|
2645
|
-
e && (this.registrationCountry = new
|
|
2665
|
+
e && (this.registrationCountry = new j(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
2646
2666
|
}
|
|
2647
2667
|
}
|
|
2648
|
-
class
|
|
2668
|
+
class re {
|
|
2649
2669
|
/**
|
|
2650
2670
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
2651
2671
|
*
|
|
@@ -2654,17 +2674,17 @@ class ee {
|
|
|
2654
2674
|
static createInstance(r) {
|
|
2655
2675
|
switch (r.opf.slug) {
|
|
2656
2676
|
case b.Ic:
|
|
2657
|
-
return new
|
|
2677
|
+
return new Ue(r);
|
|
2658
2678
|
case b.UlR:
|
|
2659
2679
|
return new Ge(r);
|
|
2660
2680
|
case b.UlNr:
|
|
2661
|
-
return new
|
|
2681
|
+
return new dr(r);
|
|
2662
2682
|
default:
|
|
2663
|
-
return new
|
|
2683
|
+
return new Or(r);
|
|
2664
2684
|
}
|
|
2665
2685
|
}
|
|
2666
2686
|
}
|
|
2667
|
-
class De extends
|
|
2687
|
+
class De extends Oe {
|
|
2668
2688
|
/**
|
|
2669
2689
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2670
2690
|
*
|
|
@@ -2706,10 +2726,10 @@ class De extends Ne {
|
|
|
2706
2726
|
* Список менеджеров клиента.
|
|
2707
2727
|
*/
|
|
2708
2728
|
s(this, "managers");
|
|
2709
|
-
this.salesDirection = new _(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
|
|
2729
|
+
this.salesDirection = new _(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 Z(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 = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((n) => new K(n))) ?? [];
|
|
2710
2730
|
}
|
|
2711
2731
|
}
|
|
2712
|
-
class le extends
|
|
2732
|
+
class le extends E {
|
|
2713
2733
|
/**
|
|
2714
2734
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
2715
2735
|
*
|
|
@@ -2724,7 +2744,7 @@ class le extends F {
|
|
|
2724
2744
|
this.isPrimary = e.isPrimary;
|
|
2725
2745
|
}
|
|
2726
2746
|
}
|
|
2727
|
-
class
|
|
2747
|
+
class Ur extends q {
|
|
2728
2748
|
/**
|
|
2729
2749
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
2730
2750
|
*
|
|
@@ -2752,7 +2772,7 @@ class dr extends U {
|
|
|
2752
2772
|
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new le(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new le(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new le(t))));
|
|
2753
2773
|
}
|
|
2754
2774
|
}
|
|
2755
|
-
class
|
|
2775
|
+
class se extends Dr {
|
|
2756
2776
|
/**
|
|
2757
2777
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
2758
2778
|
*
|
|
@@ -2789,7 +2809,7 @@ class re extends Cr {
|
|
|
2789
2809
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
2790
2810
|
*/
|
|
2791
2811
|
s(this, "isTransportCompanyAddress");
|
|
2792
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Te(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((n) => new
|
|
2812
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Te(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((n) => new q(n))) ?? [], 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;
|
|
2793
2813
|
}
|
|
2794
2814
|
}
|
|
2795
2815
|
class Ae extends De {
|
|
@@ -2846,10 +2866,10 @@ class Ae extends De {
|
|
|
2846
2866
|
* Дополнительные данные о клиенте.
|
|
2847
2867
|
*/
|
|
2848
2868
|
s(this, "extraData");
|
|
2849
|
-
this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) =>
|
|
2869
|
+
this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => re.createInstance(u))) ?? [], this.partnerGroups = ((n = e == null ? void 0 : e.partnerGroups) == null ? void 0 : n.map((u) => new G(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new q(u))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((u) => new se(u))) ?? [], this.channelPrimaryInterest = new xe(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ne(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new F(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 ne(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
2850
2870
|
}
|
|
2851
2871
|
}
|
|
2852
|
-
class
|
|
2872
|
+
class ls {
|
|
2853
2873
|
/**
|
|
2854
2874
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
2855
2875
|
*
|
|
@@ -2947,13 +2967,13 @@ class cs {
|
|
|
2947
2967
|
*/
|
|
2948
2968
|
s(this, "lastOrder");
|
|
2949
2969
|
var e, t, n, o, l, u, h;
|
|
2950
|
-
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
|
|
2970
|
+
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 Z(r == null ? void 0 : r.city), this.region = new J(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 = {
|
|
2951
2971
|
from: ((e = r == null ? void 0 : r.createdAt) == null ? void 0 : e.from) ?? null,
|
|
2952
2972
|
to: ((t = r == null ? void 0 : r.createdAt) == null ? void 0 : t.to) ?? null
|
|
2953
2973
|
}, this.lastLoginDate = {
|
|
2954
2974
|
from: ((n = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : n.from) ?? null,
|
|
2955
2975
|
to: ((o = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : o.to) ?? null
|
|
2956
|
-
}, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((m) => new
|
|
2976
|
+
}, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((m) => new oe(m)) : [], this.salesDirection = new _(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new U(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new F(r == null ? void 0 : r.preferredDeliveryType), this.hasCostLessThenStop = r != null && r.hasCostLessThenStop ? !0 : void 0, this.partnerGroup = new G(r == null ? void 0 : r.partnerGroup), this.contact = new fe(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
2957
2977
|
createdAt: (l = r == null ? void 0 : r.lastOrder) == null ? void 0 : l.createdAt,
|
|
2958
2978
|
creator: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.creator,
|
|
2959
2979
|
isApproved: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.isApproved
|
|
@@ -2975,10 +2995,10 @@ class cs {
|
|
|
2975
2995
|
this[r] = "";
|
|
2976
2996
|
break;
|
|
2977
2997
|
case "city":
|
|
2978
|
-
this.city = new
|
|
2998
|
+
this.city = new Z();
|
|
2979
2999
|
break;
|
|
2980
3000
|
case "region":
|
|
2981
|
-
this.region = new
|
|
3001
|
+
this.region = new J();
|
|
2982
3002
|
break;
|
|
2983
3003
|
case "isActive":
|
|
2984
3004
|
this.isActive = !0;
|
|
@@ -3002,10 +3022,10 @@ class cs {
|
|
|
3002
3022
|
this.salesDirection = new _();
|
|
3003
3023
|
break;
|
|
3004
3024
|
case "contragentType":
|
|
3005
|
-
this.contragentType = new
|
|
3025
|
+
this.contragentType = new U();
|
|
3006
3026
|
break;
|
|
3007
3027
|
case "preferredDeliveryType":
|
|
3008
|
-
this.preferredDeliveryType = new
|
|
3028
|
+
this.preferredDeliveryType = new F();
|
|
3009
3029
|
break;
|
|
3010
3030
|
case "partnerGroup":
|
|
3011
3031
|
this.partnerGroup = new G();
|
|
@@ -3033,7 +3053,7 @@ class cs {
|
|
|
3033
3053
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((n = r == null ? void 0 : r.lastLoginDate) != null && n.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
|
|
3034
3054
|
}
|
|
3035
3055
|
}
|
|
3036
|
-
class
|
|
3056
|
+
class qe extends E {
|
|
3037
3057
|
/**
|
|
3038
3058
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
3039
3059
|
*
|
|
@@ -3053,17 +3073,17 @@ class Ue extends F {
|
|
|
3053
3073
|
* Признак того, что заказ подтвержден в 1С.
|
|
3054
3074
|
*/
|
|
3055
3075
|
s(this, "isApproved1c");
|
|
3056
|
-
this.createdAt = P(e == null ? void 0 : e.createdAt) ?
|
|
3076
|
+
this.createdAt = P(e == null ? void 0 : e.createdAt) ? z(e.createdAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new d(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
3057
3077
|
}
|
|
3058
3078
|
}
|
|
3059
|
-
class Me extends
|
|
3079
|
+
class Me extends qe {
|
|
3060
3080
|
/**
|
|
3061
3081
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
3062
3082
|
*
|
|
3063
3083
|
* @param data Данные для первоначальной инициализации.
|
|
3064
3084
|
*/
|
|
3065
3085
|
constructor(e) {
|
|
3066
|
-
var t, n, o, l, u, h, m,
|
|
3086
|
+
var t, n, o, l, u, h, m, R;
|
|
3067
3087
|
super(e);
|
|
3068
3088
|
/**
|
|
3069
3089
|
* Краткие данные о клиенте.
|
|
@@ -3111,13 +3131,13 @@ class Me extends Ue {
|
|
|
3111
3131
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
3112
3132
|
}, this.delivery = {
|
|
3113
3133
|
type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
|
|
3114
|
-
date: P((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ?
|
|
3115
|
-
address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new
|
|
3116
|
-
warehouse: (
|
|
3117
|
-
}, this.attachedUser = new
|
|
3134
|
+
date: P((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? z(e == null ? void 0 : e.delivery.date, "dd.MM.yyyy", /* @__PURE__ */ new Date()) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
|
|
3135
|
+
address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new se(e.delivery.address) : void 0,
|
|
3136
|
+
warehouse: (R = e == null ? void 0 : e.delivery) != null && R.warehouse ? new ne(e.delivery.warehouse) : void 0
|
|
3137
|
+
}, this.attachedUser = new d(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new _(e == null ? void 0 : e.salesDirection), this.pendingAt = P(e == null ? void 0 : e.pendingAt) ? z(e == null ? void 0 : e.pendingAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.pendingAt) ?? /* @__PURE__ */ new Date(), this.processedAt = P(e == null ? void 0 : e.processedAt) ? z(e == null ? void 0 : e.processedAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.processedAt) ?? /* @__PURE__ */ new Date(), this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
|
|
3118
3138
|
}
|
|
3119
3139
|
}
|
|
3120
|
-
class Gr extends
|
|
3140
|
+
class Gr extends E {
|
|
3121
3141
|
/**
|
|
3122
3142
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
3123
3143
|
*
|
|
@@ -3197,10 +3217,10 @@ class Gr extends F {
|
|
|
3197
3217
|
* который соответствует указанной ширине. Количество не ограничено.
|
|
3198
3218
|
*/
|
|
3199
3219
|
s(this, "sawing");
|
|
3200
|
-
this.product = new
|
|
3220
|
+
this.product = new ie(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;
|
|
3201
3221
|
}
|
|
3202
3222
|
}
|
|
3203
|
-
class
|
|
3223
|
+
class qr extends Me {
|
|
3204
3224
|
/**
|
|
3205
3225
|
* Инициализирует экземпляр класса {@link Order}.
|
|
3206
3226
|
*
|
|
@@ -3240,10 +3260,10 @@ class Ur extends Me {
|
|
|
3240
3260
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
3241
3261
|
*/
|
|
3242
3262
|
s(this, "isAllowProcessingWithoutPayment");
|
|
3243
|
-
this.products = (e.products ?? []).map((t) => new Gr(t)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ?
|
|
3263
|
+
this.products = (e.products ?? []).map((t) => new Gr(t)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? re.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new y(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
3244
3264
|
}
|
|
3245
3265
|
}
|
|
3246
|
-
class
|
|
3266
|
+
class us extends ve {
|
|
3247
3267
|
/**
|
|
3248
3268
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
3249
3269
|
*
|
|
@@ -3273,10 +3293,10 @@ class ls extends ve {
|
|
|
3273
3293
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
3274
3294
|
*/
|
|
3275
3295
|
getOrder(r) {
|
|
3276
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
3296
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new qr(e.data));
|
|
3277
3297
|
}
|
|
3278
3298
|
}
|
|
3279
|
-
class Mr extends
|
|
3299
|
+
class Mr extends A {
|
|
3280
3300
|
/**
|
|
3281
3301
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
3282
3302
|
*
|
|
@@ -3301,11 +3321,11 @@ class Mr extends R {
|
|
|
3301
3321
|
* Данные о последнем заказе клиента.
|
|
3302
3322
|
*/
|
|
3303
3323
|
s(this, "lastOrder");
|
|
3304
|
-
(t = e.contacts) != null && t.length && (this.contacts = e.contacts.map((o) => new
|
|
3324
|
+
(t = e.contacts) != null && t.length && (this.contacts = e.contacts.map((o) => new q(o))), e.lastOrder && (this.lastOrder = new qe(e.lastOrder)), (n = e.partnerGroups) != null && n.length && (this.partnerGroups = e.partnerGroups.map((o) => new G(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new F(e.preferredDeliveryType));
|
|
3305
3325
|
}
|
|
3306
3326
|
}
|
|
3307
|
-
var
|
|
3308
|
-
class
|
|
3327
|
+
var He = /* @__PURE__ */ ((i) => (i.BeginWith = "bw", i.Contains = "cn", i.Custom = "custom", i.EndsWith = "ew", i.Equals = "eq", i.GreaterOrEqual = "ge", i.GreaterThan = "gt", i.InList = "in", i.LessOrEqual = "le", i.LessThan = "lt", i.NotBeginWith = "bn", i.NotContains = "nc", i.NotEndsWith = "en", i.NotEqual = "ne", i.NotInList = "ni", i.NotNull = "nn", i.Null = "nu", i))(He || {});
|
|
3328
|
+
class Hr {
|
|
3309
3329
|
/**
|
|
3310
3330
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
3311
3331
|
*
|
|
@@ -3329,7 +3349,7 @@ class qr {
|
|
|
3329
3349
|
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;
|
|
3330
3350
|
}
|
|
3331
3351
|
}
|
|
3332
|
-
class
|
|
3352
|
+
class ps extends Hr {
|
|
3333
3353
|
/**
|
|
3334
3354
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
3335
3355
|
*
|
|
@@ -3360,7 +3380,7 @@ class us extends qr {
|
|
|
3360
3380
|
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;
|
|
3361
3381
|
}
|
|
3362
3382
|
}
|
|
3363
|
-
class
|
|
3383
|
+
class hs {
|
|
3364
3384
|
/**
|
|
3365
3385
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
3366
3386
|
*
|
|
@@ -3378,7 +3398,7 @@ class ps {
|
|
|
3378
3398
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
3379
3399
|
}
|
|
3380
3400
|
}
|
|
3381
|
-
class
|
|
3401
|
+
class gs extends ve {
|
|
3382
3402
|
/**
|
|
3383
3403
|
* Возвращает данные об указанном клиенте.
|
|
3384
3404
|
*
|
|
@@ -3412,7 +3432,7 @@ class hs extends ve {
|
|
|
3412
3432
|
return this.getClientsList({
|
|
3413
3433
|
groupOp: "and",
|
|
3414
3434
|
groups: [],
|
|
3415
|
-
filters: [{ field: "phone", op:
|
|
3435
|
+
filters: [{ field: "phone", op: He.Contains, value: r }]
|
|
3416
3436
|
});
|
|
3417
3437
|
}
|
|
3418
3438
|
/**
|
|
@@ -3437,7 +3457,7 @@ class hs extends ve {
|
|
|
3437
3457
|
getAllClientContacts(r) {
|
|
3438
3458
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
3439
3459
|
let t = [];
|
|
3440
|
-
return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((n) => new
|
|
3460
|
+
return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((n) => new Ur(n))), t;
|
|
3441
3461
|
});
|
|
3442
3462
|
}
|
|
3443
3463
|
/**
|
|
@@ -3577,7 +3597,7 @@ class hs extends ve {
|
|
|
3577
3597
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
|
|
3578
3598
|
*/
|
|
3579
3599
|
createContragentClientData(r, e, t = {}) {
|
|
3580
|
-
var h, m,
|
|
3600
|
+
var h, m, R, S, T, L, a, c;
|
|
3581
3601
|
let n;
|
|
3582
3602
|
const o = e, l = e, u = e;
|
|
3583
3603
|
switch (e.opf.slug) {
|
|
@@ -3604,7 +3624,7 @@ class hs extends ve {
|
|
|
3604
3624
|
opf: l.opf.slug,
|
|
3605
3625
|
name: l.name,
|
|
3606
3626
|
alternative_name: l.alternativeName,
|
|
3607
|
-
partner_group_id: (
|
|
3627
|
+
partner_group_id: (R = l.partnerGroup) == null ? void 0 : R.id,
|
|
3608
3628
|
manager_id: (S = l.manager) == null ? void 0 : S.id,
|
|
3609
3629
|
comment: l.comment,
|
|
3610
3630
|
inn: l.inn,
|
|
@@ -3645,8 +3665,8 @@ class hs extends ve {
|
|
|
3645
3665
|
opf: e.opf.slug,
|
|
3646
3666
|
name: e.name,
|
|
3647
3667
|
alternative_name: e.alternativeName,
|
|
3648
|
-
partner_group_id: (
|
|
3649
|
-
manager_id: (
|
|
3668
|
+
partner_group_id: (a = e.partnerGroup) == null ? void 0 : a.id,
|
|
3669
|
+
manager_id: (c = e.manager) == null ? void 0 : c.id,
|
|
3650
3670
|
comment: e.comment
|
|
3651
3671
|
};
|
|
3652
3672
|
break;
|
|
@@ -3654,7 +3674,7 @@ class hs extends ve {
|
|
|
3654
3674
|
return this.post(
|
|
3655
3675
|
`/internal/clients/${r}/contragents`,
|
|
3656
3676
|
n,
|
|
3657
|
-
(
|
|
3677
|
+
(p) => re.createInstance(p.data),
|
|
3658
3678
|
t
|
|
3659
3679
|
);
|
|
3660
3680
|
}
|
|
@@ -3669,7 +3689,7 @@ class hs extends ve {
|
|
|
3669
3689
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
|
|
3670
3690
|
*/
|
|
3671
3691
|
updateContragentClientData(r, e, t = {}) {
|
|
3672
|
-
var h, m,
|
|
3692
|
+
var h, m, R, S, T, L, a, c;
|
|
3673
3693
|
let n;
|
|
3674
3694
|
const o = e, l = e, u = e;
|
|
3675
3695
|
switch (e.opf.slug) {
|
|
@@ -3696,7 +3716,7 @@ class hs extends ve {
|
|
|
3696
3716
|
opf: l.opf.slug,
|
|
3697
3717
|
name: l.name,
|
|
3698
3718
|
alternative_name: l.alternativeName,
|
|
3699
|
-
partner_group_id: (
|
|
3719
|
+
partner_group_id: (R = l.partnerGroup) == null ? void 0 : R.id,
|
|
3700
3720
|
manager_id: (S = l.manager) == null ? void 0 : S.id,
|
|
3701
3721
|
comment: l.comment,
|
|
3702
3722
|
inn: l.inn,
|
|
@@ -3737,8 +3757,8 @@ class hs extends ve {
|
|
|
3737
3757
|
opf: e.opf.slug,
|
|
3738
3758
|
name: e.name,
|
|
3739
3759
|
alternative_name: e.alternativeName,
|
|
3740
|
-
partner_group_id: (
|
|
3741
|
-
manager_id: (
|
|
3760
|
+
partner_group_id: (a = e.partnerGroup) == null ? void 0 : a.id,
|
|
3761
|
+
manager_id: (c = e.manager) == null ? void 0 : c.id,
|
|
3742
3762
|
comment: e.comment
|
|
3743
3763
|
};
|
|
3744
3764
|
break;
|
|
@@ -3746,7 +3766,7 @@ class hs extends ve {
|
|
|
3746
3766
|
return this.patch(
|
|
3747
3767
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
3748
3768
|
n,
|
|
3749
|
-
(
|
|
3769
|
+
(p) => re.createInstance(p.data),
|
|
3750
3770
|
t
|
|
3751
3771
|
);
|
|
3752
3772
|
}
|
|
@@ -3784,7 +3804,7 @@ class hs extends ve {
|
|
|
3784
3804
|
}), e.operatingHours && (n.operating_hours = {
|
|
3785
3805
|
from: e.operatingHours.from,
|
|
3786
3806
|
to: e.operatingHours.to
|
|
3787
|
-
}), this.post(`/internal/clients/${r}/delivery-addresses`, n, (u) => new
|
|
3807
|
+
}), this.post(`/internal/clients/${r}/delivery-addresses`, n, (u) => new se(u.data), t);
|
|
3788
3808
|
}
|
|
3789
3809
|
/**
|
|
3790
3810
|
* Обновляет данные об адресе доставки клиента.
|
|
@@ -3813,7 +3833,7 @@ class hs extends ve {
|
|
|
3813
3833
|
}), this.patch(
|
|
3814
3834
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
3815
3835
|
n,
|
|
3816
|
-
(u) => new
|
|
3836
|
+
(u) => new se(u.data),
|
|
3817
3837
|
t
|
|
3818
3838
|
);
|
|
3819
3839
|
}
|
|
@@ -3936,7 +3956,7 @@ class hs extends ve {
|
|
|
3936
3956
|
comment: e.comment,
|
|
3937
3957
|
not_disturb: e.notDisturb
|
|
3938
3958
|
},
|
|
3939
|
-
(n) => new
|
|
3959
|
+
(n) => new q(n.data),
|
|
3940
3960
|
t
|
|
3941
3961
|
);
|
|
3942
3962
|
}
|
|
@@ -4079,7 +4099,7 @@ class hs extends ve {
|
|
|
4079
4099
|
comment: e.comment,
|
|
4080
4100
|
...t
|
|
4081
4101
|
};
|
|
4082
|
-
return (l = e.phone) != null && l.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new
|
|
4102
|
+
return (l = e.phone) != null && l.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new q(h.data), n);
|
|
4083
4103
|
}
|
|
4084
4104
|
/**
|
|
4085
4105
|
* Устанавливает признак основного контактного лица.
|
|
@@ -4108,7 +4128,7 @@ class hs extends ve {
|
|
|
4108
4128
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
4109
4129
|
}
|
|
4110
4130
|
}
|
|
4111
|
-
class
|
|
4131
|
+
class ms extends g {
|
|
4112
4132
|
/**
|
|
4113
4133
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
4114
4134
|
*
|
|
@@ -4122,7 +4142,7 @@ class gs extends g {
|
|
|
4122
4142
|
});
|
|
4123
4143
|
}
|
|
4124
4144
|
}
|
|
4125
|
-
class
|
|
4145
|
+
class fs extends g {
|
|
4126
4146
|
/**
|
|
4127
4147
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
4128
4148
|
*
|
|
@@ -4193,7 +4213,7 @@ class ms extends g {
|
|
|
4193
4213
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(t = r.properties) == null ? void 0 : t.editor}/template/${e}`);
|
|
4194
4214
|
}
|
|
4195
4215
|
}
|
|
4196
|
-
class
|
|
4216
|
+
class ys {
|
|
4197
4217
|
/**
|
|
4198
4218
|
* Возвращает Unix Timestamp диапазон дат (в секундах) по умолчанию.
|
|
4199
4219
|
*
|
|
@@ -4203,24 +4223,24 @@ class fs {
|
|
|
4203
4223
|
* Для пересчета в JavaScript Unix Timestamp значение необходимо умножить на 1000.
|
|
4204
4224
|
*/
|
|
4205
4225
|
static defaultDateRanges() {
|
|
4206
|
-
const r = [0, 6].includes(
|
|
4226
|
+
const r = [0, 6].includes(Ze(ce())) ? er(ue()) : ce();
|
|
4207
4227
|
return {
|
|
4208
4228
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
4209
|
-
nextWorkingDay: { label: "Следующий рабочий день", from: x(
|
|
4210
|
-
today: { label: "Сегодня", from: x(ue()), to: x(
|
|
4211
|
-
yesterday: { label: "Вчера", from: x(
|
|
4212
|
-
tomorrow: { label: "Завтра", from: x(ce()), to: x(
|
|
4229
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: x(or(r)), to: x(ir(r)) },
|
|
4230
|
+
today: { label: "Сегодня", from: x(ue()), to: x(nr()) },
|
|
4231
|
+
yesterday: { label: "Вчера", from: x(tr()), to: x(sr()) },
|
|
4232
|
+
tomorrow: { label: "Завтра", from: x(ce()), to: x(rr()) }
|
|
4213
4233
|
};
|
|
4214
4234
|
}
|
|
4215
4235
|
}
|
|
4216
|
-
const
|
|
4236
|
+
const W = class W {
|
|
4217
4237
|
/**
|
|
4218
4238
|
* Устанавливает список единиц измерения линейной величины.
|
|
4219
4239
|
*
|
|
4220
4240
|
* @param linearValues Список единиц измерения линейной величины.
|
|
4221
4241
|
*/
|
|
4222
4242
|
static setLinearValues(r) {
|
|
4223
|
-
|
|
4243
|
+
W.linearValues = r;
|
|
4224
4244
|
}
|
|
4225
4245
|
/**
|
|
4226
4246
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
@@ -4228,7 +4248,7 @@ const E = class E {
|
|
|
4228
4248
|
* @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
|
|
4229
4249
|
*/
|
|
4230
4250
|
static productIsMeasurable(r) {
|
|
4231
|
-
return
|
|
4251
|
+
return W.linearValues.includes(r.unit);
|
|
4232
4252
|
}
|
|
4233
4253
|
/**
|
|
4234
4254
|
* Возвращает кратность количества для указанного товара.
|
|
@@ -4237,7 +4257,7 @@ const E = class E {
|
|
|
4237
4257
|
*/
|
|
4238
4258
|
static getProductMultiplicity(r) {
|
|
4239
4259
|
var e, t;
|
|
4240
|
-
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !
|
|
4260
|
+
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !W.productIsMeasurable(r) ? r.properties.minCount : 1;
|
|
4241
4261
|
}
|
|
4242
4262
|
/**
|
|
4243
4263
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -4252,14 +4272,14 @@ const E = class E {
|
|
|
4252
4272
|
/**
|
|
4253
4273
|
* Список единиц измерения линейной величины.
|
|
4254
4274
|
*/
|
|
4255
|
-
s(
|
|
4256
|
-
let be =
|
|
4257
|
-
class
|
|
4275
|
+
s(W, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
4276
|
+
let be = W;
|
|
4277
|
+
class ws {
|
|
4258
4278
|
/**
|
|
4259
4279
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
4260
4280
|
*/
|
|
4261
4281
|
static generateUndefinedManagerInstance() {
|
|
4262
|
-
return new
|
|
4282
|
+
return new oe({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
|
|
4263
4283
|
}
|
|
4264
4284
|
/**
|
|
4265
4285
|
* Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
|
|
@@ -4270,19 +4290,19 @@ class ys {
|
|
|
4270
4290
|
return r.id === 0 && r.guid === "-undefined-";
|
|
4271
4291
|
}
|
|
4272
4292
|
}
|
|
4273
|
-
class
|
|
4293
|
+
class Br extends g {
|
|
4274
4294
|
/**
|
|
4275
4295
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
4276
4296
|
*/
|
|
4277
4297
|
getManagers() {
|
|
4278
4298
|
const r = "/internal/managers", e = g.getCachedResponse(r);
|
|
4279
4299
|
return e ? Promise.resolve(e) : this.get(r).then((t) => {
|
|
4280
|
-
const n = t.data.map((o) => Ce.instanceInitializer(
|
|
4300
|
+
const n = t.data.map((o) => Ce.instanceInitializer(oe, o));
|
|
4281
4301
|
return n && this.cacheResponse(r, n), n;
|
|
4282
4302
|
});
|
|
4283
4303
|
}
|
|
4284
4304
|
}
|
|
4285
|
-
class
|
|
4305
|
+
class Wr {
|
|
4286
4306
|
/**
|
|
4287
4307
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
4288
4308
|
*
|
|
@@ -4336,10 +4356,10 @@ class $e {
|
|
|
4336
4356
|
*/
|
|
4337
4357
|
s(this, "meta");
|
|
4338
4358
|
var e;
|
|
4339
|
-
this.resourceType = new ke(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((t) => new
|
|
4359
|
+
this.resourceType = new ke(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((t) => new Wr(t))) ?? [];
|
|
4340
4360
|
}
|
|
4341
4361
|
}
|
|
4342
|
-
class
|
|
4362
|
+
class Cs extends g {
|
|
4343
4363
|
/**
|
|
4344
4364
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
4345
4365
|
*
|
|
@@ -4370,8 +4390,8 @@ class ws extends g {
|
|
|
4370
4390
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
4371
4391
|
}
|
|
4372
4392
|
}
|
|
4373
|
-
const v =
|
|
4374
|
-
const i = w({}), r = w(void 0), e = w(void 0), t = w(void 0), n = w(void 0), o = w(void 0), l = w(void 0), u = w(void 0), h = w(void 0), m = w(void 0),
|
|
4393
|
+
const v = te("__references_private", () => {
|
|
4394
|
+
const i = w({}), r = w(void 0), e = w(void 0), t = w(void 0), n = w(void 0), o = w(void 0), l = w(void 0), u = w(void 0), h = w(void 0), m = w(void 0), R = w(void 0), S = w(void 0), T = w(void 0), L = w(void 0), a = w(void 0), c = w(void 0);
|
|
4375
4395
|
return {
|
|
4376
4396
|
/**
|
|
4377
4397
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -4416,7 +4436,7 @@ const v = se("__references_private", () => {
|
|
|
4416
4436
|
/**
|
|
4417
4437
|
* Справочник групп партнеров.
|
|
4418
4438
|
*/
|
|
4419
|
-
partnerGroupReference:
|
|
4439
|
+
partnerGroupReference: R,
|
|
4420
4440
|
/**
|
|
4421
4441
|
* Справочник типов ресурсов.
|
|
4422
4442
|
*/
|
|
@@ -4432,9 +4452,13 @@ const v = se("__references_private", () => {
|
|
|
4432
4452
|
/**
|
|
4433
4453
|
* Справочник складов.
|
|
4434
4454
|
*/
|
|
4435
|
-
warehousesReference:
|
|
4455
|
+
warehousesReference: a,
|
|
4456
|
+
/**
|
|
4457
|
+
* Справочник типов свойств.
|
|
4458
|
+
*/
|
|
4459
|
+
propertyTypesReference: c
|
|
4436
4460
|
};
|
|
4437
|
-
}),
|
|
4461
|
+
}), vs = te("references", () => {
|
|
4438
4462
|
const i = C(() => {
|
|
4439
4463
|
const c = v();
|
|
4440
4464
|
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, g.getInstance(D).getChannelPrimaryInterest().then((p) => {
|
|
@@ -4485,7 +4509,7 @@ const v = se("__references_private", () => {
|
|
|
4485
4509
|
return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, g.getInstance(D).getSalesDirections().then((p) => {
|
|
4486
4510
|
c.salesDirectionsReference = p;
|
|
4487
4511
|
}).catch(f)), c.salesDirectionsReference;
|
|
4488
|
-
}),
|
|
4512
|
+
}), R = C(() => {
|
|
4489
4513
|
const c = v();
|
|
4490
4514
|
return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, g.getInstance(D).getSourcePrimaryInterest().then((p) => {
|
|
4491
4515
|
c.sourcePrimaryInterestReference = p;
|
|
@@ -4497,7 +4521,7 @@ const v = se("__references_private", () => {
|
|
|
4497
4521
|
}).catch(f)), c.deliveryTypeReference;
|
|
4498
4522
|
}), T = C(() => {
|
|
4499
4523
|
const c = v();
|
|
4500
|
-
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, g.getInstance(
|
|
4524
|
+
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, g.getInstance(Br).getManagers().then((p) => {
|
|
4501
4525
|
c.managersList = p;
|
|
4502
4526
|
}).catch(f)), c.managersList;
|
|
4503
4527
|
}), L = C(() => {
|
|
@@ -4505,6 +4529,11 @@ const v = se("__references_private", () => {
|
|
|
4505
4529
|
return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, g.getInstance(D).getWarehouses().then((p) => {
|
|
4506
4530
|
c.warehousesReference = p;
|
|
4507
4531
|
}).catch(f)), c.warehousesReference;
|
|
4532
|
+
}), a = C(() => {
|
|
4533
|
+
const c = v();
|
|
4534
|
+
return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, g.getInstance(D).getPropertyTypes().then((p) => {
|
|
4535
|
+
c.propertyTypesReference = p;
|
|
4536
|
+
}).catch(f)), c.propertyTypesReference;
|
|
4508
4537
|
});
|
|
4509
4538
|
return {
|
|
4510
4539
|
/**
|
|
@@ -4550,7 +4579,7 @@ const v = se("__references_private", () => {
|
|
|
4550
4579
|
/**
|
|
4551
4580
|
* Справочник каналов первичного интереса.
|
|
4552
4581
|
*/
|
|
4553
|
-
sourcePrimaryInterestsReference:
|
|
4582
|
+
sourcePrimaryInterestsReference: R,
|
|
4554
4583
|
/**
|
|
4555
4584
|
* Справочник типов доставки.
|
|
4556
4585
|
*/
|
|
@@ -4562,9 +4591,13 @@ const v = se("__references_private", () => {
|
|
|
4562
4591
|
/**
|
|
4563
4592
|
* Справочник складов.
|
|
4564
4593
|
*/
|
|
4565
|
-
warehousesReference: L
|
|
4594
|
+
warehousesReference: L,
|
|
4595
|
+
/**
|
|
4596
|
+
* Справочник типов свойств.
|
|
4597
|
+
*/
|
|
4598
|
+
propertyTypesReference: a
|
|
4566
4599
|
};
|
|
4567
|
-
}),
|
|
4600
|
+
}), zr = te("__user_state_private", () => {
|
|
4568
4601
|
const i = w({}), r = w(void 0);
|
|
4569
4602
|
return {
|
|
4570
4603
|
/**
|
|
@@ -4576,18 +4609,18 @@ const v = se("__references_private", () => {
|
|
|
4576
4609
|
*/
|
|
4577
4610
|
currentUser: r
|
|
4578
4611
|
};
|
|
4579
|
-
}),
|
|
4612
|
+
}), Ds = te("user_state", () => ({
|
|
4580
4613
|
/**
|
|
4581
4614
|
* Данные о текущем пользователе.
|
|
4582
4615
|
*/
|
|
4583
4616
|
currentUser: C(() => {
|
|
4584
|
-
const r =
|
|
4617
|
+
const r = zr();
|
|
4585
4618
|
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, g.getInstance(xr).getCurrentUser().then((e) => {
|
|
4586
4619
|
r.currentUser = e;
|
|
4587
4620
|
}).catch(f).finally(f)), r.currentUser;
|
|
4588
4621
|
})
|
|
4589
4622
|
}));
|
|
4590
|
-
class
|
|
4623
|
+
class Ps extends g {
|
|
4591
4624
|
/**
|
|
4592
4625
|
* Возвращает подсказки по адресам.
|
|
4593
4626
|
*
|
|
@@ -4634,7 +4667,7 @@ class Ds extends g {
|
|
|
4634
4667
|
});
|
|
4635
4668
|
}
|
|
4636
4669
|
}
|
|
4637
|
-
class
|
|
4670
|
+
class Rs {
|
|
4638
4671
|
/**
|
|
4639
4672
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
4640
4673
|
*
|
|
@@ -4658,120 +4691,121 @@ class Ps {
|
|
|
4658
4691
|
}
|
|
4659
4692
|
}
|
|
4660
4693
|
export {
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4694
|
+
$r as AnyReference,
|
|
4695
|
+
Kr as AppBaseConfig,
|
|
4696
|
+
k as AppConfigProvider,
|
|
4664
4697
|
me as BankAccount,
|
|
4665
4698
|
ve as BasePaginationProvider,
|
|
4666
4699
|
Q as Cart,
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4700
|
+
mr as CartItem,
|
|
4701
|
+
gr as CartItemBase,
|
|
4702
|
+
Xr as CartProvider,
|
|
4703
|
+
rs as CatalogProvider,
|
|
4671
4704
|
Se as CatalogableItem,
|
|
4672
|
-
|
|
4705
|
+
N as Category,
|
|
4673
4706
|
xe as ChannelPrimaryInterest,
|
|
4674
|
-
|
|
4675
|
-
|
|
4707
|
+
es as City,
|
|
4708
|
+
Z as CityWithRegionAndCountry,
|
|
4676
4709
|
Ae as Client,
|
|
4677
4710
|
Mr as ClientAdditionalData,
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4711
|
+
X as ClientCategory,
|
|
4712
|
+
gs as ClientDataProvider,
|
|
4713
|
+
ie as ClientProduct,
|
|
4714
|
+
ns as ClientProductCategoryDataProvider,
|
|
4715
|
+
is as ClientProductDataProvider,
|
|
4683
4716
|
De as ClientShortInfo,
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4717
|
+
Nr as ClientsAdditionalDataRequestTypeEnum,
|
|
4718
|
+
ls as ClientsListFilters,
|
|
4719
|
+
fs as ConfiguratorProvider,
|
|
4687
4720
|
fe as Contact,
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4721
|
+
Ar as ContactLinks,
|
|
4722
|
+
q as ContactPerson,
|
|
4723
|
+
Ur as ContactPersonRelated,
|
|
4724
|
+
_r as ContactPosition,
|
|
4692
4725
|
le as ContactRelation,
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4726
|
+
de as ContragentBase,
|
|
4727
|
+
re as ContragentFactory,
|
|
4728
|
+
Ue as ContragentIc,
|
|
4729
|
+
Or as ContragentPerson,
|
|
4730
|
+
dr as ContragentUlNr,
|
|
4698
4731
|
Ge as ContragentUlR,
|
|
4699
4732
|
Le as CostSourceEnum,
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4733
|
+
j as Country,
|
|
4734
|
+
ee as Currency,
|
|
4735
|
+
Ps as DataSuggestionProvider,
|
|
4736
|
+
ps as DataTablePagination,
|
|
4737
|
+
Hr as DataTablePaginationRequestParams,
|
|
4738
|
+
hs as DataTableSortRequestParams,
|
|
4739
|
+
ys as DateTimeProvider,
|
|
4740
|
+
Dr as DeletableNamedIdentity,
|
|
4741
|
+
se as DeliveryAddress,
|
|
4742
|
+
F as DeliveryType,
|
|
4743
|
+
fr as DeviceTypeResolutionConfig,
|
|
4744
|
+
Pr as DiscountShortInfo,
|
|
4745
|
+
Rs as FieldValidationResultData,
|
|
4746
|
+
He as FilterOpEnum,
|
|
4714
4747
|
Te as GeoCoordinates,
|
|
4715
|
-
|
|
4748
|
+
pr as HiddenCatalogableItem,
|
|
4716
4749
|
ge as HttpBaseCachedRequester,
|
|
4717
4750
|
he as HttpBaseRequester,
|
|
4718
|
-
|
|
4751
|
+
yr as HttpParamsConfig,
|
|
4719
4752
|
g as HttpRequester,
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4753
|
+
E as Identity,
|
|
4754
|
+
hr as Image,
|
|
4755
|
+
oe as Manager,
|
|
4756
|
+
K as ManagerCommon,
|
|
4757
|
+
ws as ManagerDataFactory,
|
|
4758
|
+
Br as ManagerDataProvider,
|
|
4759
|
+
Wr as MetaTagItem,
|
|
4760
|
+
A as NamedIdentity,
|
|
4761
|
+
U as Opf,
|
|
4729
4762
|
b as OpfEnum,
|
|
4730
|
-
|
|
4763
|
+
qr as Order,
|
|
4731
4764
|
Me as OrderInfo,
|
|
4732
|
-
|
|
4765
|
+
Sr as OrderPaymentStatus,
|
|
4733
4766
|
Gr as OrderProduct,
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4767
|
+
qe as OrderShortInfo,
|
|
4768
|
+
Tr as OrderStatus,
|
|
4769
|
+
us as OrdersDataProvider,
|
|
4737
4770
|
G as PartnerGroup,
|
|
4738
|
-
|
|
4739
|
-
|
|
4771
|
+
Lr as PaymentType,
|
|
4772
|
+
Zr as PreferencesStorageProvider,
|
|
4740
4773
|
we as PriceCoefficient,
|
|
4741
|
-
|
|
4774
|
+
Rr as PriceTemplate,
|
|
4742
4775
|
pe as PrimaryCatalogableItem,
|
|
4743
4776
|
I as Product,
|
|
4744
|
-
|
|
4745
|
-
|
|
4777
|
+
ss as ProductCategoryDataProvider,
|
|
4778
|
+
ts as ProductDataProvider,
|
|
4746
4779
|
kr as ProductPriceHistory,
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4780
|
+
os as PropertiesProvider,
|
|
4781
|
+
V as Property,
|
|
4782
|
+
Ie as PropertyType,
|
|
4783
|
+
vr as PropertyTypeEnum,
|
|
4750
4784
|
M as PropertyValue,
|
|
4751
|
-
|
|
4785
|
+
cs as RecommendationsDataProvider,
|
|
4752
4786
|
Re as RecommendationsList,
|
|
4753
4787
|
y as Reference,
|
|
4754
4788
|
D as ReferenceDataProvider,
|
|
4755
|
-
|
|
4789
|
+
J as Region,
|
|
4756
4790
|
ke as ResourceType,
|
|
4757
4791
|
_ as SalesDirection,
|
|
4758
|
-
|
|
4792
|
+
wr as SentryConfig,
|
|
4759
4793
|
$e as Seo,
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4794
|
+
Cs as SeoDataProvider,
|
|
4795
|
+
Ne as SourcePrimaryInterest,
|
|
4796
|
+
ur as StockCount,
|
|
4763
4797
|
Ce as TypedInstanceFactory,
|
|
4764
4798
|
be as UnitsHelper,
|
|
4765
|
-
|
|
4766
|
-
|
|
4799
|
+
ms as UnknownClientDataProvider,
|
|
4800
|
+
ae as UpdatableNamedIdentity,
|
|
4767
4801
|
Ir as User,
|
|
4768
|
-
|
|
4802
|
+
Oe as UserCommonInfo,
|
|
4769
4803
|
xr as UserDataProvider,
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4804
|
+
d as UserShortInfo,
|
|
4805
|
+
ar as UserTypeEnum,
|
|
4806
|
+
Cr as VersionConfig,
|
|
4807
|
+
ne as Warehouse,
|
|
4808
|
+
vs as useReferencesStore,
|
|
4809
|
+
Ds as useUserStateStore
|
|
4776
4810
|
};
|
|
4777
4811
|
//# sourceMappingURL=sc-common-lib.js.map
|