@snabcentr/common-lib 1.72.1 → 1.72.2
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 +1 -1
- package/dist/sc-common-lib.js +717 -623
- 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/states/auth-state-store.d.ts.map +1 -1
- package/dist/src/system/providers/preferences-storage-provider.d.ts +10 -2
- package/dist/src/system/providers/preferences-storage-provider.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (n, r, e) =>
|
|
4
|
-
import { jwtDecode as
|
|
5
|
-
import { merge as
|
|
6
|
-
import { objectToCamel as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
class
|
|
1
|
+
var Pr = Object.defineProperty;
|
|
2
|
+
var Rr = (n, r, e) => r in n ? Pr(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var t = (n, r, e) => Rr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jwtDecode as rr } from "jwt-decode";
|
|
5
|
+
import { merge as ye, isUndefined as Dr, isNil as D, isEmpty as Y, noop as w, mapValues as tr, isArray as Q, every as Ar, split as $r, toUpper as Tr, constant as br, isString as a, cloneDeep as Sr, toLower as _r, isFunction as qe, map as Pe, forEach as dr, isDate as ke, omitBy as sr, isObject as ir } from "lodash-es";
|
|
6
|
+
import { objectToCamel as Ue, objectToSnake as Be } from "ts-case-convert";
|
|
7
|
+
import { isAfter as ze, parseISO as C, startOfToday as Le, format as q, addSeconds as Ir, addBusinessDays as kr, endOfTomorrow as Lr, startOfTomorrow as xr, endOfYesterday as Nr, startOfYesterday as Or, endOfToday as qr, endOfDay as Ur, startOfDay as Gr } from "date-fns";
|
|
8
|
+
import { defineStore as te } from "pinia";
|
|
9
|
+
import { ref as y, markRaw as Fr, computed as P } from "vue";
|
|
10
|
+
import jr from "axios";
|
|
11
|
+
class G {
|
|
12
12
|
/**
|
|
13
13
|
* Инициализирует экземпляр класса {@link JwtPayload}.
|
|
14
14
|
*
|
|
@@ -99,7 +99,7 @@ class Q {
|
|
|
99
99
|
* @inheritDoc
|
|
100
100
|
*/
|
|
101
101
|
t(this, "email", "");
|
|
102
|
-
|
|
102
|
+
ye(this, r);
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* Возвращает данные полезной нагрузки для указанного JWT-токена.
|
|
@@ -107,11 +107,11 @@ class Q {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
const e =
|
|
110
|
+
const e = rr(r), s = new G(Ue(e));
|
|
111
111
|
return s.resourceAccess = e.resource_access, s;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class Nt extends G {
|
|
115
115
|
/**
|
|
116
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
117
117
|
*
|
|
@@ -143,7 +143,7 @@ class Lt extends Q {
|
|
|
143
143
|
* @inheritDoc
|
|
144
144
|
*/
|
|
145
145
|
t(this, "address");
|
|
146
|
-
|
|
146
|
+
ye(this, e);
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
149
|
* Возвращает данные полезной нагрузки для указанного JWT-токена.
|
|
@@ -151,26 +151,26 @@ class Lt extends Q {
|
|
|
151
151
|
* @param jwtToken JWT-ключ доступа.
|
|
152
152
|
*/
|
|
153
153
|
static getJwtPayload(e) {
|
|
154
|
-
return new
|
|
154
|
+
return new G(Ue(rr(e)));
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const J = class J {
|
|
158
158
|
/**
|
|
159
159
|
* Инициализирует и возвращает конфигурацию приложения.
|
|
160
160
|
*
|
|
161
161
|
* @param config Данные для первоначальной инициализации.
|
|
162
162
|
*/
|
|
163
163
|
static init(r) {
|
|
164
|
-
|
|
164
|
+
J.config = r;
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* Возвращает текущую конфигурацию приложения.
|
|
168
168
|
*/
|
|
169
169
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
170
170
|
static getConfig() {
|
|
171
|
-
if (
|
|
171
|
+
if (Dr(J.config))
|
|
172
172
|
throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
|
|
173
|
-
return
|
|
173
|
+
return J.config;
|
|
174
174
|
}
|
|
175
175
|
/**
|
|
176
176
|
* Выполняет загрузку конфигурации по указанному пути.
|
|
@@ -189,15 +189,143 @@ const E = class E {
|
|
|
189
189
|
/**
|
|
190
190
|
* Конфигурация приложения.
|
|
191
191
|
*/
|
|
192
|
-
t(
|
|
193
|
-
let T =
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
192
|
+
t(J, "config");
|
|
193
|
+
let T = J;
|
|
194
|
+
class fe {
|
|
195
|
+
/**
|
|
196
|
+
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
197
|
+
*
|
|
198
|
+
* @param keyName Название ключа из которого необходимо получить данные.
|
|
199
|
+
*/
|
|
200
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
201
|
+
static getActualDataFromStorage(r) {
|
|
202
|
+
if (!this.isLocalStorageAvailable())
|
|
203
|
+
return;
|
|
204
|
+
let e = null;
|
|
205
|
+
try {
|
|
206
|
+
e = localStorage.getItem(r);
|
|
207
|
+
} catch {
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
if (e)
|
|
211
|
+
try {
|
|
212
|
+
const s = JSON.parse(e);
|
|
213
|
+
if (!s.availableFor || ze(C(s.availableFor) || Le(), /* @__PURE__ */ new Date())) {
|
|
214
|
+
if (D(s.data) || Y(s.data))
|
|
215
|
+
throw new Error("Data is empty");
|
|
216
|
+
return s.data;
|
|
217
|
+
}
|
|
218
|
+
} catch {
|
|
219
|
+
try {
|
|
220
|
+
localStorage.removeItem(r);
|
|
221
|
+
} catch {
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Сохраняет данные в хранилище.
|
|
227
|
+
*
|
|
228
|
+
* @param keyName Название ключа в который необходимо сохранить данные.
|
|
229
|
+
* @param data Данные, которые необходимо сохранить.
|
|
230
|
+
* @param availableFor Дата и время до которого будут храниться настройки. Если не задан, данные будут храниться бессрочно.
|
|
231
|
+
*/
|
|
232
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
233
|
+
static saveActualDataToStorage(r, e, s) {
|
|
234
|
+
if (this.isLocalStorageAvailable())
|
|
235
|
+
try {
|
|
236
|
+
if (D(e) || Y(e))
|
|
237
|
+
throw new Error("Data is empty");
|
|
238
|
+
const i = JSON.stringify({
|
|
239
|
+
availableFor: s,
|
|
240
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
241
|
+
data: e
|
|
242
|
+
});
|
|
243
|
+
localStorage.setItem(r, i);
|
|
244
|
+
} catch (i) {
|
|
245
|
+
if (i instanceof DOMException && i.code === DOMException.QUOTA_EXCEEDED_ERR) {
|
|
246
|
+
this.clearOldData();
|
|
247
|
+
try {
|
|
248
|
+
const o = JSON.stringify({
|
|
249
|
+
availableFor: s,
|
|
250
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
251
|
+
data: e
|
|
252
|
+
});
|
|
253
|
+
localStorage.setItem(r, o);
|
|
254
|
+
} catch {
|
|
255
|
+
}
|
|
256
|
+
} else
|
|
257
|
+
try {
|
|
258
|
+
localStorage.removeItem(r);
|
|
259
|
+
} catch {
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Проверяет доступность localStorage в браузере.
|
|
265
|
+
*/
|
|
266
|
+
static isLocalStorageAvailable() {
|
|
267
|
+
try {
|
|
268
|
+
const r = "__localStorage_test__";
|
|
269
|
+
return localStorage.setItem(r, "test"), localStorage.removeItem(r), !0;
|
|
270
|
+
} catch {
|
|
271
|
+
return !1;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Очищает устаревшие данные из localStorage для освобождения места.
|
|
276
|
+
*/
|
|
277
|
+
static clearOldData() {
|
|
278
|
+
try {
|
|
279
|
+
const r = [];
|
|
280
|
+
for (let e = 0; e < localStorage.length; e++) {
|
|
281
|
+
const s = localStorage.key(e);
|
|
282
|
+
if (s)
|
|
283
|
+
try {
|
|
284
|
+
const i = localStorage.getItem(s);
|
|
285
|
+
if (i) {
|
|
286
|
+
const o = JSON.parse(i);
|
|
287
|
+
o.availableFor && !ze(C(o.availableFor) || Le(), /* @__PURE__ */ new Date()) && r.push(s);
|
|
288
|
+
}
|
|
289
|
+
} catch {
|
|
290
|
+
r.push(s);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
r.forEach((e) => {
|
|
294
|
+
try {
|
|
295
|
+
localStorage.removeItem(e);
|
|
296
|
+
} catch {
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
} catch {
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
function Ee(n) {
|
|
304
|
+
try {
|
|
305
|
+
const r = G.getJwtPayload(n);
|
|
306
|
+
return new Date(r.exp * 1e3);
|
|
307
|
+
} catch {
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
const B = te("__auth_state_private", () => {
|
|
312
|
+
const n = y(
|
|
313
|
+
(() => {
|
|
314
|
+
var u;
|
|
315
|
+
const o = fe.getActualDataFromStorage(
|
|
316
|
+
"sc.token"
|
|
317
|
+
/* JwtToken */
|
|
318
|
+
);
|
|
319
|
+
if (o)
|
|
320
|
+
return Promise.resolve(o);
|
|
321
|
+
const c = (u = T.getConfig().devMode) == null ? void 0 : u.initAuthBearerToken;
|
|
322
|
+
return c ? Promise.resolve(c) : void 0;
|
|
323
|
+
})()
|
|
324
|
+
), r = y(void 0), e = y(void 0), s = Fr(/* @__PURE__ */ new Map());
|
|
197
325
|
function i() {
|
|
198
|
-
e.value = void 0,
|
|
199
|
-
const
|
|
200
|
-
e.value =
|
|
326
|
+
e.value = void 0, D(n.value) || n.value.then((o) => {
|
|
327
|
+
const c = G.getJwtPayload(o);
|
|
328
|
+
e.value = c.exp * 1e3 > Date.now() ? tr(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
|
|
201
329
|
}).catch(w);
|
|
202
330
|
}
|
|
203
331
|
return {
|
|
@@ -222,47 +350,47 @@ const H = re("__auth_state_private", () => {
|
|
|
222
350
|
*/
|
|
223
351
|
recalculateUserPermissions: i
|
|
224
352
|
};
|
|
225
|
-
}),
|
|
226
|
-
const n =
|
|
227
|
-
const o =
|
|
228
|
-
if (
|
|
353
|
+
}), Te = te("__auth_state", () => {
|
|
354
|
+
const n = P(() => {
|
|
355
|
+
const o = B();
|
|
356
|
+
if (D(o.jwtToken) && !D(o.jwtTokenUpdater)) {
|
|
229
357
|
const c = o.jwtTokenUpdater();
|
|
230
358
|
o.jwtToken = c, c.then((u) => {
|
|
231
|
-
o.jwtToken = Promise.resolve(u), o.recalculateUserPermissions();
|
|
359
|
+
o.jwtToken = Promise.resolve(u), fe.saveActualDataToStorage("sc.token", u, Ee(u)), o.recalculateUserPermissions();
|
|
232
360
|
}).catch(w);
|
|
233
361
|
}
|
|
234
362
|
return o.jwtToken;
|
|
235
363
|
});
|
|
236
364
|
function r(o) {
|
|
237
|
-
|
|
365
|
+
B().jwtTokenUpdater = o;
|
|
238
366
|
}
|
|
239
367
|
function e(o) {
|
|
240
|
-
const c =
|
|
241
|
-
c.jwtToken = Promise.resolve(o), c.recalculateUserPermissions();
|
|
368
|
+
const c = B();
|
|
369
|
+
c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o, Ee(o)), c.recalculateUserPermissions();
|
|
242
370
|
}
|
|
243
371
|
function s() {
|
|
244
|
-
const o =
|
|
245
|
-
o.jwtToken = void 0, o.userPermissions = void 0;
|
|
372
|
+
const o = B();
|
|
373
|
+
o.jwtToken = void 0, o.userPermissions = void 0, fe.saveActualDataToStorage("sc.token", void 0);
|
|
246
374
|
}
|
|
247
375
|
function i(o) {
|
|
248
|
-
const c =
|
|
249
|
-
|
|
250
|
-
const m =
|
|
251
|
-
c.userPermissions = m.exp * 1e3 > Date.now() ?
|
|
376
|
+
const c = B();
|
|
377
|
+
!D(c.jwtToken) && D(c.userPermissions) && c.jwtToken.then((f) => {
|
|
378
|
+
const m = G.getJwtPayload(f);
|
|
379
|
+
c.userPermissions = m.exp * 1e3 > Date.now() ? tr(m.resourceAccess, (A) => (A == null ? void 0 : A.roles) ?? []) : void 0;
|
|
252
380
|
}).catch(w);
|
|
253
|
-
const u =
|
|
381
|
+
const u = Q(o) ? o.join(" && ") : o;
|
|
254
382
|
if (c.userPermissionsComputedRefs.has(u))
|
|
255
383
|
return c.userPermissionsComputedRefs.get(u);
|
|
256
|
-
const p =
|
|
384
|
+
const p = P(() => {
|
|
257
385
|
const f = (m) => {
|
|
258
|
-
var
|
|
259
|
-
const A =
|
|
386
|
+
var _;
|
|
387
|
+
const A = $r(m, ".");
|
|
260
388
|
if (A.length < 2)
|
|
261
389
|
return !1;
|
|
262
|
-
const [d, I] = A,
|
|
263
|
-
return
|
|
390
|
+
const [d, I] = A, S = (_ = B().userPermissions) == null ? void 0 : _[d];
|
|
391
|
+
return Q(S) && S.includes(I);
|
|
264
392
|
};
|
|
265
|
-
return
|
|
393
|
+
return Q(o) ? Ar(o, (m) => f(m)) : f(o);
|
|
266
394
|
});
|
|
267
395
|
return c.userPermissionsComputedRefs.set(u, p), p;
|
|
268
396
|
}
|
|
@@ -295,7 +423,7 @@ const H = re("__auth_state_private", () => {
|
|
|
295
423
|
hasUserPermission: i
|
|
296
424
|
};
|
|
297
425
|
});
|
|
298
|
-
class
|
|
426
|
+
class H {
|
|
299
427
|
/**
|
|
300
428
|
* Инициализирует экземпляр класса {@link Identity}.
|
|
301
429
|
*
|
|
@@ -311,16 +439,16 @@ class M {
|
|
|
311
439
|
* @inheritDoc
|
|
312
440
|
*/
|
|
313
441
|
t(this, "guid");
|
|
314
|
-
this.id = r == null ? void 0 : r.id,
|
|
442
|
+
this.id = r == null ? void 0 : r.id, D(this.id) && (D(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) ?? "";
|
|
315
443
|
}
|
|
316
444
|
/**
|
|
317
445
|
* Возвращает признак, что это новая запись.
|
|
318
446
|
*/
|
|
319
447
|
isNewRec() {
|
|
320
|
-
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" :
|
|
448
|
+
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : D(this.id);
|
|
321
449
|
}
|
|
322
450
|
}
|
|
323
|
-
class b extends
|
|
451
|
+
class b extends H {
|
|
324
452
|
/**
|
|
325
453
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
326
454
|
*
|
|
@@ -335,7 +463,7 @@ class b extends M {
|
|
|
335
463
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
336
464
|
}
|
|
337
465
|
}
|
|
338
|
-
class
|
|
466
|
+
class oe extends b {
|
|
339
467
|
/**
|
|
340
468
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
341
469
|
*
|
|
@@ -350,7 +478,7 @@ class ne extends b {
|
|
|
350
478
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
351
479
|
}
|
|
352
480
|
}
|
|
353
|
-
class
|
|
481
|
+
class nr extends oe {
|
|
354
482
|
/**
|
|
355
483
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
356
484
|
*
|
|
@@ -369,7 +497,7 @@ class tr extends ne {
|
|
|
369
497
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
370
498
|
}
|
|
371
499
|
}
|
|
372
|
-
class
|
|
500
|
+
class xe extends nr {
|
|
373
501
|
/**
|
|
374
502
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
375
503
|
*
|
|
@@ -384,7 +512,7 @@ class ke extends tr {
|
|
|
384
512
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
385
513
|
}
|
|
386
514
|
}
|
|
387
|
-
class
|
|
515
|
+
class he extends xe {
|
|
388
516
|
/**
|
|
389
517
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
390
518
|
*
|
|
@@ -408,11 +536,11 @@ class pe extends ke {
|
|
|
408
536
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
409
537
|
*/
|
|
410
538
|
t(this, "currencyRates");
|
|
411
|
-
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]) => [
|
|
539
|
+
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]) => [Tr(s), i])) : void 0;
|
|
412
540
|
}
|
|
413
541
|
}
|
|
414
|
-
var
|
|
415
|
-
class
|
|
542
|
+
var or = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(or || {});
|
|
543
|
+
class v extends b {
|
|
416
544
|
/**
|
|
417
545
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
418
546
|
*
|
|
@@ -431,15 +559,15 @@ class P extends b {
|
|
|
431
559
|
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
432
560
|
}
|
|
433
561
|
}
|
|
434
|
-
class Re extends
|
|
562
|
+
class Re extends v {
|
|
435
563
|
/**
|
|
436
564
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
437
565
|
*/
|
|
438
566
|
static getRetailPriceCoefficient() {
|
|
439
|
-
return { id: -2, slug:
|
|
567
|
+
return { id: -2, slug: or.Retail, name: "Розн. цена", guid: "", isNewRec: br(!0) };
|
|
440
568
|
}
|
|
441
569
|
}
|
|
442
|
-
class
|
|
570
|
+
class Ge {
|
|
443
571
|
/**
|
|
444
572
|
* Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
|
|
445
573
|
*
|
|
@@ -469,7 +597,7 @@ class qe {
|
|
|
469
597
|
this.coefficient = new Re(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;
|
|
470
598
|
}
|
|
471
599
|
}
|
|
472
|
-
class
|
|
600
|
+
class cr {
|
|
473
601
|
/**
|
|
474
602
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
475
603
|
*
|
|
@@ -487,9 +615,9 @@ class ir {
|
|
|
487
615
|
this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
|
|
488
616
|
}
|
|
489
617
|
}
|
|
490
|
-
class
|
|
618
|
+
class X extends v {
|
|
491
619
|
}
|
|
492
|
-
class
|
|
620
|
+
class De extends v {
|
|
493
621
|
/**
|
|
494
622
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
495
623
|
*
|
|
@@ -518,10 +646,10 @@ class ae extends P {
|
|
|
518
646
|
* Координаты склада.
|
|
519
647
|
*/
|
|
520
648
|
t(this, "coordinates");
|
|
521
|
-
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
|
|
649
|
+
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 X(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new cr(e == null ? void 0 : e.coordinates);
|
|
522
650
|
}
|
|
523
651
|
}
|
|
524
|
-
class
|
|
652
|
+
class Mr {
|
|
525
653
|
/**
|
|
526
654
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
527
655
|
*
|
|
@@ -536,10 +664,10 @@ class jr {
|
|
|
536
664
|
* Количество остатков товара на складе.
|
|
537
665
|
*/
|
|
538
666
|
t(this, "count");
|
|
539
|
-
this.warehouse = new
|
|
667
|
+
this.warehouse = new De(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
540
668
|
}
|
|
541
669
|
}
|
|
542
|
-
class
|
|
670
|
+
class Hr extends nr {
|
|
543
671
|
/**
|
|
544
672
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
545
673
|
*
|
|
@@ -554,7 +682,7 @@ class Fr extends tr {
|
|
|
554
682
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
555
683
|
}
|
|
556
684
|
}
|
|
557
|
-
class
|
|
685
|
+
class Br {
|
|
558
686
|
/**
|
|
559
687
|
* Инициализирует экземпляр класса {@link Image}.
|
|
560
688
|
*
|
|
@@ -577,7 +705,7 @@ class Mr {
|
|
|
577
705
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
578
706
|
}
|
|
579
707
|
}
|
|
580
|
-
class x extends
|
|
708
|
+
class x extends Hr {
|
|
581
709
|
/**
|
|
582
710
|
* Инициализирует экземпляр класса {@link Product}.
|
|
583
711
|
*
|
|
@@ -662,9 +790,9 @@ class x extends Fr {
|
|
|
662
790
|
* Список коэффициентов цен на продукт.
|
|
663
791
|
*/
|
|
664
792
|
t(this, "priceCoefficients");
|
|
665
|
-
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 =
|
|
793
|
+
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 = a(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((p) => new Mr(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
666
794
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
|
|
667
|
-
s && (this.category = new
|
|
795
|
+
s && (this.category = new xe({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new xe(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new Br(p, T.getConfig().http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Ge(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
668
796
|
}
|
|
669
797
|
/**
|
|
670
798
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -687,7 +815,7 @@ class x extends Fr {
|
|
|
687
815
|
return this.retailCostRub ?? this.costRub;
|
|
688
816
|
}
|
|
689
817
|
}
|
|
690
|
-
class
|
|
818
|
+
class zr extends H {
|
|
691
819
|
/**
|
|
692
820
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
693
821
|
*
|
|
@@ -739,10 +867,10 @@ class Hr extends M {
|
|
|
739
867
|
* Признак того, что позиция является дополнительной продажей.
|
|
740
868
|
*/
|
|
741
869
|
t(this, "isAdditionalSale");
|
|
742
|
-
this.product = new x(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new
|
|
870
|
+
this.product = new x(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 && Sr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
743
871
|
}
|
|
744
872
|
}
|
|
745
|
-
class
|
|
873
|
+
class Er extends zr {
|
|
746
874
|
/**
|
|
747
875
|
* Инициализирует экземпляр класса {@link CartItem}.
|
|
748
876
|
*
|
|
@@ -792,7 +920,7 @@ class Br extends Hr {
|
|
|
792
920
|
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;
|
|
793
921
|
}
|
|
794
922
|
}
|
|
795
|
-
class
|
|
923
|
+
class me {
|
|
796
924
|
/**
|
|
797
925
|
* Инициализирует экземпляр класса {@link Cart}.
|
|
798
926
|
*
|
|
@@ -811,10 +939,10 @@ class ge {
|
|
|
811
939
|
* Список итоговых сумм по направлениям продаж.
|
|
812
940
|
*/
|
|
813
941
|
t(this, "directionsSum");
|
|
814
|
-
this.items = r.items.map((e) => new
|
|
942
|
+
this.items = r.items.map((e) => new Er(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
815
943
|
}
|
|
816
944
|
}
|
|
817
|
-
class
|
|
945
|
+
class Fe {
|
|
818
946
|
/**
|
|
819
947
|
* Инициализирует экземпляр указанного класса.
|
|
820
948
|
*
|
|
@@ -872,7 +1000,7 @@ const L = class L {
|
|
|
872
1000
|
// eslint-disable-next-line class-methods-use-this
|
|
873
1001
|
t(this, "authRequestInterceptor", async (r) => {
|
|
874
1002
|
let e;
|
|
875
|
-
return
|
|
1003
|
+
return D(Te().jwtToken) || (e = await Te().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
|
|
876
1004
|
});
|
|
877
1005
|
/**
|
|
878
1006
|
* Перехватчик запроса для преобразования данных запроса.
|
|
@@ -880,7 +1008,7 @@ const L = class L {
|
|
|
880
1008
|
* @param request Данные запроса.
|
|
881
1009
|
*/
|
|
882
1010
|
// eslint-disable-next-line class-methods-use-this
|
|
883
|
-
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params =
|
|
1011
|
+
t(this, "dataConverterRequestInterceptor", (r) => (r.method && (r.method === "get" && r.params && (r.params = Be(r.params)), ["put", "patch", "post"].includes(_r(r.method)) && r.data && (r.data = Be(r.data))), r));
|
|
884
1012
|
/**
|
|
885
1013
|
* Перехватчик ошибок ответов на запрос.
|
|
886
1014
|
*
|
|
@@ -889,7 +1017,7 @@ const L = class L {
|
|
|
889
1017
|
t(this, "authErrorsResponseInterceptors", (r) => {
|
|
890
1018
|
var s;
|
|
891
1019
|
const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
|
|
892
|
-
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (
|
|
1020
|
+
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (Te().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
|
|
893
1021
|
});
|
|
894
1022
|
/**
|
|
895
1023
|
* Перехватчик ответа для преобразования данных ответа на запрос.
|
|
@@ -897,9 +1025,9 @@ const L = class L {
|
|
|
897
1025
|
* @param response Данные ответа на запрос.
|
|
898
1026
|
*/
|
|
899
1027
|
// eslint-disable-next-line class-methods-use-this
|
|
900
|
-
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data =
|
|
1028
|
+
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Ue(r.data)), r));
|
|
901
1029
|
const r = T.getConfig().version;
|
|
902
|
-
this.errorResponseHandler = L.defaultErrorsResponseHandler, this.httpClient =
|
|
1030
|
+
this.errorResponseHandler = L.defaultErrorsResponseHandler, this.httpClient = jr.create({
|
|
903
1031
|
headers: {
|
|
904
1032
|
"APP-VERSION": `${r.name} (${r.version}, ${q(r.date, T.getConfig().dateFormats.uiDate)})`,
|
|
905
1033
|
Accept: "application/json",
|
|
@@ -930,7 +1058,7 @@ const L = class L {
|
|
|
930
1058
|
* @param type Тип данных, которыми оперирует метод.
|
|
931
1059
|
*/
|
|
932
1060
|
static getInstance(r) {
|
|
933
|
-
return Object.prototype.hasOwnProperty.call(L.instances, r.name) || (L.instances[r.name] =
|
|
1061
|
+
return Object.prototype.hasOwnProperty.call(L.instances, r.name) || (L.instances[r.name] = Fe.simpleInstanceInitializer(r)), L.instances[r.name];
|
|
934
1062
|
}
|
|
935
1063
|
/**
|
|
936
1064
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -939,7 +1067,7 @@ const L = class L {
|
|
|
939
1067
|
*/
|
|
940
1068
|
static convertHttpErrorResponse(r) {
|
|
941
1069
|
var e, s;
|
|
942
|
-
if (
|
|
1070
|
+
if (!D(r.request) || !D(r.response)) {
|
|
943
1071
|
const i = r == null ? void 0 : r.response;
|
|
944
1072
|
return Promise.reject({
|
|
945
1073
|
status: (i == null ? void 0 : i.status) ?? 0,
|
|
@@ -1037,7 +1165,7 @@ t(L, "instances", {}), /**
|
|
|
1037
1165
|
*/
|
|
1038
1166
|
t(L, "defaultErrorsResponseHandler", w);
|
|
1039
1167
|
let h = L;
|
|
1040
|
-
class
|
|
1168
|
+
class Ot extends h {
|
|
1041
1169
|
/**
|
|
1042
1170
|
* Возвращает содержимое корзины указанного клиента.
|
|
1043
1171
|
*
|
|
@@ -1046,7 +1174,7 @@ class xt extends h {
|
|
|
1046
1174
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_get
|
|
1047
1175
|
*/
|
|
1048
1176
|
getCart(r) {
|
|
1049
|
-
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new
|
|
1177
|
+
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new me(e.data));
|
|
1050
1178
|
}
|
|
1051
1179
|
/**
|
|
1052
1180
|
* Удаляет всё содержимое корзины.
|
|
@@ -1084,7 +1212,7 @@ class xt extends h {
|
|
|
1084
1212
|
isAdditionalSale: e.isAdditionalSale,
|
|
1085
1213
|
...e.configuratorParams
|
|
1086
1214
|
},
|
|
1087
|
-
(i) => new
|
|
1215
|
+
(i) => new me(i.data),
|
|
1088
1216
|
s
|
|
1089
1217
|
);
|
|
1090
1218
|
}
|
|
@@ -1114,7 +1242,7 @@ class xt extends h {
|
|
|
1114
1242
|
isAdditionalSale: e.isAdditionalSale,
|
|
1115
1243
|
...e.configuratorParams
|
|
1116
1244
|
},
|
|
1117
|
-
(i) => new
|
|
1245
|
+
(i) => new me(i.data),
|
|
1118
1246
|
s
|
|
1119
1247
|
);
|
|
1120
1248
|
}
|
|
@@ -1138,7 +1266,7 @@ class xt extends h {
|
|
|
1138
1266
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
|
|
1139
1267
|
*/
|
|
1140
1268
|
addCartItemFromCSV(r, e) {
|
|
1141
|
-
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new
|
|
1269
|
+
return this.post(`internal/clients/${r.id}/cart/add-products-from-csv`, e, (s) => new me(s.data));
|
|
1142
1270
|
}
|
|
1143
1271
|
/**
|
|
1144
1272
|
* Возвращает пример CSV файла для добавления продуктов в корзину.
|
|
@@ -1151,8 +1279,8 @@ class xt extends h {
|
|
|
1151
1279
|
return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
|
|
1152
1280
|
}
|
|
1153
1281
|
}
|
|
1154
|
-
var
|
|
1155
|
-
class
|
|
1282
|
+
var Wr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Wr || {}), je = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(je || {}), Jr = /* @__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))(Jr || {});
|
|
1283
|
+
class E extends he {
|
|
1156
1284
|
/**
|
|
1157
1285
|
* Инициализирует экземпляр класса {@link Category}.
|
|
1158
1286
|
*
|
|
@@ -1169,10 +1297,10 @@ class z extends pe {
|
|
|
1169
1297
|
* Список продуктов категории.
|
|
1170
1298
|
*/
|
|
1171
1299
|
t(this, "products");
|
|
1172
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new
|
|
1300
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new E(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new x(o));
|
|
1173
1301
|
}
|
|
1174
1302
|
}
|
|
1175
|
-
class
|
|
1303
|
+
class lr extends b {
|
|
1176
1304
|
/**
|
|
1177
1305
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1178
1306
|
*
|
|
@@ -1184,10 +1312,10 @@ class nr extends b {
|
|
|
1184
1312
|
* Дата и время последнего изменения.
|
|
1185
1313
|
*/
|
|
1186
1314
|
t(this, "updatedAt");
|
|
1187
|
-
this.updatedAt =
|
|
1315
|
+
this.updatedAt = a(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1188
1316
|
}
|
|
1189
1317
|
}
|
|
1190
|
-
class
|
|
1318
|
+
class Vr extends lr {
|
|
1191
1319
|
/**
|
|
1192
1320
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1193
1321
|
*
|
|
@@ -1199,44 +1327,10 @@ class Er extends nr {
|
|
|
1199
1327
|
* Дата и время последнего удаления.
|
|
1200
1328
|
*/
|
|
1201
1329
|
t(this, "deletedAt");
|
|
1202
|
-
this.deletedAt =
|
|
1330
|
+
this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1203
1331
|
}
|
|
1204
1332
|
}
|
|
1205
|
-
class
|
|
1206
|
-
/**
|
|
1207
|
-
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
1208
|
-
*
|
|
1209
|
-
* @param keyName Название ключа из которого необходимо получить данные.
|
|
1210
|
-
*/
|
|
1211
|
-
static getActualDataFromStorage(r) {
|
|
1212
|
-
const e = localStorage.getItem(r);
|
|
1213
|
-
if (e)
|
|
1214
|
-
try {
|
|
1215
|
-
const s = JSON.parse(e);
|
|
1216
|
-
if (Sr(v(s.availableFor) || rr(), /* @__PURE__ */ new Date()))
|
|
1217
|
-
return s.data ?? {};
|
|
1218
|
-
} catch {
|
|
1219
|
-
localStorage.removeItem(r);
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
/**
|
|
1223
|
-
* Сохраняет данные в хранилище.
|
|
1224
|
-
*
|
|
1225
|
-
* @param keyName Название ключа в который необходимо сохранить данные.
|
|
1226
|
-
* @param data Данные, которые необходимо сохранить.
|
|
1227
|
-
* @param availableFor Дата и время до которого будут храниться настройки.
|
|
1228
|
-
*/
|
|
1229
|
-
static saveActualDataToStorage(r, e, s) {
|
|
1230
|
-
localStorage.setItem(
|
|
1231
|
-
r,
|
|
1232
|
-
JSON.stringify({
|
|
1233
|
-
availableFor: s,
|
|
1234
|
-
data: e
|
|
1235
|
-
})
|
|
1236
|
-
);
|
|
1237
|
-
}
|
|
1238
|
-
}
|
|
1239
|
-
class G extends b {
|
|
1333
|
+
class F extends b {
|
|
1240
1334
|
/**
|
|
1241
1335
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
1242
1336
|
*
|
|
@@ -1251,7 +1345,7 @@ class G extends b {
|
|
|
1251
1345
|
this.type = e == null ? void 0 : e.type;
|
|
1252
1346
|
}
|
|
1253
1347
|
}
|
|
1254
|
-
class
|
|
1348
|
+
class Kr extends b {
|
|
1255
1349
|
/**
|
|
1256
1350
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1257
1351
|
*
|
|
@@ -1287,10 +1381,10 @@ class Jr extends b {
|
|
|
1287
1381
|
* Дата и время удаления.
|
|
1288
1382
|
*/
|
|
1289
1383
|
t(this, "deletedAt");
|
|
1290
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt =
|
|
1384
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = a(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 F(e == null ? void 0 : e.owner), this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1291
1385
|
}
|
|
1292
1386
|
}
|
|
1293
|
-
class W extends
|
|
1387
|
+
class W extends lr {
|
|
1294
1388
|
/**
|
|
1295
1389
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1296
1390
|
*
|
|
@@ -1306,10 +1400,10 @@ class W extends nr {
|
|
|
1306
1400
|
* Дата и время создания шаблона.
|
|
1307
1401
|
*/
|
|
1308
1402
|
t(this, "createdAt");
|
|
1309
|
-
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt =
|
|
1403
|
+
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
|
|
1310
1404
|
}
|
|
1311
1405
|
}
|
|
1312
|
-
class
|
|
1406
|
+
class Z extends x {
|
|
1313
1407
|
/**
|
|
1314
1408
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1315
1409
|
*
|
|
@@ -1345,10 +1439,10 @@ class X extends x {
|
|
|
1345
1439
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1346
1440
|
*/
|
|
1347
1441
|
t(this, "isFavorite");
|
|
1348
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ??
|
|
1442
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? je.Product, this.discount = e != null && e.discount ? new Kr(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new W(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
|
|
1349
1443
|
}
|
|
1350
1444
|
}
|
|
1351
|
-
class
|
|
1445
|
+
class Qr {
|
|
1352
1446
|
/**
|
|
1353
1447
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1354
1448
|
*
|
|
@@ -1366,9 +1460,9 @@ class Vr {
|
|
|
1366
1460
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
1367
1461
|
}
|
|
1368
1462
|
}
|
|
1369
|
-
class N extends
|
|
1463
|
+
class N extends v {
|
|
1370
1464
|
}
|
|
1371
|
-
class
|
|
1465
|
+
class ce extends b {
|
|
1372
1466
|
/**
|
|
1373
1467
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1374
1468
|
*
|
|
@@ -1392,10 +1486,10 @@ class oe extends b {
|
|
|
1392
1486
|
* Признак того, что менеджер является основным для клиента.
|
|
1393
1487
|
*/
|
|
1394
1488
|
t(this, "isDefault");
|
|
1395
|
-
e && (this.salesDirection = new N(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new
|
|
1489
|
+
e && (this.salesDirection = new N(e.salesDirection), this.photo = e.photo, e.contacts && (this.contacts = new Qr(e.contacts)), e.isDefault !== void 0 && (this.isDefault = e.isDefault));
|
|
1396
1490
|
}
|
|
1397
1491
|
}
|
|
1398
|
-
class
|
|
1492
|
+
class Yr extends b {
|
|
1399
1493
|
/**
|
|
1400
1494
|
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
1401
1495
|
*
|
|
@@ -1418,7 +1512,7 @@ class Kr extends b {
|
|
|
1418
1512
|
this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
|
|
1419
1513
|
}
|
|
1420
1514
|
}
|
|
1421
|
-
class Ae extends
|
|
1515
|
+
class Ae extends ce {
|
|
1422
1516
|
/**
|
|
1423
1517
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1424
1518
|
*
|
|
@@ -1450,10 +1544,10 @@ class Ae extends oe {
|
|
|
1450
1544
|
* Данные роли ценообразования менеджера.
|
|
1451
1545
|
*/
|
|
1452
1546
|
t(this, "pricingRole");
|
|
1453
|
-
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, this.pricingRole = e != null && e.pricingRole ? new
|
|
1547
|
+
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, this.pricingRole = e != null && e.pricingRole ? new Yr(e.pricingRole) : void 0;
|
|
1454
1548
|
}
|
|
1455
1549
|
}
|
|
1456
|
-
class
|
|
1550
|
+
class Xr extends he {
|
|
1457
1551
|
/**
|
|
1458
1552
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1459
1553
|
*
|
|
@@ -1484,7 +1578,7 @@ class Qr extends pe {
|
|
|
1484
1578
|
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;
|
|
1485
1579
|
}
|
|
1486
1580
|
}
|
|
1487
|
-
class
|
|
1581
|
+
class we extends Xr {
|
|
1488
1582
|
/**
|
|
1489
1583
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1490
1584
|
*
|
|
@@ -1501,10 +1595,10 @@ class fe extends Qr {
|
|
|
1501
1595
|
* Список продуктов категории.
|
|
1502
1596
|
*/
|
|
1503
1597
|
t(this, "products");
|
|
1504
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new
|
|
1598
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new we(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Z(o));
|
|
1505
1599
|
}
|
|
1506
1600
|
}
|
|
1507
|
-
class
|
|
1601
|
+
class ur {
|
|
1508
1602
|
/**
|
|
1509
1603
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
1510
1604
|
*
|
|
@@ -1522,7 +1616,7 @@ class or {
|
|
|
1522
1616
|
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Re(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1523
1617
|
}
|
|
1524
1618
|
}
|
|
1525
|
-
class
|
|
1619
|
+
class be extends ur {
|
|
1526
1620
|
/**
|
|
1527
1621
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1528
1622
|
*
|
|
@@ -1534,12 +1628,12 @@ class Te extends or {
|
|
|
1534
1628
|
* Базовые данные о продукте.
|
|
1535
1629
|
*/
|
|
1536
1630
|
t(this, "productCategory");
|
|
1537
|
-
this.productCategory = new
|
|
1631
|
+
this.productCategory = new he(e == null ? void 0 : e.productCategory);
|
|
1538
1632
|
}
|
|
1539
1633
|
}
|
|
1540
|
-
class
|
|
1634
|
+
class ee extends v {
|
|
1541
1635
|
}
|
|
1542
|
-
class
|
|
1636
|
+
class le extends v {
|
|
1543
1637
|
/**
|
|
1544
1638
|
* Инициализирует экземпляр класса {@link Region}.
|
|
1545
1639
|
*
|
|
@@ -1550,11 +1644,11 @@ class ce extends P {
|
|
|
1550
1644
|
/**
|
|
1551
1645
|
* Данные о стране, в которой расположен регион.
|
|
1552
1646
|
*/
|
|
1553
|
-
t(this, "country", new
|
|
1554
|
-
e && (this.country = new
|
|
1647
|
+
t(this, "country", new ee());
|
|
1648
|
+
e && (this.country = new ee(e.country));
|
|
1555
1649
|
}
|
|
1556
1650
|
}
|
|
1557
|
-
class
|
|
1651
|
+
class Me extends v {
|
|
1558
1652
|
/**
|
|
1559
1653
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
1560
1654
|
*
|
|
@@ -1565,11 +1659,11 @@ class je extends P {
|
|
|
1565
1659
|
/**
|
|
1566
1660
|
* Данные о регионе, в котором расположен город.
|
|
1567
1661
|
*/
|
|
1568
|
-
t(this, "region", new
|
|
1569
|
-
e && (this.region = new
|
|
1662
|
+
t(this, "region", new le());
|
|
1663
|
+
e && (this.region = new le(e.region));
|
|
1570
1664
|
}
|
|
1571
1665
|
}
|
|
1572
|
-
class
|
|
1666
|
+
class pr extends b {
|
|
1573
1667
|
/**
|
|
1574
1668
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1575
1669
|
*
|
|
@@ -1605,10 +1699,10 @@ class cr extends b {
|
|
|
1605
1699
|
* Признак активности учетной записи пользователя.
|
|
1606
1700
|
*/
|
|
1607
1701
|
t(this, "isActive");
|
|
1608
|
-
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 N(e.salesDirection) : void 0, this.createdAt =
|
|
1702
|
+
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 N(e.salesDirection) : void 0, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = a(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1609
1703
|
}
|
|
1610
1704
|
}
|
|
1611
|
-
class
|
|
1705
|
+
class ge extends pr {
|
|
1612
1706
|
/**
|
|
1613
1707
|
* Инициализирует экземпляр класса {@link Client}.
|
|
1614
1708
|
*
|
|
@@ -1650,10 +1744,10 @@ class he extends cr {
|
|
|
1650
1744
|
* Список менеджеров клиента.
|
|
1651
1745
|
*/
|
|
1652
1746
|
t(this, "managers");
|
|
1653
|
-
this.salesDirection = new N(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
|
|
1747
|
+
this.salesDirection = new N(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 Me(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 ce(i))) ?? [];
|
|
1654
1748
|
}
|
|
1655
1749
|
}
|
|
1656
|
-
class
|
|
1750
|
+
class se extends H {
|
|
1657
1751
|
/**
|
|
1658
1752
|
* Инициализирует новый экземпляр класса.
|
|
1659
1753
|
*
|
|
@@ -1677,10 +1771,10 @@ class te extends M {
|
|
|
1677
1771
|
* Данные шаблона прайс-листа.
|
|
1678
1772
|
*/
|
|
1679
1773
|
t(this, "priceTemplate");
|
|
1680
|
-
this.createdAt =
|
|
1774
|
+
this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = a(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 W(e == null ? void 0 : e.priceTemplate);
|
|
1681
1775
|
}
|
|
1682
1776
|
}
|
|
1683
|
-
class
|
|
1777
|
+
class Se extends ur {
|
|
1684
1778
|
/**
|
|
1685
1779
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1686
1780
|
*
|
|
@@ -1695,9 +1789,9 @@ class be extends or {
|
|
|
1695
1789
|
this.product = new x(e == null ? void 0 : e.product);
|
|
1696
1790
|
}
|
|
1697
1791
|
}
|
|
1698
|
-
class
|
|
1792
|
+
class hr extends v {
|
|
1699
1793
|
}
|
|
1700
|
-
class
|
|
1794
|
+
class ie extends b {
|
|
1701
1795
|
/**
|
|
1702
1796
|
* Инициализирует экземпляр класса {@link Property}.
|
|
1703
1797
|
*
|
|
@@ -1717,10 +1811,10 @@ class se extends b {
|
|
|
1717
1811
|
* Дополнительные метаданные свойства.
|
|
1718
1812
|
*/
|
|
1719
1813
|
t(this, "metadata");
|
|
1720
|
-
this.type = new
|
|
1814
|
+
this.type = new hr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
1721
1815
|
}
|
|
1722
1816
|
}
|
|
1723
|
-
class
|
|
1817
|
+
class z {
|
|
1724
1818
|
/**
|
|
1725
1819
|
* Инициализирует экземпляр класса {@link PropertyValue}.
|
|
1726
1820
|
*
|
|
@@ -1736,7 +1830,7 @@ class B {
|
|
|
1736
1830
|
* Может быть строкой, числом, boolean, диапазоном или JSON объектом.
|
|
1737
1831
|
*/
|
|
1738
1832
|
t(this, "value");
|
|
1739
|
-
this.property = new
|
|
1833
|
+
this.property = new ie(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
1740
1834
|
}
|
|
1741
1835
|
}
|
|
1742
1836
|
class O {
|
|
@@ -1754,10 +1848,10 @@ class O {
|
|
|
1754
1848
|
* Окончание периода.
|
|
1755
1849
|
*/
|
|
1756
1850
|
t(this, "to");
|
|
1757
|
-
this.from =
|
|
1851
|
+
this.from = a(r == null ? void 0 : r.from) ? C(r.from) : (r == null ? void 0 : r.from) ?? null, this.to = a(r == null ? void 0 : r.to) ? C(r.to) : (r == null ? void 0 : r.to) ?? null;
|
|
1758
1852
|
}
|
|
1759
1853
|
}
|
|
1760
|
-
class
|
|
1854
|
+
class qt {
|
|
1761
1855
|
/**
|
|
1762
1856
|
* Инициализирует экземпляр класса {@link TemplatesListFilters}.
|
|
1763
1857
|
*
|
|
@@ -1817,11 +1911,11 @@ class Ot {
|
|
|
1817
1911
|
return Object.keys(this).forEach((c) => {
|
|
1818
1912
|
const u = this[c];
|
|
1819
1913
|
// eslint-disable-next-line prettier/prettier
|
|
1820
|
-
|
|
1914
|
+
D(u) || a(u) && u.trim().length === 0 || qe(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
1821
1915
|
}), !((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;
|
|
1822
1916
|
}
|
|
1823
1917
|
}
|
|
1824
|
-
class
|
|
1918
|
+
class ne extends b {
|
|
1825
1919
|
/**
|
|
1826
1920
|
* Инициализирует экземпляр класса {@link PricingRole}.
|
|
1827
1921
|
*
|
|
@@ -1856,7 +1950,7 @@ class ie extends b {
|
|
|
1856
1950
|
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;
|
|
1857
1951
|
}
|
|
1858
1952
|
}
|
|
1859
|
-
class
|
|
1953
|
+
class We {
|
|
1860
1954
|
/**
|
|
1861
1955
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
1862
1956
|
*
|
|
@@ -1875,10 +1969,10 @@ class He {
|
|
|
1875
1969
|
* Минимальный коэффициент цены.
|
|
1876
1970
|
*/
|
|
1877
1971
|
t(this, "minCoefficient");
|
|
1878
|
-
this.role = new
|
|
1972
|
+
this.role = new ne(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
|
|
1879
1973
|
}
|
|
1880
1974
|
}
|
|
1881
|
-
class
|
|
1975
|
+
class Zr {
|
|
1882
1976
|
/**
|
|
1883
1977
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
1884
1978
|
*
|
|
@@ -1900,7 +1994,7 @@ class Yr {
|
|
|
1900
1994
|
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;
|
|
1901
1995
|
}
|
|
1902
1996
|
}
|
|
1903
|
-
class
|
|
1997
|
+
class et {
|
|
1904
1998
|
/**
|
|
1905
1999
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
1906
2000
|
*
|
|
@@ -1922,7 +2016,7 @@ class Xr {
|
|
|
1922
2016
|
this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
|
|
1923
2017
|
}
|
|
1924
2018
|
}
|
|
1925
|
-
class
|
|
2019
|
+
class rt {
|
|
1926
2020
|
/**
|
|
1927
2021
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
1928
2022
|
*
|
|
@@ -1967,7 +2061,7 @@ class Zr {
|
|
|
1967
2061
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
1968
2062
|
}
|
|
1969
2063
|
}
|
|
1970
|
-
class
|
|
2064
|
+
class tt {
|
|
1971
2065
|
/**
|
|
1972
2066
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
1973
2067
|
*
|
|
@@ -1986,10 +2080,10 @@ class et {
|
|
|
1986
2080
|
* Текущая версия приложения.
|
|
1987
2081
|
*/
|
|
1988
2082
|
t(this, "version");
|
|
1989
|
-
this.date =
|
|
2083
|
+
this.date = a(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";
|
|
1990
2084
|
}
|
|
1991
2085
|
}
|
|
1992
|
-
class
|
|
2086
|
+
class st {
|
|
1993
2087
|
/**
|
|
1994
2088
|
* Инициализирует экземпляр класса {@link WebSocketConfig}.
|
|
1995
2089
|
*
|
|
@@ -2028,7 +2122,7 @@ class rt {
|
|
|
2028
2122
|
this.broadcaster = r.broadcaster ?? "reverb", this.key = r.key ?? "", this.wsHost = r.wsHost ?? "", this.wsPort = r.wsPort ?? 8080, this.wssPort = r.wssPort ?? 8080, this.forceTLS = r.forceTLS ?? !1, this.enabledTransports = r.enabledTransports ?? ["wss"];
|
|
2029
2123
|
}
|
|
2030
2124
|
}
|
|
2031
|
-
class
|
|
2125
|
+
class Ut {
|
|
2032
2126
|
/**
|
|
2033
2127
|
* Инициализирует экземпляр класса {@link AppBaseConfig}.
|
|
2034
2128
|
*
|
|
@@ -2072,17 +2166,17 @@ class qt {
|
|
|
2072
2166
|
*/
|
|
2073
2167
|
t(this, "dateFormats");
|
|
2074
2168
|
var e, s, i;
|
|
2075
|
-
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new
|
|
2169
|
+
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new et(r == null ? void 0 : r.http), this.deviceTypeByResolution = new Zr(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new rt({
|
|
2076
2170
|
environment: this.environment,
|
|
2077
2171
|
...r == null ? void 0 : r.sentry
|
|
2078
|
-
}), this.urls = r == null ? void 0 : r.urls, this.version = new
|
|
2172
|
+
}), this.urls = r == null ? void 0 : r.urls, this.version = new tt(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new st(r.websocket) : void 0, this.dateFormats = {
|
|
2079
2173
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
2080
2174
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
2081
2175
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
2082
2176
|
};
|
|
2083
2177
|
}
|
|
2084
2178
|
}
|
|
2085
|
-
class
|
|
2179
|
+
class Gt extends h {
|
|
2086
2180
|
/**
|
|
2087
2181
|
* Возвращает данные о результатах поиска категорий и товаров.
|
|
2088
2182
|
*
|
|
@@ -2113,7 +2207,7 @@ class Ut extends h {
|
|
|
2113
2207
|
return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
|
|
2114
2208
|
}
|
|
2115
2209
|
}
|
|
2116
|
-
class
|
|
2210
|
+
class Ft extends h {
|
|
2117
2211
|
/**
|
|
2118
2212
|
* Импортирует цены клиента из CSV файла.
|
|
2119
2213
|
*
|
|
@@ -2237,7 +2331,7 @@ class Gt extends h {
|
|
|
2237
2331
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2238
2332
|
increase_percent: s.value
|
|
2239
2333
|
},
|
|
2240
|
-
(o) => new
|
|
2334
|
+
(o) => new Z(o.data)
|
|
2241
2335
|
);
|
|
2242
2336
|
}
|
|
2243
2337
|
/**
|
|
@@ -2249,7 +2343,7 @@ class Gt extends h {
|
|
|
2249
2343
|
* @see /doc/api/internal#/operations/api_internal_client_price_products_remove
|
|
2250
2344
|
*/
|
|
2251
2345
|
removeProductPrice(r, e) {
|
|
2252
|
-
return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new
|
|
2346
|
+
return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new Z(s.data));
|
|
2253
2347
|
}
|
|
2254
2348
|
/**
|
|
2255
2349
|
* Добавляет указанный продукт в список товаров для дополнительных продаж.
|
|
@@ -2324,7 +2418,7 @@ class jt extends h {
|
|
|
2324
2418
|
return this.get(
|
|
2325
2419
|
`/internal/clients/${r}/price/templates`,
|
|
2326
2420
|
{},
|
|
2327
|
-
(e) => e.data.map((s) => new
|
|
2421
|
+
(e) => e.data.map((s) => new se(s))
|
|
2328
2422
|
);
|
|
2329
2423
|
}
|
|
2330
2424
|
/**
|
|
@@ -2335,7 +2429,7 @@ class jt extends h {
|
|
|
2335
2429
|
* @see /doc/api/internal#/operations/api_internal_client_price_template_get_active
|
|
2336
2430
|
*/
|
|
2337
2431
|
getActiveTemplate(r) {
|
|
2338
|
-
return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new
|
|
2432
|
+
return this.get(`/internal/clients/${r}/price/templates/active`, {}, (e) => new se(e.data));
|
|
2339
2433
|
}
|
|
2340
2434
|
/**
|
|
2341
2435
|
* Добавляет связь между клиентом и шаблоном прайс-листа.
|
|
@@ -2354,7 +2448,7 @@ class jt extends h {
|
|
|
2354
2448
|
startAt: s.startAt && q(s.startAt, i),
|
|
2355
2449
|
endAt: s.endAt && q(s.endAt, i)
|
|
2356
2450
|
},
|
|
2357
|
-
(o) => new
|
|
2451
|
+
(o) => new se(o.data),
|
|
2358
2452
|
{},
|
|
2359
2453
|
!0
|
|
2360
2454
|
);
|
|
@@ -2388,7 +2482,7 @@ class jt extends h {
|
|
|
2388
2482
|
startAt: i.startAt && q(i.startAt, o),
|
|
2389
2483
|
endAt: i.endAt && q(i.endAt, o)
|
|
2390
2484
|
},
|
|
2391
|
-
(c) => new
|
|
2485
|
+
(c) => new se(c.data)
|
|
2392
2486
|
);
|
|
2393
2487
|
}
|
|
2394
2488
|
/**
|
|
@@ -2404,7 +2498,7 @@ class jt extends h {
|
|
|
2404
2498
|
return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
|
|
2405
2499
|
}
|
|
2406
2500
|
}
|
|
2407
|
-
class
|
|
2501
|
+
class Mt extends h {
|
|
2408
2502
|
/**
|
|
2409
2503
|
* Возвращает список данных о корневых категориях.
|
|
2410
2504
|
*
|
|
@@ -2418,7 +2512,7 @@ class Ft extends h {
|
|
|
2418
2512
|
{
|
|
2419
2513
|
showHidden: r
|
|
2420
2514
|
},
|
|
2421
|
-
(e) => e.data.map((s) => new
|
|
2515
|
+
(e) => e.data.map((s) => new E(s))
|
|
2422
2516
|
);
|
|
2423
2517
|
}
|
|
2424
2518
|
/**
|
|
@@ -2437,7 +2531,7 @@ class Ft extends h {
|
|
|
2437
2531
|
showHidden: e,
|
|
2438
2532
|
withNestedCategories: s
|
|
2439
2533
|
},
|
|
2440
|
-
(i) => new
|
|
2534
|
+
(i) => new E(i.data)
|
|
2441
2535
|
);
|
|
2442
2536
|
}
|
|
2443
2537
|
/**
|
|
@@ -2446,7 +2540,7 @@ class Ft extends h {
|
|
|
2446
2540
|
* @param categoryID Идентификатор категории продуктов.
|
|
2447
2541
|
*/
|
|
2448
2542
|
getPublicCategoryData(r) {
|
|
2449
|
-
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new
|
|
2543
|
+
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new E(e.data));
|
|
2450
2544
|
}
|
|
2451
2545
|
/**
|
|
2452
2546
|
* Возвращает список продуктов категории.
|
|
@@ -2464,7 +2558,7 @@ class Ft extends h {
|
|
|
2464
2558
|
showHidden: s,
|
|
2465
2559
|
withPriceCoefficients: e
|
|
2466
2560
|
},
|
|
2467
|
-
(i) =>
|
|
2561
|
+
(i) => Pe(i.data, (o) => new x(o))
|
|
2468
2562
|
);
|
|
2469
2563
|
}
|
|
2470
2564
|
/**
|
|
@@ -2477,7 +2571,7 @@ class Ft extends h {
|
|
|
2477
2571
|
getCategoryProductsCoefficients(r) {
|
|
2478
2572
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2479
2573
|
const { data: s } = e;
|
|
2480
|
-
return
|
|
2574
|
+
return dr(s, (i) => i.map((o) => new Ge(o))), s;
|
|
2481
2575
|
});
|
|
2482
2576
|
}
|
|
2483
2577
|
/**
|
|
@@ -2489,14 +2583,14 @@ class Ft extends h {
|
|
|
2489
2583
|
publicSimpleSearch(r, e = 10) {
|
|
2490
2584
|
return new Promise((s, i) => {
|
|
2491
2585
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2492
|
-
s(o.categories.map((c) => new
|
|
2586
|
+
s(o.categories.map((c) => new E(c)));
|
|
2493
2587
|
}).catch((o) => {
|
|
2494
2588
|
i(o);
|
|
2495
2589
|
});
|
|
2496
2590
|
});
|
|
2497
2591
|
}
|
|
2498
2592
|
}
|
|
2499
|
-
class
|
|
2593
|
+
class Ht extends h {
|
|
2500
2594
|
/**
|
|
2501
2595
|
* Возвращает данные об указанном продукте.
|
|
2502
2596
|
*
|
|
@@ -2527,7 +2621,7 @@ class Mt extends h {
|
|
|
2527
2621
|
return this.get(
|
|
2528
2622
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2529
2623
|
{},
|
|
2530
|
-
(e) =>
|
|
2624
|
+
(e) => Pe(e.data, (s) => new Ge(s))
|
|
2531
2625
|
);
|
|
2532
2626
|
}
|
|
2533
2627
|
/**
|
|
@@ -2546,7 +2640,7 @@ class Mt extends h {
|
|
|
2546
2640
|
});
|
|
2547
2641
|
}
|
|
2548
2642
|
}
|
|
2549
|
-
class
|
|
2643
|
+
class Bt extends h {
|
|
2550
2644
|
/**
|
|
2551
2645
|
* Возвращает список данных о корневых категориях указанного клиента.
|
|
2552
2646
|
*
|
|
@@ -2562,7 +2656,7 @@ class Ht extends h {
|
|
|
2562
2656
|
clientId: r,
|
|
2563
2657
|
showHidden: e
|
|
2564
2658
|
},
|
|
2565
|
-
(s) => s.data.map((i) => new
|
|
2659
|
+
(s) => s.data.map((i) => new we(i))
|
|
2566
2660
|
);
|
|
2567
2661
|
}
|
|
2568
2662
|
/**
|
|
@@ -2583,7 +2677,7 @@ class Ht extends h {
|
|
|
2583
2677
|
showHidden: s,
|
|
2584
2678
|
withNestedCategories: i
|
|
2585
2679
|
},
|
|
2586
|
-
(o) => new
|
|
2680
|
+
(o) => new we(o.data)
|
|
2587
2681
|
);
|
|
2588
2682
|
}
|
|
2589
2683
|
/**
|
|
@@ -2604,11 +2698,11 @@ class Ht extends h {
|
|
|
2604
2698
|
showHidden: i,
|
|
2605
2699
|
withPriceCoefficients: s
|
|
2606
2700
|
},
|
|
2607
|
-
(o) =>
|
|
2701
|
+
(o) => Pe(o.data, (c) => new Z(c))
|
|
2608
2702
|
);
|
|
2609
2703
|
}
|
|
2610
2704
|
}
|
|
2611
|
-
class
|
|
2705
|
+
class zt extends h {
|
|
2612
2706
|
/**
|
|
2613
2707
|
* Возвращает данные об указанном продукте для указанного клиента.
|
|
2614
2708
|
*
|
|
@@ -2625,12 +2719,12 @@ class Bt extends h {
|
|
|
2625
2719
|
clientId: e,
|
|
2626
2720
|
withPriceCoefficients: s
|
|
2627
2721
|
},
|
|
2628
|
-
(i) => new
|
|
2722
|
+
(i) => new Z(i.data)
|
|
2629
2723
|
);
|
|
2630
2724
|
}
|
|
2631
2725
|
}
|
|
2632
|
-
var
|
|
2633
|
-
class
|
|
2726
|
+
var He = /* @__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))(He || {});
|
|
2727
|
+
class Je {
|
|
2634
2728
|
/**
|
|
2635
2729
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
2636
2730
|
*
|
|
@@ -2649,7 +2743,7 @@ class Be {
|
|
|
2649
2743
|
* Значение с которым сравнивается поле.
|
|
2650
2744
|
*/
|
|
2651
2745
|
t(this, "value");
|
|
2652
|
-
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ??
|
|
2746
|
+
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? He.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2653
2747
|
}
|
|
2654
2748
|
/**
|
|
2655
2749
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -2661,10 +2755,10 @@ class Be {
|
|
|
2661
2755
|
field: this.field,
|
|
2662
2756
|
op: this.op
|
|
2663
2757
|
};
|
|
2664
|
-
return r.value =
|
|
2758
|
+
return r.value = ke(this.value) ? q(this.value, T.getConfig().dateFormats.api) : this.value, r;
|
|
2665
2759
|
}
|
|
2666
2760
|
}
|
|
2667
|
-
class
|
|
2761
|
+
class ue {
|
|
2668
2762
|
/**
|
|
2669
2763
|
* Инициализирует экземпляр класса {@link FilterGroup}.
|
|
2670
2764
|
*
|
|
@@ -2684,7 +2778,7 @@ class le {
|
|
|
2684
2778
|
*/
|
|
2685
2779
|
t(this, "groups");
|
|
2686
2780
|
var e, s;
|
|
2687
|
-
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
|
|
2781
|
+
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 Je(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new ue(i))) ?? [];
|
|
2688
2782
|
}
|
|
2689
2783
|
/**
|
|
2690
2784
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2694,12 +2788,12 @@ class le {
|
|
|
2694
2788
|
toPrimitive() {
|
|
2695
2789
|
return {
|
|
2696
2790
|
groupOp: this.groupOp,
|
|
2697
|
-
filters: this.filters.map((r) => r instanceof
|
|
2698
|
-
groups: this.groups.map((r) => r instanceof
|
|
2791
|
+
filters: this.filters.map((r) => r instanceof Je && qe(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2792
|
+
groups: this.groups.map((r) => r instanceof ue ? r.toPrimitive() : r)
|
|
2699
2793
|
};
|
|
2700
2794
|
}
|
|
2701
2795
|
}
|
|
2702
|
-
class
|
|
2796
|
+
class $e extends h {
|
|
2703
2797
|
/**
|
|
2704
2798
|
* Получает пагинированный список данных.
|
|
2705
2799
|
*
|
|
@@ -2716,10 +2810,10 @@ class De extends h {
|
|
|
2716
2810
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2717
2811
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2718
2812
|
};
|
|
2719
|
-
return e && (p.filters = JSON.stringify((e instanceof
|
|
2813
|
+
return e && (p.filters = JSON.stringify((e instanceof ue ? e : new ue(e)).toPrimitive())), Y(s) || (p.sort = Q(s) ? s : [s]), o && (p = { ...p, ...o }), this.get(r, p, c, u);
|
|
2720
2814
|
}
|
|
2721
2815
|
}
|
|
2722
|
-
class
|
|
2816
|
+
class Et extends $e {
|
|
2723
2817
|
/**
|
|
2724
2818
|
* Возвращает список шаблонов прайс-листа.
|
|
2725
2819
|
*
|
|
@@ -2791,7 +2885,7 @@ class zt extends De {
|
|
|
2791
2885
|
return this.get(
|
|
2792
2886
|
`/internal/price/templates/${r}/products`,
|
|
2793
2887
|
{},
|
|
2794
|
-
(e) => e.data.map((s) => new
|
|
2888
|
+
(e) => e.data.map((s) => new Se(s))
|
|
2795
2889
|
);
|
|
2796
2890
|
}
|
|
2797
2891
|
/**
|
|
@@ -2803,7 +2897,7 @@ class zt extends De {
|
|
|
2803
2897
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
2804
2898
|
*/
|
|
2805
2899
|
getProductTemplatePrice(r, e) {
|
|
2806
|
-
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new
|
|
2900
|
+
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Se(s.data));
|
|
2807
2901
|
}
|
|
2808
2902
|
/**
|
|
2809
2903
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -2822,7 +2916,7 @@ class zt extends De {
|
|
|
2822
2916
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2823
2917
|
increase_percent: s.value
|
|
2824
2918
|
},
|
|
2825
|
-
(o) => new
|
|
2919
|
+
(o) => new Se(o.data)
|
|
2826
2920
|
);
|
|
2827
2921
|
}
|
|
2828
2922
|
/**
|
|
@@ -2847,7 +2941,7 @@ class zt extends De {
|
|
|
2847
2941
|
return this.get(
|
|
2848
2942
|
`/internal/price/templates/${r}/categories`,
|
|
2849
2943
|
{},
|
|
2850
|
-
(e) => e.data.map((s) => new
|
|
2944
|
+
(e) => e.data.map((s) => new be(s))
|
|
2851
2945
|
);
|
|
2852
2946
|
}
|
|
2853
2947
|
/**
|
|
@@ -2862,7 +2956,7 @@ class zt extends De {
|
|
|
2862
2956
|
return this.get(
|
|
2863
2957
|
`/internal/price/templates/${r}/categories/${e}`,
|
|
2864
2958
|
{},
|
|
2865
|
-
(s) => new
|
|
2959
|
+
(s) => new be(s.data)
|
|
2866
2960
|
);
|
|
2867
2961
|
}
|
|
2868
2962
|
/**
|
|
@@ -2888,7 +2982,7 @@ class zt extends De {
|
|
|
2888
2982
|
},
|
|
2889
2983
|
params: i ? { recursively: !0 } : {}
|
|
2890
2984
|
},
|
|
2891
|
-
(c) => new
|
|
2985
|
+
(c) => new be(c.data)
|
|
2892
2986
|
);
|
|
2893
2987
|
}
|
|
2894
2988
|
/**
|
|
@@ -2919,7 +3013,7 @@ class zt extends De {
|
|
|
2919
3013
|
return this.get(
|
|
2920
3014
|
`/internal/price/templates/${r}/clients`,
|
|
2921
3015
|
{},
|
|
2922
|
-
(e) => e.data.map((s) => new
|
|
3016
|
+
(e) => e.data.map((s) => new se(s))
|
|
2923
3017
|
);
|
|
2924
3018
|
}
|
|
2925
3019
|
}
|
|
@@ -2930,7 +3024,7 @@ class Wt extends h {
|
|
|
2930
3024
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get_list
|
|
2931
3025
|
*/
|
|
2932
3026
|
getRoles() {
|
|
2933
|
-
return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new
|
|
3027
|
+
return this.get("/internal/price/roles", {}, (r) => r.data.map((e) => new ne(e)));
|
|
2934
3028
|
}
|
|
2935
3029
|
/**
|
|
2936
3030
|
* Добавляет новую роль ценообразования.
|
|
@@ -2940,7 +3034,7 @@ class Wt extends h {
|
|
|
2940
3034
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_create
|
|
2941
3035
|
*/
|
|
2942
3036
|
createRole(r) {
|
|
2943
|
-
return this.post("/internal/price/roles", r, (e) => new
|
|
3037
|
+
return this.post("/internal/price/roles", r, (e) => new ne(e.data));
|
|
2944
3038
|
}
|
|
2945
3039
|
/**
|
|
2946
3040
|
* Возвращает данные роли ценообразования.
|
|
@@ -2950,7 +3044,7 @@ class Wt extends h {
|
|
|
2950
3044
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_get
|
|
2951
3045
|
*/
|
|
2952
3046
|
getRole(r) {
|
|
2953
|
-
return this.get(`/internal/price/roles/${r}`, {}, (e) => new
|
|
3047
|
+
return this.get(`/internal/price/roles/${r}`, {}, (e) => new ne(e.data));
|
|
2954
3048
|
}
|
|
2955
3049
|
/**
|
|
2956
3050
|
* Обновляет данные роли ценообразования.
|
|
@@ -2961,7 +3055,7 @@ class Wt extends h {
|
|
|
2961
3055
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_roles_update
|
|
2962
3056
|
*/
|
|
2963
3057
|
updateRole(r, e) {
|
|
2964
|
-
return this.patch(`/internal/price/roles/${r}`, e, (s) => new
|
|
3058
|
+
return this.patch(`/internal/price/roles/${r}`, e, (s) => new ne(s.data));
|
|
2965
3059
|
}
|
|
2966
3060
|
/**
|
|
2967
3061
|
* Удаляет роль ценообразования.
|
|
@@ -2984,7 +3078,7 @@ class Wt extends h {
|
|
|
2984
3078
|
return this.get(
|
|
2985
3079
|
`/internal/price/roles/rules/categories/${r}`,
|
|
2986
3080
|
{},
|
|
2987
|
-
(e) => e.data.map((s) => new
|
|
3081
|
+
(e) => e.data.map((s) => new We(s))
|
|
2988
3082
|
);
|
|
2989
3083
|
}
|
|
2990
3084
|
/**
|
|
@@ -2999,11 +3093,11 @@ class Wt extends h {
|
|
|
2999
3093
|
return this.patch(
|
|
3000
3094
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3001
3095
|
e,
|
|
3002
|
-
(s) => s.data.map((i) => new
|
|
3096
|
+
(s) => s.data.map((i) => new We(i))
|
|
3003
3097
|
);
|
|
3004
3098
|
}
|
|
3005
3099
|
}
|
|
3006
|
-
class
|
|
3100
|
+
class Jt extends $e {
|
|
3007
3101
|
/**
|
|
3008
3102
|
* Возвращает пагинированный список свойств.
|
|
3009
3103
|
*
|
|
@@ -3016,7 +3110,7 @@ class Et extends De {
|
|
|
3016
3110
|
getProperties(r, e, s) {
|
|
3017
3111
|
return this.getPaginated("/internal/catalog/properties", r, e, s, {}, (i) => {
|
|
3018
3112
|
const o = { ...i.data };
|
|
3019
|
-
return o.data = o.data.map((c) => new
|
|
3113
|
+
return o.data = o.data.map((c) => new ie(c)), o;
|
|
3020
3114
|
});
|
|
3021
3115
|
}
|
|
3022
3116
|
/**
|
|
@@ -3033,7 +3127,7 @@ class Et extends De {
|
|
|
3033
3127
|
...s,
|
|
3034
3128
|
type: e
|
|
3035
3129
|
},
|
|
3036
|
-
(i) => new
|
|
3130
|
+
(i) => new ie(i.data)
|
|
3037
3131
|
);
|
|
3038
3132
|
}
|
|
3039
3133
|
/**
|
|
@@ -3043,7 +3137,7 @@ class Et extends De {
|
|
|
3043
3137
|
* @see /doc/api/internal#/operations/api_internal_catalog_properties_get
|
|
3044
3138
|
*/
|
|
3045
3139
|
getProperty(r) {
|
|
3046
|
-
return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new
|
|
3140
|
+
return this.get(`/internal/catalog/properties/${r}`, {}, (e) => new ie(e.data));
|
|
3047
3141
|
}
|
|
3048
3142
|
/**
|
|
3049
3143
|
* Обновляет существующее свойство.
|
|
@@ -3060,7 +3154,7 @@ class Et extends De {
|
|
|
3060
3154
|
...i,
|
|
3061
3155
|
type: s
|
|
3062
3156
|
},
|
|
3063
|
-
(o) => new
|
|
3157
|
+
(o) => new ie(o.data)
|
|
3064
3158
|
);
|
|
3065
3159
|
}
|
|
3066
3160
|
/**
|
|
@@ -3079,7 +3173,7 @@ class Et extends De {
|
|
|
3079
3173
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
|
|
3080
3174
|
*/
|
|
3081
3175
|
getProductProperties(r) {
|
|
3082
|
-
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
3176
|
+
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new z(s)));
|
|
3083
3177
|
}
|
|
3084
3178
|
/**
|
|
3085
3179
|
* Возвращает значение свойства продукта.
|
|
@@ -3089,7 +3183,7 @@ class Et extends De {
|
|
|
3089
3183
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
|
|
3090
3184
|
*/
|
|
3091
3185
|
getProductProperty(r, e) {
|
|
3092
|
-
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new
|
|
3186
|
+
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new z(s.data));
|
|
3093
3187
|
}
|
|
3094
3188
|
/**
|
|
3095
3189
|
* Обновляет значение свойства продукта.
|
|
@@ -3100,7 +3194,7 @@ class Et extends De {
|
|
|
3100
3194
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
|
|
3101
3195
|
*/
|
|
3102
3196
|
updateProductProperty(r, e, s) {
|
|
3103
|
-
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new
|
|
3197
|
+
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new z(i.data));
|
|
3104
3198
|
}
|
|
3105
3199
|
/**
|
|
3106
3200
|
* Удаляет значение свойства продукта.
|
|
@@ -3225,7 +3319,7 @@ class Et extends De {
|
|
|
3225
3319
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
|
|
3226
3320
|
*/
|
|
3227
3321
|
getCategoryProperties(r) {
|
|
3228
|
-
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
3322
|
+
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new z(s)));
|
|
3229
3323
|
}
|
|
3230
3324
|
/**
|
|
3231
3325
|
* Возвращает значение свойства категории.
|
|
@@ -3235,7 +3329,7 @@ class Et extends De {
|
|
|
3235
3329
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
|
|
3236
3330
|
*/
|
|
3237
3331
|
getCategoryProperty(r, e) {
|
|
3238
|
-
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new
|
|
3332
|
+
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new z(s.data));
|
|
3239
3333
|
}
|
|
3240
3334
|
/**
|
|
3241
3335
|
* Обновляет значение свойства категории.
|
|
@@ -3246,7 +3340,7 @@ class Et extends De {
|
|
|
3246
3340
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
|
|
3247
3341
|
*/
|
|
3248
3342
|
updateCategoryProperty(r, e, s) {
|
|
3249
|
-
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new
|
|
3343
|
+
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new z(i.data));
|
|
3250
3344
|
}
|
|
3251
3345
|
/**
|
|
3252
3346
|
* Удаляет значение свойства категории.
|
|
@@ -3375,7 +3469,7 @@ class Et extends De {
|
|
|
3375
3469
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3376
3470
|
}
|
|
3377
3471
|
}
|
|
3378
|
-
function
|
|
3472
|
+
function Ve(n, r, e) {
|
|
3379
3473
|
let s;
|
|
3380
3474
|
return n.some((i) => {
|
|
3381
3475
|
if (i.type === e && i.id === r)
|
|
@@ -3384,37 +3478,37 @@ function ze(n, r, e) {
|
|
|
3384
3478
|
return !1;
|
|
3385
3479
|
const o = i;
|
|
3386
3480
|
if (o.products && o.products.length > 0) {
|
|
3387
|
-
const c =
|
|
3481
|
+
const c = Ve(o.products, r, e);
|
|
3388
3482
|
if (c)
|
|
3389
3483
|
return s = c, !0;
|
|
3390
3484
|
}
|
|
3391
3485
|
if (o.categories && o.categories.length > 0) {
|
|
3392
|
-
const c =
|
|
3486
|
+
const c = Ve(o.categories, r, e);
|
|
3393
3487
|
if (c)
|
|
3394
3488
|
return s = c, !0;
|
|
3395
3489
|
}
|
|
3396
3490
|
return !1;
|
|
3397
3491
|
}), s;
|
|
3398
3492
|
}
|
|
3399
|
-
function
|
|
3493
|
+
function Ke(n) {
|
|
3400
3494
|
const r = [];
|
|
3401
3495
|
return n.forEach((e) => {
|
|
3402
3496
|
if (r.push(e), e.type === "category") {
|
|
3403
3497
|
const s = e;
|
|
3404
|
-
s.products && s.products.length > 0 && r.push(...
|
|
3498
|
+
s.products && s.products.length > 0 && r.push(...Ke(s.products)), s.categories && s.categories.length > 0 && r.push(...Ke(s.categories));
|
|
3405
3499
|
}
|
|
3406
3500
|
}), r;
|
|
3407
3501
|
}
|
|
3408
|
-
var
|
|
3409
|
-
class
|
|
3502
|
+
var it = /* @__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))(it || {}), k = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(k || {});
|
|
3503
|
+
class nt extends v {
|
|
3410
3504
|
}
|
|
3411
|
-
class
|
|
3505
|
+
class gr extends v {
|
|
3412
3506
|
}
|
|
3413
|
-
class
|
|
3507
|
+
class Vt extends v {
|
|
3414
3508
|
}
|
|
3415
|
-
class
|
|
3509
|
+
class ot extends v {
|
|
3416
3510
|
}
|
|
3417
|
-
class
|
|
3511
|
+
class ae extends b {
|
|
3418
3512
|
/**
|
|
3419
3513
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
3420
3514
|
*
|
|
@@ -3433,7 +3527,7 @@ class ye extends b {
|
|
|
3433
3527
|
e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
|
|
3434
3528
|
}
|
|
3435
3529
|
}
|
|
3436
|
-
class j extends
|
|
3530
|
+
class j extends v {
|
|
3437
3531
|
/**
|
|
3438
3532
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
3439
3533
|
*/
|
|
@@ -3446,21 +3540,21 @@ class j extends P {
|
|
|
3446
3540
|
});
|
|
3447
3541
|
}
|
|
3448
3542
|
}
|
|
3449
|
-
class
|
|
3543
|
+
class ct extends v {
|
|
3450
3544
|
}
|
|
3451
|
-
class
|
|
3545
|
+
class lt extends v {
|
|
3452
3546
|
}
|
|
3453
|
-
class
|
|
3547
|
+
class re extends v {
|
|
3454
3548
|
}
|
|
3455
|
-
class
|
|
3549
|
+
class ut extends v {
|
|
3456
3550
|
}
|
|
3457
|
-
class
|
|
3551
|
+
class pt extends v {
|
|
3458
3552
|
}
|
|
3459
|
-
class
|
|
3553
|
+
class mr extends v {
|
|
3460
3554
|
}
|
|
3461
|
-
class
|
|
3555
|
+
class fr extends v {
|
|
3462
3556
|
}
|
|
3463
|
-
class
|
|
3557
|
+
class Ne extends H {
|
|
3464
3558
|
/**
|
|
3465
3559
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3466
3560
|
*
|
|
@@ -3487,11 +3581,11 @@ class Le extends M {
|
|
|
3487
3581
|
/**
|
|
3488
3582
|
* Данные о валюте.
|
|
3489
3583
|
*/
|
|
3490
|
-
t(this, "currency", new
|
|
3491
|
-
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new
|
|
3584
|
+
t(this, "currency", new ae());
|
|
3585
|
+
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new ae(e.currency));
|
|
3492
3586
|
}
|
|
3493
3587
|
}
|
|
3494
|
-
class
|
|
3588
|
+
class Oe extends b {
|
|
3495
3589
|
/**
|
|
3496
3590
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3497
3591
|
*
|
|
@@ -3510,7 +3604,7 @@ class xe extends b {
|
|
|
3510
3604
|
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;
|
|
3511
3605
|
}
|
|
3512
3606
|
}
|
|
3513
|
-
class
|
|
3607
|
+
class M extends Oe {
|
|
3514
3608
|
/**
|
|
3515
3609
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3516
3610
|
*
|
|
@@ -3542,10 +3636,10 @@ class F extends xe {
|
|
|
3542
3636
|
* Дата и время последнего удаления.
|
|
3543
3637
|
*/
|
|
3544
3638
|
t(this, "deletedAt");
|
|
3545
|
-
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 =
|
|
3639
|
+
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 = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3546
3640
|
}
|
|
3547
3641
|
}
|
|
3548
|
-
class
|
|
3642
|
+
class yr extends b {
|
|
3549
3643
|
/**
|
|
3550
3644
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3551
3645
|
*
|
|
@@ -3557,7 +3651,7 @@ class gr extends b {
|
|
|
3557
3651
|
/**
|
|
3558
3652
|
* Данные о менеджере.
|
|
3559
3653
|
*/
|
|
3560
|
-
t(this, "manager", new
|
|
3654
|
+
t(this, "manager", new ce());
|
|
3561
3655
|
/**
|
|
3562
3656
|
* Данные об организационно-правовой форме.
|
|
3563
3657
|
*/
|
|
@@ -3569,7 +3663,7 @@ class gr extends b {
|
|
|
3569
3663
|
/**
|
|
3570
3664
|
* Группа партнеров (направление деятельности).
|
|
3571
3665
|
*/
|
|
3572
|
-
t(this, "partnerGroup", new
|
|
3666
|
+
t(this, "partnerGroup", new re());
|
|
3573
3667
|
/**
|
|
3574
3668
|
* Список контактных лиц контрагента.
|
|
3575
3669
|
*/
|
|
@@ -3603,22 +3697,22 @@ class gr extends b {
|
|
|
3603
3697
|
*/
|
|
3604
3698
|
t(this, "updater");
|
|
3605
3699
|
if (e) {
|
|
3606
|
-
if (this.opf = new j(e.opf), this.salesDirection = new N(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt =
|
|
3700
|
+
if (this.opf = new j(e.opf), this.salesDirection = new N(e.salesDirection), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new F(e.creator) : void 0, this.updatedAt = a(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new F(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new re(e.partnerGroup)), e.manager && (this.manager = new ce(e.manager)), e.contacts) {
|
|
3607
3701
|
const s = [];
|
|
3608
3702
|
e.contacts.forEach((i) => {
|
|
3609
|
-
s.push(new
|
|
3703
|
+
s.push(new M(i));
|
|
3610
3704
|
}), this.contacts = s;
|
|
3611
3705
|
}
|
|
3612
3706
|
if (e.bankAccounts) {
|
|
3613
3707
|
const s = [];
|
|
3614
3708
|
e.bankAccounts.forEach((i) => {
|
|
3615
|
-
s.push(new
|
|
3709
|
+
s.push(new Ne(i));
|
|
3616
3710
|
}), this.bankAccounts = s;
|
|
3617
3711
|
}
|
|
3618
3712
|
}
|
|
3619
3713
|
}
|
|
3620
3714
|
}
|
|
3621
|
-
class
|
|
3715
|
+
class ht extends yr {
|
|
3622
3716
|
/**
|
|
3623
3717
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3624
3718
|
*
|
|
@@ -3628,7 +3722,7 @@ class ut extends gr {
|
|
|
3628
3722
|
super(r);
|
|
3629
3723
|
}
|
|
3630
3724
|
}
|
|
3631
|
-
class
|
|
3725
|
+
class wr extends yr {
|
|
3632
3726
|
/**
|
|
3633
3727
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
3634
3728
|
*
|
|
@@ -3671,7 +3765,7 @@ class mr extends gr {
|
|
|
3671
3765
|
e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
|
|
3672
3766
|
}
|
|
3673
3767
|
}
|
|
3674
|
-
class
|
|
3768
|
+
class ar extends wr {
|
|
3675
3769
|
/**
|
|
3676
3770
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
3677
3771
|
*
|
|
@@ -3686,7 +3780,7 @@ class fr extends mr {
|
|
|
3686
3780
|
e && (this.kpp = e.kpp ?? "");
|
|
3687
3781
|
}
|
|
3688
3782
|
}
|
|
3689
|
-
class
|
|
3783
|
+
class gt extends ar {
|
|
3690
3784
|
/**
|
|
3691
3785
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3692
3786
|
*
|
|
@@ -3697,7 +3791,7 @@ class pt extends fr {
|
|
|
3697
3791
|
/**
|
|
3698
3792
|
* Страна регистрации юридического лица нерезидента.
|
|
3699
3793
|
*/
|
|
3700
|
-
t(this, "registrationCountry", new
|
|
3794
|
+
t(this, "registrationCountry", new ee());
|
|
3701
3795
|
/**
|
|
3702
3796
|
* Регистрационный номер юридического лица нерезидента.
|
|
3703
3797
|
*/
|
|
@@ -3706,10 +3800,10 @@ class pt extends fr {
|
|
|
3706
3800
|
* Налоговый номер юридического лица нерезидента.
|
|
3707
3801
|
*/
|
|
3708
3802
|
t(this, "taxNumber", "");
|
|
3709
|
-
e && (this.registrationCountry = new
|
|
3803
|
+
e && (this.registrationCountry = new ee(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
3710
3804
|
}
|
|
3711
3805
|
}
|
|
3712
|
-
class
|
|
3806
|
+
class Ce {
|
|
3713
3807
|
/**
|
|
3714
3808
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
3715
3809
|
*
|
|
@@ -3718,17 +3812,17 @@ class we {
|
|
|
3718
3812
|
static createInstance(r) {
|
|
3719
3813
|
switch (r.opf.slug) {
|
|
3720
3814
|
case k.Ic:
|
|
3721
|
-
return new
|
|
3815
|
+
return new wr(r);
|
|
3722
3816
|
case k.UlR:
|
|
3723
|
-
return new
|
|
3817
|
+
return new ar(r);
|
|
3724
3818
|
case k.UlNr:
|
|
3725
|
-
return new
|
|
3819
|
+
return new gt(r);
|
|
3726
3820
|
default:
|
|
3727
|
-
return new
|
|
3821
|
+
return new ht(r);
|
|
3728
3822
|
}
|
|
3729
3823
|
}
|
|
3730
3824
|
}
|
|
3731
|
-
class _e extends
|
|
3825
|
+
class _e extends H {
|
|
3732
3826
|
/**
|
|
3733
3827
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
3734
3828
|
*
|
|
@@ -3743,7 +3837,7 @@ class _e extends M {
|
|
|
3743
3837
|
this.isPrimary = e.isPrimary;
|
|
3744
3838
|
}
|
|
3745
3839
|
}
|
|
3746
|
-
class
|
|
3840
|
+
class mt extends M {
|
|
3747
3841
|
/**
|
|
3748
3842
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3749
3843
|
*
|
|
@@ -3771,7 +3865,7 @@ class ht extends F {
|
|
|
3771
3865
|
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new _e(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new _e(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new _e(s))));
|
|
3772
3866
|
}
|
|
3773
3867
|
}
|
|
3774
|
-
class
|
|
3868
|
+
class ve extends Vr {
|
|
3775
3869
|
/**
|
|
3776
3870
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
3777
3871
|
*
|
|
@@ -3808,10 +3902,10 @@ class Ce extends Er {
|
|
|
3808
3902
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
3809
3903
|
*/
|
|
3810
3904
|
t(this, "isTransportCompanyAddress");
|
|
3811
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
3905
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new cr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new M(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
|
|
3812
3906
|
}
|
|
3813
3907
|
}
|
|
3814
|
-
class
|
|
3908
|
+
class Qe extends ge {
|
|
3815
3909
|
/**
|
|
3816
3910
|
* Инициализирует экземпляр класса {@link Client}.
|
|
3817
3911
|
*
|
|
@@ -3865,10 +3959,10 @@ class Ee extends he {
|
|
|
3865
3959
|
* Дополнительные данные о клиенте.
|
|
3866
3960
|
*/
|
|
3867
3961
|
t(this, "extraData");
|
|
3868
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) =>
|
|
3962
|
+
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) => Ce.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new re(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new M(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ve(u))) ?? [], this.channelPrimaryInterest = new gr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new fr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new X(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 De(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
3869
3963
|
}
|
|
3870
3964
|
}
|
|
3871
|
-
class
|
|
3965
|
+
class Kt {
|
|
3872
3966
|
/**
|
|
3873
3967
|
* Инициализирует экземпляр класса {@link ClientsListFilters}.
|
|
3874
3968
|
*
|
|
@@ -3964,7 +4058,7 @@ class Vt {
|
|
|
3964
4058
|
*/
|
|
3965
4059
|
t(this, "lastOrder");
|
|
3966
4060
|
var e, s, i, o, c, u;
|
|
3967
|
-
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((p) => new
|
|
4061
|
+
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.alternativeName = r == null ? void 0 : r.alternativeName, this.searchTerm = r == null ? void 0 : r.searchTerm, this.cities = (e = r == null ? void 0 : r.cities) == null ? void 0 : e.map((p) => new Me(p)), this.region = new le(r == null ? void 0 : r.region), this.country = new ee(r == null ? void 0 : r.country), this.phone = r == null ? void 0 : r.phone, this.email = r == null ? void 0 : r.email, this.isActive = r && Object.prototype.hasOwnProperty.call(r, "isActive") ? r == null ? void 0 : r.isActive : !0, this.createdAt = new O(r == null ? void 0 : r.createdAt), this.lastLoginDate = new O(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = r != null && r.managers && r.managers.length > 0 ? r.managers.map((p) => new Ae(p)) : [], this.salesDirections = (s = r == null ? void 0 : r.salesDirections) == null ? void 0 : s.map((p) => new N(p)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new j(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new X(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (i = r == null ? void 0 : r.partnerGroups) == null ? void 0 : i.map((p) => new re(p)), this.contact = new Oe(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
3968
4062
|
createdAt: new O((o = r == null ? void 0 : r.lastOrder) == null ? void 0 : o.createdAt),
|
|
3969
4063
|
creator: (c = r == null ? void 0 : r.lastOrder) == null ? void 0 : c.creator,
|
|
3970
4064
|
isApproved: (u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.isApproved
|
|
@@ -3990,7 +4084,7 @@ class Vt {
|
|
|
3990
4084
|
this.cities = [];
|
|
3991
4085
|
break;
|
|
3992
4086
|
case "region":
|
|
3993
|
-
this.region = new
|
|
4087
|
+
this.region = new le();
|
|
3994
4088
|
break;
|
|
3995
4089
|
case "isActive":
|
|
3996
4090
|
this.isActive = !0;
|
|
@@ -4017,13 +4111,13 @@ class Vt {
|
|
|
4017
4111
|
this.contragentType = new j();
|
|
4018
4112
|
break;
|
|
4019
4113
|
case "preferredDeliveryType":
|
|
4020
|
-
this.preferredDeliveryType = new
|
|
4114
|
+
this.preferredDeliveryType = new X();
|
|
4021
4115
|
break;
|
|
4022
4116
|
case "partnerGroups":
|
|
4023
4117
|
this.partnerGroups = [];
|
|
4024
4118
|
break;
|
|
4025
4119
|
case "contact":
|
|
4026
|
-
this.contact = new
|
|
4120
|
+
this.contact = new Oe();
|
|
4027
4121
|
break;
|
|
4028
4122
|
}
|
|
4029
4123
|
return this;
|
|
@@ -4038,11 +4132,11 @@ class Vt {
|
|
|
4038
4132
|
return Object.keys(this).forEach((c) => {
|
|
4039
4133
|
const u = this[c];
|
|
4040
4134
|
// eslint-disable-next-line prettier/prettier
|
|
4041
|
-
|
|
4135
|
+
D(u) || a(u) && u.trim().length === 0 || qe(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
4042
4136
|
}), !((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;
|
|
4043
4137
|
}
|
|
4044
4138
|
}
|
|
4045
|
-
class
|
|
4139
|
+
class Cr extends H {
|
|
4046
4140
|
/**
|
|
4047
4141
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
4048
4142
|
*
|
|
@@ -4062,10 +4156,10 @@ class yr extends M {
|
|
|
4062
4156
|
* Признак того, что заказ подтвержден в 1С.
|
|
4063
4157
|
*/
|
|
4064
4158
|
t(this, "isApproved1c");
|
|
4065
|
-
this.createdAt =
|
|
4159
|
+
this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new F(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
4066
4160
|
}
|
|
4067
4161
|
}
|
|
4068
|
-
class
|
|
4162
|
+
class ft extends b {
|
|
4069
4163
|
/**
|
|
4070
4164
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4071
4165
|
*
|
|
@@ -4098,10 +4192,10 @@ class gt extends b {
|
|
|
4098
4192
|
* Список менеджеров.
|
|
4099
4193
|
*/
|
|
4100
4194
|
t(this, "managers");
|
|
4101
|
-
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new
|
|
4195
|
+
(s = e.contacts) != null && s.length && (this.contacts = e.contacts.map((o) => new M(o))), e.lastOrder && (this.lastOrder = new Cr(e.lastOrder)), (i = e.partnerGroups) != null && i.length && (this.partnerGroups = e.partnerGroups.map((o) => new re(o))), e.preferredDeliveryType && (this.preferredDeliveryType = new X(e.preferredDeliveryType)), e.salesDirection && (this.salesDirection = new N(e.salesDirection)), e.managers && (this.managers = e.managers.map((o) => new ce(o)));
|
|
4102
4196
|
}
|
|
4103
4197
|
}
|
|
4104
|
-
class
|
|
4198
|
+
class yt {
|
|
4105
4199
|
/**
|
|
4106
4200
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
4107
4201
|
*
|
|
@@ -4119,7 +4213,7 @@ class mt {
|
|
|
4119
4213
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4120
4214
|
}
|
|
4121
4215
|
}
|
|
4122
|
-
class
|
|
4216
|
+
class Qt extends yt {
|
|
4123
4217
|
/**
|
|
4124
4218
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4125
4219
|
*
|
|
@@ -4150,7 +4244,7 @@ class Kt extends mt {
|
|
|
4150
4244
|
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;
|
|
4151
4245
|
}
|
|
4152
4246
|
}
|
|
4153
|
-
class
|
|
4247
|
+
class Yt {
|
|
4154
4248
|
/**
|
|
4155
4249
|
* Инициализирует экземпляр класса {@link ISortRequestParams}.
|
|
4156
4250
|
*
|
|
@@ -4168,7 +4262,7 @@ class Qt {
|
|
|
4168
4262
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4169
4263
|
}
|
|
4170
4264
|
}
|
|
4171
|
-
class
|
|
4265
|
+
class Xt extends $e {
|
|
4172
4266
|
/**
|
|
4173
4267
|
* Возвращает данные об указанном клиенте.
|
|
4174
4268
|
*
|
|
@@ -4176,7 +4270,7 @@ class Yt extends De {
|
|
|
4176
4270
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
4177
4271
|
*/
|
|
4178
4272
|
getClient(r) {
|
|
4179
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
4273
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new Qe(e.data));
|
|
4180
4274
|
}
|
|
4181
4275
|
/**
|
|
4182
4276
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -4191,7 +4285,7 @@ class Yt extends De {
|
|
|
4191
4285
|
getClientsList(r, e, s, i) {
|
|
4192
4286
|
return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
|
|
4193
4287
|
const c = { ...o.data };
|
|
4194
|
-
return c.data = c.data.map((u) => new
|
|
4288
|
+
return c.data = c.data.map((u) => new ge(u)), c;
|
|
4195
4289
|
});
|
|
4196
4290
|
}
|
|
4197
4291
|
/**
|
|
@@ -4204,7 +4298,7 @@ class Yt extends De {
|
|
|
4204
4298
|
return this.getClientsList({
|
|
4205
4299
|
groupOp: "and",
|
|
4206
4300
|
groups: [],
|
|
4207
|
-
filters: [{ field: "phone", op:
|
|
4301
|
+
filters: [{ field: "phone", op: He.Contains, value: r }]
|
|
4208
4302
|
});
|
|
4209
4303
|
}
|
|
4210
4304
|
/**
|
|
@@ -4218,7 +4312,7 @@ class Yt extends De {
|
|
|
4218
4312
|
const s = r.map((i) => i.id);
|
|
4219
4313
|
return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
|
|
4220
4314
|
let o = [];
|
|
4221
|
-
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new
|
|
4315
|
+
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new ft(c))), o;
|
|
4222
4316
|
});
|
|
4223
4317
|
}
|
|
4224
4318
|
/**
|
|
@@ -4230,7 +4324,7 @@ class Yt extends De {
|
|
|
4230
4324
|
getAllClientContacts(r) {
|
|
4231
4325
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
4232
4326
|
let s = [];
|
|
4233
|
-
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new
|
|
4327
|
+
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new mt(i))), s;
|
|
4234
4328
|
});
|
|
4235
4329
|
}
|
|
4236
4330
|
/**
|
|
@@ -4260,7 +4354,7 @@ class Yt extends De {
|
|
|
4260
4354
|
is_excluded_from_ms_calls_to_clients: r.isExcludedFromMsCallsToClients,
|
|
4261
4355
|
preferred_warehouse_id: (s = r.preferredWarehouse) == null ? void 0 : s.id
|
|
4262
4356
|
},
|
|
4263
|
-
(i) => new
|
|
4357
|
+
(i) => new Qe(i.data),
|
|
4264
4358
|
e
|
|
4265
4359
|
);
|
|
4266
4360
|
}
|
|
@@ -4370,7 +4464,7 @@ class Yt extends De {
|
|
|
4370
4464
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_create
|
|
4371
4465
|
*/
|
|
4372
4466
|
createContragentClientData(r, e, s = {}) {
|
|
4373
|
-
var p, f, m, A, d, I,
|
|
4467
|
+
var p, f, m, A, d, I, S, _;
|
|
4374
4468
|
let i;
|
|
4375
4469
|
const o = e, c = e, u = e;
|
|
4376
4470
|
switch (e.opf.slug) {
|
|
@@ -4435,8 +4529,8 @@ class Yt extends De {
|
|
|
4435
4529
|
opf: e.opf.slug,
|
|
4436
4530
|
name: e.name,
|
|
4437
4531
|
alternative_name: e.alternativeName,
|
|
4438
|
-
partner_group_id: (
|
|
4439
|
-
manager_id: (
|
|
4532
|
+
partner_group_id: (S = e.partnerGroup) == null ? void 0 : S.id,
|
|
4533
|
+
manager_id: (_ = e.manager) == null ? void 0 : _.id,
|
|
4440
4534
|
comment: e.comment
|
|
4441
4535
|
};
|
|
4442
4536
|
break;
|
|
@@ -4444,7 +4538,7 @@ class Yt extends De {
|
|
|
4444
4538
|
return this.post(
|
|
4445
4539
|
`/internal/clients/${r}/contragents`,
|
|
4446
4540
|
i,
|
|
4447
|
-
(U) =>
|
|
4541
|
+
(U) => Ce.createInstance(U.data),
|
|
4448
4542
|
s
|
|
4449
4543
|
);
|
|
4450
4544
|
}
|
|
@@ -4459,7 +4553,7 @@ class Yt extends De {
|
|
|
4459
4553
|
* @see /doc/api/internal#/Контрагенты/api_internal_client_contragent_update
|
|
4460
4554
|
*/
|
|
4461
4555
|
updateContragentClientData(r, e, s = {}) {
|
|
4462
|
-
var p, f, m, A, d, I,
|
|
4556
|
+
var p, f, m, A, d, I, S, _;
|
|
4463
4557
|
let i;
|
|
4464
4558
|
const o = e, c = e, u = e;
|
|
4465
4559
|
switch (e.opf.slug) {
|
|
@@ -4524,8 +4618,8 @@ class Yt extends De {
|
|
|
4524
4618
|
opf: e.opf.slug,
|
|
4525
4619
|
name: e.name,
|
|
4526
4620
|
alternative_name: e.alternativeName,
|
|
4527
|
-
partner_group_id: (
|
|
4528
|
-
manager_id: (
|
|
4621
|
+
partner_group_id: (S = e.partnerGroup) == null ? void 0 : S.id,
|
|
4622
|
+
manager_id: (_ = e.manager) == null ? void 0 : _.id,
|
|
4529
4623
|
comment: e.comment
|
|
4530
4624
|
};
|
|
4531
4625
|
break;
|
|
@@ -4533,7 +4627,7 @@ class Yt extends De {
|
|
|
4533
4627
|
return this.patch(
|
|
4534
4628
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
4535
4629
|
i,
|
|
4536
|
-
(U) =>
|
|
4630
|
+
(U) => Ce.createInstance(U.data),
|
|
4537
4631
|
s
|
|
4538
4632
|
);
|
|
4539
4633
|
}
|
|
@@ -4571,7 +4665,7 @@ class Yt extends De {
|
|
|
4571
4665
|
}), e.operatingHours && (i.operating_hours = {
|
|
4572
4666
|
from: e.operatingHours.from,
|
|
4573
4667
|
to: e.operatingHours.to
|
|
4574
|
-
}), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new
|
|
4668
|
+
}), this.post(`/internal/clients/${r}/delivery-addresses`, i, (u) => new ve(u.data), s);
|
|
4575
4669
|
}
|
|
4576
4670
|
/**
|
|
4577
4671
|
* Обновляет данные об адресе доставки клиента.
|
|
@@ -4600,7 +4694,7 @@ class Yt extends De {
|
|
|
4600
4694
|
}), this.patch(
|
|
4601
4695
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
4602
4696
|
i,
|
|
4603
|
-
(u) => new
|
|
4697
|
+
(u) => new ve(u.data),
|
|
4604
4698
|
s
|
|
4605
4699
|
);
|
|
4606
4700
|
}
|
|
@@ -4636,7 +4730,7 @@ class Yt extends De {
|
|
|
4636
4730
|
correspondent_account: s.correspondentAccount,
|
|
4637
4731
|
currency_id: s.currency.id
|
|
4638
4732
|
},
|
|
4639
|
-
(o) => new
|
|
4733
|
+
(o) => new Ne(o.data),
|
|
4640
4734
|
i
|
|
4641
4735
|
);
|
|
4642
4736
|
}
|
|
@@ -4662,7 +4756,7 @@ class Yt extends De {
|
|
|
4662
4756
|
correspondent_account: s.correspondentAccount,
|
|
4663
4757
|
currency_id: s.currency.id
|
|
4664
4758
|
},
|
|
4665
|
-
(o) => new
|
|
4759
|
+
(o) => new Ne(o.data),
|
|
4666
4760
|
i
|
|
4667
4761
|
);
|
|
4668
4762
|
}
|
|
@@ -4723,7 +4817,7 @@ class Yt extends De {
|
|
|
4723
4817
|
comment: e.comment,
|
|
4724
4818
|
not_disturb: e.notDisturb
|
|
4725
4819
|
},
|
|
4726
|
-
(i) => new
|
|
4820
|
+
(i) => new M(i.data),
|
|
4727
4821
|
s
|
|
4728
4822
|
);
|
|
4729
4823
|
}
|
|
@@ -4866,7 +4960,7 @@ class Yt extends De {
|
|
|
4866
4960
|
comment: e.comment,
|
|
4867
4961
|
...s
|
|
4868
4962
|
};
|
|
4869
|
-
return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new
|
|
4963
|
+
return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new M(p.data), i);
|
|
4870
4964
|
}
|
|
4871
4965
|
/**
|
|
4872
4966
|
* Устанавливает признак основного контактного лица.
|
|
@@ -4895,7 +4989,7 @@ class Yt extends De {
|
|
|
4895
4989
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
4896
4990
|
}
|
|
4897
4991
|
}
|
|
4898
|
-
const
|
|
4992
|
+
const V = class V extends h {
|
|
4899
4993
|
/**
|
|
4900
4994
|
* Инициализирует экземпляр класса {@link HttpCachedRequester}.
|
|
4901
4995
|
*/
|
|
@@ -4915,7 +5009,7 @@ const J = class J extends h {
|
|
|
4915
5009
|
*/
|
|
4916
5010
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
4917
5011
|
static getCachedResponse(e) {
|
|
4918
|
-
const s =
|
|
5012
|
+
const s = V.responseDataCache.get(e);
|
|
4919
5013
|
if (s && s.validTo > /* @__PURE__ */ new Date())
|
|
4920
5014
|
return s.val;
|
|
4921
5015
|
}
|
|
@@ -4926,8 +5020,8 @@ const J = class J extends h {
|
|
|
4926
5020
|
* @param data Данные для кэширования.
|
|
4927
5021
|
*/
|
|
4928
5022
|
cacheResponse(e, s) {
|
|
4929
|
-
|
|
4930
|
-
validTo:
|
|
5023
|
+
V.responseDataCache.set(e, {
|
|
5024
|
+
validTo: Ir(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
4931
5025
|
val: s
|
|
4932
5026
|
});
|
|
4933
5027
|
}
|
|
@@ -4942,9 +5036,9 @@ const J = class J extends h {
|
|
|
4942
5036
|
*/
|
|
4943
5037
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
4944
5038
|
getTypedDataArrayRequester(e, s, i = !1, o = {}) {
|
|
4945
|
-
const c = s + (
|
|
5039
|
+
const c = s + (Y(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? V.getCachedResponse(c) : void 0;
|
|
4946
5040
|
return u ? Promise.resolve(u) : this.get(s, o).then((p) => {
|
|
4947
|
-
const f = p.map((m) =>
|
|
5041
|
+
const f = p.map((m) => Fe.instanceInitializer(e, m));
|
|
4948
5042
|
return i && f && this.cacheResponse(s, f), f;
|
|
4949
5043
|
});
|
|
4950
5044
|
}
|
|
@@ -4952,9 +5046,9 @@ const J = class J extends h {
|
|
|
4952
5046
|
/**
|
|
4953
5047
|
* Кэш результатов запросов.
|
|
4954
5048
|
*/
|
|
4955
|
-
t(
|
|
4956
|
-
let
|
|
4957
|
-
class
|
|
5049
|
+
t(V, "responseDataCache", /* @__PURE__ */ new Map());
|
|
5050
|
+
let pe = V;
|
|
5051
|
+
class Zt extends h {
|
|
4958
5052
|
/**
|
|
4959
5053
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
4960
5054
|
*
|
|
@@ -4968,7 +5062,7 @@ class Xt extends h {
|
|
|
4968
5062
|
});
|
|
4969
5063
|
}
|
|
4970
5064
|
}
|
|
4971
|
-
class
|
|
5065
|
+
class es extends h {
|
|
4972
5066
|
/**
|
|
4973
5067
|
* Возвращает настройки указанного конфигуратора для указанной категории.
|
|
4974
5068
|
*
|
|
@@ -5039,29 +5133,29 @@ class Zt extends h {
|
|
|
5039
5133
|
return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.configurator}/template/${e}`);
|
|
5040
5134
|
}
|
|
5041
5135
|
}
|
|
5042
|
-
class
|
|
5136
|
+
class rs {
|
|
5043
5137
|
/**
|
|
5044
5138
|
* Возвращает диапазон дат по умолчанию.
|
|
5045
5139
|
*/
|
|
5046
5140
|
static defaultDateRanges() {
|
|
5047
|
-
const r =
|
|
5141
|
+
const r = kr(/* @__PURE__ */ new Date(), 1);
|
|
5048
5142
|
return {
|
|
5049
5143
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5050
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
5051
|
-
today: { label: "Сегодня", from:
|
|
5052
|
-
yesterday: { label: "Вчера", from:
|
|
5053
|
-
tomorrow: { label: "Завтра", from:
|
|
5144
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: Gr(r), to: Ur(r) },
|
|
5145
|
+
today: { label: "Сегодня", from: Le(), to: qr() },
|
|
5146
|
+
yesterday: { label: "Вчера", from: Or(), to: Nr() },
|
|
5147
|
+
tomorrow: { label: "Завтра", from: xr(), to: Lr() }
|
|
5054
5148
|
};
|
|
5055
5149
|
}
|
|
5056
5150
|
}
|
|
5057
|
-
const
|
|
5151
|
+
const K = class K {
|
|
5058
5152
|
/**
|
|
5059
5153
|
* Устанавливает список единиц измерения линейной величины.
|
|
5060
5154
|
*
|
|
5061
5155
|
* @param linearValues Список единиц измерения линейной величины.
|
|
5062
5156
|
*/
|
|
5063
5157
|
static setLinearValues(r) {
|
|
5064
|
-
|
|
5158
|
+
K.linearValues = r;
|
|
5065
5159
|
}
|
|
5066
5160
|
/**
|
|
5067
5161
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
@@ -5069,7 +5163,7 @@ const V = class V {
|
|
|
5069
5163
|
* @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
|
|
5070
5164
|
*/
|
|
5071
5165
|
static productIsMeasurable(r) {
|
|
5072
|
-
return
|
|
5166
|
+
return K.linearValues.includes(r.unit);
|
|
5073
5167
|
}
|
|
5074
5168
|
/**
|
|
5075
5169
|
* Возвращает кратность количества для указанного товара.
|
|
@@ -5078,7 +5172,7 @@ const V = class V {
|
|
|
5078
5172
|
*/
|
|
5079
5173
|
static getProductMultiplicity(r) {
|
|
5080
5174
|
var e, s;
|
|
5081
|
-
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !
|
|
5175
|
+
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !K.productIsMeasurable(r) ? r.properties.minCount : 1;
|
|
5082
5176
|
}
|
|
5083
5177
|
/**
|
|
5084
5178
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -5093,9 +5187,9 @@ const V = class V {
|
|
|
5093
5187
|
/**
|
|
5094
5188
|
* Список единиц измерения линейной величины.
|
|
5095
5189
|
*/
|
|
5096
|
-
t(
|
|
5097
|
-
let
|
|
5098
|
-
class
|
|
5190
|
+
t(K, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5191
|
+
let Ye = K;
|
|
5192
|
+
class ts {
|
|
5099
5193
|
/**
|
|
5100
5194
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5101
5195
|
*/
|
|
@@ -5111,19 +5205,19 @@ class rs {
|
|
|
5111
5205
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5112
5206
|
}
|
|
5113
5207
|
}
|
|
5114
|
-
class
|
|
5208
|
+
class wt extends pe {
|
|
5115
5209
|
/**
|
|
5116
5210
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5117
5211
|
*/
|
|
5118
5212
|
async getManagers() {
|
|
5119
|
-
const r = "/internal/managers", e =
|
|
5213
|
+
const r = "/internal/managers", e = pe.getCachedResponse(r);
|
|
5120
5214
|
if (e)
|
|
5121
5215
|
return e;
|
|
5122
|
-
const i = (await this.get(r)).data.map((o) =>
|
|
5216
|
+
const i = (await this.get(r)).data.map((o) => Fe.instanceInitializer(Ae, o));
|
|
5123
5217
|
return this.cacheResponse(r, i), i;
|
|
5124
5218
|
}
|
|
5125
5219
|
}
|
|
5126
|
-
class
|
|
5220
|
+
class vr extends Cr {
|
|
5127
5221
|
/**
|
|
5128
5222
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
5129
5223
|
*
|
|
@@ -5172,19 +5266,19 @@ class wr extends yr {
|
|
|
5172
5266
|
* Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
|
|
5173
5267
|
*/
|
|
5174
5268
|
t(this, "isNotInStock");
|
|
5175
|
-
this.client = new
|
|
5269
|
+
this.client = new ge(e == null ? void 0 : e.client), this.payment = {
|
|
5176
5270
|
type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
|
|
5177
5271
|
status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
|
|
5178
5272
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
5179
5273
|
}, this.delivery = {
|
|
5180
5274
|
type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
|
|
5181
|
-
date:
|
|
5182
|
-
address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new
|
|
5183
|
-
warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new
|
|
5184
|
-
}, this.attachedUser = new
|
|
5275
|
+
date: a((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? C(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
|
|
5276
|
+
address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new ve(e.delivery.address) : void 0,
|
|
5277
|
+
warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new De(e.delivery.warehouse) : void 0
|
|
5278
|
+
}, this.attachedUser = new F(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new N(e == null ? void 0 : e.salesDirection), this.pendingAt = a(e == null ? void 0 : e.pendingAt) ? C(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = a(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;
|
|
5185
5279
|
}
|
|
5186
5280
|
}
|
|
5187
|
-
class
|
|
5281
|
+
class at extends H {
|
|
5188
5282
|
/**
|
|
5189
5283
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5190
5284
|
*
|
|
@@ -5264,10 +5358,10 @@ class yt extends M {
|
|
|
5264
5358
|
* который соответствует указанной ширине. Количество не ограничено.
|
|
5265
5359
|
*/
|
|
5266
5360
|
t(this, "sawing");
|
|
5267
|
-
this.product = new
|
|
5361
|
+
this.product = new Z(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;
|
|
5268
5362
|
}
|
|
5269
5363
|
}
|
|
5270
|
-
class
|
|
5364
|
+
class Ct extends vr {
|
|
5271
5365
|
/**
|
|
5272
5366
|
* Инициализирует экземпляр класса {@link Order}.
|
|
5273
5367
|
*
|
|
@@ -5307,10 +5401,10 @@ class wt extends wr {
|
|
|
5307
5401
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
5308
5402
|
*/
|
|
5309
5403
|
t(this, "isAllowProcessingWithoutPayment");
|
|
5310
|
-
this.products = (e.products ?? []).map((s) => new
|
|
5404
|
+
this.products = (e.products ?? []).map((s) => new at(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? Ce.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new v(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5311
5405
|
}
|
|
5312
5406
|
}
|
|
5313
|
-
class
|
|
5407
|
+
class ss extends $e {
|
|
5314
5408
|
/**
|
|
5315
5409
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5316
5410
|
*
|
|
@@ -5323,7 +5417,7 @@ class ts extends De {
|
|
|
5323
5417
|
getOrders(r, e, s) {
|
|
5324
5418
|
return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
|
|
5325
5419
|
const o = { ...i.data };
|
|
5326
|
-
return o.data = o.data.map((c) => new
|
|
5420
|
+
return o.data = o.data.map((c) => new vr(c)), o;
|
|
5327
5421
|
});
|
|
5328
5422
|
}
|
|
5329
5423
|
/**
|
|
@@ -5341,10 +5435,10 @@ class ts extends De {
|
|
|
5341
5435
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
5342
5436
|
*/
|
|
5343
5437
|
getOrder(r) {
|
|
5344
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
5438
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new Ct(e.data));
|
|
5345
5439
|
}
|
|
5346
5440
|
}
|
|
5347
|
-
class
|
|
5441
|
+
class de {
|
|
5348
5442
|
/**
|
|
5349
5443
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
5350
5444
|
*
|
|
@@ -5371,12 +5465,12 @@ class Se {
|
|
|
5371
5465
|
* Источник клиентской цены.
|
|
5372
5466
|
*/
|
|
5373
5467
|
t(this, "source");
|
|
5374
|
-
this.client = new
|
|
5468
|
+
this.client = new ge(r == null ? void 0 : r.client), this.product = new x(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) ?? je.Product;
|
|
5375
5469
|
}
|
|
5376
5470
|
}
|
|
5377
|
-
const
|
|
5471
|
+
const Ie = (n) => {
|
|
5378
5472
|
var r, e, s, i, o;
|
|
5379
|
-
return n ?
|
|
5473
|
+
return n ? sr(
|
|
5380
5474
|
{
|
|
5381
5475
|
cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
|
|
5382
5476
|
clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
|
|
@@ -5385,13 +5479,13 @@ const de = (n) => {
|
|
|
5385
5479
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
5386
5480
|
hideNotActive: n.hideNotActive
|
|
5387
5481
|
},
|
|
5388
|
-
(c) =>
|
|
5482
|
+
(c) => D(c) || (Q(c) || ir(c)) && Y(c)
|
|
5389
5483
|
) : {};
|
|
5390
|
-
},
|
|
5484
|
+
}, Xe = (n) => {
|
|
5391
5485
|
const r = {};
|
|
5392
5486
|
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;
|
|
5393
5487
|
};
|
|
5394
|
-
class
|
|
5488
|
+
class is extends h {
|
|
5395
5489
|
/**
|
|
5396
5490
|
* Возвращает список клиентских цен на продукты в указанном диапазоне цены.
|
|
5397
5491
|
*
|
|
@@ -5405,10 +5499,10 @@ class ss extends h {
|
|
|
5405
5499
|
return this.get(
|
|
5406
5500
|
`/internal/price/products/${r}/analyze`,
|
|
5407
5501
|
{
|
|
5408
|
-
...
|
|
5409
|
-
filters:
|
|
5502
|
+
...Xe(e),
|
|
5503
|
+
filters: Ie(s)
|
|
5410
5504
|
},
|
|
5411
|
-
(i) => i.data.map((o) => new
|
|
5505
|
+
(i) => i.data.map((o) => new de(o))
|
|
5412
5506
|
);
|
|
5413
5507
|
}
|
|
5414
5508
|
/**
|
|
@@ -5424,10 +5518,10 @@ class ss extends h {
|
|
|
5424
5518
|
return this.get(
|
|
5425
5519
|
`/internal/price/categories/${r}/analyze`,
|
|
5426
5520
|
{
|
|
5427
|
-
...
|
|
5428
|
-
filters:
|
|
5521
|
+
...Xe(e),
|
|
5522
|
+
filters: Ie(s)
|
|
5429
5523
|
},
|
|
5430
|
-
(i) => i.data.map((o) => new
|
|
5524
|
+
(i) => i.data.map((o) => new de(o))
|
|
5431
5525
|
);
|
|
5432
5526
|
}
|
|
5433
5527
|
/**
|
|
@@ -5446,13 +5540,13 @@ class ss extends h {
|
|
|
5446
5540
|
`/internal/price/categories/${r}/analyze/square`,
|
|
5447
5541
|
{
|
|
5448
5542
|
...e,
|
|
5449
|
-
filters:
|
|
5543
|
+
filters: Ie(s)
|
|
5450
5544
|
},
|
|
5451
|
-
(i) => i.data.map((o) => new
|
|
5545
|
+
(i) => i.data.map((o) => new de(o))
|
|
5452
5546
|
);
|
|
5453
5547
|
}
|
|
5454
5548
|
}
|
|
5455
|
-
class
|
|
5549
|
+
class vt {
|
|
5456
5550
|
/**
|
|
5457
5551
|
* Инициализирует экземпляр класса {@link PriceHistoryItem}.
|
|
5458
5552
|
*
|
|
@@ -5499,10 +5593,10 @@ class Ct {
|
|
|
5499
5593
|
* @inheritDoc
|
|
5500
5594
|
*/
|
|
5501
5595
|
t(this, "currency");
|
|
5502
|
-
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate =
|
|
5596
|
+
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = a(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new oe(r.product) : void 0, this.client = r.client ? new F(r.client) : void 0, this.executor = r.executor ? new F(r.executor) : void 0, this.currency = r.currency ? new ae(r.currency) : void 0;
|
|
5503
5597
|
}
|
|
5504
5598
|
}
|
|
5505
|
-
class
|
|
5599
|
+
class Pt extends oe {
|
|
5506
5600
|
/**
|
|
5507
5601
|
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
5508
5602
|
*
|
|
@@ -5514,10 +5608,10 @@ class vt extends ne {
|
|
|
5514
5608
|
* @inheritDoc
|
|
5515
5609
|
*/
|
|
5516
5610
|
t(this, "history");
|
|
5517
|
-
this.history =
|
|
5611
|
+
this.history = Pe(e.history, (s) => new vt(s));
|
|
5518
5612
|
}
|
|
5519
5613
|
}
|
|
5520
|
-
class
|
|
5614
|
+
class ns extends h {
|
|
5521
5615
|
/**
|
|
5522
5616
|
* Возвращает данные об истории изменения цен.
|
|
5523
5617
|
*
|
|
@@ -5527,21 +5621,21 @@ class is extends h {
|
|
|
5527
5621
|
*/
|
|
5528
5622
|
getProductPriceHistory(r) {
|
|
5529
5623
|
var o, c, u, p, f;
|
|
5530
|
-
const e = T.getConfig().dateFormats.api, s =
|
|
5531
|
-
|
|
5624
|
+
const e = T.getConfig().dateFormats.api, s = sr(
|
|
5625
|
+
ye(r, {
|
|
5532
5626
|
costDate: {
|
|
5533
|
-
from:
|
|
5534
|
-
to:
|
|
5627
|
+
from: ke((o = r.costDate) == null ? void 0 : o.from) ? q(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
5628
|
+
to: ke((u = r.costDate) == null ? void 0 : u.to) ? q(r.costDate.to, e) : (p = r.costDate) == null ? void 0 : p.to
|
|
5535
5629
|
}
|
|
5536
5630
|
}),
|
|
5537
|
-
(m) =>
|
|
5631
|
+
(m) => D(m) || (Q(m) || ir(m)) && Y(m)
|
|
5538
5632
|
), i = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
|
|
5539
5633
|
return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((m) => [
|
|
5540
|
-
new
|
|
5634
|
+
new Pt(ye(m[0], { history: m }))
|
|
5541
5635
|
]);
|
|
5542
5636
|
}
|
|
5543
5637
|
}
|
|
5544
|
-
class
|
|
5638
|
+
class Ze {
|
|
5545
5639
|
/**
|
|
5546
5640
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
5547
5641
|
*
|
|
@@ -5556,10 +5650,10 @@ class Ke {
|
|
|
5556
5650
|
* Список рекомендованных категорий продуктов.
|
|
5557
5651
|
*/
|
|
5558
5652
|
t(this, "productCategories", []);
|
|
5559
|
-
r != null && r.products && (this.products = r.products.map((e) => new
|
|
5653
|
+
r != null && r.products && (this.products = r.products.map((e) => new oe(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new oe(e)));
|
|
5560
5654
|
}
|
|
5561
5655
|
}
|
|
5562
|
-
class
|
|
5656
|
+
class os extends h {
|
|
5563
5657
|
/**
|
|
5564
5658
|
* Возвращает данные о рекомендациях указанной категории продуктов.
|
|
5565
5659
|
*
|
|
@@ -5567,7 +5661,7 @@ class ns extends h {
|
|
|
5567
5661
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
5568
5662
|
*/
|
|
5569
5663
|
getProductCategoryRecommendations(r) {
|
|
5570
|
-
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new
|
|
5664
|
+
return this.get(`/internal/catalog/recommendations/categories/${r.id}`, {}, (e) => new Ze(e.data));
|
|
5571
5665
|
}
|
|
5572
5666
|
/**
|
|
5573
5667
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -5576,7 +5670,7 @@ class ns extends h {
|
|
|
5576
5670
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
5577
5671
|
*/
|
|
5578
5672
|
getProductRecommendations(r) {
|
|
5579
|
-
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new
|
|
5673
|
+
return this.get(`/internal/catalog/recommendations/products/${r.id}`, {}, (e) => new Ze(e.data));
|
|
5580
5674
|
}
|
|
5581
5675
|
/**
|
|
5582
5676
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -5605,7 +5699,7 @@ class ns extends h {
|
|
|
5605
5699
|
});
|
|
5606
5700
|
}
|
|
5607
5701
|
}
|
|
5608
|
-
class
|
|
5702
|
+
class $ extends pe {
|
|
5609
5703
|
/**
|
|
5610
5704
|
* Возвращает {@link Promise} для получения данных указанного справочника.
|
|
5611
5705
|
*
|
|
@@ -5614,33 +5708,33 @@ class D extends ue {
|
|
|
5614
5708
|
* и использовать в случае аналогичных запросов.
|
|
5615
5709
|
*/
|
|
5616
5710
|
getReference(r, e = !1) {
|
|
5617
|
-
return this.getTypedDataArrayRequester(
|
|
5711
|
+
return this.getTypedDataArrayRequester(nt, `/internal/references/${r}`, e);
|
|
5618
5712
|
}
|
|
5619
5713
|
/**
|
|
5620
5714
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
5621
5715
|
* первичного интереса.
|
|
5622
5716
|
*/
|
|
5623
5717
|
getChannelPrimaryInterest() {
|
|
5624
|
-
return this.getTypedDataArrayRequester(
|
|
5718
|
+
return this.getTypedDataArrayRequester(gr, "/internal/references/channel-primary-interest", !0);
|
|
5625
5719
|
}
|
|
5626
5720
|
/**
|
|
5627
5721
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
5628
5722
|
*/
|
|
5629
5723
|
getContactPositions() {
|
|
5630
|
-
return this.getTypedDataArrayRequester(
|
|
5724
|
+
return this.getTypedDataArrayRequester(ot, "/internal/references/contact-position", !0);
|
|
5631
5725
|
}
|
|
5632
5726
|
/**
|
|
5633
5727
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
5634
5728
|
*/
|
|
5635
5729
|
getCurrency() {
|
|
5636
|
-
return this.getTypedDataArrayRequester(
|
|
5730
|
+
return this.getTypedDataArrayRequester(ae, "/public/references/currency", !0);
|
|
5637
5731
|
}
|
|
5638
5732
|
/**
|
|
5639
5733
|
* Возвращает {@link Promise} для получения справочника данных
|
|
5640
5734
|
* групп партнеров (направлений деятельности).
|
|
5641
5735
|
*/
|
|
5642
5736
|
getPartnerGroup() {
|
|
5643
|
-
return this.getTypedDataArrayRequester(
|
|
5737
|
+
return this.getTypedDataArrayRequester(re, "/internal/references/partner-group", !0);
|
|
5644
5738
|
}
|
|
5645
5739
|
/**
|
|
5646
5740
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
@@ -5652,25 +5746,25 @@ class D extends ue {
|
|
|
5652
5746
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
5653
5747
|
*/
|
|
5654
5748
|
getOrderPaymentStatuses() {
|
|
5655
|
-
return this.getTypedDataArrayRequester(
|
|
5749
|
+
return this.getTypedDataArrayRequester(ct, "/public/references/order-payment-status", !0);
|
|
5656
5750
|
}
|
|
5657
5751
|
/**
|
|
5658
5752
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
5659
5753
|
*/
|
|
5660
5754
|
getOrderStatuses() {
|
|
5661
|
-
return this.getTypedDataArrayRequester(
|
|
5755
|
+
return this.getTypedDataArrayRequester(lt, "/public/references/order-status", !0);
|
|
5662
5756
|
}
|
|
5663
5757
|
/**
|
|
5664
5758
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
5665
5759
|
*/
|
|
5666
5760
|
getPaymentTypes() {
|
|
5667
|
-
return this.getTypedDataArrayRequester(
|
|
5761
|
+
return this.getTypedDataArrayRequester(ut, "/public/references/payment-type", !0);
|
|
5668
5762
|
}
|
|
5669
5763
|
/**
|
|
5670
5764
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
5671
5765
|
*/
|
|
5672
5766
|
getResourceTypes() {
|
|
5673
|
-
return this.getTypedDataArrayRequester(
|
|
5767
|
+
return this.getTypedDataArrayRequester(mr, "/internal/references/resource-type", !0);
|
|
5674
5768
|
}
|
|
5675
5769
|
/**
|
|
5676
5770
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
@@ -5682,7 +5776,7 @@ class D extends ue {
|
|
|
5682
5776
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
5683
5777
|
*/
|
|
5684
5778
|
getSourcePrimaryInterest() {
|
|
5685
|
-
return this.getTypedDataArrayRequester(
|
|
5779
|
+
return this.getTypedDataArrayRequester(fr, "/internal/references/source-primary-interest", !0);
|
|
5686
5780
|
}
|
|
5687
5781
|
/**
|
|
5688
5782
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -5690,7 +5784,7 @@ class D extends ue {
|
|
|
5690
5784
|
* @param term Терм поиска.
|
|
5691
5785
|
*/
|
|
5692
5786
|
searchCity(r) {
|
|
5693
|
-
return this.getTypedDataArrayRequester(
|
|
5787
|
+
return this.getTypedDataArrayRequester(Me, `/internal/references/city-with-region-and-country/search?term=${r}`);
|
|
5694
5788
|
}
|
|
5695
5789
|
/**
|
|
5696
5790
|
* Выполняет поиск данных о регионах по терму в названии.
|
|
@@ -5698,7 +5792,7 @@ class D extends ue {
|
|
|
5698
5792
|
* @param term Терм поиска.
|
|
5699
5793
|
*/
|
|
5700
5794
|
searchRegion(r) {
|
|
5701
|
-
return this.getTypedDataArrayRequester(
|
|
5795
|
+
return this.getTypedDataArrayRequester(le, `/internal/references/region-with-country/search?term=${r}`);
|
|
5702
5796
|
}
|
|
5703
5797
|
/**
|
|
5704
5798
|
* Выполняет поиск данных о странах по терму в названии.
|
|
@@ -5706,25 +5800,25 @@ class D extends ue {
|
|
|
5706
5800
|
* @param term Терм поиска.
|
|
5707
5801
|
*/
|
|
5708
5802
|
searchCountry(r) {
|
|
5709
|
-
return this.getTypedDataArrayRequester(
|
|
5803
|
+
return this.getTypedDataArrayRequester(ee, `/internal/references/country/search?term=${r}`);
|
|
5710
5804
|
}
|
|
5711
5805
|
/**
|
|
5712
5806
|
* Возвращает {@link Promise} для получения справочника типов доставки.
|
|
5713
5807
|
*/
|
|
5714
5808
|
getDeliveryTypes() {
|
|
5715
|
-
return this.getTypedDataArrayRequester(
|
|
5809
|
+
return this.getTypedDataArrayRequester(X, "/internal/references/delivery-type", !0);
|
|
5716
5810
|
}
|
|
5717
5811
|
/**
|
|
5718
5812
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
5719
5813
|
*/
|
|
5720
5814
|
getWarehouses() {
|
|
5721
|
-
return this.getTypedDataArrayRequester(
|
|
5815
|
+
return this.getTypedDataArrayRequester(De, "/public/references/warehouse", !0);
|
|
5722
5816
|
}
|
|
5723
5817
|
/**
|
|
5724
5818
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
5725
5819
|
*/
|
|
5726
5820
|
getPropertyTypes() {
|
|
5727
|
-
return this.getTypedDataArrayRequester(
|
|
5821
|
+
return this.getTypedDataArrayRequester(hr, "/internal/references/property-type", !0);
|
|
5728
5822
|
}
|
|
5729
5823
|
/**
|
|
5730
5824
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
@@ -5736,11 +5830,11 @@ class D extends ue {
|
|
|
5736
5830
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
5737
5831
|
*/
|
|
5738
5832
|
getProductFileType() {
|
|
5739
|
-
return this.getTypedDataArrayRequester(
|
|
5833
|
+
return this.getTypedDataArrayRequester(pt, "/public/references/product-file-type", !0);
|
|
5740
5834
|
}
|
|
5741
5835
|
}
|
|
5742
|
-
const
|
|
5743
|
-
const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), p = y(void 0), f = y(void 0), m = y(void 0), A = y(void 0), d = y(void 0), I = y(void 0),
|
|
5836
|
+
const R = te("__references_private", () => {
|
|
5837
|
+
const n = y({}), r = y(void 0), e = y(void 0), s = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), p = y(void 0), f = y(void 0), m = y(void 0), A = y(void 0), d = y(void 0), I = y(void 0), S = y(void 0), _ = y(void 0), U = y(void 0), l = y(void 0);
|
|
5744
5838
|
return {
|
|
5745
5839
|
/**
|
|
5746
5840
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5801,11 +5895,11 @@ const a = re("__references_private", () => {
|
|
|
5801
5895
|
/**
|
|
5802
5896
|
* Справочник источников первичного интереса.
|
|
5803
5897
|
*/
|
|
5804
|
-
sourcePrimaryInterestReference:
|
|
5898
|
+
sourcePrimaryInterestReference: S,
|
|
5805
5899
|
/**
|
|
5806
5900
|
* Справочник складов.
|
|
5807
5901
|
*/
|
|
5808
|
-
warehousesReference:
|
|
5902
|
+
warehousesReference: _,
|
|
5809
5903
|
/**
|
|
5810
5904
|
* Справочник типов свойств.
|
|
5811
5905
|
*/
|
|
@@ -5815,90 +5909,90 @@ const a = re("__references_private", () => {
|
|
|
5815
5909
|
*/
|
|
5816
5910
|
priceCoefficientsReference: l
|
|
5817
5911
|
};
|
|
5818
|
-
}),
|
|
5819
|
-
const n =
|
|
5820
|
-
const l =
|
|
5821
|
-
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(
|
|
5912
|
+
}), cs = te("references", () => {
|
|
5913
|
+
const n = P(() => {
|
|
5914
|
+
const l = R();
|
|
5915
|
+
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance($).getChannelPrimaryInterest().then((g) => {
|
|
5822
5916
|
l.channelPrimaryInterestReference = g;
|
|
5823
5917
|
}).catch(w)), l.channelPrimaryInterestReference;
|
|
5824
|
-
}), r =
|
|
5825
|
-
const l =
|
|
5826
|
-
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(
|
|
5918
|
+
}), r = P(() => {
|
|
5919
|
+
const l = R();
|
|
5920
|
+
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance($).getContactPositions().then((g) => {
|
|
5827
5921
|
l.contactPositionsReference = g;
|
|
5828
5922
|
}).catch(w)), l.contactPositionsReference;
|
|
5829
|
-
}), e =
|
|
5830
|
-
const l =
|
|
5831
|
-
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(
|
|
5923
|
+
}), e = P(() => {
|
|
5924
|
+
const l = R();
|
|
5925
|
+
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance($).getCurrency().then((g) => {
|
|
5832
5926
|
l.currencyReference = g;
|
|
5833
5927
|
}).catch(w)), l.currencyReference;
|
|
5834
|
-
}), s =
|
|
5835
|
-
const l =
|
|
5836
|
-
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(
|
|
5928
|
+
}), s = P(() => {
|
|
5929
|
+
const l = R();
|
|
5930
|
+
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance($).getOpf().then((g) => {
|
|
5837
5931
|
l.opfReference = g;
|
|
5838
5932
|
}).catch(w)), l.opfReference;
|
|
5839
|
-
}), i =
|
|
5840
|
-
const l =
|
|
5841
|
-
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(
|
|
5933
|
+
}), i = P(() => {
|
|
5934
|
+
const l = R();
|
|
5935
|
+
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance($).getOrderPaymentStatuses().then((g) => {
|
|
5842
5936
|
l.orderPaymentStatusReference = g;
|
|
5843
5937
|
}).catch(w)), l.orderPaymentStatusReference;
|
|
5844
|
-
}), o =
|
|
5845
|
-
const l =
|
|
5846
|
-
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(
|
|
5938
|
+
}), o = P(() => {
|
|
5939
|
+
const l = R();
|
|
5940
|
+
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance($).getOrderStatuses().then((g) => {
|
|
5847
5941
|
l.orderStatusReference = g;
|
|
5848
5942
|
}).catch(w)), l.orderStatusReference;
|
|
5849
|
-
}), c =
|
|
5850
|
-
const l =
|
|
5851
|
-
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(
|
|
5943
|
+
}), c = P(() => {
|
|
5944
|
+
const l = R();
|
|
5945
|
+
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance($).getPaymentTypes().then((g) => {
|
|
5852
5946
|
l.paymentTypeReference = g;
|
|
5853
5947
|
}).catch(w)), l.paymentTypeReference;
|
|
5854
|
-
}), u =
|
|
5855
|
-
const l =
|
|
5856
|
-
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(
|
|
5948
|
+
}), u = P(() => {
|
|
5949
|
+
const l = R();
|
|
5950
|
+
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance($).getPartnerGroup().then((g) => {
|
|
5857
5951
|
l.partnerGroupReference = g;
|
|
5858
5952
|
}).catch(w)), l.partnerGroupReference;
|
|
5859
|
-
}), p =
|
|
5860
|
-
const l =
|
|
5861
|
-
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(
|
|
5953
|
+
}), p = P(() => {
|
|
5954
|
+
const l = R();
|
|
5955
|
+
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance($).getProductFileType().then((g) => {
|
|
5862
5956
|
l.productFileTypeReference = g;
|
|
5863
5957
|
}).catch(w)), l.productFileTypeReference;
|
|
5864
|
-
}), f =
|
|
5865
|
-
const l =
|
|
5866
|
-
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(
|
|
5958
|
+
}), f = P(() => {
|
|
5959
|
+
const l = R();
|
|
5960
|
+
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance($).getResourceTypes().then((g) => {
|
|
5867
5961
|
l.resourceTypesReference = g;
|
|
5868
5962
|
}).catch(w)), l.resourceTypesReference;
|
|
5869
|
-
}), m =
|
|
5870
|
-
const l =
|
|
5871
|
-
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(
|
|
5963
|
+
}), m = P(() => {
|
|
5964
|
+
const l = R();
|
|
5965
|
+
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance($).getSalesDirections().then((g) => {
|
|
5872
5966
|
l.salesDirectionsReference = g;
|
|
5873
5967
|
}).catch(w)), l.salesDirectionsReference;
|
|
5874
|
-
}), A =
|
|
5875
|
-
const l =
|
|
5876
|
-
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(
|
|
5968
|
+
}), A = P(() => {
|
|
5969
|
+
const l = R();
|
|
5970
|
+
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance($).getSourcePrimaryInterest().then((g) => {
|
|
5877
5971
|
l.sourcePrimaryInterestReference = g;
|
|
5878
5972
|
}).catch(w)), l.sourcePrimaryInterestReference;
|
|
5879
|
-
}), d =
|
|
5880
|
-
const l =
|
|
5881
|
-
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(
|
|
5973
|
+
}), d = P(() => {
|
|
5974
|
+
const l = R();
|
|
5975
|
+
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance($).getDeliveryTypes().then((g) => {
|
|
5882
5976
|
l.deliveryTypeReference = g;
|
|
5883
5977
|
}).catch(w)), l.deliveryTypeReference;
|
|
5884
|
-
}), I =
|
|
5885
|
-
const l =
|
|
5886
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(
|
|
5978
|
+
}), I = P(() => {
|
|
5979
|
+
const l = R();
|
|
5980
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(wt).getManagers().then((g) => {
|
|
5887
5981
|
l.managersList = g;
|
|
5888
5982
|
}).catch(w)), l.managersList;
|
|
5889
|
-
}),
|
|
5890
|
-
const l =
|
|
5891
|
-
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(
|
|
5983
|
+
}), S = P(() => {
|
|
5984
|
+
const l = R();
|
|
5985
|
+
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance($).getWarehouses().then((g) => {
|
|
5892
5986
|
l.warehousesReference = g;
|
|
5893
5987
|
}).catch(w)), l.warehousesReference;
|
|
5894
|
-
}),
|
|
5895
|
-
const l =
|
|
5896
|
-
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(
|
|
5988
|
+
}), _ = P(() => {
|
|
5989
|
+
const l = R();
|
|
5990
|
+
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance($).getPropertyTypes().then((g) => {
|
|
5897
5991
|
l.propertyTypesReference = g;
|
|
5898
5992
|
}).catch(w)), l.propertyTypesReference;
|
|
5899
|
-
}), U =
|
|
5900
|
-
const l =
|
|
5901
|
-
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(
|
|
5993
|
+
}), U = P(() => {
|
|
5994
|
+
const l = R();
|
|
5995
|
+
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance($).getPriceCoefficients().then((g) => {
|
|
5902
5996
|
l.priceCoefficientsReference = g;
|
|
5903
5997
|
}).catch(w)), l.priceCoefficientsReference;
|
|
5904
5998
|
});
|
|
@@ -5962,18 +6056,18 @@ const a = re("__references_private", () => {
|
|
|
5962
6056
|
/**
|
|
5963
6057
|
* Справочник складов.
|
|
5964
6058
|
*/
|
|
5965
|
-
warehousesReference:
|
|
6059
|
+
warehousesReference: S,
|
|
5966
6060
|
/**
|
|
5967
6061
|
* Справочник типов свойств.
|
|
5968
6062
|
*/
|
|
5969
|
-
propertyTypesReference:
|
|
6063
|
+
propertyTypesReference: _,
|
|
5970
6064
|
/**
|
|
5971
6065
|
* Справочник коэффициентов цен.
|
|
5972
6066
|
*/
|
|
5973
6067
|
priceCoefficientsReference: U
|
|
5974
6068
|
};
|
|
5975
6069
|
});
|
|
5976
|
-
class
|
|
6070
|
+
class Rt {
|
|
5977
6071
|
/**
|
|
5978
6072
|
* Инициализирует экземпляр класса {@link MetaTagItem}.
|
|
5979
6073
|
*
|
|
@@ -5991,7 +6085,7 @@ class Pt {
|
|
|
5991
6085
|
this.name = r.name, this.content = r.content;
|
|
5992
6086
|
}
|
|
5993
6087
|
}
|
|
5994
|
-
class
|
|
6088
|
+
class er {
|
|
5995
6089
|
/**
|
|
5996
6090
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
5997
6091
|
*
|
|
@@ -6027,10 +6121,10 @@ class Qe {
|
|
|
6027
6121
|
*/
|
|
6028
6122
|
t(this, "meta");
|
|
6029
6123
|
var e;
|
|
6030
|
-
this.resourceType = new
|
|
6124
|
+
this.resourceType = new mr(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 Rt(s))) ?? [];
|
|
6031
6125
|
}
|
|
6032
6126
|
}
|
|
6033
|
-
class
|
|
6127
|
+
class ls extends h {
|
|
6034
6128
|
/**
|
|
6035
6129
|
* Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
|
|
6036
6130
|
*
|
|
@@ -6038,7 +6132,7 @@ class cs extends h {
|
|
|
6038
6132
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
6039
6133
|
*/
|
|
6040
6134
|
getResourceSeoData(r, e) {
|
|
6041
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new
|
|
6135
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new er(s.data));
|
|
6042
6136
|
}
|
|
6043
6137
|
/**
|
|
6044
6138
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -6049,7 +6143,7 @@ class cs extends h {
|
|
|
6049
6143
|
* в случае ошибок в запросах.
|
|
6050
6144
|
*/
|
|
6051
6145
|
saveResourceSeoData(r, e = {}) {
|
|
6052
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new
|
|
6146
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new er(s.data), e);
|
|
6053
6147
|
}
|
|
6054
6148
|
/**
|
|
6055
6149
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -6061,7 +6155,7 @@ class cs extends h {
|
|
|
6061
6155
|
return this.delete(`/internal/seo/${r.slug}/${e}`);
|
|
6062
6156
|
}
|
|
6063
6157
|
}
|
|
6064
|
-
class
|
|
6158
|
+
class us extends h {
|
|
6065
6159
|
/**
|
|
6066
6160
|
* Возвращает подсказки по адресам.
|
|
6067
6161
|
*
|
|
@@ -6108,8 +6202,8 @@ class ls extends h {
|
|
|
6108
6202
|
});
|
|
6109
6203
|
}
|
|
6110
6204
|
}
|
|
6111
|
-
var
|
|
6112
|
-
class
|
|
6205
|
+
var Dt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(Dt || {});
|
|
6206
|
+
class At extends pr {
|
|
6113
6207
|
/**
|
|
6114
6208
|
* Инициализирует экземпляр класса {@link User}.
|
|
6115
6209
|
*
|
|
@@ -6132,7 +6226,7 @@ class at extends cr {
|
|
|
6132
6226
|
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;
|
|
6133
6227
|
}
|
|
6134
6228
|
}
|
|
6135
|
-
class
|
|
6229
|
+
class ps extends h {
|
|
6136
6230
|
/**
|
|
6137
6231
|
* Инициализирует экземпляр класса {@link UserAuthDataProvider}.
|
|
6138
6232
|
*/
|
|
@@ -6148,16 +6242,16 @@ class us extends h {
|
|
|
6148
6242
|
return this.get("internal/users/current-tokens").then((r) => r.accessToken);
|
|
6149
6243
|
}
|
|
6150
6244
|
}
|
|
6151
|
-
class
|
|
6245
|
+
class $t extends h {
|
|
6152
6246
|
/**
|
|
6153
6247
|
* Возвращает данные о текущем пользователе.
|
|
6154
6248
|
*/
|
|
6155
6249
|
// eslint-disable-next-line class-methods-use-this
|
|
6156
6250
|
getCurrentUser() {
|
|
6157
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
6251
|
+
return this.get("/internal/users/info", {}, (r) => new At(r.data));
|
|
6158
6252
|
}
|
|
6159
6253
|
}
|
|
6160
|
-
const
|
|
6254
|
+
const Tt = te("__user_state_private", () => {
|
|
6161
6255
|
const n = y({}), r = y(void 0);
|
|
6162
6256
|
return {
|
|
6163
6257
|
/**
|
|
@@ -6169,20 +6263,20 @@ const Dt = re("__user_state_private", () => {
|
|
|
6169
6263
|
*/
|
|
6170
6264
|
currentUser: r
|
|
6171
6265
|
};
|
|
6172
|
-
}),
|
|
6266
|
+
}), hs = te("user_state", () => ({
|
|
6173
6267
|
/**
|
|
6174
6268
|
* Данные о текущем пользователе.
|
|
6175
6269
|
*/
|
|
6176
|
-
currentUser:
|
|
6177
|
-
const r =
|
|
6178
|
-
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance(
|
|
6270
|
+
currentUser: P(() => {
|
|
6271
|
+
const r = Tt();
|
|
6272
|
+
return !r.currentUser && !r.dataLoaderList.currentUser && (r.dataLoaderList.currentUser = !0, h.getInstance($t).getCurrentUser().then((e) => {
|
|
6179
6273
|
r.currentUser = e;
|
|
6180
6274
|
}).catch(w).finally(() => {
|
|
6181
6275
|
r.dataLoaderList.currentUser = !1;
|
|
6182
6276
|
})), r.currentUser;
|
|
6183
6277
|
})
|
|
6184
6278
|
}));
|
|
6185
|
-
class
|
|
6279
|
+
class gs {
|
|
6186
6280
|
/**
|
|
6187
6281
|
* Инициализирует экземпляр класса {@link FieldValidationResultData}.
|
|
6188
6282
|
*
|
|
@@ -6206,150 +6300,150 @@ class hs {
|
|
|
6206
6300
|
}
|
|
6207
6301
|
}
|
|
6208
6302
|
export {
|
|
6209
|
-
|
|
6210
|
-
|
|
6303
|
+
nt as AnyReference,
|
|
6304
|
+
Ut as AppBaseConfig,
|
|
6211
6305
|
T as AppConfigProvider,
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6306
|
+
Ne as BankAccount,
|
|
6307
|
+
$e as BasePaginationProvider,
|
|
6308
|
+
Wr as CalculationTypeEnum,
|
|
6309
|
+
me as Cart,
|
|
6310
|
+
Er as CartItem,
|
|
6311
|
+
zr as CartItemBase,
|
|
6312
|
+
Ot as CartProvider,
|
|
6313
|
+
Gt as CatalogProvider,
|
|
6314
|
+
nr as CatalogableItem,
|
|
6315
|
+
E as Category,
|
|
6316
|
+
We as CategoryPricingRule,
|
|
6317
|
+
gr as ChannelPrimaryInterest,
|
|
6318
|
+
Vt as City,
|
|
6319
|
+
Me as CityWithRegionAndCountry,
|
|
6320
|
+
Qe as Client,
|
|
6321
|
+
ft as ClientAdditionalData,
|
|
6322
|
+
we as ClientCategory,
|
|
6323
|
+
Xt as ClientDataProvider,
|
|
6324
|
+
Ft as ClientPriceProvider,
|
|
6231
6325
|
jt as ClientPriceTemplateProvider,
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6326
|
+
Z as ClientProduct,
|
|
6327
|
+
Bt as ClientProductCategoryDataProvider,
|
|
6328
|
+
zt as ClientProductDataProvider,
|
|
6329
|
+
ge as ClientShortInfo,
|
|
6330
|
+
it as ClientsAdditionalDataRequestTypeEnum,
|
|
6331
|
+
Kt as ClientsListFilters,
|
|
6332
|
+
oe as CodedIdentity,
|
|
6333
|
+
es as ConfiguratorProvider,
|
|
6334
|
+
Oe as Contact,
|
|
6335
|
+
Qr as ContactLinks,
|
|
6336
|
+
M as ContactPerson,
|
|
6337
|
+
mt as ContactPersonRelated,
|
|
6338
|
+
ot as ContactPosition,
|
|
6245
6339
|
_e as ContactRelation,
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6340
|
+
yr as ContragentBase,
|
|
6341
|
+
Ce as ContragentFactory,
|
|
6342
|
+
wr as ContragentIc,
|
|
6343
|
+
ht as ContragentPerson,
|
|
6344
|
+
gt as ContragentUlNr,
|
|
6345
|
+
ar as ContragentUlR,
|
|
6346
|
+
je as CostSourceEnum,
|
|
6347
|
+
ee as Country,
|
|
6348
|
+
ae as Currency,
|
|
6349
|
+
us as DataSuggestionProvider,
|
|
6350
|
+
Qt as DataTablePagination,
|
|
6351
|
+
yt as DataTablePaginationRequestParams,
|
|
6352
|
+
Yt as DataTableSortRequestParams,
|
|
6353
|
+
rs as DateTimeProvider,
|
|
6354
|
+
Vr as DeletableNamedIdentity,
|
|
6355
|
+
ve as DeliveryAddress,
|
|
6356
|
+
X as DeliveryType,
|
|
6357
|
+
Nt as DetailedJwtPayload,
|
|
6358
|
+
Zr as DeviceTypeResolutionConfig,
|
|
6359
|
+
Kr as DiscountShortInfo,
|
|
6360
|
+
gs as FieldValidationResultData,
|
|
6361
|
+
ue as FilterGroup,
|
|
6362
|
+
Je as FilterItem,
|
|
6363
|
+
He as FilterOpEnum,
|
|
6364
|
+
cr as GeoCoordinates,
|
|
6365
|
+
Hr as HiddenCatalogableItem,
|
|
6366
|
+
pe as HttpCachedRequester,
|
|
6367
|
+
et as HttpParamsConfig,
|
|
6274
6368
|
h as HttpRequester,
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6369
|
+
H as Identity,
|
|
6370
|
+
Br as Image,
|
|
6371
|
+
G as JwtPayload,
|
|
6278
6372
|
Ae as Manager,
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6373
|
+
ce as ManagerCommon,
|
|
6374
|
+
ts as ManagerDataFactory,
|
|
6375
|
+
wt as ManagerDataProvider,
|
|
6376
|
+
Rt as MetaTagItem,
|
|
6283
6377
|
b as NamedIdentity,
|
|
6284
6378
|
j as Opf,
|
|
6285
6379
|
k as OpfEnum,
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6380
|
+
Ct as Order,
|
|
6381
|
+
vr as OrderInfo,
|
|
6382
|
+
ct as OrderPaymentStatus,
|
|
6383
|
+
at as OrderProduct,
|
|
6384
|
+
Cr as OrderShortInfo,
|
|
6385
|
+
lt as OrderStatus,
|
|
6386
|
+
ss as OrdersDataProvider,
|
|
6387
|
+
re as PartnerGroup,
|
|
6388
|
+
ut as PaymentType,
|
|
6389
|
+
fe as PreferencesStorageProvider,
|
|
6390
|
+
de as PriceAnalyze,
|
|
6391
|
+
is as PriceAnalyzeProvider,
|
|
6298
6392
|
Re as PriceCoefficient,
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6393
|
+
or as PriceCoefficientEnum,
|
|
6394
|
+
ns as PriceHistoryDataProvider,
|
|
6395
|
+
vt as PriceHistoryItem,
|
|
6302
6396
|
W as PriceTemplate,
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6397
|
+
be as PriceTemplateCategory,
|
|
6398
|
+
se as PriceTemplateClient,
|
|
6399
|
+
ur as PriceTemplateICatalogableItem,
|
|
6400
|
+
Se as PriceTemplateProduct,
|
|
6401
|
+
Et as PriceTemplateProvider,
|
|
6402
|
+
ne as PricingRole,
|
|
6309
6403
|
Wt as PricingRoleProvider,
|
|
6310
|
-
|
|
6404
|
+
xe as PrimaryCatalogableItem,
|
|
6311
6405
|
x as Product,
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6406
|
+
Mt as ProductCategoryDataProvider,
|
|
6407
|
+
Ht as ProductDataProvider,
|
|
6408
|
+
pt as ProductFileType,
|
|
6409
|
+
Ge as ProductPriceCoefficient,
|
|
6410
|
+
Pt as ProductPriceHistory,
|
|
6411
|
+
Jt as PropertiesProvider,
|
|
6412
|
+
ie as Property,
|
|
6413
|
+
hr as PropertyType,
|
|
6414
|
+
Jr as PropertyTypeEnum,
|
|
6415
|
+
z as PropertyValue,
|
|
6416
|
+
os as RecommendationsDataProvider,
|
|
6417
|
+
Ze as RecommendationsList,
|
|
6418
|
+
v as Reference,
|
|
6419
|
+
$ as ReferenceDataProvider,
|
|
6420
|
+
le as Region,
|
|
6421
|
+
mr as ResourceType,
|
|
6328
6422
|
N as SalesDirection,
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6423
|
+
rt as SentryConfig,
|
|
6424
|
+
er as Seo,
|
|
6425
|
+
ls as SeoDataProvider,
|
|
6426
|
+
fr as SourcePrimaryInterest,
|
|
6427
|
+
Mr as StockCount,
|
|
6428
|
+
qt as TemplatesListFilters,
|
|
6429
|
+
Fe as TypedInstanceFactory,
|
|
6430
|
+
Ye as UnitsHelper,
|
|
6431
|
+
Zt as UnknownClientDataProvider,
|
|
6432
|
+
lr as UpdatableNamedIdentity,
|
|
6433
|
+
At as User,
|
|
6434
|
+
ps as UserAuthDataProvider,
|
|
6435
|
+
pr as UserCommonInfo,
|
|
6436
|
+
$t as UserDataProvider,
|
|
6437
|
+
Yr as UserPricingRole,
|
|
6438
|
+
F as UserShortInfo,
|
|
6439
|
+
Dt as UserTypeEnum,
|
|
6440
|
+
tt as VersionConfig,
|
|
6441
|
+
De as Warehouse,
|
|
6442
|
+
st as WebSocketConfig,
|
|
6443
|
+
Ve as findCatalogItemByIdRecursive,
|
|
6444
|
+
Ke as flattenCatalogItems,
|
|
6445
|
+
Te as useAuthStateStore,
|
|
6446
|
+
cs as useReferencesStore,
|
|
6447
|
+
hs as useUserStateStore
|
|
6354
6448
|
};
|
|
6355
6449
|
//# sourceMappingURL=sc-common-lib.js.map
|