@snabcentr/common-lib 1.51.0 → 1.53.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 +4 -3
- package/dist/sc-common-lib.js +528 -523
- 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/clients/classes/clients-list-filters.d.ts +0 -4
- package/dist/src/clients/classes/clients-list-filters.d.ts.map +1 -1
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts +0 -4
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts.map +1 -1
- package/dist/src/config/classes/app-base-config.d.ts +4 -0
- package/dist/src/config/classes/app-base-config.d.ts.map +1 -1
- package/dist/src/config/interfaces/i-app-base-config.d.ts +9 -0
- package/dist/src/config/interfaces/i-app-base-config.d.ts.map +1 -1
- package/dist/src/system/classes/date-period.d.ts +21 -0
- package/dist/src/system/classes/date-period.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (n, r, e) =>
|
|
4
|
-
import { constant as
|
|
5
|
-
import { parseISO as f, format as z, addSeconds as
|
|
6
|
-
import
|
|
7
|
-
import { objectToSnake as Ie, objectToCamel as
|
|
8
|
-
import { defineStore as
|
|
9
|
-
import { ref as
|
|
10
|
-
class
|
|
1
|
+
var tr = Object.defineProperty;
|
|
2
|
+
var sr = (n, r, e) => r in n ? tr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var t = (n, r, e) => sr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { constant as ir, isUndefined as nr, isString as m, cloneDeep as or, noop as y, toLower as cr, map as ne, forEach as lr, isNil as Ge, isDate as pr, isFunction as Me, isEmpty as ur } from "lodash-es";
|
|
5
|
+
import { parseISO as f, format as z, addSeconds as hr, isAfter as gr, startOfToday as Fe, addBusinessDays as mr, endOfTomorrow as fr, startOfTomorrow as yr, endOfYesterday as wr, startOfYesterday as Cr, endOfToday as vr, endOfDay as Pr, startOfDay as Rr } from "date-fns";
|
|
6
|
+
import Dr from "axios";
|
|
7
|
+
import { objectToSnake as Ie, objectToCamel as $r } from "ts-case-convert";
|
|
8
|
+
import { defineStore as ge } from "pinia";
|
|
9
|
+
import { ref as C, computed as v } from "vue";
|
|
10
|
+
class F {
|
|
11
11
|
/**
|
|
12
12
|
* Инициализирует экземпляр класса {@link Identity}.
|
|
13
13
|
*
|
|
@@ -31,7 +31,7 @@ class d {
|
|
|
31
31
|
return this.id === -1;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
class
|
|
34
|
+
class D extends F {
|
|
35
35
|
/**
|
|
36
36
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
37
37
|
*
|
|
@@ -46,7 +46,7 @@ class A extends d {
|
|
|
46
46
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
class
|
|
49
|
+
class He extends D {
|
|
50
50
|
/**
|
|
51
51
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
52
52
|
*
|
|
@@ -69,7 +69,7 @@ class de extends A {
|
|
|
69
69
|
this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
class
|
|
72
|
+
class De extends He {
|
|
73
73
|
/**
|
|
74
74
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
75
75
|
*
|
|
@@ -84,7 +84,7 @@ class Re extends de {
|
|
|
84
84
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
class
|
|
87
|
+
class te extends De {
|
|
88
88
|
/**
|
|
89
89
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
90
90
|
*
|
|
@@ -107,8 +107,8 @@ class re extends Re {
|
|
|
107
107
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category";
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
var
|
|
111
|
-
class
|
|
110
|
+
var ze = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(ze || {});
|
|
111
|
+
class w extends D {
|
|
112
112
|
/**
|
|
113
113
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
114
114
|
*
|
|
@@ -127,15 +127,15 @@ class C extends A {
|
|
|
127
127
|
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
class
|
|
130
|
+
class me extends w {
|
|
131
131
|
/**
|
|
132
132
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
133
133
|
*/
|
|
134
134
|
static getRetailPriceCoefficient() {
|
|
135
|
-
return { id: -2, slug:
|
|
135
|
+
return { id: -2, slug: ze.Retail, name: "Розн. цена", guid: "", isNewRec: ir(!0) };
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
class
|
|
138
|
+
class _e {
|
|
139
139
|
/**
|
|
140
140
|
* Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
|
|
141
141
|
*
|
|
@@ -162,10 +162,10 @@ class be {
|
|
|
162
162
|
* Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
|
|
163
163
|
*/
|
|
164
164
|
t(this, "readOnly");
|
|
165
|
-
this.coefficient = new
|
|
165
|
+
this.coefficient = new me(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
class
|
|
168
|
+
class Be {
|
|
169
169
|
/**
|
|
170
170
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
171
171
|
*
|
|
@@ -183,9 +183,9 @@ class ze {
|
|
|
183
183
|
this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
class E extends
|
|
186
|
+
class E extends w {
|
|
187
187
|
}
|
|
188
|
-
class
|
|
188
|
+
class fe extends w {
|
|
189
189
|
/**
|
|
190
190
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
191
191
|
*
|
|
@@ -214,10 +214,10 @@ class me extends C {
|
|
|
214
214
|
* Координаты склада.
|
|
215
215
|
*/
|
|
216
216
|
t(this, "coordinates");
|
|
217
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new E(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new
|
|
217
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new E(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Be(e == null ? void 0 : e.coordinates);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
class
|
|
220
|
+
class Ar {
|
|
221
221
|
/**
|
|
222
222
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
223
223
|
*
|
|
@@ -232,7 +232,7 @@ class $r {
|
|
|
232
232
|
* Количество остатков товара на складе.
|
|
233
233
|
*/
|
|
234
234
|
t(this, "count");
|
|
235
|
-
this.warehouse = new
|
|
235
|
+
this.warehouse = new fe(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
const W = class W {
|
|
@@ -249,7 +249,7 @@ const W = class W {
|
|
|
249
249
|
*/
|
|
250
250
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
251
251
|
static getConfig() {
|
|
252
|
-
if (
|
|
252
|
+
if (nr(W.config))
|
|
253
253
|
throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
|
|
254
254
|
return W.config;
|
|
255
255
|
}
|
|
@@ -271,8 +271,8 @@ const W = class W {
|
|
|
271
271
|
* Конфигурация приложения.
|
|
272
272
|
*/
|
|
273
273
|
t(W, "config");
|
|
274
|
-
let
|
|
275
|
-
class
|
|
274
|
+
let T = W;
|
|
275
|
+
class Tr extends He {
|
|
276
276
|
/**
|
|
277
277
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
278
278
|
*
|
|
@@ -287,7 +287,7 @@ class Ar extends de {
|
|
|
287
287
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
class
|
|
290
|
+
class br {
|
|
291
291
|
/**
|
|
292
292
|
* Инициализирует экземпляр класса {@link Image}.
|
|
293
293
|
*
|
|
@@ -310,7 +310,7 @@ class Tr {
|
|
|
310
310
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
class
|
|
313
|
+
class _ extends Tr {
|
|
314
314
|
/**
|
|
315
315
|
* Инициализирует экземпляр класса {@link Product}.
|
|
316
316
|
*
|
|
@@ -383,19 +383,19 @@ class a extends Ar {
|
|
|
383
383
|
* Список коэффициентов цен на продукт.
|
|
384
384
|
*/
|
|
385
385
|
t(this, "priceCoefficients");
|
|
386
|
-
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = m(e == null ? void 0 : e.costDate) ? f(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((
|
|
387
|
-
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((
|
|
388
|
-
s && (this.category = new
|
|
386
|
+
this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = (e == null ? void 0 : e.unit) ?? "", this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.quantityUnit = e == null ? void 0 : e.quantityUnit, this.currency = (e == null ? void 0 : e.currency) ?? "", this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = m(e == null ? void 0 : e.costDate) ? f(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((g) => new Ar(g))) ?? [], this.type = "product";
|
|
387
|
+
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((g) => g.isPrimary));
|
|
388
|
+
s && (this.category = new De({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((g) => new De(g))), this.images = ((l = e == null ? void 0 : e.images) == null ? void 0 : l.map((g) => new br(g, T.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.priceCoefficients = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((g) => new _e(g))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
389
389
|
}
|
|
390
390
|
/**
|
|
391
391
|
* Возвращает признак, что это измеряемый товар.
|
|
392
392
|
*/
|
|
393
393
|
getIsMeasurable() {
|
|
394
|
-
const e =
|
|
394
|
+
const e = T.getConfig().products.units;
|
|
395
395
|
return [...e.linear, ...e.square].includes(this.unit);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
class
|
|
398
|
+
class _r extends F {
|
|
399
399
|
/**
|
|
400
400
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
401
401
|
*
|
|
@@ -447,10 +447,10 @@ class br extends d {
|
|
|
447
447
|
* Признак того, что позиция является дополнительной продажей.
|
|
448
448
|
*/
|
|
449
449
|
t(this, "isAdditionalSale");
|
|
450
|
-
this.product = new
|
|
450
|
+
this.product = new _(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new te(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && or(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
class
|
|
453
|
+
class ar extends _r {
|
|
454
454
|
/**
|
|
455
455
|
* Инициализирует экземпляр класса {@link CartItem}.
|
|
456
456
|
*
|
|
@@ -500,7 +500,7 @@ class _r extends br {
|
|
|
500
500
|
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;
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
class
|
|
503
|
+
class ie {
|
|
504
504
|
/**
|
|
505
505
|
* Инициализирует экземпляр класса {@link Cart}.
|
|
506
506
|
*
|
|
@@ -519,7 +519,7 @@ class se {
|
|
|
519
519
|
* Список итоговых сумм по направлениям продаж.
|
|
520
520
|
*/
|
|
521
521
|
t(this, "directionsSum");
|
|
522
|
-
this.items = r.items.map((e) => new
|
|
522
|
+
this.items = r.items.map((e) => new ar(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
class Sr {
|
|
@@ -633,7 +633,7 @@ class xr {
|
|
|
633
633
|
this.date = m(r == null ? void 0 : r.date) ? f(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
class
|
|
636
|
+
class gt {
|
|
637
637
|
/**
|
|
638
638
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
639
639
|
*
|
|
@@ -680,7 +680,11 @@ class ht {
|
|
|
680
680
|
* Форматы дат.
|
|
681
681
|
*/
|
|
682
682
|
t(this, "dateFormats");
|
|
683
|
-
|
|
683
|
+
/**
|
|
684
|
+
* Параметры темы.
|
|
685
|
+
*/
|
|
686
|
+
t(this, "theme");
|
|
687
|
+
var e, s, i, o;
|
|
684
688
|
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 Lr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Sr(r == null ? void 0 : r.deviceTypeByResolution), this.products = {
|
|
685
689
|
units: {
|
|
686
690
|
linear: ["пог.м.", "м."],
|
|
@@ -694,10 +698,12 @@ class ht {
|
|
|
694
698
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
695
699
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
696
700
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
701
|
+
}, this.theme = {
|
|
702
|
+
fontParams: (o = r == null ? void 0 : r.theme) == null ? void 0 : o.fontParams
|
|
697
703
|
};
|
|
698
704
|
}
|
|
699
705
|
}
|
|
700
|
-
class
|
|
706
|
+
class ae {
|
|
701
707
|
/**
|
|
702
708
|
* Инициализирует экземпляр указанного класса.
|
|
703
709
|
*
|
|
@@ -716,7 +722,7 @@ class _e {
|
|
|
716
722
|
return new r(e);
|
|
717
723
|
}
|
|
718
724
|
}
|
|
719
|
-
const
|
|
725
|
+
const a = class a {
|
|
720
726
|
/**
|
|
721
727
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
722
728
|
*
|
|
@@ -736,23 +742,23 @@ const N = class N {
|
|
|
736
742
|
* - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
737
743
|
*/
|
|
738
744
|
t(this, "defaultInstanceNotificationErrorResponseHandler", y);
|
|
739
|
-
const s =
|
|
740
|
-
this.defaultInstanceNotificationErrorResponseHandler =
|
|
745
|
+
const s = T.getConfig().version;
|
|
746
|
+
this.defaultInstanceNotificationErrorResponseHandler = a.baseDefaultNotificationErrorResponseHandler, this.httpClient = Dr.create({
|
|
741
747
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
742
748
|
baseURL: r,
|
|
743
749
|
headers: {
|
|
744
|
-
"APP-VERSION": `${s.name} (${s.version}, ${z(s.date,
|
|
750
|
+
"APP-VERSION": `${s.name} (${s.version}, ${z(s.date, T.getConfig().dateFormats.api)})`,
|
|
745
751
|
Accept: "application/json",
|
|
746
752
|
"Content-Type": "application/json",
|
|
747
753
|
...e
|
|
748
754
|
}
|
|
749
755
|
}), this.httpClient.interceptors.request.use(
|
|
750
|
-
(i) => (i.method && (i.method === "get" && i.params && (i.params = Ie(i.params)), ["put", "patch", "post"].includes(
|
|
756
|
+
(i) => (i.method && (i.method === "get" && i.params && (i.params = Ie(i.params)), ["put", "patch", "post"].includes(cr(i.method)) && i.data && (i.data = Ie(i.data))), i),
|
|
751
757
|
(i) => Promise.reject(i)
|
|
752
758
|
), this.httpClient.interceptors.response.use(
|
|
753
|
-
(i) => (i.data && (i.data =
|
|
759
|
+
(i) => (i.data && (i.data = $r(i.data)), i),
|
|
754
760
|
// Возвращаем изменённую структуру сообщения об ошибке.
|
|
755
|
-
(i) =>
|
|
761
|
+
(i) => a.convertHttpErrorResponse(i)
|
|
756
762
|
);
|
|
757
763
|
}
|
|
758
764
|
/**
|
|
@@ -761,7 +767,7 @@ const N = class N {
|
|
|
761
767
|
* @param handler Ссылка на функцию-обработчик уведомлений об ошибках.
|
|
762
768
|
*/
|
|
763
769
|
static setBaseDefaultNotificationErrorResponseHandler(r) {
|
|
764
|
-
|
|
770
|
+
a.baseDefaultNotificationErrorResponseHandler = r;
|
|
765
771
|
}
|
|
766
772
|
/**
|
|
767
773
|
* Возвращает экземпляр объекта текущего класса.
|
|
@@ -769,7 +775,7 @@ const N = class N {
|
|
|
769
775
|
* @param type Тип данных, которыми оперирует метод.
|
|
770
776
|
*/
|
|
771
777
|
static getInstance(r) {
|
|
772
|
-
return Object.prototype.hasOwnProperty.call(
|
|
778
|
+
return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = ae.simpleInstanceInitializer(r)), a.instances[r.name];
|
|
773
779
|
}
|
|
774
780
|
/**
|
|
775
781
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -864,16 +870,16 @@ const N = class N {
|
|
|
864
870
|
* Экземпляр объекта текущего класса.
|
|
865
871
|
*/
|
|
866
872
|
// eslint-disable-next-line no-use-before-define
|
|
867
|
-
t(
|
|
873
|
+
t(a, "instances", {}), /**
|
|
868
874
|
* Базовый обработчик по умолчанию используемый для отображения уведомлений и ошибок валидации всех ошибочных HTTP ответов на запросы.
|
|
869
875
|
*
|
|
870
876
|
* Параметры:
|
|
871
877
|
* - error Данные об ошибке.
|
|
872
878
|
* - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
873
879
|
*/
|
|
874
|
-
t(
|
|
875
|
-
let
|
|
876
|
-
const j = class j extends
|
|
880
|
+
t(a, "baseDefaultNotificationErrorResponseHandler", y);
|
|
881
|
+
let $e = a;
|
|
882
|
+
const j = class j extends $e {
|
|
877
883
|
/**
|
|
878
884
|
* Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
|
|
879
885
|
*
|
|
@@ -886,7 +892,7 @@ const j = class j extends De {
|
|
|
886
892
|
* Время кэширования данных ответов на запросы (секунд).
|
|
887
893
|
*/
|
|
888
894
|
t(this, "responseDataCacheTimeout");
|
|
889
|
-
const i =
|
|
895
|
+
const i = T.getConfig();
|
|
890
896
|
this.responseDataCacheTimeout = i.http.responseDataCacheTimeout;
|
|
891
897
|
}
|
|
892
898
|
/**
|
|
@@ -908,7 +914,7 @@ const j = class j extends De {
|
|
|
908
914
|
*/
|
|
909
915
|
cacheResponse(e, s) {
|
|
910
916
|
j.responseDataCache.set(e, {
|
|
911
|
-
validTo:
|
|
917
|
+
validTo: hr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
912
918
|
val: s
|
|
913
919
|
});
|
|
914
920
|
}
|
|
@@ -924,7 +930,7 @@ const j = class j extends De {
|
|
|
924
930
|
getTypedDataArrayRequester(e, s, i = !1) {
|
|
925
931
|
const o = i ? j.getCachedResponse(s) : void 0;
|
|
926
932
|
return o ? Promise.resolve(o) : this.get(s).then((l) => {
|
|
927
|
-
const p = l.map((
|
|
933
|
+
const p = l.map((g) => ae.instanceInitializer(e, g));
|
|
928
934
|
return i && p && this.cacheResponse(s, p), p;
|
|
929
935
|
});
|
|
930
936
|
}
|
|
@@ -933,18 +939,18 @@ const j = class j extends De {
|
|
|
933
939
|
* Кэш результатов запросов.
|
|
934
940
|
*/
|
|
935
941
|
t(j, "responseDataCache", /* @__PURE__ */ new Map());
|
|
936
|
-
let
|
|
937
|
-
class u extends
|
|
942
|
+
let Ae = j;
|
|
943
|
+
class u extends Ae {
|
|
938
944
|
/**
|
|
939
945
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
940
946
|
*/
|
|
941
947
|
constructor() {
|
|
942
948
|
var s, i;
|
|
943
|
-
const r =
|
|
949
|
+
const r = T.getConfig(), e = {};
|
|
944
950
|
(s = r.devMode) != null && s.authBearerToken && (e.Authorization = `Bearer ${(i = r.devMode) == null ? void 0 : i.authBearerToken}`), super(`${r.http.apiUri}/api`, e);
|
|
945
951
|
}
|
|
946
952
|
}
|
|
947
|
-
class
|
|
953
|
+
class mt extends u {
|
|
948
954
|
/**
|
|
949
955
|
* Возвращает содержимое корзины указанного клиента.
|
|
950
956
|
*
|
|
@@ -953,7 +959,7 @@ class gt extends u {
|
|
|
953
959
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_get
|
|
954
960
|
*/
|
|
955
961
|
getCart(r) {
|
|
956
|
-
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new
|
|
962
|
+
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ie(e.data));
|
|
957
963
|
}
|
|
958
964
|
/**
|
|
959
965
|
* Удаляет всё содержимое корзины.
|
|
@@ -991,7 +997,7 @@ class gt extends u {
|
|
|
991
997
|
isAdditionalSale: e.isAdditionalSale,
|
|
992
998
|
...e.configuratorParams
|
|
993
999
|
},
|
|
994
|
-
(i) => new
|
|
1000
|
+
(i) => new ie(i.data),
|
|
995
1001
|
s
|
|
996
1002
|
);
|
|
997
1003
|
}
|
|
@@ -1021,7 +1027,7 @@ class gt extends u {
|
|
|
1021
1027
|
isAdditionalSale: e.isAdditionalSale,
|
|
1022
1028
|
...e.configuratorParams
|
|
1023
1029
|
},
|
|
1024
|
-
(i) => new
|
|
1030
|
+
(i) => new ie(i.data),
|
|
1025
1031
|
s
|
|
1026
1032
|
);
|
|
1027
1033
|
}
|
|
@@ -1044,11 +1050,11 @@ class gt extends u {
|
|
|
1044
1050
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
|
|
1045
1051
|
*/
|
|
1046
1052
|
addCartItemFromCSV(r) {
|
|
1047
|
-
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new
|
|
1053
|
+
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new ie(e.data));
|
|
1048
1054
|
}
|
|
1049
1055
|
}
|
|
1050
|
-
var
|
|
1051
|
-
class q extends
|
|
1056
|
+
var kr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(kr || {}), Se = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Se || {}), Nr = /* @__PURE__ */ ((n) => (n.Unknown = "unknown", n.Bool = "bool", n.Integer = "integer", n.Float = "float", n.String = "string", n.Range = "range", n.Json = "json", n.Object = "object", n))(Nr || {});
|
|
1057
|
+
class q extends te {
|
|
1052
1058
|
/**
|
|
1053
1059
|
* Инициализирует экземпляр класса {@link Category}.
|
|
1054
1060
|
*
|
|
@@ -1065,10 +1071,10 @@ class q extends re {
|
|
|
1065
1071
|
* Список продуктов категории.
|
|
1066
1072
|
*/
|
|
1067
1073
|
t(this, "products");
|
|
1068
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new q(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new
|
|
1074
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new q(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new _(o));
|
|
1069
1075
|
}
|
|
1070
1076
|
}
|
|
1071
|
-
class
|
|
1077
|
+
class We extends D {
|
|
1072
1078
|
/**
|
|
1073
1079
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1074
1080
|
*
|
|
@@ -1083,7 +1089,7 @@ class Be extends A {
|
|
|
1083
1089
|
this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1084
1090
|
}
|
|
1085
1091
|
}
|
|
1086
|
-
class
|
|
1092
|
+
class Or extends We {
|
|
1087
1093
|
/**
|
|
1088
1094
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1089
1095
|
*
|
|
@@ -1098,7 +1104,7 @@ class Nr extends Be {
|
|
|
1098
1104
|
this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1099
1105
|
}
|
|
1100
1106
|
}
|
|
1101
|
-
class
|
|
1107
|
+
class ft {
|
|
1102
1108
|
/**
|
|
1103
1109
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
1104
1110
|
*
|
|
@@ -1109,7 +1115,7 @@ class mt {
|
|
|
1109
1115
|
if (e)
|
|
1110
1116
|
try {
|
|
1111
1117
|
const s = JSON.parse(e);
|
|
1112
|
-
if (
|
|
1118
|
+
if (gr(f(s.availableFor) || Fe(), /* @__PURE__ */ new Date()))
|
|
1113
1119
|
return s.data || {};
|
|
1114
1120
|
} catch {
|
|
1115
1121
|
localStorage.removeItem(r);
|
|
@@ -1132,7 +1138,7 @@ class mt {
|
|
|
1132
1138
|
);
|
|
1133
1139
|
}
|
|
1134
1140
|
}
|
|
1135
|
-
class
|
|
1141
|
+
class d extends D {
|
|
1136
1142
|
/**
|
|
1137
1143
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
1138
1144
|
*
|
|
@@ -1147,7 +1153,7 @@ class U extends A {
|
|
|
1147
1153
|
this.type = e == null ? void 0 : e.type;
|
|
1148
1154
|
}
|
|
1149
1155
|
}
|
|
1150
|
-
class
|
|
1156
|
+
class qr extends D {
|
|
1151
1157
|
/**
|
|
1152
1158
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1153
1159
|
*
|
|
@@ -1183,10 +1189,10 @@ class Or extends A {
|
|
|
1183
1189
|
* Дата и время удаления.
|
|
1184
1190
|
*/
|
|
1185
1191
|
t(this, "deletedAt");
|
|
1186
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = m(e == null ? void 0 : e.publishedAt) ? f(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new
|
|
1192
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = m(e == null ? void 0 : e.publishedAt) ? f(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new d(e == null ? void 0 : e.owner), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1187
1193
|
}
|
|
1188
1194
|
}
|
|
1189
|
-
class B extends
|
|
1195
|
+
class B extends We {
|
|
1190
1196
|
/**
|
|
1191
1197
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1192
1198
|
*
|
|
@@ -1205,7 +1211,7 @@ class B extends Be {
|
|
|
1205
1211
|
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
|
|
1206
1212
|
}
|
|
1207
1213
|
}
|
|
1208
|
-
class K extends
|
|
1214
|
+
class K extends _ {
|
|
1209
1215
|
/**
|
|
1210
1216
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1211
1217
|
*
|
|
@@ -1241,10 +1247,10 @@ class K extends a {
|
|
|
1241
1247
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1242
1248
|
*/
|
|
1243
1249
|
t(this, "isFavorite");
|
|
1244
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Se.Product, this.discount = e != null && e.discount ? new
|
|
1250
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Se.Product, this.discount = e != null && e.discount ? new qr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new B(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
|
|
1245
1251
|
}
|
|
1246
1252
|
}
|
|
1247
|
-
class
|
|
1253
|
+
class dr {
|
|
1248
1254
|
/**
|
|
1249
1255
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1250
1256
|
*
|
|
@@ -1262,9 +1268,9 @@ class qr {
|
|
|
1262
1268
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
1263
1269
|
}
|
|
1264
1270
|
}
|
|
1265
|
-
class
|
|
1271
|
+
class S extends w {
|
|
1266
1272
|
}
|
|
1267
|
-
class
|
|
1273
|
+
class oe extends D {
|
|
1268
1274
|
/**
|
|
1269
1275
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1270
1276
|
*
|
|
@@ -1275,7 +1281,7 @@ class ne extends A {
|
|
|
1275
1281
|
/**
|
|
1276
1282
|
* Направление продаж.
|
|
1277
1283
|
*/
|
|
1278
|
-
t(this, "salesDirection", new
|
|
1284
|
+
t(this, "salesDirection", new S());
|
|
1279
1285
|
/**
|
|
1280
1286
|
* URI путь к фотографии пользователя.
|
|
1281
1287
|
*/
|
|
@@ -1288,10 +1294,10 @@ class ne extends A {
|
|
|
1288
1294
|
* Признак того, что менеджер является основным для клиента.
|
|
1289
1295
|
*/
|
|
1290
1296
|
t(this, "isDefault");
|
|
1291
|
-
e && (this.salesDirection = new
|
|
1297
|
+
e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new dr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1292
1298
|
}
|
|
1293
1299
|
}
|
|
1294
|
-
class
|
|
1300
|
+
class ye extends oe {
|
|
1295
1301
|
/**
|
|
1296
1302
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1297
1303
|
*
|
|
@@ -1322,7 +1328,7 @@ class fe extends ne {
|
|
|
1322
1328
|
this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId;
|
|
1323
1329
|
}
|
|
1324
1330
|
}
|
|
1325
|
-
class Ur extends
|
|
1331
|
+
class Ur extends te {
|
|
1326
1332
|
/**
|
|
1327
1333
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1328
1334
|
*
|
|
@@ -1350,10 +1356,10 @@ class Ur extends re {
|
|
|
1350
1356
|
* Данные о менеджере за которым закреплена категория.
|
|
1351
1357
|
*/
|
|
1352
1358
|
t(this, "manager");
|
|
1353
|
-
this.isDisabled = (e == null ? void 0 : e.isDisabled) ?? !1, this.isRequired = (e == null ? void 0 : e.isRequired) ?? !1, this.isFavorite = (e == null ? void 0 : e.isFavorite) ?? !1, this.hidingComment = e == null ? void 0 : e.hidingComment, this.manager = e != null && e.manager ? new
|
|
1359
|
+
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 ye(e.manager) : void 0;
|
|
1354
1360
|
}
|
|
1355
1361
|
}
|
|
1356
|
-
class
|
|
1362
|
+
class ce extends Ur {
|
|
1357
1363
|
/**
|
|
1358
1364
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1359
1365
|
*
|
|
@@ -1370,10 +1376,10 @@ class oe extends Ur {
|
|
|
1370
1376
|
* Список продуктов категории.
|
|
1371
1377
|
*/
|
|
1372
1378
|
t(this, "products");
|
|
1373
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new
|
|
1379
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ce(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new K(o));
|
|
1374
1380
|
}
|
|
1375
1381
|
}
|
|
1376
|
-
class
|
|
1382
|
+
class je {
|
|
1377
1383
|
/**
|
|
1378
1384
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
1379
1385
|
*
|
|
@@ -1388,10 +1394,10 @@ class We {
|
|
|
1388
1394
|
* Процент, который прибавляется к значению выбранного коэффициента.
|
|
1389
1395
|
*/
|
|
1390
1396
|
t(this, "increasePercent");
|
|
1391
|
-
this.coefficient = (r == null ? void 0 : r.coefficient) && new
|
|
1397
|
+
this.coefficient = (r == null ? void 0 : r.coefficient) && new me(r.coefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1392
1398
|
}
|
|
1393
1399
|
}
|
|
1394
|
-
class Ce extends
|
|
1400
|
+
class Ce extends je {
|
|
1395
1401
|
/**
|
|
1396
1402
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1397
1403
|
*
|
|
@@ -1403,12 +1409,12 @@ class Ce extends We {
|
|
|
1403
1409
|
* Базовые данные о продукте.
|
|
1404
1410
|
*/
|
|
1405
1411
|
t(this, "productCategory");
|
|
1406
|
-
this.productCategory = new
|
|
1412
|
+
this.productCategory = new te(e == null ? void 0 : e.productCategory);
|
|
1407
1413
|
}
|
|
1408
1414
|
}
|
|
1409
|
-
class J extends
|
|
1415
|
+
class J extends w {
|
|
1410
1416
|
}
|
|
1411
|
-
class
|
|
1417
|
+
class ee extends w {
|
|
1412
1418
|
/**
|
|
1413
1419
|
* Инициализирует экземпляр класса {@link Region}.
|
|
1414
1420
|
*
|
|
@@ -1423,7 +1429,7 @@ class Z extends C {
|
|
|
1423
1429
|
e && (this.country = new J(e.country));
|
|
1424
1430
|
}
|
|
1425
1431
|
}
|
|
1426
|
-
class
|
|
1432
|
+
class le extends w {
|
|
1427
1433
|
/**
|
|
1428
1434
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
1429
1435
|
*
|
|
@@ -1434,11 +1440,11 @@ class ce extends C {
|
|
|
1434
1440
|
/**
|
|
1435
1441
|
* Данные о регионе, в котором расположен город.
|
|
1436
1442
|
*/
|
|
1437
|
-
t(this, "region", new
|
|
1438
|
-
e && (this.region = new
|
|
1443
|
+
t(this, "region", new ee());
|
|
1444
|
+
e && (this.region = new ee(e.region));
|
|
1439
1445
|
}
|
|
1440
1446
|
}
|
|
1441
|
-
class
|
|
1447
|
+
class Ve extends D {
|
|
1442
1448
|
/**
|
|
1443
1449
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1444
1450
|
*
|
|
@@ -1474,10 +1480,10 @@ class je extends A {
|
|
|
1474
1480
|
* Признак активности учетной записи пользователя.
|
|
1475
1481
|
*/
|
|
1476
1482
|
t(this, "isActive");
|
|
1477
|
-
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
|
|
1483
|
+
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 = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = m(e == null ? void 0 : e.lastLoginAt) ? f(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1478
1484
|
}
|
|
1479
1485
|
}
|
|
1480
|
-
class
|
|
1486
|
+
class se extends Ve {
|
|
1481
1487
|
/**
|
|
1482
1488
|
* Инициализирует экземпляр класса {@link Client}.
|
|
1483
1489
|
*
|
|
@@ -1519,10 +1525,10 @@ class te extends je {
|
|
|
1519
1525
|
* Список менеджеров клиента.
|
|
1520
1526
|
*/
|
|
1521
1527
|
t(this, "managers");
|
|
1522
|
-
this.salesDirection = new
|
|
1528
|
+
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 le(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new oe(i))) ?? [];
|
|
1523
1529
|
}
|
|
1524
1530
|
}
|
|
1525
|
-
class
|
|
1531
|
+
class Y extends F {
|
|
1526
1532
|
/**
|
|
1527
1533
|
* Инициализирует новый экземпляр класса.
|
|
1528
1534
|
*
|
|
@@ -1546,10 +1552,10 @@ class Q extends d {
|
|
|
1546
1552
|
* Данные шаблона прайс-листа.
|
|
1547
1553
|
*/
|
|
1548
1554
|
t(this, "priceTemplate");
|
|
1549
|
-
this.startAt = m(e == null ? void 0 : e.startAt) ? f(e.startAt) : (e == null ? void 0 : e.startAt) ?? /* @__PURE__ */ new Date(), this.endAt = m(e == null ? void 0 : e.endAt) ? f(e.endAt) : (e == null ? void 0 : e.endAt) ?? /* @__PURE__ */ new Date(), this.client = new
|
|
1555
|
+
this.startAt = m(e == null ? void 0 : e.startAt) ? f(e.startAt) : (e == null ? void 0 : e.startAt) ?? /* @__PURE__ */ new Date(), this.endAt = m(e == null ? void 0 : e.endAt) ? f(e.endAt) : (e == null ? void 0 : e.endAt) ?? /* @__PURE__ */ new Date(), this.client = new se(e == null ? void 0 : e.client), this.priceTemplate = new B(e == null ? void 0 : e.priceTemplate);
|
|
1550
1556
|
}
|
|
1551
1557
|
}
|
|
1552
|
-
class
|
|
1558
|
+
class ve extends je {
|
|
1553
1559
|
/**
|
|
1554
1560
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1555
1561
|
*
|
|
@@ -1561,12 +1567,12 @@ class we extends We {
|
|
|
1561
1567
|
* Базовые данные о продукте.
|
|
1562
1568
|
*/
|
|
1563
1569
|
t(this, "product");
|
|
1564
|
-
this.product = new
|
|
1570
|
+
this.product = new _(e == null ? void 0 : e.product);
|
|
1565
1571
|
}
|
|
1566
1572
|
}
|
|
1567
|
-
class
|
|
1573
|
+
class Ee extends w {
|
|
1568
1574
|
}
|
|
1569
|
-
class
|
|
1575
|
+
class X extends D {
|
|
1570
1576
|
/**
|
|
1571
1577
|
* Инициализирует экземпляр класса {@link Property}.
|
|
1572
1578
|
*
|
|
@@ -1586,7 +1592,7 @@ class Y extends A {
|
|
|
1586
1592
|
* Дополнительные метаданные свойства.
|
|
1587
1593
|
*/
|
|
1588
1594
|
t(this, "metadata");
|
|
1589
|
-
this.type = new
|
|
1595
|
+
this.type = new Ee(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
1590
1596
|
}
|
|
1591
1597
|
}
|
|
1592
1598
|
class H {
|
|
@@ -1605,18 +1611,18 @@ class H {
|
|
|
1605
1611
|
* Может быть строкой, числом, boolean, диапазоном или JSON объектом.
|
|
1606
1612
|
*/
|
|
1607
1613
|
t(this, "value");
|
|
1608
|
-
this.property = new
|
|
1614
|
+
this.property = new X(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
1609
1615
|
}
|
|
1610
1616
|
}
|
|
1611
|
-
class Gr extends
|
|
1617
|
+
class Gr extends w {
|
|
1612
1618
|
}
|
|
1613
|
-
class
|
|
1619
|
+
class Ke extends w {
|
|
1614
1620
|
}
|
|
1615
|
-
class
|
|
1621
|
+
class yt extends w {
|
|
1616
1622
|
}
|
|
1617
|
-
class Mr extends
|
|
1623
|
+
class Mr extends w {
|
|
1618
1624
|
}
|
|
1619
|
-
class
|
|
1625
|
+
class pe extends D {
|
|
1620
1626
|
/**
|
|
1621
1627
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
1622
1628
|
*
|
|
@@ -1635,33 +1641,33 @@ class le extends A {
|
|
|
1635
1641
|
e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
|
|
1636
1642
|
}
|
|
1637
1643
|
}
|
|
1638
|
-
var
|
|
1639
|
-
class
|
|
1644
|
+
var b = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(b || {});
|
|
1645
|
+
class U extends w {
|
|
1640
1646
|
/**
|
|
1641
1647
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
1642
1648
|
*/
|
|
1643
1649
|
static generatePersonItem() {
|
|
1644
|
-
return new
|
|
1650
|
+
return new U({
|
|
1645
1651
|
id: 1,
|
|
1646
1652
|
guid: "",
|
|
1647
|
-
slug:
|
|
1653
|
+
slug: b.Person,
|
|
1648
1654
|
name: ""
|
|
1649
1655
|
});
|
|
1650
1656
|
}
|
|
1651
1657
|
}
|
|
1652
|
-
class Fr extends
|
|
1658
|
+
class Fr extends w {
|
|
1653
1659
|
}
|
|
1654
|
-
class
|
|
1660
|
+
class Hr extends w {
|
|
1655
1661
|
}
|
|
1656
|
-
class
|
|
1662
|
+
class G extends w {
|
|
1657
1663
|
}
|
|
1658
|
-
class
|
|
1664
|
+
class zr extends w {
|
|
1659
1665
|
}
|
|
1660
|
-
class
|
|
1666
|
+
class Br extends w {
|
|
1661
1667
|
}
|
|
1662
|
-
class
|
|
1668
|
+
class Je extends w {
|
|
1663
1669
|
}
|
|
1664
|
-
class
|
|
1670
|
+
class Qe extends w {
|
|
1665
1671
|
}
|
|
1666
1672
|
class R extends u {
|
|
1667
1673
|
/**
|
|
@@ -1679,7 +1685,7 @@ class R extends u {
|
|
|
1679
1685
|
* первичного интереса.
|
|
1680
1686
|
*/
|
|
1681
1687
|
getChannelPrimaryInterest() {
|
|
1682
|
-
return this.getTypedDataArrayRequester(
|
|
1688
|
+
return this.getTypedDataArrayRequester(Ke, "/internal/references/channel-primary-interest", !0);
|
|
1683
1689
|
}
|
|
1684
1690
|
/**
|
|
1685
1691
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
@@ -1691,20 +1697,20 @@ class R extends u {
|
|
|
1691
1697
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
1692
1698
|
*/
|
|
1693
1699
|
getCurrency() {
|
|
1694
|
-
return this.getTypedDataArrayRequester(
|
|
1700
|
+
return this.getTypedDataArrayRequester(pe, "/public/references/currency", !0);
|
|
1695
1701
|
}
|
|
1696
1702
|
/**
|
|
1697
1703
|
* Возвращает {@link Promise} для получения справочника данных
|
|
1698
1704
|
* групп партнеров (направлений деятельности).
|
|
1699
1705
|
*/
|
|
1700
1706
|
getPartnerGroup() {
|
|
1701
|
-
return this.getTypedDataArrayRequester(
|
|
1707
|
+
return this.getTypedDataArrayRequester(G, "/internal/references/partner-group", !0);
|
|
1702
1708
|
}
|
|
1703
1709
|
/**
|
|
1704
1710
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
1705
1711
|
*/
|
|
1706
1712
|
getOpf() {
|
|
1707
|
-
return this.getTypedDataArrayRequester(
|
|
1713
|
+
return this.getTypedDataArrayRequester(U, "/public/references/opf", !0);
|
|
1708
1714
|
}
|
|
1709
1715
|
/**
|
|
1710
1716
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
@@ -1716,31 +1722,31 @@ class R extends u {
|
|
|
1716
1722
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
1717
1723
|
*/
|
|
1718
1724
|
getOrderStatuses() {
|
|
1719
|
-
return this.getTypedDataArrayRequester(
|
|
1725
|
+
return this.getTypedDataArrayRequester(Hr, "/public/references/order-status", !0);
|
|
1720
1726
|
}
|
|
1721
1727
|
/**
|
|
1722
1728
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
1723
1729
|
*/
|
|
1724
1730
|
getPaymentTypes() {
|
|
1725
|
-
return this.getTypedDataArrayRequester(
|
|
1731
|
+
return this.getTypedDataArrayRequester(zr, "/public/references/payment-type", !0);
|
|
1726
1732
|
}
|
|
1727
1733
|
/**
|
|
1728
1734
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
1729
1735
|
*/
|
|
1730
1736
|
getResourceTypes() {
|
|
1731
|
-
return this.getTypedDataArrayRequester(
|
|
1737
|
+
return this.getTypedDataArrayRequester(Je, "/internal/references/resource-type", !0);
|
|
1732
1738
|
}
|
|
1733
1739
|
/**
|
|
1734
1740
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
1735
1741
|
*/
|
|
1736
1742
|
getSalesDirections() {
|
|
1737
|
-
return this.getTypedDataArrayRequester(
|
|
1743
|
+
return this.getTypedDataArrayRequester(S, "/public/references/sales-direction", !0);
|
|
1738
1744
|
}
|
|
1739
1745
|
/**
|
|
1740
1746
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
1741
1747
|
*/
|
|
1742
1748
|
getSourcePrimaryInterest() {
|
|
1743
|
-
return this.getTypedDataArrayRequester(
|
|
1749
|
+
return this.getTypedDataArrayRequester(Qe, "/internal/references/source-primary-interest", !0);
|
|
1744
1750
|
}
|
|
1745
1751
|
/**
|
|
1746
1752
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -1748,7 +1754,7 @@ class R extends u {
|
|
|
1748
1754
|
* @param term Терм поиска.
|
|
1749
1755
|
*/
|
|
1750
1756
|
searchCity(r) {
|
|
1751
|
-
return this.getTypedDataArrayRequester(
|
|
1757
|
+
return this.getTypedDataArrayRequester(le, `/internal/references/city-with-region-and-country/search?term=${r}`);
|
|
1752
1758
|
}
|
|
1753
1759
|
/**
|
|
1754
1760
|
* Выполняет поиск данных о регионах по терму в названии.
|
|
@@ -1756,7 +1762,7 @@ class R extends u {
|
|
|
1756
1762
|
* @param term Терм поиска.
|
|
1757
1763
|
*/
|
|
1758
1764
|
searchRegion(r) {
|
|
1759
|
-
return this.getTypedDataArrayRequester(
|
|
1765
|
+
return this.getTypedDataArrayRequester(ee, `/internal/references/region-with-country/search?term=${r}`);
|
|
1760
1766
|
}
|
|
1761
1767
|
/**
|
|
1762
1768
|
* Выполняет поиск данных о странах по терму в названии.
|
|
@@ -1776,29 +1782,29 @@ class R extends u {
|
|
|
1776
1782
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
1777
1783
|
*/
|
|
1778
1784
|
getWarehouses() {
|
|
1779
|
-
return this.getTypedDataArrayRequester(
|
|
1785
|
+
return this.getTypedDataArrayRequester(fe, "/public/references/warehouse", !0);
|
|
1780
1786
|
}
|
|
1781
1787
|
/**
|
|
1782
1788
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
1783
1789
|
*/
|
|
1784
1790
|
getPropertyTypes() {
|
|
1785
|
-
return this.getTypedDataArrayRequester(
|
|
1791
|
+
return this.getTypedDataArrayRequester(Ee, "/internal/references/property-type", !0);
|
|
1786
1792
|
}
|
|
1787
1793
|
/**
|
|
1788
1794
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
1789
1795
|
*/
|
|
1790
1796
|
getPriceCoefficients() {
|
|
1791
|
-
return this.getTypedDataArrayRequester(
|
|
1797
|
+
return this.getTypedDataArrayRequester(me, "/internal/references/price-coefficient", !0);
|
|
1792
1798
|
}
|
|
1793
1799
|
/**
|
|
1794
1800
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
1795
1801
|
*/
|
|
1796
1802
|
getProductFileType() {
|
|
1797
|
-
return this.getTypedDataArrayRequester(
|
|
1803
|
+
return this.getTypedDataArrayRequester(Br, "/public/references/product-file-type", !0);
|
|
1798
1804
|
}
|
|
1799
1805
|
}
|
|
1800
|
-
var
|
|
1801
|
-
class
|
|
1806
|
+
var Wr = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Wr || {});
|
|
1807
|
+
class jr extends Ve {
|
|
1802
1808
|
/**
|
|
1803
1809
|
* Инициализирует экземпляр класса {@link User}.
|
|
1804
1810
|
*
|
|
@@ -1821,16 +1827,16 @@ class Wr extends je {
|
|
|
1821
1827
|
this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo;
|
|
1822
1828
|
}
|
|
1823
1829
|
}
|
|
1824
|
-
class
|
|
1830
|
+
class Vr extends u {
|
|
1825
1831
|
/**
|
|
1826
1832
|
* Возвращает данные о текущем пользователе.
|
|
1827
1833
|
*/
|
|
1828
1834
|
// eslint-disable-next-line class-methods-use-this
|
|
1829
1835
|
getCurrentUser() {
|
|
1830
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
1836
|
+
return this.get("/internal/users/info", {}, (r) => new jr(r.data));
|
|
1831
1837
|
}
|
|
1832
1838
|
}
|
|
1833
|
-
class
|
|
1839
|
+
class Er {
|
|
1834
1840
|
/**
|
|
1835
1841
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
1836
1842
|
*
|
|
@@ -1873,7 +1879,7 @@ class Vr {
|
|
|
1873
1879
|
* Данные о валюте.
|
|
1874
1880
|
*/
|
|
1875
1881
|
t(this, "currency");
|
|
1876
|
-
this.cost = r.cost, this.costDate = m(r.costDate) ? f(r.costDate) : r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new
|
|
1882
|
+
this.cost = r.cost, this.costDate = m(r.costDate) ? f(r.costDate) : r.costDate, this.isLowCost = r.isLowCost, this.isRetail = r.isRetail, this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.client = r.client ? new d(r.client) : void 0, this.executor = r.executor ? new d(r.executor) : void 0, this.currency = r.currency ? new pe(r.currency) : void 0;
|
|
1877
1883
|
}
|
|
1878
1884
|
}
|
|
1879
1885
|
class xe {
|
|
@@ -1891,10 +1897,10 @@ class xe {
|
|
|
1891
1897
|
* Список рекомендованных категорий продуктов.
|
|
1892
1898
|
*/
|
|
1893
1899
|
t(this, "productCategories", []);
|
|
1894
|
-
r != null && r.products && (this.products = r.products.map((e) => new
|
|
1900
|
+
r != null && r.products && (this.products = r.products.map((e) => new _(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new q(e)));
|
|
1895
1901
|
}
|
|
1896
1902
|
}
|
|
1897
|
-
class
|
|
1903
|
+
class Z extends D {
|
|
1898
1904
|
/**
|
|
1899
1905
|
* Инициализирует экземпляр класса {@link PricingRole}.
|
|
1900
1906
|
*
|
|
@@ -1929,7 +1935,7 @@ class X extends A {
|
|
|
1929
1935
|
this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
|
|
1930
1936
|
}
|
|
1931
1937
|
}
|
|
1932
|
-
class
|
|
1938
|
+
class ke {
|
|
1933
1939
|
/**
|
|
1934
1940
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
1935
1941
|
*
|
|
@@ -1948,10 +1954,10 @@ class ae {
|
|
|
1948
1954
|
* Минимальный коэффициент цены.
|
|
1949
1955
|
*/
|
|
1950
1956
|
t(this, "minCoefficient");
|
|
1951
|
-
this.role = new
|
|
1957
|
+
this.role = new Z(r == null ? void 0 : r.role), this.category = new te(r == null ? void 0 : r.category), this.minCoefficient = new me(r == null ? void 0 : r.minCoefficient);
|
|
1952
1958
|
}
|
|
1953
1959
|
}
|
|
1954
|
-
class
|
|
1960
|
+
class Pe {
|
|
1955
1961
|
/**
|
|
1956
1962
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
1957
1963
|
*
|
|
@@ -1978,10 +1984,10 @@ class ve {
|
|
|
1978
1984
|
* Источник клиентской цены.
|
|
1979
1985
|
*/
|
|
1980
1986
|
t(this, "source");
|
|
1981
|
-
this.client = new
|
|
1987
|
+
this.client = new se(r == null ? void 0 : r.client), this.product = new _(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Se.Product;
|
|
1982
1988
|
}
|
|
1983
1989
|
}
|
|
1984
|
-
class
|
|
1990
|
+
class wt extends u {
|
|
1985
1991
|
/**
|
|
1986
1992
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
1987
1993
|
*
|
|
@@ -2008,7 +2014,7 @@ class yt extends u {
|
|
|
2008
2014
|
*/
|
|
2009
2015
|
// eslint-disable-next-line class-methods-use-this
|
|
2010
2016
|
getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
|
|
2011
|
-
let l = `${
|
|
2017
|
+
let l = `${T.getConfig().http.apiUri}/api/internal/price/export?format=${r}&show_hidden=${e}`;
|
|
2012
2018
|
return s && (l += `&category_id=${s}`), i && (l += `&client_id=${i}`), l;
|
|
2013
2019
|
}
|
|
2014
2020
|
}
|
|
@@ -2211,7 +2217,7 @@ class Ct extends u {
|
|
|
2211
2217
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2212
2218
|
}
|
|
2213
2219
|
}
|
|
2214
|
-
class
|
|
2220
|
+
class vt extends u {
|
|
2215
2221
|
/**
|
|
2216
2222
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2217
2223
|
*
|
|
@@ -2223,7 +2229,7 @@ class wt extends u {
|
|
|
2223
2229
|
return this.get(
|
|
2224
2230
|
`/internal/clients/${r}/price/templates`,
|
|
2225
2231
|
{},
|
|
2226
|
-
(e) => e.data.map((s) => new
|
|
2232
|
+
(e) => e.data.map((s) => new Y(s))
|
|
2227
2233
|
);
|
|
2228
2234
|
}
|
|
2229
2235
|
/**
|
|
@@ -2234,7 +2240,7 @@ class wt extends u {
|
|
|
2234
2240
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
|
|
2235
2241
|
*/
|
|
2236
2242
|
getActiveTemplate(r) {
|
|
2237
|
-
return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new
|
|
2243
|
+
return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new Y(e.data));
|
|
2238
2244
|
}
|
|
2239
2245
|
/**
|
|
2240
2246
|
* Добавляет связь между клиентом и шаблоном прайс-листа.
|
|
@@ -2246,14 +2252,14 @@ class wt extends u {
|
|
|
2246
2252
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_attach
|
|
2247
2253
|
*/
|
|
2248
2254
|
attachTemplate(r, e, s) {
|
|
2249
|
-
const i =
|
|
2255
|
+
const i = T.getConfig().dateFormats.api;
|
|
2250
2256
|
return this.post(
|
|
2251
2257
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
2252
2258
|
s && {
|
|
2253
2259
|
startAt: s.startAt && z(s.startAt, i),
|
|
2254
2260
|
endAt: s.endAt && z(s.endAt, i)
|
|
2255
2261
|
},
|
|
2256
|
-
(o) => new
|
|
2262
|
+
(o) => new Y(o.data)
|
|
2257
2263
|
);
|
|
2258
2264
|
}
|
|
2259
2265
|
/**
|
|
@@ -2278,14 +2284,14 @@ class wt extends u {
|
|
|
2278
2284
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_change
|
|
2279
2285
|
*/
|
|
2280
2286
|
changeTemplate(r, e, s, i) {
|
|
2281
|
-
const o =
|
|
2287
|
+
const o = T.getConfig().dateFormats.api;
|
|
2282
2288
|
return this.patch(
|
|
2283
2289
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
2284
2290
|
i && {
|
|
2285
2291
|
startAt: i.startAt && z(i.startAt, o),
|
|
2286
2292
|
endAt: i.endAt && z(i.endAt, o)
|
|
2287
2293
|
},
|
|
2288
|
-
(l) => new
|
|
2294
|
+
(l) => new Y(l.data)
|
|
2289
2295
|
);
|
|
2290
2296
|
}
|
|
2291
2297
|
/**
|
|
@@ -2301,7 +2307,7 @@ class wt extends u {
|
|
|
2301
2307
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2302
2308
|
}
|
|
2303
2309
|
}
|
|
2304
|
-
class
|
|
2310
|
+
class Pt extends u {
|
|
2305
2311
|
/**
|
|
2306
2312
|
* Возвращает список данных о корневых категориях.
|
|
2307
2313
|
*
|
|
@@ -2361,7 +2367,7 @@ class vt extends u {
|
|
|
2361
2367
|
showHidden: s,
|
|
2362
2368
|
withPriceCoefficients: e
|
|
2363
2369
|
},
|
|
2364
|
-
(i) =>
|
|
2370
|
+
(i) => ne(i.data, (o) => new _(o))
|
|
2365
2371
|
);
|
|
2366
2372
|
}
|
|
2367
2373
|
/**
|
|
@@ -2374,7 +2380,7 @@ class vt extends u {
|
|
|
2374
2380
|
getCategoryProductsCoefficients(r) {
|
|
2375
2381
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2376
2382
|
const { data: s } = e;
|
|
2377
|
-
return
|
|
2383
|
+
return lr(s, (i) => i.map((o) => new _e(o))), s;
|
|
2378
2384
|
});
|
|
2379
2385
|
}
|
|
2380
2386
|
/**
|
|
@@ -2393,7 +2399,7 @@ class vt extends u {
|
|
|
2393
2399
|
});
|
|
2394
2400
|
}
|
|
2395
2401
|
}
|
|
2396
|
-
class
|
|
2402
|
+
class Rt extends u {
|
|
2397
2403
|
/**
|
|
2398
2404
|
* Возвращает данные об указанном продукте.
|
|
2399
2405
|
*
|
|
@@ -2403,7 +2409,7 @@ class Pt extends u {
|
|
|
2403
2409
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
2404
2410
|
*/
|
|
2405
2411
|
getProductData(r, e = !1) {
|
|
2406
|
-
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new
|
|
2412
|
+
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new _(s.data));
|
|
2407
2413
|
}
|
|
2408
2414
|
/**
|
|
2409
2415
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -2411,7 +2417,7 @@ class Pt extends u {
|
|
|
2411
2417
|
* @param productId Идентификатор продукта.
|
|
2412
2418
|
*/
|
|
2413
2419
|
getPublicProductData(r) {
|
|
2414
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
2420
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new _(e.data));
|
|
2415
2421
|
}
|
|
2416
2422
|
/**
|
|
2417
2423
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -2424,7 +2430,7 @@ class Pt extends u {
|
|
|
2424
2430
|
return this.get(
|
|
2425
2431
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2426
2432
|
{},
|
|
2427
|
-
(e) =>
|
|
2433
|
+
(e) => ne(e.data, (s) => new _e(s))
|
|
2428
2434
|
);
|
|
2429
2435
|
}
|
|
2430
2436
|
/**
|
|
@@ -2437,7 +2443,7 @@ class Pt extends u {
|
|
|
2437
2443
|
*/
|
|
2438
2444
|
getProductPriceHistory(r, e) {
|
|
2439
2445
|
const s = {};
|
|
2440
|
-
return Ge(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) =>
|
|
2446
|
+
return Ge(e) || (s.clientId = e), this.get(`/internal/price/products/${r}/history`, s, (i) => ne(i.data, (o) => new Er(o)));
|
|
2441
2447
|
}
|
|
2442
2448
|
/**
|
|
2443
2449
|
* Выполняет публичный поиск данных о продуктах по терму.
|
|
@@ -2448,14 +2454,14 @@ class Pt extends u {
|
|
|
2448
2454
|
publicSimpleSearch(r, e = 10) {
|
|
2449
2455
|
return new Promise((s, i) => {
|
|
2450
2456
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2451
|
-
s(o.products.map((l) => new
|
|
2457
|
+
s(o.products.map((l) => new _(l)));
|
|
2452
2458
|
}).catch((o) => {
|
|
2453
2459
|
i(o);
|
|
2454
2460
|
});
|
|
2455
2461
|
});
|
|
2456
2462
|
}
|
|
2457
2463
|
}
|
|
2458
|
-
class
|
|
2464
|
+
class Dt extends u {
|
|
2459
2465
|
/**
|
|
2460
2466
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2461
2467
|
*
|
|
@@ -2471,7 +2477,7 @@ class Rt extends u {
|
|
|
2471
2477
|
clientId: r,
|
|
2472
2478
|
showHidden: e
|
|
2473
2479
|
},
|
|
2474
|
-
(s) => s.data.map((i) => new
|
|
2480
|
+
(s) => s.data.map((i) => new ce(i))
|
|
2475
2481
|
);
|
|
2476
2482
|
}
|
|
2477
2483
|
/**
|
|
@@ -2492,7 +2498,7 @@ class Rt extends u {
|
|
|
2492
2498
|
showHidden: s,
|
|
2493
2499
|
withNestedCategories: i
|
|
2494
2500
|
},
|
|
2495
|
-
(o) => new
|
|
2501
|
+
(o) => new ce(o.data)
|
|
2496
2502
|
);
|
|
2497
2503
|
}
|
|
2498
2504
|
/**
|
|
@@ -2513,11 +2519,11 @@ class Rt extends u {
|
|
|
2513
2519
|
showHidden: i,
|
|
2514
2520
|
withPriceCoefficients: s
|
|
2515
2521
|
},
|
|
2516
|
-
(o) =>
|
|
2522
|
+
(o) => ne(o.data, (l) => new K(l))
|
|
2517
2523
|
);
|
|
2518
2524
|
}
|
|
2519
2525
|
}
|
|
2520
|
-
class
|
|
2526
|
+
class $t extends u {
|
|
2521
2527
|
/**
|
|
2522
2528
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2523
2529
|
*
|
|
@@ -2539,7 +2545,7 @@ class Dt extends u {
|
|
|
2539
2545
|
}
|
|
2540
2546
|
}
|
|
2541
2547
|
var Le = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(Le || {});
|
|
2542
|
-
class
|
|
2548
|
+
class Ne {
|
|
2543
2549
|
/**
|
|
2544
2550
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
2545
2551
|
*
|
|
@@ -2570,10 +2576,10 @@ class ke {
|
|
|
2570
2576
|
field: this.field,
|
|
2571
2577
|
op: this.op
|
|
2572
2578
|
};
|
|
2573
|
-
return r.value =
|
|
2579
|
+
return r.value = pr(this.value) ? z(this.value, T.getConfig().dateFormats.api) : this.value, r;
|
|
2574
2580
|
}
|
|
2575
2581
|
}
|
|
2576
|
-
class
|
|
2582
|
+
class re {
|
|
2577
2583
|
/**
|
|
2578
2584
|
* Инициализирует экземпляр класса {@link FilterGroup}.
|
|
2579
2585
|
*
|
|
@@ -2593,7 +2599,7 @@ class ee {
|
|
|
2593
2599
|
*/
|
|
2594
2600
|
t(this, "groups");
|
|
2595
2601
|
var e, s;
|
|
2596
|
-
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new
|
|
2602
|
+
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new Ne(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new re(i))) ?? [];
|
|
2597
2603
|
}
|
|
2598
2604
|
/**
|
|
2599
2605
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2603,12 +2609,12 @@ class ee {
|
|
|
2603
2609
|
toPrimitive() {
|
|
2604
2610
|
return {
|
|
2605
2611
|
groupOp: this.groupOp,
|
|
2606
|
-
filters: this.filters.map((r) => r instanceof
|
|
2607
|
-
groups: this.groups.map((r) => r instanceof
|
|
2612
|
+
filters: this.filters.map((r) => r instanceof Ne && Me(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2613
|
+
groups: this.groups.map((r) => r instanceof re ? r.toPrimitive() : r)
|
|
2608
2614
|
};
|
|
2609
2615
|
}
|
|
2610
2616
|
}
|
|
2611
|
-
class
|
|
2617
|
+
class we extends u {
|
|
2612
2618
|
/**
|
|
2613
2619
|
* Получает пагинированный список данных.
|
|
2614
2620
|
*
|
|
@@ -2621,14 +2627,14 @@ class ye extends u {
|
|
|
2621
2627
|
* @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
|
|
2622
2628
|
*/
|
|
2623
2629
|
getPaginated(r, e, s, i, o, l, p) {
|
|
2624
|
-
let
|
|
2630
|
+
let g = {
|
|
2625
2631
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2626
2632
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2627
2633
|
};
|
|
2628
|
-
return e && (
|
|
2634
|
+
return e && (g.filters = JSON.stringify((e instanceof re ? e : new re(e)).toPrimitive())), ur(s) || (g.sort = s), o && (g = { ...g, ...o }), this.get(r, g, l, p);
|
|
2629
2635
|
}
|
|
2630
2636
|
}
|
|
2631
|
-
class
|
|
2637
|
+
class At extends we {
|
|
2632
2638
|
/**
|
|
2633
2639
|
* Возвращает список шаблонов прайс-листа.
|
|
2634
2640
|
*
|
|
@@ -2696,7 +2702,7 @@ class $t extends ye {
|
|
|
2696
2702
|
return this.get(
|
|
2697
2703
|
`/internal/price/templates/${r}/products`,
|
|
2698
2704
|
{},
|
|
2699
|
-
(e) => e.data.map((s) => new
|
|
2705
|
+
(e) => e.data.map((s) => new ve(s))
|
|
2700
2706
|
);
|
|
2701
2707
|
}
|
|
2702
2708
|
/**
|
|
@@ -2708,7 +2714,7 @@ class $t extends ye {
|
|
|
2708
2714
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
2709
2715
|
*/
|
|
2710
2716
|
getProductTemplatePrice(r, e) {
|
|
2711
|
-
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new
|
|
2717
|
+
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new ve(s.data));
|
|
2712
2718
|
}
|
|
2713
2719
|
/**
|
|
2714
2720
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -2727,7 +2733,7 @@ class $t extends ye {
|
|
|
2727
2733
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2728
2734
|
increase_percent: s.value
|
|
2729
2735
|
},
|
|
2730
|
-
(o) => new
|
|
2736
|
+
(o) => new ve(o.data)
|
|
2731
2737
|
);
|
|
2732
2738
|
}
|
|
2733
2739
|
/**
|
|
@@ -2812,18 +2818,18 @@ class $t extends ye {
|
|
|
2812
2818
|
return this.get(
|
|
2813
2819
|
`/internal/price/templates/${r}/clients`,
|
|
2814
2820
|
{},
|
|
2815
|
-
(e) => e.data.map((s) => new
|
|
2821
|
+
(e) => e.data.map((s) => new Y(s))
|
|
2816
2822
|
);
|
|
2817
2823
|
}
|
|
2818
2824
|
}
|
|
2819
|
-
class
|
|
2825
|
+
class Tt extends u {
|
|
2820
2826
|
/**
|
|
2821
2827
|
* Возвращает список ролей ценообразования.
|
|
2822
2828
|
*
|
|
2823
2829
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
|
|
2824
2830
|
*/
|
|
2825
2831
|
getRoles() {
|
|
2826
|
-
return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new
|
|
2832
|
+
return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new Z(e)));
|
|
2827
2833
|
}
|
|
2828
2834
|
/**
|
|
2829
2835
|
* Добавляет новую роль ценообразования.
|
|
@@ -2833,7 +2839,7 @@ class At extends u {
|
|
|
2833
2839
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
|
|
2834
2840
|
*/
|
|
2835
2841
|
createRole(r) {
|
|
2836
|
-
return this.post("/internal/price/roles", r, (e) => new
|
|
2842
|
+
return this.post("/internal/price/roles", r, (e) => new Z(e.data));
|
|
2837
2843
|
}
|
|
2838
2844
|
/**
|
|
2839
2845
|
* Возвращает данные роли ценообразования.
|
|
@@ -2843,7 +2849,7 @@ class At extends u {
|
|
|
2843
2849
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
|
|
2844
2850
|
*/
|
|
2845
2851
|
getRole(r) {
|
|
2846
|
-
return this.get(`/internal/price/roles/${r}`, {}, (e) => new
|
|
2852
|
+
return this.get(`/internal/price/roles/${r}`, {}, (e) => new Z(e.data));
|
|
2847
2853
|
}
|
|
2848
2854
|
/**
|
|
2849
2855
|
* Обновляет данные роли ценообразования.
|
|
@@ -2854,7 +2860,7 @@ class At extends u {
|
|
|
2854
2860
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
|
|
2855
2861
|
*/
|
|
2856
2862
|
updateRole(r, e) {
|
|
2857
|
-
return this.patch(`/internal/price/roles/${r}`, e, (s) => new
|
|
2863
|
+
return this.patch(`/internal/price/roles/${r}`, e, (s) => new Z(s.data));
|
|
2858
2864
|
}
|
|
2859
2865
|
/**
|
|
2860
2866
|
* Удаляет роль ценообразования.
|
|
@@ -2877,7 +2883,7 @@ class At extends u {
|
|
|
2877
2883
|
return this.get(
|
|
2878
2884
|
`/internal/price/roles/rules/categories/${r}`,
|
|
2879
2885
|
{},
|
|
2880
|
-
(e) => e.data.map((s) => new
|
|
2886
|
+
(e) => e.data.map((s) => new ke(s))
|
|
2881
2887
|
);
|
|
2882
2888
|
}
|
|
2883
2889
|
/**
|
|
@@ -2892,11 +2898,11 @@ class At extends u {
|
|
|
2892
2898
|
return this.patch(
|
|
2893
2899
|
`/internal/price/roles/rules/categories/${r}`,
|
|
2894
2900
|
e,
|
|
2895
|
-
(s) => s.data.map((i) => new
|
|
2901
|
+
(s) => s.data.map((i) => new ke(i))
|
|
2896
2902
|
);
|
|
2897
2903
|
}
|
|
2898
2904
|
}
|
|
2899
|
-
class
|
|
2905
|
+
class bt extends we {
|
|
2900
2906
|
/**
|
|
2901
2907
|
* Возвращает пагинированный список свойств.
|
|
2902
2908
|
*
|
|
@@ -2909,7 +2915,7 @@ class Tt extends ye {
|
|
|
2909
2915
|
getProperties(r, e, s) {
|
|
2910
2916
|
return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
|
|
2911
2917
|
const o = { ...i.data };
|
|
2912
|
-
return o.data = o.data.map((l) => new
|
|
2918
|
+
return o.data = o.data.map((l) => new X(l)), o;
|
|
2913
2919
|
});
|
|
2914
2920
|
}
|
|
2915
2921
|
/**
|
|
@@ -2926,7 +2932,7 @@ class Tt extends ye {
|
|
|
2926
2932
|
...s,
|
|
2927
2933
|
type: e
|
|
2928
2934
|
},
|
|
2929
|
-
(i) => new
|
|
2935
|
+
(i) => new X(i.data)
|
|
2930
2936
|
);
|
|
2931
2937
|
}
|
|
2932
2938
|
/**
|
|
@@ -2936,7 +2942,7 @@ class Tt extends ye {
|
|
|
2936
2942
|
* @see /doc/api/internal#/operations/api_internal_catalog_properties_get
|
|
2937
2943
|
*/
|
|
2938
2944
|
getProperty(r) {
|
|
2939
|
-
return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new
|
|
2945
|
+
return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new X(e.data));
|
|
2940
2946
|
}
|
|
2941
2947
|
/**
|
|
2942
2948
|
* Обновляет существующее свойство.
|
|
@@ -2953,7 +2959,7 @@ class Tt extends ye {
|
|
|
2953
2959
|
...i,
|
|
2954
2960
|
type: s
|
|
2955
2961
|
},
|
|
2956
|
-
(o) => new
|
|
2962
|
+
(o) => new X(o.data)
|
|
2957
2963
|
);
|
|
2958
2964
|
}
|
|
2959
2965
|
/**
|
|
@@ -3268,7 +3274,7 @@ class Tt extends ye {
|
|
|
3268
3274
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3269
3275
|
}
|
|
3270
3276
|
}
|
|
3271
|
-
class
|
|
3277
|
+
class _t extends u {
|
|
3272
3278
|
/**
|
|
3273
3279
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
3274
3280
|
*
|
|
@@ -3310,11 +3316,11 @@ class bt extends u {
|
|
|
3310
3316
|
});
|
|
3311
3317
|
}
|
|
3312
3318
|
}
|
|
3313
|
-
const
|
|
3319
|
+
const Oe = (n) => {
|
|
3314
3320
|
const r = {};
|
|
3315
3321
|
return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
|
|
3316
3322
|
};
|
|
3317
|
-
class
|
|
3323
|
+
class at extends u {
|
|
3318
3324
|
/**
|
|
3319
3325
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
3320
3326
|
*
|
|
@@ -3326,8 +3332,8 @@ class _t extends u {
|
|
|
3326
3332
|
analyzeProductPrices(r, e) {
|
|
3327
3333
|
return this.get(
|
|
3328
3334
|
`/internal/price/products/${r}/analyze`,
|
|
3329
|
-
{ ...
|
|
3330
|
-
(s) => s.data.map((i) => new
|
|
3335
|
+
{ ...Oe(e) },
|
|
3336
|
+
(s) => s.data.map((i) => new Pe(i))
|
|
3331
3337
|
);
|
|
3332
3338
|
}
|
|
3333
3339
|
/**
|
|
@@ -3341,8 +3347,8 @@ class _t extends u {
|
|
|
3341
3347
|
analyzeCategoryPrices(r, e) {
|
|
3342
3348
|
return this.get(
|
|
3343
3349
|
`/internal/price/categories/${r}/analyze`,
|
|
3344
|
-
{ ...
|
|
3345
|
-
(s) => s.data.map((i) => new
|
|
3350
|
+
{ ...Oe(e) },
|
|
3351
|
+
(s) => s.data.map((i) => new Pe(i))
|
|
3346
3352
|
);
|
|
3347
3353
|
}
|
|
3348
3354
|
/**
|
|
@@ -3359,12 +3365,12 @@ class _t extends u {
|
|
|
3359
3365
|
return this.get(
|
|
3360
3366
|
`/internal/price/categories/${r}/analyze/square`,
|
|
3361
3367
|
{ ...e },
|
|
3362
|
-
(s) => s.data.map((i) => new
|
|
3368
|
+
(s) => s.data.map((i) => new Pe(i))
|
|
3363
3369
|
);
|
|
3364
3370
|
}
|
|
3365
3371
|
}
|
|
3366
|
-
var
|
|
3367
|
-
class
|
|
3372
|
+
var Kr = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n))(Kr || {});
|
|
3373
|
+
class Te extends F {
|
|
3368
3374
|
/**
|
|
3369
3375
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3370
3376
|
*
|
|
@@ -3391,11 +3397,11 @@ class Ae extends d {
|
|
|
3391
3397
|
/**
|
|
3392
3398
|
* Данные о валюте.
|
|
3393
3399
|
*/
|
|
3394
|
-
t(this, "currency", new
|
|
3395
|
-
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new
|
|
3400
|
+
t(this, "currency", new pe());
|
|
3401
|
+
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new pe(e.currency));
|
|
3396
3402
|
}
|
|
3397
3403
|
}
|
|
3398
|
-
class
|
|
3404
|
+
class be extends D {
|
|
3399
3405
|
/**
|
|
3400
3406
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3401
3407
|
*
|
|
@@ -3414,7 +3420,7 @@ class Te extends A {
|
|
|
3414
3420
|
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;
|
|
3415
3421
|
}
|
|
3416
3422
|
}
|
|
3417
|
-
class
|
|
3423
|
+
class M extends be {
|
|
3418
3424
|
/**
|
|
3419
3425
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3420
3426
|
*
|
|
@@ -3449,7 +3455,7 @@ class F extends Te {
|
|
|
3449
3455
|
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 = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3450
3456
|
}
|
|
3451
3457
|
}
|
|
3452
|
-
class
|
|
3458
|
+
class Ye extends D {
|
|
3453
3459
|
/**
|
|
3454
3460
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3455
3461
|
*
|
|
@@ -3461,19 +3467,19 @@ class Qe extends A {
|
|
|
3461
3467
|
/**
|
|
3462
3468
|
* Данные о менеджере.
|
|
3463
3469
|
*/
|
|
3464
|
-
t(this, "manager", new
|
|
3470
|
+
t(this, "manager", new oe());
|
|
3465
3471
|
/**
|
|
3466
3472
|
* Данные об организационно-правовой форме.
|
|
3467
3473
|
*/
|
|
3468
|
-
t(this, "opf",
|
|
3474
|
+
t(this, "opf", U.generatePersonItem());
|
|
3469
3475
|
/**
|
|
3470
3476
|
* Направление продаж.
|
|
3471
3477
|
*/
|
|
3472
|
-
t(this, "salesDirection", new
|
|
3478
|
+
t(this, "salesDirection", new S());
|
|
3473
3479
|
/**
|
|
3474
3480
|
* Группа партнеров (направление деятельности).
|
|
3475
3481
|
*/
|
|
3476
|
-
t(this, "partnerGroup", new
|
|
3482
|
+
t(this, "partnerGroup", new G());
|
|
3477
3483
|
/**
|
|
3478
3484
|
* Список контактных лиц контрагента.
|
|
3479
3485
|
*/
|
|
@@ -3507,22 +3513,22 @@ class Qe extends A {
|
|
|
3507
3513
|
*/
|
|
3508
3514
|
t(this, "updater");
|
|
3509
3515
|
if (e) {
|
|
3510
|
-
if (this.opf = new
|
|
3516
|
+
if (this.opf = new U(e.opf), this.salesDirection = new S(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : e.createdAt, this.creator = e.creator ? new d(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new d(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new G(e.partnerGroup)), e.manager && (this.manager = new oe(e.manager)), e.contacts) {
|
|
3511
3517
|
const s = [];
|
|
3512
3518
|
e.contacts.forEach((i) => {
|
|
3513
|
-
s.push(new
|
|
3519
|
+
s.push(new M(i));
|
|
3514
3520
|
}), this.contacts = s;
|
|
3515
3521
|
}
|
|
3516
3522
|
if (e.bankAccounts) {
|
|
3517
3523
|
const s = [];
|
|
3518
3524
|
e.bankAccounts.forEach((i) => {
|
|
3519
|
-
s.push(new
|
|
3525
|
+
s.push(new Te(i));
|
|
3520
3526
|
}), this.bankAccounts = s;
|
|
3521
3527
|
}
|
|
3522
3528
|
}
|
|
3523
3529
|
}
|
|
3524
3530
|
}
|
|
3525
|
-
class
|
|
3531
|
+
class Jr extends Ye {
|
|
3526
3532
|
/**
|
|
3527
3533
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3528
3534
|
*
|
|
@@ -3532,7 +3538,7 @@ class Kr extends Qe {
|
|
|
3532
3538
|
super(r);
|
|
3533
3539
|
}
|
|
3534
3540
|
}
|
|
3535
|
-
class
|
|
3541
|
+
class Xe extends Ye {
|
|
3536
3542
|
/**
|
|
3537
3543
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
3538
3544
|
*
|
|
@@ -3575,7 +3581,7 @@ class Ye extends Qe {
|
|
|
3575
3581
|
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 ?? "");
|
|
3576
3582
|
}
|
|
3577
3583
|
}
|
|
3578
|
-
class
|
|
3584
|
+
class Ze extends Xe {
|
|
3579
3585
|
/**
|
|
3580
3586
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
3581
3587
|
*
|
|
@@ -3590,7 +3596,7 @@ class Xe extends Ye {
|
|
|
3590
3596
|
e && (this.kpp = e.kpp ?? "");
|
|
3591
3597
|
}
|
|
3592
3598
|
}
|
|
3593
|
-
class
|
|
3599
|
+
class Qr extends Ze {
|
|
3594
3600
|
/**
|
|
3595
3601
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3596
3602
|
*
|
|
@@ -3613,7 +3619,7 @@ class Jr extends Xe {
|
|
|
3613
3619
|
e && (this.registrationCountry = new J(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
3614
3620
|
}
|
|
3615
3621
|
}
|
|
3616
|
-
class
|
|
3622
|
+
class ue {
|
|
3617
3623
|
/**
|
|
3618
3624
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
3619
3625
|
*
|
|
@@ -3621,18 +3627,18 @@ class pe {
|
|
|
3621
3627
|
*/
|
|
3622
3628
|
static createInstance(r) {
|
|
3623
3629
|
switch (r.opf.slug) {
|
|
3624
|
-
case
|
|
3625
|
-
return new Ye(r);
|
|
3626
|
-
case x.UlR:
|
|
3630
|
+
case b.Ic:
|
|
3627
3631
|
return new Xe(r);
|
|
3628
|
-
case
|
|
3629
|
-
return new
|
|
3632
|
+
case b.UlR:
|
|
3633
|
+
return new Ze(r);
|
|
3634
|
+
case b.UlNr:
|
|
3635
|
+
return new Qr(r);
|
|
3630
3636
|
default:
|
|
3631
|
-
return new
|
|
3637
|
+
return new Jr(r);
|
|
3632
3638
|
}
|
|
3633
3639
|
}
|
|
3634
3640
|
}
|
|
3635
|
-
class
|
|
3641
|
+
class Re extends F {
|
|
3636
3642
|
/**
|
|
3637
3643
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
3638
3644
|
*
|
|
@@ -3647,7 +3653,7 @@ class Pe extends d {
|
|
|
3647
3653
|
this.isPrimary = e.isPrimary;
|
|
3648
3654
|
}
|
|
3649
3655
|
}
|
|
3650
|
-
class
|
|
3656
|
+
class Yr extends M {
|
|
3651
3657
|
/**
|
|
3652
3658
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3653
3659
|
*
|
|
@@ -3672,10 +3678,10 @@ class Qr extends F {
|
|
|
3672
3678
|
*/
|
|
3673
3679
|
addresses: []
|
|
3674
3680
|
});
|
|
3675
|
-
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new
|
|
3681
|
+
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Re(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Re(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Re(s))));
|
|
3676
3682
|
}
|
|
3677
3683
|
}
|
|
3678
|
-
class
|
|
3684
|
+
class he extends Or {
|
|
3679
3685
|
/**
|
|
3680
3686
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
3681
3687
|
*
|
|
@@ -3712,10 +3718,10 @@ class ue extends Nr {
|
|
|
3712
3718
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
3713
3719
|
*/
|
|
3714
3720
|
t(this, "isTransportCompanyAddress");
|
|
3715
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
3721
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Be(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new M(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
|
|
3716
3722
|
}
|
|
3717
3723
|
}
|
|
3718
|
-
class
|
|
3724
|
+
class qe extends se {
|
|
3719
3725
|
/**
|
|
3720
3726
|
* Инициализирует экземпляр класса {@link Client}.
|
|
3721
3727
|
*
|
|
@@ -3769,7 +3775,25 @@ class Oe extends te {
|
|
|
3769
3775
|
* Дополнительные данные о клиенте.
|
|
3770
3776
|
*/
|
|
3771
3777
|
t(this, "extraData");
|
|
3772
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) =>
|
|
3778
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => ue.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new G(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new M(p))) ?? [], this.deliveryAddresses = ((l = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : l.map((p) => new he(p))) ?? [], this.channelPrimaryInterest = new Ke(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Qe(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new E(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new fe(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
3779
|
+
}
|
|
3780
|
+
}
|
|
3781
|
+
class Q {
|
|
3782
|
+
/**
|
|
3783
|
+
* Инициализирует экземпляр класса {@link DatePeriod}.
|
|
3784
|
+
*
|
|
3785
|
+
* @param data Данные для первоначальной инициализации.
|
|
3786
|
+
*/
|
|
3787
|
+
constructor(r) {
|
|
3788
|
+
/**
|
|
3789
|
+
* Начало периода.
|
|
3790
|
+
*/
|
|
3791
|
+
t(this, "from");
|
|
3792
|
+
/**
|
|
3793
|
+
* Окончание периода.
|
|
3794
|
+
*/
|
|
3795
|
+
t(this, "to");
|
|
3796
|
+
this.from = m(r == null ? void 0 : r.from) ? f(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = m(r == null ? void 0 : r.to) ? f(r.to) : (r == null ? void 0 : r.to) ?? null;
|
|
3773
3797
|
}
|
|
3774
3798
|
}
|
|
3775
3799
|
class St {
|
|
@@ -3822,17 +3846,11 @@ class St {
|
|
|
3822
3846
|
/**
|
|
3823
3847
|
* Период регистрации.
|
|
3824
3848
|
*/
|
|
3825
|
-
t(this, "createdAt",
|
|
3826
|
-
from: null,
|
|
3827
|
-
to: null
|
|
3828
|
-
});
|
|
3849
|
+
t(this, "createdAt", new Q());
|
|
3829
3850
|
/**
|
|
3830
3851
|
* Период последнего входа.
|
|
3831
3852
|
*/
|
|
3832
|
-
t(this, "lastLoginDate",
|
|
3833
|
-
from: null,
|
|
3834
|
-
to: null
|
|
3835
|
-
});
|
|
3853
|
+
t(this, "lastLoginDate", new Q());
|
|
3836
3854
|
/**
|
|
3837
3855
|
* Признак того, что в указанный период последнего входа, клиентом был сделан заказ.
|
|
3838
3856
|
*/
|
|
@@ -3857,10 +3875,6 @@ class St {
|
|
|
3857
3875
|
* Предпочитаемый тип доставки.
|
|
3858
3876
|
*/
|
|
3859
3877
|
t(this, "preferredDeliveryType");
|
|
3860
|
-
/**
|
|
3861
|
-
* Признак, что у клиента имеются цены ниже стоп-цен.
|
|
3862
|
-
*/
|
|
3863
|
-
t(this, "hasCostLessThenStop");
|
|
3864
3878
|
/**
|
|
3865
3879
|
* Группа партнеров (направление деятельности).
|
|
3866
3880
|
*/
|
|
@@ -3873,17 +3887,11 @@ class St {
|
|
|
3873
3887
|
* Данные о параметрах поиска последнего заказа который сделал пользователь.
|
|
3874
3888
|
*/
|
|
3875
3889
|
t(this, "lastOrder");
|
|
3876
|
-
var e, s, i
|
|
3877
|
-
this.id = (r == null ? void 0 : r.id) ?? "", this.name = (r == null ? void 0 : r.name) ?? "", this.alternativeName = (r == null ? void 0 : r.alternativeName) ?? "", this.searchTerm = (r == null ? void 0 : r.searchTerm) ?? "", this.city = new
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
from: m((h = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : h.from) ? f((D = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : D.from) : ($ = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : $.from,
|
|
3882
|
-
to: m((T = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : T.to) ? f((b = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : b.to) : (_ = r == null ? void 0 : r.lastLoginDate) == null ? void 0 : _.to
|
|
3883
|
-
}, this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((c) => new fe(c)) : [], this.salesDirection = new O(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new G(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new E(r == null ? void 0 : r.preferredDeliveryType), this.hasCostLessThenStop = r != null && r.hasCostLessThenStop ? !0 : void 0, this.partnerGroup = new M(r == null ? void 0 : r.partnerGroup), this.contact = new Te(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
3884
|
-
createdAt: (S = r == null ? void 0 : r.lastOrder) == null ? void 0 : S.createdAt,
|
|
3885
|
-
creator: (L = r == null ? void 0 : r.lastOrder) == null ? void 0 : L.creator,
|
|
3886
|
-
isApproved: (k = r == null ? void 0 : r.lastOrder) == null ? void 0 : k.isApproved
|
|
3890
|
+
var e, s, i;
|
|
3891
|
+
this.id = (r == null ? void 0 : r.id) ?? "", this.name = (r == null ? void 0 : r.name) ?? "", this.alternativeName = (r == null ? void 0 : r.alternativeName) ?? "", this.searchTerm = (r == null ? void 0 : r.searchTerm) ?? "", this.city = new le(r == null ? void 0 : r.city), this.region = new ee(r == null ? void 0 : r.region), this.country = new J(r == null ? void 0 : r.country), this.phone = (r == null ? void 0 : r.phone) ?? "", this.email = (r == null ? void 0 : r.email) ?? "", this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new Q(r == null ? void 0 : r.createdAt), this.lastLoginDate = new Q(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((o) => new ye(o)) : [], this.salesDirection = new S(r == null ? void 0 : r.salesDirection), this.contragentInn = (r == null ? void 0 : r.contragentInn) ?? "", this.contragentType = new U(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new E(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroup = new G(r == null ? void 0 : r.partnerGroup), this.contact = new be(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
3892
|
+
createdAt: new Q((e = r == null ? void 0 : r.lastOrder) == null ? void 0 : e.createdAt),
|
|
3893
|
+
creator: (s = r == null ? void 0 : r.lastOrder) == null ? void 0 : s.creator,
|
|
3894
|
+
isApproved: (i = r == null ? void 0 : r.lastOrder) == null ? void 0 : i.isApproved
|
|
3887
3895
|
};
|
|
3888
3896
|
}
|
|
3889
3897
|
/**
|
|
@@ -3903,10 +3911,10 @@ class St {
|
|
|
3903
3911
|
this[r] = "";
|
|
3904
3912
|
break;
|
|
3905
3913
|
case "city":
|
|
3906
|
-
this.city = new
|
|
3914
|
+
this.city = new le();
|
|
3907
3915
|
break;
|
|
3908
3916
|
case "region":
|
|
3909
|
-
this.region = new
|
|
3917
|
+
this.region = new ee();
|
|
3910
3918
|
break;
|
|
3911
3919
|
case "isActive":
|
|
3912
3920
|
this.isActive = !0;
|
|
@@ -3927,22 +3935,19 @@ class St {
|
|
|
3927
3935
|
this.managers = [];
|
|
3928
3936
|
break;
|
|
3929
3937
|
case "salesDirection":
|
|
3930
|
-
this.salesDirection = new
|
|
3938
|
+
this.salesDirection = new S();
|
|
3931
3939
|
break;
|
|
3932
3940
|
case "contragentType":
|
|
3933
|
-
this.contragentType = new
|
|
3941
|
+
this.contragentType = new U();
|
|
3934
3942
|
break;
|
|
3935
3943
|
case "preferredDeliveryType":
|
|
3936
3944
|
this.preferredDeliveryType = new E();
|
|
3937
3945
|
break;
|
|
3938
3946
|
case "partnerGroup":
|
|
3939
|
-
this.partnerGroup = new
|
|
3940
|
-
break;
|
|
3941
|
-
case "hasCostLessThenStop":
|
|
3942
|
-
this.hasCostLessThenStop = void 0;
|
|
3947
|
+
this.partnerGroup = new G();
|
|
3943
3948
|
break;
|
|
3944
3949
|
case "contact":
|
|
3945
|
-
this.contact = new
|
|
3950
|
+
this.contact = new be();
|
|
3946
3951
|
break;
|
|
3947
3952
|
}
|
|
3948
3953
|
return this;
|
|
@@ -3961,7 +3966,7 @@ class St {
|
|
|
3961
3966
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.lastLoginDate) != null && i.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
|
|
3962
3967
|
}
|
|
3963
3968
|
}
|
|
3964
|
-
class
|
|
3969
|
+
class er extends F {
|
|
3965
3970
|
/**
|
|
3966
3971
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
3967
3972
|
*
|
|
@@ -3981,17 +3986,17 @@ class Ze extends d {
|
|
|
3981
3986
|
* Признак того, что заказ подтвержден в 1С.
|
|
3982
3987
|
*/
|
|
3983
3988
|
t(this, "isApproved1c");
|
|
3984
|
-
this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new
|
|
3989
|
+
this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new d(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
3985
3990
|
}
|
|
3986
3991
|
}
|
|
3987
|
-
class
|
|
3992
|
+
class rr extends er {
|
|
3988
3993
|
/**
|
|
3989
3994
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
3990
3995
|
*
|
|
3991
3996
|
* @param data Данные для первоначальной инициализации.
|
|
3992
3997
|
*/
|
|
3993
3998
|
constructor(e) {
|
|
3994
|
-
var s, i, o, l, p,
|
|
3999
|
+
var s, i, o, l, p, g, $, A;
|
|
3995
4000
|
super(e);
|
|
3996
4001
|
/**
|
|
3997
4002
|
* Краткие данные о клиенте.
|
|
@@ -4033,19 +4038,19 @@ class er extends Ze {
|
|
|
4033
4038
|
* Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
|
|
4034
4039
|
*/
|
|
4035
4040
|
t(this, "isNotInStock");
|
|
4036
|
-
this.client = new
|
|
4041
|
+
this.client = new se(e == null ? void 0 : e.client), this.payment = {
|
|
4037
4042
|
type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
|
|
4038
4043
|
status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
|
|
4039
4044
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
4040
4045
|
}, this.delivery = {
|
|
4041
4046
|
type: ((l = e == null ? void 0 : e.delivery) == null ? void 0 : l.type) ?? -1,
|
|
4042
|
-
date: m((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? f(e.delivery.date) : ((
|
|
4043
|
-
address: (
|
|
4044
|
-
warehouse: (
|
|
4045
|
-
}, this.attachedUser = new
|
|
4047
|
+
date: m((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? f(e.delivery.date) : ((g = e == null ? void 0 : e.delivery) == null ? void 0 : g.date) ?? /* @__PURE__ */ new Date(),
|
|
4048
|
+
address: ($ = e == null ? void 0 : e.delivery) != null && $.address ? new he(e.delivery.address) : void 0,
|
|
4049
|
+
warehouse: (A = e == null ? void 0 : e.delivery) != null && A.warehouse ? new fe(e.delivery.warehouse) : void 0
|
|
4050
|
+
}, this.attachedUser = new d(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 = m(e == null ? void 0 : e.pendingAt) ? f(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? f(e.processedAt) : e == null ? void 0 : e.processedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1;
|
|
4046
4051
|
}
|
|
4047
4052
|
}
|
|
4048
|
-
class
|
|
4053
|
+
class Xr extends F {
|
|
4049
4054
|
/**
|
|
4050
4055
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
4051
4056
|
*
|
|
@@ -4128,7 +4133,7 @@ class Yr extends d {
|
|
|
4128
4133
|
this.product = new K(e.product), this.quantity = e.quantity, this.currency = e.currency, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing;
|
|
4129
4134
|
}
|
|
4130
4135
|
}
|
|
4131
|
-
class
|
|
4136
|
+
class Zr extends rr {
|
|
4132
4137
|
/**
|
|
4133
4138
|
* Инициализирует экземпляр класса {@link Order}.
|
|
4134
4139
|
*
|
|
@@ -4168,10 +4173,10 @@ class Xr extends er {
|
|
|
4168
4173
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
4169
4174
|
*/
|
|
4170
4175
|
t(this, "isAllowProcessingWithoutPayment");
|
|
4171
|
-
this.products = (e.products ?? []).map((s) => new
|
|
4176
|
+
this.products = (e.products ?? []).map((s) => new Xr(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? ue.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
4172
4177
|
}
|
|
4173
4178
|
}
|
|
4174
|
-
class Lt extends
|
|
4179
|
+
class Lt extends we {
|
|
4175
4180
|
/**
|
|
4176
4181
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
4177
4182
|
*
|
|
@@ -4184,7 +4189,7 @@ class Lt extends ye {
|
|
|
4184
4189
|
getOrders(r, e, s) {
|
|
4185
4190
|
return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
|
|
4186
4191
|
const o = { ...i.data };
|
|
4187
|
-
return o.data = o.data.map((l) => new
|
|
4192
|
+
return o.data = o.data.map((l) => new rr(l)), o;
|
|
4188
4193
|
});
|
|
4189
4194
|
}
|
|
4190
4195
|
/**
|
|
@@ -4202,10 +4207,10 @@ class Lt extends ye {
|
|
|
4202
4207
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
4203
4208
|
*/
|
|
4204
4209
|
getOrder(r) {
|
|
4205
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
4210
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new Zr(e.data));
|
|
4206
4211
|
}
|
|
4207
4212
|
}
|
|
4208
|
-
class
|
|
4213
|
+
class et extends D {
|
|
4209
4214
|
/**
|
|
4210
4215
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4211
4216
|
*
|
|
@@ -4230,10 +4235,10 @@ class Zr extends A {
|
|
|
4230
4235
|
* Данные о последнем заказе клиента.
|
|
4231
4236
|
*/
|
|
4232
4237
|
t(this, "lastOrder");
|
|
4233
|
-
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new
|
|
4238
|
+
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new er(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new G(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new E(e.preferredDeliveryType));
|
|
4234
4239
|
}
|
|
4235
4240
|
}
|
|
4236
|
-
class
|
|
4241
|
+
class rt {
|
|
4237
4242
|
/**
|
|
4238
4243
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
4239
4244
|
*
|
|
@@ -4251,7 +4256,7 @@ class et {
|
|
|
4251
4256
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4252
4257
|
}
|
|
4253
4258
|
}
|
|
4254
|
-
class It extends
|
|
4259
|
+
class It extends rt {
|
|
4255
4260
|
/**
|
|
4256
4261
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4257
4262
|
*
|
|
@@ -4300,7 +4305,7 @@ class xt {
|
|
|
4300
4305
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4301
4306
|
}
|
|
4302
4307
|
}
|
|
4303
|
-
class
|
|
4308
|
+
class kt extends we {
|
|
4304
4309
|
/**
|
|
4305
4310
|
* Возвращает данные об указанном клиенте.
|
|
4306
4311
|
*
|
|
@@ -4308,7 +4313,7 @@ class at extends ye {
|
|
|
4308
4313
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
4309
4314
|
*/
|
|
4310
4315
|
getClient(r) {
|
|
4311
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
4316
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new qe(e.data));
|
|
4312
4317
|
}
|
|
4313
4318
|
/**
|
|
4314
4319
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -4323,7 +4328,7 @@ class at extends ye {
|
|
|
4323
4328
|
getClientsList(r, e, s, i) {
|
|
4324
4329
|
return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
|
|
4325
4330
|
const l = { ...o.data };
|
|
4326
|
-
return l.data = l.data.map((p) => new
|
|
4331
|
+
return l.data = l.data.map((p) => new se(p)), l;
|
|
4327
4332
|
});
|
|
4328
4333
|
}
|
|
4329
4334
|
/**
|
|
@@ -4349,7 +4354,7 @@ class at extends ye {
|
|
|
4349
4354
|
getAdditionalClientsData(r, e) {
|
|
4350
4355
|
return this.post("/internal/clients/additional-data", { clients: r, requested_data_types: e }, (s) => {
|
|
4351
4356
|
let i = [];
|
|
4352
|
-
return (s == null ? void 0 : s.data.length) > 0 && (i = s.data.map((o) => new
|
|
4357
|
+
return (s == null ? void 0 : s.data.length) > 0 && (i = s.data.map((o) => new et(o))), i;
|
|
4353
4358
|
});
|
|
4354
4359
|
}
|
|
4355
4360
|
/**
|
|
@@ -4361,7 +4366,7 @@ class at extends ye {
|
|
|
4361
4366
|
getAllClientContacts(r) {
|
|
4362
4367
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
4363
4368
|
let s = [];
|
|
4364
|
-
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new
|
|
4369
|
+
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Yr(i))), s;
|
|
4365
4370
|
});
|
|
4366
4371
|
}
|
|
4367
4372
|
/**
|
|
@@ -4391,7 +4396,7 @@ class at extends ye {
|
|
|
4391
4396
|
is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
|
|
4392
4397
|
preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
|
|
4393
4398
|
},
|
|
4394
|
-
(i) => new
|
|
4399
|
+
(i) => new qe(i.data),
|
|
4395
4400
|
e
|
|
4396
4401
|
);
|
|
4397
4402
|
}
|
|
@@ -4501,17 +4506,17 @@ class at extends ye {
|
|
|
4501
4506
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
|
|
4502
4507
|
*/
|
|
4503
4508
|
createContragentClientData(r, e, s = {}) {
|
|
4504
|
-
var
|
|
4509
|
+
var g, $, A, L, I, x, k, N;
|
|
4505
4510
|
let i;
|
|
4506
4511
|
const o = e, l = e, p = e;
|
|
4507
4512
|
switch (e.opf.slug) {
|
|
4508
|
-
case
|
|
4513
|
+
case b.Ic:
|
|
4509
4514
|
i = {
|
|
4510
4515
|
opf: o.opf.slug,
|
|
4511
4516
|
name: o.name,
|
|
4512
4517
|
alternative_name: o.alternativeName,
|
|
4513
|
-
partner_group_id: (
|
|
4514
|
-
manager_id: (
|
|
4518
|
+
partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
|
|
4519
|
+
manager_id: ($ = o.manager) == null ? void 0 : $.id,
|
|
4515
4520
|
comment: o.comment,
|
|
4516
4521
|
inn: o.inn,
|
|
4517
4522
|
okpo: o.okpo,
|
|
@@ -4523,13 +4528,13 @@ class at extends ye {
|
|
|
4523
4528
|
actual_address: o.actualAddress
|
|
4524
4529
|
};
|
|
4525
4530
|
break;
|
|
4526
|
-
case
|
|
4531
|
+
case b.UlR:
|
|
4527
4532
|
i = {
|
|
4528
4533
|
opf: l.opf.slug,
|
|
4529
4534
|
name: l.name,
|
|
4530
4535
|
alternative_name: l.alternativeName,
|
|
4531
|
-
partner_group_id: (
|
|
4532
|
-
manager_id: (
|
|
4536
|
+
partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
|
|
4537
|
+
manager_id: (L = l.manager) == null ? void 0 : L.id,
|
|
4533
4538
|
comment: l.comment,
|
|
4534
4539
|
inn: l.inn,
|
|
4535
4540
|
kpp: l.kpp,
|
|
@@ -4542,13 +4547,13 @@ class at extends ye {
|
|
|
4542
4547
|
actual_address: l.actualAddress
|
|
4543
4548
|
};
|
|
4544
4549
|
break;
|
|
4545
|
-
case
|
|
4550
|
+
case b.UlNr:
|
|
4546
4551
|
i = {
|
|
4547
4552
|
opf: p.opf.slug,
|
|
4548
4553
|
name: p.name,
|
|
4549
4554
|
alternative_name: p.alternativeName,
|
|
4550
|
-
partner_group_id: (
|
|
4551
|
-
manager_id: (
|
|
4555
|
+
partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
|
|
4556
|
+
manager_id: (x = p.manager) == null ? void 0 : x.id,
|
|
4552
4557
|
comment: p.comment,
|
|
4553
4558
|
director_name: p.directorName,
|
|
4554
4559
|
director_position: p.directorPosition,
|
|
@@ -4566,8 +4571,8 @@ class at extends ye {
|
|
|
4566
4571
|
opf: e.opf.slug,
|
|
4567
4572
|
name: e.name,
|
|
4568
4573
|
alternative_name: e.alternativeName,
|
|
4569
|
-
partner_group_id: (
|
|
4570
|
-
manager_id: (
|
|
4574
|
+
partner_group_id: (k = e.partnerGroup) == null ? void 0 : k.id,
|
|
4575
|
+
manager_id: (N = e.manager) == null ? void 0 : N.id,
|
|
4571
4576
|
comment: e.comment
|
|
4572
4577
|
};
|
|
4573
4578
|
break;
|
|
@@ -4575,7 +4580,7 @@ class at extends ye {
|
|
|
4575
4580
|
return this.post(
|
|
4576
4581
|
`/internal/clients/${r}/contragents`,
|
|
4577
4582
|
i,
|
|
4578
|
-
(
|
|
4583
|
+
(O) => ue.createInstance(O.data),
|
|
4579
4584
|
s
|
|
4580
4585
|
);
|
|
4581
4586
|
}
|
|
@@ -4590,17 +4595,17 @@ class at extends ye {
|
|
|
4590
4595
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
|
|
4591
4596
|
*/
|
|
4592
4597
|
updateContragentClientData(r, e, s = {}) {
|
|
4593
|
-
var
|
|
4598
|
+
var g, $, A, L, I, x, k, N;
|
|
4594
4599
|
let i;
|
|
4595
4600
|
const o = e, l = e, p = e;
|
|
4596
4601
|
switch (e.opf.slug) {
|
|
4597
|
-
case
|
|
4602
|
+
case b.Ic:
|
|
4598
4603
|
i = {
|
|
4599
4604
|
opf: o.opf.slug,
|
|
4600
4605
|
name: o.name,
|
|
4601
4606
|
alternative_name: o.alternativeName,
|
|
4602
|
-
partner_group_id: (
|
|
4603
|
-
manager_id: (
|
|
4607
|
+
partner_group_id: (g = o.partnerGroup) == null ? void 0 : g.id,
|
|
4608
|
+
manager_id: ($ = o.manager) == null ? void 0 : $.id,
|
|
4604
4609
|
comment: o.comment,
|
|
4605
4610
|
inn: o.inn,
|
|
4606
4611
|
okpo: o.okpo,
|
|
@@ -4612,13 +4617,13 @@ class at extends ye {
|
|
|
4612
4617
|
actual_address: o.actualAddress
|
|
4613
4618
|
};
|
|
4614
4619
|
break;
|
|
4615
|
-
case
|
|
4620
|
+
case b.UlR:
|
|
4616
4621
|
i = {
|
|
4617
4622
|
opf: l.opf.slug,
|
|
4618
4623
|
name: l.name,
|
|
4619
4624
|
alternative_name: l.alternativeName,
|
|
4620
|
-
partner_group_id: (
|
|
4621
|
-
manager_id: (
|
|
4625
|
+
partner_group_id: (A = l.partnerGroup) == null ? void 0 : A.id,
|
|
4626
|
+
manager_id: (L = l.manager) == null ? void 0 : L.id,
|
|
4622
4627
|
comment: l.comment,
|
|
4623
4628
|
inn: l.inn,
|
|
4624
4629
|
kpp: l.kpp,
|
|
@@ -4631,13 +4636,13 @@ class at extends ye {
|
|
|
4631
4636
|
actual_address: l.actualAddress
|
|
4632
4637
|
};
|
|
4633
4638
|
break;
|
|
4634
|
-
case
|
|
4639
|
+
case b.UlNr:
|
|
4635
4640
|
i = {
|
|
4636
4641
|
opf: p.opf.slug,
|
|
4637
4642
|
name: p.name,
|
|
4638
4643
|
alternative_name: p.alternativeName,
|
|
4639
|
-
partner_group_id: (
|
|
4640
|
-
manager_id: (
|
|
4644
|
+
partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
|
|
4645
|
+
manager_id: (x = p.manager) == null ? void 0 : x.id,
|
|
4641
4646
|
comment: p.comment,
|
|
4642
4647
|
director_name: p.directorName,
|
|
4643
4648
|
director_position: p.directorPosition,
|
|
@@ -4655,8 +4660,8 @@ class at extends ye {
|
|
|
4655
4660
|
opf: e.opf.slug,
|
|
4656
4661
|
name: e.name,
|
|
4657
4662
|
alternative_name: e.alternativeName,
|
|
4658
|
-
partner_group_id: (
|
|
4659
|
-
manager_id: (
|
|
4663
|
+
partner_group_id: (k = e.partnerGroup) == null ? void 0 : k.id,
|
|
4664
|
+
manager_id: (N = e.manager) == null ? void 0 : N.id,
|
|
4660
4665
|
comment: e.comment
|
|
4661
4666
|
};
|
|
4662
4667
|
break;
|
|
@@ -4664,7 +4669,7 @@ class at extends ye {
|
|
|
4664
4669
|
return this.patch(
|
|
4665
4670
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
4666
4671
|
i,
|
|
4667
|
-
(
|
|
4672
|
+
(O) => ue.createInstance(O.data),
|
|
4668
4673
|
s
|
|
4669
4674
|
);
|
|
4670
4675
|
}
|
|
@@ -4702,7 +4707,7 @@ class at extends ye {
|
|
|
4702
4707
|
}), e.operatingHours && (i.operating_hours = {
|
|
4703
4708
|
from: e.operatingHours.from,
|
|
4704
4709
|
to: e.operatingHours.to
|
|
4705
|
-
}), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new
|
|
4710
|
+
}), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new he(p.data), s);
|
|
4706
4711
|
}
|
|
4707
4712
|
/**
|
|
4708
4713
|
* Обновляет данные об адресе доставки клиента.
|
|
@@ -4731,7 +4736,7 @@ class at extends ye {
|
|
|
4731
4736
|
}), this.patch(
|
|
4732
4737
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
4733
4738
|
i,
|
|
4734
|
-
(p) => new
|
|
4739
|
+
(p) => new he(p.data),
|
|
4735
4740
|
s
|
|
4736
4741
|
);
|
|
4737
4742
|
}
|
|
@@ -4767,7 +4772,7 @@ class at extends ye {
|
|
|
4767
4772
|
correspondent_account: s.correspondentAccount,
|
|
4768
4773
|
currency_id: s.currency.id
|
|
4769
4774
|
},
|
|
4770
|
-
(o) => new
|
|
4775
|
+
(o) => new Te(o.data),
|
|
4771
4776
|
i
|
|
4772
4777
|
);
|
|
4773
4778
|
}
|
|
@@ -4793,7 +4798,7 @@ class at extends ye {
|
|
|
4793
4798
|
correspondent_account: s.correspondentAccount,
|
|
4794
4799
|
currency_id: s.currency.id
|
|
4795
4800
|
},
|
|
4796
|
-
(o) => new
|
|
4801
|
+
(o) => new Te(o.data),
|
|
4797
4802
|
i
|
|
4798
4803
|
);
|
|
4799
4804
|
}
|
|
@@ -4854,7 +4859,7 @@ class at extends ye {
|
|
|
4854
4859
|
comment: e.comment,
|
|
4855
4860
|
not_disturb: e.notDisturb
|
|
4856
4861
|
},
|
|
4857
|
-
(i) => new
|
|
4862
|
+
(i) => new M(i.data),
|
|
4858
4863
|
s
|
|
4859
4864
|
);
|
|
4860
4865
|
}
|
|
@@ -4997,7 +5002,7 @@ class at extends ye {
|
|
|
4997
5002
|
comment: e.comment,
|
|
4998
5003
|
...s
|
|
4999
5004
|
};
|
|
5000
|
-
return (l = e.phone) != null && l.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (
|
|
5005
|
+
return (l = e.phone) != null && l.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (g) => new M(g.data), i);
|
|
5001
5006
|
}
|
|
5002
5007
|
/**
|
|
5003
5008
|
* Устанавливает признак основного контактного лица.
|
|
@@ -5026,7 +5031,7 @@ class at extends ye {
|
|
|
5026
5031
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
5027
5032
|
}
|
|
5028
5033
|
}
|
|
5029
|
-
class
|
|
5034
|
+
class Nt extends u {
|
|
5030
5035
|
/**
|
|
5031
5036
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
5032
5037
|
*
|
|
@@ -5040,7 +5045,7 @@ class kt extends u {
|
|
|
5040
5045
|
});
|
|
5041
5046
|
}
|
|
5042
5047
|
}
|
|
5043
|
-
class
|
|
5048
|
+
class Ot extends u {
|
|
5044
5049
|
/**
|
|
5045
5050
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
5046
5051
|
*
|
|
@@ -5068,7 +5073,7 @@ class Nt extends u {
|
|
|
5068
5073
|
const i = this.get(
|
|
5069
5074
|
`internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
|
|
5070
5075
|
{ params: e },
|
|
5071
|
-
(l) => new
|
|
5076
|
+
(l) => new _(l.data)
|
|
5072
5077
|
);
|
|
5073
5078
|
return i.catch((l) => {
|
|
5074
5079
|
this.defaultInstanceNotificationErrorResponseHandler(l, s);
|
|
@@ -5111,18 +5116,18 @@ class Nt extends u {
|
|
|
5111
5116
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
|
|
5112
5117
|
}
|
|
5113
5118
|
}
|
|
5114
|
-
class
|
|
5119
|
+
class qt {
|
|
5115
5120
|
/**
|
|
5116
5121
|
* Возвращает диапазон дат по умолчанию.
|
|
5117
5122
|
*/
|
|
5118
5123
|
static defaultDateRanges() {
|
|
5119
|
-
const r =
|
|
5124
|
+
const r = mr(/* @__PURE__ */ new Date(), 1);
|
|
5120
5125
|
return {
|
|
5121
5126
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5122
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
5123
|
-
today: { label: "Сегодня", from: Fe(), to:
|
|
5124
|
-
yesterday: { label: "Вчера", from: Cr(), to:
|
|
5125
|
-
tomorrow: { label: "Завтра", from:
|
|
5127
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: Rr(r), to: Pr(r) },
|
|
5128
|
+
today: { label: "Сегодня", from: Fe(), to: vr() },
|
|
5129
|
+
yesterday: { label: "Вчера", from: Cr(), to: wr() },
|
|
5130
|
+
tomorrow: { label: "Завтра", from: yr(), to: fr() }
|
|
5126
5131
|
};
|
|
5127
5132
|
}
|
|
5128
5133
|
}
|
|
@@ -5166,13 +5171,13 @@ const V = class V {
|
|
|
5166
5171
|
* Список единиц измерения линейной величины.
|
|
5167
5172
|
*/
|
|
5168
5173
|
t(V, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5169
|
-
let
|
|
5170
|
-
class
|
|
5174
|
+
let de = V;
|
|
5175
|
+
class dt {
|
|
5171
5176
|
/**
|
|
5172
5177
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5173
5178
|
*/
|
|
5174
5179
|
static generateUndefinedManagerInstance() {
|
|
5175
|
-
return new
|
|
5180
|
+
return new ye({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
|
|
5176
5181
|
}
|
|
5177
5182
|
/**
|
|
5178
5183
|
* Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
|
|
@@ -5183,19 +5188,19 @@ class qt {
|
|
|
5183
5188
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5184
5189
|
}
|
|
5185
5190
|
}
|
|
5186
|
-
class
|
|
5191
|
+
class tt extends u {
|
|
5187
5192
|
/**
|
|
5188
5193
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5189
5194
|
*/
|
|
5190
5195
|
getManagers() {
|
|
5191
5196
|
const r = "/internal/managers", e = u.getCachedResponse(r);
|
|
5192
5197
|
return e ? Promise.resolve(e) : this.get(r).then((s) => {
|
|
5193
|
-
const i = s.data.map((o) =>
|
|
5198
|
+
const i = s.data.map((o) => ae.instanceInitializer(ye, o));
|
|
5194
5199
|
return i && this.cacheResponse(r, i), i;
|
|
5195
5200
|
});
|
|
5196
5201
|
}
|
|
5197
5202
|
}
|
|
5198
|
-
class
|
|
5203
|
+
class st {
|
|
5199
5204
|
/**
|
|
5200
5205
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
5201
5206
|
*
|
|
@@ -5249,7 +5254,7 @@ class Ue {
|
|
|
5249
5254
|
*/
|
|
5250
5255
|
t(this, "meta");
|
|
5251
5256
|
var e;
|
|
5252
|
-
this.resourceType = new
|
|
5257
|
+
this.resourceType = new Je(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new st(s))) ?? [];
|
|
5253
5258
|
}
|
|
5254
5259
|
}
|
|
5255
5260
|
class Ut extends u {
|
|
@@ -5283,8 +5288,8 @@ class Ut extends u {
|
|
|
5283
5288
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
5284
5289
|
}
|
|
5285
5290
|
}
|
|
5286
|
-
const P =
|
|
5287
|
-
const n =
|
|
5291
|
+
const P = ge("__references_private", () => {
|
|
5292
|
+
const n = C({}), r = C(void 0), e = C(void 0), s = C(void 0), i = C(void 0), o = C(void 0), l = C(void 0), p = C(void 0), g = C(void 0), $ = C(void 0), A = C(void 0), L = C(void 0), I = C(void 0), x = C(void 0), k = C(void 0), N = C(void 0), O = C(void 0), c = C(void 0);
|
|
5288
5293
|
return {
|
|
5289
5294
|
/**
|
|
5290
5295
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5321,129 +5326,129 @@ const P = he("__references_private", () => {
|
|
|
5321
5326
|
/**
|
|
5322
5327
|
* Справочник статусов заказов.
|
|
5323
5328
|
*/
|
|
5324
|
-
orderStatusReference:
|
|
5329
|
+
orderStatusReference: g,
|
|
5325
5330
|
/**
|
|
5326
5331
|
* Справочник типов оплаты заказов.
|
|
5327
5332
|
*/
|
|
5328
|
-
paymentTypeReference:
|
|
5333
|
+
paymentTypeReference: $,
|
|
5329
5334
|
/**
|
|
5330
5335
|
* Справочник групп партнеров.
|
|
5331
5336
|
*/
|
|
5332
|
-
partnerGroupReference:
|
|
5337
|
+
partnerGroupReference: A,
|
|
5333
5338
|
/**
|
|
5334
5339
|
* Справочник типов файлов продукктов/категорий.
|
|
5335
5340
|
*/
|
|
5336
|
-
productFileTypeReference:
|
|
5341
|
+
productFileTypeReference: L,
|
|
5337
5342
|
/**
|
|
5338
5343
|
* Справочник типов ресурсов.
|
|
5339
5344
|
*/
|
|
5340
|
-
resourceTypesReference:
|
|
5345
|
+
resourceTypesReference: I,
|
|
5341
5346
|
/**
|
|
5342
5347
|
* Справочник направлений продаж.
|
|
5343
5348
|
*/
|
|
5344
|
-
salesDirectionsReference:
|
|
5349
|
+
salesDirectionsReference: x,
|
|
5345
5350
|
/**
|
|
5346
5351
|
* Справочник источников первичного интереса.
|
|
5347
5352
|
*/
|
|
5348
|
-
sourcePrimaryInterestReference:
|
|
5353
|
+
sourcePrimaryInterestReference: k,
|
|
5349
5354
|
/**
|
|
5350
5355
|
* Справочник складов.
|
|
5351
5356
|
*/
|
|
5352
|
-
warehousesReference:
|
|
5357
|
+
warehousesReference: N,
|
|
5353
5358
|
/**
|
|
5354
5359
|
* Справочник типов свойств.
|
|
5355
5360
|
*/
|
|
5356
|
-
propertyTypesReference:
|
|
5361
|
+
propertyTypesReference: O,
|
|
5357
5362
|
/**
|
|
5358
5363
|
* Справочник коэффициентов цен.
|
|
5359
5364
|
*/
|
|
5360
5365
|
priceCoefficientsReference: c
|
|
5361
5366
|
};
|
|
5362
|
-
}), Gt =
|
|
5367
|
+
}), Gt = ge("references", () => {
|
|
5363
5368
|
const n = v(() => {
|
|
5364
5369
|
const c = P();
|
|
5365
|
-
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((
|
|
5366
|
-
c.channelPrimaryInterestReference =
|
|
5370
|
+
return !c.channelPrimaryInterestReference && !c.dataLoaderList.channelPrimaryInterestReference && (c.dataLoaderList.channelPrimaryInterestReference = !0, u.getInstance(R).getChannelPrimaryInterest().then((h) => {
|
|
5371
|
+
c.channelPrimaryInterestReference = h;
|
|
5367
5372
|
}).catch(y)), c.channelPrimaryInterestReference;
|
|
5368
5373
|
}), r = v(() => {
|
|
5369
5374
|
const c = P();
|
|
5370
|
-
return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(R).getContactPositions().then((
|
|
5371
|
-
c.contactPositionsReference =
|
|
5375
|
+
return !c.contactPositionsReference && !c.dataLoaderList.contactPositionsReference && (c.dataLoaderList.contactPositionsReference = !0, u.getInstance(R).getContactPositions().then((h) => {
|
|
5376
|
+
c.contactPositionsReference = h;
|
|
5372
5377
|
}).catch(y)), c.contactPositionsReference;
|
|
5373
5378
|
}), e = v(() => {
|
|
5374
5379
|
const c = P();
|
|
5375
|
-
return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(R).getCurrency().then((
|
|
5376
|
-
c.currencyReference =
|
|
5380
|
+
return !c.currencyReference && !c.dataLoaderList.currencyReference && (c.dataLoaderList.currencyReference = !0, u.getInstance(R).getCurrency().then((h) => {
|
|
5381
|
+
c.currencyReference = h;
|
|
5377
5382
|
}).catch(y)), c.currencyReference;
|
|
5378
5383
|
}), s = v(() => {
|
|
5379
5384
|
const c = P();
|
|
5380
|
-
return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(R).getOpf().then((
|
|
5381
|
-
c.opfReference =
|
|
5385
|
+
return !c.opfReference && !c.dataLoaderList.opfReference && (c.dataLoaderList.opfReference = !0, u.getInstance(R).getOpf().then((h) => {
|
|
5386
|
+
c.opfReference = h;
|
|
5382
5387
|
}).catch(y)), c.opfReference;
|
|
5383
5388
|
}), i = v(() => {
|
|
5384
5389
|
const c = P();
|
|
5385
|
-
return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(R).getOrderPaymentStatuses().then((
|
|
5386
|
-
c.orderPaymentStatusReference =
|
|
5390
|
+
return !c.orderPaymentStatusReference && !c.dataLoaderList.orderPaymentStatusReference && (c.dataLoaderList.orderPaymentStatusReference = !0, u.getInstance(R).getOrderPaymentStatuses().then((h) => {
|
|
5391
|
+
c.orderPaymentStatusReference = h;
|
|
5387
5392
|
}).catch(y)), c.orderPaymentStatusReference;
|
|
5388
5393
|
}), o = v(() => {
|
|
5389
5394
|
const c = P();
|
|
5390
|
-
return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(R).getOrderStatuses().then((
|
|
5391
|
-
c.orderStatusReference =
|
|
5395
|
+
return !c.orderStatusReference && !c.dataLoaderList.orderStatusReference && (c.dataLoaderList.orderStatusReference = !0, u.getInstance(R).getOrderStatuses().then((h) => {
|
|
5396
|
+
c.orderStatusReference = h;
|
|
5392
5397
|
}).catch(y)), c.orderStatusReference;
|
|
5393
5398
|
}), l = v(() => {
|
|
5394
5399
|
const c = P();
|
|
5395
|
-
return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(R).getPaymentTypes().then((
|
|
5396
|
-
c.paymentTypeReference =
|
|
5400
|
+
return !c.paymentTypeReference && !c.dataLoaderList.paymentTypeReference && (c.dataLoaderList.paymentTypeReference = !0, u.getInstance(R).getPaymentTypes().then((h) => {
|
|
5401
|
+
c.paymentTypeReference = h;
|
|
5397
5402
|
}).catch(y)), c.paymentTypeReference;
|
|
5398
5403
|
}), p = v(() => {
|
|
5399
5404
|
const c = P();
|
|
5400
|
-
return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(R).getPartnerGroup().then((
|
|
5401
|
-
c.partnerGroupReference =
|
|
5405
|
+
return !c.partnerGroupReference && !c.dataLoaderList.partnerGroupReference && (c.dataLoaderList.partnerGroupReference = !0, u.getInstance(R).getPartnerGroup().then((h) => {
|
|
5406
|
+
c.partnerGroupReference = h;
|
|
5402
5407
|
}).catch(y)), c.partnerGroupReference;
|
|
5403
|
-
}),
|
|
5408
|
+
}), g = v(() => {
|
|
5404
5409
|
const c = P();
|
|
5405
|
-
return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(R).getProductFileType().then((
|
|
5406
|
-
c.productFileTypeReference =
|
|
5410
|
+
return !c.productFileTypeReference && !c.dataLoaderList.productFileTypeReference && (c.dataLoaderList.productFileTypeReference = !0, u.getInstance(R).getProductFileType().then((h) => {
|
|
5411
|
+
c.productFileTypeReference = h;
|
|
5407
5412
|
}).catch(y)), c.productFileTypeReference;
|
|
5408
|
-
}),
|
|
5413
|
+
}), $ = v(() => {
|
|
5409
5414
|
const c = P();
|
|
5410
|
-
return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(R).getResourceTypes().then((
|
|
5411
|
-
c.resourceTypesReference =
|
|
5415
|
+
return !c.resourceTypesReference && !c.dataLoaderList.resourceTypesReference && (c.dataLoaderList.resourceTypesReference = !0, u.getInstance(R).getResourceTypes().then((h) => {
|
|
5416
|
+
c.resourceTypesReference = h;
|
|
5412
5417
|
}).catch(y)), c.resourceTypesReference;
|
|
5413
|
-
}),
|
|
5418
|
+
}), A = v(() => {
|
|
5414
5419
|
const c = P();
|
|
5415
|
-
return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(R).getSalesDirections().then((
|
|
5416
|
-
c.salesDirectionsReference =
|
|
5420
|
+
return !c.salesDirectionsReference && !c.dataLoaderList.salesDirectionsReference && (c.dataLoaderList.salesDirectionsReference = !0, u.getInstance(R).getSalesDirections().then((h) => {
|
|
5421
|
+
c.salesDirectionsReference = h;
|
|
5417
5422
|
}).catch(y)), c.salesDirectionsReference;
|
|
5418
|
-
}),
|
|
5423
|
+
}), L = v(() => {
|
|
5419
5424
|
const c = P();
|
|
5420
|
-
return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(R).getSourcePrimaryInterest().then((
|
|
5421
|
-
c.sourcePrimaryInterestReference =
|
|
5425
|
+
return !c.sourcePrimaryInterestReference && !c.dataLoaderList.sourcePrimaryInterestReference && (c.dataLoaderList.sourcePrimaryInterestReference = !0, u.getInstance(R).getSourcePrimaryInterest().then((h) => {
|
|
5426
|
+
c.sourcePrimaryInterestReference = h;
|
|
5422
5427
|
}).catch(y)), c.sourcePrimaryInterestReference;
|
|
5423
|
-
}),
|
|
5428
|
+
}), I = v(() => {
|
|
5424
5429
|
const c = P();
|
|
5425
|
-
return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(R).getDeliveryTypes().then((
|
|
5426
|
-
c.deliveryTypeReference =
|
|
5430
|
+
return !c.deliveryTypeReference && !c.dataLoaderList.deliveryTypeReference && (c.dataLoaderList.deliveryTypeReference = !0, u.getInstance(R).getDeliveryTypes().then((h) => {
|
|
5431
|
+
c.deliveryTypeReference = h;
|
|
5427
5432
|
}).catch(y)), c.deliveryTypeReference;
|
|
5428
|
-
}),
|
|
5433
|
+
}), x = v(() => {
|
|
5429
5434
|
const c = P();
|
|
5430
|
-
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(
|
|
5431
|
-
c.managersList =
|
|
5435
|
+
return !c.managersList && !c.dataLoaderList.managersList && (c.dataLoaderList.managersList = !0, u.getInstance(tt).getManagers().then((h) => {
|
|
5436
|
+
c.managersList = h;
|
|
5432
5437
|
}).catch(y)), c.managersList;
|
|
5433
|
-
}),
|
|
5438
|
+
}), k = v(() => {
|
|
5434
5439
|
const c = P();
|
|
5435
|
-
return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(R).getWarehouses().then((
|
|
5436
|
-
c.warehousesReference =
|
|
5440
|
+
return !c.warehousesReference && !c.dataLoaderList.warehousesReference && (c.dataLoaderList.warehousesReference = !0, u.getInstance(R).getWarehouses().then((h) => {
|
|
5441
|
+
c.warehousesReference = h;
|
|
5437
5442
|
}).catch(y)), c.warehousesReference;
|
|
5438
|
-
}),
|
|
5443
|
+
}), N = v(() => {
|
|
5439
5444
|
const c = P();
|
|
5440
|
-
return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(R).getPropertyTypes().then((
|
|
5441
|
-
c.propertyTypesReference =
|
|
5445
|
+
return !c.propertyTypesReference && !c.dataLoaderList.propertyTypesReference && (c.dataLoaderList.propertyTypesReference = !0, u.getInstance(R).getPropertyTypes().then((h) => {
|
|
5446
|
+
c.propertyTypesReference = h;
|
|
5442
5447
|
}).catch(y)), c.propertyTypesReference;
|
|
5443
|
-
}),
|
|
5448
|
+
}), O = v(() => {
|
|
5444
5449
|
const c = P();
|
|
5445
|
-
return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(R).getPriceCoefficients().then((
|
|
5446
|
-
c.priceCoefficientsReference =
|
|
5450
|
+
return !c.priceCoefficientsReference && !c.dataLoaderList.priceCoefficientsReference && (c.dataLoaderList.priceCoefficientsReference = !0, u.getInstance(R).getPriceCoefficients().then((h) => {
|
|
5451
|
+
c.priceCoefficientsReference = h;
|
|
5447
5452
|
}).catch(y)), c.priceCoefficientsReference;
|
|
5448
5453
|
});
|
|
5449
5454
|
return {
|
|
@@ -5482,42 +5487,42 @@ const P = he("__references_private", () => {
|
|
|
5482
5487
|
/**
|
|
5483
5488
|
* Справочник типов файлов продуктов/категорий.
|
|
5484
5489
|
*/
|
|
5485
|
-
productFilesTypesReference:
|
|
5490
|
+
productFilesTypesReference: g,
|
|
5486
5491
|
/**
|
|
5487
5492
|
* Справочник типов ресурсов.
|
|
5488
5493
|
*/
|
|
5489
|
-
resourceTypesReference:
|
|
5494
|
+
resourceTypesReference: $,
|
|
5490
5495
|
/**
|
|
5491
5496
|
* Справочник направлений продаж.
|
|
5492
5497
|
*/
|
|
5493
|
-
salesDirectionsReference:
|
|
5498
|
+
salesDirectionsReference: A,
|
|
5494
5499
|
/**
|
|
5495
5500
|
* Справочник каналов первичного интереса.
|
|
5496
5501
|
*/
|
|
5497
|
-
sourcePrimaryInterestsReference:
|
|
5502
|
+
sourcePrimaryInterestsReference: L,
|
|
5498
5503
|
/**
|
|
5499
5504
|
* Справочник типов доставки.
|
|
5500
5505
|
*/
|
|
5501
|
-
deliveryTypeReference:
|
|
5506
|
+
deliveryTypeReference: I,
|
|
5502
5507
|
/**
|
|
5503
5508
|
* Список менеджеров.
|
|
5504
5509
|
*/
|
|
5505
|
-
managersList:
|
|
5510
|
+
managersList: x,
|
|
5506
5511
|
/**
|
|
5507
5512
|
* Справочник складов.
|
|
5508
5513
|
*/
|
|
5509
|
-
warehousesReference:
|
|
5514
|
+
warehousesReference: k,
|
|
5510
5515
|
/**
|
|
5511
5516
|
* Справочник типов свойств.
|
|
5512
5517
|
*/
|
|
5513
|
-
propertyTypesReference:
|
|
5518
|
+
propertyTypesReference: N,
|
|
5514
5519
|
/**
|
|
5515
5520
|
* Справочник коэффициентов цен.
|
|
5516
5521
|
*/
|
|
5517
|
-
priceCoefficientsReference:
|
|
5522
|
+
priceCoefficientsReference: O
|
|
5518
5523
|
};
|
|
5519
|
-
}),
|
|
5520
|
-
const n =
|
|
5524
|
+
}), it = ge("__user_state_private", () => {
|
|
5525
|
+
const n = C({}), r = C(void 0);
|
|
5521
5526
|
return {
|
|
5522
5527
|
/**
|
|
5523
5528
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5528,13 +5533,13 @@ const P = he("__references_private", () => {
|
|
|
5528
5533
|
*/
|
|
5529
5534
|
currentUser: r
|
|
5530
5535
|
};
|
|
5531
|
-
}), Mt =
|
|
5536
|
+
}), Mt = ge("user_state", () => ({
|
|
5532
5537
|
/**
|
|
5533
5538
|
* Данные о текущем пользователе.
|
|
5534
5539
|
*/
|
|
5535
5540
|
currentUser: v(() => {
|
|
5536
|
-
const r =
|
|
5537
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(
|
|
5541
|
+
const r = it();
|
|
5542
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, u.getInstance(Vr).getCurrentUser().then((e) => {
|
|
5538
5543
|
r.currentUser = e;
|
|
5539
5544
|
}).catch(y).finally(y)), r.currentUser;
|
|
5540
5545
|
})
|
|
@@ -5586,7 +5591,7 @@ class Ft extends u {
|
|
|
5586
5591
|
});
|
|
5587
5592
|
}
|
|
5588
5593
|
}
|
|
5589
|
-
class
|
|
5594
|
+
class Ht {
|
|
5590
5595
|
/**
|
|
5591
5596
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
5592
5597
|
*
|
|
@@ -5611,137 +5616,137 @@ class dt {
|
|
|
5611
5616
|
}
|
|
5612
5617
|
export {
|
|
5613
5618
|
Gr as AnyReference,
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5619
|
+
gt as AppBaseConfig,
|
|
5620
|
+
T as AppConfigProvider,
|
|
5621
|
+
Te as BankAccount,
|
|
5622
|
+
we as BasePaginationProvider,
|
|
5623
|
+
kr as CalculationTypeEnum,
|
|
5624
|
+
ie as Cart,
|
|
5625
|
+
ar as CartItem,
|
|
5626
|
+
_r as CartItemBase,
|
|
5627
|
+
mt as CartProvider,
|
|
5628
|
+
wt as CatalogProvider,
|
|
5629
|
+
He as CatalogableItem,
|
|
5625
5630
|
q as Category,
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5631
|
+
ke as CategoryPricingRule,
|
|
5632
|
+
Ke as ChannelPrimaryInterest,
|
|
5633
|
+
yt as City,
|
|
5634
|
+
le as CityWithRegionAndCountry,
|
|
5635
|
+
qe as Client,
|
|
5636
|
+
et as ClientAdditionalData,
|
|
5637
|
+
ce as ClientCategory,
|
|
5638
|
+
kt as ClientDataProvider,
|
|
5634
5639
|
Ct as ClientPriceProvider,
|
|
5635
|
-
|
|
5640
|
+
vt as ClientPriceTemplateProvider,
|
|
5636
5641
|
K as ClientProduct,
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5642
|
+
Dt as ClientProductCategoryDataProvider,
|
|
5643
|
+
$t as ClientProductDataProvider,
|
|
5644
|
+
se as ClientShortInfo,
|
|
5645
|
+
Kr as ClientsAdditionalDataRequestTypeEnum,
|
|
5641
5646
|
St as ClientsListFilters,
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
+
Ot as ConfiguratorProvider,
|
|
5648
|
+
be as Contact,
|
|
5649
|
+
dr as ContactLinks,
|
|
5650
|
+
M as ContactPerson,
|
|
5651
|
+
Yr as ContactPersonRelated,
|
|
5647
5652
|
Mr as ContactPosition,
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5653
|
+
Re as ContactRelation,
|
|
5654
|
+
Ye as ContragentBase,
|
|
5655
|
+
ue as ContragentFactory,
|
|
5656
|
+
Xe as ContragentIc,
|
|
5657
|
+
Jr as ContragentPerson,
|
|
5658
|
+
Qr as ContragentUlNr,
|
|
5659
|
+
Ze as ContragentUlR,
|
|
5655
5660
|
Se as CostSourceEnum,
|
|
5656
5661
|
J as Country,
|
|
5657
|
-
|
|
5662
|
+
pe as Currency,
|
|
5658
5663
|
Ft as DataSuggestionProvider,
|
|
5659
5664
|
It as DataTablePagination,
|
|
5660
|
-
|
|
5665
|
+
rt as DataTablePaginationRequestParams,
|
|
5661
5666
|
xt as DataTableSortRequestParams,
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5667
|
+
qt as DateTimeProvider,
|
|
5668
|
+
Or as DeletableNamedIdentity,
|
|
5669
|
+
he as DeliveryAddress,
|
|
5665
5670
|
E as DeliveryType,
|
|
5666
5671
|
Sr as DeviceTypeResolutionConfig,
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5672
|
+
qr as DiscountShortInfo,
|
|
5673
|
+
Ht as FieldValidationResultData,
|
|
5674
|
+
re as FilterGroup,
|
|
5675
|
+
Ne as FilterItem,
|
|
5671
5676
|
Le as FilterOpEnum,
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5677
|
+
Be as GeoCoordinates,
|
|
5678
|
+
Tr as HiddenCatalogableItem,
|
|
5679
|
+
Ae as HttpBaseCachedRequester,
|
|
5680
|
+
$e as HttpBaseRequester,
|
|
5676
5681
|
Lr as HttpParamsConfig,
|
|
5677
5682
|
u as HttpRequester,
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5683
|
+
F as Identity,
|
|
5684
|
+
br as Image,
|
|
5685
|
+
ye as Manager,
|
|
5686
|
+
oe as ManagerCommon,
|
|
5687
|
+
dt as ManagerDataFactory,
|
|
5688
|
+
tt as ManagerDataProvider,
|
|
5689
|
+
st as MetaTagItem,
|
|
5690
|
+
D as NamedIdentity,
|
|
5691
|
+
U as Opf,
|
|
5692
|
+
b as OpfEnum,
|
|
5693
|
+
Zr as Order,
|
|
5694
|
+
rr as OrderInfo,
|
|
5690
5695
|
Fr as OrderPaymentStatus,
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5696
|
+
Xr as OrderProduct,
|
|
5697
|
+
er as OrderShortInfo,
|
|
5698
|
+
Hr as OrderStatus,
|
|
5694
5699
|
Lt as OrdersDataProvider,
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5700
|
+
G as PartnerGroup,
|
|
5701
|
+
zr as PaymentType,
|
|
5702
|
+
ft as PreferencesStorageProvider,
|
|
5703
|
+
Pe as PriceAnalyze,
|
|
5704
|
+
at as PriceAnalyzeProvider,
|
|
5705
|
+
me as PriceCoefficient,
|
|
5706
|
+
ze as PriceCoefficientEnum,
|
|
5702
5707
|
B as PriceTemplate,
|
|
5703
5708
|
Ce as PriceTemplateCategory,
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5709
|
+
Y as PriceTemplateClient,
|
|
5710
|
+
je as PriceTemplateICatalogableItem,
|
|
5711
|
+
ve as PriceTemplateProduct,
|
|
5712
|
+
At as PriceTemplateProvider,
|
|
5713
|
+
Z as PricingRole,
|
|
5714
|
+
Tt as PricingRoleProvider,
|
|
5715
|
+
De as PrimaryCatalogableItem,
|
|
5716
|
+
_ as Product,
|
|
5717
|
+
Pt as ProductCategoryDataProvider,
|
|
5718
|
+
Rt as ProductDataProvider,
|
|
5719
|
+
Br as ProductFileType,
|
|
5720
|
+
_e as ProductPriceCoefficient,
|
|
5721
|
+
Er as ProductPriceHistory,
|
|
5722
|
+
bt as PropertiesProvider,
|
|
5723
|
+
X as Property,
|
|
5724
|
+
Ee as PropertyType,
|
|
5725
|
+
Nr as PropertyTypeEnum,
|
|
5721
5726
|
H as PropertyValue,
|
|
5722
|
-
|
|
5727
|
+
_t as RecommendationsDataProvider,
|
|
5723
5728
|
xe as RecommendationsList,
|
|
5724
|
-
|
|
5729
|
+
w as Reference,
|
|
5725
5730
|
R as ReferenceDataProvider,
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5731
|
+
ee as Region,
|
|
5732
|
+
Je as ResourceType,
|
|
5733
|
+
S as SalesDirection,
|
|
5729
5734
|
Ir as SentryConfig,
|
|
5730
5735
|
Ue as Seo,
|
|
5731
5736
|
Ut as SeoDataProvider,
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5737
|
+
Qe as SourcePrimaryInterest,
|
|
5738
|
+
Ar as StockCount,
|
|
5739
|
+
ae as TypedInstanceFactory,
|
|
5740
|
+
de as UnitsHelper,
|
|
5741
|
+
Nt as UnknownClientDataProvider,
|
|
5742
|
+
We as UpdatableNamedIdentity,
|
|
5743
|
+
jr as User,
|
|
5744
|
+
Ve as UserCommonInfo,
|
|
5745
|
+
Vr as UserDataProvider,
|
|
5746
|
+
d as UserShortInfo,
|
|
5747
|
+
Wr as UserTypeEnum,
|
|
5743
5748
|
xr as VersionConfig,
|
|
5744
|
-
|
|
5749
|
+
fe as Warehouse,
|
|
5745
5750
|
Gt as useReferencesStore,
|
|
5746
5751
|
Mt as useUserStateStore
|
|
5747
5752
|
};
|