@snabcentr/common-lib 1.68.0 → 1.70.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 +735 -684
- 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/auth/classes/jwt-payload.d.ts.map +1 -1
- package/dist/src/auth/states/auth-state-store.d.ts +42 -23
- package/dist/src/auth/states/auth-state-store.d.ts.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 +2 -2
- 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
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var yr = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var t = (n, r, e) =>
|
|
2
|
+
var wr = (n, r, e) => r in n ? yr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var t = (n, r, e) => wr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { jwtDecode as Qe } from "jwt-decode";
|
|
5
|
-
import { merge as
|
|
6
|
-
import { objectToCamel as
|
|
7
|
-
import { defineStore as
|
|
8
|
-
import { ref as f, computed as
|
|
9
|
-
import { parseISO as
|
|
10
|
-
import
|
|
11
|
-
class
|
|
5
|
+
import { merge as xe, isUndefined as Cr, isNil as $, noop as w, mapValues as vr, isArray as J, every as Pr, split as Rr, toUpper as Ar, constant as Dr, isString as y, cloneDeep as ar, toLower as $r, isFunction as Ne, map as ue, forEach as Tr, isDate as Ie, isEmpty as ve, omitBy as Ye, isObject as Xe } from "lodash-es";
|
|
6
|
+
import { objectToCamel as Oe, objectToSnake as Me } from "ts-case-convert";
|
|
7
|
+
import { defineStore as Z } from "pinia";
|
|
8
|
+
import { ref as f, computed as R } from "vue";
|
|
9
|
+
import { parseISO as C, format as q, isAfter as br, startOfToday as Ze, addSeconds as _r, addBusinessDays as Sr, endOfTomorrow as Ir, startOfTomorrow as dr, endOfYesterday as Lr, startOfYesterday as kr, endOfToday as xr, endOfDay as Nr, startOfDay as Or } from "date-fns";
|
|
10
|
+
import qr from "axios";
|
|
11
|
+
class ie {
|
|
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
|
+
xe(this, r);
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* Возвращает данные полезной нагрузки для указанного JWT-токена.
|
|
@@ -107,10 +107,11 @@ class ue {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
|
|
110
|
+
const e = Qe(r), s = new ie(Oe(e));
|
|
111
|
+
return s.resourceAccess = e.resource_access, s;
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
|
-
class
|
|
114
|
+
class St extends ie {
|
|
114
115
|
/**
|
|
115
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
116
117
|
*
|
|
@@ -142,7 +143,7 @@ class Tt extends ue {
|
|
|
142
143
|
* @inheritDoc
|
|
143
144
|
*/
|
|
144
145
|
t(this, "address");
|
|
145
|
-
|
|
146
|
+
xe(this, e);
|
|
146
147
|
}
|
|
147
148
|
/**
|
|
148
149
|
* Возвращает данные полезной нагрузки для указанного JWT-токена.
|
|
@@ -150,7 +151,7 @@ class Tt extends ue {
|
|
|
150
151
|
* @param jwtToken JWT-ключ доступа.
|
|
151
152
|
*/
|
|
152
153
|
static getJwtPayload(e) {
|
|
153
|
-
return new
|
|
154
|
+
return new ie(Oe(Qe(e)));
|
|
154
155
|
}
|
|
155
156
|
}
|
|
156
157
|
const W = class W {
|
|
@@ -167,7 +168,7 @@ const W = class W {
|
|
|
167
168
|
*/
|
|
168
169
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
169
170
|
static getConfig() {
|
|
170
|
-
if (
|
|
171
|
+
if (Cr(W.config))
|
|
171
172
|
throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
|
|
172
173
|
return W.config;
|
|
173
174
|
}
|
|
@@ -189,55 +190,91 @@ const W = class W {
|
|
|
189
190
|
* Конфигурация приложения.
|
|
190
191
|
*/
|
|
191
192
|
t(W, "config");
|
|
192
|
-
let
|
|
193
|
-
const
|
|
194
|
-
var
|
|
195
|
-
const n = f(Promise.resolve((
|
|
193
|
+
let D = W;
|
|
194
|
+
const ee = Z("__auth_state_private", () => {
|
|
195
|
+
var i;
|
|
196
|
+
const n = f(Promise.resolve((i = D.getConfig().devMode) == null ? void 0 : i.initAuthBearerToken)), r = f(void 0), e = f(void 0), s = f({});
|
|
196
197
|
return {
|
|
197
198
|
/**
|
|
198
|
-
* {@link Promise<string>} для получения
|
|
199
|
+
* {@link Promise<string>} для получения jwt-ключа доступа к системам.
|
|
200
|
+
*/
|
|
201
|
+
jwtToken: n,
|
|
202
|
+
/**
|
|
203
|
+
* Функция для обновления jwt-ключа доступа к системам.
|
|
204
|
+
*/
|
|
205
|
+
jwtTokenUpdater: r,
|
|
206
|
+
/**
|
|
207
|
+
* Список прав текущего пользователя.
|
|
199
208
|
*/
|
|
200
|
-
|
|
209
|
+
userPermissions: e,
|
|
201
210
|
/**
|
|
202
|
-
*
|
|
211
|
+
* Список вычисляемых свойств для проверки наличия у пользователя прав доступа.
|
|
203
212
|
*/
|
|
204
|
-
|
|
213
|
+
userPermissionsComputedRefs: s
|
|
205
214
|
};
|
|
206
|
-
}),
|
|
207
|
-
const n =
|
|
208
|
-
const
|
|
209
|
-
if (
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}).catch(
|
|
215
|
+
}), ae = Z("__auth_state", () => {
|
|
216
|
+
const n = R(() => {
|
|
217
|
+
const i = ee();
|
|
218
|
+
if ($(i.jwtToken) && !$(i.jwtTokenUpdater)) {
|
|
219
|
+
const o = i.jwtTokenUpdater();
|
|
220
|
+
i.jwtToken = o, o.then((c) => {
|
|
221
|
+
i.jwtToken = Promise.resolve(c);
|
|
222
|
+
}).catch(w);
|
|
214
223
|
}
|
|
215
|
-
return
|
|
224
|
+
return i.jwtToken;
|
|
216
225
|
});
|
|
217
|
-
function r(
|
|
218
|
-
|
|
226
|
+
function r(i) {
|
|
227
|
+
ee().jwtTokenUpdater = i;
|
|
219
228
|
}
|
|
220
229
|
function e() {
|
|
221
|
-
|
|
230
|
+
ee().jwtToken = void 0;
|
|
231
|
+
}
|
|
232
|
+
function s(i) {
|
|
233
|
+
const o = ee();
|
|
234
|
+
!$(o.jwtToken) && $(o.userPermissions) && o.jwtToken.then((u) => {
|
|
235
|
+
const m = ie.getJwtPayload(u);
|
|
236
|
+
o.userPermissions = m.exp * 1e3 > Date.now() ? vr(m.resourceAccess, (v) => (v == null ? void 0 : v.roles) ?? []) : void 0;
|
|
237
|
+
}).catch(w);
|
|
238
|
+
const c = J(i) ? i.join(" && ") : i;
|
|
239
|
+
if (!$(o.userPermissionsComputedRefs[c]))
|
|
240
|
+
return o.userPermissionsComputedRefs[c];
|
|
241
|
+
const p = R(() => {
|
|
242
|
+
const u = (m) => {
|
|
243
|
+
var _;
|
|
244
|
+
const v = Rr(m, ".");
|
|
245
|
+
if (v.length < 2)
|
|
246
|
+
return !1;
|
|
247
|
+
const [S, I] = v, b = (_ = ee().userPermissions) == null ? void 0 : _[S];
|
|
248
|
+
return J(b) && b.includes(I);
|
|
249
|
+
};
|
|
250
|
+
return J(i) ? Pr(i, (m) => u(m)) : u(i);
|
|
251
|
+
});
|
|
252
|
+
return o.userPermissionsComputedRefs[c] = p, p;
|
|
222
253
|
}
|
|
223
254
|
return {
|
|
224
255
|
/**
|
|
225
|
-
* {@link Promise<string>} для получения
|
|
256
|
+
* {@link Promise<string>} для получения jwt-ключа доступа к системам.
|
|
226
257
|
*/
|
|
227
|
-
|
|
258
|
+
jwtToken: n,
|
|
228
259
|
/**
|
|
229
|
-
* Устанавливает механизм для обновления
|
|
260
|
+
* Устанавливает механизм для обновления jwt-ключа доступа к системам.
|
|
230
261
|
*
|
|
231
|
-
* @param updater Механизм для обновления
|
|
262
|
+
* @param updater Механизм для обновления jwt-ключа доступа к системам.
|
|
232
263
|
*/
|
|
233
|
-
|
|
264
|
+
setJwtTokenUpdater: r,
|
|
234
265
|
/**
|
|
235
|
-
* Выполняет очистку
|
|
266
|
+
* Выполняет очистку jwt-ключа доступа к системам.
|
|
236
267
|
*/
|
|
237
|
-
|
|
268
|
+
invalidateJwtToken: e,
|
|
269
|
+
/**
|
|
270
|
+
* Возвращает вычисляемое поле для проверки наличия указанных прав доступа.
|
|
271
|
+
*
|
|
272
|
+
* @param name Проверяемое право доступа или их список. Должны быть представлены в виде значения: <РЕСУРС>.<РОЛЬ>.
|
|
273
|
+
*/
|
|
274
|
+
hasUserPermission: s
|
|
238
275
|
};
|
|
239
276
|
});
|
|
240
|
-
class
|
|
277
|
+
class M {
|
|
241
278
|
/**
|
|
242
279
|
* Инициализирует экземпляр класса {@link Identity}.
|
|
243
280
|
*
|
|
@@ -253,16 +290,16 @@ class B {
|
|
|
253
290
|
* @inheritDoc
|
|
254
291
|
*/
|
|
255
292
|
t(this, "guid");
|
|
256
|
-
this.id = r == null ? void 0 : r.id,
|
|
293
|
+
this.id = r == null ? void 0 : r.id, $(this.id) && ($(e) ? typeof (r == null ? void 0 : r.id) == "number" ? this.id = -1 : typeof (r == null ? void 0 : r.id) == "string" && (this.id = "") : this.id = e), this.guid = (r == null ? void 0 : r.guid) ?? "";
|
|
257
294
|
}
|
|
258
295
|
/**
|
|
259
296
|
* Возвращает признак, что это новая запись.
|
|
260
297
|
*/
|
|
261
298
|
isNewRec() {
|
|
262
|
-
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" :
|
|
299
|
+
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : $(this.id);
|
|
263
300
|
}
|
|
264
301
|
}
|
|
265
|
-
class
|
|
302
|
+
class T extends M {
|
|
266
303
|
/**
|
|
267
304
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
268
305
|
*
|
|
@@ -277,7 +314,7 @@ class $ extends B {
|
|
|
277
314
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
278
315
|
}
|
|
279
316
|
}
|
|
280
|
-
class
|
|
317
|
+
class ne extends T {
|
|
281
318
|
/**
|
|
282
319
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
283
320
|
*
|
|
@@ -292,7 +329,7 @@ class Oe extends $ {
|
|
|
292
329
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
293
330
|
}
|
|
294
331
|
}
|
|
295
|
-
class er extends
|
|
332
|
+
class er extends ne {
|
|
296
333
|
/**
|
|
297
334
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
298
335
|
*
|
|
@@ -311,7 +348,7 @@ class er extends Oe {
|
|
|
311
348
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
312
349
|
}
|
|
313
350
|
}
|
|
314
|
-
class
|
|
351
|
+
class de extends er {
|
|
315
352
|
/**
|
|
316
353
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
317
354
|
*
|
|
@@ -326,7 +363,7 @@ class Se extends er {
|
|
|
326
363
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
327
364
|
}
|
|
328
365
|
}
|
|
329
|
-
class
|
|
366
|
+
class he extends de {
|
|
330
367
|
/**
|
|
331
368
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
332
369
|
*
|
|
@@ -350,11 +387,11 @@ class ce extends Se {
|
|
|
350
387
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
351
388
|
*/
|
|
352
389
|
t(this, "currencyRates");
|
|
353
|
-
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [
|
|
390
|
+
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([s, i]) => [Ar(s), i])) : void 0;
|
|
354
391
|
}
|
|
355
392
|
}
|
|
356
393
|
var rr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(rr || {});
|
|
357
|
-
class
|
|
394
|
+
class P extends T {
|
|
358
395
|
/**
|
|
359
396
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
360
397
|
*
|
|
@@ -373,12 +410,12 @@ class w extends $ {
|
|
|
373
410
|
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
374
411
|
}
|
|
375
412
|
}
|
|
376
|
-
class
|
|
413
|
+
class Pe extends P {
|
|
377
414
|
/**
|
|
378
415
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
379
416
|
*/
|
|
380
417
|
static getRetailPriceCoefficient() {
|
|
381
|
-
return { id: -2, slug: rr.Retail, name: "Розн. цена", guid: "", isNewRec:
|
|
418
|
+
return { id: -2, slug: rr.Retail, name: "Розн. цена", guid: "", isNewRec: Dr(!0) };
|
|
382
419
|
}
|
|
383
420
|
}
|
|
384
421
|
class qe {
|
|
@@ -408,7 +445,7 @@ class qe {
|
|
|
408
445
|
* Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
|
|
409
446
|
*/
|
|
410
447
|
t(this, "readOnly");
|
|
411
|
-
this.coefficient = new
|
|
448
|
+
this.coefficient = new Pe(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
449
|
}
|
|
413
450
|
}
|
|
414
451
|
class tr {
|
|
@@ -429,9 +466,9 @@ class tr {
|
|
|
429
466
|
this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
|
|
430
467
|
}
|
|
431
468
|
}
|
|
432
|
-
class
|
|
469
|
+
class K extends P {
|
|
433
470
|
}
|
|
434
|
-
class
|
|
471
|
+
class Re extends P {
|
|
435
472
|
/**
|
|
436
473
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
437
474
|
*
|
|
@@ -460,10 +497,10 @@ class we extends w {
|
|
|
460
497
|
* Координаты склада.
|
|
461
498
|
*/
|
|
462
499
|
t(this, "coordinates");
|
|
463
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new
|
|
500
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((s = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : s.map((i) => new K(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new tr(e == null ? void 0 : e.coordinates);
|
|
464
501
|
}
|
|
465
502
|
}
|
|
466
|
-
class
|
|
503
|
+
class Ur {
|
|
467
504
|
/**
|
|
468
505
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
469
506
|
*
|
|
@@ -478,10 +515,10 @@ class Nr {
|
|
|
478
515
|
* Количество остатков товара на складе.
|
|
479
516
|
*/
|
|
480
517
|
t(this, "count");
|
|
481
|
-
this.warehouse = new
|
|
518
|
+
this.warehouse = new Re(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
482
519
|
}
|
|
483
520
|
}
|
|
484
|
-
class
|
|
521
|
+
class Gr extends er {
|
|
485
522
|
/**
|
|
486
523
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
487
524
|
*
|
|
@@ -496,7 +533,7 @@ class Or extends er {
|
|
|
496
533
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
497
534
|
}
|
|
498
535
|
}
|
|
499
|
-
class
|
|
536
|
+
class jr {
|
|
500
537
|
/**
|
|
501
538
|
* Инициализирует экземпляр класса {@link Image}.
|
|
502
539
|
*
|
|
@@ -519,7 +556,7 @@ class qr {
|
|
|
519
556
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
520
557
|
}
|
|
521
558
|
}
|
|
522
|
-
class
|
|
559
|
+
class k extends Gr {
|
|
523
560
|
/**
|
|
524
561
|
* Инициализирует экземпляр класса {@link Product}.
|
|
525
562
|
*
|
|
@@ -604,16 +641,16 @@ class _ extends Or {
|
|
|
604
641
|
* Список коэффициентов цен на продукт.
|
|
605
642
|
*/
|
|
606
643
|
t(this, "priceCoefficients");
|
|
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 =
|
|
644
|
+
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 = y(e == null ? void 0 : e.costDate) ? C(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 Ur(u))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
608
645
|
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
|
|
646
|
+
s && (this.category = new de({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((u) => new de(u))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((u) => new jr(u, D.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
647
|
}
|
|
611
648
|
/**
|
|
612
649
|
* Возвращает признак, что это измеряемый товар.
|
|
613
650
|
*/
|
|
614
651
|
getIsMeasurable() {
|
|
615
652
|
var s;
|
|
616
|
-
const e = (s =
|
|
653
|
+
const e = (s = D.getConfig().catalog) == null ? void 0 : s.products.units;
|
|
617
654
|
return [...(e == null ? void 0 : e.linear) ?? ["пог.м.", "м."], ...(e == null ? void 0 : e.square) ?? ["м2"]].includes(this.unit);
|
|
618
655
|
}
|
|
619
656
|
/**
|
|
@@ -629,7 +666,7 @@ class _ extends Or {
|
|
|
629
666
|
return this.retailCostRub ?? this.costRub;
|
|
630
667
|
}
|
|
631
668
|
}
|
|
632
|
-
class
|
|
669
|
+
class Fr extends M {
|
|
633
670
|
/**
|
|
634
671
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
635
672
|
*
|
|
@@ -681,10 +718,10 @@ class Ur extends B {
|
|
|
681
718
|
* Признак того, что позиция является дополнительной продажей.
|
|
682
719
|
*/
|
|
683
720
|
t(this, "isAdditionalSale");
|
|
684
|
-
this.product = new
|
|
721
|
+
this.product = new k(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new he(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && ar(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
685
722
|
}
|
|
686
723
|
}
|
|
687
|
-
class
|
|
724
|
+
class Mr extends Fr {
|
|
688
725
|
/**
|
|
689
726
|
* Инициализирует экземпляр класса {@link CartItem}.
|
|
690
727
|
*
|
|
@@ -734,7 +771,7 @@ class Gr extends Ur {
|
|
|
734
771
|
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
772
|
}
|
|
736
773
|
}
|
|
737
|
-
class
|
|
774
|
+
class me {
|
|
738
775
|
/**
|
|
739
776
|
* Инициализирует экземпляр класса {@link Cart}.
|
|
740
777
|
*
|
|
@@ -753,7 +790,7 @@ class pe {
|
|
|
753
790
|
* Список итоговых сумм по направлениям продаж.
|
|
754
791
|
*/
|
|
755
792
|
t(this, "directionsSum");
|
|
756
|
-
this.items = r.items.map((e) => new
|
|
793
|
+
this.items = r.items.map((e) => new Mr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
757
794
|
}
|
|
758
795
|
}
|
|
759
796
|
class Ue {
|
|
@@ -775,7 +812,7 @@ class Ue {
|
|
|
775
812
|
return new r(e);
|
|
776
813
|
}
|
|
777
814
|
}
|
|
778
|
-
const
|
|
815
|
+
const L = class L {
|
|
779
816
|
/**
|
|
780
817
|
* Инициализирует экземпляр класса {@link HttpRequester}.
|
|
781
818
|
*/
|
|
@@ -787,7 +824,7 @@ const S = class S {
|
|
|
787
824
|
/**
|
|
788
825
|
* Базовый URL путь для выполнения запросов.
|
|
789
826
|
*/
|
|
790
|
-
t(this, "baseUrl", `${
|
|
827
|
+
t(this, "baseUrl", `${D.getConfig().http.portalApiUrl}/api`);
|
|
791
828
|
/**
|
|
792
829
|
* Обработчик ошибок выполнения запросов текущего экземпляра класса.
|
|
793
830
|
*
|
|
@@ -795,7 +832,7 @@ const S = class S {
|
|
|
795
832
|
* @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
796
833
|
* @param disableNotifications Признак необходимости отключить уведомления об ошибках.
|
|
797
834
|
*/
|
|
798
|
-
t(this, "errorResponseHandler",
|
|
835
|
+
t(this, "errorResponseHandler", w);
|
|
799
836
|
/**
|
|
800
837
|
* Список идентификаторов обработчиков запросов для возможности отключить те или иные обработчики.
|
|
801
838
|
*/
|
|
@@ -814,7 +851,7 @@ const S = class S {
|
|
|
814
851
|
// eslint-disable-next-line class-methods-use-this
|
|
815
852
|
t(this, "authRequestInterceptor", async (r) => {
|
|
816
853
|
let e;
|
|
817
|
-
return
|
|
854
|
+
return $(ae().jwtToken) || (e = await ae().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
|
|
818
855
|
});
|
|
819
856
|
/**
|
|
820
857
|
* Перехватчик запроса для преобразования данных запроса.
|
|
@@ -822,7 +859,7 @@ const S = class S {
|
|
|
822
859
|
* @param request Данные запроса.
|
|
823
860
|
*/
|
|
824
861
|
// eslint-disable-next-line class-methods-use-this
|
|
825
|
-
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params =
|
|
862
|
+
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Me(r.params)), ["put", "patch", "post"].includes($r(r.method)) && r.data && (r.data = Me(r.data))), r));
|
|
826
863
|
/**
|
|
827
864
|
* Перехватчик ошибок ответов на запрос.
|
|
828
865
|
*
|
|
@@ -831,7 +868,7 @@ const S = class S {
|
|
|
831
868
|
t(this, "authErrorsResponseInterceptors", (r) => {
|
|
832
869
|
var s;
|
|
833
870
|
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) : (
|
|
871
|
+
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (ae().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
|
|
835
872
|
});
|
|
836
873
|
/**
|
|
837
874
|
* Перехватчик ответа для преобразования данных ответа на запрос.
|
|
@@ -839,11 +876,11 @@ const S = class S {
|
|
|
839
876
|
* @param response Данные ответа на запрос.
|
|
840
877
|
*/
|
|
841
878
|
// eslint-disable-next-line class-methods-use-this
|
|
842
|
-
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data =
|
|
843
|
-
const r =
|
|
844
|
-
this.errorResponseHandler =
|
|
879
|
+
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Oe(r.data)), r));
|
|
880
|
+
const r = D.getConfig().version;
|
|
881
|
+
this.errorResponseHandler = L.defaultErrorsResponseHandler, this.httpClient = qr.create({
|
|
845
882
|
headers: {
|
|
846
|
-
"APP-VERSION": `${r.name} (${r.version}, ${q(r.date,
|
|
883
|
+
"APP-VERSION": `${r.name} (${r.version}, ${q(r.date, D.getConfig().dateFormats.uiDate)})`,
|
|
847
884
|
Accept: "application/json",
|
|
848
885
|
"Content-Type": "application/json"
|
|
849
886
|
}
|
|
@@ -852,7 +889,7 @@ const S = class S {
|
|
|
852
889
|
(e) => Promise.reject(e)
|
|
853
890
|
), this.interceptorIds.response.convertHttpErrorResponseInterceptor = this.httpClient.interceptors.response.use(
|
|
854
891
|
(e) => e,
|
|
855
|
-
(e) =>
|
|
892
|
+
(e) => L.convertHttpErrorResponse(e)
|
|
856
893
|
), this.interceptorIds.response.authErrorsResponseInterceptor = this.httpClient.interceptors.response.use((e) => e, this.authErrorsResponseInterceptors), this.interceptorIds.response.dataConverterResponseInterceptor = this.httpClient.interceptors.response.use(
|
|
857
894
|
this.dataConverterResponseInterceptor,
|
|
858
895
|
(e) => Promise.reject(e)
|
|
@@ -864,7 +901,7 @@ const S = class S {
|
|
|
864
901
|
* @param handler Ссылка на функцию-обработчик ошибок.
|
|
865
902
|
*/
|
|
866
903
|
static setDefaultErrorsResponseHandler(r) {
|
|
867
|
-
|
|
904
|
+
L.defaultErrorsResponseHandler = r;
|
|
868
905
|
}
|
|
869
906
|
/**
|
|
870
907
|
* Возвращает экземпляр объекта текущего класса.
|
|
@@ -872,7 +909,7 @@ const S = class S {
|
|
|
872
909
|
* @param type Тип данных, которыми оперирует метод.
|
|
873
910
|
*/
|
|
874
911
|
static getInstance(r) {
|
|
875
|
-
return Object.prototype.hasOwnProperty.call(
|
|
912
|
+
return Object.prototype.hasOwnProperty.call(L.instances, r.name) || (L.instances[r.name] = Ue.simpleInstanceInitializer(r)), L.instances[r.name];
|
|
876
913
|
}
|
|
877
914
|
/**
|
|
878
915
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -881,7 +918,7 @@ const S = class S {
|
|
|
881
918
|
*/
|
|
882
919
|
static convertHttpErrorResponse(r) {
|
|
883
920
|
var e, s;
|
|
884
|
-
if (
|
|
921
|
+
if (!$(r.request) || !$(r.response)) {
|
|
885
922
|
const i = r == null ? void 0 : r.response;
|
|
886
923
|
return Promise.reject({
|
|
887
924
|
status: (i == null ? void 0 : i.status) ?? 0,
|
|
@@ -970,16 +1007,16 @@ const S = class S {
|
|
|
970
1007
|
* Экземпляр объекта текущего класса.
|
|
971
1008
|
*/
|
|
972
1009
|
// eslint-disable-next-line no-use-before-define
|
|
973
|
-
t(
|
|
1010
|
+
t(L, "instances", {}), /**
|
|
974
1011
|
* Базовый обработчик ошибок выполнения запросов.
|
|
975
1012
|
*
|
|
976
1013
|
* @param error Данные об ошибке.
|
|
977
1014
|
* @param validationFieldResultData Список полей, для которых необходимо установить данные об ошибках валидации в случае ошибок в запросах.
|
|
978
1015
|
* @param disableNotifications Признак необходимости отключить уведомления об ошибках.
|
|
979
1016
|
*/
|
|
980
|
-
t(
|
|
981
|
-
let h =
|
|
982
|
-
class
|
|
1017
|
+
t(L, "defaultErrorsResponseHandler", w);
|
|
1018
|
+
let h = L;
|
|
1019
|
+
class It extends h {
|
|
983
1020
|
/**
|
|
984
1021
|
* Возвращает содержимое корзины указанного клиента.
|
|
985
1022
|
*
|
|
@@ -988,7 +1025,7 @@ class bt extends h {
|
|
|
988
1025
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_get
|
|
989
1026
|
*/
|
|
990
1027
|
getCart(r) {
|
|
991
|
-
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new
|
|
1028
|
+
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new me(e.data));
|
|
992
1029
|
}
|
|
993
1030
|
/**
|
|
994
1031
|
* Удаляет всё содержимое корзины.
|
|
@@ -1026,7 +1063,7 @@ class bt extends h {
|
|
|
1026
1063
|
isAdditionalSale: e.isAdditionalSale,
|
|
1027
1064
|
...e.configuratorParams
|
|
1028
1065
|
},
|
|
1029
|
-
(i) => new
|
|
1066
|
+
(i) => new me(i.data),
|
|
1030
1067
|
s
|
|
1031
1068
|
);
|
|
1032
1069
|
}
|
|
@@ -1056,7 +1093,7 @@ class bt extends h {
|
|
|
1056
1093
|
isAdditionalSale: e.isAdditionalSale,
|
|
1057
1094
|
...e.configuratorParams
|
|
1058
1095
|
},
|
|
1059
|
-
(i) => new
|
|
1096
|
+
(i) => new me(i.data),
|
|
1060
1097
|
s
|
|
1061
1098
|
);
|
|
1062
1099
|
}
|
|
@@ -1079,11 +1116,11 @@ class bt extends h {
|
|
|
1079
1116
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
|
|
1080
1117
|
*/
|
|
1081
1118
|
addCartItemFromCSV(r) {
|
|
1082
|
-
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new
|
|
1119
|
+
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, {}, (e) => new me(e.data));
|
|
1083
1120
|
}
|
|
1084
1121
|
}
|
|
1085
|
-
var
|
|
1086
|
-
class
|
|
1122
|
+
var Hr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Hr || {}), Ge = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Ge || {}), Br = /* @__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))(Br || {});
|
|
1123
|
+
class B extends he {
|
|
1087
1124
|
/**
|
|
1088
1125
|
* Инициализирует экземпляр класса {@link Category}.
|
|
1089
1126
|
*
|
|
@@ -1100,10 +1137,10 @@ class G extends ce {
|
|
|
1100
1137
|
* Список продуктов категории.
|
|
1101
1138
|
*/
|
|
1102
1139
|
t(this, "products");
|
|
1103
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new
|
|
1140
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new B(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new k(o));
|
|
1104
1141
|
}
|
|
1105
1142
|
}
|
|
1106
|
-
class sr extends
|
|
1143
|
+
class sr extends T {
|
|
1107
1144
|
/**
|
|
1108
1145
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1109
1146
|
*
|
|
@@ -1115,10 +1152,10 @@ class sr extends $ {
|
|
|
1115
1152
|
* Дата и время последнего изменения.
|
|
1116
1153
|
*/
|
|
1117
1154
|
t(this, "updatedAt");
|
|
1118
|
-
this.updatedAt =
|
|
1155
|
+
this.updatedAt = y(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1119
1156
|
}
|
|
1120
1157
|
}
|
|
1121
|
-
class
|
|
1158
|
+
class zr extends sr {
|
|
1122
1159
|
/**
|
|
1123
1160
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1124
1161
|
*
|
|
@@ -1130,10 +1167,10 @@ class Hr extends sr {
|
|
|
1130
1167
|
* Дата и время последнего удаления.
|
|
1131
1168
|
*/
|
|
1132
1169
|
t(this, "deletedAt");
|
|
1133
|
-
this.deletedAt =
|
|
1170
|
+
this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1134
1171
|
}
|
|
1135
1172
|
}
|
|
1136
|
-
class
|
|
1173
|
+
class dt {
|
|
1137
1174
|
/**
|
|
1138
1175
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
1139
1176
|
*
|
|
@@ -1144,7 +1181,7 @@ class _t {
|
|
|
1144
1181
|
if (e)
|
|
1145
1182
|
try {
|
|
1146
1183
|
const s = JSON.parse(e);
|
|
1147
|
-
if (
|
|
1184
|
+
if (br(C(s.availableFor) || Ze(), /* @__PURE__ */ new Date()))
|
|
1148
1185
|
return s.data ?? {};
|
|
1149
1186
|
} catch {
|
|
1150
1187
|
localStorage.removeItem(r);
|
|
@@ -1167,7 +1204,7 @@ class _t {
|
|
|
1167
1204
|
);
|
|
1168
1205
|
}
|
|
1169
1206
|
}
|
|
1170
|
-
class
|
|
1207
|
+
class G extends T {
|
|
1171
1208
|
/**
|
|
1172
1209
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
1173
1210
|
*
|
|
@@ -1182,7 +1219,7 @@ class F extends $ {
|
|
|
1182
1219
|
this.type = e == null ? void 0 : e.type;
|
|
1183
1220
|
}
|
|
1184
1221
|
}
|
|
1185
|
-
class
|
|
1222
|
+
class Wr extends T {
|
|
1186
1223
|
/**
|
|
1187
1224
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1188
1225
|
*
|
|
@@ -1218,10 +1255,10 @@ class Br extends $ {
|
|
|
1218
1255
|
* Дата и время удаления.
|
|
1219
1256
|
*/
|
|
1220
1257
|
t(this, "deletedAt");
|
|
1221
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt =
|
|
1258
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = y(e == null ? void 0 : e.publishedAt) ? C(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 = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1222
1259
|
}
|
|
1223
1260
|
}
|
|
1224
|
-
class
|
|
1261
|
+
class z extends sr {
|
|
1225
1262
|
/**
|
|
1226
1263
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1227
1264
|
*
|
|
@@ -1237,10 +1274,10 @@ class j extends sr {
|
|
|
1237
1274
|
* Дата и время создания шаблона.
|
|
1238
1275
|
*/
|
|
1239
1276
|
t(this, "createdAt");
|
|
1240
|
-
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt =
|
|
1277
|
+
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
|
|
1241
1278
|
}
|
|
1242
1279
|
}
|
|
1243
|
-
class
|
|
1280
|
+
class Q extends k {
|
|
1244
1281
|
/**
|
|
1245
1282
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1246
1283
|
*
|
|
@@ -1276,10 +1313,10 @@ class K extends _ {
|
|
|
1276
1313
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1277
1314
|
*/
|
|
1278
1315
|
t(this, "isFavorite");
|
|
1279
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new
|
|
1316
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Ge.Product, this.discount = e != null && e.discount ? new Wr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new z(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
|
|
1280
1317
|
}
|
|
1281
1318
|
}
|
|
1282
|
-
class
|
|
1319
|
+
class Vr {
|
|
1283
1320
|
/**
|
|
1284
1321
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1285
1322
|
*
|
|
@@ -1297,9 +1334,9 @@ class zr {
|
|
|
1297
1334
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
1298
1335
|
}
|
|
1299
1336
|
}
|
|
1300
|
-
class
|
|
1337
|
+
class x extends P {
|
|
1301
1338
|
}
|
|
1302
|
-
class
|
|
1339
|
+
class oe extends T {
|
|
1303
1340
|
/**
|
|
1304
1341
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1305
1342
|
*
|
|
@@ -1310,7 +1347,7 @@ class te extends $ {
|
|
|
1310
1347
|
/**
|
|
1311
1348
|
* Направление продаж.
|
|
1312
1349
|
*/
|
|
1313
|
-
t(this, "salesDirection", new
|
|
1350
|
+
t(this, "salesDirection", new x());
|
|
1314
1351
|
/**
|
|
1315
1352
|
* URI путь к фотографии пользователя.
|
|
1316
1353
|
*/
|
|
@@ -1323,10 +1360,10 @@ class te extends $ {
|
|
|
1323
1360
|
* Признак того, что менеджер является основным для клиента.
|
|
1324
1361
|
*/
|
|
1325
1362
|
t(this, "isDefault");
|
|
1326
|
-
e && (this.salesDirection = new
|
|
1363
|
+
e && (this.salesDirection = new x(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Vr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1327
1364
|
}
|
|
1328
1365
|
}
|
|
1329
|
-
class
|
|
1366
|
+
class Ae extends oe {
|
|
1330
1367
|
/**
|
|
1331
1368
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1332
1369
|
*
|
|
@@ -1357,7 +1394,7 @@ class ve extends te {
|
|
|
1357
1394
|
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
1395
|
}
|
|
1359
1396
|
}
|
|
1360
|
-
class
|
|
1397
|
+
class Er extends he {
|
|
1361
1398
|
/**
|
|
1362
1399
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1363
1400
|
*
|
|
@@ -1385,10 +1422,10 @@ class jr extends ce {
|
|
|
1385
1422
|
* Данные о менеджере за которым закреплена категория.
|
|
1386
1423
|
*/
|
|
1387
1424
|
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
|
|
1425
|
+
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 Ae(e.manager) : void 0;
|
|
1389
1426
|
}
|
|
1390
1427
|
}
|
|
1391
|
-
class
|
|
1428
|
+
class fe extends Er {
|
|
1392
1429
|
/**
|
|
1393
1430
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1394
1431
|
*
|
|
@@ -1405,7 +1442,7 @@ class he extends jr {
|
|
|
1405
1442
|
* Список продуктов категории.
|
|
1406
1443
|
*/
|
|
1407
1444
|
t(this, "products");
|
|
1408
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new
|
|
1445
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new fe(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Q(o));
|
|
1409
1446
|
}
|
|
1410
1447
|
}
|
|
1411
1448
|
class ir {
|
|
@@ -1423,10 +1460,10 @@ class ir {
|
|
|
1423
1460
|
* Процент, который прибавляется к значению выбранного коэффициента.
|
|
1424
1461
|
*/
|
|
1425
1462
|
t(this, "increasePercent");
|
|
1426
|
-
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new
|
|
1463
|
+
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1427
1464
|
}
|
|
1428
1465
|
}
|
|
1429
|
-
class
|
|
1466
|
+
class $e extends ir {
|
|
1430
1467
|
/**
|
|
1431
1468
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1432
1469
|
*
|
|
@@ -1438,12 +1475,12 @@ class ae extends ir {
|
|
|
1438
1475
|
* Базовые данные о продукте.
|
|
1439
1476
|
*/
|
|
1440
1477
|
t(this, "productCategory");
|
|
1441
|
-
this.productCategory = new
|
|
1478
|
+
this.productCategory = new he(e == null ? void 0 : e.productCategory);
|
|
1442
1479
|
}
|
|
1443
1480
|
}
|
|
1444
|
-
class
|
|
1481
|
+
class Y extends P {
|
|
1445
1482
|
}
|
|
1446
|
-
class
|
|
1483
|
+
class ce extends P {
|
|
1447
1484
|
/**
|
|
1448
1485
|
* Инициализирует экземпляр класса {@link Region}.
|
|
1449
1486
|
*
|
|
@@ -1454,11 +1491,11 @@ class se extends w {
|
|
|
1454
1491
|
/**
|
|
1455
1492
|
* Данные о стране, в которой расположен регион.
|
|
1456
1493
|
*/
|
|
1457
|
-
t(this, "country", new
|
|
1458
|
-
e && (this.country = new
|
|
1494
|
+
t(this, "country", new Y());
|
|
1495
|
+
e && (this.country = new Y(e.country));
|
|
1459
1496
|
}
|
|
1460
1497
|
}
|
|
1461
|
-
class
|
|
1498
|
+
class je extends P {
|
|
1462
1499
|
/**
|
|
1463
1500
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
1464
1501
|
*
|
|
@@ -1469,11 +1506,11 @@ class Fe extends w {
|
|
|
1469
1506
|
/**
|
|
1470
1507
|
* Данные о регионе, в котором расположен город.
|
|
1471
1508
|
*/
|
|
1472
|
-
t(this, "region", new
|
|
1473
|
-
e && (this.region = new
|
|
1509
|
+
t(this, "region", new ce());
|
|
1510
|
+
e && (this.region = new ce(e.region));
|
|
1474
1511
|
}
|
|
1475
1512
|
}
|
|
1476
|
-
class nr extends
|
|
1513
|
+
class nr extends T {
|
|
1477
1514
|
/**
|
|
1478
1515
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1479
1516
|
*
|
|
@@ -1509,10 +1546,10 @@ class nr extends $ {
|
|
|
1509
1546
|
* Признак активности учетной записи пользователя.
|
|
1510
1547
|
*/
|
|
1511
1548
|
t(this, "isActive");
|
|
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
|
|
1549
|
+
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 x(e.salesDirection) : void 0, this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = y(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1513
1550
|
}
|
|
1514
1551
|
}
|
|
1515
|
-
class
|
|
1552
|
+
class ge extends nr {
|
|
1516
1553
|
/**
|
|
1517
1554
|
* Инициализирует экземпляр класса {@link Client}.
|
|
1518
1555
|
*
|
|
@@ -1554,10 +1591,10 @@ class le extends nr {
|
|
|
1554
1591
|
* Список менеджеров клиента.
|
|
1555
1592
|
*/
|
|
1556
1593
|
t(this, "managers");
|
|
1557
|
-
this.salesDirection = new
|
|
1594
|
+
this.salesDirection = new x(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 je(e == null ? void 0 : e.city), this.comment = e == null ? void 0 : e.comment, this.isPhoneApproved = (e == null ? void 0 : e.isPhoneApproved) ?? !1, this.isEmailApproved = (e == null ? void 0 : e.isEmailApproved) ?? !1, this.managers = ((s = e == null ? void 0 : e.managers) == null ? void 0 : s.map((i) => new oe(i))) ?? [];
|
|
1558
1595
|
}
|
|
1559
1596
|
}
|
|
1560
|
-
class
|
|
1597
|
+
class re extends M {
|
|
1561
1598
|
/**
|
|
1562
1599
|
* Инициализирует новый экземпляр класса.
|
|
1563
1600
|
*
|
|
@@ -1581,10 +1618,10 @@ class Z extends B {
|
|
|
1581
1618
|
* Данные шаблона прайс-листа.
|
|
1582
1619
|
*/
|
|
1583
1620
|
t(this, "priceTemplate");
|
|
1584
|
-
this.createdAt =
|
|
1621
|
+
this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ge(e == null ? void 0 : e.client), this.priceTemplate = new z(e == null ? void 0 : e.priceTemplate);
|
|
1585
1622
|
}
|
|
1586
1623
|
}
|
|
1587
|
-
class
|
|
1624
|
+
class Te extends ir {
|
|
1588
1625
|
/**
|
|
1589
1626
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1590
1627
|
*
|
|
@@ -1596,12 +1633,12 @@ class De extends ir {
|
|
|
1596
1633
|
* Базовые данные о продукте.
|
|
1597
1634
|
*/
|
|
1598
1635
|
t(this, "product");
|
|
1599
|
-
this.product = new
|
|
1636
|
+
this.product = new k(e == null ? void 0 : e.product);
|
|
1600
1637
|
}
|
|
1601
1638
|
}
|
|
1602
|
-
class or extends
|
|
1639
|
+
class or extends P {
|
|
1603
1640
|
}
|
|
1604
|
-
class
|
|
1641
|
+
class te extends T {
|
|
1605
1642
|
/**
|
|
1606
1643
|
* Инициализирует экземпляр класса {@link Property}.
|
|
1607
1644
|
*
|
|
@@ -1624,7 +1661,7 @@ class ee extends $ {
|
|
|
1624
1661
|
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
1662
|
}
|
|
1626
1663
|
}
|
|
1627
|
-
class
|
|
1664
|
+
class H {
|
|
1628
1665
|
/**
|
|
1629
1666
|
* Инициализирует экземпляр класса {@link PropertyValue}.
|
|
1630
1667
|
*
|
|
@@ -1640,7 +1677,7 @@ class z {
|
|
|
1640
1677
|
* Может быть строкой, числом, boolean, диапазоном или JSON объектом.
|
|
1641
1678
|
*/
|
|
1642
1679
|
t(this, "value");
|
|
1643
|
-
this.property = new
|
|
1680
|
+
this.property = new te(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
1644
1681
|
}
|
|
1645
1682
|
}
|
|
1646
1683
|
class O {
|
|
@@ -1658,10 +1695,10 @@ class O {
|
|
|
1658
1695
|
* Окончание периода.
|
|
1659
1696
|
*/
|
|
1660
1697
|
t(this, "to");
|
|
1661
|
-
this.from =
|
|
1698
|
+
this.from = y(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = y(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
|
|
1662
1699
|
}
|
|
1663
1700
|
}
|
|
1664
|
-
class
|
|
1701
|
+
class Lt {
|
|
1665
1702
|
/**
|
|
1666
1703
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
1667
1704
|
*
|
|
@@ -1721,29 +1758,11 @@ class St {
|
|
|
1721
1758
|
return Object.keys(this).forEach((c) => {
|
|
1722
1759
|
const p = this[c];
|
|
1723
1760
|
// eslint-disable-next-line prettier/prettier
|
|
1724
|
-
|
|
1761
|
+
$(p) || y(p) && p.trim().length === 0 || Ne(p.isNewRec) && p.isNewRec() || (r[c] = p);
|
|
1725
1762
|
}), !((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
1763
|
}
|
|
1727
1764
|
}
|
|
1728
|
-
class
|
|
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
|
-
class re extends $ {
|
|
1765
|
+
class se extends T {
|
|
1747
1766
|
/**
|
|
1748
1767
|
* Инициализирует экземпляр класса {@link PricingRole}.
|
|
1749
1768
|
*
|
|
@@ -1778,7 +1797,7 @@ class re extends $ {
|
|
|
1778
1797
|
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
1798
|
}
|
|
1780
1799
|
}
|
|
1781
|
-
class
|
|
1800
|
+
class He {
|
|
1782
1801
|
/**
|
|
1783
1802
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
1784
1803
|
*
|
|
@@ -1797,10 +1816,10 @@ class ze {
|
|
|
1797
1816
|
* Минимальный коэффициент цены.
|
|
1798
1817
|
*/
|
|
1799
1818
|
t(this, "minCoefficient");
|
|
1800
|
-
this.role = new
|
|
1819
|
+
this.role = new se(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
|
|
1801
1820
|
}
|
|
1802
1821
|
}
|
|
1803
|
-
class
|
|
1822
|
+
class Jr {
|
|
1804
1823
|
/**
|
|
1805
1824
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
1806
1825
|
*
|
|
@@ -1822,7 +1841,7 @@ class Wr {
|
|
|
1822
1841
|
this.phone = (r == null ? void 0 : r.phone) ?? 360, this.tablet = (r == null ? void 0 : r.tablet) ?? 600, this.laptop = (r == null ? void 0 : r.laptop) ?? 1024;
|
|
1823
1842
|
}
|
|
1824
1843
|
}
|
|
1825
|
-
class
|
|
1844
|
+
class Kr {
|
|
1826
1845
|
/**
|
|
1827
1846
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
1828
1847
|
*
|
|
@@ -1837,6 +1856,10 @@ class Vr {
|
|
|
1837
1856
|
* @inheritDoc
|
|
1838
1857
|
*/
|
|
1839
1858
|
t(this, "priceHistoryApiUrl");
|
|
1859
|
+
/**
|
|
1860
|
+
* @inheritDoc
|
|
1861
|
+
*/
|
|
1862
|
+
t(this, "recommendationsApiUrl");
|
|
1840
1863
|
/**
|
|
1841
1864
|
* @inheritDoc
|
|
1842
1865
|
*/
|
|
@@ -1845,10 +1868,10 @@ class Vr {
|
|
|
1845
1868
|
* @inheritDoc
|
|
1846
1869
|
*/
|
|
1847
1870
|
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;
|
|
1871
|
+
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
1872
|
}
|
|
1850
1873
|
}
|
|
1851
|
-
class
|
|
1874
|
+
class Qr {
|
|
1852
1875
|
/**
|
|
1853
1876
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
1854
1877
|
*
|
|
@@ -1893,7 +1916,7 @@ class Er {
|
|
|
1893
1916
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
1894
1917
|
}
|
|
1895
1918
|
}
|
|
1896
|
-
class
|
|
1919
|
+
class Yr {
|
|
1897
1920
|
/**
|
|
1898
1921
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
1899
1922
|
*
|
|
@@ -1912,10 +1935,10 @@ class Jr {
|
|
|
1912
1935
|
* Текущая версия приложения.
|
|
1913
1936
|
*/
|
|
1914
1937
|
t(this, "version");
|
|
1915
|
-
this.date =
|
|
1938
|
+
this.date = y(r == null ? void 0 : r.date) ? C(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
|
|
1916
1939
|
}
|
|
1917
1940
|
}
|
|
1918
|
-
class
|
|
1941
|
+
class kt {
|
|
1919
1942
|
/**
|
|
1920
1943
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
1921
1944
|
*
|
|
@@ -1955,17 +1978,17 @@ class It {
|
|
|
1955
1978
|
*/
|
|
1956
1979
|
t(this, "dateFormats");
|
|
1957
1980
|
var e, s, i;
|
|
1958
|
-
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new
|
|
1981
|
+
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new Kr(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Jr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new Qr({
|
|
1959
1982
|
environment: this.environment,
|
|
1960
1983
|
...r == null ? void 0 : r.sentry
|
|
1961
|
-
}), this.urls = r == null ? void 0 : r.urls, this.version = new
|
|
1984
|
+
}), this.urls = r == null ? void 0 : r.urls, this.version = new Yr(r == null ? void 0 : r.version), this.dateFormats = {
|
|
1962
1985
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
1963
1986
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
1964
1987
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
1965
1988
|
};
|
|
1966
1989
|
}
|
|
1967
1990
|
}
|
|
1968
|
-
class
|
|
1991
|
+
class xt extends h {
|
|
1969
1992
|
/**
|
|
1970
1993
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
1971
1994
|
*
|
|
@@ -1992,11 +2015,11 @@ class Lt extends h {
|
|
|
1992
2015
|
*/
|
|
1993
2016
|
// eslint-disable-next-line class-methods-use-this
|
|
1994
2017
|
getPriceExportLink(r = "csv", e = !1, s = void 0, i = void 0) {
|
|
1995
|
-
let c = `${
|
|
2018
|
+
let c = `${D.getConfig().http.portalApiUrl}/api/internal/price/export?format=${r}&show_hidden=${e}`;
|
|
1996
2019
|
return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
|
|
1997
2020
|
}
|
|
1998
2021
|
}
|
|
1999
|
-
class
|
|
2022
|
+
class Nt extends h {
|
|
2000
2023
|
/**
|
|
2001
2024
|
* Импортирует цены клиента из CSV файла.
|
|
2002
2025
|
*
|
|
@@ -2120,7 +2143,7 @@ class dt extends h {
|
|
|
2120
2143
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2121
2144
|
increase_percent: s.value
|
|
2122
2145
|
},
|
|
2123
|
-
(o) => new
|
|
2146
|
+
(o) => new Q(o.data)
|
|
2124
2147
|
);
|
|
2125
2148
|
}
|
|
2126
2149
|
/**
|
|
@@ -2132,7 +2155,7 @@ class dt extends h {
|
|
|
2132
2155
|
* @see /doc/api/internal#/operations/api_internal_client_price_products_remove
|
|
2133
2156
|
*/
|
|
2134
2157
|
removeProductPrice(r, e) {
|
|
2135
|
-
return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new
|
|
2158
|
+
return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new Q(s.data));
|
|
2136
2159
|
}
|
|
2137
2160
|
/**
|
|
2138
2161
|
* Добавляет указанный продукт в список товаров для дополнительных продаж.
|
|
@@ -2195,7 +2218,7 @@ class dt extends h {
|
|
|
2195
2218
|
return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
|
|
2196
2219
|
}
|
|
2197
2220
|
}
|
|
2198
|
-
class
|
|
2221
|
+
class Ot extends h {
|
|
2199
2222
|
/**
|
|
2200
2223
|
* Возвращает список шаблонов прайс-листа привязанных к клиенту.
|
|
2201
2224
|
*
|
|
@@ -2207,7 +2230,7 @@ class kt extends h {
|
|
|
2207
2230
|
return this.get(
|
|
2208
2231
|
`/internal/clients/${r}/price/templates`,
|
|
2209
2232
|
{},
|
|
2210
|
-
(e) => e.data.map((s) => new
|
|
2233
|
+
(e) => e.data.map((s) => new re(s))
|
|
2211
2234
|
);
|
|
2212
2235
|
}
|
|
2213
2236
|
/**
|
|
@@ -2218,7 +2241,7 @@ class kt extends h {
|
|
|
2218
2241
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
|
|
2219
2242
|
*/
|
|
2220
2243
|
getActiveTemplate(r) {
|
|
2221
|
-
return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new
|
|
2244
|
+
return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new re(e.data));
|
|
2222
2245
|
}
|
|
2223
2246
|
/**
|
|
2224
2247
|
* Добавляет связь между клиентом и шаблоном прайс-листа.
|
|
@@ -2230,14 +2253,14 @@ class kt extends h {
|
|
|
2230
2253
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_attach
|
|
2231
2254
|
*/
|
|
2232
2255
|
attachTemplate(r, e, s) {
|
|
2233
|
-
const i =
|
|
2256
|
+
const i = D.getConfig().dateFormats.api;
|
|
2234
2257
|
return this.post(
|
|
2235
2258
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
2236
2259
|
s && {
|
|
2237
2260
|
startAt: s.startAt && q(s.startAt, i),
|
|
2238
2261
|
endAt: s.endAt && q(s.endAt, i)
|
|
2239
2262
|
},
|
|
2240
|
-
(o) => new
|
|
2263
|
+
(o) => new re(o.data),
|
|
2241
2264
|
{},
|
|
2242
2265
|
!0
|
|
2243
2266
|
);
|
|
@@ -2264,14 +2287,14 @@ class kt extends h {
|
|
|
2264
2287
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_change
|
|
2265
2288
|
*/
|
|
2266
2289
|
changeTemplate(r, e, s, i) {
|
|
2267
|
-
const o =
|
|
2290
|
+
const o = D.getConfig().dateFormats.api;
|
|
2268
2291
|
return this.patch(
|
|
2269
2292
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
2270
2293
|
i && {
|
|
2271
2294
|
startAt: i.startAt && q(i.startAt, o),
|
|
2272
2295
|
endAt: i.endAt && q(i.endAt, o)
|
|
2273
2296
|
},
|
|
2274
|
-
(c) => new
|
|
2297
|
+
(c) => new re(c.data)
|
|
2275
2298
|
);
|
|
2276
2299
|
}
|
|
2277
2300
|
/**
|
|
@@ -2287,7 +2310,7 @@ class kt extends h {
|
|
|
2287
2310
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2288
2311
|
}
|
|
2289
2312
|
}
|
|
2290
|
-
class
|
|
2313
|
+
class qt extends h {
|
|
2291
2314
|
/**
|
|
2292
2315
|
* Возвращает список данных о корневых категориях.
|
|
2293
2316
|
*
|
|
@@ -2301,7 +2324,7 @@ class xt extends h {
|
|
|
2301
2324
|
{
|
|
2302
2325
|
showHidden: r
|
|
2303
2326
|
},
|
|
2304
|
-
(e) => e.data.map((s) => new
|
|
2327
|
+
(e) => e.data.map((s) => new B(s))
|
|
2305
2328
|
);
|
|
2306
2329
|
}
|
|
2307
2330
|
/**
|
|
@@ -2320,7 +2343,7 @@ class xt extends h {
|
|
|
2320
2343
|
showHidden: e,
|
|
2321
2344
|
withNestedCategories: s
|
|
2322
2345
|
},
|
|
2323
|
-
(i) => new
|
|
2346
|
+
(i) => new B(i.data)
|
|
2324
2347
|
);
|
|
2325
2348
|
}
|
|
2326
2349
|
/**
|
|
@@ -2329,7 +2352,7 @@ class xt extends h {
|
|
|
2329
2352
|
* @param categoryID Идентификатор категории продуктов.
|
|
2330
2353
|
*/
|
|
2331
2354
|
getPublicCategoryData(r) {
|
|
2332
|
-
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new
|
|
2355
|
+
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new B(e.data));
|
|
2333
2356
|
}
|
|
2334
2357
|
/**
|
|
2335
2358
|
* Возвращает список продуктов категории.
|
|
@@ -2347,7 +2370,7 @@ class xt extends h {
|
|
|
2347
2370
|
showHidden: s,
|
|
2348
2371
|
withPriceCoefficients: e
|
|
2349
2372
|
},
|
|
2350
|
-
(i) =>
|
|
2373
|
+
(i) => ue(i.data, (o) => new k(o))
|
|
2351
2374
|
);
|
|
2352
2375
|
}
|
|
2353
2376
|
/**
|
|
@@ -2360,7 +2383,7 @@ class xt extends h {
|
|
|
2360
2383
|
getCategoryProductsCoefficients(r) {
|
|
2361
2384
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2362
2385
|
const { data: s } = e;
|
|
2363
|
-
return
|
|
2386
|
+
return Tr(s, (i) => i.map((o) => new qe(o))), s;
|
|
2364
2387
|
});
|
|
2365
2388
|
}
|
|
2366
2389
|
/**
|
|
@@ -2372,14 +2395,14 @@ class xt extends h {
|
|
|
2372
2395
|
publicSimpleSearch(r, e = 10) {
|
|
2373
2396
|
return new Promise((s, i) => {
|
|
2374
2397
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2375
|
-
s(o.categories.map((c) => new
|
|
2398
|
+
s(o.categories.map((c) => new B(c)));
|
|
2376
2399
|
}).catch((o) => {
|
|
2377
2400
|
i(o);
|
|
2378
2401
|
});
|
|
2379
2402
|
});
|
|
2380
2403
|
}
|
|
2381
2404
|
}
|
|
2382
|
-
class
|
|
2405
|
+
class Ut extends h {
|
|
2383
2406
|
/**
|
|
2384
2407
|
* Возвращает данные об указанном продукте.
|
|
2385
2408
|
*
|
|
@@ -2389,7 +2412,7 @@ class Nt extends h {
|
|
|
2389
2412
|
* @see /doc/api/internal#/Каталог/api_internal_catalog_products_get
|
|
2390
2413
|
*/
|
|
2391
2414
|
getProductData(r, e = !1) {
|
|
2392
|
-
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new
|
|
2415
|
+
return this.get(`/internal/catalog/products/${r}`, { withPriceCoefficients: e }, (s) => new k(s.data));
|
|
2393
2416
|
}
|
|
2394
2417
|
/**
|
|
2395
2418
|
* Возвращает публичные данные об указанном продукте.
|
|
@@ -2397,7 +2420,7 @@ class Nt extends h {
|
|
|
2397
2420
|
* @param productId Идентификатор продукта.
|
|
2398
2421
|
*/
|
|
2399
2422
|
getPublicProductData(r) {
|
|
2400
|
-
return this.get(`/public/catalog/products/${r}`, {}, (e) => new
|
|
2423
|
+
return this.get(`/public/catalog/products/${r}`, {}, (e) => new k(e.data));
|
|
2401
2424
|
}
|
|
2402
2425
|
/**
|
|
2403
2426
|
* Возвращает данные о коэффициентах цен для указанного продукта.
|
|
@@ -2410,7 +2433,7 @@ class Nt extends h {
|
|
|
2410
2433
|
return this.get(
|
|
2411
2434
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2412
2435
|
{},
|
|
2413
|
-
(e) =>
|
|
2436
|
+
(e) => ue(e.data, (s) => new qe(s))
|
|
2414
2437
|
);
|
|
2415
2438
|
}
|
|
2416
2439
|
/**
|
|
@@ -2422,14 +2445,14 @@ class Nt extends h {
|
|
|
2422
2445
|
publicSimpleSearch(r, e = 10) {
|
|
2423
2446
|
return new Promise((s, i) => {
|
|
2424
2447
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2425
|
-
s(o.products.map((c) => new
|
|
2448
|
+
s(o.products.map((c) => new k(c)));
|
|
2426
2449
|
}).catch((o) => {
|
|
2427
2450
|
i(o);
|
|
2428
2451
|
});
|
|
2429
2452
|
});
|
|
2430
2453
|
}
|
|
2431
2454
|
}
|
|
2432
|
-
class
|
|
2455
|
+
class Gt extends h {
|
|
2433
2456
|
/**
|
|
2434
2457
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2435
2458
|
*
|
|
@@ -2445,7 +2468,7 @@ class Ot extends h {
|
|
|
2445
2468
|
clientId: r,
|
|
2446
2469
|
showHidden: e
|
|
2447
2470
|
},
|
|
2448
|
-
(s) => s.data.map((i) => new
|
|
2471
|
+
(s) => s.data.map((i) => new fe(i))
|
|
2449
2472
|
);
|
|
2450
2473
|
}
|
|
2451
2474
|
/**
|
|
@@ -2466,7 +2489,7 @@ class Ot extends h {
|
|
|
2466
2489
|
showHidden: s,
|
|
2467
2490
|
withNestedCategories: i
|
|
2468
2491
|
},
|
|
2469
|
-
(o) => new
|
|
2492
|
+
(o) => new fe(o.data)
|
|
2470
2493
|
);
|
|
2471
2494
|
}
|
|
2472
2495
|
/**
|
|
@@ -2487,11 +2510,11 @@ class Ot extends h {
|
|
|
2487
2510
|
showHidden: i,
|
|
2488
2511
|
withPriceCoefficients: s
|
|
2489
2512
|
},
|
|
2490
|
-
(o) =>
|
|
2513
|
+
(o) => ue(o.data, (c) => new Q(c))
|
|
2491
2514
|
);
|
|
2492
2515
|
}
|
|
2493
2516
|
}
|
|
2494
|
-
class
|
|
2517
|
+
class jt extends h {
|
|
2495
2518
|
/**
|
|
2496
2519
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2497
2520
|
*
|
|
@@ -2508,12 +2531,12 @@ class qt extends h {
|
|
|
2508
2531
|
clientId: e,
|
|
2509
2532
|
withPriceCoefficients: s
|
|
2510
2533
|
},
|
|
2511
|
-
(i) => new
|
|
2534
|
+
(i) => new Q(i.data)
|
|
2512
2535
|
);
|
|
2513
2536
|
}
|
|
2514
2537
|
}
|
|
2515
|
-
var
|
|
2516
|
-
class
|
|
2538
|
+
var Fe = /* @__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))(Fe || {});
|
|
2539
|
+
class Be {
|
|
2517
2540
|
/**
|
|
2518
2541
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
2519
2542
|
*
|
|
@@ -2532,7 +2555,7 @@ class je {
|
|
|
2532
2555
|
* Значение с которым сравнивается поле.
|
|
2533
2556
|
*/
|
|
2534
2557
|
t(this, "value");
|
|
2535
|
-
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ??
|
|
2558
|
+
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? Fe.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2536
2559
|
}
|
|
2537
2560
|
/**
|
|
2538
2561
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -2544,10 +2567,10 @@ class je {
|
|
|
2544
2567
|
field: this.field,
|
|
2545
2568
|
op: this.op
|
|
2546
2569
|
};
|
|
2547
|
-
return r.value =
|
|
2570
|
+
return r.value = Ie(this.value) ? q(this.value, D.getConfig().dateFormats.api) : this.value, r;
|
|
2548
2571
|
}
|
|
2549
2572
|
}
|
|
2550
|
-
class
|
|
2573
|
+
class le {
|
|
2551
2574
|
/**
|
|
2552
2575
|
* Инициализирует экземпляр класса {@link FilterGroup}.
|
|
2553
2576
|
*
|
|
@@ -2567,7 +2590,7 @@ class ie {
|
|
|
2567
2590
|
*/
|
|
2568
2591
|
t(this, "groups");
|
|
2569
2592
|
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
|
|
2593
|
+
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 Be(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new le(i))) ?? [];
|
|
2571
2594
|
}
|
|
2572
2595
|
/**
|
|
2573
2596
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2577,12 +2600,12 @@ class ie {
|
|
|
2577
2600
|
toPrimitive() {
|
|
2578
2601
|
return {
|
|
2579
2602
|
groupOp: this.groupOp,
|
|
2580
|
-
filters: this.filters.map((r) => r instanceof
|
|
2581
|
-
groups: this.groups.map((r) => r instanceof
|
|
2603
|
+
filters: this.filters.map((r) => r instanceof Be && Ne(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2604
|
+
groups: this.groups.map((r) => r instanceof le ? r.toPrimitive() : r)
|
|
2582
2605
|
};
|
|
2583
2606
|
}
|
|
2584
2607
|
}
|
|
2585
|
-
class
|
|
2608
|
+
class De extends h {
|
|
2586
2609
|
/**
|
|
2587
2610
|
* Получает пагинированный список данных.
|
|
2588
2611
|
*
|
|
@@ -2599,10 +2622,10 @@ class Pe extends h {
|
|
|
2599
2622
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2600
2623
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2601
2624
|
};
|
|
2602
|
-
return e && (u.filters = JSON.stringify((e instanceof
|
|
2625
|
+
return e && (u.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), ve(s) || (u.sort = J(s) ? s : [s]), o && (u = { ...u, ...o }), this.get(r, u, c, p);
|
|
2603
2626
|
}
|
|
2604
2627
|
}
|
|
2605
|
-
class
|
|
2628
|
+
class Ft extends De {
|
|
2606
2629
|
/**
|
|
2607
2630
|
* Возвращает список шаблонов прайс-листа.
|
|
2608
2631
|
*
|
|
@@ -2615,7 +2638,7 @@ class Ut extends Pe {
|
|
|
2615
2638
|
getTemplateList(r, e, s) {
|
|
2616
2639
|
return this.getPaginated("/internal/price/templates", r, e, s, {}, (i) => {
|
|
2617
2640
|
const o = { ...i.data };
|
|
2618
|
-
return o.data = o.data.map((c) => new
|
|
2641
|
+
return o.data = o.data.map((c) => new z(c)), o;
|
|
2619
2642
|
});
|
|
2620
2643
|
}
|
|
2621
2644
|
/**
|
|
@@ -2628,7 +2651,7 @@ class Ut extends Pe {
|
|
|
2628
2651
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
|
|
2629
2652
|
*/
|
|
2630
2653
|
createTemplate(r, e = {}) {
|
|
2631
|
-
return this.post("/internal/price/templates", r, (s) => new
|
|
2654
|
+
return this.post("/internal/price/templates", r, (s) => new z(s.data), e);
|
|
2632
2655
|
}
|
|
2633
2656
|
/**
|
|
2634
2657
|
* Возвращает данные о шаблоне прайс-листа.
|
|
@@ -2638,7 +2661,7 @@ class Ut extends Pe {
|
|
|
2638
2661
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
|
|
2639
2662
|
*/
|
|
2640
2663
|
getTemplate(r) {
|
|
2641
|
-
return this.get(`/internal/price/templates/${r}`, {}, (e) => new
|
|
2664
|
+
return this.get(`/internal/price/templates/${r}`, {}, (e) => new z(e.data));
|
|
2642
2665
|
}
|
|
2643
2666
|
/**
|
|
2644
2667
|
* Изменяет данные о шаблоне прайс-листа.
|
|
@@ -2651,7 +2674,7 @@ class Ut extends Pe {
|
|
|
2651
2674
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
|
|
2652
2675
|
*/
|
|
2653
2676
|
updateTemplate(r, e, s = {}) {
|
|
2654
|
-
return this.patch(`/internal/price/templates/${r}`, e, (i) => new
|
|
2677
|
+
return this.patch(`/internal/price/templates/${r}`, e, (i) => new z(i.data), s);
|
|
2655
2678
|
}
|
|
2656
2679
|
/**
|
|
2657
2680
|
* Удаляет данные о шаблоне прайс-листа.
|
|
@@ -2674,7 +2697,7 @@ class Ut extends Pe {
|
|
|
2674
2697
|
return this.get(
|
|
2675
2698
|
`/internal/price/templates/${r}/products`,
|
|
2676
2699
|
{},
|
|
2677
|
-
(e) => e.data.map((s) => new
|
|
2700
|
+
(e) => e.data.map((s) => new Te(s))
|
|
2678
2701
|
);
|
|
2679
2702
|
}
|
|
2680
2703
|
/**
|
|
@@ -2686,7 +2709,7 @@ class Ut extends Pe {
|
|
|
2686
2709
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
2687
2710
|
*/
|
|
2688
2711
|
getProductTemplatePrice(r, e) {
|
|
2689
|
-
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new
|
|
2712
|
+
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Te(s.data));
|
|
2690
2713
|
}
|
|
2691
2714
|
/**
|
|
2692
2715
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -2705,7 +2728,7 @@ class Ut extends Pe {
|
|
|
2705
2728
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2706
2729
|
increase_percent: s.value
|
|
2707
2730
|
},
|
|
2708
|
-
(o) => new
|
|
2731
|
+
(o) => new Te(o.data)
|
|
2709
2732
|
);
|
|
2710
2733
|
}
|
|
2711
2734
|
/**
|
|
@@ -2730,7 +2753,7 @@ class Ut extends Pe {
|
|
|
2730
2753
|
return this.get(
|
|
2731
2754
|
`/internal/price/templates/${r}/categories`,
|
|
2732
2755
|
{},
|
|
2733
|
-
(e) => e.data.map((s) => new
|
|
2756
|
+
(e) => e.data.map((s) => new $e(s))
|
|
2734
2757
|
);
|
|
2735
2758
|
}
|
|
2736
2759
|
/**
|
|
@@ -2745,7 +2768,7 @@ class Ut extends Pe {
|
|
|
2745
2768
|
return this.get(
|
|
2746
2769
|
`/internal/price/templates/${r}/categories/${e}`,
|
|
2747
2770
|
{},
|
|
2748
|
-
(s) => new
|
|
2771
|
+
(s) => new $e(s.data)
|
|
2749
2772
|
);
|
|
2750
2773
|
}
|
|
2751
2774
|
/**
|
|
@@ -2771,7 +2794,7 @@ class Ut extends Pe {
|
|
|
2771
2794
|
},
|
|
2772
2795
|
params: i ? { recursively: !0 } : {}
|
|
2773
2796
|
},
|
|
2774
|
-
(c) => new
|
|
2797
|
+
(c) => new $e(c.data)
|
|
2775
2798
|
);
|
|
2776
2799
|
}
|
|
2777
2800
|
/**
|
|
@@ -2802,18 +2825,18 @@ class Ut extends Pe {
|
|
|
2802
2825
|
return this.get(
|
|
2803
2826
|
`/internal/price/templates/${r}/clients`,
|
|
2804
2827
|
{},
|
|
2805
|
-
(e) => e.data.map((s) => new
|
|
2828
|
+
(e) => e.data.map((s) => new re(s))
|
|
2806
2829
|
);
|
|
2807
2830
|
}
|
|
2808
2831
|
}
|
|
2809
|
-
class
|
|
2832
|
+
class Mt extends h {
|
|
2810
2833
|
/**
|
|
2811
2834
|
* Возвращает список ролей ценообразования.
|
|
2812
2835
|
*
|
|
2813
2836
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
|
|
2814
2837
|
*/
|
|
2815
2838
|
getRoles() {
|
|
2816
|
-
return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new
|
|
2839
|
+
return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new se(e)));
|
|
2817
2840
|
}
|
|
2818
2841
|
/**
|
|
2819
2842
|
* Добавляет новую роль ценообразования.
|
|
@@ -2823,7 +2846,7 @@ class Gt extends h {
|
|
|
2823
2846
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
|
|
2824
2847
|
*/
|
|
2825
2848
|
createRole(r) {
|
|
2826
|
-
return this.post("/internal/price/roles", r, (e) => new
|
|
2849
|
+
return this.post("/internal/price/roles", r, (e) => new se(e.data));
|
|
2827
2850
|
}
|
|
2828
2851
|
/**
|
|
2829
2852
|
* Возвращает данные роли ценообразования.
|
|
@@ -2833,7 +2856,7 @@ class Gt extends h {
|
|
|
2833
2856
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
|
|
2834
2857
|
*/
|
|
2835
2858
|
getRole(r) {
|
|
2836
|
-
return this.get(`/internal/price/roles/${r}`, {}, (e) => new
|
|
2859
|
+
return this.get(`/internal/price/roles/${r}`, {}, (e) => new se(e.data));
|
|
2837
2860
|
}
|
|
2838
2861
|
/**
|
|
2839
2862
|
* Обновляет данные роли ценообразования.
|
|
@@ -2844,7 +2867,7 @@ class Gt extends h {
|
|
|
2844
2867
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
|
|
2845
2868
|
*/
|
|
2846
2869
|
updateRole(r, e) {
|
|
2847
|
-
return this.patch(`/internal/price/roles/${r}`, e, (s) => new
|
|
2870
|
+
return this.patch(`/internal/price/roles/${r}`, e, (s) => new se(s.data));
|
|
2848
2871
|
}
|
|
2849
2872
|
/**
|
|
2850
2873
|
* Удаляет роль ценообразования.
|
|
@@ -2867,7 +2890,7 @@ class Gt extends h {
|
|
|
2867
2890
|
return this.get(
|
|
2868
2891
|
`/internal/price/roles/rules/categories/${r}`,
|
|
2869
2892
|
{},
|
|
2870
|
-
(e) => e.data.map((s) => new
|
|
2893
|
+
(e) => e.data.map((s) => new He(s))
|
|
2871
2894
|
);
|
|
2872
2895
|
}
|
|
2873
2896
|
/**
|
|
@@ -2882,11 +2905,11 @@ class Gt extends h {
|
|
|
2882
2905
|
return this.patch(
|
|
2883
2906
|
`/internal/price/roles/rules/categories/${r}`,
|
|
2884
2907
|
e,
|
|
2885
|
-
(s) => s.data.map((i) => new
|
|
2908
|
+
(s) => s.data.map((i) => new He(i))
|
|
2886
2909
|
);
|
|
2887
2910
|
}
|
|
2888
2911
|
}
|
|
2889
|
-
class
|
|
2912
|
+
class Ht extends De {
|
|
2890
2913
|
/**
|
|
2891
2914
|
* Возвращает пагинированный список свойств.
|
|
2892
2915
|
*
|
|
@@ -2899,7 +2922,7 @@ class Ft extends Pe {
|
|
|
2899
2922
|
getProperties(r, e, s) {
|
|
2900
2923
|
return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
|
|
2901
2924
|
const o = { ...i.data };
|
|
2902
|
-
return o.data = o.data.map((c) => new
|
|
2925
|
+
return o.data = o.data.map((c) => new te(c)), o;
|
|
2903
2926
|
});
|
|
2904
2927
|
}
|
|
2905
2928
|
/**
|
|
@@ -2916,7 +2939,7 @@ class Ft extends Pe {
|
|
|
2916
2939
|
...s,
|
|
2917
2940
|
type: e
|
|
2918
2941
|
},
|
|
2919
|
-
(i) => new
|
|
2942
|
+
(i) => new te(i.data)
|
|
2920
2943
|
);
|
|
2921
2944
|
}
|
|
2922
2945
|
/**
|
|
@@ -2926,7 +2949,7 @@ class Ft extends Pe {
|
|
|
2926
2949
|
* @see /doc/api/internal#/operations/api_internal_catalog_properties_get
|
|
2927
2950
|
*/
|
|
2928
2951
|
getProperty(r) {
|
|
2929
|
-
return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new
|
|
2952
|
+
return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new te(e.data));
|
|
2930
2953
|
}
|
|
2931
2954
|
/**
|
|
2932
2955
|
* Обновляет существующее свойство.
|
|
@@ -2943,7 +2966,7 @@ class Ft extends Pe {
|
|
|
2943
2966
|
...i,
|
|
2944
2967
|
type: s
|
|
2945
2968
|
},
|
|
2946
|
-
(o) => new
|
|
2969
|
+
(o) => new te(o.data)
|
|
2947
2970
|
);
|
|
2948
2971
|
}
|
|
2949
2972
|
/**
|
|
@@ -2962,7 +2985,7 @@ class Ft extends Pe {
|
|
|
2962
2985
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
|
|
2963
2986
|
*/
|
|
2964
2987
|
getProductProperties(r) {
|
|
2965
|
-
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
2988
|
+
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
|
|
2966
2989
|
}
|
|
2967
2990
|
/**
|
|
2968
2991
|
* Возвращает значение свойства продукта.
|
|
@@ -2972,7 +2995,7 @@ class Ft extends Pe {
|
|
|
2972
2995
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
|
|
2973
2996
|
*/
|
|
2974
2997
|
getProductProperty(r, e) {
|
|
2975
|
-
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new
|
|
2998
|
+
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new H(s.data));
|
|
2976
2999
|
}
|
|
2977
3000
|
/**
|
|
2978
3001
|
* Обновляет значение свойства продукта.
|
|
@@ -2983,7 +3006,7 @@ class Ft extends Pe {
|
|
|
2983
3006
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
|
|
2984
3007
|
*/
|
|
2985
3008
|
updateProductProperty(r, e, s) {
|
|
2986
|
-
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new
|
|
3009
|
+
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
|
|
2987
3010
|
}
|
|
2988
3011
|
/**
|
|
2989
3012
|
* Удаляет значение свойства продукта.
|
|
@@ -3108,7 +3131,7 @@ class Ft extends Pe {
|
|
|
3108
3131
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
|
|
3109
3132
|
*/
|
|
3110
3133
|
getCategoryProperties(r) {
|
|
3111
|
-
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
3134
|
+
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
|
|
3112
3135
|
}
|
|
3113
3136
|
/**
|
|
3114
3137
|
* Возвращает значение свойства категории.
|
|
@@ -3118,7 +3141,7 @@ class Ft extends Pe {
|
|
|
3118
3141
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
|
|
3119
3142
|
*/
|
|
3120
3143
|
getCategoryProperty(r, e) {
|
|
3121
|
-
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new
|
|
3144
|
+
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new H(s.data));
|
|
3122
3145
|
}
|
|
3123
3146
|
/**
|
|
3124
3147
|
* Обновляет значение свойства категории.
|
|
@@ -3129,7 +3152,7 @@ class Ft extends Pe {
|
|
|
3129
3152
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
|
|
3130
3153
|
*/
|
|
3131
3154
|
updateCategoryProperty(r, e, s) {
|
|
3132
|
-
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new
|
|
3155
|
+
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
|
|
3133
3156
|
}
|
|
3134
3157
|
/**
|
|
3135
3158
|
* Удаляет значение свойства категории.
|
|
@@ -3258,49 +3281,7 @@ class Ft extends Pe {
|
|
|
3258
3281
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3259
3282
|
}
|
|
3260
3283
|
}
|
|
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) {
|
|
3284
|
+
function ze(n, r, e) {
|
|
3304
3285
|
let s;
|
|
3305
3286
|
return n.some((i) => {
|
|
3306
3287
|
if (i.type === e && i.id === r)
|
|
@@ -3309,28 +3290,28 @@ function We(n, r, e) {
|
|
|
3309
3290
|
return !1;
|
|
3310
3291
|
const o = i;
|
|
3311
3292
|
if (o.products && o.products.length > 0) {
|
|
3312
|
-
const c =
|
|
3293
|
+
const c = ze(o.products, r, e);
|
|
3313
3294
|
if (c)
|
|
3314
3295
|
return s = c, !0;
|
|
3315
3296
|
}
|
|
3316
3297
|
if (o.categories && o.categories.length > 0) {
|
|
3317
|
-
const c =
|
|
3298
|
+
const c = ze(o.categories, r, e);
|
|
3318
3299
|
if (c)
|
|
3319
3300
|
return s = c, !0;
|
|
3320
3301
|
}
|
|
3321
3302
|
return !1;
|
|
3322
3303
|
}), s;
|
|
3323
3304
|
}
|
|
3324
|
-
var
|
|
3325
|
-
class
|
|
3305
|
+
var Xr = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n))(Xr || {}), d = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(d || {});
|
|
3306
|
+
class Zr extends P {
|
|
3326
3307
|
}
|
|
3327
|
-
class cr extends
|
|
3308
|
+
class cr extends P {
|
|
3328
3309
|
}
|
|
3329
|
-
class
|
|
3310
|
+
class Bt extends P {
|
|
3330
3311
|
}
|
|
3331
|
-
class
|
|
3312
|
+
class et extends P {
|
|
3332
3313
|
}
|
|
3333
|
-
class
|
|
3314
|
+
class ye extends T {
|
|
3334
3315
|
/**
|
|
3335
3316
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
3336
3317
|
*
|
|
@@ -3349,34 +3330,34 @@ class ge extends $ {
|
|
|
3349
3330
|
e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
|
|
3350
3331
|
}
|
|
3351
3332
|
}
|
|
3352
|
-
class
|
|
3333
|
+
class j extends P {
|
|
3353
3334
|
/**
|
|
3354
3335
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
3355
3336
|
*/
|
|
3356
3337
|
static generatePersonItem() {
|
|
3357
|
-
return new
|
|
3338
|
+
return new j({
|
|
3358
3339
|
id: 1,
|
|
3359
3340
|
guid: "",
|
|
3360
|
-
slug:
|
|
3341
|
+
slug: d.Person,
|
|
3361
3342
|
name: ""
|
|
3362
3343
|
});
|
|
3363
3344
|
}
|
|
3364
3345
|
}
|
|
3365
|
-
class
|
|
3346
|
+
class rt extends P {
|
|
3366
3347
|
}
|
|
3367
|
-
class
|
|
3348
|
+
class tt extends P {
|
|
3368
3349
|
}
|
|
3369
|
-
class
|
|
3350
|
+
class X extends P {
|
|
3370
3351
|
}
|
|
3371
|
-
class
|
|
3352
|
+
class st extends P {
|
|
3372
3353
|
}
|
|
3373
|
-
class
|
|
3354
|
+
class it extends P {
|
|
3374
3355
|
}
|
|
3375
|
-
class lr extends
|
|
3356
|
+
class lr extends P {
|
|
3376
3357
|
}
|
|
3377
|
-
class pr extends
|
|
3358
|
+
class pr extends P {
|
|
3378
3359
|
}
|
|
3379
|
-
class
|
|
3360
|
+
class Le extends M {
|
|
3380
3361
|
/**
|
|
3381
3362
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3382
3363
|
*
|
|
@@ -3403,11 +3384,11 @@ class Ie extends B {
|
|
|
3403
3384
|
/**
|
|
3404
3385
|
* Данные о валюте.
|
|
3405
3386
|
*/
|
|
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
|
|
3387
|
+
t(this, "currency", new ye());
|
|
3388
|
+
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ye(e.currency));
|
|
3408
3389
|
}
|
|
3409
3390
|
}
|
|
3410
|
-
class
|
|
3391
|
+
class ke extends T {
|
|
3411
3392
|
/**
|
|
3412
3393
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3413
3394
|
*
|
|
@@ -3426,7 +3407,7 @@ class Le extends $ {
|
|
|
3426
3407
|
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
3408
|
}
|
|
3428
3409
|
}
|
|
3429
|
-
class
|
|
3410
|
+
class F extends ke {
|
|
3430
3411
|
/**
|
|
3431
3412
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3432
3413
|
*
|
|
@@ -3458,10 +3439,10 @@ class H extends Le {
|
|
|
3458
3439
|
* Дата и время последнего удаления.
|
|
3459
3440
|
*/
|
|
3460
3441
|
t(this, "deletedAt");
|
|
3461
|
-
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt =
|
|
3442
|
+
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = y(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3462
3443
|
}
|
|
3463
3444
|
}
|
|
3464
|
-
class ur extends
|
|
3445
|
+
class ur extends T {
|
|
3465
3446
|
/**
|
|
3466
3447
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3467
3448
|
*
|
|
@@ -3473,19 +3454,19 @@ class ur extends $ {
|
|
|
3473
3454
|
/**
|
|
3474
3455
|
* Данные о менеджере.
|
|
3475
3456
|
*/
|
|
3476
|
-
t(this, "manager", new
|
|
3457
|
+
t(this, "manager", new oe());
|
|
3477
3458
|
/**
|
|
3478
3459
|
* Данные об организационно-правовой форме.
|
|
3479
3460
|
*/
|
|
3480
|
-
t(this, "opf",
|
|
3461
|
+
t(this, "opf", j.generatePersonItem());
|
|
3481
3462
|
/**
|
|
3482
3463
|
* Направление продаж.
|
|
3483
3464
|
*/
|
|
3484
|
-
t(this, "salesDirection", new
|
|
3465
|
+
t(this, "salesDirection", new x());
|
|
3485
3466
|
/**
|
|
3486
3467
|
* Группа партнеров (направление деятельности).
|
|
3487
3468
|
*/
|
|
3488
|
-
t(this, "partnerGroup", new
|
|
3469
|
+
t(this, "partnerGroup", new X());
|
|
3489
3470
|
/**
|
|
3490
3471
|
* Список контактных лиц контрагента.
|
|
3491
3472
|
*/
|
|
@@ -3519,22 +3500,22 @@ class ur extends $ {
|
|
|
3519
3500
|
*/
|
|
3520
3501
|
t(this, "updater");
|
|
3521
3502
|
if (e) {
|
|
3522
|
-
if (this.opf = new
|
|
3503
|
+
if (this.opf = new j(e.opf), this.salesDirection = new x(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new G(e.creator) : void 0, this.updatedAt = y(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new G(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new X(e.partnerGroup)), e.manager && (this.manager = new oe(e.manager)), e.contacts) {
|
|
3523
3504
|
const s = [];
|
|
3524
3505
|
e.contacts.forEach((i) => {
|
|
3525
|
-
s.push(new
|
|
3506
|
+
s.push(new F(i));
|
|
3526
3507
|
}), this.contacts = s;
|
|
3527
3508
|
}
|
|
3528
3509
|
if (e.bankAccounts) {
|
|
3529
3510
|
const s = [];
|
|
3530
3511
|
e.bankAccounts.forEach((i) => {
|
|
3531
|
-
s.push(new
|
|
3512
|
+
s.push(new Le(i));
|
|
3532
3513
|
}), this.bankAccounts = s;
|
|
3533
3514
|
}
|
|
3534
3515
|
}
|
|
3535
3516
|
}
|
|
3536
3517
|
}
|
|
3537
|
-
class
|
|
3518
|
+
class nt extends ur {
|
|
3538
3519
|
/**
|
|
3539
3520
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3540
3521
|
*
|
|
@@ -3602,7 +3583,7 @@ class gr extends hr {
|
|
|
3602
3583
|
e && (this.kpp = e.kpp ?? "");
|
|
3603
3584
|
}
|
|
3604
3585
|
}
|
|
3605
|
-
class
|
|
3586
|
+
class ot extends gr {
|
|
3606
3587
|
/**
|
|
3607
3588
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3608
3589
|
*
|
|
@@ -3613,7 +3594,7 @@ class st extends gr {
|
|
|
3613
3594
|
/**
|
|
3614
3595
|
* Страна регистрации юридического лица нерезидента.
|
|
3615
3596
|
*/
|
|
3616
|
-
t(this, "registrationCountry", new
|
|
3597
|
+
t(this, "registrationCountry", new Y());
|
|
3617
3598
|
/**
|
|
3618
3599
|
* Регистрационный номер юридического лица нерезидента.
|
|
3619
3600
|
*/
|
|
@@ -3622,10 +3603,10 @@ class st extends gr {
|
|
|
3622
3603
|
* Налоговый номер юридического лица нерезидента.
|
|
3623
3604
|
*/
|
|
3624
3605
|
t(this, "taxNumber", "");
|
|
3625
|
-
e && (this.registrationCountry = new
|
|
3606
|
+
e && (this.registrationCountry = new Y(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
3626
3607
|
}
|
|
3627
3608
|
}
|
|
3628
|
-
class
|
|
3609
|
+
class we {
|
|
3629
3610
|
/**
|
|
3630
3611
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
3631
3612
|
*
|
|
@@ -3633,18 +3614,18 @@ class me {
|
|
|
3633
3614
|
*/
|
|
3634
3615
|
static createInstance(r) {
|
|
3635
3616
|
switch (r.opf.slug) {
|
|
3636
|
-
case
|
|
3617
|
+
case d.Ic:
|
|
3637
3618
|
return new hr(r);
|
|
3638
|
-
case
|
|
3619
|
+
case d.UlR:
|
|
3639
3620
|
return new gr(r);
|
|
3640
|
-
case
|
|
3641
|
-
return new
|
|
3621
|
+
case d.UlNr:
|
|
3622
|
+
return new ot(r);
|
|
3642
3623
|
default:
|
|
3643
|
-
return new
|
|
3624
|
+
return new nt(r);
|
|
3644
3625
|
}
|
|
3645
3626
|
}
|
|
3646
3627
|
}
|
|
3647
|
-
class
|
|
3628
|
+
class be extends M {
|
|
3648
3629
|
/**
|
|
3649
3630
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
3650
3631
|
*
|
|
@@ -3659,7 +3640,7 @@ class $e extends B {
|
|
|
3659
3640
|
this.isPrimary = e.isPrimary;
|
|
3660
3641
|
}
|
|
3661
3642
|
}
|
|
3662
|
-
class
|
|
3643
|
+
class ct extends F {
|
|
3663
3644
|
/**
|
|
3664
3645
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3665
3646
|
*
|
|
@@ -3684,10 +3665,10 @@ class it extends H {
|
|
|
3684
3665
|
*/
|
|
3685
3666
|
addresses: []
|
|
3686
3667
|
});
|
|
3687
|
-
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new
|
|
3668
|
+
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new be(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new be(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new be(s))));
|
|
3688
3669
|
}
|
|
3689
3670
|
}
|
|
3690
|
-
class
|
|
3671
|
+
class Ce extends zr {
|
|
3691
3672
|
/**
|
|
3692
3673
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
3693
3674
|
*
|
|
@@ -3724,10 +3705,10 @@ class fe extends Hr {
|
|
|
3724
3705
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
3725
3706
|
*/
|
|
3726
3707
|
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
|
|
3708
|
+
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 F(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
|
|
3728
3709
|
}
|
|
3729
3710
|
}
|
|
3730
|
-
class
|
|
3711
|
+
class We extends ge {
|
|
3731
3712
|
/**
|
|
3732
3713
|
* Инициализирует экземпляр класса {@link Client}.
|
|
3733
3714
|
*
|
|
@@ -3781,10 +3762,10 @@ class Ve extends le {
|
|
|
3781
3762
|
* Дополнительные данные о клиенте.
|
|
3782
3763
|
*/
|
|
3783
3764
|
t(this, "extraData");
|
|
3784
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) =>
|
|
3765
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => we.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new X(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((p) => new Ce(p))) ?? [], this.channelPrimaryInterest = new cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new pr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new K(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Re(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
3785
3766
|
}
|
|
3786
3767
|
}
|
|
3787
|
-
class
|
|
3768
|
+
class zt {
|
|
3788
3769
|
/**
|
|
3789
3770
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
3790
3771
|
*
|
|
@@ -3880,7 +3861,7 @@ class Bt {
|
|
|
3880
3861
|
*/
|
|
3881
3862
|
t(this, "lastOrder");
|
|
3882
3863
|
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
|
|
3864
|
+
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 je(u)), this.region = new ce(r == null ? void 0 : r.region), this.country = new Y(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 Ae(u)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((u) => new x(u)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new j(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new K(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((u) => new X(u)), this.contact = new ke(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
3884
3865
|
createdAt: new O((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
|
|
3885
3866
|
creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
|
|
3886
3867
|
isApproved: (p = r == null ? void 0 : r.lastOrder) == null ? void 0 : p.isApproved
|
|
@@ -3906,7 +3887,7 @@ class Bt {
|
|
|
3906
3887
|
this.cities = [];
|
|
3907
3888
|
break;
|
|
3908
3889
|
case "region":
|
|
3909
|
-
this.region = new
|
|
3890
|
+
this.region = new ce();
|
|
3910
3891
|
break;
|
|
3911
3892
|
case "isActive":
|
|
3912
3893
|
this.isActive = !0;
|
|
@@ -3930,16 +3911,16 @@ class Bt {
|
|
|
3930
3911
|
this.salesDirections = [];
|
|
3931
3912
|
break;
|
|
3932
3913
|
case "contragentType":
|
|
3933
|
-
this.contragentType = new
|
|
3914
|
+
this.contragentType = new j();
|
|
3934
3915
|
break;
|
|
3935
3916
|
case "preferredDeliveryType":
|
|
3936
|
-
this.preferredDeliveryType = new
|
|
3917
|
+
this.preferredDeliveryType = new K();
|
|
3937
3918
|
break;
|
|
3938
3919
|
case "partnerGroups":
|
|
3939
3920
|
this.partnerGroups = [];
|
|
3940
3921
|
break;
|
|
3941
3922
|
case "contact":
|
|
3942
|
-
this.contact = new
|
|
3923
|
+
this.contact = new ke();
|
|
3943
3924
|
break;
|
|
3944
3925
|
}
|
|
3945
3926
|
return this;
|
|
@@ -3954,11 +3935,11 @@ class Bt {
|
|
|
3954
3935
|
return Object.keys(this).forEach((c) => {
|
|
3955
3936
|
const p = this[c];
|
|
3956
3937
|
// eslint-disable-next-line prettier/prettier
|
|
3957
|
-
|
|
3938
|
+
$(p) || y(p) && p.trim().length === 0 || Ne(p.isNewRec) && p.isNewRec() || (r[c] = p);
|
|
3958
3939
|
}), !((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
3940
|
}
|
|
3960
3941
|
}
|
|
3961
|
-
class mr extends
|
|
3942
|
+
class mr extends M {
|
|
3962
3943
|
/**
|
|
3963
3944
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
3964
3945
|
*
|
|
@@ -3978,10 +3959,10 @@ class mr extends B {
|
|
|
3978
3959
|
* Признак того, что заказ подтвержден в 1С.
|
|
3979
3960
|
*/
|
|
3980
3961
|
t(this, "isApproved1c");
|
|
3981
|
-
this.createdAt =
|
|
3962
|
+
this.createdAt = y(e == null ? void 0 : e.createdAt) ? C(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
3963
|
}
|
|
3983
3964
|
}
|
|
3984
|
-
class
|
|
3965
|
+
class lt extends T {
|
|
3985
3966
|
/**
|
|
3986
3967
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
3987
3968
|
*
|
|
@@ -4014,10 +3995,10 @@ class nt extends $ {
|
|
|
4014
3995
|
* Список менеджеров.
|
|
4015
3996
|
*/
|
|
4016
3997
|
t(this, "managers");
|
|
4017
|
-
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new
|
|
3998
|
+
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new F(o))), e.lastOrder && (this.lastOrder = new mr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new X(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new K(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new x(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new oe(o)));
|
|
4018
3999
|
}
|
|
4019
4000
|
}
|
|
4020
|
-
class
|
|
4001
|
+
class pt {
|
|
4021
4002
|
/**
|
|
4022
4003
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
4023
4004
|
*
|
|
@@ -4035,7 +4016,7 @@ class ot {
|
|
|
4035
4016
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4036
4017
|
}
|
|
4037
4018
|
}
|
|
4038
|
-
class
|
|
4019
|
+
class Wt extends pt {
|
|
4039
4020
|
/**
|
|
4040
4021
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4041
4022
|
*
|
|
@@ -4066,7 +4047,7 @@ class zt extends ot {
|
|
|
4066
4047
|
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
4048
|
}
|
|
4068
4049
|
}
|
|
4069
|
-
class
|
|
4050
|
+
class Vt {
|
|
4070
4051
|
/**
|
|
4071
4052
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
4072
4053
|
*
|
|
@@ -4084,7 +4065,7 @@ class jt {
|
|
|
4084
4065
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4085
4066
|
}
|
|
4086
4067
|
}
|
|
4087
|
-
class
|
|
4068
|
+
class Et extends De {
|
|
4088
4069
|
/**
|
|
4089
4070
|
* Возвращает данные об указанном клиенте.
|
|
4090
4071
|
*
|
|
@@ -4092,7 +4073,7 @@ class Wt extends Pe {
|
|
|
4092
4073
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
4093
4074
|
*/
|
|
4094
4075
|
getClient(r) {
|
|
4095
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
4076
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new We(e.data));
|
|
4096
4077
|
}
|
|
4097
4078
|
/**
|
|
4098
4079
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -4107,7 +4088,7 @@ class Wt extends Pe {
|
|
|
4107
4088
|
getClientsList(r, e, s, i) {
|
|
4108
4089
|
return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
|
|
4109
4090
|
const c = { ...o.data };
|
|
4110
|
-
return c.data = c.data.map((p) => new
|
|
4091
|
+
return c.data = c.data.map((p) => new ge(p)), c;
|
|
4111
4092
|
});
|
|
4112
4093
|
}
|
|
4113
4094
|
/**
|
|
@@ -4120,7 +4101,7 @@ class Wt extends Pe {
|
|
|
4120
4101
|
return this.getClientsList({
|
|
4121
4102
|
groupOp: "and",
|
|
4122
4103
|
groups: [],
|
|
4123
|
-
filters: [{ field: "phone", op:
|
|
4104
|
+
filters: [{ field: "phone", op: Fe.Contains, value: r }]
|
|
4124
4105
|
});
|
|
4125
4106
|
}
|
|
4126
4107
|
/**
|
|
@@ -4134,7 +4115,7 @@ class Wt extends Pe {
|
|
|
4134
4115
|
const s = r.map((i) => i.id);
|
|
4135
4116
|
return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
|
|
4136
4117
|
let o = [];
|
|
4137
|
-
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new
|
|
4118
|
+
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new lt(c))), o;
|
|
4138
4119
|
});
|
|
4139
4120
|
}
|
|
4140
4121
|
/**
|
|
@@ -4146,7 +4127,7 @@ class Wt extends Pe {
|
|
|
4146
4127
|
getAllClientContacts(r) {
|
|
4147
4128
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
4148
4129
|
let s = [];
|
|
4149
|
-
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new
|
|
4130
|
+
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new ct(i))), s;
|
|
4150
4131
|
});
|
|
4151
4132
|
}
|
|
4152
4133
|
/**
|
|
@@ -4176,7 +4157,7 @@ class Wt extends Pe {
|
|
|
4176
4157
|
is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
|
|
4177
4158
|
preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
|
|
4178
4159
|
},
|
|
4179
|
-
(i) => new
|
|
4160
|
+
(i) => new We(i.data),
|
|
4180
4161
|
e
|
|
4181
4162
|
);
|
|
4182
4163
|
}
|
|
@@ -4286,17 +4267,17 @@ class Wt extends Pe {
|
|
|
4286
4267
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
|
|
4287
4268
|
*/
|
|
4288
4269
|
createContragentClientData(r, e, s = {}) {
|
|
4289
|
-
var u,
|
|
4270
|
+
var u, m, v, S, I, b, _, N;
|
|
4290
4271
|
let i;
|
|
4291
4272
|
const o = e, c = e, p = e;
|
|
4292
4273
|
switch (e.opf.slug) {
|
|
4293
|
-
case
|
|
4274
|
+
case d.Ic:
|
|
4294
4275
|
i = {
|
|
4295
4276
|
opf: o.opf.slug,
|
|
4296
4277
|
name: o.name,
|
|
4297
4278
|
alternative_name: o.alternativeName,
|
|
4298
4279
|
partner_group_id: (u = o.partnerGroup) == null ? void 0 : u.id,
|
|
4299
|
-
manager_id: (
|
|
4280
|
+
manager_id: (m = o.manager) == null ? void 0 : m.id,
|
|
4300
4281
|
comment: o.comment,
|
|
4301
4282
|
inn: o.inn,
|
|
4302
4283
|
okpo: o.okpo,
|
|
@@ -4308,13 +4289,13 @@ class Wt extends Pe {
|
|
|
4308
4289
|
actual_address: o.actualAddress
|
|
4309
4290
|
};
|
|
4310
4291
|
break;
|
|
4311
|
-
case
|
|
4292
|
+
case d.UlR:
|
|
4312
4293
|
i = {
|
|
4313
4294
|
opf: c.opf.slug,
|
|
4314
4295
|
name: c.name,
|
|
4315
4296
|
alternative_name: c.alternativeName,
|
|
4316
|
-
partner_group_id: (
|
|
4317
|
-
manager_id: (
|
|
4297
|
+
partner_group_id: (v = c.partnerGroup) == null ? void 0 : v.id,
|
|
4298
|
+
manager_id: (S = c.manager) == null ? void 0 : S.id,
|
|
4318
4299
|
comment: c.comment,
|
|
4319
4300
|
inn: c.inn,
|
|
4320
4301
|
kpp: c.kpp,
|
|
@@ -4327,13 +4308,13 @@ class Wt extends Pe {
|
|
|
4327
4308
|
actual_address: c.actualAddress
|
|
4328
4309
|
};
|
|
4329
4310
|
break;
|
|
4330
|
-
case
|
|
4311
|
+
case d.UlNr:
|
|
4331
4312
|
i = {
|
|
4332
4313
|
opf: p.opf.slug,
|
|
4333
4314
|
name: p.name,
|
|
4334
4315
|
alternative_name: p.alternativeName,
|
|
4335
|
-
partner_group_id: (
|
|
4336
|
-
manager_id: (
|
|
4316
|
+
partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
|
|
4317
|
+
manager_id: (b = p.manager) == null ? void 0 : b.id,
|
|
4337
4318
|
comment: p.comment,
|
|
4338
4319
|
director_name: p.directorName,
|
|
4339
4320
|
director_position: p.directorPosition,
|
|
@@ -4351,7 +4332,7 @@ class Wt extends Pe {
|
|
|
4351
4332
|
opf: e.opf.slug,
|
|
4352
4333
|
name: e.name,
|
|
4353
4334
|
alternative_name: e.alternativeName,
|
|
4354
|
-
partner_group_id: (
|
|
4335
|
+
partner_group_id: (_ = e.partnerGroup) == null ? void 0 : _.id,
|
|
4355
4336
|
manager_id: (N = e.manager) == null ? void 0 : N.id,
|
|
4356
4337
|
comment: e.comment
|
|
4357
4338
|
};
|
|
@@ -4360,7 +4341,7 @@ class Wt extends Pe {
|
|
|
4360
4341
|
return this.post(
|
|
4361
4342
|
`/internal/clients/${r}/contragents`,
|
|
4362
4343
|
i,
|
|
4363
|
-
(U) =>
|
|
4344
|
+
(U) => we.createInstance(U.data),
|
|
4364
4345
|
s
|
|
4365
4346
|
);
|
|
4366
4347
|
}
|
|
@@ -4375,17 +4356,17 @@ class Wt extends Pe {
|
|
|
4375
4356
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
|
|
4376
4357
|
*/
|
|
4377
4358
|
updateContragentClientData(r, e, s = {}) {
|
|
4378
|
-
var u,
|
|
4359
|
+
var u, m, v, S, I, b, _, N;
|
|
4379
4360
|
let i;
|
|
4380
4361
|
const o = e, c = e, p = e;
|
|
4381
4362
|
switch (e.opf.slug) {
|
|
4382
|
-
case
|
|
4363
|
+
case d.Ic:
|
|
4383
4364
|
i = {
|
|
4384
4365
|
opf: o.opf.slug,
|
|
4385
4366
|
name: o.name,
|
|
4386
4367
|
alternative_name: o.alternativeName,
|
|
4387
4368
|
partner_group_id: (u = o.partnerGroup) == null ? void 0 : u.id,
|
|
4388
|
-
manager_id: (
|
|
4369
|
+
manager_id: (m = o.manager) == null ? void 0 : m.id,
|
|
4389
4370
|
comment: o.comment,
|
|
4390
4371
|
inn: o.inn,
|
|
4391
4372
|
okpo: o.okpo,
|
|
@@ -4397,13 +4378,13 @@ class Wt extends Pe {
|
|
|
4397
4378
|
actual_address: o.actualAddress
|
|
4398
4379
|
};
|
|
4399
4380
|
break;
|
|
4400
|
-
case
|
|
4381
|
+
case d.UlR:
|
|
4401
4382
|
i = {
|
|
4402
4383
|
opf: c.opf.slug,
|
|
4403
4384
|
name: c.name,
|
|
4404
4385
|
alternative_name: c.alternativeName,
|
|
4405
|
-
partner_group_id: (
|
|
4406
|
-
manager_id: (
|
|
4386
|
+
partner_group_id: (v = c.partnerGroup) == null ? void 0 : v.id,
|
|
4387
|
+
manager_id: (S = c.manager) == null ? void 0 : S.id,
|
|
4407
4388
|
comment: c.comment,
|
|
4408
4389
|
inn: c.inn,
|
|
4409
4390
|
kpp: c.kpp,
|
|
@@ -4416,13 +4397,13 @@ class Wt extends Pe {
|
|
|
4416
4397
|
actual_address: c.actualAddress
|
|
4417
4398
|
};
|
|
4418
4399
|
break;
|
|
4419
|
-
case
|
|
4400
|
+
case d.UlNr:
|
|
4420
4401
|
i = {
|
|
4421
4402
|
opf: p.opf.slug,
|
|
4422
4403
|
name: p.name,
|
|
4423
4404
|
alternative_name: p.alternativeName,
|
|
4424
|
-
partner_group_id: (
|
|
4425
|
-
manager_id: (
|
|
4405
|
+
partner_group_id: (I = p.partnerGroup) == null ? void 0 : I.id,
|
|
4406
|
+
manager_id: (b = p.manager) == null ? void 0 : b.id,
|
|
4426
4407
|
comment: p.comment,
|
|
4427
4408
|
director_name: p.directorName,
|
|
4428
4409
|
director_position: p.directorPosition,
|
|
@@ -4440,7 +4421,7 @@ class Wt extends Pe {
|
|
|
4440
4421
|
opf: e.opf.slug,
|
|
4441
4422
|
name: e.name,
|
|
4442
4423
|
alternative_name: e.alternativeName,
|
|
4443
|
-
partner_group_id: (
|
|
4424
|
+
partner_group_id: (_ = e.partnerGroup) == null ? void 0 : _.id,
|
|
4444
4425
|
manager_id: (N = e.manager) == null ? void 0 : N.id,
|
|
4445
4426
|
comment: e.comment
|
|
4446
4427
|
};
|
|
@@ -4449,7 +4430,7 @@ class Wt extends Pe {
|
|
|
4449
4430
|
return this.patch(
|
|
4450
4431
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
4451
4432
|
i,
|
|
4452
|
-
(U) =>
|
|
4433
|
+
(U) => we.createInstance(U.data),
|
|
4453
4434
|
s
|
|
4454
4435
|
);
|
|
4455
4436
|
}
|
|
@@ -4487,7 +4468,7 @@ class Wt extends Pe {
|
|
|
4487
4468
|
}), e.operatingHours && (i.operating_hours = {
|
|
4488
4469
|
from: e.operatingHours.from,
|
|
4489
4470
|
to: e.operatingHours.to
|
|
4490
|
-
}), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new
|
|
4471
|
+
}), this.post(`/internal/clients/${r}/delivery-addresses`, i, (p) => new Ce(p.data), s);
|
|
4491
4472
|
}
|
|
4492
4473
|
/**
|
|
4493
4474
|
* Обновляет данные об адресе доставки клиента.
|
|
@@ -4516,7 +4497,7 @@ class Wt extends Pe {
|
|
|
4516
4497
|
}), this.patch(
|
|
4517
4498
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
4518
4499
|
i,
|
|
4519
|
-
(p) => new
|
|
4500
|
+
(p) => new Ce(p.data),
|
|
4520
4501
|
s
|
|
4521
4502
|
);
|
|
4522
4503
|
}
|
|
@@ -4552,7 +4533,7 @@ class Wt extends Pe {
|
|
|
4552
4533
|
correspondent_account: s.correspondentAccount,
|
|
4553
4534
|
currency_id: s.currency.id
|
|
4554
4535
|
},
|
|
4555
|
-
(o) => new
|
|
4536
|
+
(o) => new Le(o.data),
|
|
4556
4537
|
i
|
|
4557
4538
|
);
|
|
4558
4539
|
}
|
|
@@ -4578,7 +4559,7 @@ class Wt extends Pe {
|
|
|
4578
4559
|
correspondent_account: s.correspondentAccount,
|
|
4579
4560
|
currency_id: s.currency.id
|
|
4580
4561
|
},
|
|
4581
|
-
(o) => new
|
|
4562
|
+
(o) => new Le(o.data),
|
|
4582
4563
|
i
|
|
4583
4564
|
);
|
|
4584
4565
|
}
|
|
@@ -4639,7 +4620,7 @@ class Wt extends Pe {
|
|
|
4639
4620
|
comment: e.comment,
|
|
4640
4621
|
not_disturb: e.notDisturb
|
|
4641
4622
|
},
|
|
4642
|
-
(i) => new
|
|
4623
|
+
(i) => new F(i.data),
|
|
4643
4624
|
s
|
|
4644
4625
|
);
|
|
4645
4626
|
}
|
|
@@ -4782,7 +4763,7 @@ class Wt extends Pe {
|
|
|
4782
4763
|
comment: e.comment,
|
|
4783
4764
|
...s
|
|
4784
4765
|
};
|
|
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
|
|
4766
|
+
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 F(u.data), i);
|
|
4786
4767
|
}
|
|
4787
4768
|
/**
|
|
4788
4769
|
* Устанавливает признак основного контактного лица.
|
|
@@ -4821,7 +4802,7 @@ const V = class V extends h {
|
|
|
4821
4802
|
* Время кэширования данных ответов на запросы (секунд).
|
|
4822
4803
|
*/
|
|
4823
4804
|
t(this, "responseDataCacheTimeout");
|
|
4824
|
-
this.responseDataCacheTimeout =
|
|
4805
|
+
this.responseDataCacheTimeout = D.getConfig().http.responseDataCacheTimeout;
|
|
4825
4806
|
}
|
|
4826
4807
|
/**
|
|
4827
4808
|
* Возвращает кэшированные данные.
|
|
@@ -4843,7 +4824,7 @@ const V = class V extends h {
|
|
|
4843
4824
|
*/
|
|
4844
4825
|
cacheResponse(e, s) {
|
|
4845
4826
|
V.responseDataCache.set(e, {
|
|
4846
|
-
validTo:
|
|
4827
|
+
validTo: _r(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
4847
4828
|
val: s
|
|
4848
4829
|
});
|
|
4849
4830
|
}
|
|
@@ -4858,10 +4839,10 @@ const V = class V extends h {
|
|
|
4858
4839
|
*/
|
|
4859
4840
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
4860
4841
|
getTypedDataArrayRequester(e, s, i = !1, o = {}) {
|
|
4861
|
-
const c = s + (
|
|
4842
|
+
const c = s + (ve(o) ? "" : ` >>> ${JSON.stringify(o)}`), p = i ? V.getCachedResponse(c) : void 0;
|
|
4862
4843
|
return p ? Promise.resolve(p) : this.get(s, o).then((u) => {
|
|
4863
|
-
const
|
|
4864
|
-
return i &&
|
|
4844
|
+
const m = u.map((v) => Ue.instanceInitializer(e, v));
|
|
4845
|
+
return i && m && this.cacheResponse(s, m), m;
|
|
4865
4846
|
});
|
|
4866
4847
|
}
|
|
4867
4848
|
};
|
|
@@ -4869,8 +4850,8 @@ const V = class V extends h {
|
|
|
4869
4850
|
* Кэш результатов запросов.
|
|
4870
4851
|
*/
|
|
4871
4852
|
t(V, "responseDataCache", /* @__PURE__ */ new Map());
|
|
4872
|
-
let
|
|
4873
|
-
class
|
|
4853
|
+
let pe = V;
|
|
4854
|
+
class Jt extends h {
|
|
4874
4855
|
/**
|
|
4875
4856
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
4876
4857
|
*
|
|
@@ -4884,7 +4865,7 @@ class Vt extends h {
|
|
|
4884
4865
|
});
|
|
4885
4866
|
}
|
|
4886
4867
|
}
|
|
4887
|
-
class
|
|
4868
|
+
class Kt extends h {
|
|
4888
4869
|
/**
|
|
4889
4870
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
4890
4871
|
*
|
|
@@ -4912,7 +4893,7 @@ class Et extends h {
|
|
|
4912
4893
|
const i = this.get(
|
|
4913
4894
|
`internal/catalog/categories/${r.id}/configurators/${(o = r.properties) == null ? void 0 : o.editor}/product`,
|
|
4914
4895
|
{ params: e },
|
|
4915
|
-
(c) => new
|
|
4896
|
+
(c) => new k(c.data)
|
|
4916
4897
|
);
|
|
4917
4898
|
return i.catch((c) => {
|
|
4918
4899
|
this.errorResponseHandler(c, s);
|
|
@@ -4955,18 +4936,18 @@ class Et extends h {
|
|
|
4955
4936
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
|
|
4956
4937
|
}
|
|
4957
4938
|
}
|
|
4958
|
-
class
|
|
4939
|
+
class Qt {
|
|
4959
4940
|
/**
|
|
4960
4941
|
* Возвращает диапазон дат по умолчанию.
|
|
4961
4942
|
*/
|
|
4962
4943
|
static defaultDateRanges() {
|
|
4963
|
-
const r =
|
|
4944
|
+
const r = Sr(/* @__PURE__ */ new Date(), 1);
|
|
4964
4945
|
return {
|
|
4965
4946
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
4966
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
4967
|
-
today: { label: "Сегодня", from: Ze(), to:
|
|
4968
|
-
yesterday: { label: "Вчера", from:
|
|
4969
|
-
tomorrow: { label: "Завтра", from:
|
|
4947
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: Or(r), to: Nr(r) },
|
|
4948
|
+
today: { label: "Сегодня", from: Ze(), to: xr() },
|
|
4949
|
+
yesterday: { label: "Вчера", from: kr(), to: Lr() },
|
|
4950
|
+
tomorrow: { label: "Завтра", from: dr(), to: Ir() }
|
|
4970
4951
|
};
|
|
4971
4952
|
}
|
|
4972
4953
|
}
|
|
@@ -5010,13 +4991,13 @@ const E = class E {
|
|
|
5010
4991
|
* Список единиц измерения линейной величины.
|
|
5011
4992
|
*/
|
|
5012
4993
|
t(E, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5013
|
-
let
|
|
5014
|
-
class
|
|
4994
|
+
let Ve = E;
|
|
4995
|
+
class Yt {
|
|
5015
4996
|
/**
|
|
5016
4997
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5017
4998
|
*/
|
|
5018
4999
|
static generateUndefinedManagerInstance() {
|
|
5019
|
-
return new
|
|
5000
|
+
return new Ae({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
|
|
5020
5001
|
}
|
|
5021
5002
|
/**
|
|
5022
5003
|
* Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
|
|
@@ -5027,15 +5008,15 @@ class Kt {
|
|
|
5027
5008
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5028
5009
|
}
|
|
5029
5010
|
}
|
|
5030
|
-
class
|
|
5011
|
+
class ut extends pe {
|
|
5031
5012
|
/**
|
|
5032
5013
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5033
5014
|
*/
|
|
5034
5015
|
async getManagers() {
|
|
5035
|
-
const r = "/internal/managers", e =
|
|
5016
|
+
const r = "/internal/managers", e = pe.getCachedResponse(r);
|
|
5036
5017
|
if (e)
|
|
5037
5018
|
return e;
|
|
5038
|
-
const i = (await this.get(r)).data.map((o) => Ue.instanceInitializer(
|
|
5019
|
+
const i = (await this.get(r)).data.map((o) => Ue.instanceInitializer(Ae, o));
|
|
5039
5020
|
return this.cacheResponse(r, i), i;
|
|
5040
5021
|
}
|
|
5041
5022
|
}
|
|
@@ -5046,7 +5027,7 @@ class fr extends mr {
|
|
|
5046
5027
|
* @param data Данные для первоначальной инициализации.
|
|
5047
5028
|
*/
|
|
5048
5029
|
constructor(e) {
|
|
5049
|
-
var s, i, o, c, p, u,
|
|
5030
|
+
var s, i, o, c, p, u, m, v;
|
|
5050
5031
|
super(e);
|
|
5051
5032
|
/**
|
|
5052
5033
|
* Краткие данные о клиенте.
|
|
@@ -5088,19 +5069,19 @@ class fr extends mr {
|
|
|
5088
5069
|
* Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
|
|
5089
5070
|
*/
|
|
5090
5071
|
t(this, "isNotInStock");
|
|
5091
|
-
this.client = new
|
|
5072
|
+
this.client = new ge(e == null ? void 0 : e.client), this.payment = {
|
|
5092
5073
|
type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
|
|
5093
5074
|
status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
|
|
5094
5075
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
5095
5076
|
}, this.delivery = {
|
|
5096
5077
|
type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
|
|
5097
|
-
date:
|
|
5098
|
-
address: (
|
|
5099
|
-
warehouse: (
|
|
5100
|
-
}, this.attachedUser = new
|
|
5078
|
+
date: y((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ? C(e.delivery.date) : ((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ?? /* @__PURE__ */ new Date(),
|
|
5079
|
+
address: (m = e == null ? void 0 : e.delivery) != null && m.address ? new Ce(e.delivery.address) : void 0,
|
|
5080
|
+
warehouse: (v = e == null ? void 0 : e.delivery) != null && v.warehouse ? new Re(e.delivery.warehouse) : void 0
|
|
5081
|
+
}, this.attachedUser = new G(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new x(e == null ? void 0 : e.salesDirection), this.pendingAt = y(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = y(e == null ? void 0 : e.processedAt) ? C(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
5082
|
}
|
|
5102
5083
|
}
|
|
5103
|
-
class
|
|
5084
|
+
class ht extends M {
|
|
5104
5085
|
/**
|
|
5105
5086
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5106
5087
|
*
|
|
@@ -5180,10 +5161,10 @@ class lt extends B {
|
|
|
5180
5161
|
* который соответствует указанной ширине. Количество не ограничено.
|
|
5181
5162
|
*/
|
|
5182
5163
|
t(this, "sawing");
|
|
5183
|
-
this.product = new
|
|
5164
|
+
this.product = new Q(e.product), this.quantity = e.quantity, this.currency = e.currency, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.cost = e.cost, this.costRub = e.costRub, this.marker = e.marker, this.height = e.height, this.length = e.length, this.width = e.width, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams, this.sawing = e.sawing;
|
|
5184
5165
|
}
|
|
5185
5166
|
}
|
|
5186
|
-
class
|
|
5167
|
+
class gt extends fr {
|
|
5187
5168
|
/**
|
|
5188
5169
|
* Инициализирует экземпляр класса {@link Order}.
|
|
5189
5170
|
*
|
|
@@ -5223,10 +5204,10 @@ class pt extends fr {
|
|
|
5223
5204
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
5224
5205
|
*/
|
|
5225
5206
|
t(this, "isAllowProcessingWithoutPayment");
|
|
5226
|
-
this.products = (e.products ?? []).map((s) => new
|
|
5207
|
+
this.products = (e.products ?? []).map((s) => new ht(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? we.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5227
5208
|
}
|
|
5228
5209
|
}
|
|
5229
|
-
class
|
|
5210
|
+
class Xt extends De {
|
|
5230
5211
|
/**
|
|
5231
5212
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5232
5213
|
*
|
|
@@ -5257,10 +5238,10 @@ class Qt extends Pe {
|
|
|
5257
5238
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
5258
5239
|
*/
|
|
5259
5240
|
getOrder(r) {
|
|
5260
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
5241
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new gt(e.data));
|
|
5261
5242
|
}
|
|
5262
5243
|
}
|
|
5263
|
-
class
|
|
5244
|
+
class _e {
|
|
5264
5245
|
/**
|
|
5265
5246
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
5266
5247
|
*
|
|
@@ -5287,10 +5268,10 @@ class Te {
|
|
|
5287
5268
|
* Источник клиентской цены.
|
|
5288
5269
|
*/
|
|
5289
5270
|
t(this, "source");
|
|
5290
|
-
this.client = new
|
|
5271
|
+
this.client = new ge(r == null ? void 0 : r.client), this.product = new k(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
5272
|
}
|
|
5292
5273
|
}
|
|
5293
|
-
const
|
|
5274
|
+
const Se = (n) => {
|
|
5294
5275
|
var r, e, s, i, o;
|
|
5295
5276
|
return n ? Ye(
|
|
5296
5277
|
{
|
|
@@ -5301,13 +5282,13 @@ const be = (n) => {
|
|
|
5301
5282
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
5302
5283
|
hideNotActive: n.hideNotActive
|
|
5303
5284
|
},
|
|
5304
|
-
(c) =>
|
|
5285
|
+
(c) => $(c) || (J(c) || Xe(c)) && ve(c)
|
|
5305
5286
|
) : {};
|
|
5306
|
-
},
|
|
5287
|
+
}, Ee = (n) => {
|
|
5307
5288
|
const r = {};
|
|
5308
5289
|
return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
|
|
5309
5290
|
};
|
|
5310
|
-
class
|
|
5291
|
+
class Zt extends h {
|
|
5311
5292
|
/**
|
|
5312
5293
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
5313
5294
|
*
|
|
@@ -5321,10 +5302,10 @@ class Yt extends h {
|
|
|
5321
5302
|
return this.get(
|
|
5322
5303
|
`/internal/price/products/${r}/analyze`,
|
|
5323
5304
|
{
|
|
5324
|
-
...
|
|
5325
|
-
filters:
|
|
5305
|
+
...Ee(e),
|
|
5306
|
+
filters: Se(s)
|
|
5326
5307
|
},
|
|
5327
|
-
(i) => i.data.map((o) => new
|
|
5308
|
+
(i) => i.data.map((o) => new _e(o))
|
|
5328
5309
|
);
|
|
5329
5310
|
}
|
|
5330
5311
|
/**
|
|
@@ -5340,10 +5321,10 @@ class Yt extends h {
|
|
|
5340
5321
|
return this.get(
|
|
5341
5322
|
`/internal/price/categories/${r}/analyze`,
|
|
5342
5323
|
{
|
|
5343
|
-
...
|
|
5344
|
-
filters:
|
|
5324
|
+
...Ee(e),
|
|
5325
|
+
filters: Se(s)
|
|
5345
5326
|
},
|
|
5346
|
-
(i) => i.data.map((o) => new
|
|
5327
|
+
(i) => i.data.map((o) => new _e(o))
|
|
5347
5328
|
);
|
|
5348
5329
|
}
|
|
5349
5330
|
/**
|
|
@@ -5362,13 +5343,13 @@ class Yt extends h {
|
|
|
5362
5343
|
`/internal/price/categories/${r}/analyze/square`,
|
|
5363
5344
|
{
|
|
5364
5345
|
...e,
|
|
5365
|
-
filters:
|
|
5346
|
+
filters: Se(s)
|
|
5366
5347
|
},
|
|
5367
|
-
(i) => i.data.map((o) => new
|
|
5348
|
+
(i) => i.data.map((o) => new _e(o))
|
|
5368
5349
|
);
|
|
5369
5350
|
}
|
|
5370
5351
|
}
|
|
5371
|
-
class
|
|
5352
|
+
class mt {
|
|
5372
5353
|
/**
|
|
5373
5354
|
* Инициализирует экземпляр класса {@link PriceHistoryItem}.
|
|
5374
5355
|
*
|
|
@@ -5415,10 +5396,10 @@ class ut {
|
|
|
5415
5396
|
* @inheritDoc
|
|
5416
5397
|
*/
|
|
5417
5398
|
t(this, "currency");
|
|
5418
|
-
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate =
|
|
5399
|
+
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = y(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ne(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 ye(r.currency) : void 0;
|
|
5419
5400
|
}
|
|
5420
5401
|
}
|
|
5421
|
-
class
|
|
5402
|
+
class ft extends ne {
|
|
5422
5403
|
/**
|
|
5423
5404
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
5424
5405
|
*
|
|
@@ -5430,18 +5411,18 @@ class ht extends Oe {
|
|
|
5430
5411
|
* @inheritDoc
|
|
5431
5412
|
*/
|
|
5432
5413
|
t(this, "history");
|
|
5433
|
-
this.history =
|
|
5414
|
+
this.history = ue(e.history, (s) => new mt(s));
|
|
5434
5415
|
}
|
|
5435
5416
|
}
|
|
5436
|
-
class
|
|
5417
|
+
class es extends h {
|
|
5437
5418
|
/**
|
|
5438
5419
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
5439
5420
|
*/
|
|
5440
5421
|
constructor() {
|
|
5441
|
-
super(), this.baseUrl = `${
|
|
5422
|
+
super(), this.baseUrl = `${D.getConfig().http.priceHistoryApiUrl}/api`;
|
|
5442
5423
|
}
|
|
5443
5424
|
/**
|
|
5444
|
-
* Возвращает данные об истории изменения
|
|
5425
|
+
* Возвращает данные об истории изменения цен.
|
|
5445
5426
|
*
|
|
5446
5427
|
* @param filters Фильтры для поиска истории изменения цен.
|
|
5447
5428
|
*
|
|
@@ -5449,19 +5430,89 @@ class Xt extends h {
|
|
|
5449
5430
|
*/
|
|
5450
5431
|
getProductPriceHistory(r) {
|
|
5451
5432
|
var i, o, c, p;
|
|
5452
|
-
const e =
|
|
5453
|
-
|
|
5433
|
+
const e = D.getConfig().dateFormats.api, s = Ye(
|
|
5434
|
+
xe(r, {
|
|
5454
5435
|
costDate: {
|
|
5455
|
-
from:
|
|
5456
|
-
to:
|
|
5436
|
+
from: Ie((i = r.costDate) == null ? void 0 : i.from) ? q(r.costDate.from, e) : (o = r.costDate) == null ? void 0 : o.from,
|
|
5437
|
+
to: Ie((c = r.costDate) == null ? void 0 : c.to) ? q(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
|
|
5457
5438
|
}
|
|
5458
5439
|
}),
|
|
5459
|
-
(u) =>
|
|
5440
|
+
(u) => $(u) || (J(u) || Xe(u)) && ve(u)
|
|
5460
5441
|
);
|
|
5461
|
-
return this.get("/internal/history", s, (u) =>
|
|
5442
|
+
return this.get("/internal/history", s, (u) => ue(u.data, (m) => new ft(m)));
|
|
5443
|
+
}
|
|
5444
|
+
}
|
|
5445
|
+
class Je {
|
|
5446
|
+
/**
|
|
5447
|
+
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
5448
|
+
*
|
|
5449
|
+
* @param data Данные для первоначальной инициализации.
|
|
5450
|
+
*/
|
|
5451
|
+
constructor(r) {
|
|
5452
|
+
/**
|
|
5453
|
+
* Список рекомендованных продуктов.
|
|
5454
|
+
*/
|
|
5455
|
+
t(this, "products", []);
|
|
5456
|
+
/**
|
|
5457
|
+
* Список рекомендованных категорий продуктов.
|
|
5458
|
+
*/
|
|
5459
|
+
t(this, "productCategories", []);
|
|
5460
|
+
r != null && r.products && (this.products = r.products.map((e) => new ne(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new ne(e)));
|
|
5461
|
+
}
|
|
5462
|
+
}
|
|
5463
|
+
class rs extends h {
|
|
5464
|
+
/**
|
|
5465
|
+
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
5466
|
+
*/
|
|
5467
|
+
constructor() {
|
|
5468
|
+
super(), this.baseUrl = `${D.getConfig().http.recommendationsApiUrl}/api`;
|
|
5469
|
+
}
|
|
5470
|
+
/**
|
|
5471
|
+
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
5472
|
+
*
|
|
5473
|
+
* @param productCategory Данные о категории продуктов, для которой необходимо получить рекомендации.
|
|
5474
|
+
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
5475
|
+
*/
|
|
5476
|
+
getProductCategoryRecommendations(r) {
|
|
5477
|
+
return this.get(`/internal/recommendations/categories/${r.id}`, {}, (e) => new Je(e.data));
|
|
5478
|
+
}
|
|
5479
|
+
/**
|
|
5480
|
+
* Возвращает данные о рекомендациях указанного продукта.
|
|
5481
|
+
*
|
|
5482
|
+
* @param product Данные о продукте, для которого необходимо получить рекомендации.
|
|
5483
|
+
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
5484
|
+
*/
|
|
5485
|
+
getProductRecommendations(r) {
|
|
5486
|
+
return this.get(`/internal/recommendations/products/${r.id}`, {}, (e) => new Je(e.data));
|
|
5487
|
+
}
|
|
5488
|
+
/**
|
|
5489
|
+
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
5490
|
+
*
|
|
5491
|
+
* @param productCategory Данные о категории для которой необходимо сохранить список рекомендуемых товаров.
|
|
5492
|
+
* @param recommendations Список рекомендованных продуктов и категорий.
|
|
5493
|
+
* @see /docs/api#/operations/api_internal_recommendations_product_category_save
|
|
5494
|
+
*/
|
|
5495
|
+
saveProductCategoryRecommendations(r, e) {
|
|
5496
|
+
return this.post(`/internal/recommendations/categories/${r.id}`, {
|
|
5497
|
+
product_categories: e.productCategories.map((s) => s.id),
|
|
5498
|
+
products: e.products.map((s) => s.id)
|
|
5499
|
+
});
|
|
5500
|
+
}
|
|
5501
|
+
/**
|
|
5502
|
+
* Выполняет сохранение данных о рекомендуемых продуктах.
|
|
5503
|
+
*
|
|
5504
|
+
* @param product Данные о продукте для которого необходимо сохранить список рекомендуемых товаров.
|
|
5505
|
+
* @param recommendations Список рекомендованных продуктов и категорий.
|
|
5506
|
+
* @see /docs/api#/operations/api_internal_recommendations_product_save
|
|
5507
|
+
*/
|
|
5508
|
+
saveProductRecommendations(r, e) {
|
|
5509
|
+
return this.post(`/internal/recommendations/products/${r.id}`, {
|
|
5510
|
+
product_categories: e.productCategories.map((s) => s.id),
|
|
5511
|
+
products: e.products.map((s) => s.id)
|
|
5512
|
+
});
|
|
5462
5513
|
}
|
|
5463
5514
|
}
|
|
5464
|
-
class
|
|
5515
|
+
class a extends pe {
|
|
5465
5516
|
/**
|
|
5466
5517
|
* Возвращает {@link Promise} для получения данных указанного справочника.
|
|
5467
5518
|
*
|
|
@@ -5470,7 +5521,7 @@ class A extends ne {
|
|
|
5470
5521
|
* и использовать в случае аналогичных запросов.
|
|
5471
5522
|
*/
|
|
5472
5523
|
getReference(r, e = !1) {
|
|
5473
|
-
return this.getTypedDataArrayRequester(
|
|
5524
|
+
return this.getTypedDataArrayRequester(Zr, `/internal/references/${r}`, e);
|
|
5474
5525
|
}
|
|
5475
5526
|
/**
|
|
5476
5527
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
@@ -5483,44 +5534,44 @@ class A extends ne {
|
|
|
5483
5534
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
5484
5535
|
*/
|
|
5485
5536
|
getContactPositions() {
|
|
5486
|
-
return this.getTypedDataArrayRequester(
|
|
5537
|
+
return this.getTypedDataArrayRequester(et, "/internal/references/contact-position", !0);
|
|
5487
5538
|
}
|
|
5488
5539
|
/**
|
|
5489
5540
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
5490
5541
|
*/
|
|
5491
5542
|
getCurrency() {
|
|
5492
|
-
return this.getTypedDataArrayRequester(
|
|
5543
|
+
return this.getTypedDataArrayRequester(ye, "/public/references/currency", !0);
|
|
5493
5544
|
}
|
|
5494
5545
|
/**
|
|
5495
5546
|
* Возвращает {@link Promise} для получения справочника данных
|
|
5496
5547
|
* групп партнеров (направлений деятельности).
|
|
5497
5548
|
*/
|
|
5498
5549
|
getPartnerGroup() {
|
|
5499
|
-
return this.getTypedDataArrayRequester(
|
|
5550
|
+
return this.getTypedDataArrayRequester(X, "/internal/references/partner-group", !0);
|
|
5500
5551
|
}
|
|
5501
5552
|
/**
|
|
5502
5553
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
5503
5554
|
*/
|
|
5504
5555
|
getOpf() {
|
|
5505
|
-
return this.getTypedDataArrayRequester(
|
|
5556
|
+
return this.getTypedDataArrayRequester(j, "/public/references/opf", !0);
|
|
5506
5557
|
}
|
|
5507
5558
|
/**
|
|
5508
5559
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
5509
5560
|
*/
|
|
5510
5561
|
getOrderPaymentStatuses() {
|
|
5511
|
-
return this.getTypedDataArrayRequester(
|
|
5562
|
+
return this.getTypedDataArrayRequester(rt, "/public/references/order-payment-status", !0);
|
|
5512
5563
|
}
|
|
5513
5564
|
/**
|
|
5514
5565
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
5515
5566
|
*/
|
|
5516
5567
|
getOrderStatuses() {
|
|
5517
|
-
return this.getTypedDataArrayRequester(
|
|
5568
|
+
return this.getTypedDataArrayRequester(tt, "/public/references/order-status", !0);
|
|
5518
5569
|
}
|
|
5519
5570
|
/**
|
|
5520
5571
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
5521
5572
|
*/
|
|
5522
5573
|
getPaymentTypes() {
|
|
5523
|
-
return this.getTypedDataArrayRequester(
|
|
5574
|
+
return this.getTypedDataArrayRequester(st, "/public/references/payment-type", !0);
|
|
5524
5575
|
}
|
|
5525
5576
|
/**
|
|
5526
5577
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
@@ -5532,7 +5583,7 @@ class A extends ne {
|
|
|
5532
5583
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
5533
5584
|
*/
|
|
5534
5585
|
getSalesDirections() {
|
|
5535
|
-
return this.getTypedDataArrayRequester(
|
|
5586
|
+
return this.getTypedDataArrayRequester(x, "/public/references/sales-direction", !0);
|
|
5536
5587
|
}
|
|
5537
5588
|
/**
|
|
5538
5589
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
@@ -5546,7 +5597,7 @@ class A extends ne {
|
|
|
5546
5597
|
* @param term Терм поиска.
|
|
5547
5598
|
*/
|
|
5548
5599
|
searchCity(r) {
|
|
5549
|
-
return this.getTypedDataArrayRequester(
|
|
5600
|
+
return this.getTypedDataArrayRequester(je, `/internal/references/city-with-region-and-country/search?term=${r}`);
|
|
5550
5601
|
}
|
|
5551
5602
|
/**
|
|
5552
5603
|
* Выполняет поиск данных о регионах по терму в названии.
|
|
@@ -5554,7 +5605,7 @@ class A extends ne {
|
|
|
5554
5605
|
* @param term Терм поиска.
|
|
5555
5606
|
*/
|
|
5556
5607
|
searchRegion(r) {
|
|
5557
|
-
return this.getTypedDataArrayRequester(
|
|
5608
|
+
return this.getTypedDataArrayRequester(ce, `/internal/references/region-with-country/search?term=${r}`);
|
|
5558
5609
|
}
|
|
5559
5610
|
/**
|
|
5560
5611
|
* Выполняет поиск данных о странах по терму в названии.
|
|
@@ -5562,19 +5613,19 @@ class A extends ne {
|
|
|
5562
5613
|
* @param term Терм поиска.
|
|
5563
5614
|
*/
|
|
5564
5615
|
searchCountry(r) {
|
|
5565
|
-
return this.getTypedDataArrayRequester(
|
|
5616
|
+
return this.getTypedDataArrayRequester(Y, `/internal/references/country/search?term=${r}`);
|
|
5566
5617
|
}
|
|
5567
5618
|
/**
|
|
5568
5619
|
* Возвращает {@link Promise} для получения справочника типов доставки.
|
|
5569
5620
|
*/
|
|
5570
5621
|
getDeliveryTypes() {
|
|
5571
|
-
return this.getTypedDataArrayRequester(
|
|
5622
|
+
return this.getTypedDataArrayRequester(K, "/internal/references/delivery-type", !0);
|
|
5572
5623
|
}
|
|
5573
5624
|
/**
|
|
5574
5625
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
5575
5626
|
*/
|
|
5576
5627
|
getWarehouses() {
|
|
5577
|
-
return this.getTypedDataArrayRequester(
|
|
5628
|
+
return this.getTypedDataArrayRequester(Re, "/public/references/warehouse", !0);
|
|
5578
5629
|
}
|
|
5579
5630
|
/**
|
|
5580
5631
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
@@ -5586,17 +5637,17 @@ class A extends ne {
|
|
|
5586
5637
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
5587
5638
|
*/
|
|
5588
5639
|
getPriceCoefficients() {
|
|
5589
|
-
return this.getTypedDataArrayRequester(
|
|
5640
|
+
return this.getTypedDataArrayRequester(Pe, "/internal/references/price-coefficient", !0);
|
|
5590
5641
|
}
|
|
5591
5642
|
/**
|
|
5592
5643
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
5593
5644
|
*/
|
|
5594
5645
|
getProductFileType() {
|
|
5595
|
-
return this.getTypedDataArrayRequester(
|
|
5646
|
+
return this.getTypedDataArrayRequester(it, "/public/references/product-file-type", !0);
|
|
5596
5647
|
}
|
|
5597
5648
|
}
|
|
5598
|
-
const
|
|
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),
|
|
5649
|
+
const A = Z("__references_private", () => {
|
|
5650
|
+
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), m = f(void 0), v = f(void 0), S = f(void 0), I = f(void 0), b = f(void 0), _ = f(void 0), N = f(void 0), U = f(void 0), l = f(void 0);
|
|
5600
5651
|
return {
|
|
5601
5652
|
/**
|
|
5602
5653
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5637,27 +5688,27 @@ const R = X("__references_private", () => {
|
|
|
5637
5688
|
/**
|
|
5638
5689
|
* Справочник типов оплаты заказов.
|
|
5639
5690
|
*/
|
|
5640
|
-
paymentTypeReference:
|
|
5691
|
+
paymentTypeReference: m,
|
|
5641
5692
|
/**
|
|
5642
5693
|
* Справочник групп партнеров.
|
|
5643
5694
|
*/
|
|
5644
|
-
partnerGroupReference:
|
|
5695
|
+
partnerGroupReference: v,
|
|
5645
5696
|
/**
|
|
5646
5697
|
* Справочник типов файлов продукктов/категорий.
|
|
5647
5698
|
*/
|
|
5648
|
-
productFileTypeReference:
|
|
5699
|
+
productFileTypeReference: S,
|
|
5649
5700
|
/**
|
|
5650
5701
|
* Справочник типов ресурсов.
|
|
5651
5702
|
*/
|
|
5652
|
-
resourceTypesReference:
|
|
5703
|
+
resourceTypesReference: I,
|
|
5653
5704
|
/**
|
|
5654
5705
|
* Справочник направлений продаж.
|
|
5655
5706
|
*/
|
|
5656
|
-
salesDirectionsReference:
|
|
5707
|
+
salesDirectionsReference: b,
|
|
5657
5708
|
/**
|
|
5658
5709
|
* Справочник источников первичного интереса.
|
|
5659
5710
|
*/
|
|
5660
|
-
sourcePrimaryInterestReference:
|
|
5711
|
+
sourcePrimaryInterestReference: _,
|
|
5661
5712
|
/**
|
|
5662
5713
|
* Справочник складов.
|
|
5663
5714
|
*/
|
|
@@ -5671,92 +5722,92 @@ const R = X("__references_private", () => {
|
|
|
5671
5722
|
*/
|
|
5672
5723
|
priceCoefficientsReference: l
|
|
5673
5724
|
};
|
|
5674
|
-
}),
|
|
5675
|
-
const n =
|
|
5676
|
-
const l =
|
|
5677
|
-
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(
|
|
5725
|
+
}), ts = Z("references", () => {
|
|
5726
|
+
const n = R(() => {
|
|
5727
|
+
const l = A();
|
|
5728
|
+
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(a).getChannelPrimaryInterest().then((g) => {
|
|
5678
5729
|
l.channelPrimaryInterestReference = g;
|
|
5679
|
-
}).catch(
|
|
5680
|
-
}), r =
|
|
5681
|
-
const l =
|
|
5682
|
-
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(
|
|
5730
|
+
}).catch(w)), l.channelPrimaryInterestReference;
|
|
5731
|
+
}), r = R(() => {
|
|
5732
|
+
const l = A();
|
|
5733
|
+
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(a).getContactPositions().then((g) => {
|
|
5683
5734
|
l.contactPositionsReference = g;
|
|
5684
|
-
}).catch(
|
|
5685
|
-
}), e =
|
|
5686
|
-
const l =
|
|
5687
|
-
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(
|
|
5735
|
+
}).catch(w)), l.contactPositionsReference;
|
|
5736
|
+
}), e = R(() => {
|
|
5737
|
+
const l = A();
|
|
5738
|
+
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(a).getCurrency().then((g) => {
|
|
5688
5739
|
l.currencyReference = g;
|
|
5689
|
-
}).catch(
|
|
5690
|
-
}), s =
|
|
5691
|
-
const l =
|
|
5692
|
-
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(
|
|
5740
|
+
}).catch(w)), l.currencyReference;
|
|
5741
|
+
}), s = R(() => {
|
|
5742
|
+
const l = A();
|
|
5743
|
+
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(a).getOpf().then((g) => {
|
|
5693
5744
|
l.opfReference = g;
|
|
5694
|
-
}).catch(
|
|
5695
|
-
}), i =
|
|
5696
|
-
const l =
|
|
5697
|
-
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(
|
|
5745
|
+
}).catch(w)), l.opfReference;
|
|
5746
|
+
}), i = R(() => {
|
|
5747
|
+
const l = A();
|
|
5748
|
+
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(a).getOrderPaymentStatuses().then((g) => {
|
|
5698
5749
|
l.orderPaymentStatusReference = g;
|
|
5699
|
-
}).catch(
|
|
5700
|
-
}), o =
|
|
5701
|
-
const l =
|
|
5702
|
-
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(
|
|
5750
|
+
}).catch(w)), l.orderPaymentStatusReference;
|
|
5751
|
+
}), o = R(() => {
|
|
5752
|
+
const l = A();
|
|
5753
|
+
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(a).getOrderStatuses().then((g) => {
|
|
5703
5754
|
l.orderStatusReference = g;
|
|
5704
|
-
}).catch(
|
|
5705
|
-
}), c =
|
|
5706
|
-
const l =
|
|
5707
|
-
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(
|
|
5755
|
+
}).catch(w)), l.orderStatusReference;
|
|
5756
|
+
}), c = R(() => {
|
|
5757
|
+
const l = A();
|
|
5758
|
+
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(a).getPaymentTypes().then((g) => {
|
|
5708
5759
|
l.paymentTypeReference = g;
|
|
5709
|
-
}).catch(
|
|
5710
|
-
}), p =
|
|
5711
|
-
const l =
|
|
5712
|
-
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(
|
|
5760
|
+
}).catch(w)), l.paymentTypeReference;
|
|
5761
|
+
}), p = R(() => {
|
|
5762
|
+
const l = A();
|
|
5763
|
+
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(a).getPartnerGroup().then((g) => {
|
|
5713
5764
|
l.partnerGroupReference = g;
|
|
5714
|
-
}).catch(
|
|
5715
|
-
}), u =
|
|
5716
|
-
const l =
|
|
5717
|
-
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(
|
|
5765
|
+
}).catch(w)), l.partnerGroupReference;
|
|
5766
|
+
}), u = R(() => {
|
|
5767
|
+
const l = A();
|
|
5768
|
+
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(a).getProductFileType().then((g) => {
|
|
5718
5769
|
l.productFileTypeReference = g;
|
|
5719
|
-
}).catch(
|
|
5720
|
-
}),
|
|
5721
|
-
const l =
|
|
5722
|
-
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(
|
|
5770
|
+
}).catch(w)), l.productFileTypeReference;
|
|
5771
|
+
}), m = R(() => {
|
|
5772
|
+
const l = A();
|
|
5773
|
+
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(a).getResourceTypes().then((g) => {
|
|
5723
5774
|
l.resourceTypesReference = g;
|
|
5724
|
-
}).catch(
|
|
5725
|
-
}),
|
|
5726
|
-
const l =
|
|
5727
|
-
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(
|
|
5775
|
+
}).catch(w)), l.resourceTypesReference;
|
|
5776
|
+
}), v = R(() => {
|
|
5777
|
+
const l = A();
|
|
5778
|
+
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(a).getSalesDirections().then((g) => {
|
|
5728
5779
|
l.salesDirectionsReference = g;
|
|
5729
|
-
}).catch(
|
|
5730
|
-
}),
|
|
5731
|
-
const l =
|
|
5732
|
-
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(
|
|
5780
|
+
}).catch(w)), l.salesDirectionsReference;
|
|
5781
|
+
}), S = R(() => {
|
|
5782
|
+
const l = A();
|
|
5783
|
+
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(a).getSourcePrimaryInterest().then((g) => {
|
|
5733
5784
|
l.sourcePrimaryInterestReference = g;
|
|
5734
|
-
}).catch(
|
|
5735
|
-
}),
|
|
5736
|
-
const l =
|
|
5737
|
-
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(
|
|
5785
|
+
}).catch(w)), l.sourcePrimaryInterestReference;
|
|
5786
|
+
}), I = R(() => {
|
|
5787
|
+
const l = A();
|
|
5788
|
+
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(a).getDeliveryTypes().then((g) => {
|
|
5738
5789
|
l.deliveryTypeReference = g;
|
|
5739
|
-
}).catch(
|
|
5740
|
-
}),
|
|
5741
|
-
const l =
|
|
5742
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(
|
|
5790
|
+
}).catch(w)), l.deliveryTypeReference;
|
|
5791
|
+
}), b = R(() => {
|
|
5792
|
+
const l = A();
|
|
5793
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(ut).getManagers().then((g) => {
|
|
5743
5794
|
l.managersList = g;
|
|
5744
|
-
}).catch(
|
|
5745
|
-
}),
|
|
5746
|
-
const l =
|
|
5747
|
-
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(
|
|
5795
|
+
}).catch(w)), l.managersList;
|
|
5796
|
+
}), _ = R(() => {
|
|
5797
|
+
const l = A();
|
|
5798
|
+
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(a).getWarehouses().then((g) => {
|
|
5748
5799
|
l.warehousesReference = g;
|
|
5749
|
-
}).catch(
|
|
5750
|
-
}), N =
|
|
5751
|
-
const l =
|
|
5752
|
-
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(
|
|
5800
|
+
}).catch(w)), l.warehousesReference;
|
|
5801
|
+
}), N = R(() => {
|
|
5802
|
+
const l = A();
|
|
5803
|
+
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(a).getPropertyTypes().then((g) => {
|
|
5753
5804
|
l.propertyTypesReference = g;
|
|
5754
|
-
}).catch(
|
|
5755
|
-
}), U =
|
|
5756
|
-
const l =
|
|
5757
|
-
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(
|
|
5805
|
+
}).catch(w)), l.propertyTypesReference;
|
|
5806
|
+
}), U = R(() => {
|
|
5807
|
+
const l = A();
|
|
5808
|
+
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(a).getPriceCoefficients().then((g) => {
|
|
5758
5809
|
l.priceCoefficientsReference = g;
|
|
5759
|
-
}).catch(
|
|
5810
|
+
}).catch(w)), l.priceCoefficientsReference;
|
|
5760
5811
|
});
|
|
5761
5812
|
return {
|
|
5762
5813
|
/**
|
|
@@ -5798,27 +5849,27 @@ const R = X("__references_private", () => {
|
|
|
5798
5849
|
/**
|
|
5799
5850
|
* Справочник типов ресурсов.
|
|
5800
5851
|
*/
|
|
5801
|
-
resourceTypesReference:
|
|
5852
|
+
resourceTypesReference: m,
|
|
5802
5853
|
/**
|
|
5803
5854
|
* Справочник направлений продаж.
|
|
5804
5855
|
*/
|
|
5805
|
-
salesDirectionsReference:
|
|
5856
|
+
salesDirectionsReference: v,
|
|
5806
5857
|
/**
|
|
5807
5858
|
* Справочник каналов первичного интереса.
|
|
5808
5859
|
*/
|
|
5809
|
-
sourcePrimaryInterestsReference:
|
|
5860
|
+
sourcePrimaryInterestsReference: S,
|
|
5810
5861
|
/**
|
|
5811
5862
|
* Справочник типов доставки.
|
|
5812
5863
|
*/
|
|
5813
|
-
deliveryTypeReference:
|
|
5864
|
+
deliveryTypeReference: I,
|
|
5814
5865
|
/**
|
|
5815
5866
|
* Список менеджеров.
|
|
5816
5867
|
*/
|
|
5817
|
-
managersList:
|
|
5868
|
+
managersList: b,
|
|
5818
5869
|
/**
|
|
5819
5870
|
* Справочник складов.
|
|
5820
5871
|
*/
|
|
5821
|
-
warehousesReference:
|
|
5872
|
+
warehousesReference: _,
|
|
5822
5873
|
/**
|
|
5823
5874
|
* Справочник типов свойств.
|
|
5824
5875
|
*/
|
|
@@ -5829,7 +5880,7 @@ const R = X("__references_private", () => {
|
|
|
5829
5880
|
priceCoefficientsReference: U
|
|
5830
5881
|
};
|
|
5831
5882
|
});
|
|
5832
|
-
class
|
|
5883
|
+
class yt {
|
|
5833
5884
|
/**
|
|
5834
5885
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
5835
5886
|
*
|
|
@@ -5883,10 +5934,10 @@ class Ke {
|
|
|
5883
5934
|
*/
|
|
5884
5935
|
t(this, "meta");
|
|
5885
5936
|
var e;
|
|
5886
|
-
this.resourceType = new lr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new
|
|
5937
|
+
this.resourceType = new lr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new yt(s))) ?? [];
|
|
5887
5938
|
}
|
|
5888
5939
|
}
|
|
5889
|
-
class
|
|
5940
|
+
class ss extends h {
|
|
5890
5941
|
/**
|
|
5891
5942
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
5892
5943
|
*
|
|
@@ -5917,7 +5968,7 @@ class es extends h {
|
|
|
5917
5968
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
5918
5969
|
}
|
|
5919
5970
|
}
|
|
5920
|
-
class
|
|
5971
|
+
class is extends h {
|
|
5921
5972
|
/**
|
|
5922
5973
|
* Возвращает подсказки по адресам.
|
|
5923
5974
|
*
|
|
@@ -5964,8 +6015,8 @@ class rs extends h {
|
|
|
5964
6015
|
});
|
|
5965
6016
|
}
|
|
5966
6017
|
}
|
|
5967
|
-
var
|
|
5968
|
-
class
|
|
6018
|
+
var wt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(wt || {});
|
|
6019
|
+
class Ct extends nr {
|
|
5969
6020
|
/**
|
|
5970
6021
|
* Инициализирует экземпляр класса {@link User}.
|
|
5971
6022
|
*
|
|
@@ -5988,12 +6039,12 @@ class ft extends nr {
|
|
|
5988
6039
|
this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo;
|
|
5989
6040
|
}
|
|
5990
6041
|
}
|
|
5991
|
-
class
|
|
6042
|
+
class ns extends h {
|
|
5992
6043
|
/**
|
|
5993
6044
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
5994
6045
|
*/
|
|
5995
6046
|
constructor() {
|
|
5996
|
-
super(), this.baseUrl = `${
|
|
6047
|
+
super(), this.baseUrl = `${D.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
|
|
5997
6048
|
}
|
|
5998
6049
|
/**
|
|
5999
6050
|
* Функция для получения обновленных токенов доступа.
|
|
@@ -6004,16 +6055,16 @@ class ts extends h {
|
|
|
6004
6055
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
6005
6056
|
}
|
|
6006
6057
|
}
|
|
6007
|
-
class
|
|
6058
|
+
class vt extends h {
|
|
6008
6059
|
/**
|
|
6009
6060
|
* Возвращает данные о текущем пользователе.
|
|
6010
6061
|
*/
|
|
6011
6062
|
// eslint-disable-next-line class-methods-use-this
|
|
6012
6063
|
getCurrentUser() {
|
|
6013
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
6064
|
+
return this.get("/internal/users/info", {}, (r) => new Ct(r.data));
|
|
6014
6065
|
}
|
|
6015
6066
|
}
|
|
6016
|
-
const
|
|
6067
|
+
const Pt = Z("__user_state_private", () => {
|
|
6017
6068
|
const n = f({}), r = f(void 0);
|
|
6018
6069
|
return {
|
|
6019
6070
|
/**
|
|
@@ -6025,20 +6076,20 @@ const Ct = X("__user_state_private", () => {
|
|
|
6025
6076
|
*/
|
|
6026
6077
|
currentUser: r
|
|
6027
6078
|
};
|
|
6028
|
-
}),
|
|
6079
|
+
}), os = Z("user_state", () => ({
|
|
6029
6080
|
/**
|
|
6030
6081
|
* Данные о текущем пользователе.
|
|
6031
6082
|
*/
|
|
6032
|
-
currentUser:
|
|
6033
|
-
const r =
|
|
6034
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(
|
|
6083
|
+
currentUser: R(() => {
|
|
6084
|
+
const r = Pt();
|
|
6085
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(vt).getCurrentUser().then((e) => {
|
|
6035
6086
|
r.currentUser = e;
|
|
6036
|
-
}).catch(
|
|
6087
|
+
}).catch(w).finally(() => {
|
|
6037
6088
|
r.dataLoaderList.currentUser = !1;
|
|
6038
6089
|
})), r.currentUser;
|
|
6039
6090
|
})
|
|
6040
6091
|
}));
|
|
6041
|
-
class
|
|
6092
|
+
class cs {
|
|
6042
6093
|
/**
|
|
6043
6094
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
6044
6095
|
*
|
|
@@ -6062,147 +6113,147 @@ class is {
|
|
|
6062
6113
|
}
|
|
6063
6114
|
}
|
|
6064
6115
|
export {
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6116
|
+
Zr as AnyReference,
|
|
6117
|
+
kt as AppBaseConfig,
|
|
6118
|
+
D as AppConfigProvider,
|
|
6119
|
+
Le as BankAccount,
|
|
6120
|
+
De as BasePaginationProvider,
|
|
6121
|
+
Hr as CalculationTypeEnum,
|
|
6122
|
+
me as Cart,
|
|
6123
|
+
Mr as CartItem,
|
|
6124
|
+
Fr as CartItemBase,
|
|
6125
|
+
It as CartProvider,
|
|
6126
|
+
xt as CatalogProvider,
|
|
6076
6127
|
er as CatalogableItem,
|
|
6077
|
-
|
|
6078
|
-
|
|
6128
|
+
B as Category,
|
|
6129
|
+
He as CategoryPricingRule,
|
|
6079
6130
|
cr as ChannelPrimaryInterest,
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6131
|
+
Bt as City,
|
|
6132
|
+
je as CityWithRegionAndCountry,
|
|
6133
|
+
We as Client,
|
|
6134
|
+
lt as ClientAdditionalData,
|
|
6135
|
+
fe as ClientCategory,
|
|
6136
|
+
Et as ClientDataProvider,
|
|
6137
|
+
Nt as ClientPriceProvider,
|
|
6138
|
+
Ot as ClientPriceTemplateProvider,
|
|
6139
|
+
Q as ClientProduct,
|
|
6140
|
+
Gt as ClientProductCategoryDataProvider,
|
|
6141
|
+
jt as ClientProductDataProvider,
|
|
6142
|
+
ge as ClientShortInfo,
|
|
6143
|
+
Xr as ClientsAdditionalDataRequestTypeEnum,
|
|
6144
|
+
zt as ClientsListFilters,
|
|
6145
|
+
ne as CodedIdentity,
|
|
6146
|
+
Kt as ConfiguratorProvider,
|
|
6147
|
+
ke as Contact,
|
|
6148
|
+
Vr as ContactLinks,
|
|
6149
|
+
F as ContactPerson,
|
|
6150
|
+
ct as ContactPersonRelated,
|
|
6151
|
+
et as ContactPosition,
|
|
6152
|
+
be as ContactRelation,
|
|
6102
6153
|
ur as ContragentBase,
|
|
6103
|
-
|
|
6154
|
+
we as ContragentFactory,
|
|
6104
6155
|
hr as ContragentIc,
|
|
6105
|
-
|
|
6106
|
-
|
|
6156
|
+
nt as ContragentPerson,
|
|
6157
|
+
ot as ContragentUlNr,
|
|
6107
6158
|
gr as ContragentUlR,
|
|
6108
6159
|
Ge as CostSourceEnum,
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6160
|
+
Y as Country,
|
|
6161
|
+
ye as Currency,
|
|
6162
|
+
is as DataSuggestionProvider,
|
|
6163
|
+
Wt as DataTablePagination,
|
|
6164
|
+
pt as DataTablePaginationRequestParams,
|
|
6165
|
+
Vt as DataTableSortRequestParams,
|
|
6166
|
+
Qt as DateTimeProvider,
|
|
6167
|
+
zr as DeletableNamedIdentity,
|
|
6168
|
+
Ce as DeliveryAddress,
|
|
6169
|
+
K as DeliveryType,
|
|
6170
|
+
St as DetailedJwtPayload,
|
|
6171
|
+
Jr as DeviceTypeResolutionConfig,
|
|
6172
|
+
Wr as DiscountShortInfo,
|
|
6173
|
+
cs as FieldValidationResultData,
|
|
6174
|
+
le as FilterGroup,
|
|
6175
|
+
Be as FilterItem,
|
|
6176
|
+
Fe as FilterOpEnum,
|
|
6126
6177
|
tr as GeoCoordinates,
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6178
|
+
Gr as HiddenCatalogableItem,
|
|
6179
|
+
pe as HttpCachedRequester,
|
|
6180
|
+
Kr as HttpParamsConfig,
|
|
6130
6181
|
h as HttpRequester,
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6182
|
+
M as Identity,
|
|
6183
|
+
jr as Image,
|
|
6184
|
+
ie as JwtPayload,
|
|
6185
|
+
Ae as Manager,
|
|
6186
|
+
oe as ManagerCommon,
|
|
6187
|
+
Yt as ManagerDataFactory,
|
|
6188
|
+
ut as ManagerDataProvider,
|
|
6189
|
+
yt as MetaTagItem,
|
|
6190
|
+
T as NamedIdentity,
|
|
6191
|
+
j as Opf,
|
|
6192
|
+
d as OpfEnum,
|
|
6193
|
+
gt as Order,
|
|
6143
6194
|
fr as OrderInfo,
|
|
6144
|
-
|
|
6145
|
-
|
|
6195
|
+
rt as OrderPaymentStatus,
|
|
6196
|
+
ht as OrderProduct,
|
|
6146
6197
|
mr as OrderShortInfo,
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6198
|
+
tt as OrderStatus,
|
|
6199
|
+
Xt as OrdersDataProvider,
|
|
6200
|
+
X as PartnerGroup,
|
|
6201
|
+
st as PaymentType,
|
|
6202
|
+
dt as PreferencesStorageProvider,
|
|
6203
|
+
_e as PriceAnalyze,
|
|
6204
|
+
Zt as PriceAnalyzeProvider,
|
|
6205
|
+
Pe as PriceCoefficient,
|
|
6155
6206
|
rr as PriceCoefficientEnum,
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6207
|
+
es as PriceHistoryDataProvider,
|
|
6208
|
+
mt as PriceHistoryItem,
|
|
6209
|
+
z as PriceTemplate,
|
|
6210
|
+
$e as PriceTemplateCategory,
|
|
6211
|
+
re as PriceTemplateClient,
|
|
6161
6212
|
ir as PriceTemplateICatalogableItem,
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6213
|
+
Te as PriceTemplateProduct,
|
|
6214
|
+
Ft as PriceTemplateProvider,
|
|
6215
|
+
se as PricingRole,
|
|
6216
|
+
Mt as PricingRoleProvider,
|
|
6217
|
+
de as PrimaryCatalogableItem,
|
|
6218
|
+
k as Product,
|
|
6219
|
+
qt as ProductCategoryDataProvider,
|
|
6220
|
+
Ut as ProductDataProvider,
|
|
6221
|
+
it as ProductFileType,
|
|
6171
6222
|
qe as ProductPriceCoefficient,
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6223
|
+
ft as ProductPriceHistory,
|
|
6224
|
+
Ht as PropertiesProvider,
|
|
6225
|
+
te as Property,
|
|
6175
6226
|
or as PropertyType,
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6227
|
+
Br as PropertyTypeEnum,
|
|
6228
|
+
H as PropertyValue,
|
|
6229
|
+
rs as RecommendationsDataProvider,
|
|
6230
|
+
Je as RecommendationsList,
|
|
6231
|
+
P as Reference,
|
|
6232
|
+
a as ReferenceDataProvider,
|
|
6233
|
+
ce as Region,
|
|
6183
6234
|
lr as ResourceType,
|
|
6184
|
-
|
|
6185
|
-
|
|
6235
|
+
x as SalesDirection,
|
|
6236
|
+
Qr as SentryConfig,
|
|
6186
6237
|
Ke as Seo,
|
|
6187
|
-
|
|
6238
|
+
ss as SeoDataProvider,
|
|
6188
6239
|
pr as SourcePrimaryInterest,
|
|
6189
|
-
|
|
6190
|
-
|
|
6240
|
+
Ur as StockCount,
|
|
6241
|
+
Lt as TemplatesListFilters,
|
|
6191
6242
|
Ue as TypedInstanceFactory,
|
|
6192
|
-
|
|
6193
|
-
|
|
6243
|
+
Ve as UnitsHelper,
|
|
6244
|
+
Jt as UnknownClientDataProvider,
|
|
6194
6245
|
sr as UpdatableNamedIdentity,
|
|
6195
|
-
|
|
6196
|
-
|
|
6246
|
+
Ct as User,
|
|
6247
|
+
ns as UserAuthDataProvider,
|
|
6197
6248
|
nr as UserCommonInfo,
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6249
|
+
vt as UserDataProvider,
|
|
6250
|
+
G as UserShortInfo,
|
|
6251
|
+
wt as UserTypeEnum,
|
|
6252
|
+
Yr as VersionConfig,
|
|
6253
|
+
Re as Warehouse,
|
|
6254
|
+
ze as findCatalogItemByIdRecursive,
|
|
6255
|
+
ae as useAuthStateStore,
|
|
6256
|
+
ts as useReferencesStore,
|
|
6257
|
+
os as useUserStateStore
|
|
6207
6258
|
};
|
|
6208
6259
|
//# sourceMappingURL=sc-common-lib.js.map
|