@snabcentr/common-lib 1.37.2 → 1.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +1 -1
- package/dist/release_notes.tmp +3 -3
- package/dist/sc-common-lib.js +673 -493
- 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.d.ts +2 -2
- package/dist/src/catalog/classes/product.d.ts.map +1 -1
- package/dist/src/catalog/classes/property-type.d.ts +3 -2
- package/dist/src/catalog/classes/property-type.d.ts.map +1 -1
- package/dist/src/catalog/enums/index.d.ts +2 -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/enums/property-type-enum.d.ts +38 -0
- package/dist/src/catalog/enums/property-type-enum.d.ts.map +1 -0
- package/dist/src/catalog/interfaces/i-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.d.ts +2 -2
- package/dist/src/catalog/interfaces/i-product.d.ts.map +1 -1
- package/dist/src/catalog/interfaces/i-property-type.d.ts +3 -2
- package/dist/src/catalog/interfaces/i-property-type.d.ts.map +1 -1
- package/dist/src/catalog/interfaces/index.d.ts +5 -1
- package/dist/src/catalog/interfaces/index.d.ts.map +1 -1
- package/dist/src/catalog/providers/catalog-provider.d.ts +10 -0
- package/dist/src/catalog/providers/catalog-provider.d.ts.map +1 -1
- package/dist/src/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/opf.d.ts +2 -1
- package/dist/src/references/classes/opf.d.ts.map +1 -1
- 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 +10 -0
- package/dist/src/references/providers/reference-data-provider.d.ts.map +1 -1
- package/dist/src/states/references-store.d.ts +27 -1
- package/dist/src/states/references-store.d.ts.map +1 -1
- package/dist/src/system/classes/reference.d.ts +2 -2
- package/dist/src/system/classes/reference.d.ts.map +1 -1
- package/dist/src/system/interfaces/i-reference.d.ts +2 -2
- package/dist/src/system/interfaces/i-reference.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/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 d, 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 F {
|
|
|
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 R extends F {
|
|
|
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 R {
|
|
|
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 R {
|
|
|
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 te 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 lr {
|
|
|
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 q = class q {
|
|
|
261
263
|
/**
|
|
262
264
|
* Конфигурация приложения.
|
|
263
265
|
*/
|
|
264
|
-
s(
|
|
265
|
-
let N =
|
|
266
|
-
class
|
|
266
|
+
s(W, "config");
|
|
267
|
+
let N = W;
|
|
268
|
+
class mr extends Le {
|
|
267
269
|
/**
|
|
268
270
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
269
271
|
*
|
|
@@ -278,7 +280,7 @@ class ur 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 pr {
|
|
|
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,12 +376,12 @@ class I extends ur {
|
|
|
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 = N.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
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -389,7 +391,7 @@ class I extends ur {
|
|
|
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 hr extends F {
|
|
|
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 gr extends hr {
|
|
|
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 mr {
|
|
|
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 fr {
|
|
|
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 yr {
|
|
|
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 wr {
|
|
|
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 Yr {
|
|
|
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",
|
|
721
|
+
s(this, "defaultInstanceNotificationErrorResponseHandler", m);
|
|
720
722
|
const t = N.getConfig().version;
|
|
721
|
-
this.defaultInstanceNotificationErrorResponseHandler =
|
|
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
|
*
|
|
@@ -864,7 +866,7 @@ const H = class H 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 H = class H 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 H = class H 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,9 +902,9 @@ const H = class H 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
|
*/
|
|
@@ -912,7 +914,7 @@ class g extends ge {
|
|
|
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 Kr 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 Kr 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 Kr 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 Kr 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 O extends oe {
|
|
1020
1022
|
/**
|
|
1021
1023
|
* Инициализирует экземпляр класса {@link Category}.
|
|
1022
1024
|
*
|
|
@@ -1033,10 +1035,10 @@ class k 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 O(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 Ie extends R {
|
|
|
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 Cr extends Ie {
|
|
|
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) ? d(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 Xr {
|
|
|
1077
1079
|
if (e)
|
|
1078
1080
|
try {
|
|
1079
1081
|
const t = JSON.parse(e);
|
|
1080
|
-
if (
|
|
1082
|
+
if (rr(d(t.availableFor) || ge(), /* @__PURE__ */ new Date()))
|
|
1081
1083
|
return t.data || {};
|
|
1082
1084
|
} catch {
|
|
1083
1085
|
localStorage.removeItem(r);
|
|
@@ -1100,7 +1102,7 @@ class Xr {
|
|
|
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 O extends R {
|
|
|
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 vr extends R {
|
|
|
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) ? d(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) ? d(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 Dr extends Ie {
|
|
|
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) ? d(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 ne 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 Pr {
|
|
|
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 Y extends R {
|
|
|
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 Y extends R {
|
|
|
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 ie extends Y {
|
|
|
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 Rr 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 K extends Rr {
|
|
|
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 j extends R {
|
|
|
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 V 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 X 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 Z extends R {
|
|
|
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,23 +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);
|
|
1589
|
+
}
|
|
1590
|
+
/**
|
|
1591
|
+
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
1592
|
+
*/
|
|
1593
|
+
getPropertyTypes() {
|
|
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);
|
|
1587
1601
|
}
|
|
1588
1602
|
}
|
|
1589
|
-
var
|
|
1590
|
-
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 {
|
|
1591
1605
|
/**
|
|
1592
1606
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1593
1607
|
*
|
|
@@ -1623,10 +1637,10 @@ class Ne extends R {
|
|
|
1623
1637
|
* Признак активности учетной записи пользователя.
|
|
1624
1638
|
*/
|
|
1625
1639
|
s(this, "isActive");
|
|
1626
|
-
this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new
|
|
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) ? d(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = D(e == null ? void 0 : e.lastLoginAt) ? d(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1627
1641
|
}
|
|
1628
1642
|
}
|
|
1629
|
-
class
|
|
1643
|
+
class Or extends qe {
|
|
1630
1644
|
/**
|
|
1631
1645
|
* Инициализирует экземпляр класса {@link User}.
|
|
1632
1646
|
*
|
|
@@ -1649,16 +1663,16 @@ class Ir extends Ne {
|
|
|
1649
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;
|
|
1650
1664
|
}
|
|
1651
1665
|
}
|
|
1652
|
-
class
|
|
1666
|
+
class dr extends p {
|
|
1653
1667
|
/**
|
|
1654
1668
|
* Возвращает данные о текущем пользователе.
|
|
1655
1669
|
*/
|
|
1656
1670
|
// eslint-disable-next-line class-methods-use-this
|
|
1657
1671
|
getCurrentUser() {
|
|
1658
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
1672
|
+
return this.get("/internal/users/info", {}, (r) => new Or(r.data));
|
|
1659
1673
|
}
|
|
1660
1674
|
}
|
|
1661
|
-
class
|
|
1675
|
+
class Ur {
|
|
1662
1676
|
/**
|
|
1663
1677
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
1664
1678
|
*
|
|
@@ -1701,10 +1715,10 @@ class kr {
|
|
|
1701
1715
|
* Данные о валюте.
|
|
1702
1716
|
*/
|
|
1703
1717
|
s(this, "currency");
|
|
1704
|
-
this.cost = r.cost, this.costDate = r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new
|
|
1718
|
+
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 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;
|
|
1705
1719
|
}
|
|
1706
1720
|
}
|
|
1707
|
-
class
|
|
1721
|
+
class $e {
|
|
1708
1722
|
/**
|
|
1709
1723
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
1710
1724
|
*
|
|
@@ -1719,10 +1733,55 @@ class Re {
|
|
|
1719
1733
|
* Список рекомендованных категорий продуктов.
|
|
1720
1734
|
*/
|
|
1721
1735
|
s(this, "productCategories", []);
|
|
1722
|
-
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 O(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);
|
|
1723
1782
|
}
|
|
1724
1783
|
}
|
|
1725
|
-
class
|
|
1784
|
+
class os extends p {
|
|
1726
1785
|
/**
|
|
1727
1786
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
1728
1787
|
*
|
|
@@ -1737,8 +1796,22 @@ class es extends g {
|
|
|
1737
1796
|
show_hidden: e
|
|
1738
1797
|
});
|
|
1739
1798
|
}
|
|
1799
|
+
/**
|
|
1800
|
+
* Возвращает ссылку для скачивания файла с ценами.
|
|
1801
|
+
*
|
|
1802
|
+
* @param format Формат скачиваемого файла прайс-листа.
|
|
1803
|
+
* @param showHidden Признак того, что необходимо включить в ответ скрытые продукты.
|
|
1804
|
+
* @param clientId Идентификатор клиента для которого необходимо получить файл.
|
|
1805
|
+
*
|
|
1806
|
+
* @see /doc/api/internal#/operations/api_internal_price_export
|
|
1807
|
+
*/
|
|
1808
|
+
// eslint-disable-next-line class-methods-use-this
|
|
1809
|
+
getPriceExportLink(r = "csv", e = !1, t = void 0) {
|
|
1810
|
+
let o = `${N.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
|
|
1811
|
+
return t && (o += `&client_id=${t}`), o;
|
|
1812
|
+
}
|
|
1740
1813
|
}
|
|
1741
|
-
class
|
|
1814
|
+
class cs extends p {
|
|
1742
1815
|
/**
|
|
1743
1816
|
* Возвращает список данных о корневых категориях.
|
|
1744
1817
|
*
|
|
@@ -1752,7 +1825,7 @@ class rs extends g {
|
|
|
1752
1825
|
{
|
|
1753
1826
|
showHidden: r
|
|
1754
1827
|
},
|
|
1755
|
-
(e) => e.data.map((t) => new
|
|
1828
|
+
(e) => e.data.map((t) => new O(t))
|
|
1756
1829
|
);
|
|
1757
1830
|
}
|
|
1758
1831
|
/**
|
|
@@ -1771,7 +1844,7 @@ class rs extends g {
|
|
|
1771
1844
|
showHidden: e,
|
|
1772
1845
|
withNestedCategories: t
|
|
1773
1846
|
},
|
|
1774
|
-
(n) => new
|
|
1847
|
+
(n) => new O(n.data)
|
|
1775
1848
|
);
|
|
1776
1849
|
}
|
|
1777
1850
|
/**
|
|
@@ -1780,7 +1853,7 @@ class rs extends g {
|
|
|
1780
1853
|
* @param categoryID Идентификатор категории продуктов.
|
|
1781
1854
|
*/
|
|
1782
1855
|
getPublicCategoryData(r) {
|
|
1783
|
-
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new
|
|
1856
|
+
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new O(e.data));
|
|
1784
1857
|
}
|
|
1785
1858
|
/**
|
|
1786
1859
|
* Возвращает список продуктов категории.
|
|
@@ -1798,7 +1871,7 @@ class rs extends g {
|
|
|
1798
1871
|
showHidden: t,
|
|
1799
1872
|
withPriceCoefficients: e
|
|
1800
1873
|
},
|
|
1801
|
-
(n) =>
|
|
1874
|
+
(n) => X(n.data, (o) => new x(o))
|
|
1802
1875
|
);
|
|
1803
1876
|
}
|
|
1804
1877
|
/**
|
|
@@ -1810,8 +1883,8 @@ class rs extends g {
|
|
|
1810
1883
|
*/
|
|
1811
1884
|
getCategoryProductsCoefficients(r) {
|
|
1812
1885
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
1813
|
-
const t =
|
|
1814
|
-
return
|
|
1886
|
+
const { data: t } = e;
|
|
1887
|
+
return Ke(t, (n) => n.map((o) => new ve(o))), t;
|
|
1815
1888
|
});
|
|
1816
1889
|
}
|
|
1817
1890
|
/**
|
|
@@ -1823,14 +1896,14 @@ class rs extends g {
|
|
|
1823
1896
|
publicSimpleSearch(r, e = 10) {
|
|
1824
1897
|
return new Promise((t, n) => {
|
|
1825
1898
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
1826
|
-
t(o.categories.map((l) => new
|
|
1899
|
+
t(o.categories.map((l) => new O(l)));
|
|
1827
1900
|
}).catch((o) => {
|
|
1828
1901
|
n(o);
|
|
1829
1902
|
});
|
|
1830
1903
|
});
|
|
1831
1904
|
}
|
|
1832
1905
|
}
|
|
1833
|
-
class
|
|
1906
|
+
class ls extends p {
|
|
1834
1907
|
/**
|
|
1835
1908
|
* Возвращает данные об указанном продукте.
|
|
1836
1909
|
*
|
|
@@ -1840,7 +1913,7 @@ class ss extends g {
|
|
|
1840
1913
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
1841
1914
|
*/
|
|
1842
1915
|
getProductData(r, e = !1) {
|
|
1843
|
-
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));
|
|
1844
1917
|
}
|
|
1845
1918
|
/**
|
|
1846
1919
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -1848,7 +1921,7 @@ class ss extends g {
|
|
|
1848
1921
|
* @param productId Идентификатор продукта.
|
|
1849
1922
|
*/
|
|
1850
1923
|
getPublicProductData(r) {
|
|
1851
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
1924
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new x(e.data));
|
|
1852
1925
|
}
|
|
1853
1926
|
/**
|
|
1854
1927
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -1858,7 +1931,11 @@ class ss extends g {
|
|
|
1858
1931
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_coefficients_get
|
|
1859
1932
|
*/
|
|
1860
1933
|
getProductPriceCoefficients(r) {
|
|
1861
|
-
return this.get(
|
|
1934
|
+
return this.get(
|
|
1935
|
+
`/internal/catalog/products/${r}/coefficients`,
|
|
1936
|
+
{},
|
|
1937
|
+
(e) => X(e.data, (t) => new ve(t))
|
|
1938
|
+
);
|
|
1862
1939
|
}
|
|
1863
1940
|
/**
|
|
1864
1941
|
* Возвращает данные об истории изменения цен для указанного продукта.
|
|
@@ -1870,7 +1947,7 @@ class ss extends g {
|
|
|
1870
1947
|
*/
|
|
1871
1948
|
getProductPriceHistory(r, e) {
|
|
1872
1949
|
const t = {};
|
|
1873
|
-
return
|
|
1950
|
+
return Je(e) || (t.clientId = e), this.get(`/internal/price/products/${r}/history`, t, (n) => X(n.data, (o) => new Ur(o)));
|
|
1874
1951
|
}
|
|
1875
1952
|
/**
|
|
1876
1953
|
* Выполняет публичный поиск данных о продуктах по терму.
|
|
@@ -1881,14 +1958,14 @@ class ss extends g {
|
|
|
1881
1958
|
publicSimpleSearch(r, e = 10) {
|
|
1882
1959
|
return new Promise((t, n) => {
|
|
1883
1960
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
1884
|
-
t(o.products.map((l) => new
|
|
1961
|
+
t(o.products.map((l) => new x(l)));
|
|
1885
1962
|
}).catch((o) => {
|
|
1886
1963
|
n(o);
|
|
1887
1964
|
});
|
|
1888
1965
|
});
|
|
1889
1966
|
}
|
|
1890
1967
|
}
|
|
1891
|
-
class
|
|
1968
|
+
class us extends p {
|
|
1892
1969
|
/**
|
|
1893
1970
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
1894
1971
|
*
|
|
@@ -1904,7 +1981,7 @@ class ts extends g {
|
|
|
1904
1981
|
clientId: r,
|
|
1905
1982
|
showHidden: e
|
|
1906
1983
|
},
|
|
1907
|
-
(t) => t.data.map((n) => new
|
|
1984
|
+
(t) => t.data.map((n) => new ee(n))
|
|
1908
1985
|
);
|
|
1909
1986
|
}
|
|
1910
1987
|
/**
|
|
@@ -1925,7 +2002,7 @@ class ts extends g {
|
|
|
1925
2002
|
showHidden: t,
|
|
1926
2003
|
withNestedCategories: n
|
|
1927
2004
|
},
|
|
1928
|
-
(o) => new
|
|
2005
|
+
(o) => new ee(o.data)
|
|
1929
2006
|
);
|
|
1930
2007
|
}
|
|
1931
2008
|
/**
|
|
@@ -1946,11 +2023,11 @@ class ts extends g {
|
|
|
1946
2023
|
showHidden: n,
|
|
1947
2024
|
withPriceCoefficients: t
|
|
1948
2025
|
},
|
|
1949
|
-
(o) =>
|
|
2026
|
+
(o) => X(o.data, (l) => new le(l))
|
|
1950
2027
|
);
|
|
1951
2028
|
}
|
|
1952
2029
|
}
|
|
1953
|
-
class
|
|
2030
|
+
class ps extends p {
|
|
1954
2031
|
/**
|
|
1955
2032
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
1956
2033
|
*
|
|
@@ -1967,11 +2044,83 @@ class ns extends g {
|
|
|
1967
2044
|
clientId: e,
|
|
1968
2045
|
withPriceCoefficients: t
|
|
1969
2046
|
},
|
|
1970
|
-
(n) => new
|
|
2047
|
+
(n) => new le(n.data)
|
|
1971
2048
|
);
|
|
1972
2049
|
}
|
|
1973
2050
|
}
|
|
1974
|
-
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 {
|
|
1975
2124
|
/**
|
|
1976
2125
|
* Получает пагинированный список данных.
|
|
1977
2126
|
*
|
|
@@ -1987,12 +2136,12 @@ class ve extends g {
|
|
|
1987
2136
|
page: (n == null ? void 0 : n.page) ?? 1,
|
|
1988
2137
|
per_page: (n == null ? void 0 : n.pageSize) ?? (n == null ? void 0 : n.perPage) ?? 10
|
|
1989
2138
|
};
|
|
1990
|
-
return e && (u.filters = JSON.stringify(e)),
|
|
1991
|
-
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;
|
|
1992
2141
|
}), this.get(r, u, o, l);
|
|
1993
2142
|
}
|
|
1994
2143
|
}
|
|
1995
|
-
class
|
|
2144
|
+
class gs extends De {
|
|
1996
2145
|
/**
|
|
1997
2146
|
* Возвращает пагинированный список свойств.
|
|
1998
2147
|
*
|
|
@@ -2004,7 +2153,7 @@ class is extends ve {
|
|
|
2004
2153
|
getProperties(r, e, t) {
|
|
2005
2154
|
return this.getPaginated("/internal/catalog/properties", r, e, t, (n) => {
|
|
2006
2155
|
const o = { ...n.data };
|
|
2007
|
-
return o.data = o.data.map((l) => new
|
|
2156
|
+
return o.data = o.data.map((l) => new J(l)), o;
|
|
2008
2157
|
});
|
|
2009
2158
|
}
|
|
2010
2159
|
/**
|
|
@@ -2021,7 +2170,7 @@ class is extends ve {
|
|
|
2021
2170
|
...t,
|
|
2022
2171
|
type: e
|
|
2023
2172
|
},
|
|
2024
|
-
(n) => new
|
|
2173
|
+
(n) => new J(n.data)
|
|
2025
2174
|
);
|
|
2026
2175
|
}
|
|
2027
2176
|
/**
|
|
@@ -2031,7 +2180,7 @@ class is extends ve {
|
|
|
2031
2180
|
* @see /doc/api/internal#/operations/api_internal_catalog_properties_get
|
|
2032
2181
|
*/
|
|
2033
2182
|
getProperty(r) {
|
|
2034
|
-
return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new
|
|
2183
|
+
return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new J(e.data));
|
|
2035
2184
|
}
|
|
2036
2185
|
/**
|
|
2037
2186
|
* Обновляет существующее свойство.
|
|
@@ -2048,7 +2197,7 @@ class is extends ve {
|
|
|
2048
2197
|
...n,
|
|
2049
2198
|
type: t
|
|
2050
2199
|
},
|
|
2051
|
-
(o) => new
|
|
2200
|
+
(o) => new J(o.data)
|
|
2052
2201
|
);
|
|
2053
2202
|
}
|
|
2054
2203
|
/**
|
|
@@ -2067,7 +2216,7 @@ class is extends ve {
|
|
|
2067
2216
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
|
|
2068
2217
|
*/
|
|
2069
2218
|
getProductProperties(r) {
|
|
2070
|
-
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)));
|
|
2071
2220
|
}
|
|
2072
2221
|
/**
|
|
2073
2222
|
* Возвращает значение свойства продукта.
|
|
@@ -2077,7 +2226,7 @@ class is extends ve {
|
|
|
2077
2226
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
|
|
2078
2227
|
*/
|
|
2079
2228
|
getProductProperty(r, e) {
|
|
2080
|
-
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));
|
|
2081
2230
|
}
|
|
2082
2231
|
/**
|
|
2083
2232
|
* Обновляет значение свойства продукта.
|
|
@@ -2088,7 +2237,7 @@ class is extends ve {
|
|
|
2088
2237
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
|
|
2089
2238
|
*/
|
|
2090
2239
|
updateProductProperty(r, e, t) {
|
|
2091
|
-
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));
|
|
2092
2241
|
}
|
|
2093
2242
|
/**
|
|
2094
2243
|
* Удаляет значение свойства продукта.
|
|
@@ -2191,7 +2340,7 @@ class is extends ve {
|
|
|
2191
2340
|
*
|
|
2192
2341
|
* @param productId Идентификатор продукта.
|
|
2193
2342
|
* @param fileId Идентификатор файла.
|
|
2194
|
-
* @see /doc/api/internal#/operations/
|
|
2343
|
+
* @see /doc/api/internal#/operations/api_internal_catalog_products_slug_save
|
|
2195
2344
|
*/
|
|
2196
2345
|
deleteProductFile(r, e) {
|
|
2197
2346
|
return this.delete(`/internal/catalog/products/${r}/properties/files/${e}`);
|
|
@@ -2213,7 +2362,7 @@ class is extends ve {
|
|
|
2213
2362
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
|
|
2214
2363
|
*/
|
|
2215
2364
|
getCategoryProperties(r) {
|
|
2216
|
-
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)));
|
|
2217
2366
|
}
|
|
2218
2367
|
/**
|
|
2219
2368
|
* Возвращает значение свойства категории.
|
|
@@ -2223,7 +2372,7 @@ class is extends ve {
|
|
|
2223
2372
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
|
|
2224
2373
|
*/
|
|
2225
2374
|
getCategoryProperty(r, e) {
|
|
2226
|
-
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));
|
|
2227
2376
|
}
|
|
2228
2377
|
/**
|
|
2229
2378
|
* Обновляет значение свойства категории.
|
|
@@ -2234,7 +2383,7 @@ class is extends ve {
|
|
|
2234
2383
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
|
|
2235
2384
|
*/
|
|
2236
2385
|
updateCategoryProperty(r, e, t) {
|
|
2237
|
-
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));
|
|
2238
2387
|
}
|
|
2239
2388
|
/**
|
|
2240
2389
|
* Удаляет значение свойства категории.
|
|
@@ -2347,20 +2496,20 @@ class is extends ve {
|
|
|
2347
2496
|
*
|
|
2348
2497
|
* @param categoryId Идентификатор категории.
|
|
2349
2498
|
* @param slug Новый URL-slug.
|
|
2350
|
-
* @see /doc/api/internal#/operations/
|
|
2499
|
+
* @see /doc/api/internal#/operations/api_internal_catalog_categories_slug_save
|
|
2351
2500
|
*/
|
|
2352
2501
|
updateCategorySlug(r, e) {
|
|
2353
2502
|
return this.patch(`/internal/catalog/categories/${r}/properties/slug`, { slug: e });
|
|
2354
2503
|
}
|
|
2355
2504
|
}
|
|
2356
|
-
class
|
|
2505
|
+
class ms extends p {
|
|
2357
2506
|
/**
|
|
2358
2507
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
2359
2508
|
*
|
|
2360
2509
|
* @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
|
|
2361
2510
|
*/
|
|
2362
2511
|
getProductCategoryRecommendations(r) {
|
|
2363
|
-
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));
|
|
2364
2513
|
}
|
|
2365
2514
|
/**
|
|
2366
2515
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -2368,7 +2517,7 @@ class os extends g {
|
|
|
2368
2517
|
* @param product Данные о продукте, для которого необходимо получить рекомендации.
|
|
2369
2518
|
*/
|
|
2370
2519
|
getProductRecommendations(r) {
|
|
2371
|
-
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));
|
|
2372
2521
|
}
|
|
2373
2522
|
/**
|
|
2374
2523
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -2395,8 +2544,8 @@ class os extends g {
|
|
|
2395
2544
|
});
|
|
2396
2545
|
}
|
|
2397
2546
|
}
|
|
2398
|
-
var
|
|
2399
|
-
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 {
|
|
2400
2549
|
/**
|
|
2401
2550
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
2402
2551
|
*
|
|
@@ -2423,11 +2572,11 @@ class me extends F {
|
|
|
2423
2572
|
/**
|
|
2424
2573
|
* Данные о валюте.
|
|
2425
2574
|
*/
|
|
2426
|
-
s(this, "currency", new
|
|
2427
|
-
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new
|
|
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));
|
|
2428
2577
|
}
|
|
2429
2578
|
}
|
|
2430
|
-
class
|
|
2579
|
+
class Ce extends P {
|
|
2431
2580
|
/**
|
|
2432
2581
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
2433
2582
|
*
|
|
@@ -2446,7 +2595,7 @@ class fe extends R {
|
|
|
2446
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;
|
|
2447
2596
|
}
|
|
2448
2597
|
}
|
|
2449
|
-
class
|
|
2598
|
+
class M extends Ce {
|
|
2450
2599
|
/**
|
|
2451
2600
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
2452
2601
|
*
|
|
@@ -2481,7 +2630,7 @@ class U extends fe {
|
|
|
2481
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;
|
|
2482
2631
|
}
|
|
2483
2632
|
}
|
|
2484
|
-
class
|
|
2633
|
+
class Ge extends P {
|
|
2485
2634
|
/**
|
|
2486
2635
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
2487
2636
|
*
|
|
@@ -2493,15 +2642,15 @@ class Oe extends R {
|
|
|
2493
2642
|
/**
|
|
2494
2643
|
* Данные о менеджере.
|
|
2495
2644
|
*/
|
|
2496
|
-
s(this, "manager", new
|
|
2645
|
+
s(this, "manager", new Z());
|
|
2497
2646
|
/**
|
|
2498
2647
|
* Данные об организационно-правовой форме.
|
|
2499
2648
|
*/
|
|
2500
|
-
s(this, "opf",
|
|
2649
|
+
s(this, "opf", q.generatePersonItem());
|
|
2501
2650
|
/**
|
|
2502
2651
|
* Направление продаж.
|
|
2503
2652
|
*/
|
|
2504
|
-
s(this, "salesDirection", new
|
|
2653
|
+
s(this, "salesDirection", new S());
|
|
2505
2654
|
/**
|
|
2506
2655
|
* Группа партнеров (направление деятельности).
|
|
2507
2656
|
*/
|
|
@@ -2539,22 +2688,22 @@ class Oe extends R {
|
|
|
2539
2688
|
*/
|
|
2540
2689
|
s(this, "updater");
|
|
2541
2690
|
if (e) {
|
|
2542
|
-
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) {
|
|
2543
2692
|
const t = [];
|
|
2544
2693
|
e.contacts.forEach((n) => {
|
|
2545
|
-
t.push(new
|
|
2694
|
+
t.push(new M(n));
|
|
2546
2695
|
}), this.contacts = t;
|
|
2547
2696
|
}
|
|
2548
2697
|
if (e.bankAccounts) {
|
|
2549
2698
|
const t = [];
|
|
2550
2699
|
e.bankAccounts.forEach((n) => {
|
|
2551
|
-
t.push(new
|
|
2700
|
+
t.push(new we(n));
|
|
2552
2701
|
}), this.bankAccounts = t;
|
|
2553
2702
|
}
|
|
2554
2703
|
}
|
|
2555
2704
|
}
|
|
2556
2705
|
}
|
|
2557
|
-
class
|
|
2706
|
+
class Mr extends Ge {
|
|
2558
2707
|
/**
|
|
2559
2708
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
2560
2709
|
*
|
|
@@ -2564,7 +2713,7 @@ class Nr extends Oe {
|
|
|
2564
2713
|
super(r);
|
|
2565
2714
|
}
|
|
2566
2715
|
}
|
|
2567
|
-
class
|
|
2716
|
+
class Me extends Ge {
|
|
2568
2717
|
/**
|
|
2569
2718
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
2570
2719
|
*
|
|
@@ -2607,7 +2756,7 @@ class de extends Oe {
|
|
|
2607
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 ?? "");
|
|
2608
2757
|
}
|
|
2609
2758
|
}
|
|
2610
|
-
class
|
|
2759
|
+
class He extends Me {
|
|
2611
2760
|
/**
|
|
2612
2761
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
2613
2762
|
*
|
|
@@ -2622,7 +2771,7 @@ class Ge extends de {
|
|
|
2622
2771
|
e && (this.kpp = e.kpp ?? "");
|
|
2623
2772
|
}
|
|
2624
2773
|
}
|
|
2625
|
-
class
|
|
2774
|
+
class Hr extends He {
|
|
2626
2775
|
/**
|
|
2627
2776
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
2628
2777
|
*
|
|
@@ -2633,7 +2782,7 @@ class Or extends Ge {
|
|
|
2633
2782
|
/**
|
|
2634
2783
|
* Страна регистрации юридического лица нерезидента.
|
|
2635
2784
|
*/
|
|
2636
|
-
s(this, "registrationCountry", new
|
|
2785
|
+
s(this, "registrationCountry", new E());
|
|
2637
2786
|
/**
|
|
2638
2787
|
* Регистрационный номер юридического лица нерезидента.
|
|
2639
2788
|
*/
|
|
@@ -2642,10 +2791,10 @@ class Or extends Ge {
|
|
|
2642
2791
|
* Налоговый номер юридического лица нерезидента.
|
|
2643
2792
|
*/
|
|
2644
2793
|
s(this, "taxNumber", "");
|
|
2645
|
-
e && (this.registrationCountry = new
|
|
2794
|
+
e && (this.registrationCountry = new E(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
2646
2795
|
}
|
|
2647
2796
|
}
|
|
2648
|
-
class
|
|
2797
|
+
class te {
|
|
2649
2798
|
/**
|
|
2650
2799
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
2651
2800
|
*
|
|
@@ -2653,18 +2802,18 @@ class ee {
|
|
|
2653
2802
|
*/
|
|
2654
2803
|
static createInstance(r) {
|
|
2655
2804
|
switch (r.opf.slug) {
|
|
2656
|
-
case
|
|
2657
|
-
return new
|
|
2658
|
-
case
|
|
2659
|
-
return new
|
|
2660
|
-
case
|
|
2661
|
-
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);
|
|
2662
2811
|
default:
|
|
2663
|
-
return new
|
|
2812
|
+
return new Mr(r);
|
|
2664
2813
|
}
|
|
2665
2814
|
}
|
|
2666
2815
|
}
|
|
2667
|
-
class
|
|
2816
|
+
class Pe extends qe {
|
|
2668
2817
|
/**
|
|
2669
2818
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2670
2819
|
*
|
|
@@ -2706,10 +2855,10 @@ class De extends Ne {
|
|
|
2706
2855
|
* Список менеджеров клиента.
|
|
2707
2856
|
*/
|
|
2708
2857
|
s(this, "managers");
|
|
2709
|
-
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))) ?? [];
|
|
2710
2859
|
}
|
|
2711
2860
|
}
|
|
2712
|
-
class
|
|
2861
|
+
class he extends K {
|
|
2713
2862
|
/**
|
|
2714
2863
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
2715
2864
|
*
|
|
@@ -2724,7 +2873,7 @@ class le extends F {
|
|
|
2724
2873
|
this.isPrimary = e.isPrimary;
|
|
2725
2874
|
}
|
|
2726
2875
|
}
|
|
2727
|
-
class
|
|
2876
|
+
class Br extends M {
|
|
2728
2877
|
/**
|
|
2729
2878
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
2730
2879
|
*
|
|
@@ -2749,10 +2898,10 @@ class dr extends U {
|
|
|
2749
2898
|
*/
|
|
2750
2899
|
addresses: []
|
|
2751
2900
|
});
|
|
2752
|
-
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))));
|
|
2753
2902
|
}
|
|
2754
2903
|
}
|
|
2755
|
-
class
|
|
2904
|
+
class ne extends $r {
|
|
2756
2905
|
/**
|
|
2757
2906
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
2758
2907
|
*
|
|
@@ -2789,10 +2938,10 @@ class re extends Cr {
|
|
|
2789
2938
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
2790
2939
|
*/
|
|
2791
2940
|
s(this, "isTransportCompanyAddress");
|
|
2792
|
-
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;
|
|
2793
2942
|
}
|
|
2794
2943
|
}
|
|
2795
|
-
class
|
|
2944
|
+
class be extends Pe {
|
|
2796
2945
|
/**
|
|
2797
2946
|
* Инициализирует экземпляр класса {@link Client}.
|
|
2798
2947
|
*
|
|
@@ -2846,10 +2995,10 @@ class Ae extends De {
|
|
|
2846
2995
|
* Дополнительные данные о клиенте.
|
|
2847
2996
|
*/
|
|
2848
2997
|
s(this, "extraData");
|
|
2849
|
-
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) ?? {};
|
|
2850
2999
|
}
|
|
2851
3000
|
}
|
|
2852
|
-
class
|
|
3001
|
+
class fs {
|
|
2853
3002
|
/**
|
|
2854
3003
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
2855
3004
|
*
|
|
@@ -2947,13 +3096,13 @@ class cs {
|
|
|
2947
3096
|
*/
|
|
2948
3097
|
s(this, "lastOrder");
|
|
2949
3098
|
var e, t, n, o, l, u, h;
|
|
2950
|
-
this.id = (r == null ? void 0 : r.id) ?? "", this.name = (r == null ? void 0 : r.name) ?? "", this.alternativeName = (r == null ? void 0 : r.alternativeName) ?? "", this.city = new
|
|
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 = {
|
|
2951
3100
|
from: ((e = r == null ? void 0 : r.createdAt) == null ? void 0 : e.from) ?? null,
|
|
2952
3101
|
to: ((t = r == null ? void 0 : r.createdAt) == null ? void 0 : t.to) ?? null
|
|
2953
3102
|
}, this.lastLoginDate = {
|
|
2954
3103
|
from: ((n = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : n.from) ?? null,
|
|
2955
3104
|
to: ((o = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : o.to) ?? null
|
|
2956
|
-
}, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((
|
|
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 = {
|
|
2957
3106
|
createdAt: (l = r == null ? void 0 : r.lastOrder) == null ? void 0 : l.createdAt,
|
|
2958
3107
|
creator: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.creator,
|
|
2959
3108
|
isApproved: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.isApproved
|
|
@@ -2975,10 +3124,10 @@ class cs {
|
|
|
2975
3124
|
this[r] = "";
|
|
2976
3125
|
break;
|
|
2977
3126
|
case "city":
|
|
2978
|
-
this.city = new
|
|
3127
|
+
this.city = new re();
|
|
2979
3128
|
break;
|
|
2980
3129
|
case "region":
|
|
2981
|
-
this.region = new
|
|
3130
|
+
this.region = new Q();
|
|
2982
3131
|
break;
|
|
2983
3132
|
case "isActive":
|
|
2984
3133
|
this.isActive = !0;
|
|
@@ -2999,13 +3148,13 @@ class cs {
|
|
|
2999
3148
|
this.managers = [];
|
|
3000
3149
|
break;
|
|
3001
3150
|
case "salesDirection":
|
|
3002
|
-
this.salesDirection = new
|
|
3151
|
+
this.salesDirection = new S();
|
|
3003
3152
|
break;
|
|
3004
3153
|
case "contragentType":
|
|
3005
|
-
this.contragentType = new
|
|
3154
|
+
this.contragentType = new q();
|
|
3006
3155
|
break;
|
|
3007
3156
|
case "preferredDeliveryType":
|
|
3008
|
-
this.preferredDeliveryType = new
|
|
3157
|
+
this.preferredDeliveryType = new V();
|
|
3009
3158
|
break;
|
|
3010
3159
|
case "partnerGroup":
|
|
3011
3160
|
this.partnerGroup = new G();
|
|
@@ -3014,7 +3163,7 @@ class cs {
|
|
|
3014
3163
|
this.hasCostLessThenStop = void 0;
|
|
3015
3164
|
break;
|
|
3016
3165
|
case "contact":
|
|
3017
|
-
this.contact = new
|
|
3166
|
+
this.contact = new Ce();
|
|
3018
3167
|
break;
|
|
3019
3168
|
}
|
|
3020
3169
|
return this;
|
|
@@ -3029,11 +3178,11 @@ class cs {
|
|
|
3029
3178
|
return Object.keys(this).forEach((l) => {
|
|
3030
3179
|
const u = this[l];
|
|
3031
3180
|
// eslint-disable-next-line prettier/prettier
|
|
3032
|
-
|
|
3181
|
+
Te(u) || D(u) && u.trim().length === 0 || Xe(u.isNewRec) && u.isNewRec() || (r[l] = u);
|
|
3033
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;
|
|
3034
3183
|
}
|
|
3035
3184
|
}
|
|
3036
|
-
class
|
|
3185
|
+
class Be extends K {
|
|
3037
3186
|
/**
|
|
3038
3187
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
3039
3188
|
*
|
|
@@ -3053,17 +3202,17 @@ class Ue extends F {
|
|
|
3053
3202
|
* Признак того, что заказ подтвержден в 1С.
|
|
3054
3203
|
*/
|
|
3055
3204
|
s(this, "isApproved1c");
|
|
3056
|
-
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;
|
|
3057
3206
|
}
|
|
3058
3207
|
}
|
|
3059
|
-
class
|
|
3208
|
+
class We extends Be {
|
|
3060
3209
|
/**
|
|
3061
3210
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
3062
3211
|
*
|
|
3063
3212
|
* @param data Данные для первоначальной инициализации.
|
|
3064
3213
|
*/
|
|
3065
3214
|
constructor(e) {
|
|
3066
|
-
var t, n, o, l, u, h,
|
|
3215
|
+
var t, n, o, l, u, h, y, A;
|
|
3067
3216
|
super(e);
|
|
3068
3217
|
/**
|
|
3069
3218
|
* Краткие данные о клиенте.
|
|
@@ -3105,19 +3254,19 @@ class Me extends Ue {
|
|
|
3105
3254
|
* Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
|
|
3106
3255
|
*/
|
|
3107
3256
|
s(this, "isNotInStock");
|
|
3108
|
-
this.client = new
|
|
3257
|
+
this.client = new Pe(e == null ? void 0 : e.client), this.payment = {
|
|
3109
3258
|
type: ((t = e == null ? void 0 : e.payment) == null ? void 0 : t.type) ?? -1,
|
|
3110
3259
|
status: ((n = e == null ? void 0 : e.payment) == null ? void 0 : n.status) ?? -1,
|
|
3111
3260
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
3112
3261
|
}, this.delivery = {
|
|
3113
3262
|
type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
|
|
3114
|
-
date:
|
|
3115
|
-
address: (
|
|
3116
|
-
warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new
|
|
3117
|
-
}, 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;
|
|
3118
3267
|
}
|
|
3119
3268
|
}
|
|
3120
|
-
class
|
|
3269
|
+
class Wr extends K {
|
|
3121
3270
|
/**
|
|
3122
3271
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
3123
3272
|
*
|
|
@@ -3197,10 +3346,10 @@ class Gr extends F {
|
|
|
3197
3346
|
* который соответствует указанной ширине. Количество не ограничено.
|
|
3198
3347
|
*/
|
|
3199
3348
|
s(this, "sawing");
|
|
3200
|
-
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;
|
|
3201
3350
|
}
|
|
3202
3351
|
}
|
|
3203
|
-
class
|
|
3352
|
+
class zr extends We {
|
|
3204
3353
|
/**
|
|
3205
3354
|
* Инициализирует экземпляр класса {@link Order}.
|
|
3206
3355
|
*
|
|
@@ -3240,10 +3389,10 @@ class Ur extends Me {
|
|
|
3240
3389
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
3241
3390
|
*/
|
|
3242
3391
|
s(this, "isAllowProcessingWithoutPayment");
|
|
3243
|
-
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;
|
|
3244
3393
|
}
|
|
3245
3394
|
}
|
|
3246
|
-
class
|
|
3395
|
+
class ys extends De {
|
|
3247
3396
|
/**
|
|
3248
3397
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
3249
3398
|
*
|
|
@@ -3255,7 +3404,7 @@ class ls extends ve {
|
|
|
3255
3404
|
getOrders(r, e, t) {
|
|
3256
3405
|
return this.getPaginated("/internal/orders", r, e ? [e] : void 0, t, (n) => {
|
|
3257
3406
|
const o = { ...n.data };
|
|
3258
|
-
return o.data = o.data.map((l) => new
|
|
3407
|
+
return o.data = o.data.map((l) => new We(l)), o;
|
|
3259
3408
|
});
|
|
3260
3409
|
}
|
|
3261
3410
|
/**
|
|
@@ -3273,10 +3422,10 @@ class ls extends ve {
|
|
|
3273
3422
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
3274
3423
|
*/
|
|
3275
3424
|
getOrder(r) {
|
|
3276
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
3425
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new zr(e.data));
|
|
3277
3426
|
}
|
|
3278
3427
|
}
|
|
3279
|
-
class
|
|
3428
|
+
class Fr extends P {
|
|
3280
3429
|
/**
|
|
3281
3430
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
3282
3431
|
*
|
|
@@ -3301,11 +3450,11 @@ class Mr extends R {
|
|
|
3301
3450
|
* Данные о последнем заказе клиента.
|
|
3302
3451
|
*/
|
|
3303
3452
|
s(this, "lastOrder");
|
|
3304
|
-
(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));
|
|
3305
3454
|
}
|
|
3306
3455
|
}
|
|
3307
|
-
var
|
|
3308
|
-
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 {
|
|
3309
3458
|
/**
|
|
3310
3459
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
3311
3460
|
*
|
|
@@ -3329,7 +3478,7 @@ class qr {
|
|
|
3329
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;
|
|
3330
3479
|
}
|
|
3331
3480
|
}
|
|
3332
|
-
class
|
|
3481
|
+
class ws extends jr {
|
|
3333
3482
|
/**
|
|
3334
3483
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
3335
3484
|
*
|
|
@@ -3360,7 +3509,7 @@ class us extends qr {
|
|
|
3360
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;
|
|
3361
3510
|
}
|
|
3362
3511
|
}
|
|
3363
|
-
class
|
|
3512
|
+
class Cs {
|
|
3364
3513
|
/**
|
|
3365
3514
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
3366
3515
|
*
|
|
@@ -3378,7 +3527,7 @@ class ps {
|
|
|
3378
3527
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
3379
3528
|
}
|
|
3380
3529
|
}
|
|
3381
|
-
class
|
|
3530
|
+
class vs extends De {
|
|
3382
3531
|
/**
|
|
3383
3532
|
* Возвращает данные об указанном клиенте.
|
|
3384
3533
|
*
|
|
@@ -3386,7 +3535,7 @@ class hs extends ve {
|
|
|
3386
3535
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
3387
3536
|
*/
|
|
3388
3537
|
getClient(r) {
|
|
3389
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
3538
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new be(e.data));
|
|
3390
3539
|
}
|
|
3391
3540
|
/**
|
|
3392
3541
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -3399,7 +3548,7 @@ class hs extends ve {
|
|
|
3399
3548
|
getClientsList(r, e, t) {
|
|
3400
3549
|
return this.getPaginated("/internal/clients", r, e, t, (n) => {
|
|
3401
3550
|
const o = { ...n.data };
|
|
3402
|
-
return o.data = o.data.map((l) => new
|
|
3551
|
+
return o.data = o.data.map((l) => new Pe(l)), o;
|
|
3403
3552
|
});
|
|
3404
3553
|
}
|
|
3405
3554
|
/**
|
|
@@ -3412,7 +3561,7 @@ class hs extends ve {
|
|
|
3412
3561
|
return this.getClientsList({
|
|
3413
3562
|
groupOp: "and",
|
|
3414
3563
|
groups: [],
|
|
3415
|
-
filters: [{ field: "phone", op:
|
|
3564
|
+
filters: [{ field: "phone", op: ze.Contains, value: r }]
|
|
3416
3565
|
});
|
|
3417
3566
|
}
|
|
3418
3567
|
/**
|
|
@@ -3425,7 +3574,7 @@ class hs extends ve {
|
|
|
3425
3574
|
getAdditionalClientsData(r, e) {
|
|
3426
3575
|
return this.post("/internal/clients/additional-data", { clients: r, requested_data_types: e }, (t) => {
|
|
3427
3576
|
let n = [];
|
|
3428
|
-
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;
|
|
3429
3578
|
});
|
|
3430
3579
|
}
|
|
3431
3580
|
/**
|
|
@@ -3437,7 +3586,7 @@ class hs extends ve {
|
|
|
3437
3586
|
getAllClientContacts(r) {
|
|
3438
3587
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
3439
3588
|
let t = [];
|
|
3440
|
-
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;
|
|
3441
3590
|
});
|
|
3442
3591
|
}
|
|
3443
3592
|
/**
|
|
@@ -3467,7 +3616,7 @@ class hs extends ve {
|
|
|
3467
3616
|
is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
|
|
3468
3617
|
preferred_warehouse_id: (t = r.preferredWarehouse) == null ? void 0 : t.id
|
|
3469
3618
|
},
|
|
3470
|
-
(n) => new
|
|
3619
|
+
(n) => new be(n.data),
|
|
3471
3620
|
e
|
|
3472
3621
|
);
|
|
3473
3622
|
}
|
|
@@ -3577,17 +3726,17 @@ class hs extends ve {
|
|
|
3577
3726
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
|
|
3578
3727
|
*/
|
|
3579
3728
|
createContragentClientData(r, e, t = {}) {
|
|
3580
|
-
var h,
|
|
3729
|
+
var h, y, A, _, T, L, a, I;
|
|
3581
3730
|
let n;
|
|
3582
3731
|
const o = e, l = e, u = e;
|
|
3583
3732
|
switch (e.opf.slug) {
|
|
3584
|
-
case
|
|
3733
|
+
case $.Ic:
|
|
3585
3734
|
n = {
|
|
3586
3735
|
opf: o.opf.slug,
|
|
3587
3736
|
name: o.name,
|
|
3588
3737
|
alternative_name: o.alternativeName,
|
|
3589
3738
|
partner_group_id: (h = o.partnerGroup) == null ? void 0 : h.id,
|
|
3590
|
-
manager_id: (
|
|
3739
|
+
manager_id: (y = o.manager) == null ? void 0 : y.id,
|
|
3591
3740
|
comment: o.comment,
|
|
3592
3741
|
inn: o.inn,
|
|
3593
3742
|
okpo: o.okpo,
|
|
@@ -3599,13 +3748,13 @@ class hs extends ve {
|
|
|
3599
3748
|
actual_address: o.actualAddress
|
|
3600
3749
|
};
|
|
3601
3750
|
break;
|
|
3602
|
-
case
|
|
3751
|
+
case $.UlR:
|
|
3603
3752
|
n = {
|
|
3604
3753
|
opf: l.opf.slug,
|
|
3605
3754
|
name: l.name,
|
|
3606
3755
|
alternative_name: l.alternativeName,
|
|
3607
3756
|
partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
|
|
3608
|
-
manager_id: (
|
|
3757
|
+
manager_id: (_ = l.manager) == null ? void 0 : _.id,
|
|
3609
3758
|
comment: l.comment,
|
|
3610
3759
|
inn: l.inn,
|
|
3611
3760
|
kpp: l.kpp,
|
|
@@ -3618,7 +3767,7 @@ class hs extends ve {
|
|
|
3618
3767
|
actual_address: l.actualAddress
|
|
3619
3768
|
};
|
|
3620
3769
|
break;
|
|
3621
|
-
case
|
|
3770
|
+
case $.UlNr:
|
|
3622
3771
|
n = {
|
|
3623
3772
|
opf: u.opf.slug,
|
|
3624
3773
|
name: u.name,
|
|
@@ -3645,8 +3794,8 @@ class hs extends ve {
|
|
|
3645
3794
|
opf: e.opf.slug,
|
|
3646
3795
|
name: e.name,
|
|
3647
3796
|
alternative_name: e.alternativeName,
|
|
3648
|
-
partner_group_id: (
|
|
3649
|
-
manager_id: (
|
|
3797
|
+
partner_group_id: (a = e.partnerGroup) == null ? void 0 : a.id,
|
|
3798
|
+
manager_id: (I = e.manager) == null ? void 0 : I.id,
|
|
3650
3799
|
comment: e.comment
|
|
3651
3800
|
};
|
|
3652
3801
|
break;
|
|
@@ -3654,7 +3803,7 @@ class hs extends ve {
|
|
|
3654
3803
|
return this.post(
|
|
3655
3804
|
`/internal/clients/${r}/contragents`,
|
|
3656
3805
|
n,
|
|
3657
|
-
(
|
|
3806
|
+
(c) => te.createInstance(c.data),
|
|
3658
3807
|
t
|
|
3659
3808
|
);
|
|
3660
3809
|
}
|
|
@@ -3669,17 +3818,17 @@ class hs extends ve {
|
|
|
3669
3818
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
|
|
3670
3819
|
*/
|
|
3671
3820
|
updateContragentClientData(r, e, t = {}) {
|
|
3672
|
-
var h,
|
|
3821
|
+
var h, y, A, _, T, L, a, I;
|
|
3673
3822
|
let n;
|
|
3674
3823
|
const o = e, l = e, u = e;
|
|
3675
3824
|
switch (e.opf.slug) {
|
|
3676
|
-
case
|
|
3825
|
+
case $.Ic:
|
|
3677
3826
|
n = {
|
|
3678
3827
|
opf: o.opf.slug,
|
|
3679
3828
|
name: o.name,
|
|
3680
3829
|
alternative_name: o.alternativeName,
|
|
3681
3830
|
partner_group_id: (h = o.partnerGroup) == null ? void 0 : h.id,
|
|
3682
|
-
manager_id: (
|
|
3831
|
+
manager_id: (y = o.manager) == null ? void 0 : y.id,
|
|
3683
3832
|
comment: o.comment,
|
|
3684
3833
|
inn: o.inn,
|
|
3685
3834
|
okpo: o.okpo,
|
|
@@ -3691,13 +3840,13 @@ class hs extends ve {
|
|
|
3691
3840
|
actual_address: o.actualAddress
|
|
3692
3841
|
};
|
|
3693
3842
|
break;
|
|
3694
|
-
case
|
|
3843
|
+
case $.UlR:
|
|
3695
3844
|
n = {
|
|
3696
3845
|
opf: l.opf.slug,
|
|
3697
3846
|
name: l.name,
|
|
3698
3847
|
alternative_name: l.alternativeName,
|
|
3699
3848
|
partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
|
|
3700
|
-
manager_id: (
|
|
3849
|
+
manager_id: (_ = l.manager) == null ? void 0 : _.id,
|
|
3701
3850
|
comment: l.comment,
|
|
3702
3851
|
inn: l.inn,
|
|
3703
3852
|
kpp: l.kpp,
|
|
@@ -3710,7 +3859,7 @@ class hs extends ve {
|
|
|
3710
3859
|
actual_address: l.actualAddress
|
|
3711
3860
|
};
|
|
3712
3861
|
break;
|
|
3713
|
-
case
|
|
3862
|
+
case $.UlNr:
|
|
3714
3863
|
n = {
|
|
3715
3864
|
opf: u.opf.slug,
|
|
3716
3865
|
name: u.name,
|
|
@@ -3737,8 +3886,8 @@ class hs extends ve {
|
|
|
3737
3886
|
opf: e.opf.slug,
|
|
3738
3887
|
name: e.name,
|
|
3739
3888
|
alternative_name: e.alternativeName,
|
|
3740
|
-
partner_group_id: (
|
|
3741
|
-
manager_id: (
|
|
3889
|
+
partner_group_id: (a = e.partnerGroup) == null ? void 0 : a.id,
|
|
3890
|
+
manager_id: (I = e.manager) == null ? void 0 : I.id,
|
|
3742
3891
|
comment: e.comment
|
|
3743
3892
|
};
|
|
3744
3893
|
break;
|
|
@@ -3746,7 +3895,7 @@ class hs extends ve {
|
|
|
3746
3895
|
return this.patch(
|
|
3747
3896
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
3748
3897
|
n,
|
|
3749
|
-
(
|
|
3898
|
+
(c) => te.createInstance(c.data),
|
|
3750
3899
|
t
|
|
3751
3900
|
);
|
|
3752
3901
|
}
|
|
@@ -3784,7 +3933,7 @@ class hs extends ve {
|
|
|
3784
3933
|
}), e.operatingHours && (n.operating_hours = {
|
|
3785
3934
|
from: e.operatingHours.from,
|
|
3786
3935
|
to: e.operatingHours.to
|
|
3787
|
-
}), 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);
|
|
3788
3937
|
}
|
|
3789
3938
|
/**
|
|
3790
3939
|
* Обновляет данные об адресе доставки клиента.
|
|
@@ -3813,7 +3962,7 @@ class hs extends ve {
|
|
|
3813
3962
|
}), this.patch(
|
|
3814
3963
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
3815
3964
|
n,
|
|
3816
|
-
(u) => new
|
|
3965
|
+
(u) => new ne(u.data),
|
|
3817
3966
|
t
|
|
3818
3967
|
);
|
|
3819
3968
|
}
|
|
@@ -3849,7 +3998,7 @@ class hs extends ve {
|
|
|
3849
3998
|
correspondent_account: t.correspondentAccount,
|
|
3850
3999
|
currency_id: t.currency.id
|
|
3851
4000
|
},
|
|
3852
|
-
(o) => new
|
|
4001
|
+
(o) => new we(o.data),
|
|
3853
4002
|
n
|
|
3854
4003
|
);
|
|
3855
4004
|
}
|
|
@@ -3875,7 +4024,7 @@ class hs extends ve {
|
|
|
3875
4024
|
correspondent_account: t.correspondentAccount,
|
|
3876
4025
|
currency_id: t.currency.id
|
|
3877
4026
|
},
|
|
3878
|
-
(o) => new
|
|
4027
|
+
(o) => new we(o.data),
|
|
3879
4028
|
n
|
|
3880
4029
|
);
|
|
3881
4030
|
}
|
|
@@ -3936,7 +4085,7 @@ class hs extends ve {
|
|
|
3936
4085
|
comment: e.comment,
|
|
3937
4086
|
not_disturb: e.notDisturb
|
|
3938
4087
|
},
|
|
3939
|
-
(n) => new
|
|
4088
|
+
(n) => new M(n.data),
|
|
3940
4089
|
t
|
|
3941
4090
|
);
|
|
3942
4091
|
}
|
|
@@ -4079,7 +4228,7 @@ class hs extends ve {
|
|
|
4079
4228
|
comment: e.comment,
|
|
4080
4229
|
...t
|
|
4081
4230
|
};
|
|
4082
|
-
return (l = e.phone) != null && l.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new
|
|
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);
|
|
4083
4232
|
}
|
|
4084
4233
|
/**
|
|
4085
4234
|
* Устанавливает признак основного контактного лица.
|
|
@@ -4108,7 +4257,7 @@ class hs extends ve {
|
|
|
4108
4257
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
4109
4258
|
}
|
|
4110
4259
|
}
|
|
4111
|
-
class
|
|
4260
|
+
class Rs extends p {
|
|
4112
4261
|
/**
|
|
4113
4262
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
4114
4263
|
*
|
|
@@ -4122,7 +4271,7 @@ class gs extends g {
|
|
|
4122
4271
|
});
|
|
4123
4272
|
}
|
|
4124
4273
|
}
|
|
4125
|
-
class
|
|
4274
|
+
class Ds extends p {
|
|
4126
4275
|
/**
|
|
4127
4276
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
4128
4277
|
*
|
|
@@ -4150,7 +4299,7 @@ class ms extends g {
|
|
|
4150
4299
|
const n = this.get(
|
|
4151
4300
|
`internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
|
|
4152
4301
|
{ params: e },
|
|
4153
|
-
(l) => new
|
|
4302
|
+
(l) => new x(l.data)
|
|
4154
4303
|
);
|
|
4155
4304
|
return n.catch((l) => {
|
|
4156
4305
|
this.defaultInstanceNotificationErrorResponseHandler(l, t);
|
|
@@ -4193,7 +4342,7 @@ class ms extends g {
|
|
|
4193
4342
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(t = r.properties) == null ? void 0 : t.editor}/template/${e}`);
|
|
4194
4343
|
}
|
|
4195
4344
|
}
|
|
4196
|
-
class
|
|
4345
|
+
class Ps {
|
|
4197
4346
|
/**
|
|
4198
4347
|
* Возвращает Unix Timestamp диапазон дат (в секундах) по умолчанию.
|
|
4199
4348
|
*
|
|
@@ -4203,24 +4352,24 @@ class fs {
|
|
|
4203
4352
|
* Для пересчета в JavaScript Unix Timestamp значение необходимо умножить на 1000.
|
|
4204
4353
|
*/
|
|
4205
4354
|
static defaultDateRanges() {
|
|
4206
|
-
const r = [0, 6].includes(
|
|
4355
|
+
const r = [0, 6].includes(sr(pe())) ? tr(ge()) : pe();
|
|
4207
4356
|
return {
|
|
4208
4357
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
4209
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
4210
|
-
today: { label: "Сегодня", from:
|
|
4211
|
-
yesterday: { label: "Вчера", from:
|
|
4212
|
-
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()) }
|
|
4213
4362
|
};
|
|
4214
4363
|
}
|
|
4215
4364
|
}
|
|
4216
|
-
const
|
|
4365
|
+
const F = class F {
|
|
4217
4366
|
/**
|
|
4218
4367
|
* Устанавливает список единиц измерения линейной величины.
|
|
4219
4368
|
*
|
|
4220
4369
|
* @param linearValues Список единиц измерения линейной величины.
|
|
4221
4370
|
*/
|
|
4222
4371
|
static setLinearValues(r) {
|
|
4223
|
-
|
|
4372
|
+
F.linearValues = r;
|
|
4224
4373
|
}
|
|
4225
4374
|
/**
|
|
4226
4375
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
@@ -4228,7 +4377,7 @@ const E = class E {
|
|
|
4228
4377
|
* @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
|
|
4229
4378
|
*/
|
|
4230
4379
|
static productIsMeasurable(r) {
|
|
4231
|
-
return
|
|
4380
|
+
return F.linearValues.includes(r.unit);
|
|
4232
4381
|
}
|
|
4233
4382
|
/**
|
|
4234
4383
|
* Возвращает кратность количества для указанного товара.
|
|
@@ -4237,7 +4386,7 @@ const E = class E {
|
|
|
4237
4386
|
*/
|
|
4238
4387
|
static getProductMultiplicity(r) {
|
|
4239
4388
|
var e, t;
|
|
4240
|
-
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;
|
|
4241
4390
|
}
|
|
4242
4391
|
/**
|
|
4243
4392
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -4252,14 +4401,14 @@ const E = class E {
|
|
|
4252
4401
|
/**
|
|
4253
4402
|
* Список единиц измерения линейной величины.
|
|
4254
4403
|
*/
|
|
4255
|
-
s(
|
|
4256
|
-
let
|
|
4257
|
-
class
|
|
4404
|
+
s(F, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
4405
|
+
let Se = F;
|
|
4406
|
+
class As {
|
|
4258
4407
|
/**
|
|
4259
4408
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
4260
4409
|
*/
|
|
4261
4410
|
static generateUndefinedManagerInstance() {
|
|
4262
|
-
return new
|
|
4411
|
+
return new ue({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
|
|
4263
4412
|
}
|
|
4264
4413
|
/**
|
|
4265
4414
|
* Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
|
|
@@ -4270,14 +4419,14 @@ class ys {
|
|
|
4270
4419
|
return r.id === 0 && r.guid === "-undefined-";
|
|
4271
4420
|
}
|
|
4272
4421
|
}
|
|
4273
|
-
class
|
|
4422
|
+
class Vr extends p {
|
|
4274
4423
|
/**
|
|
4275
4424
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
4276
4425
|
*/
|
|
4277
4426
|
getManagers() {
|
|
4278
|
-
const r = "/internal/managers", e =
|
|
4427
|
+
const r = "/internal/managers", e = p.getCachedResponse(r);
|
|
4279
4428
|
return e ? Promise.resolve(e) : this.get(r).then((t) => {
|
|
4280
|
-
const n = t.data.map((o) =>
|
|
4429
|
+
const n = t.data.map((o) => Re.instanceInitializer(ue, o));
|
|
4281
4430
|
return n && this.cacheResponse(r, n), n;
|
|
4282
4431
|
});
|
|
4283
4432
|
}
|
|
@@ -4300,7 +4449,7 @@ class Er {
|
|
|
4300
4449
|
this.name = r.name, this.content = r.content;
|
|
4301
4450
|
}
|
|
4302
4451
|
}
|
|
4303
|
-
class
|
|
4452
|
+
class _e {
|
|
4304
4453
|
/**
|
|
4305
4454
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
4306
4455
|
*
|
|
@@ -4336,10 +4485,10 @@ class $e {
|
|
|
4336
4485
|
*/
|
|
4337
4486
|
s(this, "meta");
|
|
4338
4487
|
var e;
|
|
4339
|
-
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))) ?? [];
|
|
4340
4489
|
}
|
|
4341
4490
|
}
|
|
4342
|
-
class
|
|
4491
|
+
class $s extends p {
|
|
4343
4492
|
/**
|
|
4344
4493
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
4345
4494
|
*
|
|
@@ -4347,7 +4496,7 @@ class ws extends g {
|
|
|
4347
4496
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
4348
4497
|
*/
|
|
4349
4498
|
getResourceSeoData(r, e) {
|
|
4350
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new
|
|
4499
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (t) => new _e(t.data));
|
|
4351
4500
|
}
|
|
4352
4501
|
/**
|
|
4353
4502
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -4358,7 +4507,7 @@ class ws extends g {
|
|
|
4358
4507
|
* в случае ошибок в запросах.
|
|
4359
4508
|
*/
|
|
4360
4509
|
saveResourceSeoData(r, e = {}) {
|
|
4361
|
-
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);
|
|
4362
4511
|
}
|
|
4363
4512
|
/**
|
|
4364
4513
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -4370,8 +4519,8 @@ class ws extends g {
|
|
|
4370
4519
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
4371
4520
|
}
|
|
4372
4521
|
}
|
|
4373
|
-
const v =
|
|
4374
|
-
const i = w({}), r = w(void 0), e = w(void 0), t = w(void 0), n = w(void 0), o = w(void 0), l = w(void 0), u = w(void 0), h = w(void 0),
|
|
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);
|
|
4375
4524
|
return {
|
|
4376
4525
|
/**
|
|
4377
4526
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -4412,7 +4561,7 @@ const v = se("__references_private", () => {
|
|
|
4412
4561
|
/**
|
|
4413
4562
|
* Справочник типов оплаты заказов.
|
|
4414
4563
|
*/
|
|
4415
|
-
paymentTypeReference:
|
|
4564
|
+
paymentTypeReference: y,
|
|
4416
4565
|
/**
|
|
4417
4566
|
* Справочник групп партнеров.
|
|
4418
4567
|
*/
|
|
@@ -4420,7 +4569,7 @@ const v = se("__references_private", () => {
|
|
|
4420
4569
|
/**
|
|
4421
4570
|
* Справочник типов ресурсов.
|
|
4422
4571
|
*/
|
|
4423
|
-
resourceTypesReference:
|
|
4572
|
+
resourceTypesReference: _,
|
|
4424
4573
|
/**
|
|
4425
4574
|
* Справочник направлений продаж.
|
|
4426
4575
|
*/
|
|
@@ -4432,79 +4581,97 @@ const v = se("__references_private", () => {
|
|
|
4432
4581
|
/**
|
|
4433
4582
|
* Справочник складов.
|
|
4434
4583
|
*/
|
|
4435
|
-
warehousesReference:
|
|
4584
|
+
warehousesReference: a,
|
|
4585
|
+
/**
|
|
4586
|
+
* Справочник типов свойств.
|
|
4587
|
+
*/
|
|
4588
|
+
propertyTypesReference: I,
|
|
4589
|
+
/**
|
|
4590
|
+
* Справочник коэффициентов цен.
|
|
4591
|
+
*/
|
|
4592
|
+
priceCoefficientsReference: c
|
|
4436
4593
|
};
|
|
4437
|
-
}),
|
|
4594
|
+
}), bs = ie("references", () => {
|
|
4438
4595
|
const i = C(() => {
|
|
4439
4596
|
const c = v();
|
|
4440
|
-
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0,
|
|
4441
|
-
c.channelPrimaryInterestReference =
|
|
4442
|
-
}).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;
|
|
4443
4600
|
}), r = C(() => {
|
|
4444
4601
|
const c = v();
|
|
4445
|
-
return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0,
|
|
4446
|
-
c.contactPositionsReference =
|
|
4447
|
-
}).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;
|
|
4448
4605
|
}), e = C(() => {
|
|
4449
4606
|
const c = v();
|
|
4450
|
-
return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0,
|
|
4451
|
-
c.currencyReference =
|
|
4452
|
-
}).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;
|
|
4453
4610
|
}), t = C(() => {
|
|
4454
4611
|
const c = v();
|
|
4455
|
-
return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0,
|
|
4456
|
-
c.opfReference =
|
|
4457
|
-
}).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;
|
|
4458
4615
|
}), n = C(() => {
|
|
4459
4616
|
const c = v();
|
|
4460
|
-
return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0,
|
|
4461
|
-
c.orderPaymentStatusReference =
|
|
4462
|
-
}).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;
|
|
4463
4620
|
}), o = C(() => {
|
|
4464
4621
|
const c = v();
|
|
4465
|
-
return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0,
|
|
4466
|
-
c.orderStatusReference =
|
|
4467
|
-
}).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;
|
|
4468
4625
|
}), l = C(() => {
|
|
4469
4626
|
const c = v();
|
|
4470
|
-
return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0,
|
|
4471
|
-
c.paymentTypeReference =
|
|
4472
|
-
}).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;
|
|
4473
4630
|
}), u = C(() => {
|
|
4474
4631
|
const c = v();
|
|
4475
|
-
return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0,
|
|
4476
|
-
c.partnerGroupReference =
|
|
4477
|
-
}).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;
|
|
4478
4635
|
}), h = C(() => {
|
|
4479
4636
|
const c = v();
|
|
4480
|
-
return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0,
|
|
4481
|
-
c.resourceTypesReference =
|
|
4482
|
-
}).catch(
|
|
4483
|
-
}),
|
|
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(() => {
|
|
4484
4641
|
const c = v();
|
|
4485
|
-
return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0,
|
|
4486
|
-
c.salesDirectionsReference =
|
|
4487
|
-
}).catch(
|
|
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;
|
|
4488
4645
|
}), A = C(() => {
|
|
4489
4646
|
const c = v();
|
|
4490
|
-
return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0,
|
|
4491
|
-
c.sourcePrimaryInterestReference =
|
|
4492
|
-
}).catch(
|
|
4493
|
-
}),
|
|
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(() => {
|
|
4494
4651
|
const c = v();
|
|
4495
|
-
return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0,
|
|
4496
|
-
c.deliveryTypeReference =
|
|
4497
|
-
}).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;
|
|
4498
4655
|
}), T = C(() => {
|
|
4499
4656
|
const c = v();
|
|
4500
|
-
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0,
|
|
4501
|
-
c.managersList =
|
|
4502
|
-
}).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;
|
|
4503
4660
|
}), L = C(() => {
|
|
4504
4661
|
const c = v();
|
|
4505
|
-
return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0,
|
|
4506
|
-
c.warehousesReference =
|
|
4507
|
-
}).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;
|
|
4665
|
+
}), a = C(() => {
|
|
4666
|
+
const c = v();
|
|
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;
|
|
4508
4675
|
});
|
|
4509
4676
|
return {
|
|
4510
4677
|
/**
|
|
@@ -4546,7 +4713,7 @@ const v = se("__references_private", () => {
|
|
|
4546
4713
|
/**
|
|
4547
4714
|
* Справочник направлений продаж.
|
|
4548
4715
|
*/
|
|
4549
|
-
salesDirectionsReference:
|
|
4716
|
+
salesDirectionsReference: y,
|
|
4550
4717
|
/**
|
|
4551
4718
|
* Справочник каналов первичного интереса.
|
|
4552
4719
|
*/
|
|
@@ -4554,7 +4721,7 @@ const v = se("__references_private", () => {
|
|
|
4554
4721
|
/**
|
|
4555
4722
|
* Справочник типов доставки.
|
|
4556
4723
|
*/
|
|
4557
|
-
deliveryTypeReference:
|
|
4724
|
+
deliveryTypeReference: _,
|
|
4558
4725
|
/**
|
|
4559
4726
|
* Список менеджеров.
|
|
4560
4727
|
*/
|
|
@@ -4562,9 +4729,17 @@ const v = se("__references_private", () => {
|
|
|
4562
4729
|
/**
|
|
4563
4730
|
* Справочник складов.
|
|
4564
4731
|
*/
|
|
4565
|
-
warehousesReference: L
|
|
4732
|
+
warehousesReference: L,
|
|
4733
|
+
/**
|
|
4734
|
+
* Справочник типов свойств.
|
|
4735
|
+
*/
|
|
4736
|
+
propertyTypesReference: a,
|
|
4737
|
+
/**
|
|
4738
|
+
* Справочник коэффициентов цен.
|
|
4739
|
+
*/
|
|
4740
|
+
priceCoefficientsReference: I
|
|
4566
4741
|
};
|
|
4567
|
-
}),
|
|
4742
|
+
}), Kr = ie("__user_state_private", () => {
|
|
4568
4743
|
const i = w({}), r = w(void 0);
|
|
4569
4744
|
return {
|
|
4570
4745
|
/**
|
|
@@ -4576,18 +4751,18 @@ const v = se("__references_private", () => {
|
|
|
4576
4751
|
*/
|
|
4577
4752
|
currentUser: r
|
|
4578
4753
|
};
|
|
4579
|
-
}),
|
|
4754
|
+
}), Ss = ie("user_state", () => ({
|
|
4580
4755
|
/**
|
|
4581
4756
|
* Данные о текущем пользователе.
|
|
4582
4757
|
*/
|
|
4583
4758
|
currentUser: C(() => {
|
|
4584
|
-
const r =
|
|
4585
|
-
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) => {
|
|
4586
4761
|
r.currentUser = e;
|
|
4587
|
-
}).catch(
|
|
4762
|
+
}).catch(m).finally(m)), r.currentUser;
|
|
4588
4763
|
})
|
|
4589
4764
|
}));
|
|
4590
|
-
class
|
|
4765
|
+
class _s extends p {
|
|
4591
4766
|
/**
|
|
4592
4767
|
* Возвращает подсказки по адресам.
|
|
4593
4768
|
*
|
|
@@ -4634,7 +4809,7 @@ class Ds extends g {
|
|
|
4634
4809
|
});
|
|
4635
4810
|
}
|
|
4636
4811
|
}
|
|
4637
|
-
class
|
|
4812
|
+
class Ts {
|
|
4638
4813
|
/**
|
|
4639
4814
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
4640
4815
|
*
|
|
@@ -4658,120 +4833,125 @@ class Ps {
|
|
|
4658
4833
|
}
|
|
4659
4834
|
}
|
|
4660
4835
|
export {
|
|
4661
|
-
|
|
4662
|
-
|
|
4836
|
+
Lr as AnyReference,
|
|
4837
|
+
ss as AppBaseConfig,
|
|
4663
4838
|
N as AppConfigProvider,
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
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
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
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
|
+
O 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,
|
|
4726
4902
|
Er as MetaTagItem,
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
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,
|
|
4737
4913
|
G as PartnerGroup,
|
|
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
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
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
|
|
4776
4956
|
};
|
|
4777
4957
|
//# sourceMappingURL=sc-common-lib.js.map
|