@snabcentr/common-lib 1.62.3 → 1.63.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 +2 -2
- package/dist/sc-common-lib.js +290 -290
- 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 +6 -6
- package/dist/src/clients/classes/clients-list-filters.d.ts.map +1 -1
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts +6 -6
- package/dist/src/clients/interfaces/i-clients-list-filters.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var or = Object.defineProperty;
|
|
2
2
|
var cr = (n, r, e) => r in n ? or(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
3
|
var s = (n, r, e) => cr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
-
import { isNil as U, toUpper as lr, constant as ur, isUndefined as pr, isString as m, cloneDeep as hr, noop as y, toLower as gr, isEmpty as ae, isFunction as
|
|
5
|
-
import { parseISO as f, format as
|
|
6
|
-
import
|
|
7
|
-
import { objectToSnake as Oe, objectToCamel as
|
|
8
|
-
import { defineStore as
|
|
9
|
-
import { ref as
|
|
10
|
-
class
|
|
4
|
+
import { isNil as U, toUpper as lr, constant as ur, isUndefined as pr, isString as m, cloneDeep as hr, noop as y, toLower as gr, isEmpty as ae, isFunction as Se, map as ce, forEach as mr, isDate as fr, isArray as Be, omitBy as yr, isObject as Cr } from "lodash-es";
|
|
5
|
+
import { parseISO as f, format as B, addSeconds as wr, isAfter as vr, startOfToday as We, addBusinessDays as Pr, endOfTomorrow as Rr, startOfTomorrow as Ar, endOfYesterday as Dr, startOfYesterday as $r, endOfToday as br, endOfDay as Tr, startOfDay as _r } from "date-fns";
|
|
6
|
+
import ar from "axios";
|
|
7
|
+
import { objectToSnake as Oe, objectToCamel as Sr } from "ts-case-convert";
|
|
8
|
+
import { defineStore as ge } from "pinia";
|
|
9
|
+
import { ref as w, computed as v } from "vue";
|
|
10
|
+
class H {
|
|
11
11
|
/**
|
|
12
12
|
* Инициализирует экземпляр класса {@link Identity}.
|
|
13
13
|
*
|
|
@@ -32,7 +32,7 @@ class z {
|
|
|
32
32
|
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : U(this.id);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
class $ extends
|
|
35
|
+
class $ extends H {
|
|
36
36
|
/**
|
|
37
37
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
38
38
|
*
|
|
@@ -70,7 +70,7 @@ class je extends $ {
|
|
|
70
70
|
this.slug = (e == null ? void 0 : e.slug) ?? "", this.code = (e == null ? void 0 : e.code) ?? "";
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
class
|
|
73
|
+
class De extends je {
|
|
74
74
|
/**
|
|
75
75
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
76
76
|
*
|
|
@@ -85,7 +85,7 @@ class $e extends je {
|
|
|
85
85
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
class ie extends
|
|
88
|
+
class ie extends De {
|
|
89
89
|
/**
|
|
90
90
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
91
91
|
*
|
|
@@ -113,7 +113,7 @@ class ie extends $e {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
var Ve = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(Ve || {});
|
|
116
|
-
class
|
|
116
|
+
class C extends $ {
|
|
117
117
|
/**
|
|
118
118
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
119
119
|
*
|
|
@@ -132,7 +132,7 @@ class w extends $ {
|
|
|
132
132
|
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
class
|
|
135
|
+
class me extends C {
|
|
136
136
|
/**
|
|
137
137
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
138
138
|
*/
|
|
@@ -140,7 +140,7 @@ class fe extends w {
|
|
|
140
140
|
return { id: -2, slug: Ve.Retail, name: "Розн. цена", guid: "", isNewRec: ur(!0) };
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
class
|
|
143
|
+
class Le {
|
|
144
144
|
/**
|
|
145
145
|
* Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
|
|
146
146
|
*
|
|
@@ -167,7 +167,7 @@ class Ie {
|
|
|
167
167
|
* Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
|
|
168
168
|
*/
|
|
169
169
|
s(this, "readOnly");
|
|
170
|
-
this.coefficient = new
|
|
170
|
+
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;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
class Ee {
|
|
@@ -188,9 +188,9 @@ class Ee {
|
|
|
188
188
|
this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
class
|
|
191
|
+
class K extends C {
|
|
192
192
|
}
|
|
193
|
-
class
|
|
193
|
+
class fe extends C {
|
|
194
194
|
/**
|
|
195
195
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
196
196
|
*
|
|
@@ -219,7 +219,7 @@ class ye extends w {
|
|
|
219
219
|
* Координаты склада.
|
|
220
220
|
*/
|
|
221
221
|
s(this, "coordinates");
|
|
222
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new
|
|
222
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new Ee(e == null ? void 0 : e.coordinates);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
class Lr {
|
|
@@ -237,26 +237,26 @@ class Lr {
|
|
|
237
237
|
* Количество остатков товара на складе.
|
|
238
238
|
*/
|
|
239
239
|
s(this, "count");
|
|
240
|
-
this.warehouse = new
|
|
240
|
+
this.warehouse = new fe(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
const
|
|
243
|
+
const j = class j {
|
|
244
244
|
/**
|
|
245
245
|
* Инициализирует и возвращает конфигурацию приложения.
|
|
246
246
|
*
|
|
247
247
|
* @param config Данные для первоначальной инициализации.
|
|
248
248
|
*/
|
|
249
249
|
static init(r) {
|
|
250
|
-
|
|
250
|
+
j.config = r;
|
|
251
251
|
}
|
|
252
252
|
/**
|
|
253
253
|
* Возвращает текущую конфигурацию приложения.
|
|
254
254
|
*/
|
|
255
255
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
256
256
|
static getConfig() {
|
|
257
|
-
if (pr(
|
|
257
|
+
if (pr(j.config))
|
|
258
258
|
throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
|
|
259
|
-
return
|
|
259
|
+
return j.config;
|
|
260
260
|
}
|
|
261
261
|
/**
|
|
262
262
|
* Выполняет загрузку конфигурации по указанному пути.
|
|
@@ -275,8 +275,8 @@ const V = class V {
|
|
|
275
275
|
/**
|
|
276
276
|
* Конфигурация приложения.
|
|
277
277
|
*/
|
|
278
|
-
s(
|
|
279
|
-
let b =
|
|
278
|
+
s(j, "config");
|
|
279
|
+
let b = j;
|
|
280
280
|
class Ir extends je {
|
|
281
281
|
/**
|
|
282
282
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
@@ -400,9 +400,9 @@ class _ extends Ir {
|
|
|
400
400
|
* Список коэффициентов цен на продукт.
|
|
401
401
|
*/
|
|
402
402
|
s(this, "priceCoefficients");
|
|
403
|
-
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((
|
|
404
|
-
const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((
|
|
405
|
-
t && (this.category = new
|
|
403
|
+
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((p) => new Lr(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
404
|
+
const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
|
|
405
|
+
t && (this.category = new De({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new De(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new xr(p, b.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Le(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
406
406
|
}
|
|
407
407
|
/**
|
|
408
408
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -425,7 +425,7 @@ class _ extends Ir {
|
|
|
425
425
|
return this.retailCostRub ?? this.costRub;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
class kr extends
|
|
428
|
+
class kr extends H {
|
|
429
429
|
/**
|
|
430
430
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
431
431
|
*
|
|
@@ -713,7 +713,7 @@ class vt {
|
|
|
713
713
|
};
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
class
|
|
716
|
+
class Ie {
|
|
717
717
|
/**
|
|
718
718
|
* Инициализирует экземпляр указанного класса.
|
|
719
719
|
*
|
|
@@ -752,11 +752,11 @@ const a = class a {
|
|
|
752
752
|
*/
|
|
753
753
|
s(this, "defaultInstanceNotificationErrorResponseHandler", y);
|
|
754
754
|
const e = b.getConfig().version;
|
|
755
|
-
this.defaultInstanceNotificationErrorResponseHandler = a.baseDefaultNotificationErrorResponseHandler, this.httpClient =
|
|
755
|
+
this.defaultInstanceNotificationErrorResponseHandler = a.baseDefaultNotificationErrorResponseHandler, this.httpClient = ar.create({
|
|
756
756
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
757
757
|
baseURL: r,
|
|
758
758
|
headers: {
|
|
759
|
-
"APP-VERSION": `${e.name} (${e.version}, ${
|
|
759
|
+
"APP-VERSION": `${e.name} (${e.version}, ${B(e.date, b.getConfig().dateFormats.uiDate)})`,
|
|
760
760
|
Accept: "application/json",
|
|
761
761
|
"Content-Type": "application/json"
|
|
762
762
|
}
|
|
@@ -764,7 +764,7 @@ const a = class a {
|
|
|
764
764
|
(t) => (t.method && (t.method === "get" && t.params && (t.params = Oe(t.params)), ["put", "patch", "post"].includes(gr(t.method)) && t.data && (t.data = Oe(t.data))), t),
|
|
765
765
|
(t) => Promise.reject(t)
|
|
766
766
|
), this.httpClient.interceptors.response.use(
|
|
767
|
-
(t) => (t.data && (t.data =
|
|
767
|
+
(t) => (t.data && (t.data = Sr(t.data)), t),
|
|
768
768
|
// Возвращаем изменённую структуру сообщения об ошибке.
|
|
769
769
|
(t) => a.convertHttpErrorResponse(t)
|
|
770
770
|
);
|
|
@@ -783,7 +783,7 @@ const a = class a {
|
|
|
783
783
|
* @param type Тип данных, которыми оперирует метод.
|
|
784
784
|
*/
|
|
785
785
|
static getInstance(r) {
|
|
786
|
-
return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] =
|
|
786
|
+
return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = Ie.simpleInstanceInitializer(r)), a.instances[r.name];
|
|
787
787
|
}
|
|
788
788
|
/**
|
|
789
789
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -886,8 +886,8 @@ s(a, "instances", {}), /**
|
|
|
886
886
|
* - validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
887
887
|
*/
|
|
888
888
|
s(a, "baseDefaultNotificationErrorResponseHandler", y);
|
|
889
|
-
let
|
|
890
|
-
const
|
|
889
|
+
let $e = a;
|
|
890
|
+
const V = class V extends $e {
|
|
891
891
|
/**
|
|
892
892
|
* Инициализирует экземпляр класса {@link HttpBaseCachedRequester}.
|
|
893
893
|
*
|
|
@@ -909,7 +909,7 @@ const E = class E extends be {
|
|
|
909
909
|
* @param key Ключ запроса.
|
|
910
910
|
*/
|
|
911
911
|
static getCachedResponse(e) {
|
|
912
|
-
const t =
|
|
912
|
+
const t = V.responseDataCache.get(e);
|
|
913
913
|
if (t && t.validTo > /* @__PURE__ */ new Date())
|
|
914
914
|
return t.val;
|
|
915
915
|
}
|
|
@@ -920,8 +920,8 @@ const E = class E extends be {
|
|
|
920
920
|
* @param data Данные для кэширования.
|
|
921
921
|
*/
|
|
922
922
|
cacheResponse(e, t) {
|
|
923
|
-
|
|
924
|
-
validTo:
|
|
923
|
+
V.responseDataCache.set(e, {
|
|
924
|
+
validTo: wr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
925
925
|
val: t
|
|
926
926
|
});
|
|
927
927
|
}
|
|
@@ -936,9 +936,9 @@ const E = class E extends be {
|
|
|
936
936
|
*/
|
|
937
937
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
938
938
|
getTypedDataArrayRequester(e, t, i = !1, o = {}) {
|
|
939
|
-
const c = t + (ae(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ?
|
|
940
|
-
return u ? Promise.resolve(u) : this.get(t, o).then((
|
|
941
|
-
const R =
|
|
939
|
+
const c = t + (ae(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? V.getCachedResponse(c) : void 0;
|
|
940
|
+
return u ? Promise.resolve(u) : this.get(t, o).then((p) => {
|
|
941
|
+
const R = p.map((D) => Ie.instanceInitializer(e, D));
|
|
942
942
|
return i && R && this.cacheResponse(t, R), R;
|
|
943
943
|
});
|
|
944
944
|
}
|
|
@@ -946,9 +946,9 @@ const E = class E extends be {
|
|
|
946
946
|
/**
|
|
947
947
|
* Кэш результатов запросов.
|
|
948
948
|
*/
|
|
949
|
-
s(
|
|
950
|
-
let
|
|
951
|
-
class
|
|
949
|
+
s(V, "responseDataCache", /* @__PURE__ */ new Map());
|
|
950
|
+
let be = V;
|
|
951
|
+
class h extends be {
|
|
952
952
|
/**
|
|
953
953
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
954
954
|
*/
|
|
@@ -964,7 +964,7 @@ class p extends Te {
|
|
|
964
964
|
);
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
|
-
class Pt extends
|
|
967
|
+
class Pt extends h {
|
|
968
968
|
/**
|
|
969
969
|
* Возвращает содержимое корзины указанного клиента.
|
|
970
970
|
*
|
|
@@ -1067,7 +1067,7 @@ class Pt extends p {
|
|
|
1067
1067
|
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new oe(e.data));
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
|
-
var Gr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Gr || {}),
|
|
1070
|
+
var Gr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Gr || {}), xe = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(xe || {}), Mr = /* @__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))(Mr || {});
|
|
1071
1071
|
class q extends ie {
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Инициализирует экземпляр класса {@link Category}.
|
|
@@ -1206,7 +1206,7 @@ class Hr extends $ {
|
|
|
1206
1206
|
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 G(e == null ? void 0 : e.owner), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1207
1207
|
}
|
|
1208
1208
|
}
|
|
1209
|
-
class
|
|
1209
|
+
class W extends Ke {
|
|
1210
1210
|
/**
|
|
1211
1211
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1212
1212
|
*
|
|
@@ -1225,7 +1225,7 @@ class j extends Ke {
|
|
|
1225
1225
|
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();
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
|
-
class
|
|
1228
|
+
class J extends _ {
|
|
1229
1229
|
/**
|
|
1230
1230
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1231
1231
|
*
|
|
@@ -1261,7 +1261,7 @@ class Q extends _ {
|
|
|
1261
1261
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1262
1262
|
*/
|
|
1263
1263
|
s(this, "isFavorite");
|
|
1264
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ??
|
|
1264
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? xe.Product, this.discount = e != null && e.discount ? new Hr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(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;
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
class zr {
|
|
@@ -1282,7 +1282,7 @@ class zr {
|
|
|
1282
1282
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
1285
|
-
class S extends
|
|
1285
|
+
class S extends C {
|
|
1286
1286
|
}
|
|
1287
1287
|
class re extends $ {
|
|
1288
1288
|
/**
|
|
@@ -1311,7 +1311,7 @@ class re extends $ {
|
|
|
1311
1311
|
e && (this.salesDirection = new S(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new zr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1312
1312
|
}
|
|
1313
1313
|
}
|
|
1314
|
-
class
|
|
1314
|
+
class ye extends re {
|
|
1315
1315
|
/**
|
|
1316
1316
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1317
1317
|
*
|
|
@@ -1370,7 +1370,7 @@ class Br extends ie {
|
|
|
1370
1370
|
* Данные о менеджере за которым закреплена категория.
|
|
1371
1371
|
*/
|
|
1372
1372
|
s(this, "manager");
|
|
1373
|
-
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
|
|
1373
|
+
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;
|
|
1374
1374
|
}
|
|
1375
1375
|
}
|
|
1376
1376
|
class le extends Br {
|
|
@@ -1390,7 +1390,7 @@ class le extends Br {
|
|
|
1390
1390
|
* Список продуктов категории.
|
|
1391
1391
|
*/
|
|
1392
1392
|
s(this, "products");
|
|
1393
|
-
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new le(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new
|
|
1393
|
+
this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new le(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new J(o));
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
1396
|
class Je {
|
|
@@ -1408,10 +1408,10 @@ class Je {
|
|
|
1408
1408
|
* Процент, который прибавляется к значению выбранного коэффициента.
|
|
1409
1409
|
*/
|
|
1410
1410
|
s(this, "increasePercent");
|
|
1411
|
-
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new
|
|
1411
|
+
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new me(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
|
-
class
|
|
1414
|
+
class we extends Je {
|
|
1415
1415
|
/**
|
|
1416
1416
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1417
1417
|
*
|
|
@@ -1426,9 +1426,9 @@ class ve extends Je {
|
|
|
1426
1426
|
this.productCategory = new ie(e == null ? void 0 : e.productCategory);
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
|
-
class
|
|
1429
|
+
class Q extends C {
|
|
1430
1430
|
}
|
|
1431
|
-
class te extends
|
|
1431
|
+
class te extends C {
|
|
1432
1432
|
/**
|
|
1433
1433
|
* Инициализирует экземпляр класса {@link Region}.
|
|
1434
1434
|
*
|
|
@@ -1439,11 +1439,11 @@ class te extends w {
|
|
|
1439
1439
|
/**
|
|
1440
1440
|
* Данные о стране, в которой расположен регион.
|
|
1441
1441
|
*/
|
|
1442
|
-
s(this, "country", new
|
|
1443
|
-
e && (this.country = new
|
|
1442
|
+
s(this, "country", new Q());
|
|
1443
|
+
e && (this.country = new Q(e.country));
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
|
-
class
|
|
1446
|
+
class ke extends C {
|
|
1447
1447
|
/**
|
|
1448
1448
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
1449
1449
|
*
|
|
@@ -1539,10 +1539,10 @@ class ne extends Qe {
|
|
|
1539
1539
|
* Список менеджеров клиента.
|
|
1540
1540
|
*/
|
|
1541
1541
|
s(this, "managers");
|
|
1542
|
-
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
|
|
1542
|
+
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 ke(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((t = e == null ? void 0 : e.managers) == null ? void 0 : t.map((i) => new re(i))) ?? [];
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
|
-
class X extends
|
|
1545
|
+
class X extends H {
|
|
1546
1546
|
/**
|
|
1547
1547
|
* Инициализирует новый экземпляр класса.
|
|
1548
1548
|
*
|
|
@@ -1566,10 +1566,10 @@ class X extends z {
|
|
|
1566
1566
|
* Данные шаблона прайс-листа.
|
|
1567
1567
|
*/
|
|
1568
1568
|
s(this, "priceTemplate");
|
|
1569
|
-
this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ne(e == null ? void 0 : e.client), this.priceTemplate = new
|
|
1569
|
+
this.createdAt = m(e == null ? void 0 : e.createdAt) ? f(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? f(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ne(e == null ? void 0 : e.client), this.priceTemplate = new W(e == null ? void 0 : e.priceTemplate);
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
|
-
class
|
|
1572
|
+
class ve extends Je {
|
|
1573
1573
|
/**
|
|
1574
1574
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1575
1575
|
*
|
|
@@ -1584,7 +1584,7 @@ class Pe extends Je {
|
|
|
1584
1584
|
this.product = new _(e == null ? void 0 : e.product);
|
|
1585
1585
|
}
|
|
1586
1586
|
}
|
|
1587
|
-
class Ye extends
|
|
1587
|
+
class Ye extends C {
|
|
1588
1588
|
}
|
|
1589
1589
|
class Z extends $ {
|
|
1590
1590
|
/**
|
|
@@ -1609,7 +1609,7 @@ class Z extends $ {
|
|
|
1609
1609
|
this.type = new Ye(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
1610
1610
|
}
|
|
1611
1611
|
}
|
|
1612
|
-
class
|
|
1612
|
+
class z {
|
|
1613
1613
|
/**
|
|
1614
1614
|
* Инициализирует экземпляр класса {@link PropertyValue}.
|
|
1615
1615
|
*
|
|
@@ -1706,19 +1706,19 @@ class At {
|
|
|
1706
1706
|
return Object.keys(this).forEach((c) => {
|
|
1707
1707
|
const u = this[c];
|
|
1708
1708
|
// eslint-disable-next-line prettier/prettier
|
|
1709
|
-
U(u) || m(u) && u.trim().length === 0 ||
|
|
1709
|
+
U(u) || m(u) && u.trim().length === 0 || Se(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
1710
1710
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
|
|
1711
1711
|
}
|
|
1712
1712
|
}
|
|
1713
|
-
class Wr extends
|
|
1713
|
+
class Wr extends C {
|
|
1714
1714
|
}
|
|
1715
|
-
class Xe extends
|
|
1715
|
+
class Xe extends C {
|
|
1716
1716
|
}
|
|
1717
|
-
class Dt extends
|
|
1717
|
+
class Dt extends C {
|
|
1718
1718
|
}
|
|
1719
|
-
class jr extends
|
|
1719
|
+
class jr extends C {
|
|
1720
1720
|
}
|
|
1721
|
-
class
|
|
1721
|
+
class ue extends $ {
|
|
1722
1722
|
/**
|
|
1723
1723
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
1724
1724
|
*
|
|
@@ -1738,7 +1738,7 @@ class pe extends $ {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
1740
|
var T = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(T || {});
|
|
1741
|
-
class M extends
|
|
1741
|
+
class M extends C {
|
|
1742
1742
|
/**
|
|
1743
1743
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
1744
1744
|
*/
|
|
@@ -1751,21 +1751,21 @@ class M extends w {
|
|
|
1751
1751
|
});
|
|
1752
1752
|
}
|
|
1753
1753
|
}
|
|
1754
|
-
class Vr extends
|
|
1754
|
+
class Vr extends C {
|
|
1755
1755
|
}
|
|
1756
|
-
class Er extends
|
|
1756
|
+
class Er extends C {
|
|
1757
1757
|
}
|
|
1758
|
-
class
|
|
1758
|
+
class Y extends C {
|
|
1759
1759
|
}
|
|
1760
|
-
class Kr extends
|
|
1760
|
+
class Kr extends C {
|
|
1761
1761
|
}
|
|
1762
|
-
class Jr extends
|
|
1762
|
+
class Jr extends C {
|
|
1763
1763
|
}
|
|
1764
|
-
class Ze extends
|
|
1764
|
+
class Ze extends C {
|
|
1765
1765
|
}
|
|
1766
|
-
class er extends
|
|
1766
|
+
class er extends C {
|
|
1767
1767
|
}
|
|
1768
|
-
class A extends
|
|
1768
|
+
class A extends h {
|
|
1769
1769
|
/**
|
|
1770
1770
|
* Возвращает {@link Promise} для получения данных указанного справочника.
|
|
1771
1771
|
*
|
|
@@ -1793,14 +1793,14 @@ class A extends p {
|
|
|
1793
1793
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
1794
1794
|
*/
|
|
1795
1795
|
getCurrency() {
|
|
1796
|
-
return this.getTypedDataArrayRequester(
|
|
1796
|
+
return this.getTypedDataArrayRequester(ue, "/public/references/currency", !0);
|
|
1797
1797
|
}
|
|
1798
1798
|
/**
|
|
1799
1799
|
* Возвращает {@link Promise} для получения справочника данных
|
|
1800
1800
|
* групп партнеров (направлений деятельности).
|
|
1801
1801
|
*/
|
|
1802
1802
|
getPartnerGroup() {
|
|
1803
|
-
return this.getTypedDataArrayRequester(
|
|
1803
|
+
return this.getTypedDataArrayRequester(Y, "/internal/references/partner-group", !0);
|
|
1804
1804
|
}
|
|
1805
1805
|
/**
|
|
1806
1806
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
@@ -1850,7 +1850,7 @@ class A extends p {
|
|
|
1850
1850
|
* @param term Терм поиска.
|
|
1851
1851
|
*/
|
|
1852
1852
|
searchCity(r) {
|
|
1853
|
-
return this.getTypedDataArrayRequester(
|
|
1853
|
+
return this.getTypedDataArrayRequester(ke, `/internal/references/city-with-region-and-country/search?term=${r}`);
|
|
1854
1854
|
}
|
|
1855
1855
|
/**
|
|
1856
1856
|
* Выполняет поиск данных о регионах по терму в названии.
|
|
@@ -1866,19 +1866,19 @@ class A extends p {
|
|
|
1866
1866
|
* @param term Терм поиска.
|
|
1867
1867
|
*/
|
|
1868
1868
|
searchCountry(r) {
|
|
1869
|
-
return this.getTypedDataArrayRequester(
|
|
1869
|
+
return this.getTypedDataArrayRequester(Q, `/internal/references/country/search?term=${r}`);
|
|
1870
1870
|
}
|
|
1871
1871
|
/**
|
|
1872
1872
|
* Возвращает {@link Promise} для получения справочника типов доставки.
|
|
1873
1873
|
*/
|
|
1874
1874
|
getDeliveryTypes() {
|
|
1875
|
-
return this.getTypedDataArrayRequester(
|
|
1875
|
+
return this.getTypedDataArrayRequester(K, "/internal/references/delivery-type", !0);
|
|
1876
1876
|
}
|
|
1877
1877
|
/**
|
|
1878
1878
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
1879
1879
|
*/
|
|
1880
1880
|
getWarehouses() {
|
|
1881
|
-
return this.getTypedDataArrayRequester(
|
|
1881
|
+
return this.getTypedDataArrayRequester(fe, "/public/references/warehouse", !0);
|
|
1882
1882
|
}
|
|
1883
1883
|
/**
|
|
1884
1884
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
@@ -1890,7 +1890,7 @@ class A extends p {
|
|
|
1890
1890
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
1891
1891
|
*/
|
|
1892
1892
|
getPriceCoefficients() {
|
|
1893
|
-
return this.getTypedDataArrayRequester(
|
|
1893
|
+
return this.getTypedDataArrayRequester(me, "/internal/references/price-coefficient", !0);
|
|
1894
1894
|
}
|
|
1895
1895
|
/**
|
|
1896
1896
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
@@ -1923,7 +1923,7 @@ class Yr extends Qe {
|
|
|
1923
1923
|
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;
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
1926
|
-
class Xr extends
|
|
1926
|
+
class Xr extends h {
|
|
1927
1927
|
/**
|
|
1928
1928
|
* Возвращает данные о текущем пользователе.
|
|
1929
1929
|
*/
|
|
@@ -1975,7 +1975,7 @@ class Zr {
|
|
|
1975
1975
|
* Данные о валюте.
|
|
1976
1976
|
*/
|
|
1977
1977
|
s(this, "currency");
|
|
1978
|
-
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 G(r.client) : void 0, this.executor = r.executor ? new G(r.executor) : void 0, this.currency = r.currency ? new
|
|
1978
|
+
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 G(r.client) : void 0, this.executor = r.executor ? new G(r.executor) : void 0, this.currency = r.currency ? new ue(r.currency) : void 0;
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
1981
|
class de {
|
|
@@ -2050,10 +2050,10 @@ class qe {
|
|
|
2050
2050
|
* Минимальный коэффициент цены.
|
|
2051
2051
|
*/
|
|
2052
2052
|
s(this, "minCoefficient");
|
|
2053
|
-
this.role = new ee(r == null ? void 0 : r.role), this.category = new ie(r == null ? void 0 : r.category), this.minCoefficient = new
|
|
2053
|
+
this.role = new ee(r == null ? void 0 : r.role), this.category = new ie(r == null ? void 0 : r.category), this.minCoefficient = new me(r == null ? void 0 : r.minCoefficient);
|
|
2054
2054
|
}
|
|
2055
2055
|
}
|
|
2056
|
-
class $t extends
|
|
2056
|
+
class $t extends h {
|
|
2057
2057
|
/**
|
|
2058
2058
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
2059
2059
|
*
|
|
@@ -2084,7 +2084,7 @@ class $t extends p {
|
|
|
2084
2084
|
return t && (c += `&category_id=${t}`), i && (c += `&client_id=${i}`), c;
|
|
2085
2085
|
}
|
|
2086
2086
|
}
|
|
2087
|
-
class bt extends
|
|
2087
|
+
class bt extends h {
|
|
2088
2088
|
/**
|
|
2089
2089
|
* Импортирует цены клиента из CSV файла.
|
|
2090
2090
|
*
|
|
@@ -2208,7 +2208,7 @@ class bt extends p {
|
|
|
2208
2208
|
price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
|
|
2209
2209
|
increase_percent: t.value
|
|
2210
2210
|
},
|
|
2211
|
-
(o) => new
|
|
2211
|
+
(o) => new J(o.data)
|
|
2212
2212
|
);
|
|
2213
2213
|
}
|
|
2214
2214
|
/**
|
|
@@ -2220,7 +2220,7 @@ class bt extends p {
|
|
|
2220
2220
|
* @see /doc/api/internal#/operations/api_internal_client_price_products_remove
|
|
2221
2221
|
*/
|
|
2222
2222
|
removeProductPrice(r, e) {
|
|
2223
|
-
return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new
|
|
2223
|
+
return this.delete(`/internal/clients/${r}/price/products/${e}`, (t) => new J(t.data));
|
|
2224
2224
|
}
|
|
2225
2225
|
/**
|
|
2226
2226
|
* Добавляет указанный продукт в список товаров для дополнительных продаж.
|
|
@@ -2283,7 +2283,7 @@ class bt extends p {
|
|
|
2283
2283
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2284
2284
|
}
|
|
2285
2285
|
}
|
|
2286
|
-
class Tt extends
|
|
2286
|
+
class Tt extends h {
|
|
2287
2287
|
/**
|
|
2288
2288
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2289
2289
|
*
|
|
@@ -2322,8 +2322,8 @@ class Tt extends p {
|
|
|
2322
2322
|
return this.post(
|
|
2323
2323
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
2324
2324
|
t && {
|
|
2325
|
-
startAt: t.startAt &&
|
|
2326
|
-
endAt: t.endAt &&
|
|
2325
|
+
startAt: t.startAt && B(t.startAt, i),
|
|
2326
|
+
endAt: t.endAt && B(t.endAt, i)
|
|
2327
2327
|
},
|
|
2328
2328
|
(o) => new X(o.data)
|
|
2329
2329
|
);
|
|
@@ -2354,8 +2354,8 @@ class Tt extends p {
|
|
|
2354
2354
|
return this.patch(
|
|
2355
2355
|
`/internal/clients/${r}/price/templates/${e}/${t}`,
|
|
2356
2356
|
i && {
|
|
2357
|
-
startAt: i.startAt &&
|
|
2358
|
-
endAt: i.endAt &&
|
|
2357
|
+
startAt: i.startAt && B(i.startAt, o),
|
|
2358
|
+
endAt: i.endAt && B(i.endAt, o)
|
|
2359
2359
|
},
|
|
2360
2360
|
(c) => new X(c.data)
|
|
2361
2361
|
);
|
|
@@ -2373,7 +2373,7 @@ class Tt extends p {
|
|
|
2373
2373
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${t}`);
|
|
2374
2374
|
}
|
|
2375
2375
|
}
|
|
2376
|
-
class _t extends
|
|
2376
|
+
class _t extends h {
|
|
2377
2377
|
/**
|
|
2378
2378
|
* Возвращает список данных о корневых категориях.
|
|
2379
2379
|
*
|
|
@@ -2446,7 +2446,7 @@ class _t extends p {
|
|
|
2446
2446
|
getCategoryProductsCoefficients(r) {
|
|
2447
2447
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2448
2448
|
const { data: t } = e;
|
|
2449
|
-
return mr(t, (i) => i.map((o) => new
|
|
2449
|
+
return mr(t, (i) => i.map((o) => new Le(o))), t;
|
|
2450
2450
|
});
|
|
2451
2451
|
}
|
|
2452
2452
|
/**
|
|
@@ -2465,7 +2465,7 @@ class _t extends p {
|
|
|
2465
2465
|
});
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
2468
|
-
class
|
|
2468
|
+
class at extends h {
|
|
2469
2469
|
/**
|
|
2470
2470
|
* Возвращает данные об указанном продукте.
|
|
2471
2471
|
*
|
|
@@ -2496,7 +2496,7 @@ class St extends p {
|
|
|
2496
2496
|
return this.get(
|
|
2497
2497
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2498
2498
|
{},
|
|
2499
|
-
(e) => ce(e.data, (t) => new
|
|
2499
|
+
(e) => ce(e.data, (t) => new Le(t))
|
|
2500
2500
|
);
|
|
2501
2501
|
}
|
|
2502
2502
|
/**
|
|
@@ -2527,7 +2527,7 @@ class St extends p {
|
|
|
2527
2527
|
});
|
|
2528
2528
|
}
|
|
2529
2529
|
}
|
|
2530
|
-
class
|
|
2530
|
+
class St extends h {
|
|
2531
2531
|
/**
|
|
2532
2532
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2533
2533
|
*
|
|
@@ -2585,11 +2585,11 @@ class at extends p {
|
|
|
2585
2585
|
showHidden: i,
|
|
2586
2586
|
withPriceCoefficients: t
|
|
2587
2587
|
},
|
|
2588
|
-
(o) => ce(o.data, (c) => new
|
|
2588
|
+
(o) => ce(o.data, (c) => new J(c))
|
|
2589
2589
|
);
|
|
2590
2590
|
}
|
|
2591
2591
|
}
|
|
2592
|
-
class Lt extends
|
|
2592
|
+
class Lt extends h {
|
|
2593
2593
|
/**
|
|
2594
2594
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2595
2595
|
*
|
|
@@ -2606,7 +2606,7 @@ class Lt extends p {
|
|
|
2606
2606
|
clientId: e,
|
|
2607
2607
|
withPriceCoefficients: t
|
|
2608
2608
|
},
|
|
2609
|
-
(i) => new
|
|
2609
|
+
(i) => new J(i.data)
|
|
2610
2610
|
);
|
|
2611
2611
|
}
|
|
2612
2612
|
}
|
|
@@ -2642,7 +2642,7 @@ class Ue {
|
|
|
2642
2642
|
field: this.field,
|
|
2643
2643
|
op: this.op
|
|
2644
2644
|
};
|
|
2645
|
-
return r.value = fr(this.value) ?
|
|
2645
|
+
return r.value = fr(this.value) ? B(this.value, b.getConfig().dateFormats.api) : this.value, r;
|
|
2646
2646
|
}
|
|
2647
2647
|
}
|
|
2648
2648
|
class se {
|
|
@@ -2675,12 +2675,12 @@ class se {
|
|
|
2675
2675
|
toPrimitive() {
|
|
2676
2676
|
return {
|
|
2677
2677
|
groupOp: this.groupOp,
|
|
2678
|
-
filters: this.filters.map((r) => r instanceof Ue &&
|
|
2678
|
+
filters: this.filters.map((r) => r instanceof Ue && Se(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2679
2679
|
groups: this.groups.map((r) => r instanceof se ? r.toPrimitive() : r)
|
|
2680
2680
|
};
|
|
2681
2681
|
}
|
|
2682
2682
|
}
|
|
2683
|
-
class Ce extends
|
|
2683
|
+
class Ce extends h {
|
|
2684
2684
|
/**
|
|
2685
2685
|
* Получает пагинированный список данных.
|
|
2686
2686
|
*
|
|
@@ -2693,11 +2693,11 @@ class Ce extends p {
|
|
|
2693
2693
|
* @param disableDefaultNotificationErrorResponseHandler Признак отключения стандартного обработчика ошибок.
|
|
2694
2694
|
*/
|
|
2695
2695
|
getPaginated(r, e, t, i, o, c, u) {
|
|
2696
|
-
let
|
|
2696
|
+
let p = {
|
|
2697
2697
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2698
2698
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2699
2699
|
};
|
|
2700
|
-
return e && (
|
|
2700
|
+
return e && (p.filters = JSON.stringify((e instanceof se ? e : new se(e)).toPrimitive())), ae(t) || (p.sort = Be(t) ? t : [t]), o && (p = { ...p, ...o }), this.get(r, p, c, u);
|
|
2701
2701
|
}
|
|
2702
2702
|
}
|
|
2703
2703
|
class It extends Ce {
|
|
@@ -2713,7 +2713,7 @@ class It extends Ce {
|
|
|
2713
2713
|
getTemplateList(r, e, t) {
|
|
2714
2714
|
return this.getPaginated("/internal/price/templates", r, e, t, {}, (i) => {
|
|
2715
2715
|
const o = { ...i.data };
|
|
2716
|
-
return o.data = o.data.map((c) => new
|
|
2716
|
+
return o.data = o.data.map((c) => new W(c)), o;
|
|
2717
2717
|
});
|
|
2718
2718
|
}
|
|
2719
2719
|
/**
|
|
@@ -2726,7 +2726,7 @@ class It extends Ce {
|
|
|
2726
2726
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
|
|
2727
2727
|
*/
|
|
2728
2728
|
createTemplate(r, e = {}) {
|
|
2729
|
-
return this.post("/internal/price/templates", r, (t) => new
|
|
2729
|
+
return this.post("/internal/price/templates", r, (t) => new W(t.data), e);
|
|
2730
2730
|
}
|
|
2731
2731
|
/**
|
|
2732
2732
|
* Возвращает данные о шаблоне прайс-листа.
|
|
@@ -2736,7 +2736,7 @@ class It extends Ce {
|
|
|
2736
2736
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
|
|
2737
2737
|
*/
|
|
2738
2738
|
getTemplate(r) {
|
|
2739
|
-
return this.get(`/internal/price/templates/${r}`, {}, (e) => new
|
|
2739
|
+
return this.get(`/internal/price/templates/${r}`, {}, (e) => new W(e.data));
|
|
2740
2740
|
}
|
|
2741
2741
|
/**
|
|
2742
2742
|
* Изменяет данные о шаблоне прайс-листа.
|
|
@@ -2749,7 +2749,7 @@ class It extends Ce {
|
|
|
2749
2749
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
|
|
2750
2750
|
*/
|
|
2751
2751
|
updateTemplate(r, e, t = {}) {
|
|
2752
|
-
return this.patch(`/internal/price/templates/${r}`, e, (i) => new
|
|
2752
|
+
return this.patch(`/internal/price/templates/${r}`, e, (i) => new W(i.data), t);
|
|
2753
2753
|
}
|
|
2754
2754
|
/**
|
|
2755
2755
|
* Удаляет данные о шаблоне прайс-листа.
|
|
@@ -2772,7 +2772,7 @@ class It extends Ce {
|
|
|
2772
2772
|
return this.get(
|
|
2773
2773
|
`/internal/price/templates/${r}/products`,
|
|
2774
2774
|
{},
|
|
2775
|
-
(e) => e.data.map((t) => new
|
|
2775
|
+
(e) => e.data.map((t) => new ve(t))
|
|
2776
2776
|
);
|
|
2777
2777
|
}
|
|
2778
2778
|
/**
|
|
@@ -2784,7 +2784,7 @@ class It extends Ce {
|
|
|
2784
2784
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
2785
2785
|
*/
|
|
2786
2786
|
getProductTemplatePrice(r, e) {
|
|
2787
|
-
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new
|
|
2787
|
+
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (t) => new ve(t.data));
|
|
2788
2788
|
}
|
|
2789
2789
|
/**
|
|
2790
2790
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -2803,7 +2803,7 @@ class It extends Ce {
|
|
|
2803
2803
|
price_coefficient_id: (i = t.coefficient) == null ? void 0 : i.id,
|
|
2804
2804
|
increase_percent: t.value
|
|
2805
2805
|
},
|
|
2806
|
-
(o) => new
|
|
2806
|
+
(o) => new ve(o.data)
|
|
2807
2807
|
);
|
|
2808
2808
|
}
|
|
2809
2809
|
/**
|
|
@@ -2828,7 +2828,7 @@ class It extends Ce {
|
|
|
2828
2828
|
return this.get(
|
|
2829
2829
|
`/internal/price/templates/${r}/categories`,
|
|
2830
2830
|
{},
|
|
2831
|
-
(e) => e.data.map((t) => new
|
|
2831
|
+
(e) => e.data.map((t) => new we(t))
|
|
2832
2832
|
);
|
|
2833
2833
|
}
|
|
2834
2834
|
/**
|
|
@@ -2843,7 +2843,7 @@ class It extends Ce {
|
|
|
2843
2843
|
return this.get(
|
|
2844
2844
|
`/internal/price/templates/${r}/categories/${e}`,
|
|
2845
2845
|
{},
|
|
2846
|
-
(t) => new
|
|
2846
|
+
(t) => new we(t.data)
|
|
2847
2847
|
);
|
|
2848
2848
|
}
|
|
2849
2849
|
/**
|
|
@@ -2869,7 +2869,7 @@ class It extends Ce {
|
|
|
2869
2869
|
},
|
|
2870
2870
|
params: i ? { recursively: !0 } : {}
|
|
2871
2871
|
},
|
|
2872
|
-
(c) => new
|
|
2872
|
+
(c) => new we(c.data)
|
|
2873
2873
|
);
|
|
2874
2874
|
}
|
|
2875
2875
|
/**
|
|
@@ -2904,7 +2904,7 @@ class It extends Ce {
|
|
|
2904
2904
|
);
|
|
2905
2905
|
}
|
|
2906
2906
|
}
|
|
2907
|
-
class xt extends
|
|
2907
|
+
class xt extends h {
|
|
2908
2908
|
/**
|
|
2909
2909
|
* Возвращает список ролей ценообразования.
|
|
2910
2910
|
*
|
|
@@ -3060,7 +3060,7 @@ class kt extends Ce {
|
|
|
3060
3060
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
|
|
3061
3061
|
*/
|
|
3062
3062
|
getProductProperties(r) {
|
|
3063
|
-
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((t) => new
|
|
3063
|
+
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((t) => new z(t)));
|
|
3064
3064
|
}
|
|
3065
3065
|
/**
|
|
3066
3066
|
* Возвращает значение свойства продукта.
|
|
@@ -3070,7 +3070,7 @@ class kt extends Ce {
|
|
|
3070
3070
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
|
|
3071
3071
|
*/
|
|
3072
3072
|
getProductProperty(r, e) {
|
|
3073
|
-
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new
|
|
3073
|
+
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (t) => new z(t.data));
|
|
3074
3074
|
}
|
|
3075
3075
|
/**
|
|
3076
3076
|
* Обновляет значение свойства продукта.
|
|
@@ -3081,7 +3081,7 @@ class kt extends Ce {
|
|
|
3081
3081
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
|
|
3082
3082
|
*/
|
|
3083
3083
|
updateProductProperty(r, e, t) {
|
|
3084
|
-
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new
|
|
3084
|
+
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: t }, (i) => new z(i.data));
|
|
3085
3085
|
}
|
|
3086
3086
|
/**
|
|
3087
3087
|
* Удаляет значение свойства продукта.
|
|
@@ -3206,7 +3206,7 @@ class kt extends Ce {
|
|
|
3206
3206
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
|
|
3207
3207
|
*/
|
|
3208
3208
|
getCategoryProperties(r) {
|
|
3209
|
-
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((t) => new
|
|
3209
|
+
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((t) => new z(t)));
|
|
3210
3210
|
}
|
|
3211
3211
|
/**
|
|
3212
3212
|
* Возвращает значение свойства категории.
|
|
@@ -3216,7 +3216,7 @@ class kt extends Ce {
|
|
|
3216
3216
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
|
|
3217
3217
|
*/
|
|
3218
3218
|
getCategoryProperty(r, e) {
|
|
3219
|
-
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new
|
|
3219
|
+
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (t) => new z(t.data));
|
|
3220
3220
|
}
|
|
3221
3221
|
/**
|
|
3222
3222
|
* Обновляет значение свойства категории.
|
|
@@ -3227,7 +3227,7 @@ class kt extends Ce {
|
|
|
3227
3227
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
|
|
3228
3228
|
*/
|
|
3229
3229
|
updateCategoryProperty(r, e, t) {
|
|
3230
|
-
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new
|
|
3230
|
+
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: t }, (i) => new z(i.data));
|
|
3231
3231
|
}
|
|
3232
3232
|
/**
|
|
3233
3233
|
* Удаляет значение свойства категории.
|
|
@@ -3356,7 +3356,7 @@ class kt extends Ce {
|
|
|
3356
3356
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3357
3357
|
}
|
|
3358
3358
|
}
|
|
3359
|
-
class Nt extends
|
|
3359
|
+
class Nt extends h {
|
|
3360
3360
|
/**
|
|
3361
3361
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
3362
3362
|
*
|
|
@@ -3420,7 +3420,7 @@ function Ge(n, r, e) {
|
|
|
3420
3420
|
}), t;
|
|
3421
3421
|
}
|
|
3422
3422
|
var et = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n))(et || {});
|
|
3423
|
-
class
|
|
3423
|
+
class Te extends H {
|
|
3424
3424
|
/**
|
|
3425
3425
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3426
3426
|
*
|
|
@@ -3447,11 +3447,11 @@ class _e extends z {
|
|
|
3447
3447
|
/**
|
|
3448
3448
|
* Данные о валюте.
|
|
3449
3449
|
*/
|
|
3450
|
-
s(this, "currency", new
|
|
3451
|
-
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new
|
|
3450
|
+
s(this, "currency", new ue());
|
|
3451
|
+
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ue(e.currency));
|
|
3452
3452
|
}
|
|
3453
3453
|
}
|
|
3454
|
-
class
|
|
3454
|
+
class _e extends $ {
|
|
3455
3455
|
/**
|
|
3456
3456
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3457
3457
|
*
|
|
@@ -3470,7 +3470,7 @@ class Se extends $ {
|
|
|
3470
3470
|
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;
|
|
3471
3471
|
}
|
|
3472
3472
|
}
|
|
3473
|
-
class
|
|
3473
|
+
class F extends _e {
|
|
3474
3474
|
/**
|
|
3475
3475
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3476
3476
|
*
|
|
@@ -3529,7 +3529,7 @@ class rr extends $ {
|
|
|
3529
3529
|
/**
|
|
3530
3530
|
* Группа партнеров (направление деятельности).
|
|
3531
3531
|
*/
|
|
3532
|
-
s(this, "partnerGroup", new
|
|
3532
|
+
s(this, "partnerGroup", new Y());
|
|
3533
3533
|
/**
|
|
3534
3534
|
* Список контактных лиц контрагента.
|
|
3535
3535
|
*/
|
|
@@ -3563,16 +3563,16 @@ class rr extends $ {
|
|
|
3563
3563
|
*/
|
|
3564
3564
|
s(this, "updater");
|
|
3565
3565
|
if (e) {
|
|
3566
|
-
if (this.opf = new M(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 G(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new G(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new
|
|
3566
|
+
if (this.opf = new M(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 G(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? f(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new G(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Y(e.partnerGroup)), e.manager && (this.manager = new re(e.manager)), e.contacts) {
|
|
3567
3567
|
const t = [];
|
|
3568
3568
|
e.contacts.forEach((i) => {
|
|
3569
|
-
t.push(new
|
|
3569
|
+
t.push(new F(i));
|
|
3570
3570
|
}), this.contacts = t;
|
|
3571
3571
|
}
|
|
3572
3572
|
if (e.bankAccounts) {
|
|
3573
3573
|
const t = [];
|
|
3574
3574
|
e.bankAccounts.forEach((i) => {
|
|
3575
|
-
t.push(new
|
|
3575
|
+
t.push(new Te(i));
|
|
3576
3576
|
}), this.bankAccounts = t;
|
|
3577
3577
|
}
|
|
3578
3578
|
}
|
|
@@ -3657,7 +3657,7 @@ class tt extends sr {
|
|
|
3657
3657
|
/**
|
|
3658
3658
|
* Страна регистрации юридического лица нерезидента.
|
|
3659
3659
|
*/
|
|
3660
|
-
s(this, "registrationCountry", new
|
|
3660
|
+
s(this, "registrationCountry", new Q());
|
|
3661
3661
|
/**
|
|
3662
3662
|
* Регистрационный номер юридического лица нерезидента.
|
|
3663
3663
|
*/
|
|
@@ -3666,10 +3666,10 @@ class tt extends sr {
|
|
|
3666
3666
|
* Налоговый номер юридического лица нерезидента.
|
|
3667
3667
|
*/
|
|
3668
3668
|
s(this, "taxNumber", "");
|
|
3669
|
-
e && (this.registrationCountry = new
|
|
3669
|
+
e && (this.registrationCountry = new Q(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
3670
3670
|
}
|
|
3671
3671
|
}
|
|
3672
|
-
class
|
|
3672
|
+
class pe {
|
|
3673
3673
|
/**
|
|
3674
3674
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
3675
3675
|
*
|
|
@@ -3688,7 +3688,7 @@ class he {
|
|
|
3688
3688
|
}
|
|
3689
3689
|
}
|
|
3690
3690
|
}
|
|
3691
|
-
class
|
|
3691
|
+
class Pe extends H {
|
|
3692
3692
|
/**
|
|
3693
3693
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
3694
3694
|
*
|
|
@@ -3703,7 +3703,7 @@ class Re extends z {
|
|
|
3703
3703
|
this.isPrimary = e.isPrimary;
|
|
3704
3704
|
}
|
|
3705
3705
|
}
|
|
3706
|
-
class st extends
|
|
3706
|
+
class st extends F {
|
|
3707
3707
|
/**
|
|
3708
3708
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3709
3709
|
*
|
|
@@ -3728,10 +3728,10 @@ class st extends H {
|
|
|
3728
3728
|
*/
|
|
3729
3729
|
addresses: []
|
|
3730
3730
|
});
|
|
3731
|
-
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new
|
|
3731
|
+
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new Pe(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new Pe(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new Pe(t))));
|
|
3732
3732
|
}
|
|
3733
3733
|
}
|
|
3734
|
-
class
|
|
3734
|
+
class he extends Fr {
|
|
3735
3735
|
/**
|
|
3736
3736
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
3737
3737
|
*
|
|
@@ -3768,7 +3768,7 @@ class ge extends Fr {
|
|
|
3768
3768
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
3769
3769
|
*/
|
|
3770
3770
|
s(this, "isTransportCompanyAddress");
|
|
3771
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Ee(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new
|
|
3771
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new Ee(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new F(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
|
|
3772
3772
|
}
|
|
3773
3773
|
}
|
|
3774
3774
|
class Me extends ne {
|
|
@@ -3825,7 +3825,7 @@ class Me extends ne {
|
|
|
3825
3825
|
* Дополнительные данные о клиенте.
|
|
3826
3826
|
*/
|
|
3827
3827
|
s(this, "extraData");
|
|
3828
|
-
this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) =>
|
|
3828
|
+
this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => pe.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new Y(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new F(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new he(u))) ?? [], this.channelPrimaryInterest = new Xe(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new er(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(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) ?? {};
|
|
3829
3829
|
}
|
|
3830
3830
|
}
|
|
3831
3831
|
class Ot {
|
|
@@ -3852,9 +3852,9 @@ class Ot {
|
|
|
3852
3852
|
*/
|
|
3853
3853
|
s(this, "searchTerm");
|
|
3854
3854
|
/**
|
|
3855
|
-
* Данные о
|
|
3855
|
+
* Данные о городах.
|
|
3856
3856
|
*/
|
|
3857
|
-
s(this, "
|
|
3857
|
+
s(this, "cities");
|
|
3858
3858
|
/**
|
|
3859
3859
|
* Данные о регионе.
|
|
3860
3860
|
*/
|
|
@@ -3892,9 +3892,9 @@ class Ot {
|
|
|
3892
3892
|
*/
|
|
3893
3893
|
s(this, "managers");
|
|
3894
3894
|
/**
|
|
3895
|
-
*
|
|
3895
|
+
* Направления продаж.
|
|
3896
3896
|
*/
|
|
3897
|
-
s(this, "
|
|
3897
|
+
s(this, "salesDirections");
|
|
3898
3898
|
/**
|
|
3899
3899
|
* ИНН контрагента.
|
|
3900
3900
|
*/
|
|
@@ -3908,9 +3908,9 @@ class Ot {
|
|
|
3908
3908
|
*/
|
|
3909
3909
|
s(this, "preferredDeliveryType");
|
|
3910
3910
|
/**
|
|
3911
|
-
*
|
|
3911
|
+
* Группы партнеров (направление деятельности).
|
|
3912
3912
|
*/
|
|
3913
|
-
s(this, "
|
|
3913
|
+
s(this, "partnerGroups");
|
|
3914
3914
|
/**
|
|
3915
3915
|
* Данные контактного лица.
|
|
3916
3916
|
*/
|
|
@@ -3919,11 +3919,11 @@ class Ot {
|
|
|
3919
3919
|
* Данные о параметрах поиска последнего заказа который сделал пользователь.
|
|
3920
3920
|
*/
|
|
3921
3921
|
s(this, "lastOrder");
|
|
3922
|
-
var e, t, i;
|
|
3923
|
-
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.
|
|
3924
|
-
createdAt: new O((
|
|
3925
|
-
creator: (
|
|
3926
|
-
isApproved: (
|
|
3922
|
+
var e, t, i, o, c, u;
|
|
3923
|
+
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.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((p) => new ke(p)), this.region = new te(r == null ? void 0 : r.region), this.country = new Q(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 O(r == null ? void 0 : r.createdAt), this.lastLoginDate = new O(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((p) => new ye(p)) : [], this.salesDirections = (t = r == null ? void 0 : r.salesDirections) == null ? void 0 : t.map((p) => new S(p)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new M(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new K(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((p) => new Y(p)), this.contact = new _e(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
3924
|
+
createdAt: new O((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
|
|
3925
|
+
creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
|
|
3926
|
+
isApproved: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.isApproved
|
|
3927
3927
|
};
|
|
3928
3928
|
}
|
|
3929
3929
|
/**
|
|
@@ -3942,8 +3942,8 @@ class Ot {
|
|
|
3942
3942
|
case "contragentInn":
|
|
3943
3943
|
this[r] = void 0;
|
|
3944
3944
|
break;
|
|
3945
|
-
case "
|
|
3946
|
-
this.
|
|
3945
|
+
case "cities":
|
|
3946
|
+
this.cities = [];
|
|
3947
3947
|
break;
|
|
3948
3948
|
case "region":
|
|
3949
3949
|
this.region = new te();
|
|
@@ -3966,20 +3966,20 @@ class Ot {
|
|
|
3966
3966
|
case "managers":
|
|
3967
3967
|
this.managers = [];
|
|
3968
3968
|
break;
|
|
3969
|
-
case "
|
|
3970
|
-
this.
|
|
3969
|
+
case "salesDirections":
|
|
3970
|
+
this.salesDirections = [];
|
|
3971
3971
|
break;
|
|
3972
3972
|
case "contragentType":
|
|
3973
3973
|
this.contragentType = new M();
|
|
3974
3974
|
break;
|
|
3975
3975
|
case "preferredDeliveryType":
|
|
3976
|
-
this.preferredDeliveryType = new
|
|
3976
|
+
this.preferredDeliveryType = new K();
|
|
3977
3977
|
break;
|
|
3978
|
-
case "
|
|
3979
|
-
this.
|
|
3978
|
+
case "partnerGroups":
|
|
3979
|
+
this.partnerGroups = [];
|
|
3980
3980
|
break;
|
|
3981
3981
|
case "contact":
|
|
3982
|
-
this.contact = new
|
|
3982
|
+
this.contact = new _e();
|
|
3983
3983
|
break;
|
|
3984
3984
|
}
|
|
3985
3985
|
return this;
|
|
@@ -3994,11 +3994,11 @@ class Ot {
|
|
|
3994
3994
|
return Object.keys(this).forEach((c) => {
|
|
3995
3995
|
const u = this[c];
|
|
3996
3996
|
// eslint-disable-next-line prettier/prettier
|
|
3997
|
-
U(u) || m(u) && u.trim().length === 0 ||
|
|
3997
|
+
U(u) || m(u) && u.trim().length === 0 || Se(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
3998
3998
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((t = r == null ? void 0 : r.createdAt) != null && t.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;
|
|
3999
3999
|
}
|
|
4000
4000
|
}
|
|
4001
|
-
class ir extends
|
|
4001
|
+
class ir extends H {
|
|
4002
4002
|
/**
|
|
4003
4003
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
4004
4004
|
*
|
|
@@ -4054,7 +4054,7 @@ class it extends $ {
|
|
|
4054
4054
|
* Список менеджеров.
|
|
4055
4055
|
*/
|
|
4056
4056
|
s(this, "managers");
|
|
4057
|
-
(t = e.contacts) != null && t.length && (this.contacts = e.contacts.map((o) => new
|
|
4057
|
+
(t = e.contacts) != null && t.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new ir(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new Y(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new S(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new re(o)));
|
|
4058
4058
|
}
|
|
4059
4059
|
}
|
|
4060
4060
|
class nt {
|
|
@@ -4326,7 +4326,7 @@ class Ut extends Ce {
|
|
|
4326
4326
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
|
|
4327
4327
|
*/
|
|
4328
4328
|
createContragentClientData(r, e, t = {}) {
|
|
4329
|
-
var
|
|
4329
|
+
var p, R, D, L, I, x, k, N;
|
|
4330
4330
|
let i;
|
|
4331
4331
|
const o = e, c = e, u = e;
|
|
4332
4332
|
switch (e.opf.slug) {
|
|
@@ -4335,7 +4335,7 @@ class Ut extends Ce {
|
|
|
4335
4335
|
opf: o.opf.slug,
|
|
4336
4336
|
name: o.name,
|
|
4337
4337
|
alternative_name: o.alternativeName,
|
|
4338
|
-
partner_group_id: (
|
|
4338
|
+
partner_group_id: (p = o.partnerGroup) == null ? void 0 : p.id,
|
|
4339
4339
|
manager_id: (R = o.manager) == null ? void 0 : R.id,
|
|
4340
4340
|
comment: o.comment,
|
|
4341
4341
|
inn: o.inn,
|
|
@@ -4400,7 +4400,7 @@ class Ut extends Ce {
|
|
|
4400
4400
|
return this.post(
|
|
4401
4401
|
`/internal/clients/${r}/contragents`,
|
|
4402
4402
|
i,
|
|
4403
|
-
(d) =>
|
|
4403
|
+
(d) => pe.createInstance(d.data),
|
|
4404
4404
|
t
|
|
4405
4405
|
);
|
|
4406
4406
|
}
|
|
@@ -4415,7 +4415,7 @@ class Ut extends Ce {
|
|
|
4415
4415
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
|
|
4416
4416
|
*/
|
|
4417
4417
|
updateContragentClientData(r, e, t = {}) {
|
|
4418
|
-
var
|
|
4418
|
+
var p, R, D, L, I, x, k, N;
|
|
4419
4419
|
let i;
|
|
4420
4420
|
const o = e, c = e, u = e;
|
|
4421
4421
|
switch (e.opf.slug) {
|
|
@@ -4424,7 +4424,7 @@ class Ut extends Ce {
|
|
|
4424
4424
|
opf: o.opf.slug,
|
|
4425
4425
|
name: o.name,
|
|
4426
4426
|
alternative_name: o.alternativeName,
|
|
4427
|
-
partner_group_id: (
|
|
4427
|
+
partner_group_id: (p = o.partnerGroup) == null ? void 0 : p.id,
|
|
4428
4428
|
manager_id: (R = o.manager) == null ? void 0 : R.id,
|
|
4429
4429
|
comment: o.comment,
|
|
4430
4430
|
inn: o.inn,
|
|
@@ -4489,7 +4489,7 @@ class Ut extends Ce {
|
|
|
4489
4489
|
return this.patch(
|
|
4490
4490
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
4491
4491
|
i,
|
|
4492
|
-
(d) =>
|
|
4492
|
+
(d) => pe.createInstance(d.data),
|
|
4493
4493
|
t
|
|
4494
4494
|
);
|
|
4495
4495
|
}
|
|
@@ -4527,7 +4527,7 @@ class Ut extends Ce {
|
|
|
4527
4527
|
}), e.operatingHours && (i.operating_hours = {
|
|
4528
4528
|
from: e.operatingHours.from,
|
|
4529
4529
|
to: e.operatingHours.to
|
|
4530
|
-
}), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new
|
|
4530
|
+
}), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new he(u.data), t);
|
|
4531
4531
|
}
|
|
4532
4532
|
/**
|
|
4533
4533
|
* Обновляет данные об адресе доставки клиента.
|
|
@@ -4556,7 +4556,7 @@ class Ut extends Ce {
|
|
|
4556
4556
|
}), this.patch(
|
|
4557
4557
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
4558
4558
|
i,
|
|
4559
|
-
(u) => new
|
|
4559
|
+
(u) => new he(u.data),
|
|
4560
4560
|
t
|
|
4561
4561
|
);
|
|
4562
4562
|
}
|
|
@@ -4592,7 +4592,7 @@ class Ut extends Ce {
|
|
|
4592
4592
|
correspondent_account: t.correspondentAccount,
|
|
4593
4593
|
currency_id: t.currency.id
|
|
4594
4594
|
},
|
|
4595
|
-
(o) => new
|
|
4595
|
+
(o) => new Te(o.data),
|
|
4596
4596
|
i
|
|
4597
4597
|
);
|
|
4598
4598
|
}
|
|
@@ -4618,7 +4618,7 @@ class Ut extends Ce {
|
|
|
4618
4618
|
correspondent_account: t.correspondentAccount,
|
|
4619
4619
|
currency_id: t.currency.id
|
|
4620
4620
|
},
|
|
4621
|
-
(o) => new
|
|
4621
|
+
(o) => new Te(o.data),
|
|
4622
4622
|
i
|
|
4623
4623
|
);
|
|
4624
4624
|
}
|
|
@@ -4679,7 +4679,7 @@ class Ut extends Ce {
|
|
|
4679
4679
|
comment: e.comment,
|
|
4680
4680
|
not_disturb: e.notDisturb
|
|
4681
4681
|
},
|
|
4682
|
-
(i) => new
|
|
4682
|
+
(i) => new F(i.data),
|
|
4683
4683
|
t
|
|
4684
4684
|
);
|
|
4685
4685
|
}
|
|
@@ -4822,7 +4822,7 @@ class Ut extends Ce {
|
|
|
4822
4822
|
comment: e.comment,
|
|
4823
4823
|
...t
|
|
4824
4824
|
};
|
|
4825
|
-
return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (
|
|
4825
|
+
return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new F(p.data), i);
|
|
4826
4826
|
}
|
|
4827
4827
|
/**
|
|
4828
4828
|
* Устанавливает признак основного контактного лица.
|
|
@@ -4851,7 +4851,7 @@ class Ut extends Ce {
|
|
|
4851
4851
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
4852
4852
|
}
|
|
4853
4853
|
}
|
|
4854
|
-
class Gt extends
|
|
4854
|
+
class Gt extends h {
|
|
4855
4855
|
/**
|
|
4856
4856
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
4857
4857
|
*
|
|
@@ -4865,7 +4865,7 @@ class Gt extends p {
|
|
|
4865
4865
|
});
|
|
4866
4866
|
}
|
|
4867
4867
|
}
|
|
4868
|
-
class Mt extends
|
|
4868
|
+
class Mt extends h {
|
|
4869
4869
|
/**
|
|
4870
4870
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
4871
4871
|
*
|
|
@@ -4951,14 +4951,14 @@ class Ft {
|
|
|
4951
4951
|
};
|
|
4952
4952
|
}
|
|
4953
4953
|
}
|
|
4954
|
-
const
|
|
4954
|
+
const E = class E {
|
|
4955
4955
|
/**
|
|
4956
4956
|
* Устанавливает список единиц измерения линейной величины.
|
|
4957
4957
|
*
|
|
4958
4958
|
* @param linearValues Список единиц измерения линейной величины.
|
|
4959
4959
|
*/
|
|
4960
4960
|
static setLinearValues(r) {
|
|
4961
|
-
|
|
4961
|
+
E.linearValues = r;
|
|
4962
4962
|
}
|
|
4963
4963
|
/**
|
|
4964
4964
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
@@ -4966,7 +4966,7 @@ const K = class K {
|
|
|
4966
4966
|
* @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
|
|
4967
4967
|
*/
|
|
4968
4968
|
static productIsMeasurable(r) {
|
|
4969
|
-
return
|
|
4969
|
+
return E.linearValues.includes(r.unit);
|
|
4970
4970
|
}
|
|
4971
4971
|
/**
|
|
4972
4972
|
* Возвращает кратность количества для указанного товара.
|
|
@@ -4975,7 +4975,7 @@ const K = class K {
|
|
|
4975
4975
|
*/
|
|
4976
4976
|
static getProductMultiplicity(r) {
|
|
4977
4977
|
var e, t;
|
|
4978
|
-
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !
|
|
4978
|
+
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !E.productIsMeasurable(r) ? r.properties.minCount : 1;
|
|
4979
4979
|
}
|
|
4980
4980
|
/**
|
|
4981
4981
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -4990,14 +4990,14 @@ const K = class K {
|
|
|
4990
4990
|
/**
|
|
4991
4991
|
* Список единиц измерения линейной величины.
|
|
4992
4992
|
*/
|
|
4993
|
-
s(
|
|
4994
|
-
let Fe =
|
|
4993
|
+
s(E, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
4994
|
+
let Fe = E;
|
|
4995
4995
|
class Ht {
|
|
4996
4996
|
/**
|
|
4997
4997
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
4998
4998
|
*/
|
|
4999
4999
|
static generateUndefinedManagerInstance() {
|
|
5000
|
-
return new
|
|
5000
|
+
return new ye({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
|
|
5001
5001
|
}
|
|
5002
5002
|
/**
|
|
5003
5003
|
* Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
|
|
@@ -5008,14 +5008,14 @@ class Ht {
|
|
|
5008
5008
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5009
5009
|
}
|
|
5010
5010
|
}
|
|
5011
|
-
class ot extends
|
|
5011
|
+
class ot extends h {
|
|
5012
5012
|
/**
|
|
5013
5013
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5014
5014
|
*/
|
|
5015
5015
|
getManagers() {
|
|
5016
|
-
const r = "/internal/managers", e =
|
|
5016
|
+
const r = "/internal/managers", e = h.getCachedResponse(r);
|
|
5017
5017
|
return e ? Promise.resolve(e) : this.get(r).then((t) => {
|
|
5018
|
-
const i = t.data.map((o) =>
|
|
5018
|
+
const i = t.data.map((o) => Ie.instanceInitializer(ye, o));
|
|
5019
5019
|
return i && this.cacheResponse(r, i), i;
|
|
5020
5020
|
});
|
|
5021
5021
|
}
|
|
@@ -5027,7 +5027,7 @@ class nr extends ir {
|
|
|
5027
5027
|
* @param data Данные для первоначальной инициализации.
|
|
5028
5028
|
*/
|
|
5029
5029
|
constructor(e) {
|
|
5030
|
-
var t, i, o, c, u,
|
|
5030
|
+
var t, i, o, c, u, p, R, D;
|
|
5031
5031
|
super(e);
|
|
5032
5032
|
/**
|
|
5033
5033
|
* Краткие данные о клиенте.
|
|
@@ -5075,13 +5075,13 @@ class nr extends ir {
|
|
|
5075
5075
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
5076
5076
|
}, this.delivery = {
|
|
5077
5077
|
type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
|
|
5078
|
-
date: m((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? f(e.delivery.date) : ((
|
|
5079
|
-
address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new
|
|
5080
|
-
warehouse: (D = e == null ? void 0 : e.delivery) != null && D.warehouse ? new
|
|
5078
|
+
date: m((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? f(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
|
|
5079
|
+
address: (R = e == null ? void 0 : e.delivery) != null && R.address ? new he(e.delivery.address) : void 0,
|
|
5080
|
+
warehouse: (D = e == null ? void 0 : e.delivery) != null && D.warehouse ? new fe(e.delivery.warehouse) : void 0
|
|
5081
5081
|
}, this.attachedUser = new G(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;
|
|
5082
5082
|
}
|
|
5083
5083
|
}
|
|
5084
|
-
class ct extends
|
|
5084
|
+
class ct extends H {
|
|
5085
5085
|
/**
|
|
5086
5086
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5087
5087
|
*
|
|
@@ -5161,7 +5161,7 @@ class ct extends z {
|
|
|
5161
5161
|
* который соответствует указанной ширине. Количество не ограничено.
|
|
5162
5162
|
*/
|
|
5163
5163
|
s(this, "sawing");
|
|
5164
|
-
this.product = new
|
|
5164
|
+
this.product = new J(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;
|
|
5165
5165
|
}
|
|
5166
5166
|
}
|
|
5167
5167
|
class lt extends nr {
|
|
@@ -5204,7 +5204,7 @@ class lt extends nr {
|
|
|
5204
5204
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
5205
5205
|
*/
|
|
5206
5206
|
s(this, "isAllowProcessingWithoutPayment");
|
|
5207
|
-
this.products = (e.products ?? []).map((t) => new ct(t)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ?
|
|
5207
|
+
this.products = (e.products ?? []).map((t) => new ct(t)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? pe.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new C(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5208
5208
|
}
|
|
5209
5209
|
}
|
|
5210
5210
|
class zt extends Ce {
|
|
@@ -5241,7 +5241,7 @@ class zt extends Ce {
|
|
|
5241
5241
|
return this.get(`/internal/orders/${r}`, {}, (e) => new lt(e.data));
|
|
5242
5242
|
}
|
|
5243
5243
|
}
|
|
5244
|
-
class
|
|
5244
|
+
class Re {
|
|
5245
5245
|
/**
|
|
5246
5246
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
5247
5247
|
*
|
|
@@ -5268,10 +5268,10 @@ class Ae {
|
|
|
5268
5268
|
* Источник клиентской цены.
|
|
5269
5269
|
*/
|
|
5270
5270
|
s(this, "source");
|
|
5271
|
-
this.client = new ne(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) ??
|
|
5271
|
+
this.client = new ne(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) ?? xe.Product;
|
|
5272
5272
|
}
|
|
5273
5273
|
}
|
|
5274
|
-
const
|
|
5274
|
+
const Ae = (n) => {
|
|
5275
5275
|
var r, e, t, i, o;
|
|
5276
5276
|
return n ? yr(
|
|
5277
5277
|
{
|
|
@@ -5282,13 +5282,13 @@ const De = (n) => {
|
|
|
5282
5282
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
5283
5283
|
hideNotActive: n.hideNotActive
|
|
5284
5284
|
},
|
|
5285
|
-
(c) => U(c) || (Be(c) ||
|
|
5285
|
+
(c) => U(c) || (Be(c) || Cr(c)) && ae(c)
|
|
5286
5286
|
) : {};
|
|
5287
5287
|
}, He = (n) => {
|
|
5288
5288
|
const r = {};
|
|
5289
5289
|
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;
|
|
5290
5290
|
};
|
|
5291
|
-
class Bt extends
|
|
5291
|
+
class Bt extends h {
|
|
5292
5292
|
/**
|
|
5293
5293
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
5294
5294
|
*
|
|
@@ -5303,9 +5303,9 @@ class Bt extends p {
|
|
|
5303
5303
|
`/internal/price/products/${r}/analyze`,
|
|
5304
5304
|
{
|
|
5305
5305
|
...He(e),
|
|
5306
|
-
filters:
|
|
5306
|
+
filters: Ae(t)
|
|
5307
5307
|
},
|
|
5308
|
-
(i) => i.data.map((o) => new
|
|
5308
|
+
(i) => i.data.map((o) => new Re(o))
|
|
5309
5309
|
);
|
|
5310
5310
|
}
|
|
5311
5311
|
/**
|
|
@@ -5322,9 +5322,9 @@ class Bt extends p {
|
|
|
5322
5322
|
`/internal/price/categories/${r}/analyze`,
|
|
5323
5323
|
{
|
|
5324
5324
|
...He(e),
|
|
5325
|
-
filters:
|
|
5325
|
+
filters: Ae(t)
|
|
5326
5326
|
},
|
|
5327
|
-
(i) => i.data.map((o) => new
|
|
5327
|
+
(i) => i.data.map((o) => new Re(o))
|
|
5328
5328
|
);
|
|
5329
5329
|
}
|
|
5330
5330
|
/**
|
|
@@ -5343,9 +5343,9 @@ class Bt extends p {
|
|
|
5343
5343
|
`/internal/price/categories/${r}/analyze/square`,
|
|
5344
5344
|
{
|
|
5345
5345
|
...e,
|
|
5346
|
-
filters:
|
|
5346
|
+
filters: Ae(t)
|
|
5347
5347
|
},
|
|
5348
|
-
(i) => i.data.map((o) => new
|
|
5348
|
+
(i) => i.data.map((o) => new Re(o))
|
|
5349
5349
|
);
|
|
5350
5350
|
}
|
|
5351
5351
|
}
|
|
@@ -5406,7 +5406,7 @@ class ze {
|
|
|
5406
5406
|
this.resourceType = new Ze(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((t) => new ut(t))) ?? [];
|
|
5407
5407
|
}
|
|
5408
5408
|
}
|
|
5409
|
-
class Wt extends
|
|
5409
|
+
class Wt extends h {
|
|
5410
5410
|
/**
|
|
5411
5411
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
5412
5412
|
*
|
|
@@ -5437,8 +5437,8 @@ class Wt extends p {
|
|
|
5437
5437
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
5438
5438
|
}
|
|
5439
5439
|
}
|
|
5440
|
-
const P =
|
|
5441
|
-
const n =
|
|
5440
|
+
const P = ge("__references_private", () => {
|
|
5441
|
+
const n = w({}), r = w(void 0), e = w(void 0), t = w(void 0), i = w(void 0), o = w(void 0), c = w(void 0), u = w(void 0), p = w(void 0), R = w(void 0), D = w(void 0), L = w(void 0), I = w(void 0), x = w(void 0), k = w(void 0), N = w(void 0), d = w(void 0), l = w(void 0);
|
|
5442
5442
|
return {
|
|
5443
5443
|
/**
|
|
5444
5444
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5475,7 +5475,7 @@ const P = me("__references_private", () => {
|
|
|
5475
5475
|
/**
|
|
5476
5476
|
* Справочник статусов заказов.
|
|
5477
5477
|
*/
|
|
5478
|
-
orderStatusReference:
|
|
5478
|
+
orderStatusReference: p,
|
|
5479
5479
|
/**
|
|
5480
5480
|
* Справочник типов оплаты заказов.
|
|
5481
5481
|
*/
|
|
@@ -5513,91 +5513,91 @@ const P = me("__references_private", () => {
|
|
|
5513
5513
|
*/
|
|
5514
5514
|
priceCoefficientsReference: l
|
|
5515
5515
|
};
|
|
5516
|
-
}), jt =
|
|
5516
|
+
}), jt = ge("references", () => {
|
|
5517
5517
|
const n = v(() => {
|
|
5518
5518
|
const l = P();
|
|
5519
|
-
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0,
|
|
5520
|
-
l.channelPrimaryInterestReference =
|
|
5519
|
+
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(A).getChannelPrimaryInterest().then((g) => {
|
|
5520
|
+
l.channelPrimaryInterestReference = g;
|
|
5521
5521
|
}).catch(y)), l.channelPrimaryInterestReference;
|
|
5522
5522
|
}), r = v(() => {
|
|
5523
5523
|
const l = P();
|
|
5524
|
-
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0,
|
|
5525
|
-
l.contactPositionsReference =
|
|
5524
|
+
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(A).getContactPositions().then((g) => {
|
|
5525
|
+
l.contactPositionsReference = g;
|
|
5526
5526
|
}).catch(y)), l.contactPositionsReference;
|
|
5527
5527
|
}), e = v(() => {
|
|
5528
5528
|
const l = P();
|
|
5529
|
-
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0,
|
|
5530
|
-
l.currencyReference =
|
|
5529
|
+
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(A).getCurrency().then((g) => {
|
|
5530
|
+
l.currencyReference = g;
|
|
5531
5531
|
}).catch(y)), l.currencyReference;
|
|
5532
5532
|
}), t = v(() => {
|
|
5533
5533
|
const l = P();
|
|
5534
|
-
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0,
|
|
5535
|
-
l.opfReference =
|
|
5534
|
+
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(A).getOpf().then((g) => {
|
|
5535
|
+
l.opfReference = g;
|
|
5536
5536
|
}).catch(y)), l.opfReference;
|
|
5537
5537
|
}), i = v(() => {
|
|
5538
5538
|
const l = P();
|
|
5539
|
-
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0,
|
|
5540
|
-
l.orderPaymentStatusReference =
|
|
5539
|
+
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(A).getOrderPaymentStatuses().then((g) => {
|
|
5540
|
+
l.orderPaymentStatusReference = g;
|
|
5541
5541
|
}).catch(y)), l.orderPaymentStatusReference;
|
|
5542
5542
|
}), o = v(() => {
|
|
5543
5543
|
const l = P();
|
|
5544
|
-
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0,
|
|
5545
|
-
l.orderStatusReference =
|
|
5544
|
+
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(A).getOrderStatuses().then((g) => {
|
|
5545
|
+
l.orderStatusReference = g;
|
|
5546
5546
|
}).catch(y)), l.orderStatusReference;
|
|
5547
5547
|
}), c = v(() => {
|
|
5548
5548
|
const l = P();
|
|
5549
|
-
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0,
|
|
5550
|
-
l.paymentTypeReference =
|
|
5549
|
+
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(A).getPaymentTypes().then((g) => {
|
|
5550
|
+
l.paymentTypeReference = g;
|
|
5551
5551
|
}).catch(y)), l.paymentTypeReference;
|
|
5552
5552
|
}), u = v(() => {
|
|
5553
5553
|
const l = P();
|
|
5554
|
-
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0,
|
|
5555
|
-
l.partnerGroupReference =
|
|
5554
|
+
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(A).getPartnerGroup().then((g) => {
|
|
5555
|
+
l.partnerGroupReference = g;
|
|
5556
5556
|
}).catch(y)), l.partnerGroupReference;
|
|
5557
|
-
}),
|
|
5557
|
+
}), p = v(() => {
|
|
5558
5558
|
const l = P();
|
|
5559
|
-
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0,
|
|
5560
|
-
l.productFileTypeReference =
|
|
5559
|
+
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(A).getProductFileType().then((g) => {
|
|
5560
|
+
l.productFileTypeReference = g;
|
|
5561
5561
|
}).catch(y)), l.productFileTypeReference;
|
|
5562
5562
|
}), R = v(() => {
|
|
5563
5563
|
const l = P();
|
|
5564
|
-
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0,
|
|
5565
|
-
l.resourceTypesReference =
|
|
5564
|
+
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(A).getResourceTypes().then((g) => {
|
|
5565
|
+
l.resourceTypesReference = g;
|
|
5566
5566
|
}).catch(y)), l.resourceTypesReference;
|
|
5567
5567
|
}), D = v(() => {
|
|
5568
5568
|
const l = P();
|
|
5569
|
-
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0,
|
|
5570
|
-
l.salesDirectionsReference =
|
|
5569
|
+
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(A).getSalesDirections().then((g) => {
|
|
5570
|
+
l.salesDirectionsReference = g;
|
|
5571
5571
|
}).catch(y)), l.salesDirectionsReference;
|
|
5572
5572
|
}), L = v(() => {
|
|
5573
5573
|
const l = P();
|
|
5574
|
-
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0,
|
|
5575
|
-
l.sourcePrimaryInterestReference =
|
|
5574
|
+
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(A).getSourcePrimaryInterest().then((g) => {
|
|
5575
|
+
l.sourcePrimaryInterestReference = g;
|
|
5576
5576
|
}).catch(y)), l.sourcePrimaryInterestReference;
|
|
5577
5577
|
}), I = v(() => {
|
|
5578
5578
|
const l = P();
|
|
5579
|
-
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0,
|
|
5580
|
-
l.deliveryTypeReference =
|
|
5579
|
+
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(A).getDeliveryTypes().then((g) => {
|
|
5580
|
+
l.deliveryTypeReference = g;
|
|
5581
5581
|
}).catch(y)), l.deliveryTypeReference;
|
|
5582
5582
|
}), x = v(() => {
|
|
5583
5583
|
const l = P();
|
|
5584
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0,
|
|
5585
|
-
l.managersList =
|
|
5584
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(ot).getManagers().then((g) => {
|
|
5585
|
+
l.managersList = g;
|
|
5586
5586
|
}).catch(y)), l.managersList;
|
|
5587
5587
|
}), k = v(() => {
|
|
5588
5588
|
const l = P();
|
|
5589
|
-
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0,
|
|
5590
|
-
l.warehousesReference =
|
|
5589
|
+
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(A).getWarehouses().then((g) => {
|
|
5590
|
+
l.warehousesReference = g;
|
|
5591
5591
|
}).catch(y)), l.warehousesReference;
|
|
5592
5592
|
}), N = v(() => {
|
|
5593
5593
|
const l = P();
|
|
5594
|
-
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0,
|
|
5595
|
-
l.propertyTypesReference =
|
|
5594
|
+
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(A).getPropertyTypes().then((g) => {
|
|
5595
|
+
l.propertyTypesReference = g;
|
|
5596
5596
|
}).catch(y)), l.propertyTypesReference;
|
|
5597
5597
|
}), d = v(() => {
|
|
5598
5598
|
const l = P();
|
|
5599
|
-
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0,
|
|
5600
|
-
l.priceCoefficientsReference =
|
|
5599
|
+
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(A).getPriceCoefficients().then((g) => {
|
|
5600
|
+
l.priceCoefficientsReference = g;
|
|
5601
5601
|
}).catch(y)), l.priceCoefficientsReference;
|
|
5602
5602
|
});
|
|
5603
5603
|
return {
|
|
@@ -5636,7 +5636,7 @@ const P = me("__references_private", () => {
|
|
|
5636
5636
|
/**
|
|
5637
5637
|
* Справочник типов файлов продуктов/категорий.
|
|
5638
5638
|
*/
|
|
5639
|
-
productFilesTypesReference:
|
|
5639
|
+
productFilesTypesReference: p,
|
|
5640
5640
|
/**
|
|
5641
5641
|
* Справочник типов ресурсов.
|
|
5642
5642
|
*/
|
|
@@ -5670,8 +5670,8 @@ const P = me("__references_private", () => {
|
|
|
5670
5670
|
*/
|
|
5671
5671
|
priceCoefficientsReference: d
|
|
5672
5672
|
};
|
|
5673
|
-
}), pt =
|
|
5674
|
-
const n =
|
|
5673
|
+
}), pt = ge("__user_state_private", () => {
|
|
5674
|
+
const n = w({}), r = w(void 0);
|
|
5675
5675
|
return {
|
|
5676
5676
|
/**
|
|
5677
5677
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5682,18 +5682,18 @@ const P = me("__references_private", () => {
|
|
|
5682
5682
|
*/
|
|
5683
5683
|
currentUser: r
|
|
5684
5684
|
};
|
|
5685
|
-
}), Vt =
|
|
5685
|
+
}), Vt = ge("user_state", () => ({
|
|
5686
5686
|
/**
|
|
5687
5687
|
* Данные о текущем пользователе.
|
|
5688
5688
|
*/
|
|
5689
5689
|
currentUser: v(() => {
|
|
5690
5690
|
const r = pt();
|
|
5691
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0,
|
|
5691
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(Xr).getCurrentUser().then((e) => {
|
|
5692
5692
|
r.currentUser = e;
|
|
5693
5693
|
}).catch(y).finally(y)), r.currentUser;
|
|
5694
5694
|
})
|
|
5695
5695
|
}));
|
|
5696
|
-
class Et extends
|
|
5696
|
+
class Et extends h {
|
|
5697
5697
|
/**
|
|
5698
5698
|
* Возвращает подсказки по адресам.
|
|
5699
5699
|
*
|
|
@@ -5767,7 +5767,7 @@ export {
|
|
|
5767
5767
|
Wr as AnyReference,
|
|
5768
5768
|
vt as AppBaseConfig,
|
|
5769
5769
|
b as AppConfigProvider,
|
|
5770
|
-
|
|
5770
|
+
Te as BankAccount,
|
|
5771
5771
|
Ce as BasePaginationProvider,
|
|
5772
5772
|
Gr as CalculationTypeEnum,
|
|
5773
5773
|
oe as Cart,
|
|
@@ -5780,43 +5780,43 @@ export {
|
|
|
5780
5780
|
qe as CategoryPricingRule,
|
|
5781
5781
|
Xe as ChannelPrimaryInterest,
|
|
5782
5782
|
Dt as City,
|
|
5783
|
-
|
|
5783
|
+
ke as CityWithRegionAndCountry,
|
|
5784
5784
|
Me as Client,
|
|
5785
5785
|
it as ClientAdditionalData,
|
|
5786
5786
|
le as ClientCategory,
|
|
5787
5787
|
Ut as ClientDataProvider,
|
|
5788
5788
|
bt as ClientPriceProvider,
|
|
5789
5789
|
Tt as ClientPriceTemplateProvider,
|
|
5790
|
-
|
|
5791
|
-
|
|
5790
|
+
J as ClientProduct,
|
|
5791
|
+
St as ClientProductCategoryDataProvider,
|
|
5792
5792
|
Lt as ClientProductDataProvider,
|
|
5793
5793
|
ne as ClientShortInfo,
|
|
5794
5794
|
et as ClientsAdditionalDataRequestTypeEnum,
|
|
5795
5795
|
Ot as ClientsListFilters,
|
|
5796
5796
|
Mt as ConfiguratorProvider,
|
|
5797
|
-
|
|
5797
|
+
_e as Contact,
|
|
5798
5798
|
zr as ContactLinks,
|
|
5799
|
-
|
|
5799
|
+
F as ContactPerson,
|
|
5800
5800
|
st as ContactPersonRelated,
|
|
5801
5801
|
jr as ContactPosition,
|
|
5802
|
-
|
|
5802
|
+
Pe as ContactRelation,
|
|
5803
5803
|
rr as ContragentBase,
|
|
5804
|
-
|
|
5804
|
+
pe as ContragentFactory,
|
|
5805
5805
|
tr as ContragentIc,
|
|
5806
5806
|
rt as ContragentPerson,
|
|
5807
5807
|
tt as ContragentUlNr,
|
|
5808
5808
|
sr as ContragentUlR,
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5809
|
+
xe as CostSourceEnum,
|
|
5810
|
+
Q as Country,
|
|
5811
|
+
ue as Currency,
|
|
5812
5812
|
Et as DataSuggestionProvider,
|
|
5813
5813
|
dt as DataTablePagination,
|
|
5814
5814
|
nt as DataTablePaginationRequestParams,
|
|
5815
5815
|
qt as DataTableSortRequestParams,
|
|
5816
5816
|
Ft as DateTimeProvider,
|
|
5817
5817
|
Fr as DeletableNamedIdentity,
|
|
5818
|
-
|
|
5819
|
-
|
|
5818
|
+
he as DeliveryAddress,
|
|
5819
|
+
K as DeliveryType,
|
|
5820
5820
|
Or as DeviceTypeResolutionConfig,
|
|
5821
5821
|
Hr as DiscountShortInfo,
|
|
5822
5822
|
Kt as FieldValidationResultData,
|
|
@@ -5825,13 +5825,13 @@ export {
|
|
|
5825
5825
|
Ne as FilterOpEnum,
|
|
5826
5826
|
Ee as GeoCoordinates,
|
|
5827
5827
|
Ir as HiddenCatalogableItem,
|
|
5828
|
-
|
|
5829
|
-
|
|
5828
|
+
be as HttpBaseCachedRequester,
|
|
5829
|
+
$e as HttpBaseRequester,
|
|
5830
5830
|
dr as HttpParamsConfig,
|
|
5831
|
-
|
|
5832
|
-
|
|
5831
|
+
h as HttpRequester,
|
|
5832
|
+
H as Identity,
|
|
5833
5833
|
xr as Image,
|
|
5834
|
-
|
|
5834
|
+
ye as Manager,
|
|
5835
5835
|
re as ManagerCommon,
|
|
5836
5836
|
Ht as ManagerDataFactory,
|
|
5837
5837
|
ot as ManagerDataProvider,
|
|
@@ -5846,36 +5846,36 @@ export {
|
|
|
5846
5846
|
ir as OrderShortInfo,
|
|
5847
5847
|
Er as OrderStatus,
|
|
5848
5848
|
zt as OrdersDataProvider,
|
|
5849
|
-
|
|
5849
|
+
Y as PartnerGroup,
|
|
5850
5850
|
Kr as PaymentType,
|
|
5851
5851
|
Rt as PreferencesStorageProvider,
|
|
5852
|
-
|
|
5852
|
+
Re as PriceAnalyze,
|
|
5853
5853
|
Bt as PriceAnalyzeProvider,
|
|
5854
|
-
|
|
5854
|
+
me as PriceCoefficient,
|
|
5855
5855
|
Ve as PriceCoefficientEnum,
|
|
5856
|
-
|
|
5857
|
-
|
|
5856
|
+
W as PriceTemplate,
|
|
5857
|
+
we as PriceTemplateCategory,
|
|
5858
5858
|
X as PriceTemplateClient,
|
|
5859
5859
|
Je as PriceTemplateICatalogableItem,
|
|
5860
|
-
|
|
5860
|
+
ve as PriceTemplateProduct,
|
|
5861
5861
|
It as PriceTemplateProvider,
|
|
5862
5862
|
ee as PricingRole,
|
|
5863
5863
|
xt as PricingRoleProvider,
|
|
5864
|
-
|
|
5864
|
+
De as PrimaryCatalogableItem,
|
|
5865
5865
|
_ as Product,
|
|
5866
5866
|
_t as ProductCategoryDataProvider,
|
|
5867
|
-
|
|
5867
|
+
at as ProductDataProvider,
|
|
5868
5868
|
Jr as ProductFileType,
|
|
5869
|
-
|
|
5869
|
+
Le as ProductPriceCoefficient,
|
|
5870
5870
|
Zr as ProductPriceHistory,
|
|
5871
5871
|
kt as PropertiesProvider,
|
|
5872
5872
|
Z as Property,
|
|
5873
5873
|
Ye as PropertyType,
|
|
5874
5874
|
Mr as PropertyTypeEnum,
|
|
5875
|
-
|
|
5875
|
+
z as PropertyValue,
|
|
5876
5876
|
Nt as RecommendationsDataProvider,
|
|
5877
5877
|
de as RecommendationsList,
|
|
5878
|
-
|
|
5878
|
+
C as Reference,
|
|
5879
5879
|
A as ReferenceDataProvider,
|
|
5880
5880
|
te as Region,
|
|
5881
5881
|
Ze as ResourceType,
|
|
@@ -5886,7 +5886,7 @@ export {
|
|
|
5886
5886
|
er as SourcePrimaryInterest,
|
|
5887
5887
|
Lr as StockCount,
|
|
5888
5888
|
At as TemplatesListFilters,
|
|
5889
|
-
|
|
5889
|
+
Ie as TypedInstanceFactory,
|
|
5890
5890
|
Fe as UnitsHelper,
|
|
5891
5891
|
Gt as UnknownClientDataProvider,
|
|
5892
5892
|
Ke as UpdatableNamedIdentity,
|
|
@@ -5896,7 +5896,7 @@ export {
|
|
|
5896
5896
|
G as UserShortInfo,
|
|
5897
5897
|
Qr as UserTypeEnum,
|
|
5898
5898
|
Ur as VersionConfig,
|
|
5899
|
-
|
|
5899
|
+
fe as Warehouse,
|
|
5900
5900
|
Ge as findCatalogItemByIdRecursive,
|
|
5901
5901
|
jt as useReferencesStore,
|
|
5902
5902
|
Vt as useUserStateStore
|