@snabcentr/common-lib 1.39.0 → 1.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +1 -1
- package/dist/release_notes.tmp +3 -3
- package/dist/sc-common-lib.js +655 -509
- 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/category-pricing-role.d.ts +28 -0
- package/dist/src/catalog/classes/category-pricing-role.d.ts.map +1 -0
- package/dist/src/catalog/classes/index.d.ts +3 -1
- package/dist/src/catalog/classes/index.d.ts.map +1 -1
- package/dist/src/catalog/classes/pricing-role.d.ts +26 -0
- package/dist/src/catalog/classes/pricing-role.d.ts.map +1 -0
- package/dist/src/catalog/classes/{price-coefficient.d.ts → product-price-coefficient.d.ts} +7 -7
- package/dist/src/catalog/classes/product-price-coefficient.d.ts.map +1 -0
- package/dist/src/catalog/classes/product-price-history.d.ts +1 -1
- package/dist/src/catalog/classes/product-price-history.d.ts.map +1 -1
- package/dist/src/catalog/classes/product.d.ts +2 -2
- package/dist/src/catalog/classes/product.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/price-coefficient-enum.d.ts +26 -0
- package/dist/src/catalog/enums/price-coefficient-enum.d.ts.map +1 -0
- package/dist/src/catalog/interfaces/i-category-pricing-role-update-data.d.ts +31 -0
- package/dist/src/catalog/interfaces/i-category-pricing-role-update-data.d.ts.map +1 -0
- package/dist/src/catalog/interfaces/i-category-pricing-role.d.ts +21 -0
- package/dist/src/catalog/interfaces/i-category-pricing-role.d.ts.map +1 -0
- package/dist/src/catalog/interfaces/i-pricing-role-create-data.d.ts +19 -0
- package/dist/src/catalog/interfaces/i-pricing-role-create-data.d.ts.map +1 -0
- package/dist/src/catalog/interfaces/i-pricing-role.d.ts +8 -0
- package/dist/src/catalog/interfaces/i-pricing-role.d.ts.map +1 -0
- package/dist/src/catalog/interfaces/{i-price-coefficient.d.ts → i-product-price-coefficient.d.ts} +4 -4
- package/dist/src/catalog/interfaces/i-product-price-coefficient.d.ts.map +1 -0
- package/dist/src/catalog/interfaces/i-product-price-history.d.ts +1 -1
- package/dist/src/catalog/interfaces/i-product-price-history.d.ts.map +1 -1
- package/dist/src/catalog/interfaces/i-product.d.ts +2 -2
- package/dist/src/catalog/interfaces/i-product.d.ts.map +1 -1
- package/dist/src/catalog/interfaces/index.d.ts +5 -1
- package/dist/src/catalog/interfaces/index.d.ts.map +1 -1
- package/dist/src/catalog/providers/index.d.ts +1 -0
- package/dist/src/catalog/providers/index.d.ts.map +1 -1
- package/dist/src/catalog/providers/pricing-role-provider.d.ts +67 -0
- package/dist/src/catalog/providers/pricing-role-provider.d.ts.map +1 -0
- package/dist/src/catalog/providers/product-category-data-provider.d.ts +2 -2
- package/dist/src/catalog/providers/product-category-data-provider.d.ts.map +1 -1
- package/dist/src/catalog/providers/product-data-provider.d.ts +2 -2
- package/dist/src/catalog/providers/product-data-provider.d.ts.map +1 -1
- package/dist/src/catalog/providers/properties-provider.d.ts +2 -2
- package/dist/src/references/classes/price-coefficient.d.ts +9 -0
- package/dist/src/references/classes/price-coefficient.d.ts.map +1 -0
- package/dist/src/references/interfaces/i-price-coefficient.d.ts +8 -0
- package/dist/src/references/interfaces/i-price-coefficient.d.ts.map +1 -0
- package/dist/src/references/interfaces/index.d.ts +1 -0
- package/dist/src/references/interfaces/index.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/package.json +1 -1
- package/dist/src/catalog/classes/price-coefficient.d.ts.map +0 -1
- package/dist/src/catalog/interfaces/i-price-coefficient.d.ts.map +0 -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
|
|
5
|
-
import { format as
|
|
6
|
-
import
|
|
7
|
-
import { objectToSnake as
|
|
8
|
-
import { defineStore as
|
|
1
|
+
var Fe = Object.defineProperty;
|
|
2
|
+
var je = (i, r, e) => r in i ? Fe(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
|
|
3
|
+
var s = (i, r, e) => je(i, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { isUndefined as Te, cloneDeep as Ve, noop as m, toLower as Ee, isString as D, map as X, forEach as Ke, isNil as Je, isEmpty as Qe, isArray as Ye, isFunction as Xe } from "lodash-es";
|
|
5
|
+
import { format as Ze, addSeconds as er, parseISO as N, isAfter as rr, startOfToday as ge, parse as j, getDay as sr, startOfTomorrow as pe, nextMonday as tr, getUnixTime as k, endOfTomorrow as nr, endOfYesterday as ir, startOfYesterday as or, endOfToday as cr, endOfDay as lr, startOfDay as ur } from "date-fns";
|
|
6
|
+
import pr from "axios";
|
|
7
|
+
import { objectToSnake as Ae, objectToCamel as hr } from "ts-case-convert";
|
|
8
|
+
import { defineStore as ie } from "pinia";
|
|
9
9
|
import { ref as w, computed as C } from "vue";
|
|
10
|
-
class
|
|
10
|
+
class K {
|
|
11
11
|
/**
|
|
12
12
|
* Инициализирует экземпляр класса {@link Identity}.
|
|
13
13
|
*
|
|
@@ -31,7 +31,7 @@ class E {
|
|
|
31
31
|
return this.id === -1;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
class
|
|
34
|
+
class P extends K {
|
|
35
35
|
/**
|
|
36
36
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
37
37
|
*
|
|
@@ -46,7 +46,7 @@ class A extends E {
|
|
|
46
46
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
class
|
|
49
|
+
class Le extends P {
|
|
50
50
|
/**
|
|
51
51
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
52
52
|
*
|
|
@@ -69,7 +69,7 @@ class Se extends A {
|
|
|
69
69
|
this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
class
|
|
72
|
+
class me extends Le {
|
|
73
73
|
/**
|
|
74
74
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
75
75
|
*
|
|
@@ -84,7 +84,7 @@ class pe extends Se {
|
|
|
84
84
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
class
|
|
87
|
+
class oe extends me {
|
|
88
88
|
/**
|
|
89
89
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
90
90
|
*
|
|
@@ -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
|
|
110
|
+
class f extends P {
|
|
111
111
|
/**
|
|
112
112
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
113
113
|
*
|
|
@@ -126,9 +126,11 @@ class y extends A {
|
|
|
126
126
|
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
class
|
|
129
|
+
class ae extends f {
|
|
130
|
+
}
|
|
131
|
+
class ve {
|
|
130
132
|
/**
|
|
131
|
-
* Инициализирует экземпляр класса {@link
|
|
133
|
+
* Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
|
|
132
134
|
*
|
|
133
135
|
* @param data Данные для первоначальной инициализации.
|
|
134
136
|
*/
|
|
@@ -153,10 +155,10 @@ class we {
|
|
|
153
155
|
* Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
|
|
154
156
|
*/
|
|
155
157
|
s(this, "readOnly");
|
|
156
|
-
this.coefficient = new
|
|
158
|
+
this.coefficient = new ae(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
|
|
157
159
|
}
|
|
158
160
|
}
|
|
159
|
-
class
|
|
161
|
+
class Ie {
|
|
160
162
|
/**
|
|
161
163
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
162
164
|
*
|
|
@@ -174,9 +176,9 @@ class Te {
|
|
|
174
176
|
this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
|
|
175
177
|
}
|
|
176
178
|
}
|
|
177
|
-
class
|
|
179
|
+
class V extends f {
|
|
178
180
|
}
|
|
179
|
-
class
|
|
181
|
+
class ce extends f {
|
|
180
182
|
/**
|
|
181
183
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
182
184
|
*
|
|
@@ -205,10 +207,10 @@ class ne extends y {
|
|
|
205
207
|
* Координаты склада.
|
|
206
208
|
*/
|
|
207
209
|
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
|
|
210
|
+
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 V(n))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Ie(e == null ? void 0 : e.coordinates);
|
|
209
211
|
}
|
|
210
212
|
}
|
|
211
|
-
class
|
|
213
|
+
class gr {
|
|
212
214
|
/**
|
|
213
215
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
214
216
|
*
|
|
@@ -223,26 +225,26 @@ class ur {
|
|
|
223
225
|
* Количество остатков товара на складе.
|
|
224
226
|
*/
|
|
225
227
|
s(this, "count");
|
|
226
|
-
this.warehouse = new
|
|
228
|
+
this.warehouse = new ce(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
227
229
|
}
|
|
228
230
|
}
|
|
229
|
-
const
|
|
231
|
+
const W = class W {
|
|
230
232
|
/**
|
|
231
233
|
* Инициализирует и возвращает конфигурацию приложения.
|
|
232
234
|
*
|
|
233
235
|
* @param config Данные для первоначальной инициализации.
|
|
234
236
|
*/
|
|
235
237
|
static init(r) {
|
|
236
|
-
|
|
238
|
+
W.config = r;
|
|
237
239
|
}
|
|
238
240
|
/**
|
|
239
241
|
* Возвращает текущую конфигурацию приложения.
|
|
240
242
|
*/
|
|
241
243
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
242
244
|
static getConfig() {
|
|
243
|
-
if (
|
|
245
|
+
if (Te(W.config))
|
|
244
246
|
throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
|
|
245
|
-
return
|
|
247
|
+
return W.config;
|
|
246
248
|
}
|
|
247
249
|
/**
|
|
248
250
|
* Выполняет загрузку конфигурации по указанному пути.
|
|
@@ -261,9 +263,9 @@ const H = class H {
|
|
|
261
263
|
/**
|
|
262
264
|
* Конфигурация приложения.
|
|
263
265
|
*/
|
|
264
|
-
s(
|
|
265
|
-
let
|
|
266
|
-
class
|
|
266
|
+
s(W, "config");
|
|
267
|
+
let O = W;
|
|
268
|
+
class mr extends Le {
|
|
267
269
|
/**
|
|
268
270
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
269
271
|
*
|
|
@@ -278,7 +280,7 @@ class pr extends Se {
|
|
|
278
280
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
279
281
|
}
|
|
280
282
|
}
|
|
281
|
-
class
|
|
283
|
+
class fr {
|
|
282
284
|
/**
|
|
283
285
|
* Инициализирует экземпляр класса {@link Image}.
|
|
284
286
|
*
|
|
@@ -301,7 +303,7 @@ class hr {
|
|
|
301
303
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
302
304
|
}
|
|
303
305
|
}
|
|
304
|
-
class
|
|
306
|
+
class x extends mr {
|
|
305
307
|
/**
|
|
306
308
|
* Инициализирует экземпляр класса {@link Product}.
|
|
307
309
|
*
|
|
@@ -374,22 +376,22 @@ class I extends pr {
|
|
|
374
376
|
* Список коэффициентов цен на продукт.
|
|
375
377
|
*/
|
|
376
378
|
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
|
|
379
|
+
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 gr(h))) ?? [], this.type = "product";
|
|
378
380
|
const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((h) => h.isPrimary));
|
|
379
|
-
t && (this.category = new
|
|
380
|
-
var
|
|
381
|
-
return new
|
|
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
|
|
381
|
+
t && (this.category = new me({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((h) => new me(h))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((h) => {
|
|
382
|
+
var y;
|
|
383
|
+
return new fr(h, (y = O.getConfig().urls) == null ? void 0 : y.mediaServer);
|
|
384
|
+
})) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((h) => new ve(h))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
383
385
|
}
|
|
384
386
|
/**
|
|
385
387
|
* Возвращает признак, что это измеряемый товар.
|
|
386
388
|
*/
|
|
387
389
|
getIsMeasurable() {
|
|
388
|
-
const e =
|
|
390
|
+
const e = O.getConfig().products.units;
|
|
389
391
|
return [...e.linear, ...e.square].includes(this.unit);
|
|
390
392
|
}
|
|
391
393
|
}
|
|
392
|
-
class
|
|
394
|
+
class yr extends K {
|
|
393
395
|
/**
|
|
394
396
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
395
397
|
*
|
|
@@ -441,10 +443,10 @@ class gr extends E {
|
|
|
441
443
|
* Признак того, что позиция является дополнительной продажей.
|
|
442
444
|
*/
|
|
443
445
|
s(this, "isAdditionalSale");
|
|
444
|
-
this.product = new
|
|
446
|
+
this.product = new x(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new oe(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Ve(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
445
447
|
}
|
|
446
448
|
}
|
|
447
|
-
class
|
|
449
|
+
class wr extends yr {
|
|
448
450
|
/**
|
|
449
451
|
* Инициализирует экземпляр класса {@link CartItem}.
|
|
450
452
|
*
|
|
@@ -494,7 +496,7 @@ class mr extends gr {
|
|
|
494
496
|
this.currency = e.currency, this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing;
|
|
495
497
|
}
|
|
496
498
|
}
|
|
497
|
-
class
|
|
499
|
+
class Y {
|
|
498
500
|
/**
|
|
499
501
|
* Инициализирует экземпляр класса {@link Cart}.
|
|
500
502
|
*
|
|
@@ -513,10 +515,10 @@ class Q {
|
|
|
513
515
|
* Список итоговых сумм по направлениям продаж.
|
|
514
516
|
*/
|
|
515
517
|
s(this, "directionsSum");
|
|
516
|
-
this.items = r.items.map((e) => new
|
|
518
|
+
this.items = r.items.map((e) => new wr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
517
519
|
}
|
|
518
520
|
}
|
|
519
|
-
class
|
|
521
|
+
class Cr {
|
|
520
522
|
/**
|
|
521
523
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
522
524
|
*
|
|
@@ -538,7 +540,7 @@ class fr {
|
|
|
538
540
|
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
541
|
}
|
|
540
542
|
}
|
|
541
|
-
class
|
|
543
|
+
class vr {
|
|
542
544
|
/**
|
|
543
545
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
544
546
|
*
|
|
@@ -556,7 +558,7 @@ class yr {
|
|
|
556
558
|
this.apiUri = (r == null ? void 0 : r.apiUri) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
|
|
557
559
|
}
|
|
558
560
|
}
|
|
559
|
-
class
|
|
561
|
+
class Rr {
|
|
560
562
|
/**
|
|
561
563
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
562
564
|
*
|
|
@@ -601,7 +603,7 @@ class wr {
|
|
|
601
603
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
602
604
|
}
|
|
603
605
|
}
|
|
604
|
-
class
|
|
606
|
+
class Dr {
|
|
605
607
|
/**
|
|
606
608
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
607
609
|
*
|
|
@@ -620,10 +622,10 @@ class Cr {
|
|
|
620
622
|
* Текущая версия приложения.
|
|
621
623
|
*/
|
|
622
624
|
s(this, "version");
|
|
623
|
-
this.date = (r == null ? void 0 : r.date) ??
|
|
625
|
+
this.date = (r == null ? void 0 : r.date) ?? Ze(/* @__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
626
|
}
|
|
625
627
|
}
|
|
626
|
-
class
|
|
628
|
+
class ss {
|
|
627
629
|
/**
|
|
628
630
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
629
631
|
*
|
|
@@ -666,19 +668,19 @@ class Kr {
|
|
|
666
668
|
* Данные о текущем выпуске приложения.
|
|
667
669
|
*/
|
|
668
670
|
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
|
|
671
|
+
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 vr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Cr(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
|
|
670
672
|
units: {
|
|
671
673
|
linear: ["пог.м.", "м."],
|
|
672
674
|
square: ["м2"]
|
|
673
675
|
},
|
|
674
676
|
...r == null ? void 0 : r.products
|
|
675
|
-
}, this.sentry = new
|
|
677
|
+
}, this.sentry = new Rr({
|
|
676
678
|
environment: this.environment,
|
|
677
679
|
...r == null ? void 0 : r.sentry
|
|
678
|
-
}), this.urls = r == null ? void 0 : r.urls, this.version = new
|
|
680
|
+
}), this.urls = r == null ? void 0 : r.urls, this.version = new Dr(r == null ? void 0 : r.version);
|
|
679
681
|
}
|
|
680
682
|
}
|
|
681
|
-
class
|
|
683
|
+
class Re {
|
|
682
684
|
/**
|
|
683
685
|
* Инициализирует экземпляр указанного класса.
|
|
684
686
|
*
|
|
@@ -697,7 +699,7 @@ class Ce {
|
|
|
697
699
|
return new r(e);
|
|
698
700
|
}
|
|
699
701
|
}
|
|
700
|
-
const
|
|
702
|
+
const b = class b {
|
|
701
703
|
/**
|
|
702
704
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
703
705
|
*
|
|
@@ -716,9 +718,9 @@ const $ = class $ {
|
|
|
716
718
|
* - error Данные об ошибке.
|
|
717
719
|
* - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
718
720
|
*/
|
|
719
|
-
s(this, "defaultInstanceNotificationErrorResponseHandler",
|
|
720
|
-
const t =
|
|
721
|
-
this.defaultInstanceNotificationErrorResponseHandler =
|
|
721
|
+
s(this, "defaultInstanceNotificationErrorResponseHandler", m);
|
|
722
|
+
const t = O.getConfig().version;
|
|
723
|
+
this.defaultInstanceNotificationErrorResponseHandler = b.baseDefaultNotificationErrorResponseHandler, this.httpClient = pr.create({
|
|
722
724
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
723
725
|
baseURL: r,
|
|
724
726
|
headers: {
|
|
@@ -728,12 +730,12 @@ const $ = class $ {
|
|
|
728
730
|
...e
|
|
729
731
|
}
|
|
730
732
|
}), this.httpClient.interceptors.request.use(
|
|
731
|
-
(n) => (n.method && (n.method === "get" && n.params && (n.params =
|
|
733
|
+
(n) => (n.method && (n.method === "get" && n.params && (n.params = Ae(n.params)), ["put", "patch", "post"].includes(Ee(n.method)) && n.data && (n.data = Ae(n.data))), n),
|
|
732
734
|
(n) => Promise.reject(n)
|
|
733
735
|
), this.httpClient.interceptors.response.use(
|
|
734
|
-
(n) => (n.data && (n.data =
|
|
736
|
+
(n) => (n.data && (n.data = hr(n.data)), n),
|
|
735
737
|
// Возвращаем изменённую структуру сообщения об ошибке.
|
|
736
|
-
(n) =>
|
|
738
|
+
(n) => b.convertHttpErrorResponse(n)
|
|
737
739
|
);
|
|
738
740
|
}
|
|
739
741
|
/**
|
|
@@ -742,7 +744,7 @@ const $ = class $ {
|
|
|
742
744
|
* @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
|
|
743
745
|
*/
|
|
744
746
|
static setBaseDefaultNotificationErrorResponseHandler(r) {
|
|
745
|
-
|
|
747
|
+
b.baseDefaultNotificationErrorResponseHandler = r;
|
|
746
748
|
}
|
|
747
749
|
/**
|
|
748
750
|
* Возвращает экземпляр объекта текущего класса.
|
|
@@ -750,7 +752,7 @@ const $ = class $ {
|
|
|
750
752
|
* @param type Тип данных, которыми оперирует метод.
|
|
751
753
|
*/
|
|
752
754
|
static getInstance(r) {
|
|
753
|
-
return Object.prototype.hasOwnProperty.call(
|
|
755
|
+
return Object.prototype.hasOwnProperty.call(b.instances, r.name) || (b.instances[r.name] = Re.simpleInstanceInitializer(r)), b.instances[r.name];
|
|
754
756
|
}
|
|
755
757
|
/**
|
|
756
758
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -825,23 +827,23 @@ const $ = class $ {
|
|
|
825
827
|
* @param disableDefaultNotificationErrorResponseHandler Признак необходимости отключить обработчик ошибок по умолчанию используемый для текущего экземпляра класса.
|
|
826
828
|
*/
|
|
827
829
|
delete(r, e = !1) {
|
|
828
|
-
return this.request({ method: "DELETE", url: r },
|
|
830
|
+
return this.request({ method: "DELETE", url: r }, m, {}, e);
|
|
829
831
|
}
|
|
830
832
|
};
|
|
831
833
|
/**
|
|
832
834
|
* Экземпляр объекта текущего класса.
|
|
833
835
|
*/
|
|
834
836
|
// eslint-disable-next-line no-use-before-define
|
|
835
|
-
s(
|
|
837
|
+
s(b, "instances", {}), /**
|
|
836
838
|
* Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
|
|
837
839
|
*
|
|
838
840
|
* Параметры:
|
|
839
841
|
* - error Данные об ошибке.
|
|
840
842
|
* - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
841
843
|
*/
|
|
842
|
-
s(
|
|
843
|
-
let
|
|
844
|
-
const
|
|
844
|
+
s(b, "baseDefaultNotificationErrorResponseHandler", m);
|
|
845
|
+
let fe = b;
|
|
846
|
+
const z = class z extends fe {
|
|
845
847
|
/**
|
|
846
848
|
* Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
|
|
847
849
|
*
|
|
@@ -854,7 +856,7 @@ const B = class B extends he {
|
|
|
854
856
|
* Время кэширования данных ответов на запросы (секунд).
|
|
855
857
|
*/
|
|
856
858
|
s(this, "responseDataCacheTimeout");
|
|
857
|
-
const n =
|
|
859
|
+
const n = O.getConfig();
|
|
858
860
|
this.responseDataCacheTimeout = n.http.responseDataCacheTimeout;
|
|
859
861
|
}
|
|
860
862
|
/**
|
|
@@ -864,7 +866,7 @@ const B = class B extends he {
|
|
|
864
866
|
* @param url URL запроса.
|
|
865
867
|
*/
|
|
866
868
|
static getCachedResponse(e) {
|
|
867
|
-
const t =
|
|
869
|
+
const t = z.responseDataCache.get(e);
|
|
868
870
|
if (t && t.validTo > /* @__PURE__ */ new Date())
|
|
869
871
|
return t.val;
|
|
870
872
|
}
|
|
@@ -875,8 +877,8 @@ const B = class B extends he {
|
|
|
875
877
|
* @param data Данные для кэширования.
|
|
876
878
|
*/
|
|
877
879
|
cacheResponse(e, t) {
|
|
878
|
-
|
|
879
|
-
validTo:
|
|
880
|
+
z.responseDataCache.set(e, {
|
|
881
|
+
validTo: er(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
880
882
|
val: t
|
|
881
883
|
});
|
|
882
884
|
}
|
|
@@ -890,9 +892,9 @@ const B = class B extends he {
|
|
|
890
892
|
*/
|
|
891
893
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
892
894
|
getTypedDataArrayRequester(e, t, n = !1) {
|
|
893
|
-
const o = n ?
|
|
895
|
+
const o = n ? z.getCachedResponse(t) : void 0;
|
|
894
896
|
return o ? Promise.resolve(o) : this.get(t).then((l) => {
|
|
895
|
-
const u = l.map((h) =>
|
|
897
|
+
const u = l.map((h) => Re.instanceInitializer(e, h));
|
|
896
898
|
return n && u && this.cacheResponse(t, u), u;
|
|
897
899
|
});
|
|
898
900
|
}
|
|
@@ -900,19 +902,19 @@ const B = class B extends he {
|
|
|
900
902
|
/**
|
|
901
903
|
* Кэш результатов запросов.
|
|
902
904
|
*/
|
|
903
|
-
s(
|
|
904
|
-
let
|
|
905
|
-
class
|
|
905
|
+
s(z, "responseDataCache", /* @__PURE__ */ new Map());
|
|
906
|
+
let ye = z;
|
|
907
|
+
class p extends ye {
|
|
906
908
|
/**
|
|
907
909
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
908
910
|
*/
|
|
909
911
|
constructor() {
|
|
910
912
|
var t, n;
|
|
911
|
-
const r =
|
|
913
|
+
const r = O.getConfig(), e = {};
|
|
912
914
|
(t = r.devMode) != null && t.authBearerToken && (e.Authorization = `Bearer ${(n = r.devMode) == null ? void 0 : n.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
|
|
913
915
|
}
|
|
914
916
|
}
|
|
915
|
-
class
|
|
917
|
+
class ts extends p {
|
|
916
918
|
/**
|
|
917
919
|
* Возвращает содержимое корзины указанного клиента.
|
|
918
920
|
*
|
|
@@ -921,7 +923,7 @@ class Xr extends g {
|
|
|
921
923
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_get
|
|
922
924
|
*/
|
|
923
925
|
getCart(r) {
|
|
924
|
-
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new
|
|
926
|
+
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new Y(e.data));
|
|
925
927
|
}
|
|
926
928
|
/**
|
|
927
929
|
* Удаляет всё содержимое корзины.
|
|
@@ -959,7 +961,7 @@ class Xr extends g {
|
|
|
959
961
|
isAdditionalSale: e.isAdditionalSale,
|
|
960
962
|
...e.configuratorParams
|
|
961
963
|
},
|
|
962
|
-
(n) => new
|
|
964
|
+
(n) => new Y(n.data),
|
|
963
965
|
t
|
|
964
966
|
);
|
|
965
967
|
}
|
|
@@ -989,7 +991,7 @@ class Xr extends g {
|
|
|
989
991
|
isAdditionalSale: e.isAdditionalSale,
|
|
990
992
|
...e.configuratorParams
|
|
991
993
|
},
|
|
992
|
-
(n) => new
|
|
994
|
+
(n) => new Y(n.data),
|
|
993
995
|
t
|
|
994
996
|
);
|
|
995
997
|
}
|
|
@@ -1012,11 +1014,11 @@ class Xr extends g {
|
|
|
1012
1014
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
|
|
1013
1015
|
*/
|
|
1014
1016
|
addCartItemFromCSV(r) {
|
|
1015
|
-
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new
|
|
1017
|
+
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new Y(e.data));
|
|
1016
1018
|
}
|
|
1017
1019
|
}
|
|
1018
|
-
var
|
|
1019
|
-
class
|
|
1020
|
+
var xe = /* @__PURE__ */ ((i) => (i.Discount = "discount", i.PriceTemplate = "price_template", i.ClientPrice = "client_price", i.Product = "product", i))(xe || {}), Pr = /* @__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))(Pr || {}), Ar = /* @__PURE__ */ ((i) => (i.K0 = "k0", i.K1 = "k1", i.K2 = "k2", i.K3 = "k3", i.K4 = "k4", i))(Ar || {});
|
|
1021
|
+
class d extends oe {
|
|
1020
1022
|
/**
|
|
1021
1023
|
* Инициализирует экземпляр класса {@link Category}.
|
|
1022
1024
|
*
|
|
@@ -1033,10 +1035,10 @@ class N extends ye {
|
|
|
1033
1035
|
* Список продуктов категории.
|
|
1034
1036
|
*/
|
|
1035
1037
|
s(this, "products");
|
|
1036
|
-
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new
|
|
1038
|
+
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new d(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new x(o));
|
|
1037
1039
|
}
|
|
1038
1040
|
}
|
|
1039
|
-
class
|
|
1041
|
+
class ke extends P {
|
|
1040
1042
|
/**
|
|
1041
1043
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1042
1044
|
*
|
|
@@ -1051,7 +1053,7 @@ class ae extends A {
|
|
|
1051
1053
|
this.updatedAt = e == null ? void 0 : e.updatedAt;
|
|
1052
1054
|
}
|
|
1053
1055
|
}
|
|
1054
|
-
class
|
|
1056
|
+
class $r extends ke {
|
|
1055
1057
|
/**
|
|
1056
1058
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1057
1059
|
*
|
|
@@ -1063,10 +1065,10 @@ class Dr extends ae {
|
|
|
1063
1065
|
* Дата и время последнего удаления в формате Y-m-d H:i:s.
|
|
1064
1066
|
*/
|
|
1065
1067
|
s(this, "deletedAt");
|
|
1066
|
-
this.deletedAt = e != null && e.deletedAt ?
|
|
1068
|
+
this.deletedAt = e != null && e.deletedAt ? D(e.deletedAt) ? N(e.deletedAt) : e.deletedAt : void 0;
|
|
1067
1069
|
}
|
|
1068
1070
|
}
|
|
1069
|
-
class
|
|
1071
|
+
class ns {
|
|
1070
1072
|
/**
|
|
1071
1073
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
1072
1074
|
*
|
|
@@ -1077,7 +1079,7 @@ class Zr {
|
|
|
1077
1079
|
if (e)
|
|
1078
1080
|
try {
|
|
1079
1081
|
const t = JSON.parse(e);
|
|
1080
|
-
if (
|
|
1082
|
+
if (rr(N(t.availableFor) || ge(), /* @__PURE__ */ new Date()))
|
|
1081
1083
|
return t.data || {};
|
|
1082
1084
|
} catch {
|
|
1083
1085
|
localStorage.removeItem(r);
|
|
@@ -1100,7 +1102,7 @@ class Zr {
|
|
|
1100
1102
|
);
|
|
1101
1103
|
}
|
|
1102
1104
|
}
|
|
1103
|
-
class
|
|
1105
|
+
class U extends P {
|
|
1104
1106
|
/**
|
|
1105
1107
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
1106
1108
|
*
|
|
@@ -1115,7 +1117,7 @@ class d extends A {
|
|
|
1115
1117
|
this.type = e == null ? void 0 : e.type;
|
|
1116
1118
|
}
|
|
1117
1119
|
}
|
|
1118
|
-
class
|
|
1120
|
+
class br extends P {
|
|
1119
1121
|
/**
|
|
1120
1122
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1121
1123
|
*
|
|
@@ -1151,10 +1153,10 @@ class Pr extends A {
|
|
|
1151
1153
|
* Дата и время удаления в формате Y-m-d H:i:s.
|
|
1152
1154
|
*/
|
|
1153
1155
|
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 ?
|
|
1156
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = e != null && e.publishedAt ? D(e.publishedAt) ? N(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 U(e == null ? void 0 : e.owner), this.deletedAt = e != null && e.deletedAt ? D(e.deletedAt) ? N(e.deletedAt) : e.deletedAt : void 0;
|
|
1155
1157
|
}
|
|
1156
1158
|
}
|
|
1157
|
-
class
|
|
1159
|
+
class Sr extends ke {
|
|
1158
1160
|
/**
|
|
1159
1161
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1160
1162
|
*
|
|
@@ -1170,10 +1172,10 @@ class Rr extends ae {
|
|
|
1170
1172
|
* Дата и время создания шаблона.
|
|
1171
1173
|
*/
|
|
1172
1174
|
s(this, "createdAt");
|
|
1173
|
-
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = e != null && e.createdAt ?
|
|
1175
|
+
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = e != null && e.createdAt ? D(e.createdAt) ? N(e.createdAt) : e.createdAt : /* @__PURE__ */ new Date();
|
|
1174
1176
|
}
|
|
1175
1177
|
}
|
|
1176
|
-
class
|
|
1178
|
+
class le extends x {
|
|
1177
1179
|
/**
|
|
1178
1180
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1179
1181
|
*
|
|
@@ -1209,10 +1211,10 @@ class ie extends I {
|
|
|
1209
1211
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1210
1212
|
*/
|
|
1211
1213
|
s(this, "isFavorite");
|
|
1212
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ??
|
|
1214
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? xe.Product, this.discount = e != null && e.discount ? new br(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Sr(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
1215
|
}
|
|
1214
1216
|
}
|
|
1215
|
-
class
|
|
1217
|
+
class _r {
|
|
1216
1218
|
/**
|
|
1217
1219
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1218
1220
|
*
|
|
@@ -1230,9 +1232,9 @@ class Ar {
|
|
|
1230
1232
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
1231
1233
|
}
|
|
1232
1234
|
}
|
|
1233
|
-
class
|
|
1235
|
+
class S extends f {
|
|
1234
1236
|
}
|
|
1235
|
-
class
|
|
1237
|
+
class Z extends P {
|
|
1236
1238
|
/**
|
|
1237
1239
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1238
1240
|
*
|
|
@@ -1243,7 +1245,7 @@ class K extends A {
|
|
|
1243
1245
|
/**
|
|
1244
1246
|
* Направление продаж.
|
|
1245
1247
|
*/
|
|
1246
|
-
s(this, "salesDirection", new
|
|
1248
|
+
s(this, "salesDirection", new S());
|
|
1247
1249
|
/**
|
|
1248
1250
|
* URI путь к фотографии пользователя.
|
|
1249
1251
|
*/
|
|
@@ -1256,10 +1258,10 @@ class K extends A {
|
|
|
1256
1258
|
* Признак того, что менеджер является основным для клиента.
|
|
1257
1259
|
*/
|
|
1258
1260
|
s(this, "isDefault");
|
|
1259
|
-
e && (this.salesDirection = new
|
|
1261
|
+
e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new _r(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1260
1262
|
}
|
|
1261
1263
|
}
|
|
1262
|
-
class
|
|
1264
|
+
class ue extends Z {
|
|
1263
1265
|
/**
|
|
1264
1266
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1265
1267
|
*
|
|
@@ -1290,7 +1292,7 @@ class oe extends K {
|
|
|
1290
1292
|
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
1293
|
}
|
|
1292
1294
|
}
|
|
1293
|
-
class
|
|
1295
|
+
class Tr extends oe {
|
|
1294
1296
|
/**
|
|
1295
1297
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1296
1298
|
*
|
|
@@ -1318,10 +1320,10 @@ class br extends ye {
|
|
|
1318
1320
|
* Данные о менеджере за которым закреплена категория.
|
|
1319
1321
|
*/
|
|
1320
1322
|
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
|
|
1323
|
+
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 ue(e.manager) : void 0;
|
|
1322
1324
|
}
|
|
1323
1325
|
}
|
|
1324
|
-
class
|
|
1326
|
+
class ee extends Tr {
|
|
1325
1327
|
/**
|
|
1326
1328
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1327
1329
|
*
|
|
@@ -1338,12 +1340,12 @@ class X extends br {
|
|
|
1338
1340
|
* Список продуктов категории.
|
|
1339
1341
|
*/
|
|
1340
1342
|
s(this, "products");
|
|
1341
|
-
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new
|
|
1343
|
+
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new ee(o)), this.products = (n = e == null ? void 0 : e.products) == null ? void 0 : n.map((o) => new le(o));
|
|
1342
1344
|
}
|
|
1343
1345
|
}
|
|
1344
|
-
class
|
|
1346
|
+
class Ne extends f {
|
|
1345
1347
|
}
|
|
1346
|
-
class
|
|
1348
|
+
class J extends P {
|
|
1347
1349
|
/**
|
|
1348
1350
|
* Инициализирует экземпляр класса {@link Property}.
|
|
1349
1351
|
*
|
|
@@ -1363,10 +1365,10 @@ class V extends A {
|
|
|
1363
1365
|
* Дополнительные метаданные свойства.
|
|
1364
1366
|
*/
|
|
1365
1367
|
s(this, "metadata");
|
|
1366
|
-
this.type = new
|
|
1368
|
+
this.type = new Ne(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
1367
1369
|
}
|
|
1368
1370
|
}
|
|
1369
|
-
class
|
|
1371
|
+
class H {
|
|
1370
1372
|
/**
|
|
1371
1373
|
* Инициализирует экземпляр класса {@link PropertyValue}.
|
|
1372
1374
|
*
|
|
@@ -1382,18 +1384,18 @@ class M {
|
|
|
1382
1384
|
* Может быть строкой, числом, boolean, диапазоном или JSON объектом.
|
|
1383
1385
|
*/
|
|
1384
1386
|
s(this, "value");
|
|
1385
|
-
this.property = new
|
|
1387
|
+
this.property = new J(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
1386
1388
|
}
|
|
1387
1389
|
}
|
|
1388
|
-
class
|
|
1390
|
+
class Lr extends f {
|
|
1389
1391
|
}
|
|
1390
|
-
class
|
|
1392
|
+
class Oe extends f {
|
|
1391
1393
|
}
|
|
1392
|
-
class
|
|
1394
|
+
class is extends f {
|
|
1393
1395
|
}
|
|
1394
|
-
class
|
|
1396
|
+
class E extends f {
|
|
1395
1397
|
}
|
|
1396
|
-
class
|
|
1398
|
+
class Q extends f {
|
|
1397
1399
|
/**
|
|
1398
1400
|
* Инициализирует экземпляр класса {@link Region}.
|
|
1399
1401
|
*
|
|
@@ -1404,11 +1406,11 @@ class J extends y {
|
|
|
1404
1406
|
/**
|
|
1405
1407
|
* Данные о стране, в которой расположен регион.
|
|
1406
1408
|
*/
|
|
1407
|
-
s(this, "country", new
|
|
1408
|
-
e && (this.country = new
|
|
1409
|
+
s(this, "country", new E());
|
|
1410
|
+
e && (this.country = new E(e.country));
|
|
1409
1411
|
}
|
|
1410
1412
|
}
|
|
1411
|
-
class
|
|
1413
|
+
class re extends f {
|
|
1412
1414
|
/**
|
|
1413
1415
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
1414
1416
|
*
|
|
@@ -1419,13 +1421,13 @@ class Z extends y {
|
|
|
1419
1421
|
/**
|
|
1420
1422
|
* Данные о регионе, в котором расположен город.
|
|
1421
1423
|
*/
|
|
1422
|
-
s(this, "region", new
|
|
1423
|
-
e && (this.region = new
|
|
1424
|
+
s(this, "region", new Q());
|
|
1425
|
+
e && (this.region = new Q(e.region));
|
|
1424
1426
|
}
|
|
1425
1427
|
}
|
|
1426
|
-
class
|
|
1428
|
+
class ar extends f {
|
|
1427
1429
|
}
|
|
1428
|
-
class
|
|
1430
|
+
class se extends P {
|
|
1429
1431
|
/**
|
|
1430
1432
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
1431
1433
|
*
|
|
@@ -1444,33 +1446,33 @@ class ee extends A {
|
|
|
1444
1446
|
e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
|
|
1445
1447
|
}
|
|
1446
1448
|
}
|
|
1447
|
-
var
|
|
1448
|
-
class
|
|
1449
|
+
var $ = /* @__PURE__ */ ((i) => (i.Person = "individual", i.Ic = "entrepreneur", i.UlR = "legal", i.UlNr = "non_resident_legal", i))($ || {});
|
|
1450
|
+
class q extends f {
|
|
1449
1451
|
/**
|
|
1450
1452
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
1451
1453
|
*/
|
|
1452
1454
|
static generatePersonItem() {
|
|
1453
|
-
return new
|
|
1455
|
+
return new q({
|
|
1454
1456
|
id: 1,
|
|
1455
1457
|
guid: "",
|
|
1456
|
-
slug:
|
|
1458
|
+
slug: $.Person,
|
|
1457
1459
|
name: ""
|
|
1458
1460
|
});
|
|
1459
1461
|
}
|
|
1460
1462
|
}
|
|
1461
|
-
class
|
|
1463
|
+
class Ir extends f {
|
|
1462
1464
|
}
|
|
1463
|
-
class
|
|
1465
|
+
class xr extends f {
|
|
1464
1466
|
}
|
|
1465
|
-
class G extends
|
|
1467
|
+
class G extends f {
|
|
1466
1468
|
}
|
|
1467
|
-
class
|
|
1469
|
+
class kr extends f {
|
|
1468
1470
|
}
|
|
1469
|
-
class
|
|
1471
|
+
class de extends f {
|
|
1470
1472
|
}
|
|
1471
|
-
class
|
|
1473
|
+
class Ue extends f {
|
|
1472
1474
|
}
|
|
1473
|
-
class
|
|
1475
|
+
class R extends p {
|
|
1474
1476
|
/**
|
|
1475
1477
|
* Возвращает {@link Promise} для получения данных указанного справочника.
|
|
1476
1478
|
*
|
|
@@ -1479,26 +1481,26 @@ class D extends g {
|
|
|
1479
1481
|
* и использовать в случае аналогичных запросов.
|
|
1480
1482
|
*/
|
|
1481
1483
|
getReference(r, e = !1) {
|
|
1482
|
-
return this.getTypedDataArrayRequester(
|
|
1484
|
+
return this.getTypedDataArrayRequester(Lr, `/internal/references/${r}`, e);
|
|
1483
1485
|
}
|
|
1484
1486
|
/**
|
|
1485
1487
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
1486
1488
|
* первичного интереса.
|
|
1487
1489
|
*/
|
|
1488
1490
|
getChannelPrimaryInterest() {
|
|
1489
|
-
return this.getTypedDataArrayRequester(
|
|
1491
|
+
return this.getTypedDataArrayRequester(Oe, "/internal/references/channel-primary-interest", !0);
|
|
1490
1492
|
}
|
|
1491
1493
|
/**
|
|
1492
1494
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
1493
1495
|
*/
|
|
1494
1496
|
getContactPositions() {
|
|
1495
|
-
return this.getTypedDataArrayRequester(
|
|
1497
|
+
return this.getTypedDataArrayRequester(ar, "/internal/references/contact-position", !0);
|
|
1496
1498
|
}
|
|
1497
1499
|
/**
|
|
1498
1500
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
1499
1501
|
*/
|
|
1500
1502
|
getCurrency() {
|
|
1501
|
-
return this.getTypedDataArrayRequester(
|
|
1503
|
+
return this.getTypedDataArrayRequester(se, "/public/references/currency", !0);
|
|
1502
1504
|
}
|
|
1503
1505
|
/**
|
|
1504
1506
|
* Возвращает {@link Promise} для получения справочника данных
|
|
@@ -1511,43 +1513,43 @@ class D extends g {
|
|
|
1511
1513
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
1512
1514
|
*/
|
|
1513
1515
|
getOpf() {
|
|
1514
|
-
return this.getTypedDataArrayRequester(
|
|
1516
|
+
return this.getTypedDataArrayRequester(q, "/public/references/opf", !0);
|
|
1515
1517
|
}
|
|
1516
1518
|
/**
|
|
1517
1519
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
1518
1520
|
*/
|
|
1519
1521
|
getOrderPaymentStatuses() {
|
|
1520
|
-
return this.getTypedDataArrayRequester(
|
|
1522
|
+
return this.getTypedDataArrayRequester(Ir, "/public/references/order-payment-status", !0);
|
|
1521
1523
|
}
|
|
1522
1524
|
/**
|
|
1523
1525
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
1524
1526
|
*/
|
|
1525
1527
|
getOrderStatuses() {
|
|
1526
|
-
return this.getTypedDataArrayRequester(
|
|
1528
|
+
return this.getTypedDataArrayRequester(xr, "/public/references/order-status", !0);
|
|
1527
1529
|
}
|
|
1528
1530
|
/**
|
|
1529
1531
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
1530
1532
|
*/
|
|
1531
1533
|
getPaymentTypes() {
|
|
1532
|
-
return this.getTypedDataArrayRequester(
|
|
1534
|
+
return this.getTypedDataArrayRequester(kr, "/public/references/payment-type", !0);
|
|
1533
1535
|
}
|
|
1534
1536
|
/**
|
|
1535
1537
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
1536
1538
|
*/
|
|
1537
1539
|
getResourceTypes() {
|
|
1538
|
-
return this.getTypedDataArrayRequester(
|
|
1540
|
+
return this.getTypedDataArrayRequester(de, "/internal/references/resource-type", !0);
|
|
1539
1541
|
}
|
|
1540
1542
|
/**
|
|
1541
1543
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
1542
1544
|
*/
|
|
1543
1545
|
getSalesDirections() {
|
|
1544
|
-
return this.getTypedDataArrayRequester(
|
|
1546
|
+
return this.getTypedDataArrayRequester(S, "/public/references/sales-direction", !0);
|
|
1545
1547
|
}
|
|
1546
1548
|
/**
|
|
1547
1549
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
1548
1550
|
*/
|
|
1549
1551
|
getSourcePrimaryInterest() {
|
|
1550
|
-
return this.getTypedDataArrayRequester(
|
|
1552
|
+
return this.getTypedDataArrayRequester(Ue, "/internal/references/source-primary-interest", !0);
|
|
1551
1553
|
}
|
|
1552
1554
|
/**
|
|
1553
1555
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -1555,7 +1557,7 @@ class D extends g {
|
|
|
1555
1557
|
* @param term Терм поиска.
|
|
1556
1558
|
*/
|
|
1557
1559
|
searchCity(r) {
|
|
1558
|
-
return this.getTypedDataArrayRequester(
|
|
1560
|
+
return this.getTypedDataArrayRequester(re, `/internal/references/city-with-region-and-country/search?term=${r}`);
|
|
1559
1561
|
}
|
|
1560
1562
|
/**
|
|
1561
1563
|
* Выполняет поиск данных о регионах по терму в названии.
|
|
@@ -1563,7 +1565,7 @@ class D extends g {
|
|
|
1563
1565
|
* @param term Терм поиска.
|
|
1564
1566
|
*/
|
|
1565
1567
|
searchRegion(r) {
|
|
1566
|
-
return this.getTypedDataArrayRequester(
|
|
1568
|
+
return this.getTypedDataArrayRequester(Q, `/internal/references/region-with-country/search?term=${r}`);
|
|
1567
1569
|
}
|
|
1568
1570
|
/**
|
|
1569
1571
|
* Выполняет поиск данных о странах по терму в названии.
|
|
@@ -1571,29 +1573,35 @@ class D extends g {
|
|
|
1571
1573
|
* @param term Терм поиска.
|
|
1572
1574
|
*/
|
|
1573
1575
|
searchCountry(r) {
|
|
1574
|
-
return this.getTypedDataArrayRequester(
|
|
1576
|
+
return this.getTypedDataArrayRequester(E, `/internal/references/country/search?term=${r}`);
|
|
1575
1577
|
}
|
|
1576
1578
|
/**
|
|
1577
1579
|
* Возвращает {@link Promise} для получения справочника типов доставки.
|
|
1578
1580
|
*/
|
|
1579
1581
|
getDeliveryTypes() {
|
|
1580
|
-
return this.getTypedDataArrayRequester(
|
|
1582
|
+
return this.getTypedDataArrayRequester(V, "/internal/references/delivery-type", !0);
|
|
1581
1583
|
}
|
|
1582
1584
|
/**
|
|
1583
1585
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
1584
1586
|
*/
|
|
1585
1587
|
getWarehouses() {
|
|
1586
|
-
return this.getTypedDataArrayRequester(
|
|
1588
|
+
return this.getTypedDataArrayRequester(ce, "/public/references/warehouse", !0);
|
|
1587
1589
|
}
|
|
1588
1590
|
/**
|
|
1589
1591
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
1590
1592
|
*/
|
|
1591
1593
|
getPropertyTypes() {
|
|
1592
|
-
return this.getTypedDataArrayRequester(
|
|
1594
|
+
return this.getTypedDataArrayRequester(Ne, "/internal/references/property-type", !0);
|
|
1595
|
+
}
|
|
1596
|
+
/**
|
|
1597
|
+
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
1598
|
+
*/
|
|
1599
|
+
getPriceCoefficients() {
|
|
1600
|
+
return this.getTypedDataArrayRequester(ae, "/internal/references/price-coefficient", !0);
|
|
1593
1601
|
}
|
|
1594
1602
|
}
|
|
1595
|
-
var
|
|
1596
|
-
class
|
|
1603
|
+
var Nr = /* @__PURE__ */ ((i) => (i.Admin = "admin", i.Manager = "manager", i.Operator = "operator", i.Client = "client", i.Guest = "guest", i))(Nr || {});
|
|
1604
|
+
class qe extends P {
|
|
1597
1605
|
/**
|
|
1598
1606
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1599
1607
|
*
|
|
@@ -1629,10 +1637,10 @@ class Oe extends A {
|
|
|
1629
1637
|
* Признак активности учетной записи пользователя.
|
|
1630
1638
|
*/
|
|
1631
1639
|
s(this, "isActive");
|
|
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
|
|
1640
|
+
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 S(e.salesDirection) : void 0, this.createdAt = D(e == null ? void 0 : e.createdAt) ? N(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = D(e == null ? void 0 : e.lastLoginAt) ? N(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1633
1641
|
}
|
|
1634
1642
|
}
|
|
1635
|
-
class
|
|
1643
|
+
class Or extends qe {
|
|
1636
1644
|
/**
|
|
1637
1645
|
* Инициализирует экземпляр класса {@link User}.
|
|
1638
1646
|
*
|
|
@@ -1655,16 +1663,16 @@ class Ir extends Oe {
|
|
|
1655
1663
|
this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo;
|
|
1656
1664
|
}
|
|
1657
1665
|
}
|
|
1658
|
-
class
|
|
1666
|
+
class dr extends p {
|
|
1659
1667
|
/**
|
|
1660
1668
|
* Возвращает данные о текущем пользователе.
|
|
1661
1669
|
*/
|
|
1662
1670
|
// eslint-disable-next-line class-methods-use-this
|
|
1663
1671
|
getCurrentUser() {
|
|
1664
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
1672
|
+
return this.get("/internal/users/info", {}, (r) => new Or(r.data));
|
|
1665
1673
|
}
|
|
1666
1674
|
}
|
|
1667
|
-
class
|
|
1675
|
+
class Ur {
|
|
1668
1676
|
/**
|
|
1669
1677
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
1670
1678
|
*
|
|
@@ -1707,10 +1715,10 @@ class kr {
|
|
|
1707
1715
|
* Данные о валюте.
|
|
1708
1716
|
*/
|
|
1709
1717
|
s(this, "currency");
|
|
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
|
|
1718
|
+
this.cost = r.cost, this.costDate = D(r.costDate) ? N(r.costDate) : r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new U(r.client) : void 0, this.executor = r.executor ? new U(r.executor) : void 0, this.currency = r.currency ? new se(r.currency) : void 0;
|
|
1711
1719
|
}
|
|
1712
1720
|
}
|
|
1713
|
-
class
|
|
1721
|
+
class $e {
|
|
1714
1722
|
/**
|
|
1715
1723
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
1716
1724
|
*
|
|
@@ -1725,10 +1733,55 @@ class Re {
|
|
|
1725
1733
|
* Список рекомендованных категорий продуктов.
|
|
1726
1734
|
*/
|
|
1727
1735
|
s(this, "productCategories", []);
|
|
1728
|
-
r != null && r.products && (this.products = r.products.map((e) => new
|
|
1736
|
+
r != null && r.products && (this.products = r.products.map((e) => new x(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new d(e)));
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
class B extends P {
|
|
1740
|
+
/**
|
|
1741
|
+
* Инициализирует экземпляр класса {@link PricingRole}.
|
|
1742
|
+
*
|
|
1743
|
+
* @param data Данные для первоначальной инициализации.
|
|
1744
|
+
*/
|
|
1745
|
+
constructor(e) {
|
|
1746
|
+
super(e);
|
|
1747
|
+
/**
|
|
1748
|
+
* Описание роли ценообразования.
|
|
1749
|
+
*/
|
|
1750
|
+
s(this, "description");
|
|
1751
|
+
/**
|
|
1752
|
+
* Признак того, что пользователь с данной ролью может устанавливать цены ниже минимальной.
|
|
1753
|
+
*/
|
|
1754
|
+
s(this, "canChangeLowCost");
|
|
1755
|
+
/**
|
|
1756
|
+
* Идентификатор родительской роли ценообразования.
|
|
1757
|
+
*/
|
|
1758
|
+
s(this, "parentRoleId");
|
|
1759
|
+
this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
class qr {
|
|
1763
|
+
/**
|
|
1764
|
+
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
1765
|
+
*
|
|
1766
|
+
* @param data Данные для первоначальной инициализации.
|
|
1767
|
+
*/
|
|
1768
|
+
constructor(r) {
|
|
1769
|
+
/**
|
|
1770
|
+
* Роль ценообразования.
|
|
1771
|
+
*/
|
|
1772
|
+
s(this, "role");
|
|
1773
|
+
/**
|
|
1774
|
+
* Категория товара.
|
|
1775
|
+
*/
|
|
1776
|
+
s(this, "category");
|
|
1777
|
+
/**
|
|
1778
|
+
* Минимальный коэффициент цены.
|
|
1779
|
+
*/
|
|
1780
|
+
s(this, "minCoefficient");
|
|
1781
|
+
this.role = new B(r == null ? void 0 : r.role), this.category = new oe(r == null ? void 0 : r.category), this.minCoefficient = new f(r == null ? void 0 : r.minCoefficient);
|
|
1729
1782
|
}
|
|
1730
1783
|
}
|
|
1731
|
-
class
|
|
1784
|
+
class os extends p {
|
|
1732
1785
|
/**
|
|
1733
1786
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
1734
1787
|
*
|
|
@@ -1754,11 +1807,11 @@ class rs extends g {
|
|
|
1754
1807
|
*/
|
|
1755
1808
|
// eslint-disable-next-line class-methods-use-this
|
|
1756
1809
|
getPriceExportLink(r = "csv", e = !1, t = void 0) {
|
|
1757
|
-
let o = `${
|
|
1810
|
+
let o = `${O.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
|
|
1758
1811
|
return t && (o += `&client_id=${t}`), o;
|
|
1759
1812
|
}
|
|
1760
1813
|
}
|
|
1761
|
-
class
|
|
1814
|
+
class cs extends p {
|
|
1762
1815
|
/**
|
|
1763
1816
|
* Возвращает список данных о корневых категориях.
|
|
1764
1817
|
*
|
|
@@ -1772,7 +1825,7 @@ class ss extends g {
|
|
|
1772
1825
|
{
|
|
1773
1826
|
showHidden: r
|
|
1774
1827
|
},
|
|
1775
|
-
(e) => e.data.map((t) => new
|
|
1828
|
+
(e) => e.data.map((t) => new d(t))
|
|
1776
1829
|
);
|
|
1777
1830
|
}
|
|
1778
1831
|
/**
|
|
@@ -1791,7 +1844,7 @@ class ss extends g {
|
|
|
1791
1844
|
showHidden: e,
|
|
1792
1845
|
withNestedCategories: t
|
|
1793
1846
|
},
|
|
1794
|
-
(n) => new
|
|
1847
|
+
(n) => new d(n.data)
|
|
1795
1848
|
);
|
|
1796
1849
|
}
|
|
1797
1850
|
/**
|
|
@@ -1800,7 +1853,7 @@ class ss extends g {
|
|
|
1800
1853
|
* @param categoryID Идентификатор категории продуктов.
|
|
1801
1854
|
*/
|
|
1802
1855
|
getPublicCategoryData(r) {
|
|
1803
|
-
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new
|
|
1856
|
+
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new d(e.data));
|
|
1804
1857
|
}
|
|
1805
1858
|
/**
|
|
1806
1859
|
* Возвращает список продуктов категории.
|
|
@@ -1818,7 +1871,7 @@ class ss extends g {
|
|
|
1818
1871
|
showHidden: t,
|
|
1819
1872
|
withPriceCoefficients: e
|
|
1820
1873
|
},
|
|
1821
|
-
(n) =>
|
|
1874
|
+
(n) => X(n.data, (o) => new x(o))
|
|
1822
1875
|
);
|
|
1823
1876
|
}
|
|
1824
1877
|
/**
|
|
@@ -1830,8 +1883,8 @@ class ss extends g {
|
|
|
1830
1883
|
*/
|
|
1831
1884
|
getCategoryProductsCoefficients(r) {
|
|
1832
1885
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
1833
|
-
const t =
|
|
1834
|
-
return
|
|
1886
|
+
const { data: t } = e;
|
|
1887
|
+
return Ke(t, (n) => n.map((o) => new ve(o))), t;
|
|
1835
1888
|
});
|
|
1836
1889
|
}
|
|
1837
1890
|
/**
|
|
@@ -1843,14 +1896,14 @@ class ss extends g {
|
|
|
1843
1896
|
publicSimpleSearch(r, e = 10) {
|
|
1844
1897
|
return new Promise((t, n) => {
|
|
1845
1898
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
1846
|
-
t(o.categories.map((l) => new
|
|
1899
|
+
t(o.categories.map((l) => new d(l)));
|
|
1847
1900
|
}).catch((o) => {
|
|
1848
1901
|
n(o);
|
|
1849
1902
|
});
|
|
1850
1903
|
});
|
|
1851
1904
|
}
|
|
1852
1905
|
}
|
|
1853
|
-
class
|
|
1906
|
+
class ls extends p {
|
|
1854
1907
|
/**
|
|
1855
1908
|
* Возвращает данные об указанном продукте.
|
|
1856
1909
|
*
|
|
@@ -1860,7 +1913,7 @@ class ts extends g {
|
|
|
1860
1913
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
1861
1914
|
*/
|
|
1862
1915
|
getProductData(r, e = !1) {
|
|
1863
|
-
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new
|
|
1916
|
+
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (t) => new x(t.data));
|
|
1864
1917
|
}
|
|
1865
1918
|
/**
|
|
1866
1919
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -1868,7 +1921,7 @@ class ts extends g {
|
|
|
1868
1921
|
* @param productId Идентификатор продукта.
|
|
1869
1922
|
*/
|
|
1870
1923
|
getPublicProductData(r) {
|
|
1871
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
1924
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new x(e.data));
|
|
1872
1925
|
}
|
|
1873
1926
|
/**
|
|
1874
1927
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -1878,7 +1931,11 @@ class ts extends g {
|
|
|
1878
1931
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_coefficients_get
|
|
1879
1932
|
*/
|
|
1880
1933
|
getProductPriceCoefficients(r) {
|
|
1881
|
-
return this.get(
|
|
1934
|
+
return this.get(
|
|
1935
|
+
`/internal/catalog/products/${r}/coefficients`,
|
|
1936
|
+
{},
|
|
1937
|
+
(e) => X(e.data, (t) => new ve(t))
|
|
1938
|
+
);
|
|
1882
1939
|
}
|
|
1883
1940
|
/**
|
|
1884
1941
|
* Возвращает данные об истории изменения цен для указанного продукта.
|
|
@@ -1890,7 +1947,7 @@ class ts extends g {
|
|
|
1890
1947
|
*/
|
|
1891
1948
|
getProductPriceHistory(r, e) {
|
|
1892
1949
|
const t = {};
|
|
1893
|
-
return
|
|
1950
|
+
return Je(e) || (t.clientId = e), this.get(`/internal/price/products/${r}/history`, t, (n) => X(n.data, (o) => new Ur(o)));
|
|
1894
1951
|
}
|
|
1895
1952
|
/**
|
|
1896
1953
|
* Выполняет публичный поиск данных о продуктах по терму.
|
|
@@ -1901,14 +1958,14 @@ class ts extends g {
|
|
|
1901
1958
|
publicSimpleSearch(r, e = 10) {
|
|
1902
1959
|
return new Promise((t, n) => {
|
|
1903
1960
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
1904
|
-
t(o.products.map((l) => new
|
|
1961
|
+
t(o.products.map((l) => new x(l)));
|
|
1905
1962
|
}).catch((o) => {
|
|
1906
1963
|
n(o);
|
|
1907
1964
|
});
|
|
1908
1965
|
});
|
|
1909
1966
|
}
|
|
1910
1967
|
}
|
|
1911
|
-
class
|
|
1968
|
+
class us extends p {
|
|
1912
1969
|
/**
|
|
1913
1970
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
1914
1971
|
*
|
|
@@ -1924,7 +1981,7 @@ class ns extends g {
|
|
|
1924
1981
|
clientId: r,
|
|
1925
1982
|
showHidden: e
|
|
1926
1983
|
},
|
|
1927
|
-
(t) => t.data.map((n) => new
|
|
1984
|
+
(t) => t.data.map((n) => new ee(n))
|
|
1928
1985
|
);
|
|
1929
1986
|
}
|
|
1930
1987
|
/**
|
|
@@ -1945,7 +2002,7 @@ class ns extends g {
|
|
|
1945
2002
|
showHidden: t,
|
|
1946
2003
|
withNestedCategories: n
|
|
1947
2004
|
},
|
|
1948
|
-
(o) => new
|
|
2005
|
+
(o) => new ee(o.data)
|
|
1949
2006
|
);
|
|
1950
2007
|
}
|
|
1951
2008
|
/**
|
|
@@ -1966,11 +2023,11 @@ class ns extends g {
|
|
|
1966
2023
|
showHidden: n,
|
|
1967
2024
|
withPriceCoefficients: t
|
|
1968
2025
|
},
|
|
1969
|
-
(o) =>
|
|
2026
|
+
(o) => X(o.data, (l) => new le(l))
|
|
1970
2027
|
);
|
|
1971
2028
|
}
|
|
1972
2029
|
}
|
|
1973
|
-
class
|
|
2030
|
+
class ps extends p {
|
|
1974
2031
|
/**
|
|
1975
2032
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
1976
2033
|
*
|
|
@@ -1987,11 +2044,83 @@ class is extends g {
|
|
|
1987
2044
|
clientId: e,
|
|
1988
2045
|
withPriceCoefficients: t
|
|
1989
2046
|
},
|
|
1990
|
-
(n) => new
|
|
2047
|
+
(n) => new le(n.data)
|
|
1991
2048
|
);
|
|
1992
2049
|
}
|
|
1993
2050
|
}
|
|
1994
|
-
class
|
|
2051
|
+
class hs extends p {
|
|
2052
|
+
/**
|
|
2053
|
+
* Возвращает список ролей ценообразования.
|
|
2054
|
+
*
|
|
2055
|
+
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
|
|
2056
|
+
*/
|
|
2057
|
+
getRoles() {
|
|
2058
|
+
return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new B(e)));
|
|
2059
|
+
}
|
|
2060
|
+
/**
|
|
2061
|
+
* Добавляет новую роль ценообразования.
|
|
2062
|
+
*
|
|
2063
|
+
* @param data Данные для создания роли ценообразования.
|
|
2064
|
+
*
|
|
2065
|
+
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
|
|
2066
|
+
*/
|
|
2067
|
+
createRole(r) {
|
|
2068
|
+
return this.post("/internal/price/roles", r, (e) => new B(e.data));
|
|
2069
|
+
}
|
|
2070
|
+
/**
|
|
2071
|
+
* Возвращает данные роли ценообразования.
|
|
2072
|
+
*
|
|
2073
|
+
* @param id Идентификатор роли ценообразования.
|
|
2074
|
+
*
|
|
2075
|
+
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
|
|
2076
|
+
*/
|
|
2077
|
+
getRole(r) {
|
|
2078
|
+
return this.get(`/internal/price/roles/${r}`, {}, (e) => new B(e.data));
|
|
2079
|
+
}
|
|
2080
|
+
/**
|
|
2081
|
+
* Обновляет данные роли ценообразования.
|
|
2082
|
+
*
|
|
2083
|
+
* @param id Идентификатор роли ценообразования.
|
|
2084
|
+
* @param data Данные для обновления роли ценообразования.
|
|
2085
|
+
*
|
|
2086
|
+
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
|
|
2087
|
+
*/
|
|
2088
|
+
updateRole(r, e) {
|
|
2089
|
+
return this.patch(`/internal/price/roles/${r}`, e, (t) => new B(t.data));
|
|
2090
|
+
}
|
|
2091
|
+
/**
|
|
2092
|
+
* Удаляет роль ценообразования.
|
|
2093
|
+
*
|
|
2094
|
+
* @param id Идентификатор роли ценообразования.
|
|
2095
|
+
*
|
|
2096
|
+
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_delete
|
|
2097
|
+
*/
|
|
2098
|
+
deleteRole(r) {
|
|
2099
|
+
return this.delete(`/internal/price/roles/${r}`);
|
|
2100
|
+
}
|
|
2101
|
+
/**
|
|
2102
|
+
* Возвращает список правил для роли ценообразования по указанной категории.
|
|
2103
|
+
*
|
|
2104
|
+
* @param categoryId Идентификатор категории.
|
|
2105
|
+
*
|
|
2106
|
+
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_category_rules_get
|
|
2107
|
+
*/
|
|
2108
|
+
getCategoryRules(r) {
|
|
2109
|
+
return this.get(`/internal/price/roles/rules/categories/${r}`, {}, (e) => e.data.map((t) => new qr(t)));
|
|
2110
|
+
}
|
|
2111
|
+
/**
|
|
2112
|
+
* Обновляет правила для роли ценообразования по указанной категории.
|
|
2113
|
+
*
|
|
2114
|
+
* @param categoryId Идентификатор категории.
|
|
2115
|
+
* @param data Данные для обновления правил.
|
|
2116
|
+
*
|
|
2117
|
+
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_category_rules_update
|
|
2118
|
+
*/
|
|
2119
|
+
updateCategoryRules(r, e) {
|
|
2120
|
+
return this.patch(`/internal/price/roles/rules/categories/${r}`, e, (t) => t.data.map((n) => new B(n)));
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
class De extends p {
|
|
1995
2124
|
/**
|
|
1996
2125
|
* Получает пагинированный список данных.
|
|
1997
2126
|
*
|
|
@@ -2007,12 +2136,12 @@ class ve extends g {
|
|
|
2007
2136
|
page: (n == null ? void 0 : n.page) ?? 1,
|
|
2008
2137
|
per_page: (n == null ? void 0 : n.pageSize) ?? (n == null ? void 0 : n.perPage) ?? 10
|
|
2009
2138
|
};
|
|
2010
|
-
return e && (u.filters = JSON.stringify(e)),
|
|
2011
|
-
u[`sort[${
|
|
2139
|
+
return e && (u.filters = JSON.stringify(e)), Qe(t) || (Ye(t) ? t : [t]).forEach((h, y) => {
|
|
2140
|
+
u[`sort[${y}][field]`] = h.field, u[`sort[${y}][direction]`] = h.direction;
|
|
2012
2141
|
}), this.get(r, u, o, l);
|
|
2013
2142
|
}
|
|
2014
2143
|
}
|
|
2015
|
-
class
|
|
2144
|
+
class gs extends De {
|
|
2016
2145
|
/**
|
|
2017
2146
|
* Возвращает пагинированный список свойств.
|
|
2018
2147
|
*
|
|
@@ -2024,7 +2153,7 @@ class os extends ve {
|
|
|
2024
2153
|
getProperties(r, e, t) {
|
|
2025
2154
|
return this.getPaginated("/internal/catalog/properties", r, e, t, (n) => {
|
|
2026
2155
|
const o = { ...n.data };
|
|
2027
|
-
return o.data = o.data.map((l) => new
|
|
2156
|
+
return o.data = o.data.map((l) => new J(l)), o;
|
|
2028
2157
|
});
|
|
2029
2158
|
}
|
|
2030
2159
|
/**
|
|
@@ -2041,7 +2170,7 @@ class os extends ve {
|
|
|
2041
2170
|
...t,
|
|
2042
2171
|
type: e
|
|
2043
2172
|
},
|
|
2044
|
-
(n) => new
|
|
2173
|
+
(n) => new J(n.data)
|
|
2045
2174
|
);
|
|
2046
2175
|
}
|
|
2047
2176
|
/**
|
|
@@ -2051,7 +2180,7 @@ class os extends ve {
|
|
|
2051
2180
|
* @see /doc/api/internal#/operations/api_internal_catalog_properties_get
|
|
2052
2181
|
*/
|
|
2053
2182
|
getProperty(r) {
|
|
2054
|
-
return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new
|
|
2183
|
+
return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new J(e.data));
|
|
2055
2184
|
}
|
|
2056
2185
|
/**
|
|
2057
2186
|
* Обновляет существующее свойство.
|
|
@@ -2068,7 +2197,7 @@ class os extends ve {
|
|
|
2068
2197
|
...n,
|
|
2069
2198
|
type: t
|
|
2070
2199
|
},
|
|
2071
|
-
(o) => new
|
|
2200
|
+
(o) => new J(o.data)
|
|
2072
2201
|
);
|
|
2073
2202
|
}
|
|
2074
2203
|
/**
|
|
@@ -2087,7 +2216,7 @@ class os extends ve {
|
|
|
2087
2216
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
|
|
2088
2217
|
*/
|
|
2089
2218
|
getProductProperties(r) {
|
|
2090
|
-
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((t) => new
|
|
2219
|
+
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((t) => new H(t)));
|
|
2091
2220
|
}
|
|
2092
2221
|
/**
|
|
2093
2222
|
* Возвращает значение свойства продукта.
|
|
@@ -2097,7 +2226,7 @@ class os extends ve {
|
|
|
2097
2226
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
|
|
2098
2227
|
*/
|
|
2099
2228
|
getProductProperty(r, e) {
|
|
2100
|
-
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new
|
|
2229
|
+
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new H(t.data));
|
|
2101
2230
|
}
|
|
2102
2231
|
/**
|
|
2103
2232
|
* Обновляет значение свойства продукта.
|
|
@@ -2108,7 +2237,7 @@ class os extends ve {
|
|
|
2108
2237
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
|
|
2109
2238
|
*/
|
|
2110
2239
|
updateProductProperty(r, e, t) {
|
|
2111
|
-
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (n) => new
|
|
2240
|
+
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (n) => new H(n.data));
|
|
2112
2241
|
}
|
|
2113
2242
|
/**
|
|
2114
2243
|
* Удаляет значение свойства продукта.
|
|
@@ -2211,7 +2340,7 @@ class os extends ve {
|
|
|
2211
2340
|
*
|
|
2212
2341
|
* @param productId Идентификатор продукта.
|
|
2213
2342
|
* @param fileId Идентификатор файла.
|
|
2214
|
-
* @see /doc/api/internal#/operations/
|
|
2343
|
+
* @see /doc/api/internal#/operations/api_internal_catalog_products_slug_save
|
|
2215
2344
|
*/
|
|
2216
2345
|
deleteProductFile(r, e) {
|
|
2217
2346
|
return this.delete(`/internal/catalog/products/${r}/properties/files/${e}`);
|
|
@@ -2233,7 +2362,7 @@ class os extends ve {
|
|
|
2233
2362
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
|
|
2234
2363
|
*/
|
|
2235
2364
|
getCategoryProperties(r) {
|
|
2236
|
-
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((t) => new
|
|
2365
|
+
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((t) => new H(t)));
|
|
2237
2366
|
}
|
|
2238
2367
|
/**
|
|
2239
2368
|
* Возвращает значение свойства категории.
|
|
@@ -2243,7 +2372,7 @@ class os extends ve {
|
|
|
2243
2372
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
|
|
2244
2373
|
*/
|
|
2245
2374
|
getCategoryProperty(r, e) {
|
|
2246
|
-
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new
|
|
2375
|
+
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new H(t.data));
|
|
2247
2376
|
}
|
|
2248
2377
|
/**
|
|
2249
2378
|
* Обновляет значение свойства категории.
|
|
@@ -2254,7 +2383,7 @@ class os extends ve {
|
|
|
2254
2383
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
|
|
2255
2384
|
*/
|
|
2256
2385
|
updateCategoryProperty(r, e, t) {
|
|
2257
|
-
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (n) => new
|
|
2386
|
+
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (n) => new H(n.data));
|
|
2258
2387
|
}
|
|
2259
2388
|
/**
|
|
2260
2389
|
* Удаляет значение свойства категории.
|
|
@@ -2367,20 +2496,20 @@ class os extends ve {
|
|
|
2367
2496
|
*
|
|
2368
2497
|
* @param categoryId Идентификатор категории.
|
|
2369
2498
|
* @param slug Новый URL-slug.
|
|
2370
|
-
* @see /doc/api/internal#/operations/
|
|
2499
|
+
* @see /doc/api/internal#/operations/api_internal_catalog_categories_slug_save
|
|
2371
2500
|
*/
|
|
2372
2501
|
updateCategorySlug(r, e) {
|
|
2373
2502
|
return this.patch(`/internal/catalog/categories/${r}/properties/slug`, { slug: e });
|
|
2374
2503
|
}
|
|
2375
2504
|
}
|
|
2376
|
-
class
|
|
2505
|
+
class ms extends p {
|
|
2377
2506
|
/**
|
|
2378
2507
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
2379
2508
|
*
|
|
2380
2509
|
* @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
|
|
2381
2510
|
*/
|
|
2382
2511
|
getProductCategoryRecommendations(r) {
|
|
2383
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new
|
|
2512
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new $e(e.data));
|
|
2384
2513
|
}
|
|
2385
2514
|
/**
|
|
2386
2515
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -2388,7 +2517,7 @@ class cs extends g {
|
|
|
2388
2517
|
* @param product Данные о продукте, для которого необходимо получить рекомендации.
|
|
2389
2518
|
*/
|
|
2390
2519
|
getProductRecommendations(r) {
|
|
2391
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new
|
|
2520
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new $e(e.data));
|
|
2392
2521
|
}
|
|
2393
2522
|
/**
|
|
2394
2523
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -2415,8 +2544,8 @@ class cs extends g {
|
|
|
2415
2544
|
});
|
|
2416
2545
|
}
|
|
2417
2546
|
}
|
|
2418
|
-
var
|
|
2419
|
-
class
|
|
2547
|
+
var Gr = /* @__PURE__ */ ((i) => (i.LastOrder = "last_order", i.Contacts = "contacts", i.PartnerGroups = "partner_groups", i.PreferredDeliveryType = "preferred_delivery_type", i))(Gr || {});
|
|
2548
|
+
class we extends K {
|
|
2420
2549
|
/**
|
|
2421
2550
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
2422
2551
|
*
|
|
@@ -2443,11 +2572,11 @@ class me extends E {
|
|
|
2443
2572
|
/**
|
|
2444
2573
|
* Данные о валюте.
|
|
2445
2574
|
*/
|
|
2446
|
-
s(this, "currency", new
|
|
2447
|
-
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new
|
|
2575
|
+
s(this, "currency", new se());
|
|
2576
|
+
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new se(e.currency));
|
|
2448
2577
|
}
|
|
2449
2578
|
}
|
|
2450
|
-
class
|
|
2579
|
+
class Ce extends P {
|
|
2451
2580
|
/**
|
|
2452
2581
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
2453
2582
|
*
|
|
@@ -2466,7 +2595,7 @@ class fe extends A {
|
|
|
2466
2595
|
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;
|
|
2467
2596
|
}
|
|
2468
2597
|
}
|
|
2469
|
-
class
|
|
2598
|
+
class M extends Ce {
|
|
2470
2599
|
/**
|
|
2471
2600
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
2472
2601
|
*
|
|
@@ -2501,7 +2630,7 @@ class q extends fe {
|
|
|
2501
2630
|
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;
|
|
2502
2631
|
}
|
|
2503
2632
|
}
|
|
2504
|
-
class
|
|
2633
|
+
class Ge extends P {
|
|
2505
2634
|
/**
|
|
2506
2635
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
2507
2636
|
*
|
|
@@ -2513,15 +2642,15 @@ class de extends A {
|
|
|
2513
2642
|
/**
|
|
2514
2643
|
* Данные о менеджере.
|
|
2515
2644
|
*/
|
|
2516
|
-
s(this, "manager", new
|
|
2645
|
+
s(this, "manager", new Z());
|
|
2517
2646
|
/**
|
|
2518
2647
|
* Данные об организационно-правовой форме.
|
|
2519
2648
|
*/
|
|
2520
|
-
s(this, "opf",
|
|
2649
|
+
s(this, "opf", q.generatePersonItem());
|
|
2521
2650
|
/**
|
|
2522
2651
|
* Направление продаж.
|
|
2523
2652
|
*/
|
|
2524
|
-
s(this, "salesDirection", new
|
|
2653
|
+
s(this, "salesDirection", new S());
|
|
2525
2654
|
/**
|
|
2526
2655
|
* Группа партнеров (направление деятельности).
|
|
2527
2656
|
*/
|
|
@@ -2559,22 +2688,22 @@ class de extends A {
|
|
|
2559
2688
|
*/
|
|
2560
2689
|
s(this, "updater");
|
|
2561
2690
|
if (e) {
|
|
2562
|
-
if (this.opf = new
|
|
2691
|
+
if (this.opf = new q(e.opf), this.salesDirection = new S(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = D(e == null ? void 0 : e.createdAt) ? j(e == null ? void 0 : e.createdAt, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date()) : e.createdAt, this.creator = e.creator ? new U(e.creator) : void 0, this.updatedAt = D(e == null ? void 0 : e.updatedAt) ? j(e == null ? void 0 : e.updatedAt, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date()) : e.updatedAt, this.updater = e.updater ? new U(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new G(e.partnerGroup)), e.manager && (this.manager = new Z(e.manager)), e.contacts) {
|
|
2563
2692
|
const t = [];
|
|
2564
2693
|
e.contacts.forEach((n) => {
|
|
2565
|
-
t.push(new
|
|
2694
|
+
t.push(new M(n));
|
|
2566
2695
|
}), this.contacts = t;
|
|
2567
2696
|
}
|
|
2568
2697
|
if (e.bankAccounts) {
|
|
2569
2698
|
const t = [];
|
|
2570
2699
|
e.bankAccounts.forEach((n) => {
|
|
2571
|
-
t.push(new
|
|
2700
|
+
t.push(new we(n));
|
|
2572
2701
|
}), this.bankAccounts = t;
|
|
2573
2702
|
}
|
|
2574
2703
|
}
|
|
2575
2704
|
}
|
|
2576
2705
|
}
|
|
2577
|
-
class
|
|
2706
|
+
class Mr extends Ge {
|
|
2578
2707
|
/**
|
|
2579
2708
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
2580
2709
|
*
|
|
@@ -2584,7 +2713,7 @@ class Or extends de {
|
|
|
2584
2713
|
super(r);
|
|
2585
2714
|
}
|
|
2586
2715
|
}
|
|
2587
|
-
class
|
|
2716
|
+
class Me extends Ge {
|
|
2588
2717
|
/**
|
|
2589
2718
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
2590
2719
|
*
|
|
@@ -2627,7 +2756,7 @@ class Ue extends de {
|
|
|
2627
2756
|
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 ?? "");
|
|
2628
2757
|
}
|
|
2629
2758
|
}
|
|
2630
|
-
class
|
|
2759
|
+
class He extends Me {
|
|
2631
2760
|
/**
|
|
2632
2761
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
2633
2762
|
*
|
|
@@ -2642,7 +2771,7 @@ class Ge extends Ue {
|
|
|
2642
2771
|
e && (this.kpp = e.kpp ?? "");
|
|
2643
2772
|
}
|
|
2644
2773
|
}
|
|
2645
|
-
class
|
|
2774
|
+
class Hr extends He {
|
|
2646
2775
|
/**
|
|
2647
2776
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
2648
2777
|
*
|
|
@@ -2653,7 +2782,7 @@ class dr extends Ge {
|
|
|
2653
2782
|
/**
|
|
2654
2783
|
* Страна регистрации юридического лица нерезидента.
|
|
2655
2784
|
*/
|
|
2656
|
-
s(this, "registrationCountry", new
|
|
2785
|
+
s(this, "registrationCountry", new E());
|
|
2657
2786
|
/**
|
|
2658
2787
|
* Регистрационный номер юридического лица нерезидента.
|
|
2659
2788
|
*/
|
|
@@ -2662,10 +2791,10 @@ class dr extends Ge {
|
|
|
2662
2791
|
* Налоговый номер юридического лица нерезидента.
|
|
2663
2792
|
*/
|
|
2664
2793
|
s(this, "taxNumber", "");
|
|
2665
|
-
e && (this.registrationCountry = new
|
|
2794
|
+
e && (this.registrationCountry = new E(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
2666
2795
|
}
|
|
2667
2796
|
}
|
|
2668
|
-
class
|
|
2797
|
+
class te {
|
|
2669
2798
|
/**
|
|
2670
2799
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
2671
2800
|
*
|
|
@@ -2673,18 +2802,18 @@ class re {
|
|
|
2673
2802
|
*/
|
|
2674
2803
|
static createInstance(r) {
|
|
2675
2804
|
switch (r.opf.slug) {
|
|
2676
|
-
case
|
|
2677
|
-
return new
|
|
2678
|
-
case
|
|
2679
|
-
return new
|
|
2680
|
-
case
|
|
2681
|
-
return new
|
|
2805
|
+
case $.Ic:
|
|
2806
|
+
return new Me(r);
|
|
2807
|
+
case $.UlR:
|
|
2808
|
+
return new He(r);
|
|
2809
|
+
case $.UlNr:
|
|
2810
|
+
return new Hr(r);
|
|
2682
2811
|
default:
|
|
2683
|
-
return new
|
|
2812
|
+
return new Mr(r);
|
|
2684
2813
|
}
|
|
2685
2814
|
}
|
|
2686
2815
|
}
|
|
2687
|
-
class
|
|
2816
|
+
class Pe extends qe {
|
|
2688
2817
|
/**
|
|
2689
2818
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2690
2819
|
*
|
|
@@ -2726,10 +2855,10 @@ class De extends Oe {
|
|
|
2726
2855
|
* Список менеджеров клиента.
|
|
2727
2856
|
*/
|
|
2728
2857
|
s(this, "managers");
|
|
2729
|
-
this.salesDirection = new
|
|
2858
|
+
this.salesDirection = new S(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 re(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 Z(n))) ?? [];
|
|
2730
2859
|
}
|
|
2731
2860
|
}
|
|
2732
|
-
class
|
|
2861
|
+
class he extends K {
|
|
2733
2862
|
/**
|
|
2734
2863
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
2735
2864
|
*
|
|
@@ -2744,7 +2873,7 @@ class le extends E {
|
|
|
2744
2873
|
this.isPrimary = e.isPrimary;
|
|
2745
2874
|
}
|
|
2746
2875
|
}
|
|
2747
|
-
class
|
|
2876
|
+
class Br extends M {
|
|
2748
2877
|
/**
|
|
2749
2878
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
2750
2879
|
*
|
|
@@ -2769,10 +2898,10 @@ class Ur extends q {
|
|
|
2769
2898
|
*/
|
|
2770
2899
|
addresses: []
|
|
2771
2900
|
});
|
|
2772
|
-
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new
|
|
2901
|
+
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new he(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new he(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new he(t))));
|
|
2773
2902
|
}
|
|
2774
2903
|
}
|
|
2775
|
-
class
|
|
2904
|
+
class ne extends $r {
|
|
2776
2905
|
/**
|
|
2777
2906
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
2778
2907
|
*
|
|
@@ -2809,10 +2938,10 @@ class se extends Dr {
|
|
|
2809
2938
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
2810
2939
|
*/
|
|
2811
2940
|
s(this, "isTransportCompanyAddress");
|
|
2812
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
2941
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Ie(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((n) => new M(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;
|
|
2813
2942
|
}
|
|
2814
2943
|
}
|
|
2815
|
-
class
|
|
2944
|
+
class be extends Pe {
|
|
2816
2945
|
/**
|
|
2817
2946
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2818
2947
|
*
|
|
@@ -2866,10 +2995,10 @@ class Ae extends De {
|
|
|
2866
2995
|
* Дополнительные данные о клиенте.
|
|
2867
2996
|
*/
|
|
2868
2997
|
s(this, "extraData");
|
|
2869
|
-
this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) =>
|
|
2998
|
+
this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => te.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 M(u))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((u) => new ne(u))) ?? [], this.channelPrimaryInterest = new Oe(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Ue(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new V(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 ce(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
2870
2999
|
}
|
|
2871
3000
|
}
|
|
2872
|
-
class
|
|
3001
|
+
class fs {
|
|
2873
3002
|
/**
|
|
2874
3003
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
2875
3004
|
*
|
|
@@ -2967,13 +3096,13 @@ class ls {
|
|
|
2967
3096
|
*/
|
|
2968
3097
|
s(this, "lastOrder");
|
|
2969
3098
|
var e, t, n, o, l, u, h;
|
|
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
|
|
3099
|
+
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 re(r == null ? void 0 : r.city), this.region = new Q(r == null ? void 0 : r.region), this.country = new E(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 = {
|
|
2971
3100
|
from: ((e = r == null ? void 0 : r.createdAt) == null ? void 0 : e.from) ?? null,
|
|
2972
3101
|
to: ((t = r == null ? void 0 : r.createdAt) == null ? void 0 : t.to) ?? null
|
|
2973
3102
|
}, this.lastLoginDate = {
|
|
2974
3103
|
from: ((n = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : n.from) ?? null,
|
|
2975
3104
|
to: ((o = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : o.to) ?? null
|
|
2976
|
-
}, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((
|
|
3105
|
+
}, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((y) => new ue(y)) : [], this.salesDirection = new S(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new q(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new V(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 Ce(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
2977
3106
|
createdAt: (l = r == null ? void 0 : r.lastOrder) == null ? void 0 : l.createdAt,
|
|
2978
3107
|
creator: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.creator,
|
|
2979
3108
|
isApproved: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.isApproved
|
|
@@ -2995,10 +3124,10 @@ class ls {
|
|
|
2995
3124
|
this[r] = "";
|
|
2996
3125
|
break;
|
|
2997
3126
|
case "city":
|
|
2998
|
-
this.city = new
|
|
3127
|
+
this.city = new re();
|
|
2999
3128
|
break;
|
|
3000
3129
|
case "region":
|
|
3001
|
-
this.region = new
|
|
3130
|
+
this.region = new Q();
|
|
3002
3131
|
break;
|
|
3003
3132
|
case "isActive":
|
|
3004
3133
|
this.isActive = !0;
|
|
@@ -3019,13 +3148,13 @@ class ls {
|
|
|
3019
3148
|
this.managers = [];
|
|
3020
3149
|
break;
|
|
3021
3150
|
case "salesDirection":
|
|
3022
|
-
this.salesDirection = new
|
|
3151
|
+
this.salesDirection = new S();
|
|
3023
3152
|
break;
|
|
3024
3153
|
case "contragentType":
|
|
3025
|
-
this.contragentType = new
|
|
3154
|
+
this.contragentType = new q();
|
|
3026
3155
|
break;
|
|
3027
3156
|
case "preferredDeliveryType":
|
|
3028
|
-
this.preferredDeliveryType = new
|
|
3157
|
+
this.preferredDeliveryType = new V();
|
|
3029
3158
|
break;
|
|
3030
3159
|
case "partnerGroup":
|
|
3031
3160
|
this.partnerGroup = new G();
|
|
@@ -3034,7 +3163,7 @@ class ls {
|
|
|
3034
3163
|
this.hasCostLessThenStop = void 0;
|
|
3035
3164
|
break;
|
|
3036
3165
|
case "contact":
|
|
3037
|
-
this.contact = new
|
|
3166
|
+
this.contact = new Ce();
|
|
3038
3167
|
break;
|
|
3039
3168
|
}
|
|
3040
3169
|
return this;
|
|
@@ -3049,11 +3178,11 @@ class ls {
|
|
|
3049
3178
|
return Object.keys(this).forEach((l) => {
|
|
3050
3179
|
const u = this[l];
|
|
3051
3180
|
// eslint-disable-next-line prettier/prettier
|
|
3052
|
-
|
|
3181
|
+
Te(u) || D(u) && u.trim().length === 0 || Xe(u.isNewRec) && u.isNewRec() || (r[l] = u);
|
|
3053
3182
|
}), !((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;
|
|
3054
3183
|
}
|
|
3055
3184
|
}
|
|
3056
|
-
class
|
|
3185
|
+
class Be extends K {
|
|
3057
3186
|
/**
|
|
3058
3187
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
3059
3188
|
*
|
|
@@ -3073,17 +3202,17 @@ class qe extends E {
|
|
|
3073
3202
|
* Признак того, что заказ подтвержден в 1С.
|
|
3074
3203
|
*/
|
|
3075
3204
|
s(this, "isApproved1c");
|
|
3076
|
-
this.createdAt =
|
|
3205
|
+
this.createdAt = D(e == null ? void 0 : e.createdAt) ? j(e.createdAt, "dd.MM.yyyy HH:mm", /* @__PURE__ */ new Date()) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new U(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
3077
3206
|
}
|
|
3078
3207
|
}
|
|
3079
|
-
class
|
|
3208
|
+
class We extends Be {
|
|
3080
3209
|
/**
|
|
3081
3210
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
3082
3211
|
*
|
|
3083
3212
|
* @param data Данные для первоначальной инициализации.
|
|
3084
3213
|
*/
|
|
3085
3214
|
constructor(e) {
|
|
3086
|
-
var t, n, o, l, u, h,
|
|
3215
|
+
var t, n, o, l, u, h, y, A;
|
|
3087
3216
|
super(e);
|
|
3088
3217
|
/**
|
|
3089
3218
|
* Краткие данные о клиенте.
|
|
@@ -3125,19 +3254,19 @@ class Me extends qe {
|
|
|
3125
3254
|
* Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
|
|
3126
3255
|
*/
|
|
3127
3256
|
s(this, "isNotInStock");
|
|
3128
|
-
this.client = new
|
|
3257
|
+
this.client = new Pe(e == null ? void 0 : e.client), this.payment = {
|
|
3129
3258
|
type: ((t = e == null ? void 0 : e.payment) == null ? void 0 : t.type) ?? -1,
|
|
3130
3259
|
status: ((n = e == null ? void 0 : e.payment) == null ? void 0 : n.status) ?? -1,
|
|
3131
3260
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
3132
3261
|
}, this.delivery = {
|
|
3133
3262
|
type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
|
|
3134
|
-
date:
|
|
3135
|
-
address: (
|
|
3136
|
-
warehouse: (
|
|
3137
|
-
}, this.attachedUser = new
|
|
3263
|
+
date: D((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? j(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(),
|
|
3264
|
+
address: (y = e == null ? void 0 : e.delivery) != null && y.address ? new ne(e.delivery.address) : void 0,
|
|
3265
|
+
warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new ce(e.delivery.warehouse) : void 0
|
|
3266
|
+
}, this.attachedUser = new U(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new S(e == null ? void 0 : e.salesDirection), this.pendingAt = D(e == null ? void 0 : e.pendingAt) ? j(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 = D(e == null ? void 0 : e.processedAt) ? j(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;
|
|
3138
3267
|
}
|
|
3139
3268
|
}
|
|
3140
|
-
class
|
|
3269
|
+
class Wr extends K {
|
|
3141
3270
|
/**
|
|
3142
3271
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
3143
3272
|
*
|
|
@@ -3217,10 +3346,10 @@ class Gr extends E {
|
|
|
3217
3346
|
* который соответствует указанной ширине. Количество не ограничено.
|
|
3218
3347
|
*/
|
|
3219
3348
|
s(this, "sawing");
|
|
3220
|
-
this.product = new
|
|
3349
|
+
this.product = new le(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;
|
|
3221
3350
|
}
|
|
3222
3351
|
}
|
|
3223
|
-
class
|
|
3352
|
+
class zr extends We {
|
|
3224
3353
|
/**
|
|
3225
3354
|
* Инициализирует экземпляр класса {@link Order}.
|
|
3226
3355
|
*
|
|
@@ -3260,10 +3389,10 @@ class qr extends Me {
|
|
|
3260
3389
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
3261
3390
|
*/
|
|
3262
3391
|
s(this, "isAllowProcessingWithoutPayment");
|
|
3263
|
-
this.products = (e.products ?? []).map((t) => new
|
|
3392
|
+
this.products = (e.products ?? []).map((t) => new Wr(t)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? te.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new f(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
3264
3393
|
}
|
|
3265
3394
|
}
|
|
3266
|
-
class
|
|
3395
|
+
class ys extends De {
|
|
3267
3396
|
/**
|
|
3268
3397
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
3269
3398
|
*
|
|
@@ -3275,7 +3404,7 @@ class us extends ve {
|
|
|
3275
3404
|
getOrders(r, e, t) {
|
|
3276
3405
|
return this.getPaginated("/internal/orders", r, e ? [e] : void 0, t, (n) => {
|
|
3277
3406
|
const o = { ...n.data };
|
|
3278
|
-
return o.data = o.data.map((l) => new
|
|
3407
|
+
return o.data = o.data.map((l) => new We(l)), o;
|
|
3279
3408
|
});
|
|
3280
3409
|
}
|
|
3281
3410
|
/**
|
|
@@ -3293,10 +3422,10 @@ class us extends ve {
|
|
|
3293
3422
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
3294
3423
|
*/
|
|
3295
3424
|
getOrder(r) {
|
|
3296
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
3425
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new zr(e.data));
|
|
3297
3426
|
}
|
|
3298
3427
|
}
|
|
3299
|
-
class
|
|
3428
|
+
class Fr extends P {
|
|
3300
3429
|
/**
|
|
3301
3430
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
3302
3431
|
*
|
|
@@ -3321,11 +3450,11 @@ class Mr extends A {
|
|
|
3321
3450
|
* Данные о последнем заказе клиента.
|
|
3322
3451
|
*/
|
|
3323
3452
|
s(this, "lastOrder");
|
|
3324
|
-
(t = e.contacts) != null && t.length && (this.contacts = e.contacts.map((o) => new
|
|
3453
|
+
(t = e.contacts) != null && t.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new Be(e.lastOrder)), (n = e.partnerGroups) != null && n.length && (this.partnerGroups = e.partnerGroups.map((o) => new G(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new V(e.preferredDeliveryType));
|
|
3325
3454
|
}
|
|
3326
3455
|
}
|
|
3327
|
-
var
|
|
3328
|
-
class
|
|
3456
|
+
var ze = /* @__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))(ze || {});
|
|
3457
|
+
class jr {
|
|
3329
3458
|
/**
|
|
3330
3459
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
3331
3460
|
*
|
|
@@ -3349,7 +3478,7 @@ class Hr {
|
|
|
3349
3478
|
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;
|
|
3350
3479
|
}
|
|
3351
3480
|
}
|
|
3352
|
-
class
|
|
3481
|
+
class ws extends jr {
|
|
3353
3482
|
/**
|
|
3354
3483
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
3355
3484
|
*
|
|
@@ -3380,7 +3509,7 @@ class ps extends Hr {
|
|
|
3380
3509
|
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;
|
|
3381
3510
|
}
|
|
3382
3511
|
}
|
|
3383
|
-
class
|
|
3512
|
+
class Cs {
|
|
3384
3513
|
/**
|
|
3385
3514
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
3386
3515
|
*
|
|
@@ -3398,7 +3527,7 @@ class hs {
|
|
|
3398
3527
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
3399
3528
|
}
|
|
3400
3529
|
}
|
|
3401
|
-
class
|
|
3530
|
+
class vs extends De {
|
|
3402
3531
|
/**
|
|
3403
3532
|
* Возвращает данные об указанном клиенте.
|
|
3404
3533
|
*
|
|
@@ -3406,7 +3535,7 @@ class gs extends ve {
|
|
|
3406
3535
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
3407
3536
|
*/
|
|
3408
3537
|
getClient(r) {
|
|
3409
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
3538
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new be(e.data));
|
|
3410
3539
|
}
|
|
3411
3540
|
/**
|
|
3412
3541
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -3419,7 +3548,7 @@ class gs extends ve {
|
|
|
3419
3548
|
getClientsList(r, e, t) {
|
|
3420
3549
|
return this.getPaginated("/internal/clients", r, e, t, (n) => {
|
|
3421
3550
|
const o = { ...n.data };
|
|
3422
|
-
return o.data = o.data.map((l) => new
|
|
3551
|
+
return o.data = o.data.map((l) => new Pe(l)), o;
|
|
3423
3552
|
});
|
|
3424
3553
|
}
|
|
3425
3554
|
/**
|
|
@@ -3432,7 +3561,7 @@ class gs extends ve {
|
|
|
3432
3561
|
return this.getClientsList({
|
|
3433
3562
|
groupOp: "and",
|
|
3434
3563
|
groups: [],
|
|
3435
|
-
filters: [{ field: "phone", op:
|
|
3564
|
+
filters: [{ field: "phone", op: ze.Contains, value: r }]
|
|
3436
3565
|
});
|
|
3437
3566
|
}
|
|
3438
3567
|
/**
|
|
@@ -3445,7 +3574,7 @@ class gs extends ve {
|
|
|
3445
3574
|
getAdditionalClientsData(r, e) {
|
|
3446
3575
|
return this.post("/internal/clients/additional-data", { clients: r, requested_data_types: e }, (t) => {
|
|
3447
3576
|
let n = [];
|
|
3448
|
-
return (t == null ? void 0 : t.data.length) > 0 && (n = t.data.map((o) => new
|
|
3577
|
+
return (t == null ? void 0 : t.data.length) > 0 && (n = t.data.map((o) => new Fr(o))), n;
|
|
3449
3578
|
});
|
|
3450
3579
|
}
|
|
3451
3580
|
/**
|
|
@@ -3457,7 +3586,7 @@ class gs extends ve {
|
|
|
3457
3586
|
getAllClientContacts(r) {
|
|
3458
3587
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
3459
3588
|
let t = [];
|
|
3460
|
-
return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((n) => new
|
|
3589
|
+
return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((n) => new Br(n))), t;
|
|
3461
3590
|
});
|
|
3462
3591
|
}
|
|
3463
3592
|
/**
|
|
@@ -3487,7 +3616,7 @@ class gs extends ve {
|
|
|
3487
3616
|
is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
|
|
3488
3617
|
preferred_warehouse_id: (t = r.preferredWarehouse) == null ? void 0 : t.id
|
|
3489
3618
|
},
|
|
3490
|
-
(n) => new
|
|
3619
|
+
(n) => new be(n.data),
|
|
3491
3620
|
e
|
|
3492
3621
|
);
|
|
3493
3622
|
}
|
|
@@ -3597,17 +3726,17 @@ class gs extends ve {
|
|
|
3597
3726
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
|
|
3598
3727
|
*/
|
|
3599
3728
|
createContragentClientData(r, e, t = {}) {
|
|
3600
|
-
var h,
|
|
3729
|
+
var h, y, A, _, T, L, a, I;
|
|
3601
3730
|
let n;
|
|
3602
3731
|
const o = e, l = e, u = e;
|
|
3603
3732
|
switch (e.opf.slug) {
|
|
3604
|
-
case
|
|
3733
|
+
case $.Ic:
|
|
3605
3734
|
n = {
|
|
3606
3735
|
opf: o.opf.slug,
|
|
3607
3736
|
name: o.name,
|
|
3608
3737
|
alternative_name: o.alternativeName,
|
|
3609
3738
|
partner_group_id: (h = o.partnerGroup) == null ? void 0 : h.id,
|
|
3610
|
-
manager_id: (
|
|
3739
|
+
manager_id: (y = o.manager) == null ? void 0 : y.id,
|
|
3611
3740
|
comment: o.comment,
|
|
3612
3741
|
inn: o.inn,
|
|
3613
3742
|
okpo: o.okpo,
|
|
@@ -3619,13 +3748,13 @@ class gs extends ve {
|
|
|
3619
3748
|
actual_address: o.actualAddress
|
|
3620
3749
|
};
|
|
3621
3750
|
break;
|
|
3622
|
-
case
|
|
3751
|
+
case $.UlR:
|
|
3623
3752
|
n = {
|
|
3624
3753
|
opf: l.opf.slug,
|
|
3625
3754
|
name: l.name,
|
|
3626
3755
|
alternative_name: l.alternativeName,
|
|
3627
|
-
partner_group_id: (
|
|
3628
|
-
manager_id: (
|
|
3756
|
+
partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
|
|
3757
|
+
manager_id: (_ = l.manager) == null ? void 0 : _.id,
|
|
3629
3758
|
comment: l.comment,
|
|
3630
3759
|
inn: l.inn,
|
|
3631
3760
|
kpp: l.kpp,
|
|
@@ -3638,7 +3767,7 @@ class gs extends ve {
|
|
|
3638
3767
|
actual_address: l.actualAddress
|
|
3639
3768
|
};
|
|
3640
3769
|
break;
|
|
3641
|
-
case
|
|
3770
|
+
case $.UlNr:
|
|
3642
3771
|
n = {
|
|
3643
3772
|
opf: u.opf.slug,
|
|
3644
3773
|
name: u.name,
|
|
@@ -3666,7 +3795,7 @@ class gs extends ve {
|
|
|
3666
3795
|
name: e.name,
|
|
3667
3796
|
alternative_name: e.alternativeName,
|
|
3668
3797
|
partner_group_id: (a = e.partnerGroup) == null ? void 0 : a.id,
|
|
3669
|
-
manager_id: (
|
|
3798
|
+
manager_id: (I = e.manager) == null ? void 0 : I.id,
|
|
3670
3799
|
comment: e.comment
|
|
3671
3800
|
};
|
|
3672
3801
|
break;
|
|
@@ -3674,7 +3803,7 @@ class gs extends ve {
|
|
|
3674
3803
|
return this.post(
|
|
3675
3804
|
`/internal/clients/${r}/contragents`,
|
|
3676
3805
|
n,
|
|
3677
|
-
(
|
|
3806
|
+
(c) => te.createInstance(c.data),
|
|
3678
3807
|
t
|
|
3679
3808
|
);
|
|
3680
3809
|
}
|
|
@@ -3689,17 +3818,17 @@ class gs extends ve {
|
|
|
3689
3818
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
|
|
3690
3819
|
*/
|
|
3691
3820
|
updateContragentClientData(r, e, t = {}) {
|
|
3692
|
-
var h,
|
|
3821
|
+
var h, y, A, _, T, L, a, I;
|
|
3693
3822
|
let n;
|
|
3694
3823
|
const o = e, l = e, u = e;
|
|
3695
3824
|
switch (e.opf.slug) {
|
|
3696
|
-
case
|
|
3825
|
+
case $.Ic:
|
|
3697
3826
|
n = {
|
|
3698
3827
|
opf: o.opf.slug,
|
|
3699
3828
|
name: o.name,
|
|
3700
3829
|
alternative_name: o.alternativeName,
|
|
3701
3830
|
partner_group_id: (h = o.partnerGroup) == null ? void 0 : h.id,
|
|
3702
|
-
manager_id: (
|
|
3831
|
+
manager_id: (y = o.manager) == null ? void 0 : y.id,
|
|
3703
3832
|
comment: o.comment,
|
|
3704
3833
|
inn: o.inn,
|
|
3705
3834
|
okpo: o.okpo,
|
|
@@ -3711,13 +3840,13 @@ class gs extends ve {
|
|
|
3711
3840
|
actual_address: o.actualAddress
|
|
3712
3841
|
};
|
|
3713
3842
|
break;
|
|
3714
|
-
case
|
|
3843
|
+
case $.UlR:
|
|
3715
3844
|
n = {
|
|
3716
3845
|
opf: l.opf.slug,
|
|
3717
3846
|
name: l.name,
|
|
3718
3847
|
alternative_name: l.alternativeName,
|
|
3719
|
-
partner_group_id: (
|
|
3720
|
-
manager_id: (
|
|
3848
|
+
partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
|
|
3849
|
+
manager_id: (_ = l.manager) == null ? void 0 : _.id,
|
|
3721
3850
|
comment: l.comment,
|
|
3722
3851
|
inn: l.inn,
|
|
3723
3852
|
kpp: l.kpp,
|
|
@@ -3730,7 +3859,7 @@ class gs extends ve {
|
|
|
3730
3859
|
actual_address: l.actualAddress
|
|
3731
3860
|
};
|
|
3732
3861
|
break;
|
|
3733
|
-
case
|
|
3862
|
+
case $.UlNr:
|
|
3734
3863
|
n = {
|
|
3735
3864
|
opf: u.opf.slug,
|
|
3736
3865
|
name: u.name,
|
|
@@ -3758,7 +3887,7 @@ class gs extends ve {
|
|
|
3758
3887
|
name: e.name,
|
|
3759
3888
|
alternative_name: e.alternativeName,
|
|
3760
3889
|
partner_group_id: (a = e.partnerGroup) == null ? void 0 : a.id,
|
|
3761
|
-
manager_id: (
|
|
3890
|
+
manager_id: (I = e.manager) == null ? void 0 : I.id,
|
|
3762
3891
|
comment: e.comment
|
|
3763
3892
|
};
|
|
3764
3893
|
break;
|
|
@@ -3766,7 +3895,7 @@ class gs extends ve {
|
|
|
3766
3895
|
return this.patch(
|
|
3767
3896
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
3768
3897
|
n,
|
|
3769
|
-
(
|
|
3898
|
+
(c) => te.createInstance(c.data),
|
|
3770
3899
|
t
|
|
3771
3900
|
);
|
|
3772
3901
|
}
|
|
@@ -3804,7 +3933,7 @@ class gs extends ve {
|
|
|
3804
3933
|
}), e.operatingHours && (n.operating_hours = {
|
|
3805
3934
|
from: e.operatingHours.from,
|
|
3806
3935
|
to: e.operatingHours.to
|
|
3807
|
-
}), this.post(`/internal/clients/${r}/delivery-addresses`, n, (u) => new
|
|
3936
|
+
}), this.post(`/internal/clients/${r}/delivery-addresses`, n, (u) => new ne(u.data), t);
|
|
3808
3937
|
}
|
|
3809
3938
|
/**
|
|
3810
3939
|
* Обновляет данные об адресе доставки клиента.
|
|
@@ -3833,7 +3962,7 @@ class gs extends ve {
|
|
|
3833
3962
|
}), this.patch(
|
|
3834
3963
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
3835
3964
|
n,
|
|
3836
|
-
(u) => new
|
|
3965
|
+
(u) => new ne(u.data),
|
|
3837
3966
|
t
|
|
3838
3967
|
);
|
|
3839
3968
|
}
|
|
@@ -3869,7 +3998,7 @@ class gs extends ve {
|
|
|
3869
3998
|
correspondent_account: t.correspondentAccount,
|
|
3870
3999
|
currency_id: t.currency.id
|
|
3871
4000
|
},
|
|
3872
|
-
(o) => new
|
|
4001
|
+
(o) => new we(o.data),
|
|
3873
4002
|
n
|
|
3874
4003
|
);
|
|
3875
4004
|
}
|
|
@@ -3895,7 +4024,7 @@ class gs extends ve {
|
|
|
3895
4024
|
correspondent_account: t.correspondentAccount,
|
|
3896
4025
|
currency_id: t.currency.id
|
|
3897
4026
|
},
|
|
3898
|
-
(o) => new
|
|
4027
|
+
(o) => new we(o.data),
|
|
3899
4028
|
n
|
|
3900
4029
|
);
|
|
3901
4030
|
}
|
|
@@ -3956,7 +4085,7 @@ class gs extends ve {
|
|
|
3956
4085
|
comment: e.comment,
|
|
3957
4086
|
not_disturb: e.notDisturb
|
|
3958
4087
|
},
|
|
3959
|
-
(n) => new
|
|
4088
|
+
(n) => new M(n.data),
|
|
3960
4089
|
t
|
|
3961
4090
|
);
|
|
3962
4091
|
}
|
|
@@ -4099,7 +4228,7 @@ class gs extends ve {
|
|
|
4099
4228
|
comment: e.comment,
|
|
4100
4229
|
...t
|
|
4101
4230
|
};
|
|
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
|
|
4231
|
+
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 M(h.data), n);
|
|
4103
4232
|
}
|
|
4104
4233
|
/**
|
|
4105
4234
|
* Устанавливает признак основного контактного лица.
|
|
@@ -4128,7 +4257,7 @@ class gs extends ve {
|
|
|
4128
4257
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
4129
4258
|
}
|
|
4130
4259
|
}
|
|
4131
|
-
class
|
|
4260
|
+
class Rs extends p {
|
|
4132
4261
|
/**
|
|
4133
4262
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
4134
4263
|
*
|
|
@@ -4142,7 +4271,7 @@ class ms extends g {
|
|
|
4142
4271
|
});
|
|
4143
4272
|
}
|
|
4144
4273
|
}
|
|
4145
|
-
class
|
|
4274
|
+
class Ds extends p {
|
|
4146
4275
|
/**
|
|
4147
4276
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
4148
4277
|
*
|
|
@@ -4170,7 +4299,7 @@ class fs extends g {
|
|
|
4170
4299
|
const n = this.get(
|
|
4171
4300
|
`internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
|
|
4172
4301
|
{ params: e },
|
|
4173
|
-
(l) => new
|
|
4302
|
+
(l) => new x(l.data)
|
|
4174
4303
|
);
|
|
4175
4304
|
return n.catch((l) => {
|
|
4176
4305
|
this.defaultInstanceNotificationErrorResponseHandler(l, t);
|
|
@@ -4213,7 +4342,7 @@ class fs extends g {
|
|
|
4213
4342
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(t = r.properties) == null ? void 0 : t.editor}/template/${e}`);
|
|
4214
4343
|
}
|
|
4215
4344
|
}
|
|
4216
|
-
class
|
|
4345
|
+
class Ps {
|
|
4217
4346
|
/**
|
|
4218
4347
|
* Возвращает Unix Timestamp диапазон дат (в секундах) по умолчанию.
|
|
4219
4348
|
*
|
|
@@ -4223,24 +4352,24 @@ class ys {
|
|
|
4223
4352
|
* Для пересчета в JavaScript Unix Timestamp значение необходимо умножить на 1000.
|
|
4224
4353
|
*/
|
|
4225
4354
|
static defaultDateRanges() {
|
|
4226
|
-
const r = [0, 6].includes(
|
|
4355
|
+
const r = [0, 6].includes(sr(pe())) ? tr(ge()) : pe();
|
|
4227
4356
|
return {
|
|
4228
4357
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
4229
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
4230
|
-
today: { label: "Сегодня", from:
|
|
4231
|
-
yesterday: { label: "Вчера", from:
|
|
4232
|
-
tomorrow: { label: "Завтра", from:
|
|
4358
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: k(ur(r)), to: k(lr(r)) },
|
|
4359
|
+
today: { label: "Сегодня", from: k(ge()), to: k(cr()) },
|
|
4360
|
+
yesterday: { label: "Вчера", from: k(or()), to: k(ir()) },
|
|
4361
|
+
tomorrow: { label: "Завтра", from: k(pe()), to: k(nr()) }
|
|
4233
4362
|
};
|
|
4234
4363
|
}
|
|
4235
4364
|
}
|
|
4236
|
-
const
|
|
4365
|
+
const F = class F {
|
|
4237
4366
|
/**
|
|
4238
4367
|
* Устанавливает список единиц измерения линейной величины.
|
|
4239
4368
|
*
|
|
4240
4369
|
* @param linearValues Список единиц измерения линейной величины.
|
|
4241
4370
|
*/
|
|
4242
4371
|
static setLinearValues(r) {
|
|
4243
|
-
|
|
4372
|
+
F.linearValues = r;
|
|
4244
4373
|
}
|
|
4245
4374
|
/**
|
|
4246
4375
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
@@ -4248,7 +4377,7 @@ const W = class W {
|
|
|
4248
4377
|
* @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
|
|
4249
4378
|
*/
|
|
4250
4379
|
static productIsMeasurable(r) {
|
|
4251
|
-
return
|
|
4380
|
+
return F.linearValues.includes(r.unit);
|
|
4252
4381
|
}
|
|
4253
4382
|
/**
|
|
4254
4383
|
* Возвращает кратность количества для указанного товара.
|
|
@@ -4257,7 +4386,7 @@ const W = class W {
|
|
|
4257
4386
|
*/
|
|
4258
4387
|
static getProductMultiplicity(r) {
|
|
4259
4388
|
var e, t;
|
|
4260
|
-
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !
|
|
4389
|
+
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !F.productIsMeasurable(r) ? r.properties.minCount : 1;
|
|
4261
4390
|
}
|
|
4262
4391
|
/**
|
|
4263
4392
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -4272,14 +4401,14 @@ const W = class W {
|
|
|
4272
4401
|
/**
|
|
4273
4402
|
* Список единиц измерения линейной величины.
|
|
4274
4403
|
*/
|
|
4275
|
-
s(
|
|
4276
|
-
let
|
|
4277
|
-
class
|
|
4404
|
+
s(F, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
4405
|
+
let Se = F;
|
|
4406
|
+
class As {
|
|
4278
4407
|
/**
|
|
4279
4408
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
4280
4409
|
*/
|
|
4281
4410
|
static generateUndefinedManagerInstance() {
|
|
4282
|
-
return new
|
|
4411
|
+
return new ue({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
|
|
4283
4412
|
}
|
|
4284
4413
|
/**
|
|
4285
4414
|
* Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
|
|
@@ -4290,19 +4419,19 @@ class ws {
|
|
|
4290
4419
|
return r.id === 0 && r.guid === "-undefined-";
|
|
4291
4420
|
}
|
|
4292
4421
|
}
|
|
4293
|
-
class
|
|
4422
|
+
class Vr extends p {
|
|
4294
4423
|
/**
|
|
4295
4424
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
4296
4425
|
*/
|
|
4297
4426
|
getManagers() {
|
|
4298
|
-
const r = "/internal/managers", e =
|
|
4427
|
+
const r = "/internal/managers", e = p.getCachedResponse(r);
|
|
4299
4428
|
return e ? Promise.resolve(e) : this.get(r).then((t) => {
|
|
4300
|
-
const n = t.data.map((o) =>
|
|
4429
|
+
const n = t.data.map((o) => Re.instanceInitializer(ue, o));
|
|
4301
4430
|
return n && this.cacheResponse(r, n), n;
|
|
4302
4431
|
});
|
|
4303
4432
|
}
|
|
4304
4433
|
}
|
|
4305
|
-
class
|
|
4434
|
+
class Er {
|
|
4306
4435
|
/**
|
|
4307
4436
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
4308
4437
|
*
|
|
@@ -4320,7 +4449,7 @@ class Wr {
|
|
|
4320
4449
|
this.name = r.name, this.content = r.content;
|
|
4321
4450
|
}
|
|
4322
4451
|
}
|
|
4323
|
-
class
|
|
4452
|
+
class _e {
|
|
4324
4453
|
/**
|
|
4325
4454
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
4326
4455
|
*
|
|
@@ -4356,10 +4485,10 @@ class $e {
|
|
|
4356
4485
|
*/
|
|
4357
4486
|
s(this, "meta");
|
|
4358
4487
|
var e;
|
|
4359
|
-
this.resourceType = new
|
|
4488
|
+
this.resourceType = new de(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 Er(t))) ?? [];
|
|
4360
4489
|
}
|
|
4361
4490
|
}
|
|
4362
|
-
class
|
|
4491
|
+
class $s extends p {
|
|
4363
4492
|
/**
|
|
4364
4493
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
4365
4494
|
*
|
|
@@ -4367,7 +4496,7 @@ class Cs extends g {
|
|
|
4367
4496
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
4368
4497
|
*/
|
|
4369
4498
|
getResourceSeoData(r, e) {
|
|
4370
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new
|
|
4499
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new _e(t.data));
|
|
4371
4500
|
}
|
|
4372
4501
|
/**
|
|
4373
4502
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -4378,7 +4507,7 @@ class Cs extends g {
|
|
|
4378
4507
|
* в случае ошибок в запросах.
|
|
4379
4508
|
*/
|
|
4380
4509
|
saveResourceSeoData(r, e = {}) {
|
|
4381
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new
|
|
4510
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (t) => new _e(t.data), e);
|
|
4382
4511
|
}
|
|
4383
4512
|
/**
|
|
4384
4513
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -4390,8 +4519,8 @@ class Cs extends g {
|
|
|
4390
4519
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
4391
4520
|
}
|
|
4392
4521
|
}
|
|
4393
|
-
const v =
|
|
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),
|
|
4522
|
+
const v = ie("__references_private", () => {
|
|
4523
|
+
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), y = w(void 0), A = w(void 0), _ = w(void 0), T = w(void 0), L = w(void 0), a = w(void 0), I = w(void 0), c = w(void 0);
|
|
4395
4524
|
return {
|
|
4396
4525
|
/**
|
|
4397
4526
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -4432,15 +4561,15 @@ const v = te("__references_private", () => {
|
|
|
4432
4561
|
/**
|
|
4433
4562
|
* Справочник типов оплаты заказов.
|
|
4434
4563
|
*/
|
|
4435
|
-
paymentTypeReference:
|
|
4564
|
+
paymentTypeReference: y,
|
|
4436
4565
|
/**
|
|
4437
4566
|
* Справочник групп партнеров.
|
|
4438
4567
|
*/
|
|
4439
|
-
partnerGroupReference:
|
|
4568
|
+
partnerGroupReference: A,
|
|
4440
4569
|
/**
|
|
4441
4570
|
* Справочник типов ресурсов.
|
|
4442
4571
|
*/
|
|
4443
|
-
resourceTypesReference:
|
|
4572
|
+
resourceTypesReference: _,
|
|
4444
4573
|
/**
|
|
4445
4574
|
* Справочник направлений продаж.
|
|
4446
4575
|
*/
|
|
@@ -4456,84 +4585,93 @@ const v = te("__references_private", () => {
|
|
|
4456
4585
|
/**
|
|
4457
4586
|
* Справочник типов свойств.
|
|
4458
4587
|
*/
|
|
4459
|
-
propertyTypesReference:
|
|
4588
|
+
propertyTypesReference: I,
|
|
4589
|
+
/**
|
|
4590
|
+
* Справочник коэффициентов цен.
|
|
4591
|
+
*/
|
|
4592
|
+
priceCoefficientsReference: c
|
|
4460
4593
|
};
|
|
4461
|
-
}),
|
|
4594
|
+
}), bs = ie("references", () => {
|
|
4462
4595
|
const i = C(() => {
|
|
4463
4596
|
const c = v();
|
|
4464
|
-
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0,
|
|
4465
|
-
c.channelPrimaryInterestReference =
|
|
4466
|
-
}).catch(
|
|
4597
|
+
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(R).getChannelPrimaryInterest().then((g) => {
|
|
4598
|
+
c.channelPrimaryInterestReference = g;
|
|
4599
|
+
}).catch(m)), c.channelPrimaryInterestReference;
|
|
4467
4600
|
}), r = C(() => {
|
|
4468
4601
|
const c = v();
|
|
4469
|
-
return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0,
|
|
4470
|
-
c.contactPositionsReference =
|
|
4471
|
-
}).catch(
|
|
4602
|
+
return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, p.getInstance(R).getContactPositions().then((g) => {
|
|
4603
|
+
c.contactPositionsReference = g;
|
|
4604
|
+
}).catch(m)), c.contactPositionsReference;
|
|
4472
4605
|
}), e = C(() => {
|
|
4473
4606
|
const c = v();
|
|
4474
|
-
return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0,
|
|
4475
|
-
c.currencyReference =
|
|
4476
|
-
}).catch(
|
|
4607
|
+
return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, p.getInstance(R).getCurrency().then((g) => {
|
|
4608
|
+
c.currencyReference = g;
|
|
4609
|
+
}).catch(m)), c.currencyReference;
|
|
4477
4610
|
}), t = C(() => {
|
|
4478
4611
|
const c = v();
|
|
4479
|
-
return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0,
|
|
4480
|
-
c.opfReference =
|
|
4481
|
-
}).catch(
|
|
4612
|
+
return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, p.getInstance(R).getOpf().then((g) => {
|
|
4613
|
+
c.opfReference = g;
|
|
4614
|
+
}).catch(m)), c.opfReference;
|
|
4482
4615
|
}), n = C(() => {
|
|
4483
4616
|
const c = v();
|
|
4484
|
-
return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0,
|
|
4485
|
-
c.orderPaymentStatusReference =
|
|
4486
|
-
}).catch(
|
|
4617
|
+
return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, p.getInstance(R).getOrderPaymentStatuses().then((g) => {
|
|
4618
|
+
c.orderPaymentStatusReference = g;
|
|
4619
|
+
}).catch(m)), c.orderPaymentStatusReference;
|
|
4487
4620
|
}), o = C(() => {
|
|
4488
4621
|
const c = v();
|
|
4489
|
-
return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0,
|
|
4490
|
-
c.orderStatusReference =
|
|
4491
|
-
}).catch(
|
|
4622
|
+
return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, p.getInstance(R).getOrderStatuses().then((g) => {
|
|
4623
|
+
c.orderStatusReference = g;
|
|
4624
|
+
}).catch(m)), c.orderStatusReference;
|
|
4492
4625
|
}), l = C(() => {
|
|
4493
4626
|
const c = v();
|
|
4494
|
-
return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0,
|
|
4495
|
-
c.paymentTypeReference =
|
|
4496
|
-
}).catch(
|
|
4627
|
+
return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, p.getInstance(R).getPaymentTypes().then((g) => {
|
|
4628
|
+
c.paymentTypeReference = g;
|
|
4629
|
+
}).catch(m)), c.paymentTypeReference;
|
|
4497
4630
|
}), u = C(() => {
|
|
4498
4631
|
const c = v();
|
|
4499
|
-
return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0,
|
|
4500
|
-
c.partnerGroupReference =
|
|
4501
|
-
}).catch(
|
|
4632
|
+
return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, p.getInstance(R).getPartnerGroup().then((g) => {
|
|
4633
|
+
c.partnerGroupReference = g;
|
|
4634
|
+
}).catch(m)), c.partnerGroupReference;
|
|
4502
4635
|
}), h = C(() => {
|
|
4503
4636
|
const c = v();
|
|
4504
|
-
return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0,
|
|
4505
|
-
c.resourceTypesReference =
|
|
4506
|
-
}).catch(
|
|
4507
|
-
}),
|
|
4637
|
+
return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, p.getInstance(R).getResourceTypes().then((g) => {
|
|
4638
|
+
c.resourceTypesReference = g;
|
|
4639
|
+
}).catch(m)), c.resourceTypesReference;
|
|
4640
|
+
}), y = C(() => {
|
|
4508
4641
|
const c = v();
|
|
4509
|
-
return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0,
|
|
4510
|
-
c.salesDirectionsReference =
|
|
4511
|
-
}).catch(
|
|
4512
|
-
}),
|
|
4642
|
+
return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, p.getInstance(R).getSalesDirections().then((g) => {
|
|
4643
|
+
c.salesDirectionsReference = g;
|
|
4644
|
+
}).catch(m)), c.salesDirectionsReference;
|
|
4645
|
+
}), A = C(() => {
|
|
4513
4646
|
const c = v();
|
|
4514
|
-
return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0,
|
|
4515
|
-
c.sourcePrimaryInterestReference =
|
|
4516
|
-
}).catch(
|
|
4517
|
-
}),
|
|
4647
|
+
return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(R).getSourcePrimaryInterest().then((g) => {
|
|
4648
|
+
c.sourcePrimaryInterestReference = g;
|
|
4649
|
+
}).catch(m)), c.sourcePrimaryInterestReference;
|
|
4650
|
+
}), _ = C(() => {
|
|
4518
4651
|
const c = v();
|
|
4519
|
-
return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0,
|
|
4520
|
-
c.deliveryTypeReference =
|
|
4521
|
-
}).catch(
|
|
4652
|
+
return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, p.getInstance(R).getDeliveryTypes().then((g) => {
|
|
4653
|
+
c.deliveryTypeReference = g;
|
|
4654
|
+
}).catch(m)), c.deliveryTypeReference;
|
|
4522
4655
|
}), T = C(() => {
|
|
4523
4656
|
const c = v();
|
|
4524
|
-
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0,
|
|
4525
|
-
c.managersList =
|
|
4526
|
-
}).catch(
|
|
4657
|
+
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, p.getInstance(Vr).getManagers().then((g) => {
|
|
4658
|
+
c.managersList = g;
|
|
4659
|
+
}).catch(m)), c.managersList;
|
|
4527
4660
|
}), L = C(() => {
|
|
4528
4661
|
const c = v();
|
|
4529
|
-
return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0,
|
|
4530
|
-
c.warehousesReference =
|
|
4531
|
-
}).catch(
|
|
4662
|
+
return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, p.getInstance(R).getWarehouses().then((g) => {
|
|
4663
|
+
c.warehousesReference = g;
|
|
4664
|
+
}).catch(m)), c.warehousesReference;
|
|
4532
4665
|
}), a = C(() => {
|
|
4533
4666
|
const c = v();
|
|
4534
|
-
return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0,
|
|
4535
|
-
c.propertyTypesReference =
|
|
4536
|
-
}).catch(
|
|
4667
|
+
return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, p.getInstance(R).getPropertyTypes().then((g) => {
|
|
4668
|
+
c.propertyTypesReference = g;
|
|
4669
|
+
}).catch(m)), c.propertyTypesReference;
|
|
4670
|
+
}), I = C(() => {
|
|
4671
|
+
const c = v();
|
|
4672
|
+
return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(R).getPriceCoefficients().then((g) => {
|
|
4673
|
+
c.priceCoefficientsReference = g;
|
|
4674
|
+
}).catch(m)), c.priceCoefficientsReference;
|
|
4537
4675
|
});
|
|
4538
4676
|
return {
|
|
4539
4677
|
/**
|
|
@@ -4575,15 +4713,15 @@ const v = te("__references_private", () => {
|
|
|
4575
4713
|
/**
|
|
4576
4714
|
* Справочник направлений продаж.
|
|
4577
4715
|
*/
|
|
4578
|
-
salesDirectionsReference:
|
|
4716
|
+
salesDirectionsReference: y,
|
|
4579
4717
|
/**
|
|
4580
4718
|
* Справочник каналов первичного интереса.
|
|
4581
4719
|
*/
|
|
4582
|
-
sourcePrimaryInterestsReference:
|
|
4720
|
+
sourcePrimaryInterestsReference: A,
|
|
4583
4721
|
/**
|
|
4584
4722
|
* Справочник типов доставки.
|
|
4585
4723
|
*/
|
|
4586
|
-
deliveryTypeReference:
|
|
4724
|
+
deliveryTypeReference: _,
|
|
4587
4725
|
/**
|
|
4588
4726
|
* Список менеджеров.
|
|
4589
4727
|
*/
|
|
@@ -4595,9 +4733,13 @@ const v = te("__references_private", () => {
|
|
|
4595
4733
|
/**
|
|
4596
4734
|
* Справочник типов свойств.
|
|
4597
4735
|
*/
|
|
4598
|
-
propertyTypesReference: a
|
|
4736
|
+
propertyTypesReference: a,
|
|
4737
|
+
/**
|
|
4738
|
+
* Справочник коэффициентов цен.
|
|
4739
|
+
*/
|
|
4740
|
+
priceCoefficientsReference: I
|
|
4599
4741
|
};
|
|
4600
|
-
}),
|
|
4742
|
+
}), Kr = ie("__user_state_private", () => {
|
|
4601
4743
|
const i = w({}), r = w(void 0);
|
|
4602
4744
|
return {
|
|
4603
4745
|
/**
|
|
@@ -4609,18 +4751,18 @@ const v = te("__references_private", () => {
|
|
|
4609
4751
|
*/
|
|
4610
4752
|
currentUser: r
|
|
4611
4753
|
};
|
|
4612
|
-
}),
|
|
4754
|
+
}), Ss = ie("user_state", () => ({
|
|
4613
4755
|
/**
|
|
4614
4756
|
* Данные о текущем пользователе.
|
|
4615
4757
|
*/
|
|
4616
4758
|
currentUser: C(() => {
|
|
4617
|
-
const r =
|
|
4618
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0,
|
|
4759
|
+
const r = Kr();
|
|
4760
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, p.getInstance(dr).getCurrentUser().then((e) => {
|
|
4619
4761
|
r.currentUser = e;
|
|
4620
|
-
}).catch(
|
|
4762
|
+
}).catch(m).finally(m)), r.currentUser;
|
|
4621
4763
|
})
|
|
4622
4764
|
}));
|
|
4623
|
-
class
|
|
4765
|
+
class _s extends p {
|
|
4624
4766
|
/**
|
|
4625
4767
|
* Возвращает подсказки по адресам.
|
|
4626
4768
|
*
|
|
@@ -4667,7 +4809,7 @@ class Ps extends g {
|
|
|
4667
4809
|
});
|
|
4668
4810
|
}
|
|
4669
4811
|
}
|
|
4670
|
-
class
|
|
4812
|
+
class Ts {
|
|
4671
4813
|
/**
|
|
4672
4814
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
4673
4815
|
*
|
|
@@ -4691,121 +4833,125 @@ class Rs {
|
|
|
4691
4833
|
}
|
|
4692
4834
|
}
|
|
4693
4835
|
export {
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
fs as
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4836
|
+
Lr as AnyReference,
|
|
4837
|
+
ss as AppBaseConfig,
|
|
4838
|
+
O as AppConfigProvider,
|
|
4839
|
+
we as BankAccount,
|
|
4840
|
+
De as BasePaginationProvider,
|
|
4841
|
+
Y as Cart,
|
|
4842
|
+
wr as CartItem,
|
|
4843
|
+
yr as CartItemBase,
|
|
4844
|
+
ts as CartProvider,
|
|
4845
|
+
os as CatalogProvider,
|
|
4846
|
+
Le as CatalogableItem,
|
|
4847
|
+
d as Category,
|
|
4848
|
+
qr as CategoryPricingRole,
|
|
4849
|
+
Oe as ChannelPrimaryInterest,
|
|
4850
|
+
is as City,
|
|
4851
|
+
re as CityWithRegionAndCountry,
|
|
4852
|
+
be as Client,
|
|
4853
|
+
Fr as ClientAdditionalData,
|
|
4854
|
+
ee as ClientCategory,
|
|
4855
|
+
vs as ClientDataProvider,
|
|
4856
|
+
le as ClientProduct,
|
|
4857
|
+
us as ClientProductCategoryDataProvider,
|
|
4858
|
+
ps as ClientProductDataProvider,
|
|
4859
|
+
Pe as ClientShortInfo,
|
|
4860
|
+
Gr as ClientsAdditionalDataRequestTypeEnum,
|
|
4861
|
+
fs as ClientsListFilters,
|
|
4862
|
+
Ds as ConfiguratorProvider,
|
|
4863
|
+
Ce as Contact,
|
|
4864
|
+
_r as ContactLinks,
|
|
4865
|
+
M as ContactPerson,
|
|
4866
|
+
Br as ContactPersonRelated,
|
|
4867
|
+
ar as ContactPosition,
|
|
4868
|
+
he as ContactRelation,
|
|
4869
|
+
Ge as ContragentBase,
|
|
4870
|
+
te as ContragentFactory,
|
|
4871
|
+
Me as ContragentIc,
|
|
4872
|
+
Mr as ContragentPerson,
|
|
4873
|
+
Hr as ContragentUlNr,
|
|
4874
|
+
He as ContragentUlR,
|
|
4875
|
+
xe as CostSourceEnum,
|
|
4876
|
+
E as Country,
|
|
4877
|
+
se as Currency,
|
|
4878
|
+
_s as DataSuggestionProvider,
|
|
4879
|
+
ws as DataTablePagination,
|
|
4880
|
+
jr as DataTablePaginationRequestParams,
|
|
4881
|
+
Cs as DataTableSortRequestParams,
|
|
4882
|
+
Ps as DateTimeProvider,
|
|
4883
|
+
$r as DeletableNamedIdentity,
|
|
4884
|
+
ne as DeliveryAddress,
|
|
4885
|
+
V as DeliveryType,
|
|
4886
|
+
Cr as DeviceTypeResolutionConfig,
|
|
4887
|
+
br as DiscountShortInfo,
|
|
4888
|
+
Ts as FieldValidationResultData,
|
|
4889
|
+
ze as FilterOpEnum,
|
|
4890
|
+
Ie as GeoCoordinates,
|
|
4891
|
+
mr as HiddenCatalogableItem,
|
|
4892
|
+
ye as HttpBaseCachedRequester,
|
|
4893
|
+
fe as HttpBaseRequester,
|
|
4894
|
+
vr as HttpParamsConfig,
|
|
4895
|
+
p as HttpRequester,
|
|
4896
|
+
K as Identity,
|
|
4897
|
+
fr as Image,
|
|
4898
|
+
ue as Manager,
|
|
4899
|
+
Z as ManagerCommon,
|
|
4900
|
+
As as ManagerDataFactory,
|
|
4901
|
+
Vr as ManagerDataProvider,
|
|
4902
|
+
Er as MetaTagItem,
|
|
4903
|
+
P as NamedIdentity,
|
|
4904
|
+
q as Opf,
|
|
4905
|
+
$ as OpfEnum,
|
|
4906
|
+
zr as Order,
|
|
4907
|
+
We as OrderInfo,
|
|
4908
|
+
Ir as OrderPaymentStatus,
|
|
4909
|
+
Wr as OrderProduct,
|
|
4910
|
+
Be as OrderShortInfo,
|
|
4911
|
+
xr as OrderStatus,
|
|
4912
|
+
ys as OrdersDataProvider,
|
|
4770
4913
|
G as PartnerGroup,
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4914
|
+
kr as PaymentType,
|
|
4915
|
+
ns as PreferencesStorageProvider,
|
|
4916
|
+
Ar as PriceCoefficientEnum,
|
|
4917
|
+
Sr as PriceTemplate,
|
|
4918
|
+
B as PricingRole,
|
|
4919
|
+
hs as PricingRoleProvider,
|
|
4920
|
+
me as PrimaryCatalogableItem,
|
|
4921
|
+
x as Product,
|
|
4922
|
+
cs as ProductCategoryDataProvider,
|
|
4923
|
+
ls as ProductDataProvider,
|
|
4924
|
+
ve as ProductPriceCoefficient,
|
|
4925
|
+
Ur as ProductPriceHistory,
|
|
4926
|
+
gs as PropertiesProvider,
|
|
4927
|
+
J as Property,
|
|
4928
|
+
Ne as PropertyType,
|
|
4929
|
+
Pr as PropertyTypeEnum,
|
|
4930
|
+
H as PropertyValue,
|
|
4931
|
+
ms as RecommendationsDataProvider,
|
|
4932
|
+
$e as RecommendationsList,
|
|
4933
|
+
f as Reference,
|
|
4934
|
+
R as ReferenceDataProvider,
|
|
4935
|
+
Q as Region,
|
|
4936
|
+
de as ResourceType,
|
|
4937
|
+
S as SalesDirection,
|
|
4938
|
+
Rr as SentryConfig,
|
|
4939
|
+
_e as Seo,
|
|
4940
|
+
$s as SeoDataProvider,
|
|
4941
|
+
Ue as SourcePrimaryInterest,
|
|
4942
|
+
gr as StockCount,
|
|
4943
|
+
Re as TypedInstanceFactory,
|
|
4944
|
+
Se as UnitsHelper,
|
|
4945
|
+
Rs as UnknownClientDataProvider,
|
|
4946
|
+
ke as UpdatableNamedIdentity,
|
|
4947
|
+
Or as User,
|
|
4948
|
+
qe as UserCommonInfo,
|
|
4949
|
+
dr as UserDataProvider,
|
|
4950
|
+
U as UserShortInfo,
|
|
4951
|
+
Nr as UserTypeEnum,
|
|
4952
|
+
Dr as VersionConfig,
|
|
4953
|
+
ce as Warehouse,
|
|
4954
|
+
bs as useReferencesStore,
|
|
4955
|
+
Ss as useUserStateStore
|
|
4810
4956
|
};
|
|
4811
4957
|
//# sourceMappingURL=sc-common-lib.js.map
|