@snabcentr/common-lib 1.68.0 → 1.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +1 -1
- package/dist/release_notes.tmp +3 -3
- package/dist/sc-common-lib.js +367 -353
- package/dist/sc-common-lib.js.map +1 -1
- package/dist/sc-common-lib.umd.cjs +1 -1
- package/dist/sc-common-lib.umd.cjs.map +1 -1
- package/dist/src/catalog/classes/index.d.ts +0 -1
- package/dist/src/catalog/classes/index.d.ts.map +1 -1
- package/dist/src/catalog/interfaces/index.d.ts +0 -1
- package/dist/src/catalog/interfaces/index.d.ts.map +1 -1
- package/dist/src/catalog/providers/index.d.ts +0 -1
- package/dist/src/catalog/providers/index.d.ts.map +1 -1
- package/dist/src/config/classes/http-params-config.d.ts +4 -0
- package/dist/src/config/classes/http-params-config.d.ts.map +1 -1
- package/dist/src/config/interfaces/i-http-params-config.d.ts +4 -0
- package/dist/src/config/interfaces/i-http-params-config.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/price-history/providers/price-history-data-provider.d.ts +1 -1
- package/dist/src/recommendations/classes/index.d.ts +2 -0
- package/dist/src/recommendations/classes/index.d.ts.map +1 -0
- package/dist/src/{catalog → recommendations}/classes/recommendations-list.d.ts +3 -4
- package/dist/src/recommendations/classes/recommendations-list.d.ts.map +1 -0
- package/dist/src/recommendations/index.d.ts +4 -0
- package/dist/src/recommendations/index.d.ts.map +1 -0
- package/dist/src/{catalog → recommendations}/interfaces/i-recommendations-list.d.ts +3 -4
- package/dist/src/recommendations/interfaces/i-recommendations-list.d.ts.map +1 -0
- package/dist/src/recommendations/interfaces/index.d.ts +2 -0
- package/dist/src/recommendations/interfaces/index.d.ts.map +1 -0
- package/dist/src/recommendations/providers/index.d.ts +2 -0
- package/dist/src/recommendations/providers/index.d.ts.map +1 -0
- package/dist/src/{catalog → recommendations}/providers/recommendations-data-provider.d.ts +9 -1
- package/dist/src/recommendations/providers/recommendations-data-provider.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/src/catalog/classes/recommendations-list.d.ts.map +0 -1
- package/dist/src/catalog/interfaces/i-recommendations-list.d.ts.map +0 -1
- package/dist/src/catalog/providers/recommendations-data-provider.d.ts.map +0 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -2,13 +2,13 @@ var yr = Object.defineProperty;
|
|
|
2
2
|
var Cr = (n, r, e) => r in n ? yr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
3
|
var t = (n, r, e) => Cr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { jwtDecode as Qe } from "jwt-decode";
|
|
5
|
-
import { merge as
|
|
6
|
-
import { objectToCamel as
|
|
5
|
+
import { merge as ke, isUndefined as wr, isNil as T, noop as C, toUpper as vr, constant as Pr, isString as m, cloneDeep as Rr, toLower as Ar, isFunction as xe, map as ce, forEach as Dr, isDate as Se, isEmpty as Ce, isArray as Ne, omitBy as Ye, isObject as Xe } from "lodash-es";
|
|
6
|
+
import { objectToCamel as Oe, objectToSnake as He } from "ts-case-convert";
|
|
7
7
|
import { defineStore as X } from "pinia";
|
|
8
8
|
import { ref as f, computed as v } from "vue";
|
|
9
|
-
import { parseISO as y, format as q, isAfter as
|
|
9
|
+
import { parseISO as y, format as q, isAfter as ar, startOfToday as Ze, addSeconds as $r, addBusinessDays as Tr, endOfTomorrow as br, startOfTomorrow as _r, endOfYesterday as Sr, startOfYesterday as Ir, endOfToday as Lr, endOfDay as dr, startOfDay as kr } from "date-fns";
|
|
10
10
|
import xr from "axios";
|
|
11
|
-
class
|
|
11
|
+
class he {
|
|
12
12
|
/**
|
|
13
13
|
* Инициализирует экземпляр класса {@link JwtPayload}.
|
|
14
14
|
*
|
|
@@ -99,7 +99,7 @@ class ue {
|
|
|
99
99
|
* @inheritDoc
|
|
100
100
|
*/
|
|
101
101
|
t(this, "email", "");
|
|
102
|
-
|
|
102
|
+
ke(this, r);
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* Возвращает данные полезной нагрузки для указанного JWT-токена.
|
|
@@ -107,10 +107,10 @@ class ue {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
return new
|
|
110
|
+
return new he(Oe(Qe(r)));
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
class Tt extends
|
|
113
|
+
class Tt extends he {
|
|
114
114
|
/**
|
|
115
115
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
116
116
|
*
|
|
@@ -142,7 +142,7 @@ class Tt extends ue {
|
|
|
142
142
|
* @inheritDoc
|
|
143
143
|
*/
|
|
144
144
|
t(this, "address");
|
|
145
|
-
|
|
145
|
+
ke(this, e);
|
|
146
146
|
}
|
|
147
147
|
/**
|
|
148
148
|
* Возвращает данные полезной нагрузки для указанного JWT-токена.
|
|
@@ -150,7 +150,7 @@ class Tt extends ue {
|
|
|
150
150
|
* @param jwtToken JWT-ключ доступа.
|
|
151
151
|
*/
|
|
152
152
|
static getJwtPayload(e) {
|
|
153
|
-
return new
|
|
153
|
+
return new he(Oe(Qe(e)));
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
const W = class W {
|
|
@@ -189,10 +189,10 @@ const W = class W {
|
|
|
189
189
|
* Конфигурация приложения.
|
|
190
190
|
*/
|
|
191
191
|
t(W, "config");
|
|
192
|
-
let
|
|
193
|
-
const
|
|
192
|
+
let A = W;
|
|
193
|
+
const Ae = X("__auth_state_private", () => {
|
|
194
194
|
var e;
|
|
195
|
-
const n = f(Promise.resolve((e =
|
|
195
|
+
const n = f(Promise.resolve((e = A.getConfig().devMode) == null ? void 0 : e.initAuthBearerToken)), r = f(void 0);
|
|
196
196
|
return {
|
|
197
197
|
/**
|
|
198
198
|
* {@link Promise<string>} для получения ключа доступа к системам.
|
|
@@ -203,9 +203,9 @@ const Re = X("__auth_state_private", () => {
|
|
|
203
203
|
*/
|
|
204
204
|
accessTokenUpdater: r
|
|
205
205
|
};
|
|
206
|
-
}),
|
|
206
|
+
}), De = X("__auth_state", () => {
|
|
207
207
|
const n = v(() => {
|
|
208
|
-
const s =
|
|
208
|
+
const s = Ae();
|
|
209
209
|
if (T(s.accessToken) && !T(s.accessTokenUpdater)) {
|
|
210
210
|
const i = s.accessTokenUpdater();
|
|
211
211
|
s.accessToken = i, i.then((o) => {
|
|
@@ -215,10 +215,10 @@ const Re = X("__auth_state_private", () => {
|
|
|
215
215
|
return s.accessToken;
|
|
216
216
|
});
|
|
217
217
|
function r(s) {
|
|
218
|
-
|
|
218
|
+
Ae().accessTokenUpdater = s;
|
|
219
219
|
}
|
|
220
220
|
function e() {
|
|
221
|
-
|
|
221
|
+
Ae().accessToken = void 0;
|
|
222
222
|
}
|
|
223
223
|
return {
|
|
224
224
|
/**
|
|
@@ -237,7 +237,7 @@ const Re = X("__auth_state_private", () => {
|
|
|
237
237
|
invalidateAccessToken: e
|
|
238
238
|
};
|
|
239
239
|
});
|
|
240
|
-
class
|
|
240
|
+
class H {
|
|
241
241
|
/**
|
|
242
242
|
* Инициализирует экземпляр класса {@link Identity}.
|
|
243
243
|
*
|
|
@@ -262,7 +262,7 @@ class B {
|
|
|
262
262
|
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : T(this.id);
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
|
-
class $ extends
|
|
265
|
+
class $ extends H {
|
|
266
266
|
/**
|
|
267
267
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
268
268
|
*
|
|
@@ -277,7 +277,7 @@ class $ extends B {
|
|
|
277
277
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
class
|
|
280
|
+
class te extends $ {
|
|
281
281
|
/**
|
|
282
282
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
283
283
|
*
|
|
@@ -292,7 +292,7 @@ class Oe extends $ {
|
|
|
292
292
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
-
class er extends
|
|
295
|
+
class er extends te {
|
|
296
296
|
/**
|
|
297
297
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
298
298
|
*
|
|
@@ -311,7 +311,7 @@ class er extends Oe {
|
|
|
311
311
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
-
class
|
|
314
|
+
class Ie extends er {
|
|
315
315
|
/**
|
|
316
316
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
317
317
|
*
|
|
@@ -326,7 +326,7 @@ class Se extends er {
|
|
|
326
326
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
class
|
|
329
|
+
class le extends Ie {
|
|
330
330
|
/**
|
|
331
331
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
332
332
|
*
|
|
@@ -373,7 +373,7 @@ class w extends $ {
|
|
|
373
373
|
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
class
|
|
376
|
+
class we extends w {
|
|
377
377
|
/**
|
|
378
378
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
379
379
|
*/
|
|
@@ -408,7 +408,7 @@ class qe {
|
|
|
408
408
|
* Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
|
|
409
409
|
*/
|
|
410
410
|
t(this, "readOnly");
|
|
411
|
-
this.coefficient = new
|
|
411
|
+
this.coefficient = new we(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;
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
class tr {
|
|
@@ -431,7 +431,7 @@ class tr {
|
|
|
431
431
|
}
|
|
432
432
|
class J extends w {
|
|
433
433
|
}
|
|
434
|
-
class
|
|
434
|
+
class ve extends w {
|
|
435
435
|
/**
|
|
436
436
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
437
437
|
*
|
|
@@ -478,7 +478,7 @@ class Nr {
|
|
|
478
478
|
* Количество остатков товара на складе.
|
|
479
479
|
*/
|
|
480
480
|
t(this, "count");
|
|
481
|
-
this.warehouse = new
|
|
481
|
+
this.warehouse = new ve(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
class Or extends er {
|
|
@@ -519,7 +519,7 @@ class qr {
|
|
|
519
519
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
class
|
|
522
|
+
class S extends Or {
|
|
523
523
|
/**
|
|
524
524
|
* Инициализирует экземпляр класса {@link Product}.
|
|
525
525
|
*
|
|
@@ -606,14 +606,14 @@ class _ extends Or {
|
|
|
606
606
|
t(this, "priceCoefficients");
|
|
607
607
|
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) ? y(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((u) => new Nr(u))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
608
608
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((u) => u.isPrimary));
|
|
609
|
-
s && (this.category = new
|
|
609
|
+
s && (this.category = new Ie({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((u) => new Ie(u))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((u) => new qr(u, A.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 = ((p = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : p.map((u) => new qe(u))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
610
610
|
}
|
|
611
611
|
/**
|
|
612
612
|
* Возвращает признак, что это измеряемый товар.
|
|
613
613
|
*/
|
|
614
614
|
getIsMeasurable() {
|
|
615
615
|
var s;
|
|
616
|
-
const e = (s =
|
|
616
|
+
const e = (s = A.getConfig().catalog) == null ? void 0 : s.products.units;
|
|
617
617
|
return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
|
|
618
618
|
}
|
|
619
619
|
/**
|
|
@@ -629,7 +629,7 @@ class _ extends Or {
|
|
|
629
629
|
return this.retailCostRub ?? this.costRub;
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
|
-
class Ur extends
|
|
632
|
+
class Ur extends H {
|
|
633
633
|
/**
|
|
634
634
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
635
635
|
*
|
|
@@ -681,7 +681,7 @@ class Ur extends B {
|
|
|
681
681
|
* Признак того, что позиция является дополнительной продажей.
|
|
682
682
|
*/
|
|
683
683
|
t(this, "isAdditionalSale");
|
|
684
|
-
this.product = new
|
|
684
|
+
this.product = new S(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new le(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && Rr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
687
|
class Gr extends Ur {
|
|
@@ -734,7 +734,7 @@ class Gr extends Ur {
|
|
|
734
734
|
this.currency = e.currency, this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing;
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
class
|
|
737
|
+
class ue {
|
|
738
738
|
/**
|
|
739
739
|
* Инициализирует экземпляр класса {@link Cart}.
|
|
740
740
|
*
|
|
@@ -775,7 +775,7 @@ class Ue {
|
|
|
775
775
|
return new r(e);
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
|
-
const
|
|
778
|
+
const _ = class _ {
|
|
779
779
|
/**
|
|
780
780
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
781
781
|
*/
|
|
@@ -787,7 +787,7 @@ const S = class S {
|
|
|
787
787
|
/**
|
|
788
788
|
* Базовый URL путь для выполнения запросов.
|
|
789
789
|
*/
|
|
790
|
-
t(this, "baseUrl", `${
|
|
790
|
+
t(this, "baseUrl", `${A.getConfig().http.portalApiUrl}/api`);
|
|
791
791
|
/**
|
|
792
792
|
* Обработчик ошибок выполнения запросов текущего экземпляра класса.
|
|
793
793
|
*
|
|
@@ -814,7 +814,7 @@ const S = class S {
|
|
|
814
814
|
// eslint-disable-next-line class-methods-use-this
|
|
815
815
|
t(this, "authRequestInterceptor", async (r) => {
|
|
816
816
|
let e;
|
|
817
|
-
return T(
|
|
817
|
+
return T(De().accessToken) || (e = await De().accessToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
|
|
818
818
|
});
|
|
819
819
|
/**
|
|
820
820
|
* Перехватчик запроса для преобразования данных запроса.
|
|
@@ -831,7 +831,7 @@ const S = class S {
|
|
|
831
831
|
t(this, "authErrorsResponseInterceptors", (r) => {
|
|
832
832
|
var s;
|
|
833
833
|
const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
|
|
834
|
-
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (
|
|
834
|
+
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (De().invalidateAccessToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
|
|
835
835
|
});
|
|
836
836
|
/**
|
|
837
837
|
* Перехватчик ответа для преобразования данных ответа на запрос.
|
|
@@ -839,11 +839,11 @@ const S = class S {
|
|
|
839
839
|
* @param response Данные ответа на запрос.
|
|
840
840
|
*/
|
|
841
841
|
// eslint-disable-next-line class-methods-use-this
|
|
842
|
-
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data =
|
|
843
|
-
const r =
|
|
844
|
-
this.errorResponseHandler =
|
|
842
|
+
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Oe(r.data)), r));
|
|
843
|
+
const r = A.getConfig().version;
|
|
844
|
+
this.errorResponseHandler = _.defaultErrorsResponseHandler, this.httpClient = xr.create({
|
|
845
845
|
headers: {
|
|
846
|
-
"APP-VERSION": `${r.name} (${r.version}, ${q(r.date,
|
|
846
|
+
"APP-VERSION": `${r.name} (${r.version}, ${q(r.date, A.getConfig().dateFormats.uiDate)})`,
|
|
847
847
|
Accept: "application/json",
|
|
848
848
|
"Content-Type": "application/json"
|
|
849
849
|
}
|
|
@@ -852,7 +852,7 @@ const S = class S {
|
|
|
852
852
|
(e) => Promise.reject(e)
|
|
853
853
|
), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
|
|
854
854
|
(e) => e,
|
|
855
|
-
(e) =>
|
|
855
|
+
(e) => _.convertHttpErrorResponse(e)
|
|
856
856
|
), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((e) => e, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
|
|
857
857
|
this.dataConverterResponseInterceptor,
|
|
858
858
|
(e) => Promise.reject(e)
|
|
@@ -864,7 +864,7 @@ const S = class S {
|
|
|
864
864
|
* @param handler Ссылка на функцию-обработчик ошибок.
|
|
865
865
|
*/
|
|
866
866
|
static setDefaultErrorsResponseHandler(r) {
|
|
867
|
-
|
|
867
|
+
_.defaultErrorsResponseHandler = r;
|
|
868
868
|
}
|
|
869
869
|
/**
|
|
870
870
|
* Возвращает экземпляр объекта текущего класса.
|
|
@@ -872,7 +872,7 @@ const S = class S {
|
|
|
872
872
|
* @param type Тип данных, которыми оперирует метод.
|
|
873
873
|
*/
|
|
874
874
|
static getInstance(r) {
|
|
875
|
-
return Object.prototype.hasOwnProperty.call(
|
|
875
|
+
return Object.prototype.hasOwnProperty.call(_.instances, r.name) || (_.instances[r.name] = Ue.simpleInstanceInitializer(r)), _.instances[r.name];
|
|
876
876
|
}
|
|
877
877
|
/**
|
|
878
878
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -970,15 +970,15 @@ const S = class S {
|
|
|
970
970
|
* Экземпляр объекта текущего класса.
|
|
971
971
|
*/
|
|
972
972
|
// eslint-disable-next-line no-use-before-define
|
|
973
|
-
t(
|
|
973
|
+
t(_, "instances", {}), /**
|
|
974
974
|
* Базовый обработчик ошибок выполнения запросов.
|
|
975
975
|
*
|
|
976
976
|
* @param error Данные об ошибке.
|
|
977
977
|
* @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
978
978
|
* @param disableNotifications Признак необходимости отключить уведомления об ошибках.
|
|
979
979
|
*/
|
|
980
|
-
t(
|
|
981
|
-
let h =
|
|
980
|
+
t(_, "defaultErrorsResponseHandler", C);
|
|
981
|
+
let h = _;
|
|
982
982
|
class bt extends h {
|
|
983
983
|
/**
|
|
984
984
|
* Возвращает содержимое корзины указанного клиента.
|
|
@@ -988,7 +988,7 @@ class bt extends h {
|
|
|
988
988
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_get
|
|
989
989
|
*/
|
|
990
990
|
getCart(r) {
|
|
991
|
-
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new
|
|
991
|
+
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new ue(e.data));
|
|
992
992
|
}
|
|
993
993
|
/**
|
|
994
994
|
* Удаляет всё содержимое корзины.
|
|
@@ -1026,7 +1026,7 @@ class bt extends h {
|
|
|
1026
1026
|
isAdditionalSale: e.isAdditionalSale,
|
|
1027
1027
|
...e.configuratorParams
|
|
1028
1028
|
},
|
|
1029
|
-
(i) => new
|
|
1029
|
+
(i) => new ue(i.data),
|
|
1030
1030
|
s
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
@@ -1056,7 +1056,7 @@ class bt extends h {
|
|
|
1056
1056
|
isAdditionalSale: e.isAdditionalSale,
|
|
1057
1057
|
...e.configuratorParams
|
|
1058
1058
|
},
|
|
1059
|
-
(i) => new
|
|
1059
|
+
(i) => new ue(i.data),
|
|
1060
1060
|
s
|
|
1061
1061
|
);
|
|
1062
1062
|
}
|
|
@@ -1079,11 +1079,11 @@ class bt extends h {
|
|
|
1079
1079
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
|
|
1080
1080
|
*/
|
|
1081
1081
|
addCartItemFromCSV(r) {
|
|
1082
|
-
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new
|
|
1082
|
+
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new ue(e.data));
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
1085
|
var Fr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Fr || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), 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 || {});
|
|
1086
|
-
class
|
|
1086
|
+
class z extends le {
|
|
1087
1087
|
/**
|
|
1088
1088
|
* Инициализирует экземпляр класса {@link Category}.
|
|
1089
1089
|
*
|
|
@@ -1100,7 +1100,7 @@ class G extends ce {
|
|
|
1100
1100
|
* Список продуктов категории.
|
|
1101
1101
|
*/
|
|
1102
1102
|
t(this, "products");
|
|
1103
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new
|
|
1103
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new z(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new S(o));
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
1106
|
class sr extends $ {
|
|
@@ -1144,7 +1144,7 @@ class _t {
|
|
|
1144
1144
|
if (e)
|
|
1145
1145
|
try {
|
|
1146
1146
|
const s = JSON.parse(e);
|
|
1147
|
-
if (
|
|
1147
|
+
if (ar(y(s.availableFor) || Ze(), /* @__PURE__ */ new Date()))
|
|
1148
1148
|
return s.data ?? {};
|
|
1149
1149
|
} catch {
|
|
1150
1150
|
localStorage.removeItem(r);
|
|
@@ -1167,7 +1167,7 @@ class _t {
|
|
|
1167
1167
|
);
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
|
-
class
|
|
1170
|
+
class G extends $ {
|
|
1171
1171
|
/**
|
|
1172
1172
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
1173
1173
|
*
|
|
@@ -1218,7 +1218,7 @@ class Br extends $ {
|
|
|
1218
1218
|
* Дата и время удаления.
|
|
1219
1219
|
*/
|
|
1220
1220
|
t(this, "deletedAt");
|
|
1221
|
-
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) ? y(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
|
|
1221
|
+
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) ? y(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) ? y(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
1224
|
class j extends sr {
|
|
@@ -1240,7 +1240,7 @@ class j extends sr {
|
|
|
1240
1240
|
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = m(e == null ? void 0 : e.createdAt) ? y(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
|
-
class K extends
|
|
1243
|
+
class K extends S {
|
|
1244
1244
|
/**
|
|
1245
1245
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1246
1246
|
*
|
|
@@ -1299,7 +1299,7 @@ class zr {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
class I extends w {
|
|
1301
1301
|
}
|
|
1302
|
-
class
|
|
1302
|
+
class se extends $ {
|
|
1303
1303
|
/**
|
|
1304
1304
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1305
1305
|
*
|
|
@@ -1326,7 +1326,7 @@ class te extends $ {
|
|
|
1326
1326
|
e && (this.salesDirection = new I(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new zr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1327
1327
|
}
|
|
1328
1328
|
}
|
|
1329
|
-
class
|
|
1329
|
+
class Pe extends se {
|
|
1330
1330
|
/**
|
|
1331
1331
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1332
1332
|
*
|
|
@@ -1357,7 +1357,7 @@ class ve extends te {
|
|
|
1357
1357
|
this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId;
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
|
-
class jr extends
|
|
1360
|
+
class jr extends le {
|
|
1361
1361
|
/**
|
|
1362
1362
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1363
1363
|
*
|
|
@@ -1385,10 +1385,10 @@ class jr extends ce {
|
|
|
1385
1385
|
* Данные о менеджере за которым закреплена категория.
|
|
1386
1386
|
*/
|
|
1387
1387
|
t(this, "manager");
|
|
1388
|
-
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
|
|
1388
|
+
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 Pe(e.manager) : void 0;
|
|
1389
1389
|
}
|
|
1390
1390
|
}
|
|
1391
|
-
class
|
|
1391
|
+
class ge extends jr {
|
|
1392
1392
|
/**
|
|
1393
1393
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1394
1394
|
*
|
|
@@ -1405,7 +1405,7 @@ class he extends jr {
|
|
|
1405
1405
|
* Список продуктов категории.
|
|
1406
1406
|
*/
|
|
1407
1407
|
t(this, "products");
|
|
1408
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new
|
|
1408
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ge(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new K(o));
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
1411
1411
|
class ir {
|
|
@@ -1423,7 +1423,7 @@ class ir {
|
|
|
1423
1423
|
* Процент, который прибавляется к значению выбранного коэффициента.
|
|
1424
1424
|
*/
|
|
1425
1425
|
t(this, "increasePercent");
|
|
1426
|
-
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new
|
|
1426
|
+
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new we(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
1429
|
class ae extends ir {
|
|
@@ -1438,12 +1438,12 @@ class ae extends ir {
|
|
|
1438
1438
|
* Базовые данные о продукте.
|
|
1439
1439
|
*/
|
|
1440
1440
|
t(this, "productCategory");
|
|
1441
|
-
this.productCategory = new
|
|
1441
|
+
this.productCategory = new le(e == null ? void 0 : e.productCategory);
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|
|
1444
1444
|
class Q extends w {
|
|
1445
1445
|
}
|
|
1446
|
-
class
|
|
1446
|
+
class ie extends w {
|
|
1447
1447
|
/**
|
|
1448
1448
|
* Инициализирует экземпляр класса {@link Region}.
|
|
1449
1449
|
*
|
|
@@ -1469,8 +1469,8 @@ class Fe extends w {
|
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Данные о регионе, в котором расположен город.
|
|
1471
1471
|
*/
|
|
1472
|
-
t(this, "region", new
|
|
1473
|
-
e && (this.region = new
|
|
1472
|
+
t(this, "region", new ie());
|
|
1473
|
+
e && (this.region = new ie(e.region));
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
1476
|
class nr extends $ {
|
|
@@ -1512,7 +1512,7 @@ class nr extends $ {
|
|
|
1512
1512
|
this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new I(e.salesDirection) : void 0, this.createdAt = m(e == null ? void 0 : e.createdAt) ? y(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = m(e == null ? void 0 : e.lastLoginAt) ? y(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
|
-
class
|
|
1515
|
+
class pe extends nr {
|
|
1516
1516
|
/**
|
|
1517
1517
|
* Инициализирует экземпляр класса {@link Client}.
|
|
1518
1518
|
*
|
|
@@ -1554,10 +1554,10 @@ class le extends nr {
|
|
|
1554
1554
|
* Список менеджеров клиента.
|
|
1555
1555
|
*/
|
|
1556
1556
|
t(this, "managers");
|
|
1557
|
-
this.salesDirection = new I(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 Fe(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new
|
|
1557
|
+
this.salesDirection = new I(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 Fe(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new se(i))) ?? [];
|
|
1558
1558
|
}
|
|
1559
1559
|
}
|
|
1560
|
-
class Z extends
|
|
1560
|
+
class Z extends H {
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Инициализирует новый экземпляр класса.
|
|
1563
1563
|
*
|
|
@@ -1581,10 +1581,10 @@ class Z extends B {
|
|
|
1581
1581
|
* Данные шаблона прайс-листа.
|
|
1582
1582
|
*/
|
|
1583
1583
|
t(this, "priceTemplate");
|
|
1584
|
-
this.createdAt = m(e == null ? void 0 : e.createdAt) ? y(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? y(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new
|
|
1584
|
+
this.createdAt = m(e == null ? void 0 : e.createdAt) ? y(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = m(e == null ? void 0 : e.deletedAt) ? y(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new pe(e == null ? void 0 : e.client), this.priceTemplate = new j(e == null ? void 0 : e.priceTemplate);
|
|
1585
1585
|
}
|
|
1586
1586
|
}
|
|
1587
|
-
class
|
|
1587
|
+
class $e extends ir {
|
|
1588
1588
|
/**
|
|
1589
1589
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1590
1590
|
*
|
|
@@ -1596,7 +1596,7 @@ class De extends ir {
|
|
|
1596
1596
|
* Базовые данные о продукте.
|
|
1597
1597
|
*/
|
|
1598
1598
|
t(this, "product");
|
|
1599
|
-
this.product = new
|
|
1599
|
+
this.product = new S(e == null ? void 0 : e.product);
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
1602
|
class or extends w {
|
|
@@ -1624,7 +1624,7 @@ class ee extends $ {
|
|
|
1624
1624
|
this.type = new or(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
1627
|
-
class
|
|
1627
|
+
class B {
|
|
1628
1628
|
/**
|
|
1629
1629
|
* Инициализирует экземпляр класса {@link PropertyValue}.
|
|
1630
1630
|
*
|
|
@@ -1721,28 +1721,10 @@ class St {
|
|
|
1721
1721
|
return Object.keys(this).forEach((c) => {
|
|
1722
1722
|
const p = this[c];
|
|
1723
1723
|
// eslint-disable-next-line prettier/prettier
|
|
1724
|
-
T(p) || m(p) && p.trim().length === 0 ||
|
|
1724
|
+
T(p) || m(p) && p.trim().length === 0 || xe(p.isNewRec) && p.isNewRec() || (r[c] = p);
|
|
1725
1725
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.updatedAt) != null && i.from) && !((o = r == null ? void 0 : r.updatedAt) != null && o.to) && delete r.updatedAt, r;
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
|
-
class Be {
|
|
1729
|
-
/**
|
|
1730
|
-
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
1731
|
-
*
|
|
1732
|
-
* @param data Данные для первоначальной инициализации.
|
|
1733
|
-
*/
|
|
1734
|
-
constructor(r) {
|
|
1735
|
-
/**
|
|
1736
|
-
* Список рекомендованных продуктов.
|
|
1737
|
-
*/
|
|
1738
|
-
t(this, "products", []);
|
|
1739
|
-
/**
|
|
1740
|
-
* Список рекомендованных категорий продуктов.
|
|
1741
|
-
*/
|
|
1742
|
-
t(this, "productCategories", []);
|
|
1743
|
-
r != null && r.products && (this.products = r.products.map((e) => new _(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new G(e)));
|
|
1744
|
-
}
|
|
1745
|
-
}
|
|
1746
1728
|
class re extends $ {
|
|
1747
1729
|
/**
|
|
1748
1730
|
* Инициализирует экземпляр класса {@link PricingRole}.
|
|
@@ -1778,7 +1760,7 @@ class re extends $ {
|
|
|
1778
1760
|
this.description = e == null ? void 0 : e.description, this.canChangeLowCost = (e == null ? void 0 : e.canChangeLowCost) ?? !1, this.parentRoleId = e == null ? void 0 : e.parentRoleId;
|
|
1779
1761
|
}
|
|
1780
1762
|
}
|
|
1781
|
-
class
|
|
1763
|
+
class Be {
|
|
1782
1764
|
/**
|
|
1783
1765
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
1784
1766
|
*
|
|
@@ -1797,7 +1779,7 @@ class ze {
|
|
|
1797
1779
|
* Минимальный коэффициент цены.
|
|
1798
1780
|
*/
|
|
1799
1781
|
t(this, "minCoefficient");
|
|
1800
|
-
this.role = new re(r == null ? void 0 : r.role), this.category = new
|
|
1782
|
+
this.role = new re(r == null ? void 0 : r.role), this.category = new le(r == null ? void 0 : r.category), this.minCoefficient = new we(r == null ? void 0 : r.minCoefficient);
|
|
1801
1783
|
}
|
|
1802
1784
|
}
|
|
1803
1785
|
class Wr {
|
|
@@ -1837,6 +1819,10 @@ class Vr {
|
|
|
1837
1819
|
* @inheritDoc
|
|
1838
1820
|
*/
|
|
1839
1821
|
t(this, "priceHistoryApiUrl");
|
|
1822
|
+
/**
|
|
1823
|
+
* @inheritDoc
|
|
1824
|
+
*/
|
|
1825
|
+
t(this, "recommendationsApiUrl");
|
|
1840
1826
|
/**
|
|
1841
1827
|
* @inheritDoc
|
|
1842
1828
|
*/
|
|
@@ -1845,7 +1831,7 @@ class Vr {
|
|
|
1845
1831
|
* @inheritDoc
|
|
1846
1832
|
*/
|
|
1847
1833
|
t(this, "responseDataCacheTimeout");
|
|
1848
|
-
this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.priceHistoryApiUrl = (r == null ? void 0 : r.priceHistoryApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
|
|
1834
|
+
this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.priceHistoryApiUrl = (r == null ? void 0 : r.priceHistoryApiUrl) ?? "", this.recommendationsApiUrl = (r == null ? void 0 : r.recommendationsApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
|
|
1849
1835
|
}
|
|
1850
1836
|
}
|
|
1851
1837
|
class Er {
|
|
@@ -1992,7 +1978,7 @@ class Lt extends h {
|
|
|
1992
1978
|
*/
|
|
1993
1979
|
// eslint-disable-next-line class-methods-use-this
|
|
1994
1980
|
getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
|
|
1995
|
-
let c = `${
|
|
1981
|
+
let c = `${A.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
|
|
1996
1982
|
return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
|
|
1997
1983
|
}
|
|
1998
1984
|
}
|
|
@@ -2230,7 +2216,7 @@ class kt extends h {
|
|
|
2230
2216
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_attach
|
|
2231
2217
|
*/
|
|
2232
2218
|
attachTemplate(r, e, s) {
|
|
2233
|
-
const i =
|
|
2219
|
+
const i = A.getConfig().dateFormats.api;
|
|
2234
2220
|
return this.post(
|
|
2235
2221
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
2236
2222
|
s && {
|
|
@@ -2264,7 +2250,7 @@ class kt extends h {
|
|
|
2264
2250
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_change
|
|
2265
2251
|
*/
|
|
2266
2252
|
changeTemplate(r, e, s, i) {
|
|
2267
|
-
const o =
|
|
2253
|
+
const o = A.getConfig().dateFormats.api;
|
|
2268
2254
|
return this.patch(
|
|
2269
2255
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
2270
2256
|
i && {
|
|
@@ -2301,7 +2287,7 @@ class xt extends h {
|
|
|
2301
2287
|
{
|
|
2302
2288
|
showHidden: r
|
|
2303
2289
|
},
|
|
2304
|
-
(e) => e.data.map((s) => new
|
|
2290
|
+
(e) => e.data.map((s) => new z(s))
|
|
2305
2291
|
);
|
|
2306
2292
|
}
|
|
2307
2293
|
/**
|
|
@@ -2320,7 +2306,7 @@ class xt extends h {
|
|
|
2320
2306
|
showHidden: e,
|
|
2321
2307
|
withNestedCategories: s
|
|
2322
2308
|
},
|
|
2323
|
-
(i) => new
|
|
2309
|
+
(i) => new z(i.data)
|
|
2324
2310
|
);
|
|
2325
2311
|
}
|
|
2326
2312
|
/**
|
|
@@ -2329,7 +2315,7 @@ class xt extends h {
|
|
|
2329
2315
|
* @param categoryID Идентификатор категории продуктов.
|
|
2330
2316
|
*/
|
|
2331
2317
|
getPublicCategoryData(r) {
|
|
2332
|
-
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new
|
|
2318
|
+
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new z(e.data));
|
|
2333
2319
|
}
|
|
2334
2320
|
/**
|
|
2335
2321
|
* Возвращает список продуктов категории.
|
|
@@ -2347,7 +2333,7 @@ class xt extends h {
|
|
|
2347
2333
|
showHidden: s,
|
|
2348
2334
|
withPriceCoefficients: e
|
|
2349
2335
|
},
|
|
2350
|
-
(i) =>
|
|
2336
|
+
(i) => ce(i.data, (o) => new S(o))
|
|
2351
2337
|
);
|
|
2352
2338
|
}
|
|
2353
2339
|
/**
|
|
@@ -2360,7 +2346,7 @@ class xt extends h {
|
|
|
2360
2346
|
getCategoryProductsCoefficients(r) {
|
|
2361
2347
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2362
2348
|
const { data: s } = e;
|
|
2363
|
-
return
|
|
2349
|
+
return Dr(s, (i) => i.map((o) => new qe(o))), s;
|
|
2364
2350
|
});
|
|
2365
2351
|
}
|
|
2366
2352
|
/**
|
|
@@ -2372,7 +2358,7 @@ class xt extends h {
|
|
|
2372
2358
|
publicSimpleSearch(r, e = 10) {
|
|
2373
2359
|
return new Promise((s, i) => {
|
|
2374
2360
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2375
|
-
s(o.categories.map((c) => new
|
|
2361
|
+
s(o.categories.map((c) => new z(c)));
|
|
2376
2362
|
}).catch((o) => {
|
|
2377
2363
|
i(o);
|
|
2378
2364
|
});
|
|
@@ -2389,7 +2375,7 @@ class Nt extends h {
|
|
|
2389
2375
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
2390
2376
|
*/
|
|
2391
2377
|
getProductData(r, e = !1) {
|
|
2392
|
-
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new
|
|
2378
|
+
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new S(s.data));
|
|
2393
2379
|
}
|
|
2394
2380
|
/**
|
|
2395
2381
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -2397,7 +2383,7 @@ class Nt extends h {
|
|
|
2397
2383
|
* @param productId Идентификатор продукта.
|
|
2398
2384
|
*/
|
|
2399
2385
|
getPublicProductData(r) {
|
|
2400
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
2386
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new S(e.data));
|
|
2401
2387
|
}
|
|
2402
2388
|
/**
|
|
2403
2389
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -2410,7 +2396,7 @@ class Nt extends h {
|
|
|
2410
2396
|
return this.get(
|
|
2411
2397
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2412
2398
|
{},
|
|
2413
|
-
(e) =>
|
|
2399
|
+
(e) => ce(e.data, (s) => new qe(s))
|
|
2414
2400
|
);
|
|
2415
2401
|
}
|
|
2416
2402
|
/**
|
|
@@ -2422,7 +2408,7 @@ class Nt extends h {
|
|
|
2422
2408
|
publicSimpleSearch(r, e = 10) {
|
|
2423
2409
|
return new Promise((s, i) => {
|
|
2424
2410
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2425
|
-
s(o.products.map((c) => new
|
|
2411
|
+
s(o.products.map((c) => new S(c)));
|
|
2426
2412
|
}).catch((o) => {
|
|
2427
2413
|
i(o);
|
|
2428
2414
|
});
|
|
@@ -2445,7 +2431,7 @@ class Ot extends h {
|
|
|
2445
2431
|
clientId: r,
|
|
2446
2432
|
showHidden: e
|
|
2447
2433
|
},
|
|
2448
|
-
(s) => s.data.map((i) => new
|
|
2434
|
+
(s) => s.data.map((i) => new ge(i))
|
|
2449
2435
|
);
|
|
2450
2436
|
}
|
|
2451
2437
|
/**
|
|
@@ -2466,7 +2452,7 @@ class Ot extends h {
|
|
|
2466
2452
|
showHidden: s,
|
|
2467
2453
|
withNestedCategories: i
|
|
2468
2454
|
},
|
|
2469
|
-
(o) => new
|
|
2455
|
+
(o) => new ge(o.data)
|
|
2470
2456
|
);
|
|
2471
2457
|
}
|
|
2472
2458
|
/**
|
|
@@ -2487,7 +2473,7 @@ class Ot extends h {
|
|
|
2487
2473
|
showHidden: i,
|
|
2488
2474
|
withPriceCoefficients: s
|
|
2489
2475
|
},
|
|
2490
|
-
(o) =>
|
|
2476
|
+
(o) => ce(o.data, (c) => new K(c))
|
|
2491
2477
|
);
|
|
2492
2478
|
}
|
|
2493
2479
|
}
|
|
@@ -2513,7 +2499,7 @@ class qt extends h {
|
|
|
2513
2499
|
}
|
|
2514
2500
|
}
|
|
2515
2501
|
var Me = /* @__PURE__ */ ((n) => (n.BeginWith = "bw", n.Contains = "cn", n.Custom = "custom", n.EndsWith = "ew", n.Equals = "eq", n.GreaterOrEqual = "ge", n.GreaterThan = "gt", n.InList = "in", n.LessOrEqual = "le", n.LessThan = "lt", n.NotBeginWith = "bn", n.NotContains = "nc", n.NotEndsWith = "en", n.NotEqual = "ne", n.NotInList = "ni", n.NotNull = "nn", n.Null = "nu", n))(Me || {});
|
|
2516
|
-
class
|
|
2502
|
+
class ze {
|
|
2517
2503
|
/**
|
|
2518
2504
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
2519
2505
|
*
|
|
@@ -2544,10 +2530,10 @@ class je {
|
|
|
2544
2530
|
field: this.field,
|
|
2545
2531
|
op: this.op
|
|
2546
2532
|
};
|
|
2547
|
-
return r.value =
|
|
2533
|
+
return r.value = Se(this.value) ? q(this.value, A.getConfig().dateFormats.api) : this.value, r;
|
|
2548
2534
|
}
|
|
2549
2535
|
}
|
|
2550
|
-
class
|
|
2536
|
+
class ne {
|
|
2551
2537
|
/**
|
|
2552
2538
|
* Инициализирует экземпляр класса {@link FilterGroup}.
|
|
2553
2539
|
*
|
|
@@ -2567,7 +2553,7 @@ class ie {
|
|
|
2567
2553
|
*/
|
|
2568
2554
|
t(this, "groups");
|
|
2569
2555
|
var e, s;
|
|
2570
|
-
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new
|
|
2556
|
+
this.groupOp = (r == null ? void 0 : r.groupOp) ?? "and", this.filters = ((e = r == null ? void 0 : r.filters) == null ? void 0 : e.map((i) => new ze(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new ne(i))) ?? [];
|
|
2571
2557
|
}
|
|
2572
2558
|
/**
|
|
2573
2559
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2577,12 +2563,12 @@ class ie {
|
|
|
2577
2563
|
toPrimitive() {
|
|
2578
2564
|
return {
|
|
2579
2565
|
groupOp: this.groupOp,
|
|
2580
|
-
filters: this.filters.map((r) => r instanceof
|
|
2581
|
-
groups: this.groups.map((r) => r instanceof
|
|
2566
|
+
filters: this.filters.map((r) => r instanceof ze && xe(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2567
|
+
groups: this.groups.map((r) => r instanceof ne ? r.toPrimitive() : r)
|
|
2582
2568
|
};
|
|
2583
2569
|
}
|
|
2584
2570
|
}
|
|
2585
|
-
class
|
|
2571
|
+
class Re extends h {
|
|
2586
2572
|
/**
|
|
2587
2573
|
* Получает пагинированный список данных.
|
|
2588
2574
|
*
|
|
@@ -2599,10 +2585,10 @@ class Pe extends h {
|
|
|
2599
2585
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2600
2586
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2601
2587
|
};
|
|
2602
|
-
return e && (u.filters = JSON.stringify((e instanceof
|
|
2588
|
+
return e && (u.filters = JSON.stringify((e instanceof ne ? e : new ne(e)).toPrimitive())), Ce(s) || (u.sort = Ne(s) ? s : [s]), o && (u = { ...u, ...o }), this.get(r, u, c, p);
|
|
2603
2589
|
}
|
|
2604
2590
|
}
|
|
2605
|
-
class Ut extends
|
|
2591
|
+
class Ut extends Re {
|
|
2606
2592
|
/**
|
|
2607
2593
|
* Возвращает список шаблонов прайс-листа.
|
|
2608
2594
|
*
|
|
@@ -2674,7 +2660,7 @@ class Ut extends Pe {
|
|
|
2674
2660
|
return this.get(
|
|
2675
2661
|
`/internal/price/templates/${r}/products`,
|
|
2676
2662
|
{},
|
|
2677
|
-
(e) => e.data.map((s) => new
|
|
2663
|
+
(e) => e.data.map((s) => new $e(s))
|
|
2678
2664
|
);
|
|
2679
2665
|
}
|
|
2680
2666
|
/**
|
|
@@ -2686,7 +2672,7 @@ class Ut extends Pe {
|
|
|
2686
2672
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
2687
2673
|
*/
|
|
2688
2674
|
getProductTemplatePrice(r, e) {
|
|
2689
|
-
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new
|
|
2675
|
+
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new $e(s.data));
|
|
2690
2676
|
}
|
|
2691
2677
|
/**
|
|
2692
2678
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -2705,7 +2691,7 @@ class Ut extends Pe {
|
|
|
2705
2691
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2706
2692
|
increase_percent: s.value
|
|
2707
2693
|
},
|
|
2708
|
-
(o) => new
|
|
2694
|
+
(o) => new $e(o.data)
|
|
2709
2695
|
);
|
|
2710
2696
|
}
|
|
2711
2697
|
/**
|
|
@@ -2867,7 +2853,7 @@ class Gt extends h {
|
|
|
2867
2853
|
return this.get(
|
|
2868
2854
|
`/internal/price/roles/rules/categories/${r}`,
|
|
2869
2855
|
{},
|
|
2870
|
-
(e) => e.data.map((s) => new
|
|
2856
|
+
(e) => e.data.map((s) => new Be(s))
|
|
2871
2857
|
);
|
|
2872
2858
|
}
|
|
2873
2859
|
/**
|
|
@@ -2882,11 +2868,11 @@ class Gt extends h {
|
|
|
2882
2868
|
return this.patch(
|
|
2883
2869
|
`/internal/price/roles/rules/categories/${r}`,
|
|
2884
2870
|
e,
|
|
2885
|
-
(s) => s.data.map((i) => new
|
|
2871
|
+
(s) => s.data.map((i) => new Be(i))
|
|
2886
2872
|
);
|
|
2887
2873
|
}
|
|
2888
2874
|
}
|
|
2889
|
-
class Ft extends
|
|
2875
|
+
class Ft extends Re {
|
|
2890
2876
|
/**
|
|
2891
2877
|
* Возвращает пагинированный список свойств.
|
|
2892
2878
|
*
|
|
@@ -2962,7 +2948,7 @@ class Ft extends Pe {
|
|
|
2962
2948
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
|
|
2963
2949
|
*/
|
|
2964
2950
|
getProductProperties(r) {
|
|
2965
|
-
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
2951
|
+
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new B(s)));
|
|
2966
2952
|
}
|
|
2967
2953
|
/**
|
|
2968
2954
|
* Возвращает значение свойства продукта.
|
|
@@ -2972,7 +2958,7 @@ class Ft extends Pe {
|
|
|
2972
2958
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
|
|
2973
2959
|
*/
|
|
2974
2960
|
getProductProperty(r, e) {
|
|
2975
|
-
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new
|
|
2961
|
+
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new B(s.data));
|
|
2976
2962
|
}
|
|
2977
2963
|
/**
|
|
2978
2964
|
* Обновляет значение свойства продукта.
|
|
@@ -2983,7 +2969,7 @@ class Ft extends Pe {
|
|
|
2983
2969
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
|
|
2984
2970
|
*/
|
|
2985
2971
|
updateProductProperty(r, e, s) {
|
|
2986
|
-
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new
|
|
2972
|
+
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new B(i.data));
|
|
2987
2973
|
}
|
|
2988
2974
|
/**
|
|
2989
2975
|
* Удаляет значение свойства продукта.
|
|
@@ -3108,7 +3094,7 @@ class Ft extends Pe {
|
|
|
3108
3094
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
|
|
3109
3095
|
*/
|
|
3110
3096
|
getCategoryProperties(r) {
|
|
3111
|
-
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
3097
|
+
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new B(s)));
|
|
3112
3098
|
}
|
|
3113
3099
|
/**
|
|
3114
3100
|
* Возвращает значение свойства категории.
|
|
@@ -3118,7 +3104,7 @@ class Ft extends Pe {
|
|
|
3118
3104
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
|
|
3119
3105
|
*/
|
|
3120
3106
|
getCategoryProperty(r, e) {
|
|
3121
|
-
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new
|
|
3107
|
+
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new B(s.data));
|
|
3122
3108
|
}
|
|
3123
3109
|
/**
|
|
3124
3110
|
* Обновляет значение свойства категории.
|
|
@@ -3129,7 +3115,7 @@ class Ft extends Pe {
|
|
|
3129
3115
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
|
|
3130
3116
|
*/
|
|
3131
3117
|
updateCategoryProperty(r, e, s) {
|
|
3132
|
-
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new
|
|
3118
|
+
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new B(i.data));
|
|
3133
3119
|
}
|
|
3134
3120
|
/**
|
|
3135
3121
|
* Удаляет значение свойства категории.
|
|
@@ -3258,49 +3244,7 @@ class Ft extends Pe {
|
|
|
3258
3244
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3259
3245
|
}
|
|
3260
3246
|
}
|
|
3261
|
-
|
|
3262
|
-
/**
|
|
3263
|
-
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
3264
|
-
*
|
|
3265
|
-
* @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
|
|
3266
|
-
*/
|
|
3267
|
-
getProductCategoryRecommendations(r) {
|
|
3268
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Be(e.data));
|
|
3269
|
-
}
|
|
3270
|
-
/**
|
|
3271
|
-
* Возвращает данные о рекомендациях указанного продукта.
|
|
3272
|
-
*
|
|
3273
|
-
* @param product Данные о продукте, для которого необходимо получить рекомендации.
|
|
3274
|
-
*/
|
|
3275
|
-
getProductRecommendations(r) {
|
|
3276
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Be(e.data));
|
|
3277
|
-
}
|
|
3278
|
-
/**
|
|
3279
|
-
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
3280
|
-
*
|
|
3281
|
-
* @param productCategory Данные о категории для которой необходимо сохранить список рекомендуемых товаров.
|
|
3282
|
-
* @param recommendations Список рекомендованных продуктов и категорий.
|
|
3283
|
-
*/
|
|
3284
|
-
saveProductCategoryRecommendations(r, e) {
|
|
3285
|
-
return this.post(`/internal/catalog/recommendations/categories/${r.id}`, {
|
|
3286
|
-
product_categories: e.productCategories.map((s) => s.id),
|
|
3287
|
-
products: e.products.map((s) => s.id)
|
|
3288
|
-
});
|
|
3289
|
-
}
|
|
3290
|
-
/**
|
|
3291
|
-
* Выполняет сохранение данных о рекомендуемых продуктах.
|
|
3292
|
-
*
|
|
3293
|
-
* @param product Данные о продукте для которого необходимо сохранить список рекомендуемых товаров.
|
|
3294
|
-
* @param recommendations Список рекомендованных продуктов и категорий.
|
|
3295
|
-
*/
|
|
3296
|
-
saveProductRecommendations(r, e) {
|
|
3297
|
-
return this.post(`/internal/catalog/recommendations/products/${r.id}`, {
|
|
3298
|
-
product_categories: e.productCategories.map((s) => s.id),
|
|
3299
|
-
products: e.products.map((s) => s.id)
|
|
3300
|
-
});
|
|
3301
|
-
}
|
|
3302
|
-
}
|
|
3303
|
-
function We(n, r, e) {
|
|
3247
|
+
function je(n, r, e) {
|
|
3304
3248
|
let s;
|
|
3305
3249
|
return n.some((i) => {
|
|
3306
3250
|
if (i.type === e && i.id === r)
|
|
@@ -3309,12 +3253,12 @@ function We(n, r, e) {
|
|
|
3309
3253
|
return !1;
|
|
3310
3254
|
const o = i;
|
|
3311
3255
|
if (o.products && o.products.length > 0) {
|
|
3312
|
-
const c =
|
|
3256
|
+
const c = je(o.products, r, e);
|
|
3313
3257
|
if (c)
|
|
3314
3258
|
return s = c, !0;
|
|
3315
3259
|
}
|
|
3316
3260
|
if (o.categories && o.categories.length > 0) {
|
|
3317
|
-
const c =
|
|
3261
|
+
const c = je(o.categories, r, e);
|
|
3318
3262
|
if (c)
|
|
3319
3263
|
return s = c, !0;
|
|
3320
3264
|
}
|
|
@@ -3326,11 +3270,11 @@ class Qr extends w {
|
|
|
3326
3270
|
}
|
|
3327
3271
|
class cr extends w {
|
|
3328
3272
|
}
|
|
3329
|
-
class
|
|
3273
|
+
class Mt extends w {
|
|
3330
3274
|
}
|
|
3331
3275
|
class Yr extends w {
|
|
3332
3276
|
}
|
|
3333
|
-
class
|
|
3277
|
+
class me extends $ {
|
|
3334
3278
|
/**
|
|
3335
3279
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
3336
3280
|
*
|
|
@@ -3349,12 +3293,12 @@ class ge extends $ {
|
|
|
3349
3293
|
e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
|
|
3350
3294
|
}
|
|
3351
3295
|
}
|
|
3352
|
-
class
|
|
3296
|
+
class F extends w {
|
|
3353
3297
|
/**
|
|
3354
3298
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
3355
3299
|
*/
|
|
3356
3300
|
static generatePersonItem() {
|
|
3357
|
-
return new
|
|
3301
|
+
return new F({
|
|
3358
3302
|
id: 1,
|
|
3359
3303
|
guid: "",
|
|
3360
3304
|
slug: b.Person,
|
|
@@ -3376,7 +3320,7 @@ class lr extends w {
|
|
|
3376
3320
|
}
|
|
3377
3321
|
class pr extends w {
|
|
3378
3322
|
}
|
|
3379
|
-
class
|
|
3323
|
+
class Le extends H {
|
|
3380
3324
|
/**
|
|
3381
3325
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3382
3326
|
*
|
|
@@ -3403,11 +3347,11 @@ class Ie extends B {
|
|
|
3403
3347
|
/**
|
|
3404
3348
|
* Данные о валюте.
|
|
3405
3349
|
*/
|
|
3406
|
-
t(this, "currency", new
|
|
3407
|
-
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new
|
|
3350
|
+
t(this, "currency", new me());
|
|
3351
|
+
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new me(e.currency));
|
|
3408
3352
|
}
|
|
3409
3353
|
}
|
|
3410
|
-
class
|
|
3354
|
+
class de extends $ {
|
|
3411
3355
|
/**
|
|
3412
3356
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3413
3357
|
*
|
|
@@ -3426,7 +3370,7 @@ class Le extends $ {
|
|
|
3426
3370
|
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;
|
|
3427
3371
|
}
|
|
3428
3372
|
}
|
|
3429
|
-
class
|
|
3373
|
+
class M extends de {
|
|
3430
3374
|
/**
|
|
3431
3375
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3432
3376
|
*
|
|
@@ -3473,11 +3417,11 @@ class ur extends $ {
|
|
|
3473
3417
|
/**
|
|
3474
3418
|
* Данные о менеджере.
|
|
3475
3419
|
*/
|
|
3476
|
-
t(this, "manager", new
|
|
3420
|
+
t(this, "manager", new se());
|
|
3477
3421
|
/**
|
|
3478
3422
|
* Данные об организационно-правовой форме.
|
|
3479
3423
|
*/
|
|
3480
|
-
t(this, "opf",
|
|
3424
|
+
t(this, "opf", F.generatePersonItem());
|
|
3481
3425
|
/**
|
|
3482
3426
|
* Направление продаж.
|
|
3483
3427
|
*/
|
|
@@ -3519,16 +3463,16 @@ class ur extends $ {
|
|
|
3519
3463
|
*/
|
|
3520
3464
|
t(this, "updater");
|
|
3521
3465
|
if (e) {
|
|
3522
|
-
if (this.opf = new
|
|
3466
|
+
if (this.opf = new F(e.opf), this.salesDirection = new I(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = m(e == null ? void 0 : e.createdAt) ? y(e.createdAt) : e.createdAt, this.creator = e.creator ? new G(e.creator) : void 0, this.updatedAt = m(e == null ? void 0 : e.updatedAt) ? y(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 se(e.manager)), e.contacts) {
|
|
3523
3467
|
const s = [];
|
|
3524
3468
|
e.contacts.forEach((i) => {
|
|
3525
|
-
s.push(new
|
|
3469
|
+
s.push(new M(i));
|
|
3526
3470
|
}), this.contacts = s;
|
|
3527
3471
|
}
|
|
3528
3472
|
if (e.bankAccounts) {
|
|
3529
3473
|
const s = [];
|
|
3530
3474
|
e.bankAccounts.forEach((i) => {
|
|
3531
|
-
s.push(new
|
|
3475
|
+
s.push(new Le(i));
|
|
3532
3476
|
}), this.bankAccounts = s;
|
|
3533
3477
|
}
|
|
3534
3478
|
}
|
|
@@ -3625,7 +3569,7 @@ class st extends gr {
|
|
|
3625
3569
|
e && (this.registrationCountry = new Q(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
3626
3570
|
}
|
|
3627
3571
|
}
|
|
3628
|
-
class
|
|
3572
|
+
class fe {
|
|
3629
3573
|
/**
|
|
3630
3574
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
3631
3575
|
*
|
|
@@ -3644,7 +3588,7 @@ class me {
|
|
|
3644
3588
|
}
|
|
3645
3589
|
}
|
|
3646
3590
|
}
|
|
3647
|
-
class
|
|
3591
|
+
class Te extends H {
|
|
3648
3592
|
/**
|
|
3649
3593
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
3650
3594
|
*
|
|
@@ -3659,7 +3603,7 @@ class $e extends B {
|
|
|
3659
3603
|
this.isPrimary = e.isPrimary;
|
|
3660
3604
|
}
|
|
3661
3605
|
}
|
|
3662
|
-
class it extends
|
|
3606
|
+
class it extends M {
|
|
3663
3607
|
/**
|
|
3664
3608
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3665
3609
|
*
|
|
@@ -3684,10 +3628,10 @@ class it extends H {
|
|
|
3684
3628
|
*/
|
|
3685
3629
|
addresses: []
|
|
3686
3630
|
});
|
|
3687
|
-
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new
|
|
3631
|
+
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Te(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Te(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Te(s))));
|
|
3688
3632
|
}
|
|
3689
3633
|
}
|
|
3690
|
-
class
|
|
3634
|
+
class ye extends Hr {
|
|
3691
3635
|
/**
|
|
3692
3636
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
3693
3637
|
*
|
|
@@ -3724,10 +3668,10 @@ class fe extends Hr {
|
|
|
3724
3668
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
3725
3669
|
*/
|
|
3726
3670
|
t(this, "isTransportCompanyAddress");
|
|
3727
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new tr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new
|
|
3671
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new tr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new M(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
|
|
3728
3672
|
}
|
|
3729
3673
|
}
|
|
3730
|
-
class
|
|
3674
|
+
class We extends pe {
|
|
3731
3675
|
/**
|
|
3732
3676
|
* Инициализирует экземпляр класса {@link Client}.
|
|
3733
3677
|
*
|
|
@@ -3781,10 +3725,10 @@ class Ve extends le {
|
|
|
3781
3725
|
* Дополнительные данные о клиенте.
|
|
3782
3726
|
*/
|
|
3783
3727
|
t(this, "extraData");
|
|
3784
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) =>
|
|
3728
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => fe.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new Y(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new M(p))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((p) => new ye(p))) ?? [], this.channelPrimaryInterest = new cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new pr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new J(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 ve(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
3785
3729
|
}
|
|
3786
3730
|
}
|
|
3787
|
-
class
|
|
3731
|
+
class Ht {
|
|
3788
3732
|
/**
|
|
3789
3733
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
3790
3734
|
*
|
|
@@ -3880,7 +3824,7 @@ class Bt {
|
|
|
3880
3824
|
*/
|
|
3881
3825
|
t(this, "lastOrder");
|
|
3882
3826
|
var e, s, i, o, c, p;
|
|
3883
|
-
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((u) => new Fe(u)), this.region = new
|
|
3827
|
+
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((u) => new Fe(u)), this.region = new ie(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((u) => new Pe(u)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((u) => new I(u)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new F(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new J(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((u) => new Y(u)), this.contact = new de(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
3884
3828
|
createdAt: new O((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
|
|
3885
3829
|
creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
|
|
3886
3830
|
isApproved: (p = r == null ? void 0 : r.lastOrder) == null ? void 0 : p.isApproved
|
|
@@ -3906,7 +3850,7 @@ class Bt {
|
|
|
3906
3850
|
this.cities = [];
|
|
3907
3851
|
break;
|
|
3908
3852
|
case "region":
|
|
3909
|
-
this.region = new
|
|
3853
|
+
this.region = new ie();
|
|
3910
3854
|
break;
|
|
3911
3855
|
case "isActive":
|
|
3912
3856
|
this.isActive = !0;
|
|
@@ -3930,7 +3874,7 @@ class Bt {
|
|
|
3930
3874
|
this.salesDirections = [];
|
|
3931
3875
|
break;
|
|
3932
3876
|
case "contragentType":
|
|
3933
|
-
this.contragentType = new
|
|
3877
|
+
this.contragentType = new F();
|
|
3934
3878
|
break;
|
|
3935
3879
|
case "preferredDeliveryType":
|
|
3936
3880
|
this.preferredDeliveryType = new J();
|
|
@@ -3939,7 +3883,7 @@ class Bt {
|
|
|
3939
3883
|
this.partnerGroups = [];
|
|
3940
3884
|
break;
|
|
3941
3885
|
case "contact":
|
|
3942
|
-
this.contact = new
|
|
3886
|
+
this.contact = new de();
|
|
3943
3887
|
break;
|
|
3944
3888
|
}
|
|
3945
3889
|
return this;
|
|
@@ -3954,11 +3898,11 @@ class Bt {
|
|
|
3954
3898
|
return Object.keys(this).forEach((c) => {
|
|
3955
3899
|
const p = this[c];
|
|
3956
3900
|
// eslint-disable-next-line prettier/prettier
|
|
3957
|
-
T(p) || m(p) && p.trim().length === 0 ||
|
|
3901
|
+
T(p) || m(p) && p.trim().length === 0 || xe(p.isNewRec) && p.isNewRec() || (r[c] = p);
|
|
3958
3902
|
}), !((e = r == null ? void 0 : r.createdAt) != null && e.from) && !((s = r == null ? void 0 : r.createdAt) != null && s.to) && delete r.createdAt, !((i = r == null ? void 0 : r.lastLoginDate) != null && i.from) && !((o = r == null ? void 0 : r.lastLoginDate) != null && o.to) && delete r.lastLoginDate, r;
|
|
3959
3903
|
}
|
|
3960
3904
|
}
|
|
3961
|
-
class mr extends
|
|
3905
|
+
class mr extends H {
|
|
3962
3906
|
/**
|
|
3963
3907
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
3964
3908
|
*
|
|
@@ -3978,7 +3922,7 @@ class mr extends B {
|
|
|
3978
3922
|
* Признак того, что заказ подтвержден в 1С.
|
|
3979
3923
|
*/
|
|
3980
3924
|
t(this, "isApproved1c");
|
|
3981
|
-
this.createdAt = m(e == null ? void 0 : e.createdAt) ? y(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new
|
|
3925
|
+
this.createdAt = m(e == null ? void 0 : e.createdAt) ? y(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new G(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
3982
3926
|
}
|
|
3983
3927
|
}
|
|
3984
3928
|
class nt extends $ {
|
|
@@ -4014,7 +3958,7 @@ class nt extends $ {
|
|
|
4014
3958
|
* Список менеджеров.
|
|
4015
3959
|
*/
|
|
4016
3960
|
t(this, "managers");
|
|
4017
|
-
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new
|
|
3961
|
+
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new mr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new Y(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new J(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new I(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new se(o)));
|
|
4018
3962
|
}
|
|
4019
3963
|
}
|
|
4020
3964
|
class ot {
|
|
@@ -4035,7 +3979,7 @@ class ot {
|
|
|
4035
3979
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4036
3980
|
}
|
|
4037
3981
|
}
|
|
4038
|
-
class
|
|
3982
|
+
class Bt extends ot {
|
|
4039
3983
|
/**
|
|
4040
3984
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4041
3985
|
*
|
|
@@ -4066,7 +4010,7 @@ class zt extends ot {
|
|
|
4066
4010
|
this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
|
|
4067
4011
|
}
|
|
4068
4012
|
}
|
|
4069
|
-
class
|
|
4013
|
+
class zt {
|
|
4070
4014
|
/**
|
|
4071
4015
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
4072
4016
|
*
|
|
@@ -4084,7 +4028,7 @@ class jt {
|
|
|
4084
4028
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4085
4029
|
}
|
|
4086
4030
|
}
|
|
4087
|
-
class
|
|
4031
|
+
class jt extends Re {
|
|
4088
4032
|
/**
|
|
4089
4033
|
* Возвращает данные об указанном клиенте.
|
|
4090
4034
|
*
|
|
@@ -4092,7 +4036,7 @@ class Wt extends Pe {
|
|
|
4092
4036
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
4093
4037
|
*/
|
|
4094
4038
|
getClient(r) {
|
|
4095
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
4039
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new We(e.data));
|
|
4096
4040
|
}
|
|
4097
4041
|
/**
|
|
4098
4042
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -4107,7 +4051,7 @@ class Wt extends Pe {
|
|
|
4107
4051
|
getClientsList(r, e, s, i) {
|
|
4108
4052
|
return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
|
|
4109
4053
|
const c = { ...o.data };
|
|
4110
|
-
return c.data = c.data.map((p) => new
|
|
4054
|
+
return c.data = c.data.map((p) => new pe(p)), c;
|
|
4111
4055
|
});
|
|
4112
4056
|
}
|
|
4113
4057
|
/**
|
|
@@ -4176,7 +4120,7 @@ class Wt extends Pe {
|
|
|
4176
4120
|
is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
|
|
4177
4121
|
preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
|
|
4178
4122
|
},
|
|
4179
|
-
(i) => new
|
|
4123
|
+
(i) => new We(i.data),
|
|
4180
4124
|
e
|
|
4181
4125
|
);
|
|
4182
4126
|
}
|
|
@@ -4286,7 +4230,7 @@ class Wt extends Pe {
|
|
|
4286
4230
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
|
|
4287
4231
|
*/
|
|
4288
4232
|
createContragentClientData(r, e, s = {}) {
|
|
4289
|
-
var u, P,
|
|
4233
|
+
var u, P, a, L, d, k, x, N;
|
|
4290
4234
|
let i;
|
|
4291
4235
|
const o = e, c = e, p = e;
|
|
4292
4236
|
switch (e.opf.slug) {
|
|
@@ -4313,7 +4257,7 @@ class Wt extends Pe {
|
|
|
4313
4257
|
opf: c.opf.slug,
|
|
4314
4258
|
name: c.name,
|
|
4315
4259
|
alternative_name: c.alternativeName,
|
|
4316
|
-
partner_group_id: (
|
|
4260
|
+
partner_group_id: (a = c.partnerGroup) == null ? void 0 : a.id,
|
|
4317
4261
|
manager_id: (L = c.manager) == null ? void 0 : L.id,
|
|
4318
4262
|
comment: c.comment,
|
|
4319
4263
|
inn: c.inn,
|
|
@@ -4360,7 +4304,7 @@ class Wt extends Pe {
|
|
|
4360
4304
|
return this.post(
|
|
4361
4305
|
`/internal/clients/${r}/contragents`,
|
|
4362
4306
|
i,
|
|
4363
|
-
(U) =>
|
|
4307
|
+
(U) => fe.createInstance(U.data),
|
|
4364
4308
|
s
|
|
4365
4309
|
);
|
|
4366
4310
|
}
|
|
@@ -4375,7 +4319,7 @@ class Wt extends Pe {
|
|
|
4375
4319
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
|
|
4376
4320
|
*/
|
|
4377
4321
|
updateContragentClientData(r, e, s = {}) {
|
|
4378
|
-
var u, P,
|
|
4322
|
+
var u, P, a, L, d, k, x, N;
|
|
4379
4323
|
let i;
|
|
4380
4324
|
const o = e, c = e, p = e;
|
|
4381
4325
|
switch (e.opf.slug) {
|
|
@@ -4402,7 +4346,7 @@ class Wt extends Pe {
|
|
|
4402
4346
|
opf: c.opf.slug,
|
|
4403
4347
|
name: c.name,
|
|
4404
4348
|
alternative_name: c.alternativeName,
|
|
4405
|
-
partner_group_id: (
|
|
4349
|
+
partner_group_id: (a = c.partnerGroup) == null ? void 0 : a.id,
|
|
4406
4350
|
manager_id: (L = c.manager) == null ? void 0 : L.id,
|
|
4407
4351
|
comment: c.comment,
|
|
4408
4352
|
inn: c.inn,
|
|
@@ -4449,7 +4393,7 @@ class Wt extends Pe {
|
|
|
4449
4393
|
return this.patch(
|
|
4450
4394
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
4451
4395
|
i,
|
|
4452
|
-
(U) =>
|
|
4396
|
+
(U) => fe.createInstance(U.data),
|
|
4453
4397
|
s
|
|
4454
4398
|
);
|
|
4455
4399
|
}
|
|
@@ -4487,7 +4431,7 @@ class Wt extends Pe {
|
|
|
4487
4431
|
}), e.operatingHours && (i.operating_hours = {
|
|
4488
4432
|
from: e.operatingHours.from,
|
|
4489
4433
|
to: e.operatingHours.to
|
|
4490
|
-
}), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new
|
|
4434
|
+
}), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new ye(p.data), s);
|
|
4491
4435
|
}
|
|
4492
4436
|
/**
|
|
4493
4437
|
* Обновляет данные об адресе доставки клиента.
|
|
@@ -4516,7 +4460,7 @@ class Wt extends Pe {
|
|
|
4516
4460
|
}), this.patch(
|
|
4517
4461
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
4518
4462
|
i,
|
|
4519
|
-
(p) => new
|
|
4463
|
+
(p) => new ye(p.data),
|
|
4520
4464
|
s
|
|
4521
4465
|
);
|
|
4522
4466
|
}
|
|
@@ -4552,7 +4496,7 @@ class Wt extends Pe {
|
|
|
4552
4496
|
correspondent_account: s.correspondentAccount,
|
|
4553
4497
|
currency_id: s.currency.id
|
|
4554
4498
|
},
|
|
4555
|
-
(o) => new
|
|
4499
|
+
(o) => new Le(o.data),
|
|
4556
4500
|
i
|
|
4557
4501
|
);
|
|
4558
4502
|
}
|
|
@@ -4578,7 +4522,7 @@ class Wt extends Pe {
|
|
|
4578
4522
|
correspondent_account: s.correspondentAccount,
|
|
4579
4523
|
currency_id: s.currency.id
|
|
4580
4524
|
},
|
|
4581
|
-
(o) => new
|
|
4525
|
+
(o) => new Le(o.data),
|
|
4582
4526
|
i
|
|
4583
4527
|
);
|
|
4584
4528
|
}
|
|
@@ -4639,7 +4583,7 @@ class Wt extends Pe {
|
|
|
4639
4583
|
comment: e.comment,
|
|
4640
4584
|
not_disturb: e.notDisturb
|
|
4641
4585
|
},
|
|
4642
|
-
(i) => new
|
|
4586
|
+
(i) => new M(i.data),
|
|
4643
4587
|
s
|
|
4644
4588
|
);
|
|
4645
4589
|
}
|
|
@@ -4782,7 +4726,7 @@ class Wt extends Pe {
|
|
|
4782
4726
|
comment: e.comment,
|
|
4783
4727
|
...s
|
|
4784
4728
|
};
|
|
4785
|
-
return (c = e.phone) != null && c.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (u) => new
|
|
4729
|
+
return (c = e.phone) != null && c.length && (o.phone = e.phone), (p = e.email) != null && p.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (u) => new M(u.data), i);
|
|
4786
4730
|
}
|
|
4787
4731
|
/**
|
|
4788
4732
|
* Устанавливает признак основного контактного лица.
|
|
@@ -4821,7 +4765,7 @@ const V = class V extends h {
|
|
|
4821
4765
|
* Время кэширования данных ответов на запросы (секунд).
|
|
4822
4766
|
*/
|
|
4823
4767
|
t(this, "responseDataCacheTimeout");
|
|
4824
|
-
this.responseDataCacheTimeout =
|
|
4768
|
+
this.responseDataCacheTimeout = A.getConfig().http.responseDataCacheTimeout;
|
|
4825
4769
|
}
|
|
4826
4770
|
/**
|
|
4827
4771
|
* Возвращает кэшированные данные.
|
|
@@ -4858,9 +4802,9 @@ const V = class V extends h {
|
|
|
4858
4802
|
*/
|
|
4859
4803
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
4860
4804
|
getTypedDataArrayRequester(e, s, i = !1, o = {}) {
|
|
4861
|
-
const c = s + (
|
|
4805
|
+
const c = s + (Ce(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? V.getCachedResponse(c) : void 0;
|
|
4862
4806
|
return p ? Promise.resolve(p) : this.get(s, o).then((u) => {
|
|
4863
|
-
const P = u.map((
|
|
4807
|
+
const P = u.map((a) => Ue.instanceInitializer(e, a));
|
|
4864
4808
|
return i && P && this.cacheResponse(s, P), P;
|
|
4865
4809
|
});
|
|
4866
4810
|
}
|
|
@@ -4869,8 +4813,8 @@ const V = class V extends h {
|
|
|
4869
4813
|
* Кэш результатов запросов.
|
|
4870
4814
|
*/
|
|
4871
4815
|
t(V, "responseDataCache", /* @__PURE__ */ new Map());
|
|
4872
|
-
let
|
|
4873
|
-
class
|
|
4816
|
+
let oe = V;
|
|
4817
|
+
class Wt extends h {
|
|
4874
4818
|
/**
|
|
4875
4819
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
4876
4820
|
*
|
|
@@ -4884,7 +4828,7 @@ class Vt extends h {
|
|
|
4884
4828
|
});
|
|
4885
4829
|
}
|
|
4886
4830
|
}
|
|
4887
|
-
class
|
|
4831
|
+
class Vt extends h {
|
|
4888
4832
|
/**
|
|
4889
4833
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
4890
4834
|
*
|
|
@@ -4912,7 +4856,7 @@ class Et extends h {
|
|
|
4912
4856
|
const i = this.get(
|
|
4913
4857
|
`internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
|
|
4914
4858
|
{ params: e },
|
|
4915
|
-
(c) => new
|
|
4859
|
+
(c) => new S(c.data)
|
|
4916
4860
|
);
|
|
4917
4861
|
return i.catch((c) => {
|
|
4918
4862
|
this.errorResponseHandler(c, s);
|
|
@@ -4955,7 +4899,7 @@ class Et extends h {
|
|
|
4955
4899
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
|
|
4956
4900
|
}
|
|
4957
4901
|
}
|
|
4958
|
-
class
|
|
4902
|
+
class Et {
|
|
4959
4903
|
/**
|
|
4960
4904
|
* Возвращает диапазон дат по умолчанию.
|
|
4961
4905
|
*/
|
|
@@ -5010,13 +4954,13 @@ const E = class E {
|
|
|
5010
4954
|
* Список единиц измерения линейной величины.
|
|
5011
4955
|
*/
|
|
5012
4956
|
t(E, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5013
|
-
let
|
|
5014
|
-
class
|
|
4957
|
+
let Ve = E;
|
|
4958
|
+
class Jt {
|
|
5015
4959
|
/**
|
|
5016
4960
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5017
4961
|
*/
|
|
5018
4962
|
static generateUndefinedManagerInstance() {
|
|
5019
|
-
return new
|
|
4963
|
+
return new Pe({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
|
|
5020
4964
|
}
|
|
5021
4965
|
/**
|
|
5022
4966
|
* Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
|
|
@@ -5027,15 +4971,15 @@ class Kt {
|
|
|
5027
4971
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5028
4972
|
}
|
|
5029
4973
|
}
|
|
5030
|
-
class ct extends
|
|
4974
|
+
class ct extends oe {
|
|
5031
4975
|
/**
|
|
5032
4976
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5033
4977
|
*/
|
|
5034
4978
|
async getManagers() {
|
|
5035
|
-
const r = "/internal/managers", e =
|
|
4979
|
+
const r = "/internal/managers", e = oe.getCachedResponse(r);
|
|
5036
4980
|
if (e)
|
|
5037
4981
|
return e;
|
|
5038
|
-
const i = (await this.get(r)).data.map((o) => Ue.instanceInitializer(
|
|
4982
|
+
const i = (await this.get(r)).data.map((o) => Ue.instanceInitializer(Pe, o));
|
|
5039
4983
|
return this.cacheResponse(r, i), i;
|
|
5040
4984
|
}
|
|
5041
4985
|
}
|
|
@@ -5046,7 +4990,7 @@ class fr extends mr {
|
|
|
5046
4990
|
* @param data Данные для первоначальной инициализации.
|
|
5047
4991
|
*/
|
|
5048
4992
|
constructor(e) {
|
|
5049
|
-
var s, i, o, c, p, u, P,
|
|
4993
|
+
var s, i, o, c, p, u, P, a;
|
|
5050
4994
|
super(e);
|
|
5051
4995
|
/**
|
|
5052
4996
|
* Краткие данные о клиенте.
|
|
@@ -5088,19 +5032,19 @@ class fr extends mr {
|
|
|
5088
5032
|
* Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
|
|
5089
5033
|
*/
|
|
5090
5034
|
t(this, "isNotInStock");
|
|
5091
|
-
this.client = new
|
|
5035
|
+
this.client = new pe(e == null ? void 0 : e.client), this.payment = {
|
|
5092
5036
|
type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
|
|
5093
5037
|
status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
|
|
5094
5038
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
5095
5039
|
}, this.delivery = {
|
|
5096
5040
|
type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
|
|
5097
5041
|
date: m((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? y(e.delivery.date) : ((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ?? /* @__PURE__ */ new Date(),
|
|
5098
|
-
address: (P = e == null ? void 0 : e.delivery) != null && P.address ? new
|
|
5099
|
-
warehouse: (
|
|
5100
|
-
}, this.attachedUser = new
|
|
5042
|
+
address: (P = e == null ? void 0 : e.delivery) != null && P.address ? new ye(e.delivery.address) : void 0,
|
|
5043
|
+
warehouse: (a = e == null ? void 0 : e.delivery) != null && a.warehouse ? new ve(e.delivery.warehouse) : void 0
|
|
5044
|
+
}, this.attachedUser = new G(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new I(e == null ? void 0 : e.salesDirection), this.pendingAt = m(e == null ? void 0 : e.pendingAt) ? y(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = m(e == null ? void 0 : e.processedAt) ? y(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;
|
|
5101
5045
|
}
|
|
5102
5046
|
}
|
|
5103
|
-
class lt extends
|
|
5047
|
+
class lt extends H {
|
|
5104
5048
|
/**
|
|
5105
5049
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5106
5050
|
*
|
|
@@ -5223,10 +5167,10 @@ class pt extends fr {
|
|
|
5223
5167
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
5224
5168
|
*/
|
|
5225
5169
|
t(this, "isAllowProcessingWithoutPayment");
|
|
5226
|
-
this.products = (e.products ?? []).map((s) => new lt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ?
|
|
5170
|
+
this.products = (e.products ?? []).map((s) => new lt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? fe.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5227
5171
|
}
|
|
5228
5172
|
}
|
|
5229
|
-
class
|
|
5173
|
+
class Kt extends Re {
|
|
5230
5174
|
/**
|
|
5231
5175
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5232
5176
|
*
|
|
@@ -5260,7 +5204,7 @@ class Qt extends Pe {
|
|
|
5260
5204
|
return this.get(`/internal/orders/${r}`, {}, (e) => new pt(e.data));
|
|
5261
5205
|
}
|
|
5262
5206
|
}
|
|
5263
|
-
class
|
|
5207
|
+
class be {
|
|
5264
5208
|
/**
|
|
5265
5209
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
5266
5210
|
*
|
|
@@ -5287,10 +5231,10 @@ class Te {
|
|
|
5287
5231
|
* Источник клиентской цены.
|
|
5288
5232
|
*/
|
|
5289
5233
|
t(this, "source");
|
|
5290
|
-
this.client = new
|
|
5234
|
+
this.client = new pe(r == null ? void 0 : r.client), this.product = new S(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) ?? Ge.Product;
|
|
5291
5235
|
}
|
|
5292
5236
|
}
|
|
5293
|
-
const
|
|
5237
|
+
const _e = (n) => {
|
|
5294
5238
|
var r, e, s, i, o;
|
|
5295
5239
|
return n ? Ye(
|
|
5296
5240
|
{
|
|
@@ -5301,13 +5245,13 @@ const be = (n) => {
|
|
|
5301
5245
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
5302
5246
|
hideNotActive: n.hideNotActive
|
|
5303
5247
|
},
|
|
5304
|
-
(c) => T(c) || (
|
|
5248
|
+
(c) => T(c) || (Ne(c) || Xe(c)) && Ce(c)
|
|
5305
5249
|
) : {};
|
|
5306
|
-
},
|
|
5250
|
+
}, Ee = (n) => {
|
|
5307
5251
|
const r = {};
|
|
5308
5252
|
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;
|
|
5309
5253
|
};
|
|
5310
|
-
class
|
|
5254
|
+
class Qt extends h {
|
|
5311
5255
|
/**
|
|
5312
5256
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
5313
5257
|
*
|
|
@@ -5321,10 +5265,10 @@ class Yt extends h {
|
|
|
5321
5265
|
return this.get(
|
|
5322
5266
|
`/internal/price/products/${r}/analyze`,
|
|
5323
5267
|
{
|
|
5324
|
-
...
|
|
5325
|
-
filters:
|
|
5268
|
+
...Ee(e),
|
|
5269
|
+
filters: _e(s)
|
|
5326
5270
|
},
|
|
5327
|
-
(i) => i.data.map((o) => new
|
|
5271
|
+
(i) => i.data.map((o) => new be(o))
|
|
5328
5272
|
);
|
|
5329
5273
|
}
|
|
5330
5274
|
/**
|
|
@@ -5340,10 +5284,10 @@ class Yt extends h {
|
|
|
5340
5284
|
return this.get(
|
|
5341
5285
|
`/internal/price/categories/${r}/analyze`,
|
|
5342
5286
|
{
|
|
5343
|
-
...
|
|
5344
|
-
filters:
|
|
5287
|
+
...Ee(e),
|
|
5288
|
+
filters: _e(s)
|
|
5345
5289
|
},
|
|
5346
|
-
(i) => i.data.map((o) => new
|
|
5290
|
+
(i) => i.data.map((o) => new be(o))
|
|
5347
5291
|
);
|
|
5348
5292
|
}
|
|
5349
5293
|
/**
|
|
@@ -5362,9 +5306,9 @@ class Yt extends h {
|
|
|
5362
5306
|
`/internal/price/categories/${r}/analyze/square`,
|
|
5363
5307
|
{
|
|
5364
5308
|
...e,
|
|
5365
|
-
filters:
|
|
5309
|
+
filters: _e(s)
|
|
5366
5310
|
},
|
|
5367
|
-
(i) => i.data.map((o) => new
|
|
5311
|
+
(i) => i.data.map((o) => new be(o))
|
|
5368
5312
|
);
|
|
5369
5313
|
}
|
|
5370
5314
|
}
|
|
@@ -5415,10 +5359,10 @@ class ut {
|
|
|
5415
5359
|
* @inheritDoc
|
|
5416
5360
|
*/
|
|
5417
5361
|
t(this, "currency");
|
|
5418
|
-
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = m(r.costDate) ? y(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new
|
|
5362
|
+
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = m(r.costDate) ? y(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new te(r.product) : void 0, 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 me(r.currency) : void 0;
|
|
5419
5363
|
}
|
|
5420
5364
|
}
|
|
5421
|
-
class ht extends
|
|
5365
|
+
class ht extends te {
|
|
5422
5366
|
/**
|
|
5423
5367
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
5424
5368
|
*
|
|
@@ -5430,18 +5374,18 @@ class ht extends Oe {
|
|
|
5430
5374
|
* @inheritDoc
|
|
5431
5375
|
*/
|
|
5432
5376
|
t(this, "history");
|
|
5433
|
-
this.history =
|
|
5377
|
+
this.history = ce(e.history, (s) => new ut(s));
|
|
5434
5378
|
}
|
|
5435
5379
|
}
|
|
5436
|
-
class
|
|
5380
|
+
class Yt extends h {
|
|
5437
5381
|
/**
|
|
5438
5382
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
5439
5383
|
*/
|
|
5440
5384
|
constructor() {
|
|
5441
|
-
super(), this.baseUrl = `${
|
|
5385
|
+
super(), this.baseUrl = `${A.getConfig().http.priceHistoryApiUrl}/api`;
|
|
5442
5386
|
}
|
|
5443
5387
|
/**
|
|
5444
|
-
* Возвращает данные об истории изменения
|
|
5388
|
+
* Возвращает данные об истории изменения цен.
|
|
5445
5389
|
*
|
|
5446
5390
|
* @param filters Фильтры для поиска истории изменения цен.
|
|
5447
5391
|
*
|
|
@@ -5449,19 +5393,89 @@ class Xt extends h {
|
|
|
5449
5393
|
*/
|
|
5450
5394
|
getProductPriceHistory(r) {
|
|
5451
5395
|
var i, o, c, p;
|
|
5452
|
-
const e =
|
|
5453
|
-
|
|
5396
|
+
const e = A.getConfig().dateFormats.api, s = Ye(
|
|
5397
|
+
ke(r, {
|
|
5454
5398
|
costDate: {
|
|
5455
|
-
from:
|
|
5456
|
-
to:
|
|
5399
|
+
from: Se((i = r.costDate) == null ? void 0 : i.from) ? q(r.costDate.from, e) : (o = r.costDate) == null ? void 0 : o.from,
|
|
5400
|
+
to: Se((c = r.costDate) == null ? void 0 : c.to) ? q(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
|
|
5457
5401
|
}
|
|
5458
5402
|
}),
|
|
5459
|
-
(u) => T(u) || (
|
|
5403
|
+
(u) => T(u) || (Ne(u) || Xe(u)) && Ce(u)
|
|
5460
5404
|
);
|
|
5461
|
-
return this.get("/internal/history", s, (u) =>
|
|
5405
|
+
return this.get("/internal/history", s, (u) => ce(u.data, (P) => new ht(P)));
|
|
5406
|
+
}
|
|
5407
|
+
}
|
|
5408
|
+
class Je {
|
|
5409
|
+
/**
|
|
5410
|
+
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
5411
|
+
*
|
|
5412
|
+
* @param data Данные для первоначальной инициализации.
|
|
5413
|
+
*/
|
|
5414
|
+
constructor(r) {
|
|
5415
|
+
/**
|
|
5416
|
+
* Список рекомендованных продуктов.
|
|
5417
|
+
*/
|
|
5418
|
+
t(this, "products", []);
|
|
5419
|
+
/**
|
|
5420
|
+
* Список рекомендованных категорий продуктов.
|
|
5421
|
+
*/
|
|
5422
|
+
t(this, "productCategories", []);
|
|
5423
|
+
r != null && r.products && (this.products = r.products.map((e) => new te(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new te(e)));
|
|
5424
|
+
}
|
|
5425
|
+
}
|
|
5426
|
+
class Xt extends h {
|
|
5427
|
+
/**
|
|
5428
|
+
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
5429
|
+
*/
|
|
5430
|
+
constructor() {
|
|
5431
|
+
super(), this.baseUrl = `${A.getConfig().http.recommendationsApiUrl}/api`;
|
|
5432
|
+
}
|
|
5433
|
+
/**
|
|
5434
|
+
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
5435
|
+
*
|
|
5436
|
+
* @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
|
|
5437
|
+
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
5438
|
+
*/
|
|
5439
|
+
getProductCategoryRecommendations(r) {
|
|
5440
|
+
return this.get(`/internal/recommendations/categories/${r.id}`, {}, (e) => new Je(e.data));
|
|
5441
|
+
}
|
|
5442
|
+
/**
|
|
5443
|
+
* Возвращает данные о рекомендациях указанного продукта.
|
|
5444
|
+
*
|
|
5445
|
+
* @param product Данные о продукте, для которого необходимо получить рекомендации.
|
|
5446
|
+
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
5447
|
+
*/
|
|
5448
|
+
getProductRecommendations(r) {
|
|
5449
|
+
return this.get(`/internal/recommendations/products/${r.id}`, {}, (e) => new Je(e.data));
|
|
5450
|
+
}
|
|
5451
|
+
/**
|
|
5452
|
+
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
5453
|
+
*
|
|
5454
|
+
* @param productCategory Данные о категории для которой необходимо сохранить список рекомендуемых товаров.
|
|
5455
|
+
* @param recommendations Список рекомендованных продуктов и категорий.
|
|
5456
|
+
* @see /docs/api#/operations/api_internal_recommendations_product_category_save
|
|
5457
|
+
*/
|
|
5458
|
+
saveProductCategoryRecommendations(r, e) {
|
|
5459
|
+
return this.post(`/internal/recommendations/categories/${r.id}`, {
|
|
5460
|
+
product_categories: e.productCategories.map((s) => s.id),
|
|
5461
|
+
products: e.products.map((s) => s.id)
|
|
5462
|
+
});
|
|
5463
|
+
}
|
|
5464
|
+
/**
|
|
5465
|
+
* Выполняет сохранение данных о рекомендуемых продуктах.
|
|
5466
|
+
*
|
|
5467
|
+
* @param product Данные о продукте для которого необходимо сохранить список рекомендуемых товаров.
|
|
5468
|
+
* @param recommendations Список рекомендованных продуктов и категорий.
|
|
5469
|
+
* @see /docs/api#/operations/api_internal_recommendations_product_save
|
|
5470
|
+
*/
|
|
5471
|
+
saveProductRecommendations(r, e) {
|
|
5472
|
+
return this.post(`/internal/recommendations/products/${r.id}`, {
|
|
5473
|
+
product_categories: e.productCategories.map((s) => s.id),
|
|
5474
|
+
products: e.products.map((s) => s.id)
|
|
5475
|
+
});
|
|
5462
5476
|
}
|
|
5463
5477
|
}
|
|
5464
|
-
class
|
|
5478
|
+
class D extends oe {
|
|
5465
5479
|
/**
|
|
5466
5480
|
* Возвращает {@link Promise} для получения данных указанного справочника.
|
|
5467
5481
|
*
|
|
@@ -5489,7 +5503,7 @@ class A extends ne {
|
|
|
5489
5503
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
5490
5504
|
*/
|
|
5491
5505
|
getCurrency() {
|
|
5492
|
-
return this.getTypedDataArrayRequester(
|
|
5506
|
+
return this.getTypedDataArrayRequester(me, "/public/references/currency", !0);
|
|
5493
5507
|
}
|
|
5494
5508
|
/**
|
|
5495
5509
|
* Возвращает {@link Promise} для получения справочника данных
|
|
@@ -5502,7 +5516,7 @@ class A extends ne {
|
|
|
5502
5516
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
5503
5517
|
*/
|
|
5504
5518
|
getOpf() {
|
|
5505
|
-
return this.getTypedDataArrayRequester(
|
|
5519
|
+
return this.getTypedDataArrayRequester(F, "/public/references/opf", !0);
|
|
5506
5520
|
}
|
|
5507
5521
|
/**
|
|
5508
5522
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
@@ -5554,7 +5568,7 @@ class A extends ne {
|
|
|
5554
5568
|
* @param term Терм поиска.
|
|
5555
5569
|
*/
|
|
5556
5570
|
searchRegion(r) {
|
|
5557
|
-
return this.getTypedDataArrayRequester(
|
|
5571
|
+
return this.getTypedDataArrayRequester(ie, `/internal/references/region-with-country/search?term=${r}`);
|
|
5558
5572
|
}
|
|
5559
5573
|
/**
|
|
5560
5574
|
* Выполняет поиск данных о странах по терму в названии.
|
|
@@ -5574,7 +5588,7 @@ class A extends ne {
|
|
|
5574
5588
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
5575
5589
|
*/
|
|
5576
5590
|
getWarehouses() {
|
|
5577
|
-
return this.getTypedDataArrayRequester(
|
|
5591
|
+
return this.getTypedDataArrayRequester(ve, "/public/references/warehouse", !0);
|
|
5578
5592
|
}
|
|
5579
5593
|
/**
|
|
5580
5594
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
@@ -5586,7 +5600,7 @@ class A extends ne {
|
|
|
5586
5600
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
5587
5601
|
*/
|
|
5588
5602
|
getPriceCoefficients() {
|
|
5589
|
-
return this.getTypedDataArrayRequester(
|
|
5603
|
+
return this.getTypedDataArrayRequester(we, "/internal/references/price-coefficient", !0);
|
|
5590
5604
|
}
|
|
5591
5605
|
/**
|
|
5592
5606
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
@@ -5596,7 +5610,7 @@ class A extends ne {
|
|
|
5596
5610
|
}
|
|
5597
5611
|
}
|
|
5598
5612
|
const R = X("__references_private", () => {
|
|
5599
|
-
const n = f({}), r = f(void 0), e = f(void 0), s = f(void 0), i = f(void 0), o = f(void 0), c = f(void 0), p = f(void 0), u = f(void 0), P = f(void 0),
|
|
5613
|
+
const n = f({}), r = f(void 0), e = f(void 0), s = f(void 0), i = f(void 0), o = f(void 0), c = f(void 0), p = f(void 0), u = f(void 0), P = f(void 0), a = f(void 0), L = f(void 0), d = f(void 0), k = f(void 0), x = f(void 0), N = f(void 0), U = f(void 0), l = f(void 0);
|
|
5600
5614
|
return {
|
|
5601
5615
|
/**
|
|
5602
5616
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5641,7 +5655,7 @@ const R = X("__references_private", () => {
|
|
|
5641
5655
|
/**
|
|
5642
5656
|
* Справочник групп партнеров.
|
|
5643
5657
|
*/
|
|
5644
|
-
partnerGroupReference:
|
|
5658
|
+
partnerGroupReference: a,
|
|
5645
5659
|
/**
|
|
5646
5660
|
* Справочник типов файлов продукктов/категорий.
|
|
5647
5661
|
*/
|
|
@@ -5674,67 +5688,67 @@ const R = X("__references_private", () => {
|
|
|
5674
5688
|
}), Zt = X("references", () => {
|
|
5675
5689
|
const n = v(() => {
|
|
5676
5690
|
const l = R();
|
|
5677
|
-
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(
|
|
5691
|
+
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(D).getChannelPrimaryInterest().then((g) => {
|
|
5678
5692
|
l.channelPrimaryInterestReference = g;
|
|
5679
5693
|
}).catch(C)), l.channelPrimaryInterestReference;
|
|
5680
5694
|
}), r = v(() => {
|
|
5681
5695
|
const l = R();
|
|
5682
|
-
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(
|
|
5696
|
+
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(D).getContactPositions().then((g) => {
|
|
5683
5697
|
l.contactPositionsReference = g;
|
|
5684
5698
|
}).catch(C)), l.contactPositionsReference;
|
|
5685
5699
|
}), e = v(() => {
|
|
5686
5700
|
const l = R();
|
|
5687
|
-
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(
|
|
5701
|
+
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(D).getCurrency().then((g) => {
|
|
5688
5702
|
l.currencyReference = g;
|
|
5689
5703
|
}).catch(C)), l.currencyReference;
|
|
5690
5704
|
}), s = v(() => {
|
|
5691
5705
|
const l = R();
|
|
5692
|
-
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(
|
|
5706
|
+
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(D).getOpf().then((g) => {
|
|
5693
5707
|
l.opfReference = g;
|
|
5694
5708
|
}).catch(C)), l.opfReference;
|
|
5695
5709
|
}), i = v(() => {
|
|
5696
5710
|
const l = R();
|
|
5697
|
-
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(
|
|
5711
|
+
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(D).getOrderPaymentStatuses().then((g) => {
|
|
5698
5712
|
l.orderPaymentStatusReference = g;
|
|
5699
5713
|
}).catch(C)), l.orderPaymentStatusReference;
|
|
5700
5714
|
}), o = v(() => {
|
|
5701
5715
|
const l = R();
|
|
5702
|
-
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(
|
|
5716
|
+
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(D).getOrderStatuses().then((g) => {
|
|
5703
5717
|
l.orderStatusReference = g;
|
|
5704
5718
|
}).catch(C)), l.orderStatusReference;
|
|
5705
5719
|
}), c = v(() => {
|
|
5706
5720
|
const l = R();
|
|
5707
|
-
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(
|
|
5721
|
+
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(D).getPaymentTypes().then((g) => {
|
|
5708
5722
|
l.paymentTypeReference = g;
|
|
5709
5723
|
}).catch(C)), l.paymentTypeReference;
|
|
5710
5724
|
}), p = v(() => {
|
|
5711
5725
|
const l = R();
|
|
5712
|
-
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(
|
|
5726
|
+
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(D).getPartnerGroup().then((g) => {
|
|
5713
5727
|
l.partnerGroupReference = g;
|
|
5714
5728
|
}).catch(C)), l.partnerGroupReference;
|
|
5715
5729
|
}), u = v(() => {
|
|
5716
5730
|
const l = R();
|
|
5717
|
-
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(
|
|
5731
|
+
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(D).getProductFileType().then((g) => {
|
|
5718
5732
|
l.productFileTypeReference = g;
|
|
5719
5733
|
}).catch(C)), l.productFileTypeReference;
|
|
5720
5734
|
}), P = v(() => {
|
|
5721
5735
|
const l = R();
|
|
5722
|
-
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(
|
|
5736
|
+
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(D).getResourceTypes().then((g) => {
|
|
5723
5737
|
l.resourceTypesReference = g;
|
|
5724
5738
|
}).catch(C)), l.resourceTypesReference;
|
|
5725
|
-
}),
|
|
5739
|
+
}), a = v(() => {
|
|
5726
5740
|
const l = R();
|
|
5727
|
-
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(
|
|
5741
|
+
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(D).getSalesDirections().then((g) => {
|
|
5728
5742
|
l.salesDirectionsReference = g;
|
|
5729
5743
|
}).catch(C)), l.salesDirectionsReference;
|
|
5730
5744
|
}), L = v(() => {
|
|
5731
5745
|
const l = R();
|
|
5732
|
-
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(
|
|
5746
|
+
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(D).getSourcePrimaryInterest().then((g) => {
|
|
5733
5747
|
l.sourcePrimaryInterestReference = g;
|
|
5734
5748
|
}).catch(C)), l.sourcePrimaryInterestReference;
|
|
5735
5749
|
}), d = v(() => {
|
|
5736
5750
|
const l = R();
|
|
5737
|
-
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(
|
|
5751
|
+
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(D).getDeliveryTypes().then((g) => {
|
|
5738
5752
|
l.deliveryTypeReference = g;
|
|
5739
5753
|
}).catch(C)), l.deliveryTypeReference;
|
|
5740
5754
|
}), k = v(() => {
|
|
@@ -5744,17 +5758,17 @@ const R = X("__references_private", () => {
|
|
|
5744
5758
|
}).catch(C)), l.managersList;
|
|
5745
5759
|
}), x = v(() => {
|
|
5746
5760
|
const l = R();
|
|
5747
|
-
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(
|
|
5761
|
+
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(D).getWarehouses().then((g) => {
|
|
5748
5762
|
l.warehousesReference = g;
|
|
5749
5763
|
}).catch(C)), l.warehousesReference;
|
|
5750
5764
|
}), N = v(() => {
|
|
5751
5765
|
const l = R();
|
|
5752
|
-
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(
|
|
5766
|
+
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(D).getPropertyTypes().then((g) => {
|
|
5753
5767
|
l.propertyTypesReference = g;
|
|
5754
5768
|
}).catch(C)), l.propertyTypesReference;
|
|
5755
5769
|
}), U = v(() => {
|
|
5756
5770
|
const l = R();
|
|
5757
|
-
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(
|
|
5771
|
+
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(D).getPriceCoefficients().then((g) => {
|
|
5758
5772
|
l.priceCoefficientsReference = g;
|
|
5759
5773
|
}).catch(C)), l.priceCoefficientsReference;
|
|
5760
5774
|
});
|
|
@@ -5802,7 +5816,7 @@ const R = X("__references_private", () => {
|
|
|
5802
5816
|
/**
|
|
5803
5817
|
* Справочник направлений продаж.
|
|
5804
5818
|
*/
|
|
5805
|
-
salesDirectionsReference:
|
|
5819
|
+
salesDirectionsReference: a,
|
|
5806
5820
|
/**
|
|
5807
5821
|
* Справочник каналов первичного интереса.
|
|
5808
5822
|
*/
|
|
@@ -5993,7 +6007,7 @@ class ts extends h {
|
|
|
5993
6007
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
5994
6008
|
*/
|
|
5995
6009
|
constructor() {
|
|
5996
|
-
super(), this.baseUrl = `${
|
|
6010
|
+
super(), this.baseUrl = `${A.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
|
|
5997
6011
|
}
|
|
5998
6012
|
/**
|
|
5999
6013
|
* Функция для получения обновленных токенов доступа.
|
|
@@ -6064,80 +6078,80 @@ class is {
|
|
|
6064
6078
|
export {
|
|
6065
6079
|
Qr as AnyReference,
|
|
6066
6080
|
It as AppBaseConfig,
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6081
|
+
A as AppConfigProvider,
|
|
6082
|
+
Le as BankAccount,
|
|
6083
|
+
Re as BasePaginationProvider,
|
|
6070
6084
|
Fr as CalculationTypeEnum,
|
|
6071
|
-
|
|
6085
|
+
ue as Cart,
|
|
6072
6086
|
Gr as CartItem,
|
|
6073
6087
|
Ur as CartItemBase,
|
|
6074
6088
|
bt as CartProvider,
|
|
6075
6089
|
Lt as CatalogProvider,
|
|
6076
6090
|
er as CatalogableItem,
|
|
6077
|
-
|
|
6078
|
-
|
|
6091
|
+
z as Category,
|
|
6092
|
+
Be as CategoryPricingRule,
|
|
6079
6093
|
cr as ChannelPrimaryInterest,
|
|
6080
|
-
|
|
6094
|
+
Mt as City,
|
|
6081
6095
|
Fe as CityWithRegionAndCountry,
|
|
6082
|
-
|
|
6096
|
+
We as Client,
|
|
6083
6097
|
nt as ClientAdditionalData,
|
|
6084
|
-
|
|
6085
|
-
|
|
6098
|
+
ge as ClientCategory,
|
|
6099
|
+
jt as ClientDataProvider,
|
|
6086
6100
|
dt as ClientPriceProvider,
|
|
6087
6101
|
kt as ClientPriceTemplateProvider,
|
|
6088
6102
|
K as ClientProduct,
|
|
6089
6103
|
Ot as ClientProductCategoryDataProvider,
|
|
6090
6104
|
qt as ClientProductDataProvider,
|
|
6091
|
-
|
|
6105
|
+
pe as ClientShortInfo,
|
|
6092
6106
|
Kr as ClientsAdditionalDataRequestTypeEnum,
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6107
|
+
Ht as ClientsListFilters,
|
|
6108
|
+
te as CodedIdentity,
|
|
6109
|
+
Vt as ConfiguratorProvider,
|
|
6110
|
+
de as Contact,
|
|
6097
6111
|
zr as ContactLinks,
|
|
6098
|
-
|
|
6112
|
+
M as ContactPerson,
|
|
6099
6113
|
it as ContactPersonRelated,
|
|
6100
6114
|
Yr as ContactPosition,
|
|
6101
|
-
|
|
6115
|
+
Te as ContactRelation,
|
|
6102
6116
|
ur as ContragentBase,
|
|
6103
|
-
|
|
6117
|
+
fe as ContragentFactory,
|
|
6104
6118
|
hr as ContragentIc,
|
|
6105
6119
|
tt as ContragentPerson,
|
|
6106
6120
|
st as ContragentUlNr,
|
|
6107
6121
|
gr as ContragentUlR,
|
|
6108
6122
|
Ge as CostSourceEnum,
|
|
6109
6123
|
Q as Country,
|
|
6110
|
-
|
|
6124
|
+
me as Currency,
|
|
6111
6125
|
rs as DataSuggestionProvider,
|
|
6112
|
-
|
|
6126
|
+
Bt as DataTablePagination,
|
|
6113
6127
|
ot as DataTablePaginationRequestParams,
|
|
6114
|
-
|
|
6115
|
-
|
|
6128
|
+
zt as DataTableSortRequestParams,
|
|
6129
|
+
Et as DateTimeProvider,
|
|
6116
6130
|
Hr as DeletableNamedIdentity,
|
|
6117
|
-
|
|
6131
|
+
ye as DeliveryAddress,
|
|
6118
6132
|
J as DeliveryType,
|
|
6119
6133
|
Tt as DetailedJwtPayload,
|
|
6120
6134
|
Wr as DeviceTypeResolutionConfig,
|
|
6121
6135
|
Br as DiscountShortInfo,
|
|
6122
6136
|
is as FieldValidationResultData,
|
|
6123
|
-
|
|
6124
|
-
|
|
6137
|
+
ne as FilterGroup,
|
|
6138
|
+
ze as FilterItem,
|
|
6125
6139
|
Me as FilterOpEnum,
|
|
6126
6140
|
tr as GeoCoordinates,
|
|
6127
6141
|
Or as HiddenCatalogableItem,
|
|
6128
|
-
|
|
6142
|
+
oe as HttpCachedRequester,
|
|
6129
6143
|
Vr as HttpParamsConfig,
|
|
6130
6144
|
h as HttpRequester,
|
|
6131
|
-
|
|
6145
|
+
H as Identity,
|
|
6132
6146
|
qr as Image,
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6147
|
+
he as JwtPayload,
|
|
6148
|
+
Pe as Manager,
|
|
6149
|
+
se as ManagerCommon,
|
|
6150
|
+
Jt as ManagerDataFactory,
|
|
6137
6151
|
ct as ManagerDataProvider,
|
|
6138
6152
|
gt as MetaTagItem,
|
|
6139
6153
|
$ as NamedIdentity,
|
|
6140
|
-
|
|
6154
|
+
F as Opf,
|
|
6141
6155
|
b as OpfEnum,
|
|
6142
6156
|
pt as Order,
|
|
6143
6157
|
fr as OrderInfo,
|
|
@@ -6145,26 +6159,26 @@ export {
|
|
|
6145
6159
|
lt as OrderProduct,
|
|
6146
6160
|
mr as OrderShortInfo,
|
|
6147
6161
|
Zr as OrderStatus,
|
|
6148
|
-
|
|
6162
|
+
Kt as OrdersDataProvider,
|
|
6149
6163
|
Y as PartnerGroup,
|
|
6150
6164
|
et as PaymentType,
|
|
6151
6165
|
_t as PreferencesStorageProvider,
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6166
|
+
be as PriceAnalyze,
|
|
6167
|
+
Qt as PriceAnalyzeProvider,
|
|
6168
|
+
we as PriceCoefficient,
|
|
6155
6169
|
rr as PriceCoefficientEnum,
|
|
6156
|
-
|
|
6170
|
+
Yt as PriceHistoryDataProvider,
|
|
6157
6171
|
ut as PriceHistoryItem,
|
|
6158
6172
|
j as PriceTemplate,
|
|
6159
6173
|
ae as PriceTemplateCategory,
|
|
6160
6174
|
Z as PriceTemplateClient,
|
|
6161
6175
|
ir as PriceTemplateICatalogableItem,
|
|
6162
|
-
|
|
6176
|
+
$e as PriceTemplateProduct,
|
|
6163
6177
|
Ut as PriceTemplateProvider,
|
|
6164
6178
|
re as PricingRole,
|
|
6165
6179
|
Gt as PricingRoleProvider,
|
|
6166
|
-
|
|
6167
|
-
|
|
6180
|
+
Ie as PrimaryCatalogableItem,
|
|
6181
|
+
S as Product,
|
|
6168
6182
|
xt as ProductCategoryDataProvider,
|
|
6169
6183
|
Nt as ProductDataProvider,
|
|
6170
6184
|
rt as ProductFileType,
|
|
@@ -6174,12 +6188,12 @@ export {
|
|
|
6174
6188
|
ee as Property,
|
|
6175
6189
|
or as PropertyType,
|
|
6176
6190
|
Mr as PropertyTypeEnum,
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6191
|
+
B as PropertyValue,
|
|
6192
|
+
Xt as RecommendationsDataProvider,
|
|
6193
|
+
Je as RecommendationsList,
|
|
6180
6194
|
w as Reference,
|
|
6181
|
-
|
|
6182
|
-
|
|
6195
|
+
D as ReferenceDataProvider,
|
|
6196
|
+
ie as Region,
|
|
6183
6197
|
lr as ResourceType,
|
|
6184
6198
|
I as SalesDirection,
|
|
6185
6199
|
Er as SentryConfig,
|
|
@@ -6189,19 +6203,19 @@ export {
|
|
|
6189
6203
|
Nr as StockCount,
|
|
6190
6204
|
St as TemplatesListFilters,
|
|
6191
6205
|
Ue as TypedInstanceFactory,
|
|
6192
|
-
|
|
6193
|
-
|
|
6206
|
+
Ve as UnitsHelper,
|
|
6207
|
+
Wt as UnknownClientDataProvider,
|
|
6194
6208
|
sr as UpdatableNamedIdentity,
|
|
6195
6209
|
ft as User,
|
|
6196
6210
|
ts as UserAuthDataProvider,
|
|
6197
6211
|
nr as UserCommonInfo,
|
|
6198
6212
|
yt as UserDataProvider,
|
|
6199
|
-
|
|
6213
|
+
G as UserShortInfo,
|
|
6200
6214
|
mt as UserTypeEnum,
|
|
6201
6215
|
Jr as VersionConfig,
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6216
|
+
ve as Warehouse,
|
|
6217
|
+
je as findCatalogItemByIdRecursive,
|
|
6218
|
+
De as useAuthStateStore,
|
|
6205
6219
|
Zt as useReferencesStore,
|
|
6206
6220
|
ss as useUserStateStore
|
|
6207
6221
|
};
|