@snabcentr/common-lib 2.2.2 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +1 -1
- package/dist/sc-common-lib.js +549 -527
- package/dist/sc-common-lib.js.map +1 -1
- package/dist/sc-common-lib.umd.cjs +1 -1
- package/dist/sc-common-lib.umd.cjs.map +1 -1
- package/dist/src/clients/classes/client-additional-data.d.ts +11 -6
- package/dist/src/clients/classes/client-additional-data.d.ts.map +1 -1
- package/dist/src/clients/classes/client-short-info.d.ts +1 -1
- package/dist/src/clients/classes/client-short-info.d.ts.map +1 -1
- package/dist/src/clients/classes/contragent/contragent-base.d.ts +2 -10
- package/dist/src/clients/classes/contragent/contragent-base.d.ts.map +1 -1
- package/dist/src/clients/classes/contragent/contragent-factory.d.ts +1 -1
- package/dist/src/clients/classes/contragent/contragent-factory.d.ts.map +1 -1
- package/dist/src/clients/classes/contragent/contragent-ic.d.ts +1 -1
- package/dist/src/clients/classes/contragent/contragent-ic.d.ts.map +1 -1
- package/dist/src/clients/classes/contragent/contragent-person.d.ts +1 -1
- package/dist/src/clients/classes/contragent/contragent-person.d.ts.map +1 -1
- package/dist/src/clients/classes/contragent/contragent-ul-nr.d.ts +1 -1
- package/dist/src/clients/classes/contragent/contragent-ul-nr.d.ts.map +1 -1
- package/dist/src/clients/classes/contragent/contragent-ul-r.d.ts +1 -1
- package/dist/src/clients/classes/contragent/contragent-ul-r.d.ts.map +1 -1
- package/dist/src/clients/interfaces/contragent/i-contragent-base.d.ts +1 -10
- package/dist/src/clients/interfaces/contragent/i-contragent-base.d.ts.map +1 -1
- package/dist/src/clients/interfaces/contragent/i-contragent-ic.d.ts.map +1 -1
- package/dist/src/clients/interfaces/contragent/i-contragent-person.d.ts.map +1 -1
- package/dist/src/clients/interfaces/contragent/i-contragent-ul-nr.d.ts +1 -1
- package/dist/src/clients/interfaces/contragent/i-contragent-ul-nr.d.ts.map +1 -1
- package/dist/src/clients/interfaces/contragent/i-contragent-ul-r.d.ts.map +1 -1
- package/dist/src/clients/interfaces/i-client-additional-data.d.ts +5 -0
- package/dist/src/clients/interfaces/i-client-additional-data.d.ts.map +1 -1
- package/dist/src/clients/interfaces/i-client-short-info.d.ts +1 -1
- package/dist/src/clients/interfaces/i-client-short-info.d.ts.map +1 -1
- package/dist/src/clients/providers/client-data-provider.d.ts.map +1 -1
- package/dist/src/orders/providers/orders-data-provider.d.ts +15 -0
- package/dist/src/orders/providers/orders-data-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 { isAfter as
|
|
8
|
-
import { defineStore as
|
|
9
|
-
import { ref as y, markRaw as
|
|
10
|
-
import
|
|
11
|
-
class
|
|
1
|
+
var br = Object.defineProperty;
|
|
2
|
+
var Sr = (n, r, e) => r in n ? br(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
+
var t = (n, r, e) => Sr(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jwtDecode as nr } from "jwt-decode";
|
|
5
|
+
import { merge as qe, isUndefined as ar, isNil as D, isEmpty as K, noop as w, mapValues as or, isArray as V, every as Ir, split as xr, toUpper as kr, constant as Lr, isString as C, cloneDeep as _r, toLower as dr, isFunction as Ne, map as pe, forEach as Or, isDate as ke, omitBy as cr, isObject as lr } from "lodash-es";
|
|
6
|
+
import { objectToCamel as Ue, objectToSnake as We } from "ts-case-convert";
|
|
7
|
+
import { isAfter as Je, parseISO as v, startOfToday as Le, format as L, addSeconds as qr, addBusinessDays as Nr, endOfTomorrow as Ur, startOfTomorrow as Fr, endOfYesterday as Mr, startOfYesterday as jr, endOfToday as Gr, endOfDay as Hr, startOfDay as Br } from "date-fns";
|
|
8
|
+
import { defineStore as ee } from "pinia";
|
|
9
|
+
import { ref as y, markRaw as Er, computed as R } from "vue";
|
|
10
|
+
import zr from "axios";
|
|
11
|
+
class O {
|
|
12
12
|
/**
|
|
13
13
|
* Инициализирует экземпляр класса {@link JwtPayload}.
|
|
14
14
|
*
|
|
@@ -99,7 +99,7 @@ class N {
|
|
|
99
99
|
* @inheritDoc
|
|
100
100
|
*/
|
|
101
101
|
t(this, "email", "");
|
|
102
|
-
|
|
102
|
+
qe(this, r);
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* Возвращает данные полезной нагрузки для указанного JWT-токена.
|
|
@@ -107,11 +107,11 @@ class N {
|
|
|
107
107
|
* @param jwtToken JWT-ключ доступа.
|
|
108
108
|
*/
|
|
109
109
|
static getJwtPayload(r) {
|
|
110
|
-
const e =
|
|
110
|
+
const e = nr(r), s = new O(Ue(e));
|
|
111
111
|
return s.resourceAccess = e.resource_access, s;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class Ut extends
|
|
114
|
+
class Ut extends O {
|
|
115
115
|
/**
|
|
116
116
|
* Инициализирует экземпляр класса {@link DetailedJwtPayload}.
|
|
117
117
|
*
|
|
@@ -143,7 +143,7 @@ class Ut extends N {
|
|
|
143
143
|
* @inheritDoc
|
|
144
144
|
*/
|
|
145
145
|
t(this, "address");
|
|
146
|
-
|
|
146
|
+
qe(this, e);
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
149
|
* Возвращает данные полезной нагрузки для указанного JWT-токена.
|
|
@@ -151,26 +151,26 @@ class Ut extends N {
|
|
|
151
151
|
* @param jwtToken JWT-ключ доступа.
|
|
152
152
|
*/
|
|
153
153
|
static getJwtPayload(e) {
|
|
154
|
-
return new
|
|
154
|
+
return new O(Ue(nr(e)));
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const z = class z {
|
|
158
158
|
/**
|
|
159
159
|
* Инициализирует и возвращает конфигурацию приложения.
|
|
160
160
|
*
|
|
161
161
|
* @param config Данные для первоначальной инициализации.
|
|
162
162
|
*/
|
|
163
163
|
static init(r) {
|
|
164
|
-
|
|
164
|
+
z.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 (ar(z.config))
|
|
172
172
|
throw new Error("Config is undefined. Please set config by AppConfigProvider.init().");
|
|
173
|
-
return
|
|
173
|
+
return z.config;
|
|
174
174
|
}
|
|
175
175
|
/**
|
|
176
176
|
* Выполняет загрузку конфигурации по указанному пути.
|
|
@@ -189,9 +189,9 @@ const J = class J {
|
|
|
189
189
|
/**
|
|
190
190
|
* Конфигурация приложения.
|
|
191
191
|
*/
|
|
192
|
-
t(
|
|
193
|
-
let T =
|
|
194
|
-
class
|
|
192
|
+
t(z, "config");
|
|
193
|
+
let T = z;
|
|
194
|
+
class fe {
|
|
195
195
|
/**
|
|
196
196
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
197
197
|
*
|
|
@@ -210,8 +210,8 @@ class ye {
|
|
|
210
210
|
if (e)
|
|
211
211
|
try {
|
|
212
212
|
const s = JSON.parse(e);
|
|
213
|
-
if (!s.availableFor ||
|
|
214
|
-
if (
|
|
213
|
+
if (!s.availableFor || Je(v(s.availableFor) || Le(), /* @__PURE__ */ new Date())) {
|
|
214
|
+
if (D(s.data) || K(s.data))
|
|
215
215
|
throw new Error("Data is empty");
|
|
216
216
|
return s.data;
|
|
217
217
|
}
|
|
@@ -233,7 +233,7 @@ class ye {
|
|
|
233
233
|
static saveActualDataToStorage(r, e, s) {
|
|
234
234
|
if (this.isLocalStorageAvailable())
|
|
235
235
|
try {
|
|
236
|
-
if (
|
|
236
|
+
if (D(e) || K(e))
|
|
237
237
|
throw new Error("Data is empty");
|
|
238
238
|
const i = JSON.stringify({
|
|
239
239
|
availableFor: s,
|
|
@@ -284,7 +284,7 @@ class ye {
|
|
|
284
284
|
const i = localStorage.getItem(s);
|
|
285
285
|
if (i) {
|
|
286
286
|
const o = JSON.parse(i);
|
|
287
|
-
o.availableFor && !
|
|
287
|
+
o.availableFor && !Je(v(o.availableFor) || Le(), /* @__PURE__ */ new Date()) && r.push(s);
|
|
288
288
|
}
|
|
289
289
|
} catch {
|
|
290
290
|
r.push(s);
|
|
@@ -300,19 +300,19 @@ class ye {
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function Ve(n) {
|
|
304
304
|
try {
|
|
305
|
-
const r =
|
|
305
|
+
const r = O.getJwtPayload(n);
|
|
306
306
|
return new Date(r.exp * 1e3);
|
|
307
307
|
} catch {
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
const
|
|
311
|
+
const G = ee("__auth_state_private", () => {
|
|
312
312
|
const n = y(
|
|
313
313
|
(() => {
|
|
314
314
|
var u;
|
|
315
|
-
const o =
|
|
315
|
+
const o = fe.getActualDataFromStorage(
|
|
316
316
|
"sc.token"
|
|
317
317
|
/* JwtToken */
|
|
318
318
|
);
|
|
@@ -321,11 +321,11 @@ const B = te("__auth_state_private", () => {
|
|
|
321
321
|
const c = (u = T.getConfig().devMode) == null ? void 0 : u.initAuthBearerToken;
|
|
322
322
|
return c ? Promise.resolve(c) : void 0;
|
|
323
323
|
})()
|
|
324
|
-
), r = y(void 0), e = y(void 0), s =
|
|
324
|
+
), r = y(void 0), e = y(void 0), s = Er(/* @__PURE__ */ new Map());
|
|
325
325
|
function i() {
|
|
326
|
-
e.value = void 0,
|
|
327
|
-
const c =
|
|
328
|
-
e.value = c.exp * 1e3 > Date.now() ?
|
|
326
|
+
e.value = void 0, D(n.value) || n.value.then((o) => {
|
|
327
|
+
const c = O.getJwtPayload(o);
|
|
328
|
+
e.value = c.exp * 1e3 > Date.now() ? or(c.resourceAccess, (u) => (u == null ? void 0 : u.roles) ?? []) : void 0;
|
|
329
329
|
}).catch(w);
|
|
330
330
|
}
|
|
331
331
|
return {
|
|
@@ -350,47 +350,47 @@ const B = te("__auth_state_private", () => {
|
|
|
350
350
|
*/
|
|
351
351
|
recalculateUserPermissions: i
|
|
352
352
|
};
|
|
353
|
-
}),
|
|
353
|
+
}), $e = ee("__auth_state", () => {
|
|
354
354
|
const n = R(() => {
|
|
355
|
-
const o =
|
|
356
|
-
if (
|
|
355
|
+
const o = G();
|
|
356
|
+
if (D(o.jwtToken) && !D(o.jwtTokenUpdater)) {
|
|
357
357
|
const c = o.jwtTokenUpdater();
|
|
358
358
|
o.jwtToken = c, c.then((u) => {
|
|
359
|
-
o.jwtToken = Promise.resolve(u),
|
|
359
|
+
o.jwtToken = Promise.resolve(u), fe.saveActualDataToStorage("sc.token", u, Ve(u)), o.recalculateUserPermissions();
|
|
360
360
|
}).catch(w);
|
|
361
361
|
}
|
|
362
362
|
return o.jwtToken;
|
|
363
363
|
});
|
|
364
364
|
function r(o) {
|
|
365
|
-
|
|
365
|
+
G().jwtTokenUpdater = o;
|
|
366
366
|
}
|
|
367
367
|
function e(o) {
|
|
368
|
-
const c =
|
|
369
|
-
c.jwtToken = Promise.resolve(o),
|
|
368
|
+
const c = G();
|
|
369
|
+
c.jwtToken = Promise.resolve(o), fe.saveActualDataToStorage("sc.token", o, Ve(o)), c.recalculateUserPermissions();
|
|
370
370
|
}
|
|
371
371
|
function s() {
|
|
372
|
-
const o =
|
|
373
|
-
o.jwtToken = void 0, o.userPermissions = void 0,
|
|
372
|
+
const o = G();
|
|
373
|
+
o.jwtToken = void 0, o.userPermissions = void 0, fe.saveActualDataToStorage("sc.token", void 0);
|
|
374
374
|
}
|
|
375
375
|
function i(o) {
|
|
376
|
-
const c =
|
|
377
|
-
!
|
|
378
|
-
const m =
|
|
379
|
-
c.userPermissions = m.exp * 1e3 > Date.now() ?
|
|
376
|
+
const c = G();
|
|
377
|
+
!D(c.jwtToken) && D(c.userPermissions) && c.jwtToken.then((f) => {
|
|
378
|
+
const m = O.getJwtPayload(f);
|
|
379
|
+
c.userPermissions = m.exp * 1e3 > Date.now() ? or(m.resourceAccess, (S) => (S == null ? void 0 : S.roles) ?? []) : void 0;
|
|
380
380
|
}).catch(w);
|
|
381
|
-
const u =
|
|
381
|
+
const u = V(o) ? o.join(" && ") : o;
|
|
382
382
|
if (c.userPermissionsComputedRefs.has(u))
|
|
383
383
|
return c.userPermissionsComputedRefs.get(u);
|
|
384
384
|
const p = R(() => {
|
|
385
385
|
const f = (m) => {
|
|
386
|
-
var
|
|
387
|
-
const S =
|
|
386
|
+
var j;
|
|
387
|
+
const S = xr(m, ".");
|
|
388
388
|
if (S.length < 2)
|
|
389
389
|
return !1;
|
|
390
|
-
const [
|
|
391
|
-
return
|
|
390
|
+
const [re, te] = S, M = (j = G().userPermissions) == null ? void 0 : j[re];
|
|
391
|
+
return V(M) && M.includes(te);
|
|
392
392
|
};
|
|
393
|
-
return
|
|
393
|
+
return V(o) ? Ir(o, (m) => f(m)) : f(o);
|
|
394
394
|
});
|
|
395
395
|
return c.userPermissionsComputedRefs.set(u, p), p;
|
|
396
396
|
}
|
|
@@ -423,7 +423,7 @@ const B = te("__auth_state_private", () => {
|
|
|
423
423
|
hasUserPermission: i
|
|
424
424
|
};
|
|
425
425
|
});
|
|
426
|
-
class
|
|
426
|
+
class F {
|
|
427
427
|
/**
|
|
428
428
|
* Инициализирует экземпляр класса {@link Identity}.
|
|
429
429
|
*
|
|
@@ -439,16 +439,16 @@ class j {
|
|
|
439
439
|
* @inheritDoc
|
|
440
440
|
*/
|
|
441
441
|
t(this, "guid");
|
|
442
|
-
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) ?? "";
|
|
443
443
|
}
|
|
444
444
|
/**
|
|
445
445
|
* Возвращает признак, что это новая запись.
|
|
446
446
|
*/
|
|
447
447
|
isNewRec() {
|
|
448
|
-
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);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
class b extends
|
|
451
|
+
class b extends F {
|
|
452
452
|
/**
|
|
453
453
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
454
454
|
*
|
|
@@ -478,7 +478,7 @@ class oe extends b {
|
|
|
478
478
|
this.code = (e == null ? void 0 : e.code) ?? "";
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
class
|
|
481
|
+
class ur extends oe {
|
|
482
482
|
/**
|
|
483
483
|
* Инициализирует экземпляр класса {@link CatalogableItem}.
|
|
484
484
|
*
|
|
@@ -497,7 +497,7 @@ class cr extends oe {
|
|
|
497
497
|
this.slug = (e == null ? void 0 : e.slug) ?? "";
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
class
|
|
500
|
+
class _e extends ur {
|
|
501
501
|
/**
|
|
502
502
|
* Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
|
|
503
503
|
*
|
|
@@ -512,7 +512,7 @@ class de extends cr {
|
|
|
512
512
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
class
|
|
515
|
+
class he extends _e {
|
|
516
516
|
/**
|
|
517
517
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
518
518
|
*
|
|
@@ -536,10 +536,10 @@ class ge extends de {
|
|
|
536
536
|
* Список коэффициентов пересчёта из валют в рубли в формате ключ значение.
|
|
537
537
|
*/
|
|
538
538
|
t(this, "currencyRates");
|
|
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]) => [
|
|
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]) => [kr(s), i])) : void 0;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
var
|
|
542
|
+
var pr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(pr || {});
|
|
543
543
|
class P extends b {
|
|
544
544
|
/**
|
|
545
545
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
@@ -559,15 +559,15 @@ class P extends b {
|
|
|
559
559
|
this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
class
|
|
562
|
+
class Pe extends P {
|
|
563
563
|
/**
|
|
564
564
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
565
565
|
*/
|
|
566
566
|
static getRetailPriceCoefficient() {
|
|
567
|
-
return { id: -2, slug:
|
|
567
|
+
return { id: -2, slug: pr.Retail, name: "Розн. цена", guid: "", isNewRec: Lr(!0) };
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
class
|
|
570
|
+
class Fe {
|
|
571
571
|
/**
|
|
572
572
|
* Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
|
|
573
573
|
*
|
|
@@ -594,10 +594,10 @@ class Me {
|
|
|
594
594
|
* Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
|
|
595
595
|
*/
|
|
596
596
|
t(this, "readOnly");
|
|
597
|
-
this.coefficient = new
|
|
597
|
+
this.coefficient = new Pe(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
class
|
|
600
|
+
class hr {
|
|
601
601
|
/**
|
|
602
602
|
* Инициализирует экземпляр класса {@link GeoCoordinates}.
|
|
603
603
|
*
|
|
@@ -615,9 +615,9 @@ class ur {
|
|
|
615
615
|
this.lat = (r == null ? void 0 : r.lat) ?? 0, this.long = (r == null ? void 0 : r.long) ?? 0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
class
|
|
618
|
+
class Q extends P {
|
|
619
619
|
}
|
|
620
|
-
class
|
|
620
|
+
class Re extends P {
|
|
621
621
|
/**
|
|
622
622
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
623
623
|
*
|
|
@@ -646,10 +646,10 @@ class De extends P {
|
|
|
646
646
|
* Координаты склада.
|
|
647
647
|
*/
|
|
648
648
|
t(this, "coordinates");
|
|
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
|
|
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 Q(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new hr(e == null ? void 0 : e.coordinates);
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
class
|
|
652
|
+
class Wr {
|
|
653
653
|
/**
|
|
654
654
|
* Инициализирует экземпляр класса {@link StockCount}.
|
|
655
655
|
*
|
|
@@ -664,10 +664,10 @@ class zr {
|
|
|
664
664
|
* Количество остатков товара на складе.
|
|
665
665
|
*/
|
|
666
666
|
t(this, "count");
|
|
667
|
-
this.warehouse = new
|
|
667
|
+
this.warehouse = new Re(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
class
|
|
670
|
+
class Jr extends ur {
|
|
671
671
|
/**
|
|
672
672
|
* Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
|
|
673
673
|
*
|
|
@@ -682,7 +682,7 @@ class Wr extends cr {
|
|
|
682
682
|
this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
|
-
class
|
|
685
|
+
class Vr {
|
|
686
686
|
/**
|
|
687
687
|
* Инициализирует экземпляр класса {@link Image}.
|
|
688
688
|
*
|
|
@@ -705,7 +705,7 @@ class Jr {
|
|
|
705
705
|
this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
class I extends
|
|
708
|
+
class I extends Jr {
|
|
709
709
|
/**
|
|
710
710
|
* Инициализирует экземпляр класса {@link Product}.
|
|
711
711
|
*
|
|
@@ -790,9 +790,9 @@ class I extends Wr {
|
|
|
790
790
|
* Список коэффициентов цен на продукт.
|
|
791
791
|
*/
|
|
792
792
|
t(this, "priceCoefficients");
|
|
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 = C(e == null ? void 0 : e.costDate) ? v(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
|
|
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 = C(e == null ? void 0 : e.costDate) ? v(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 Wr(p))) ?? [], this.currencySignature = (e == null ? void 0 : e.currencySignature) ?? "", this.type = "product";
|
|
794
794
|
const s = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
|
|
795
|
-
s && (this.category = new
|
|
795
|
+
s && (this.category = new _e({ ...s, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new _e(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new Vr(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 Fe(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
|
|
796
796
|
}
|
|
797
797
|
/**
|
|
798
798
|
* Возвращает признак, что это измеряемый товар.
|
|
@@ -815,7 +815,7 @@ class I extends Wr {
|
|
|
815
815
|
return this.retailCostRub ?? this.costRub;
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
|
-
class
|
|
818
|
+
class Kr extends F {
|
|
819
819
|
/**
|
|
820
820
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
821
821
|
*
|
|
@@ -867,10 +867,10 @@ class Vr extends j {
|
|
|
867
867
|
* Признак того, что позиция является дополнительной продажей.
|
|
868
868
|
*/
|
|
869
869
|
t(this, "isAdditionalSale");
|
|
870
|
-
this.product = new I(e == null ? void 0 : e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new
|
|
870
|
+
this.product = new I(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 && _r(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
|
-
class
|
|
873
|
+
class Qr extends Kr {
|
|
874
874
|
/**
|
|
875
875
|
* Инициализирует экземпляр класса {@link CartItem}.
|
|
876
876
|
*
|
|
@@ -920,7 +920,7 @@ class Kr extends Vr {
|
|
|
920
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;
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
|
-
class
|
|
923
|
+
class me {
|
|
924
924
|
/**
|
|
925
925
|
* Инициализирует экземпляр класса {@link Cart}.
|
|
926
926
|
*
|
|
@@ -939,10 +939,10 @@ class fe {
|
|
|
939
939
|
* Список итоговых сумм по направлениям продаж.
|
|
940
940
|
*/
|
|
941
941
|
t(this, "directionsSum");
|
|
942
|
-
this.items = r.items.map((e) => new
|
|
942
|
+
this.items = r.items.map((e) => new Qr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
|
-
class
|
|
945
|
+
class Me {
|
|
946
946
|
/**
|
|
947
947
|
* Инициализирует экземпляр указанного класса.
|
|
948
948
|
*
|
|
@@ -1000,7 +1000,7 @@ const a = class a {
|
|
|
1000
1000
|
// eslint-disable-next-line class-methods-use-this
|
|
1001
1001
|
t(this, "authRequestInterceptor", async (r) => {
|
|
1002
1002
|
let e;
|
|
1003
|
-
return
|
|
1003
|
+
return D($e().jwtToken) || (e = await $e().jwtToken), e && r.headers.set("Authorization", `Bearer ${e}`), r;
|
|
1004
1004
|
});
|
|
1005
1005
|
/**
|
|
1006
1006
|
* Перехватчик запроса для преобразования данных запроса.
|
|
@@ -1008,7 +1008,7 @@ const a = class a {
|
|
|
1008
1008
|
* @param request Данные запроса.
|
|
1009
1009
|
*/
|
|
1010
1010
|
// eslint-disable-next-line class-methods-use-this
|
|
1011
|
-
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 = We(r.params)), ["put", "patch", "post"].includes(dr(r.method)) && r.data && (r.data = We(r.data))), r));
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Перехватчик ошибок ответов на запрос.
|
|
1014
1014
|
*
|
|
@@ -1017,7 +1017,7 @@ const a = class a {
|
|
|
1017
1017
|
t(this, "authErrorsResponseInterceptors", (r) => {
|
|
1018
1018
|
var s;
|
|
1019
1019
|
const e = r.rawError ? (s = r.rawError) == null ? void 0 : s.config : void 0;
|
|
1020
|
-
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : (
|
|
1020
|
+
return r.status === 401 ? !e || e.__isRetryRequest ? Promise.reject(r) : ($e().invalidateJwtToken(), e.__isRetryRequest = !0, this.httpClient(e)) : Promise.reject(r);
|
|
1021
1021
|
});
|
|
1022
1022
|
/**
|
|
1023
1023
|
* Перехватчик ответа для преобразования данных ответа на запрос.
|
|
@@ -1025,11 +1025,11 @@ const a = class a {
|
|
|
1025
1025
|
* @param response Данные ответа на запрос.
|
|
1026
1026
|
*/
|
|
1027
1027
|
// eslint-disable-next-line class-methods-use-this
|
|
1028
|
-
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data =
|
|
1028
|
+
t(this, "dataConverterResponseInterceptor", (r) => (r.data && (r.data = Ue(r.data)), r));
|
|
1029
1029
|
const r = T.getConfig().version;
|
|
1030
|
-
this.errorResponseHandler = a.defaultErrorsResponseHandler, this.httpClient =
|
|
1030
|
+
this.errorResponseHandler = a.defaultErrorsResponseHandler, this.httpClient = zr.create({
|
|
1031
1031
|
headers: {
|
|
1032
|
-
"APP-VERSION": `${r.name} (${r.version}, ${
|
|
1032
|
+
"APP-VERSION": `${r.name} (${r.version}, ${L(r.date, T.getConfig().dateFormats.uiDate)})`,
|
|
1033
1033
|
Accept: "application/json",
|
|
1034
1034
|
"Content-Type": "application/json"
|
|
1035
1035
|
}
|
|
@@ -1058,7 +1058,7 @@ const a = class a {
|
|
|
1058
1058
|
* @param type Тип данных, которыми оперирует метод.
|
|
1059
1059
|
*/
|
|
1060
1060
|
static getInstance(r) {
|
|
1061
|
-
return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] =
|
|
1061
|
+
return Object.prototype.hasOwnProperty.call(a.instances, r.name) || (a.instances[r.name] = Me.simpleInstanceInitializer(r)), a.instances[r.name];
|
|
1062
1062
|
}
|
|
1063
1063
|
/**
|
|
1064
1064
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -1067,7 +1067,7 @@ const a = class a {
|
|
|
1067
1067
|
*/
|
|
1068
1068
|
static convertHttpErrorResponse(r) {
|
|
1069
1069
|
var e, s;
|
|
1070
|
-
if (!
|
|
1070
|
+
if (!D(r.request) || !D(r.response)) {
|
|
1071
1071
|
const i = r == null ? void 0 : r.response;
|
|
1072
1072
|
return Promise.reject({
|
|
1073
1073
|
status: (i == null ? void 0 : i.status) ?? 0,
|
|
@@ -1174,7 +1174,7 @@ class Ft extends h {
|
|
|
1174
1174
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_get
|
|
1175
1175
|
*/
|
|
1176
1176
|
getCart(r) {
|
|
1177
|
-
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new
|
|
1177
|
+
return this.get(`internal/clients/${r.id}/cart`, {}, (e) => new me(e.data));
|
|
1178
1178
|
}
|
|
1179
1179
|
/**
|
|
1180
1180
|
* Удаляет всё содержимое корзины.
|
|
@@ -1212,7 +1212,7 @@ class Ft extends h {
|
|
|
1212
1212
|
isAdditionalSale: e.isAdditionalSale,
|
|
1213
1213
|
...e.configuratorParams
|
|
1214
1214
|
},
|
|
1215
|
-
(i) => new
|
|
1215
|
+
(i) => new me(i.data),
|
|
1216
1216
|
s
|
|
1217
1217
|
);
|
|
1218
1218
|
}
|
|
@@ -1242,7 +1242,7 @@ class Ft extends h {
|
|
|
1242
1242
|
isAdditionalSale: e.isAdditionalSale,
|
|
1243
1243
|
...e.configuratorParams
|
|
1244
1244
|
},
|
|
1245
|
-
(i) => new
|
|
1245
|
+
(i) => new me(i.data),
|
|
1246
1246
|
s
|
|
1247
1247
|
);
|
|
1248
1248
|
}
|
|
@@ -1266,7 +1266,7 @@ class Ft extends h {
|
|
|
1266
1266
|
* @see /doc/api/internal#/Корзина/api_internal_client_cart_add_products_from_csv
|
|
1267
1267
|
*/
|
|
1268
1268
|
addCartItemFromCSV(r, e) {
|
|
1269
|
-
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));
|
|
1270
1270
|
}
|
|
1271
1271
|
/**
|
|
1272
1272
|
* Возвращает пример CSV файла для добавления продуктов в корзину.
|
|
@@ -1279,8 +1279,8 @@ class Ft extends h {
|
|
|
1279
1279
|
return this.get(`internal/clients/${r.id}/cart/add-products-from-csv/example`, {}, (e) => new Blob([e.data], { type: "text/csv" }));
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
|
-
var
|
|
1283
|
-
class
|
|
1282
|
+
var Yr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Yr || {}), je = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(je || {}), Xr = /* @__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))(Xr || {});
|
|
1283
|
+
class B extends he {
|
|
1284
1284
|
/**
|
|
1285
1285
|
* Инициализирует экземпляр класса {@link Category}.
|
|
1286
1286
|
*
|
|
@@ -1297,10 +1297,10 @@ class z extends ge {
|
|
|
1297
1297
|
* Список продуктов категории.
|
|
1298
1298
|
*/
|
|
1299
1299
|
t(this, "products");
|
|
1300
|
-
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 B(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
class
|
|
1303
|
+
class gr extends b {
|
|
1304
1304
|
/**
|
|
1305
1305
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1306
1306
|
*
|
|
@@ -1315,7 +1315,7 @@ class pr extends b {
|
|
|
1315
1315
|
this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e == null ? void 0 : e.updatedAt;
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
|
-
class
|
|
1318
|
+
class Zr extends gr {
|
|
1319
1319
|
/**
|
|
1320
1320
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1321
1321
|
*
|
|
@@ -1330,7 +1330,7 @@ class Xr extends pr {
|
|
|
1330
1330
|
this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
class
|
|
1333
|
+
class q extends b {
|
|
1334
1334
|
/**
|
|
1335
1335
|
* Инициализирует экземпляр класса {@link UserShortInfo}.
|
|
1336
1336
|
*
|
|
@@ -1345,7 +1345,7 @@ class U extends b {
|
|
|
1345
1345
|
this.type = e == null ? void 0 : e.type;
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
|
-
class
|
|
1348
|
+
class et extends b {
|
|
1349
1349
|
/**
|
|
1350
1350
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1351
1351
|
*
|
|
@@ -1381,10 +1381,10 @@ class Zr extends b {
|
|
|
1381
1381
|
* Дата и время удаления.
|
|
1382
1382
|
*/
|
|
1383
1383
|
t(this, "deletedAt");
|
|
1384
|
-
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? v(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
|
|
1384
|
+
this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = C(e == null ? void 0 : e.publishedAt) ? v(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 q(e == null ? void 0 : e.owner), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
class
|
|
1387
|
+
class E extends gr {
|
|
1388
1388
|
/**
|
|
1389
1389
|
* Инициализирует экземпляр класса {@link PriceTemplate}.
|
|
1390
1390
|
*
|
|
@@ -1403,7 +1403,7 @@ class W extends pr {
|
|
|
1403
1403
|
this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
|
-
class
|
|
1406
|
+
class Y extends I {
|
|
1407
1407
|
/**
|
|
1408
1408
|
* Инициализирует экземпляр класса {@link ClientProduct}.
|
|
1409
1409
|
*
|
|
@@ -1439,10 +1439,10 @@ class Z extends I {
|
|
|
1439
1439
|
* Признак того, что указанный продукт входит в список избранных продуктов клиента.
|
|
1440
1440
|
*/
|
|
1441
1441
|
t(this, "isFavorite");
|
|
1442
|
-
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 et(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new E(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;
|
|
1443
1443
|
}
|
|
1444
1444
|
}
|
|
1445
|
-
class
|
|
1445
|
+
class mr {
|
|
1446
1446
|
/**
|
|
1447
1447
|
* Инициализирует экземпляр класса {@link ContactLinks}.
|
|
1448
1448
|
*
|
|
@@ -1460,9 +1460,9 @@ class hr {
|
|
|
1460
1460
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
|
-
class
|
|
1463
|
+
class d extends P {
|
|
1464
1464
|
}
|
|
1465
|
-
class
|
|
1465
|
+
class Ge extends b {
|
|
1466
1466
|
/**
|
|
1467
1467
|
* Инициализирует экземпляр класса {@link ManagerCommon}.
|
|
1468
1468
|
*
|
|
@@ -1490,12 +1490,12 @@ class ce extends b {
|
|
|
1490
1490
|
* @inheritDoc
|
|
1491
1491
|
*/
|
|
1492
1492
|
t(this, "isRegionalDirector");
|
|
1493
|
-
this.salesDirection = e != null && e.salesDirection ? new
|
|
1493
|
+
this.salesDirection = e != null && e.salesDirection ? new d(e.salesDirection) : new d(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new mr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
1496
|
class He extends P {
|
|
1497
1497
|
}
|
|
1498
|
-
class
|
|
1498
|
+
class rt extends b {
|
|
1499
1499
|
/**
|
|
1500
1500
|
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
1501
1501
|
*
|
|
@@ -1518,7 +1518,7 @@ class et extends b {
|
|
|
1518
1518
|
this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
|
|
1519
1519
|
}
|
|
1520
1520
|
}
|
|
1521
|
-
class Ae extends
|
|
1521
|
+
class Ae extends Ge {
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1524
1524
|
*
|
|
@@ -1555,10 +1555,10 @@ class Ae extends ce {
|
|
|
1555
1555
|
* Список направлений кураторства.
|
|
1556
1556
|
*/
|
|
1557
1557
|
t(this, "curatedDirections");
|
|
1558
|
-
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
|
|
1558
|
+
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 rt(e.pricingRole) : void 0, this.curatedDirections = ((s = e == null ? void 0 : e.curatedDirections) == null ? void 0 : s.map((i) => new He(i))) ?? [];
|
|
1559
1559
|
}
|
|
1560
1560
|
}
|
|
1561
|
-
class
|
|
1561
|
+
class tt extends he {
|
|
1562
1562
|
/**
|
|
1563
1563
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1564
1564
|
*
|
|
@@ -1589,7 +1589,7 @@ class rt extends ge {
|
|
|
1589
1589
|
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;
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
|
-
class
|
|
1592
|
+
class ye extends tt {
|
|
1593
1593
|
/**
|
|
1594
1594
|
* Инициализирует экземпляр класса {@link ClientCategory}.
|
|
1595
1595
|
*
|
|
@@ -1606,10 +1606,10 @@ class we extends rt {
|
|
|
1606
1606
|
* Список продуктов категории.
|
|
1607
1607
|
*/
|
|
1608
1608
|
t(this, "products");
|
|
1609
|
-
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new
|
|
1609
|
+
this.categories = (s = e == null ? void 0 : e.categories) == null ? void 0 : s.map((o) => new ye(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new Y(o));
|
|
1610
1610
|
}
|
|
1611
1611
|
}
|
|
1612
|
-
class
|
|
1612
|
+
class fr {
|
|
1613
1613
|
/**
|
|
1614
1614
|
* Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
|
|
1615
1615
|
*
|
|
@@ -1624,10 +1624,10 @@ class gr {
|
|
|
1624
1624
|
* Процент, который прибавляется к значению выбранного коэффициента.
|
|
1625
1625
|
*/
|
|
1626
1626
|
t(this, "increasePercent");
|
|
1627
|
-
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new
|
|
1627
|
+
this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Pe(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1628
1628
|
}
|
|
1629
1629
|
}
|
|
1630
|
-
class
|
|
1630
|
+
class be extends fr {
|
|
1631
1631
|
/**
|
|
1632
1632
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1633
1633
|
*
|
|
@@ -1639,10 +1639,10 @@ class Se extends gr {
|
|
|
1639
1639
|
* Базовые данные о продукте.
|
|
1640
1640
|
*/
|
|
1641
1641
|
t(this, "productCategory");
|
|
1642
|
-
this.productCategory = new
|
|
1642
|
+
this.productCategory = new he(e == null ? void 0 : e.productCategory);
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
|
-
class
|
|
1645
|
+
class Be extends b {
|
|
1646
1646
|
/**
|
|
1647
1647
|
* Инициализирует экземпляр класса {@link Curator}.
|
|
1648
1648
|
*
|
|
@@ -1662,12 +1662,12 @@ class mr extends b {
|
|
|
1662
1662
|
* @inheritDoc
|
|
1663
1663
|
*/
|
|
1664
1664
|
t(this, "curatedDirection");
|
|
1665
|
-
this.photo = e.photo, this.contacts = new
|
|
1665
|
+
this.photo = e.photo, this.contacts = new mr(e.contacts), this.curatedDirection = new He(e.curatedDirection);
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
1668
|
-
class
|
|
1668
|
+
class X extends P {
|
|
1669
1669
|
}
|
|
1670
|
-
class
|
|
1670
|
+
class ce extends P {
|
|
1671
1671
|
/**
|
|
1672
1672
|
* Инициализирует экземпляр класса {@link Region}.
|
|
1673
1673
|
*
|
|
@@ -1678,11 +1678,11 @@ class le extends P {
|
|
|
1678
1678
|
/**
|
|
1679
1679
|
* Данные о стране, в которой расположен регион.
|
|
1680
1680
|
*/
|
|
1681
|
-
t(this, "country", new
|
|
1682
|
-
e && (this.country = new
|
|
1681
|
+
t(this, "country", new X());
|
|
1682
|
+
e && (this.country = new X(e.country));
|
|
1683
1683
|
}
|
|
1684
1684
|
}
|
|
1685
|
-
class
|
|
1685
|
+
class Ee extends P {
|
|
1686
1686
|
/**
|
|
1687
1687
|
* Инициализирует экземпляр класса {@link CityWithRegionAndCountry}.
|
|
1688
1688
|
*
|
|
@@ -1693,11 +1693,11 @@ class Be extends P {
|
|
|
1693
1693
|
/**
|
|
1694
1694
|
* Данные о регионе, в котором расположен город.
|
|
1695
1695
|
*/
|
|
1696
|
-
t(this, "region", new
|
|
1697
|
-
e && (this.region = new
|
|
1696
|
+
t(this, "region", new ce());
|
|
1697
|
+
e && (this.region = new ce(e.region));
|
|
1698
1698
|
}
|
|
1699
1699
|
}
|
|
1700
|
-
class
|
|
1700
|
+
class yr extends b {
|
|
1701
1701
|
/**
|
|
1702
1702
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1703
1703
|
*
|
|
@@ -1733,10 +1733,10 @@ class fr extends b {
|
|
|
1733
1733
|
* Признак активности учетной записи пользователя.
|
|
1734
1734
|
*/
|
|
1735
1735
|
t(this, "isActive");
|
|
1736
|
-
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
|
|
1736
|
+
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 d(e.salesDirection) : void 0, this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = C(e == null ? void 0 : e.lastLoginAt) ? v(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
|
-
class
|
|
1739
|
+
class ge extends yr {
|
|
1740
1740
|
/**
|
|
1741
1741
|
* Инициализирует экземпляр класса {@link Client}.
|
|
1742
1742
|
*
|
|
@@ -1782,10 +1782,10 @@ class me extends fr {
|
|
|
1782
1782
|
* @inheritDoc
|
|
1783
1783
|
*/
|
|
1784
1784
|
t(this, "curators");
|
|
1785
|
-
this.salesDirection = new
|
|
1785
|
+
this.salesDirection = new d(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 Ee(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((o) => new Ge(o))) ?? [], this.curators = ((i = e == null ? void 0 : e.curators) == null ? void 0 : i.map((o) => new Be(o))) ?? void 0;
|
|
1786
1786
|
}
|
|
1787
1787
|
}
|
|
1788
|
-
class se extends
|
|
1788
|
+
class se extends F {
|
|
1789
1789
|
/**
|
|
1790
1790
|
* Инициализирует новый экземпляр класса.
|
|
1791
1791
|
*
|
|
@@ -1809,10 +1809,10 @@ class se extends j {
|
|
|
1809
1809
|
* Данные шаблона прайс-листа.
|
|
1810
1810
|
*/
|
|
1811
1811
|
t(this, "priceTemplate");
|
|
1812
|
-
this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new
|
|
1812
|
+
this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new ge(e == null ? void 0 : e.client), this.priceTemplate = new E(e == null ? void 0 : e.priceTemplate);
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
|
-
class
|
|
1815
|
+
class Se extends fr {
|
|
1816
1816
|
/**
|
|
1817
1817
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1818
1818
|
*
|
|
@@ -1827,7 +1827,7 @@ class ae extends gr {
|
|
|
1827
1827
|
this.product = new I(e == null ? void 0 : e.product);
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
|
-
class
|
|
1830
|
+
class wr extends P {
|
|
1831
1831
|
}
|
|
1832
1832
|
class ie extends b {
|
|
1833
1833
|
/**
|
|
@@ -1849,10 +1849,10 @@ class ie extends b {
|
|
|
1849
1849
|
* Дополнительные метаданные свойства.
|
|
1850
1850
|
*/
|
|
1851
1851
|
t(this, "metadata");
|
|
1852
|
-
this.type = new
|
|
1852
|
+
this.type = new wr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
|
-
class
|
|
1855
|
+
class H {
|
|
1856
1856
|
/**
|
|
1857
1857
|
* Инициализирует экземпляр класса {@link PropertyValue}.
|
|
1858
1858
|
*
|
|
@@ -1949,7 +1949,7 @@ class Mt {
|
|
|
1949
1949
|
return Object.keys(this).forEach((c) => {
|
|
1950
1950
|
const u = this[c];
|
|
1951
1951
|
// eslint-disable-next-line prettier/prettier
|
|
1952
|
-
|
|
1952
|
+
D(u) || C(u) && u.trim().length === 0 || Ne(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
1953
1953
|
}), !((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;
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
@@ -1988,7 +1988,7 @@ class ne extends b {
|
|
|
1988
1988
|
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;
|
|
1989
1989
|
}
|
|
1990
1990
|
}
|
|
1991
|
-
class
|
|
1991
|
+
class Ke {
|
|
1992
1992
|
/**
|
|
1993
1993
|
* Инициализирует экземпляр класса {@link PricingRoleCategoryRule}.
|
|
1994
1994
|
*
|
|
@@ -2007,10 +2007,10 @@ class Ve {
|
|
|
2007
2007
|
* Минимальный коэффициент цены.
|
|
2008
2008
|
*/
|
|
2009
2009
|
t(this, "minCoefficient");
|
|
2010
|
-
this.role = new ne(r == null ? void 0 : r.role), this.category = new
|
|
2010
|
+
this.role = new ne(r == null ? void 0 : r.role), this.category = new he(r == null ? void 0 : r.category), this.minCoefficient = new Pe(r == null ? void 0 : r.minCoefficient);
|
|
2011
2011
|
}
|
|
2012
2012
|
}
|
|
2013
|
-
class
|
|
2013
|
+
class st {
|
|
2014
2014
|
/**
|
|
2015
2015
|
* Инициализирует экземпляр класса {@link DeviceTypeResolutionConfig}.
|
|
2016
2016
|
*
|
|
@@ -2032,7 +2032,7 @@ class tt {
|
|
|
2032
2032
|
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;
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
|
-
class
|
|
2035
|
+
class it {
|
|
2036
2036
|
/**
|
|
2037
2037
|
* Инициализирует экземпляр класса {@link HttpParamsConfig}.
|
|
2038
2038
|
*
|
|
@@ -2062,7 +2062,7 @@ class st {
|
|
|
2062
2062
|
this.portalApiUrl = (r == null ? void 0 : r.portalApiUrl) ?? "", this.priceHistoryApiUrl = (r == null ? void 0 : r.priceHistoryApiUrl) ?? "", this.recommendationsApiUrl = (r == null ? void 0 : r.recommendationsApiUrl) ?? "", this.mediaUrl = (r == null ? void 0 : r.mediaUrl) ?? "", this.responseDataCacheTimeout = (r == null ? void 0 : r.responseDataCacheTimeout) ?? 3 * 60 * 60;
|
|
2063
2063
|
}
|
|
2064
2064
|
}
|
|
2065
|
-
class
|
|
2065
|
+
class nt {
|
|
2066
2066
|
/**
|
|
2067
2067
|
* Инициализирует экземпляр класса {@link SentryConfig}.
|
|
2068
2068
|
*
|
|
@@ -2107,7 +2107,7 @@ class it {
|
|
|
2107
2107
|
}, this.additionalParams = (r == null ? void 0 : r.additionalParams) ?? {};
|
|
2108
2108
|
}
|
|
2109
2109
|
}
|
|
2110
|
-
class
|
|
2110
|
+
class ot {
|
|
2111
2111
|
/**
|
|
2112
2112
|
* Инициализирует экземпляр класса {@link VersionConfig}.
|
|
2113
2113
|
*
|
|
@@ -2129,7 +2129,7 @@ class nt {
|
|
|
2129
2129
|
this.date = C(r == null ? void 0 : r.date) ? v(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";
|
|
2130
2130
|
}
|
|
2131
2131
|
}
|
|
2132
|
-
class
|
|
2132
|
+
class ct {
|
|
2133
2133
|
/**
|
|
2134
2134
|
* Инициализирует экземпляр класса {@link WebSocketConfig}.
|
|
2135
2135
|
*
|
|
@@ -2216,10 +2216,10 @@ class jt {
|
|
|
2216
2216
|
*/
|
|
2217
2217
|
t(this, "dateFormats");
|
|
2218
2218
|
var e, s, i;
|
|
2219
|
-
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new
|
|
2219
|
+
this.environment = (r == null ? void 0 : r.environment) ?? "production", this.devMode = (r == null ? void 0 : r.devMode) ?? {}, this.http = new it(r == null ? void 0 : r.http), this.deviceTypeByResolution = new st(r == null ? void 0 : r.deviceTypeByResolution), this.sentry = new nt({
|
|
2220
2220
|
environment: this.environment,
|
|
2221
2221
|
...r == null ? void 0 : r.sentry
|
|
2222
|
-
}), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.version = new
|
|
2222
|
+
}), this.tableDefaultHeightCoefficient = (r == null ? void 0 : r.tableDefaultHeightCoefficient) ?? 0.7, this.urls = r == null ? void 0 : r.urls, this.version = new ot(r == null ? void 0 : r.version), this.websocket = r != null && r.websocket ? new ct(r.websocket) : void 0, this.dateFormats = {
|
|
2223
2223
|
api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
|
|
2224
2224
|
uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
|
|
2225
2225
|
uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
|
|
@@ -2381,7 +2381,7 @@ class Ht extends h {
|
|
|
2381
2381
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2382
2382
|
increase_percent: s.value
|
|
2383
2383
|
},
|
|
2384
|
-
(o) => new
|
|
2384
|
+
(o) => new Y(o.data)
|
|
2385
2385
|
);
|
|
2386
2386
|
}
|
|
2387
2387
|
/**
|
|
@@ -2393,7 +2393,7 @@ class Ht extends h {
|
|
|
2393
2393
|
* @see /doc/api/internal#/operations/api_internal_client_price_products_remove
|
|
2394
2394
|
*/
|
|
2395
2395
|
removeProductPrice(r, e) {
|
|
2396
|
-
return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new
|
|
2396
|
+
return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new Y(s.data));
|
|
2397
2397
|
}
|
|
2398
2398
|
/**
|
|
2399
2399
|
* Добавляет указанный продукт в список товаров для дополнительных продаж.
|
|
@@ -2495,8 +2495,8 @@ class Bt extends h {
|
|
|
2495
2495
|
return this.post(
|
|
2496
2496
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
2497
2497
|
s && {
|
|
2498
|
-
startAt: s.startAt &&
|
|
2499
|
-
endAt: s.endAt &&
|
|
2498
|
+
startAt: s.startAt && L(s.startAt, i),
|
|
2499
|
+
endAt: s.endAt && L(s.endAt, i)
|
|
2500
2500
|
},
|
|
2501
2501
|
(o) => new se(o.data),
|
|
2502
2502
|
{},
|
|
@@ -2529,8 +2529,8 @@ class Bt extends h {
|
|
|
2529
2529
|
return this.patch(
|
|
2530
2530
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
2531
2531
|
i && {
|
|
2532
|
-
startAt: i.startAt &&
|
|
2533
|
-
endAt: i.endAt &&
|
|
2532
|
+
startAt: i.startAt && L(i.startAt, o),
|
|
2533
|
+
endAt: i.endAt && L(i.endAt, o)
|
|
2534
2534
|
},
|
|
2535
2535
|
(c) => new se(c.data)
|
|
2536
2536
|
);
|
|
@@ -2562,7 +2562,7 @@ class Et extends h {
|
|
|
2562
2562
|
{
|
|
2563
2563
|
showHidden: r
|
|
2564
2564
|
},
|
|
2565
|
-
(e) => e.data.map((s) => new
|
|
2565
|
+
(e) => e.data.map((s) => new B(s))
|
|
2566
2566
|
);
|
|
2567
2567
|
}
|
|
2568
2568
|
/**
|
|
@@ -2581,7 +2581,7 @@ class Et extends h {
|
|
|
2581
2581
|
showHidden: e,
|
|
2582
2582
|
withNestedCategories: s
|
|
2583
2583
|
},
|
|
2584
|
-
(i) => new
|
|
2584
|
+
(i) => new B(i.data)
|
|
2585
2585
|
);
|
|
2586
2586
|
}
|
|
2587
2587
|
/**
|
|
@@ -2590,7 +2590,7 @@ class Et extends h {
|
|
|
2590
2590
|
* @param categoryID Идентификатор категории продуктов.
|
|
2591
2591
|
*/
|
|
2592
2592
|
getPublicCategoryData(r) {
|
|
2593
|
-
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new
|
|
2593
|
+
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new B(e.data));
|
|
2594
2594
|
}
|
|
2595
2595
|
/**
|
|
2596
2596
|
* Возвращает список продуктов категории.
|
|
@@ -2608,7 +2608,7 @@ class Et extends h {
|
|
|
2608
2608
|
showHidden: s,
|
|
2609
2609
|
withPriceCoefficients: e
|
|
2610
2610
|
},
|
|
2611
|
-
(i) =>
|
|
2611
|
+
(i) => pe(i.data, (o) => new I(o))
|
|
2612
2612
|
);
|
|
2613
2613
|
}
|
|
2614
2614
|
/**
|
|
@@ -2621,7 +2621,7 @@ class Et extends h {
|
|
|
2621
2621
|
getCategoryProductsCoefficients(r) {
|
|
2622
2622
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2623
2623
|
const { data: s } = e;
|
|
2624
|
-
return
|
|
2624
|
+
return Or(s, (i) => i.map((o) => new Fe(o))), s;
|
|
2625
2625
|
});
|
|
2626
2626
|
}
|
|
2627
2627
|
/**
|
|
@@ -2633,7 +2633,7 @@ class Et extends h {
|
|
|
2633
2633
|
publicSimpleSearch(r, e = 10) {
|
|
2634
2634
|
return new Promise((s, i) => {
|
|
2635
2635
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2636
|
-
s(o.categories.map((c) => new
|
|
2636
|
+
s(o.categories.map((c) => new B(c)));
|
|
2637
2637
|
}).catch((o) => {
|
|
2638
2638
|
i(o);
|
|
2639
2639
|
});
|
|
@@ -2671,7 +2671,7 @@ class zt extends h {
|
|
|
2671
2671
|
return this.get(
|
|
2672
2672
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2673
2673
|
{},
|
|
2674
|
-
(e) =>
|
|
2674
|
+
(e) => pe(e.data, (s) => new Fe(s))
|
|
2675
2675
|
);
|
|
2676
2676
|
}
|
|
2677
2677
|
/**
|
|
@@ -2706,7 +2706,7 @@ class Wt extends h {
|
|
|
2706
2706
|
clientId: r,
|
|
2707
2707
|
showHidden: e
|
|
2708
2708
|
},
|
|
2709
|
-
(s) => s.data.map((i) => new
|
|
2709
|
+
(s) => s.data.map((i) => new ye(i))
|
|
2710
2710
|
);
|
|
2711
2711
|
}
|
|
2712
2712
|
/**
|
|
@@ -2727,7 +2727,7 @@ class Wt extends h {
|
|
|
2727
2727
|
showHidden: s,
|
|
2728
2728
|
withNestedCategories: i
|
|
2729
2729
|
},
|
|
2730
|
-
(o) => new
|
|
2730
|
+
(o) => new ye(o.data)
|
|
2731
2731
|
);
|
|
2732
2732
|
}
|
|
2733
2733
|
/**
|
|
@@ -2748,7 +2748,7 @@ class Wt extends h {
|
|
|
2748
2748
|
showHidden: i,
|
|
2749
2749
|
withPriceCoefficients: s
|
|
2750
2750
|
},
|
|
2751
|
-
(o) =>
|
|
2751
|
+
(o) => pe(o.data, (c) => new Y(c))
|
|
2752
2752
|
);
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
@@ -2769,12 +2769,12 @@ class Jt extends h {
|
|
|
2769
2769
|
clientId: e,
|
|
2770
2770
|
withPriceCoefficients: s
|
|
2771
2771
|
},
|
|
2772
|
-
(i) => new
|
|
2772
|
+
(i) => new Y(i.data)
|
|
2773
2773
|
);
|
|
2774
2774
|
}
|
|
2775
2775
|
}
|
|
2776
|
-
var
|
|
2777
|
-
class
|
|
2776
|
+
var ze = /* @__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))(ze || {});
|
|
2777
|
+
class Qe {
|
|
2778
2778
|
/**
|
|
2779
2779
|
* Инициализирует экземпляр класса {@link FilterItem}.
|
|
2780
2780
|
*
|
|
@@ -2793,7 +2793,7 @@ class Ke {
|
|
|
2793
2793
|
* Значение с которым сравнивается поле.
|
|
2794
2794
|
*/
|
|
2795
2795
|
t(this, "value");
|
|
2796
|
-
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ??
|
|
2796
|
+
this.field = (r == null ? void 0 : r.field) ?? "", this.op = (r == null ? void 0 : r.op) ?? ze.Equals, this.value = (r == null ? void 0 : r.value) ?? "";
|
|
2797
2797
|
}
|
|
2798
2798
|
/**
|
|
2799
2799
|
* Преобразует фильтр в примитивное представление для API.
|
|
@@ -2805,10 +2805,10 @@ class Ke {
|
|
|
2805
2805
|
field: this.field,
|
|
2806
2806
|
op: this.op
|
|
2807
2807
|
};
|
|
2808
|
-
return r.value = ke(this.value) ?
|
|
2808
|
+
return r.value = ke(this.value) ? L(this.value, T.getConfig().dateFormats.api) : this.value, r;
|
|
2809
2809
|
}
|
|
2810
2810
|
}
|
|
2811
|
-
class
|
|
2811
|
+
class le {
|
|
2812
2812
|
/**
|
|
2813
2813
|
* Инициализирует экземпляр класса {@link FilterGroup}.
|
|
2814
2814
|
*
|
|
@@ -2828,7 +2828,7 @@ class ue {
|
|
|
2828
2828
|
*/
|
|
2829
2829
|
t(this, "groups");
|
|
2830
2830
|
var e, s;
|
|
2831
|
-
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
|
|
2831
|
+
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 Qe(i))) ?? [], this.groups = ((s = r == null ? void 0 : r.groups) == null ? void 0 : s.map((i) => new le(i))) ?? [];
|
|
2832
2832
|
}
|
|
2833
2833
|
/**
|
|
2834
2834
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2838,12 +2838,12 @@ class ue {
|
|
|
2838
2838
|
toPrimitive() {
|
|
2839
2839
|
return {
|
|
2840
2840
|
groupOp: this.groupOp,
|
|
2841
|
-
filters: this.filters.map((r) => r instanceof
|
|
2842
|
-
groups: this.groups.map((r) => r instanceof
|
|
2841
|
+
filters: this.filters.map((r) => r instanceof Qe && Ne(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2842
|
+
groups: this.groups.map((r) => r instanceof le ? r.toPrimitive() : r)
|
|
2843
2843
|
};
|
|
2844
2844
|
}
|
|
2845
2845
|
}
|
|
2846
|
-
class
|
|
2846
|
+
class De extends h {
|
|
2847
2847
|
/**
|
|
2848
2848
|
* Получает пагинированный список данных.
|
|
2849
2849
|
*
|
|
@@ -2860,10 +2860,10 @@ class Te extends h {
|
|
|
2860
2860
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2861
2861
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2862
2862
|
};
|
|
2863
|
-
return e && (p.filters = JSON.stringify((e instanceof
|
|
2863
|
+
return e && (p.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), K(s) || (p.sort = V(s) ? s : [s]), o && (p = { ...p, ...o }), this.get(r, p, c, u);
|
|
2864
2864
|
}
|
|
2865
2865
|
}
|
|
2866
|
-
class Vt extends
|
|
2866
|
+
class Vt extends De {
|
|
2867
2867
|
/**
|
|
2868
2868
|
* Возвращает список шаблонов прайс-листа.
|
|
2869
2869
|
*
|
|
@@ -2876,7 +2876,7 @@ class Vt extends Te {
|
|
|
2876
2876
|
getTemplateList(r, e, s) {
|
|
2877
2877
|
return this.getPaginated("/internal/price/templates", r, e, s, {}, (i) => {
|
|
2878
2878
|
const o = { ...i.data };
|
|
2879
|
-
return o.data = o.data.map((c) => new
|
|
2879
|
+
return o.data = o.data.map((c) => new E(c)), o;
|
|
2880
2880
|
});
|
|
2881
2881
|
}
|
|
2882
2882
|
/**
|
|
@@ -2889,7 +2889,7 @@ class Vt extends Te {
|
|
|
2889
2889
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
|
|
2890
2890
|
*/
|
|
2891
2891
|
createTemplate(r, e = {}) {
|
|
2892
|
-
return this.post("/internal/price/templates", r, (s) => new
|
|
2892
|
+
return this.post("/internal/price/templates", r, (s) => new E(s.data), e);
|
|
2893
2893
|
}
|
|
2894
2894
|
/**
|
|
2895
2895
|
* Возвращает данные о шаблоне прайс-листа.
|
|
@@ -2899,7 +2899,7 @@ class Vt extends Te {
|
|
|
2899
2899
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
|
|
2900
2900
|
*/
|
|
2901
2901
|
getTemplate(r) {
|
|
2902
|
-
return this.get(`/internal/price/templates/${r}`, {}, (e) => new
|
|
2902
|
+
return this.get(`/internal/price/templates/${r}`, {}, (e) => new E(e.data));
|
|
2903
2903
|
}
|
|
2904
2904
|
/**
|
|
2905
2905
|
* Изменяет данные о шаблоне прайс-листа.
|
|
@@ -2912,7 +2912,7 @@ class Vt extends Te {
|
|
|
2912
2912
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
|
|
2913
2913
|
*/
|
|
2914
2914
|
updateTemplate(r, e, s = {}) {
|
|
2915
|
-
return this.patch(`/internal/price/templates/${r}`, e, (i) => new
|
|
2915
|
+
return this.patch(`/internal/price/templates/${r}`, e, (i) => new E(i.data), s);
|
|
2916
2916
|
}
|
|
2917
2917
|
/**
|
|
2918
2918
|
* Удаляет данные о шаблоне прайс-листа.
|
|
@@ -2935,7 +2935,7 @@ class Vt extends Te {
|
|
|
2935
2935
|
return this.get(
|
|
2936
2936
|
`/internal/price/templates/${r}/products`,
|
|
2937
2937
|
{},
|
|
2938
|
-
(e) => e.data.map((s) => new
|
|
2938
|
+
(e) => e.data.map((s) => new Se(s))
|
|
2939
2939
|
);
|
|
2940
2940
|
}
|
|
2941
2941
|
/**
|
|
@@ -2947,7 +2947,7 @@ class Vt extends Te {
|
|
|
2947
2947
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
2948
2948
|
*/
|
|
2949
2949
|
getProductTemplatePrice(r, e) {
|
|
2950
|
-
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new
|
|
2950
|
+
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Se(s.data));
|
|
2951
2951
|
}
|
|
2952
2952
|
/**
|
|
2953
2953
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -2966,7 +2966,7 @@ class Vt extends Te {
|
|
|
2966
2966
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2967
2967
|
increase_percent: s.value
|
|
2968
2968
|
},
|
|
2969
|
-
(o) => new
|
|
2969
|
+
(o) => new Se(o.data)
|
|
2970
2970
|
);
|
|
2971
2971
|
}
|
|
2972
2972
|
/**
|
|
@@ -2991,7 +2991,7 @@ class Vt extends Te {
|
|
|
2991
2991
|
return this.get(
|
|
2992
2992
|
`/internal/price/templates/${r}/categories`,
|
|
2993
2993
|
{},
|
|
2994
|
-
(e) => e.data.map((s) => new
|
|
2994
|
+
(e) => e.data.map((s) => new be(s))
|
|
2995
2995
|
);
|
|
2996
2996
|
}
|
|
2997
2997
|
/**
|
|
@@ -3006,7 +3006,7 @@ class Vt extends Te {
|
|
|
3006
3006
|
return this.get(
|
|
3007
3007
|
`/internal/price/templates/${r}/categories/${e}`,
|
|
3008
3008
|
{},
|
|
3009
|
-
(s) => new
|
|
3009
|
+
(s) => new be(s.data)
|
|
3010
3010
|
);
|
|
3011
3011
|
}
|
|
3012
3012
|
/**
|
|
@@ -3032,7 +3032,7 @@ class Vt extends Te {
|
|
|
3032
3032
|
},
|
|
3033
3033
|
params: i ? { recursively: !0 } : {}
|
|
3034
3034
|
},
|
|
3035
|
-
(c) => new
|
|
3035
|
+
(c) => new be(c.data)
|
|
3036
3036
|
);
|
|
3037
3037
|
}
|
|
3038
3038
|
/**
|
|
@@ -3128,7 +3128,7 @@ class Kt extends h {
|
|
|
3128
3128
|
return this.get(
|
|
3129
3129
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3130
3130
|
{},
|
|
3131
|
-
(e) => e.data.map((s) => new
|
|
3131
|
+
(e) => e.data.map((s) => new Ke(s))
|
|
3132
3132
|
);
|
|
3133
3133
|
}
|
|
3134
3134
|
/**
|
|
@@ -3143,11 +3143,11 @@ class Kt extends h {
|
|
|
3143
3143
|
return this.patch(
|
|
3144
3144
|
`/internal/price/roles/rules/categories/${r}`,
|
|
3145
3145
|
e,
|
|
3146
|
-
(s) => s.data.map((i) => new
|
|
3146
|
+
(s) => s.data.map((i) => new Ke(i))
|
|
3147
3147
|
);
|
|
3148
3148
|
}
|
|
3149
3149
|
}
|
|
3150
|
-
class Qt extends
|
|
3150
|
+
class Qt extends De {
|
|
3151
3151
|
/**
|
|
3152
3152
|
* Возвращает пагинированный список свойств.
|
|
3153
3153
|
*
|
|
@@ -3223,7 +3223,7 @@ class Qt extends Te {
|
|
|
3223
3223
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
|
|
3224
3224
|
*/
|
|
3225
3225
|
getProductProperties(r) {
|
|
3226
|
-
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
3226
|
+
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
|
|
3227
3227
|
}
|
|
3228
3228
|
/**
|
|
3229
3229
|
* Возвращает значение свойства продукта.
|
|
@@ -3233,7 +3233,7 @@ class Qt extends Te {
|
|
|
3233
3233
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
|
|
3234
3234
|
*/
|
|
3235
3235
|
getProductProperty(r, e) {
|
|
3236
|
-
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new
|
|
3236
|
+
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new H(s.data));
|
|
3237
3237
|
}
|
|
3238
3238
|
/**
|
|
3239
3239
|
* Обновляет значение свойства продукта.
|
|
@@ -3244,7 +3244,7 @@ class Qt extends Te {
|
|
|
3244
3244
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
|
|
3245
3245
|
*/
|
|
3246
3246
|
updateProductProperty(r, e, s) {
|
|
3247
|
-
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new
|
|
3247
|
+
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
|
|
3248
3248
|
}
|
|
3249
3249
|
/**
|
|
3250
3250
|
* Удаляет значение свойства продукта.
|
|
@@ -3369,7 +3369,7 @@ class Qt extends Te {
|
|
|
3369
3369
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
|
|
3370
3370
|
*/
|
|
3371
3371
|
getCategoryProperties(r) {
|
|
3372
|
-
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
3372
|
+
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new H(s)));
|
|
3373
3373
|
}
|
|
3374
3374
|
/**
|
|
3375
3375
|
* Возвращает значение свойства категории.
|
|
@@ -3379,7 +3379,7 @@ class Qt extends Te {
|
|
|
3379
3379
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
|
|
3380
3380
|
*/
|
|
3381
3381
|
getCategoryProperty(r, e) {
|
|
3382
|
-
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new
|
|
3382
|
+
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new H(s.data));
|
|
3383
3383
|
}
|
|
3384
3384
|
/**
|
|
3385
3385
|
* Обновляет значение свойства категории.
|
|
@@ -3390,7 +3390,7 @@ class Qt extends Te {
|
|
|
3390
3390
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
|
|
3391
3391
|
*/
|
|
3392
3392
|
updateCategoryProperty(r, e, s) {
|
|
3393
|
-
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new
|
|
3393
|
+
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new H(i.data));
|
|
3394
3394
|
}
|
|
3395
3395
|
/**
|
|
3396
3396
|
* Удаляет значение свойства категории.
|
|
@@ -3519,7 +3519,7 @@ class Qt extends Te {
|
|
|
3519
3519
|
return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
|
|
3520
3520
|
}
|
|
3521
3521
|
}
|
|
3522
|
-
function
|
|
3522
|
+
function Ye(n, r, e) {
|
|
3523
3523
|
let s;
|
|
3524
3524
|
return n.some((i) => {
|
|
3525
3525
|
if (i.type === e && i.id === r)
|
|
@@ -3528,37 +3528,37 @@ function Qe(n, r, e) {
|
|
|
3528
3528
|
return !1;
|
|
3529
3529
|
const o = i;
|
|
3530
3530
|
if (o.products && o.products.length > 0) {
|
|
3531
|
-
const c =
|
|
3531
|
+
const c = Ye(o.products, r, e);
|
|
3532
3532
|
if (c)
|
|
3533
3533
|
return s = c, !0;
|
|
3534
3534
|
}
|
|
3535
3535
|
if (o.categories && o.categories.length > 0) {
|
|
3536
|
-
const c =
|
|
3536
|
+
const c = Ye(o.categories, r, e);
|
|
3537
3537
|
if (c)
|
|
3538
3538
|
return s = c, !0;
|
|
3539
3539
|
}
|
|
3540
3540
|
return !1;
|
|
3541
3541
|
}), s;
|
|
3542
3542
|
}
|
|
3543
|
-
function
|
|
3543
|
+
function Xe(n) {
|
|
3544
3544
|
const r = [];
|
|
3545
3545
|
return n.forEach((e) => {
|
|
3546
3546
|
if (r.push(e), e.type === "category") {
|
|
3547
3547
|
const s = e;
|
|
3548
|
-
s.products && s.products.length > 0 && r.push(...
|
|
3548
|
+
s.products && s.products.length > 0 && r.push(...Xe(s.products)), s.categories && s.categories.length > 0 && r.push(...Xe(s.categories));
|
|
3549
3549
|
}
|
|
3550
3550
|
}), r;
|
|
3551
3551
|
}
|
|
3552
|
-
var
|
|
3553
|
-
class
|
|
3552
|
+
var lt = /* @__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.Curators = "curators", n))(lt || {}), _ = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(_ || {});
|
|
3553
|
+
class ut extends P {
|
|
3554
3554
|
}
|
|
3555
|
-
class
|
|
3555
|
+
class Cr extends P {
|
|
3556
3556
|
}
|
|
3557
3557
|
class Yt extends P {
|
|
3558
3558
|
}
|
|
3559
|
-
class
|
|
3559
|
+
class pt extends P {
|
|
3560
3560
|
}
|
|
3561
|
-
class
|
|
3561
|
+
class we extends b {
|
|
3562
3562
|
/**
|
|
3563
3563
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
3564
3564
|
*
|
|
@@ -3577,34 +3577,34 @@ class Ce extends b {
|
|
|
3577
3577
|
e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
|
|
3578
3578
|
}
|
|
3579
3579
|
}
|
|
3580
|
-
class
|
|
3580
|
+
class N extends P {
|
|
3581
3581
|
/**
|
|
3582
3582
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
3583
3583
|
*/
|
|
3584
3584
|
static generatePersonItem() {
|
|
3585
|
-
return new
|
|
3585
|
+
return new N({
|
|
3586
3586
|
id: 1,
|
|
3587
3587
|
guid: "",
|
|
3588
|
-
slug:
|
|
3588
|
+
slug: _.Person,
|
|
3589
3589
|
name: ""
|
|
3590
3590
|
});
|
|
3591
3591
|
}
|
|
3592
3592
|
}
|
|
3593
|
-
class pt extends P {
|
|
3594
|
-
}
|
|
3595
3593
|
class ht extends P {
|
|
3596
3594
|
}
|
|
3597
|
-
class re extends P {
|
|
3598
|
-
}
|
|
3599
3595
|
class gt extends P {
|
|
3600
3596
|
}
|
|
3597
|
+
class Z extends P {
|
|
3598
|
+
}
|
|
3601
3599
|
class mt extends P {
|
|
3602
3600
|
}
|
|
3603
|
-
class
|
|
3601
|
+
class ft extends P {
|
|
3604
3602
|
}
|
|
3605
3603
|
class vr extends P {
|
|
3606
3604
|
}
|
|
3607
|
-
class
|
|
3605
|
+
class Pr extends P {
|
|
3606
|
+
}
|
|
3607
|
+
class de extends F {
|
|
3608
3608
|
/**
|
|
3609
3609
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3610
3610
|
*
|
|
@@ -3631,11 +3631,11 @@ class Oe extends j {
|
|
|
3631
3631
|
/**
|
|
3632
3632
|
* Данные о валюте.
|
|
3633
3633
|
*/
|
|
3634
|
-
t(this, "currency", new
|
|
3635
|
-
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new
|
|
3634
|
+
t(this, "currency", new we());
|
|
3635
|
+
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new we(e.currency));
|
|
3636
3636
|
}
|
|
3637
3637
|
}
|
|
3638
|
-
class
|
|
3638
|
+
class Oe extends b {
|
|
3639
3639
|
/**
|
|
3640
3640
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3641
3641
|
*
|
|
@@ -3654,7 +3654,7 @@ class qe extends b {
|
|
|
3654
3654
|
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;
|
|
3655
3655
|
}
|
|
3656
3656
|
}
|
|
3657
|
-
class
|
|
3657
|
+
class U extends Oe {
|
|
3658
3658
|
/**
|
|
3659
3659
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3660
3660
|
*
|
|
@@ -3689,7 +3689,7 @@ class M extends qe {
|
|
|
3689
3689
|
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 = C(e == null ? void 0 : e.deletedAt) ? v(e.deletedAt) : e == null ? void 0 : e.deletedAt;
|
|
3690
3690
|
}
|
|
3691
3691
|
}
|
|
3692
|
-
class
|
|
3692
|
+
class Rr extends b {
|
|
3693
3693
|
/**
|
|
3694
3694
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3695
3695
|
*
|
|
@@ -3698,22 +3698,14 @@ class Pr extends b {
|
|
|
3698
3698
|
// eslint-disable-next-line sonarjs/cognitive-complexity
|
|
3699
3699
|
constructor(e) {
|
|
3700
3700
|
super(e);
|
|
3701
|
-
/**
|
|
3702
|
-
* Данные о менеджере.
|
|
3703
|
-
*/
|
|
3704
|
-
t(this, "manager", new ce());
|
|
3705
3701
|
/**
|
|
3706
3702
|
* Данные об организационно-правовой форме.
|
|
3707
3703
|
*/
|
|
3708
|
-
t(this, "opf",
|
|
3709
|
-
/**
|
|
3710
|
-
* Направление продаж.
|
|
3711
|
-
*/
|
|
3712
|
-
t(this, "salesDirection", new x());
|
|
3704
|
+
t(this, "opf", N.generatePersonItem());
|
|
3713
3705
|
/**
|
|
3714
3706
|
* Группа партнеров (направление деятельности).
|
|
3715
3707
|
*/
|
|
3716
|
-
t(this, "partnerGroup", new
|
|
3708
|
+
t(this, "partnerGroup", new Z());
|
|
3717
3709
|
/**
|
|
3718
3710
|
* Список контактных лиц контрагента.
|
|
3719
3711
|
*/
|
|
@@ -3747,22 +3739,22 @@ class Pr extends b {
|
|
|
3747
3739
|
*/
|
|
3748
3740
|
t(this, "updater");
|
|
3749
3741
|
if (e) {
|
|
3750
|
-
if (this.opf = new
|
|
3742
|
+
if (this.opf = new N(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : e.createdAt, this.creator = e.creator ? new q(e.creator) : void 0, this.updatedAt = C(e == null ? void 0 : e.updatedAt) ? v(e.updatedAt) : e.updatedAt, this.updater = e.updater ? new q(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new Z(e.partnerGroup)), e.contacts) {
|
|
3751
3743
|
const s = [];
|
|
3752
3744
|
e.contacts.forEach((i) => {
|
|
3753
|
-
s.push(new
|
|
3745
|
+
s.push(new U(i));
|
|
3754
3746
|
}), this.contacts = s;
|
|
3755
3747
|
}
|
|
3756
3748
|
if (e.bankAccounts) {
|
|
3757
3749
|
const s = [];
|
|
3758
3750
|
e.bankAccounts.forEach((i) => {
|
|
3759
|
-
s.push(new
|
|
3751
|
+
s.push(new de(i));
|
|
3760
3752
|
}), this.bankAccounts = s;
|
|
3761
3753
|
}
|
|
3762
3754
|
}
|
|
3763
3755
|
}
|
|
3764
3756
|
}
|
|
3765
|
-
class
|
|
3757
|
+
class yt extends Rr {
|
|
3766
3758
|
/**
|
|
3767
3759
|
* Инициализирует экземпляр класса {@link ContragentPerson}.
|
|
3768
3760
|
*
|
|
@@ -3772,7 +3764,7 @@ class ft extends Pr {
|
|
|
3772
3764
|
super(r);
|
|
3773
3765
|
}
|
|
3774
3766
|
}
|
|
3775
|
-
class
|
|
3767
|
+
class Ar extends Rr {
|
|
3776
3768
|
/**
|
|
3777
3769
|
* Инициализирует экземпляр класса {@link ContragentIc}.
|
|
3778
3770
|
*
|
|
@@ -3815,7 +3807,7 @@ class Rr extends Pr {
|
|
|
3815
3807
|
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 ?? "");
|
|
3816
3808
|
}
|
|
3817
3809
|
}
|
|
3818
|
-
class Dr extends
|
|
3810
|
+
class Dr extends Ar {
|
|
3819
3811
|
/**
|
|
3820
3812
|
* Инициализирует экземпляр класса {@link ContragentUlR}.
|
|
3821
3813
|
*
|
|
@@ -3830,7 +3822,7 @@ class Dr extends Rr {
|
|
|
3830
3822
|
e && (this.kpp = e.kpp ?? "");
|
|
3831
3823
|
}
|
|
3832
3824
|
}
|
|
3833
|
-
class
|
|
3825
|
+
class wt extends Dr {
|
|
3834
3826
|
/**
|
|
3835
3827
|
* Инициализирует экземпляр класса {@link ContragentUlNr}.
|
|
3836
3828
|
*
|
|
@@ -3841,7 +3833,7 @@ class yt extends Dr {
|
|
|
3841
3833
|
/**
|
|
3842
3834
|
* Страна регистрации юридического лица нерезидента.
|
|
3843
3835
|
*/
|
|
3844
|
-
t(this, "registrationCountry", new
|
|
3836
|
+
t(this, "registrationCountry", new X());
|
|
3845
3837
|
/**
|
|
3846
3838
|
* Регистрационный номер юридического лица нерезидента.
|
|
3847
3839
|
*/
|
|
@@ -3850,10 +3842,10 @@ class yt extends Dr {
|
|
|
3850
3842
|
* Налоговый номер юридического лица нерезидента.
|
|
3851
3843
|
*/
|
|
3852
3844
|
t(this, "taxNumber", "");
|
|
3853
|
-
e && (this.registrationCountry = new
|
|
3845
|
+
e && (this.registrationCountry = new X(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
3854
3846
|
}
|
|
3855
3847
|
}
|
|
3856
|
-
class
|
|
3848
|
+
class Ce {
|
|
3857
3849
|
/**
|
|
3858
3850
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
3859
3851
|
*
|
|
@@ -3861,18 +3853,18 @@ class ve {
|
|
|
3861
3853
|
*/
|
|
3862
3854
|
static createInstance(r) {
|
|
3863
3855
|
switch (r.opf.slug) {
|
|
3864
|
-
case
|
|
3865
|
-
return new
|
|
3866
|
-
case
|
|
3856
|
+
case _.Ic:
|
|
3857
|
+
return new Ar(r);
|
|
3858
|
+
case _.UlR:
|
|
3867
3859
|
return new Dr(r);
|
|
3868
|
-
case
|
|
3869
|
-
return new
|
|
3860
|
+
case _.UlNr:
|
|
3861
|
+
return new wt(r);
|
|
3870
3862
|
default:
|
|
3871
|
-
return new
|
|
3863
|
+
return new yt(r);
|
|
3872
3864
|
}
|
|
3873
3865
|
}
|
|
3874
3866
|
}
|
|
3875
|
-
class
|
|
3867
|
+
class ae extends F {
|
|
3876
3868
|
/**
|
|
3877
3869
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
3878
3870
|
*
|
|
@@ -3887,7 +3879,7 @@ class Ie extends j {
|
|
|
3887
3879
|
this.isPrimary = e.isPrimary;
|
|
3888
3880
|
}
|
|
3889
3881
|
}
|
|
3890
|
-
class
|
|
3882
|
+
class Ct extends U {
|
|
3891
3883
|
/**
|
|
3892
3884
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3893
3885
|
*
|
|
@@ -3912,10 +3904,10 @@ class wt extends M {
|
|
|
3912
3904
|
*/
|
|
3913
3905
|
addresses: []
|
|
3914
3906
|
});
|
|
3915
|
-
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new
|
|
3907
|
+
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new ae(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new ae(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new ae(s))));
|
|
3916
3908
|
}
|
|
3917
3909
|
}
|
|
3918
|
-
class
|
|
3910
|
+
class ve extends Zr {
|
|
3919
3911
|
/**
|
|
3920
3912
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
3921
3913
|
*
|
|
@@ -3952,10 +3944,10 @@ class Pe extends Xr {
|
|
|
3952
3944
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
3953
3945
|
*/
|
|
3954
3946
|
t(this, "isTransportCompanyAddress");
|
|
3955
|
-
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new
|
|
3947
|
+
this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new hr(e == null ? void 0 : e.coordinates), this.contacts = ((s = e == null ? void 0 : e.contacts) == null ? void 0 : s.map((i) => new U(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;
|
|
3956
3948
|
}
|
|
3957
3949
|
}
|
|
3958
|
-
class
|
|
3950
|
+
class Ze extends ge {
|
|
3959
3951
|
/**
|
|
3960
3952
|
* Инициализирует экземпляр класса {@link Client}.
|
|
3961
3953
|
*
|
|
@@ -4013,7 +4005,7 @@ class Xe extends me {
|
|
|
4013
4005
|
* @inheritDoc
|
|
4014
4006
|
*/
|
|
4015
4007
|
t(this, "extraData");
|
|
4016
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) =>
|
|
4008
|
+
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 Z(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new U(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new ve(u))) ?? [], this.channelPrimaryInterest = new Cr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new Pr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new Q(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.reasonExcludedFromMsCallsToClients = e == null ? void 0 : e.reasonExcludedFromMsCallsToClients, this.preferredWarehouse = e != null && e.preferredWarehouse ? new Re(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
4017
4009
|
}
|
|
4018
4010
|
}
|
|
4019
4011
|
class Xt {
|
|
@@ -4120,7 +4112,7 @@ class Xt {
|
|
|
4120
4112
|
*/
|
|
4121
4113
|
t(this, "isExcludedFromMsCallsToClients");
|
|
4122
4114
|
var e, s, i, o, c, u, p, f;
|
|
4123
|
-
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((m) => new
|
|
4115
|
+
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((m) => new Ee(m)), this.region = new ce(r == null ? void 0 : r.region), this.country = new X(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 k(r == null ? void 0 : r.createdAt), this.lastLoginDate = new k(r == null ? void 0 : r.lastLoginDate), this.lastLoginDateHasOrder = (r == null ? void 0 : r.lastLoginDateHasOrder) ?? void 0, this.managers = ((s = r == null ? void 0 : r.managers) == null ? void 0 : s.map((m) => new Ae(m))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((m) => new Be(m))) ?? [], this.salesDirections = (o = r == null ? void 0 : r.salesDirections) == null ? void 0 : o.map((m) => new d(m)), this.contragentInn = r == null ? void 0 : r.contragentInn, this.contragentType = new N(r == null ? void 0 : r.contragentType), this.preferredDeliveryType = new Q(r == null ? void 0 : r.preferredDeliveryType), this.partnerGroups = (c = r == null ? void 0 : r.partnerGroups) == null ? void 0 : c.map((m) => new Z(m)), this.contact = new Oe(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
4124
4116
|
createdAt: new k((u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.createdAt),
|
|
4125
4117
|
creator: (p = r == null ? void 0 : r.lastOrder) == null ? void 0 : p.creator,
|
|
4126
4118
|
isApproved: (f = r == null ? void 0 : r.lastOrder) == null ? void 0 : f.isApproved
|
|
@@ -4137,7 +4129,7 @@ class Xt {
|
|
|
4137
4129
|
this.cities = [];
|
|
4138
4130
|
break;
|
|
4139
4131
|
case "region":
|
|
4140
|
-
this.region = new
|
|
4132
|
+
this.region = new ce();
|
|
4141
4133
|
break;
|
|
4142
4134
|
case "isActive":
|
|
4143
4135
|
this.isActive = !0;
|
|
@@ -4161,16 +4153,16 @@ class Xt {
|
|
|
4161
4153
|
this.salesDirections = [];
|
|
4162
4154
|
break;
|
|
4163
4155
|
case "contragentType":
|
|
4164
|
-
this.contragentType = new
|
|
4156
|
+
this.contragentType = new N();
|
|
4165
4157
|
break;
|
|
4166
4158
|
case "preferredDeliveryType":
|
|
4167
|
-
this.preferredDeliveryType = new
|
|
4159
|
+
this.preferredDeliveryType = new Q();
|
|
4168
4160
|
break;
|
|
4169
4161
|
case "partnerGroups":
|
|
4170
4162
|
this.partnerGroups = [];
|
|
4171
4163
|
break;
|
|
4172
4164
|
case "contact":
|
|
4173
|
-
this.contact = new
|
|
4165
|
+
this.contact = new Oe();
|
|
4174
4166
|
break;
|
|
4175
4167
|
default:
|
|
4176
4168
|
this[r] = void 0;
|
|
@@ -4188,11 +4180,11 @@ class Xt {
|
|
|
4188
4180
|
return Object.keys(this).forEach((c) => {
|
|
4189
4181
|
const u = this[c];
|
|
4190
4182
|
// eslint-disable-next-line prettier/prettier
|
|
4191
|
-
|
|
4183
|
+
D(u) || C(u) && u.trim().length === 0 || Ne(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
4192
4184
|
}), !((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;
|
|
4193
4185
|
}
|
|
4194
4186
|
}
|
|
4195
|
-
class
|
|
4187
|
+
class Tr extends F {
|
|
4196
4188
|
/**
|
|
4197
4189
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
4198
4190
|
*
|
|
@@ -4212,46 +4204,50 @@ class Ar extends j {
|
|
|
4212
4204
|
* Признак того, что заказ подтвержден в 1С.
|
|
4213
4205
|
*/
|
|
4214
4206
|
t(this, "isApproved1c");
|
|
4215
|
-
this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new
|
|
4207
|
+
this.createdAt = C(e == null ? void 0 : e.createdAt) ? v(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new q(e == null ? void 0 : e.creator), this.isApproved1c = (e == null ? void 0 : e.isApproved1c) ?? !1;
|
|
4216
4208
|
}
|
|
4217
4209
|
}
|
|
4218
|
-
class
|
|
4210
|
+
class vt extends b {
|
|
4219
4211
|
/**
|
|
4220
4212
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4221
4213
|
*
|
|
4222
4214
|
* @param data Данные для первоначальной инициализации.
|
|
4223
4215
|
*/
|
|
4224
4216
|
constructor(e) {
|
|
4225
|
-
var s, i;
|
|
4217
|
+
var s, i, o, c;
|
|
4226
4218
|
super(e);
|
|
4227
4219
|
/**
|
|
4228
|
-
*
|
|
4220
|
+
* @inheritDoc
|
|
4229
4221
|
*/
|
|
4230
4222
|
t(this, "contacts", []);
|
|
4231
4223
|
/**
|
|
4232
|
-
*
|
|
4224
|
+
* @inheritDoc
|
|
4233
4225
|
*/
|
|
4234
4226
|
t(this, "preferredDeliveryType");
|
|
4235
4227
|
/**
|
|
4236
|
-
*
|
|
4228
|
+
* @inheritDoc
|
|
4237
4229
|
*/
|
|
4238
4230
|
t(this, "partnerGroups", []);
|
|
4239
4231
|
/**
|
|
4240
|
-
*
|
|
4232
|
+
* @inheritDoc
|
|
4241
4233
|
*/
|
|
4242
4234
|
t(this, "lastOrder");
|
|
4243
4235
|
/**
|
|
4244
|
-
*
|
|
4236
|
+
* @inheritDoc
|
|
4245
4237
|
*/
|
|
4246
4238
|
t(this, "salesDirection");
|
|
4247
4239
|
/**
|
|
4248
|
-
*
|
|
4240
|
+
* @inheritDoc
|
|
4249
4241
|
*/
|
|
4250
4242
|
t(this, "managers");
|
|
4251
|
-
|
|
4243
|
+
/**
|
|
4244
|
+
* @inheritDoc
|
|
4245
|
+
*/
|
|
4246
|
+
t(this, "curators");
|
|
4247
|
+
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new U(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Tr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new Z(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new Q(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new d(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new Ge(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Be(u))) ?? void 0;
|
|
4252
4248
|
}
|
|
4253
4249
|
}
|
|
4254
|
-
class
|
|
4250
|
+
class Pt {
|
|
4255
4251
|
/**
|
|
4256
4252
|
* Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
|
|
4257
4253
|
*
|
|
@@ -4269,7 +4265,7 @@ class vt {
|
|
|
4269
4265
|
this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
|
|
4270
4266
|
}
|
|
4271
4267
|
}
|
|
4272
|
-
class Zt extends
|
|
4268
|
+
class Zt extends Pt {
|
|
4273
4269
|
/**
|
|
4274
4270
|
* Инициализирует экземпляр класса {@link DataTablePagination}.
|
|
4275
4271
|
*
|
|
@@ -4318,7 +4314,7 @@ class es {
|
|
|
4318
4314
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4319
4315
|
}
|
|
4320
4316
|
}
|
|
4321
|
-
class
|
|
4317
|
+
class x extends De {
|
|
4322
4318
|
/**
|
|
4323
4319
|
* Преобразует данные о клиенте в данные требуемые для запроса.
|
|
4324
4320
|
*
|
|
@@ -4348,17 +4344,16 @@ class L extends Te {
|
|
|
4348
4344
|
* @param contragent Данные о контрагенте клиента.
|
|
4349
4345
|
*/
|
|
4350
4346
|
static transformContragentClientDataToRequest(r) {
|
|
4351
|
-
var c, u, p, f
|
|
4347
|
+
var c, u, p, f;
|
|
4352
4348
|
let e;
|
|
4353
4349
|
const s = r, i = r, o = r;
|
|
4354
4350
|
switch (r.opf.slug) {
|
|
4355
|
-
case
|
|
4351
|
+
case _.Ic:
|
|
4356
4352
|
e = {
|
|
4357
4353
|
opf: s.opf.slug,
|
|
4358
4354
|
name: s.name,
|
|
4359
4355
|
alternative_name: s.alternativeName,
|
|
4360
4356
|
partner_group_id: (c = s.partnerGroup) == null ? void 0 : c.id,
|
|
4361
|
-
manager_id: (u = s.manager) == null ? void 0 : u.id,
|
|
4362
4357
|
comment: s.comment,
|
|
4363
4358
|
inn: s.inn,
|
|
4364
4359
|
okpo: s.okpo,
|
|
@@ -4370,13 +4365,12 @@ class L extends Te {
|
|
|
4370
4365
|
actual_address: s.actualAddress
|
|
4371
4366
|
};
|
|
4372
4367
|
break;
|
|
4373
|
-
case
|
|
4368
|
+
case _.UlR:
|
|
4374
4369
|
e = {
|
|
4375
4370
|
opf: i.opf.slug,
|
|
4376
4371
|
name: i.name,
|
|
4377
4372
|
alternative_name: i.alternativeName,
|
|
4378
|
-
partner_group_id: (
|
|
4379
|
-
manager_id: (f = i.manager) == null ? void 0 : f.id,
|
|
4373
|
+
partner_group_id: (u = i.partnerGroup) == null ? void 0 : u.id,
|
|
4380
4374
|
comment: i.comment,
|
|
4381
4375
|
inn: i.inn,
|
|
4382
4376
|
kpp: i.kpp,
|
|
@@ -4389,13 +4383,12 @@ class L extends Te {
|
|
|
4389
4383
|
actual_address: i.actualAddress
|
|
4390
4384
|
};
|
|
4391
4385
|
break;
|
|
4392
|
-
case
|
|
4386
|
+
case _.UlNr:
|
|
4393
4387
|
e = {
|
|
4394
4388
|
opf: o.opf.slug,
|
|
4395
4389
|
name: o.name,
|
|
4396
4390
|
alternative_name: o.alternativeName,
|
|
4397
|
-
partner_group_id: (
|
|
4398
|
-
manager_id: (S = o.manager) == null ? void 0 : S.id,
|
|
4391
|
+
partner_group_id: (p = o.partnerGroup) == null ? void 0 : p.id,
|
|
4399
4392
|
comment: o.comment,
|
|
4400
4393
|
director_name: o.directorName,
|
|
4401
4394
|
director_position: o.directorPosition,
|
|
@@ -4413,8 +4406,7 @@ class L extends Te {
|
|
|
4413
4406
|
opf: r.opf.slug,
|
|
4414
4407
|
name: r.name,
|
|
4415
4408
|
alternative_name: r.alternativeName,
|
|
4416
|
-
partner_group_id: (
|
|
4417
|
-
manager_id: (d = r.manager) == null ? void 0 : d.id,
|
|
4409
|
+
partner_group_id: (f = r.partnerGroup) == null ? void 0 : f.id,
|
|
4418
4410
|
comment: r.comment
|
|
4419
4411
|
};
|
|
4420
4412
|
break;
|
|
@@ -4463,7 +4455,7 @@ class L extends Te {
|
|
|
4463
4455
|
* @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
|
|
4464
4456
|
*/
|
|
4465
4457
|
getClient(r) {
|
|
4466
|
-
return this.get(`/internal/clients/${r}`, {}, (e) => new
|
|
4458
|
+
return this.get(`/internal/clients/${r}`, {}, (e) => new Ze(e.data));
|
|
4467
4459
|
}
|
|
4468
4460
|
/**
|
|
4469
4461
|
* Возвращает данные о клиентах, удовлетворяющих указанным параметрам поиска.
|
|
@@ -4478,7 +4470,7 @@ class L extends Te {
|
|
|
4478
4470
|
getClientsList(r, e, s, i) {
|
|
4479
4471
|
return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
|
|
4480
4472
|
const c = { ...o.data };
|
|
4481
|
-
return c.data = c.data.map((u) => new
|
|
4473
|
+
return c.data = c.data.map((u) => new ge(u)), c;
|
|
4482
4474
|
});
|
|
4483
4475
|
}
|
|
4484
4476
|
/**
|
|
@@ -4491,7 +4483,7 @@ class L extends Te {
|
|
|
4491
4483
|
return this.getClientsList({
|
|
4492
4484
|
groupOp: "and",
|
|
4493
4485
|
groups: [],
|
|
4494
|
-
filters: [{ field: "phone", op:
|
|
4486
|
+
filters: [{ field: "phone", op: ze.Contains, value: r }]
|
|
4495
4487
|
});
|
|
4496
4488
|
}
|
|
4497
4489
|
/**
|
|
@@ -4505,7 +4497,7 @@ class L extends Te {
|
|
|
4505
4497
|
const s = r.map((i) => i.id);
|
|
4506
4498
|
return this.post("/internal/clients/additional-data", { clients: s, requested_data_types: e }, (i) => {
|
|
4507
4499
|
let o = [];
|
|
4508
|
-
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new
|
|
4500
|
+
return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new vt(c))), o;
|
|
4509
4501
|
});
|
|
4510
4502
|
}
|
|
4511
4503
|
/**
|
|
@@ -4517,7 +4509,7 @@ class L extends Te {
|
|
|
4517
4509
|
getAllClientContacts(r) {
|
|
4518
4510
|
return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
|
|
4519
4511
|
let s = [];
|
|
4520
|
-
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new
|
|
4512
|
+
return (e == null ? void 0 : e.data.length) > 0 && (s = e.data.map((i) => new Ct(i))), s;
|
|
4521
4513
|
});
|
|
4522
4514
|
}
|
|
4523
4515
|
/**
|
|
@@ -4528,7 +4520,7 @@ class L extends Te {
|
|
|
4528
4520
|
* @see /doc/api/internal#/Клиенты/api_internal_client_create
|
|
4529
4521
|
*/
|
|
4530
4522
|
createClientCommonData(r, e = {}) {
|
|
4531
|
-
return this.post("/internal/clients",
|
|
4523
|
+
return this.post("/internal/clients", x.transformClientDataToRequest(r), (s) => new Ze(s.data), e);
|
|
4532
4524
|
}
|
|
4533
4525
|
/**
|
|
4534
4526
|
* Обновляет данные указанного клиента.
|
|
@@ -4538,7 +4530,7 @@ class L extends Te {
|
|
|
4538
4530
|
* @see /doc/api/internal#/Клиенты/api_internal_client_change
|
|
4539
4531
|
*/
|
|
4540
4532
|
updateClientCommonData(r, e = {}) {
|
|
4541
|
-
return this.patch(`/internal/clients/${r.id}`,
|
|
4533
|
+
return this.patch(`/internal/clients/${r.id}`, x.transformClientDataToRequest(r), void 0, e);
|
|
4542
4534
|
}
|
|
4543
4535
|
/**
|
|
4544
4536
|
* Обновляет данные "Не беспокоить" указанного клиента.
|
|
@@ -4668,8 +4660,8 @@ class L extends Te {
|
|
|
4668
4660
|
createContragentClientData(r, e, s = {}) {
|
|
4669
4661
|
return this.post(
|
|
4670
4662
|
`/internal/clients/${r}/contragents`,
|
|
4671
|
-
|
|
4672
|
-
(i) =>
|
|
4663
|
+
x.transformContragentClientDataToRequest(e),
|
|
4664
|
+
(i) => Ce.createInstance(i.data),
|
|
4673
4665
|
s
|
|
4674
4666
|
);
|
|
4675
4667
|
}
|
|
@@ -4684,8 +4676,8 @@ class L extends Te {
|
|
|
4684
4676
|
updateContragentClientData(r, e, s = {}) {
|
|
4685
4677
|
return this.patch(
|
|
4686
4678
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
4687
|
-
|
|
4688
|
-
(i) =>
|
|
4679
|
+
x.transformContragentClientDataToRequest(e),
|
|
4680
|
+
(i) => Ce.createInstance(i.data),
|
|
4689
4681
|
s
|
|
4690
4682
|
);
|
|
4691
4683
|
}
|
|
@@ -4710,8 +4702,8 @@ class L extends Te {
|
|
|
4710
4702
|
createClientDeliveryAddress(r, e, s = {}) {
|
|
4711
4703
|
return this.post(
|
|
4712
4704
|
`/internal/clients/${r}/delivery-addresses`,
|
|
4713
|
-
|
|
4714
|
-
(i) => new
|
|
4705
|
+
x.transformClientDeliveryAddressToRequest(e),
|
|
4706
|
+
(i) => new ve(i.data),
|
|
4715
4707
|
s
|
|
4716
4708
|
);
|
|
4717
4709
|
}
|
|
@@ -4726,8 +4718,8 @@ class L extends Te {
|
|
|
4726
4718
|
updateClientDeliveryAddress(r, e, s = {}) {
|
|
4727
4719
|
return this.patch(
|
|
4728
4720
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
4729
|
-
|
|
4730
|
-
(i) => new
|
|
4721
|
+
x.transformClientDeliveryAddressToRequest(e),
|
|
4722
|
+
(i) => new ve(i.data),
|
|
4731
4723
|
s
|
|
4732
4724
|
);
|
|
4733
4725
|
}
|
|
@@ -4753,8 +4745,8 @@ class L extends Te {
|
|
|
4753
4745
|
createContragentBankAccount(r, e, s, i = {}) {
|
|
4754
4746
|
return this.post(
|
|
4755
4747
|
`/internal/clients/${r}/contragents/${e}/bank-accounts`,
|
|
4756
|
-
|
|
4757
|
-
(o) => new
|
|
4748
|
+
x.transformClientContragentBankAccountToRequest(s),
|
|
4749
|
+
(o) => new de(o.data),
|
|
4758
4750
|
i
|
|
4759
4751
|
);
|
|
4760
4752
|
}
|
|
@@ -4770,8 +4762,8 @@ class L extends Te {
|
|
|
4770
4762
|
updateContragentBankAccount(r, e, s, i = {}) {
|
|
4771
4763
|
return this.patch(
|
|
4772
4764
|
`/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
|
|
4773
|
-
|
|
4774
|
-
(o) => new
|
|
4765
|
+
x.transformClientContragentBankAccountToRequest(s),
|
|
4766
|
+
(o) => new de(o.data),
|
|
4775
4767
|
i
|
|
4776
4768
|
);
|
|
4777
4769
|
}
|
|
@@ -4827,7 +4819,7 @@ class L extends Te {
|
|
|
4827
4819
|
comment: e.comment,
|
|
4828
4820
|
not_disturb: e.notDisturb
|
|
4829
4821
|
},
|
|
4830
|
-
(i) => new
|
|
4822
|
+
(i) => new U(i.data),
|
|
4831
4823
|
s
|
|
4832
4824
|
);
|
|
4833
4825
|
}
|
|
@@ -4964,7 +4956,7 @@ class L extends Te {
|
|
|
4964
4956
|
comment: e.comment,
|
|
4965
4957
|
...s
|
|
4966
4958
|
};
|
|
4967
|
-
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
|
|
4959
|
+
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 U(p.data), i);
|
|
4968
4960
|
}
|
|
4969
4961
|
/**
|
|
4970
4962
|
* Устанавливает признак основного контактного лица.
|
|
@@ -4993,7 +4985,7 @@ class L extends Te {
|
|
|
4993
4985
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
4994
4986
|
}
|
|
4995
4987
|
}
|
|
4996
|
-
const
|
|
4988
|
+
const W = class W extends h {
|
|
4997
4989
|
/**
|
|
4998
4990
|
* Инициализирует экземпляр класса {@link HttpCachedRequester}.
|
|
4999
4991
|
*/
|
|
@@ -5013,7 +5005,7 @@ const V = class V extends h {
|
|
|
5013
5005
|
*/
|
|
5014
5006
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
5015
5007
|
static getCachedResponse(e) {
|
|
5016
|
-
const s =
|
|
5008
|
+
const s = W.responseDataCache.get(e);
|
|
5017
5009
|
if (s && s.validTo > /* @__PURE__ */ new Date())
|
|
5018
5010
|
return s.val;
|
|
5019
5011
|
}
|
|
@@ -5024,8 +5016,8 @@ const V = class V extends h {
|
|
|
5024
5016
|
* @param data Данные для кэширования.
|
|
5025
5017
|
*/
|
|
5026
5018
|
cacheResponse(e, s) {
|
|
5027
|
-
|
|
5028
|
-
validTo:
|
|
5019
|
+
W.responseDataCache.set(e, {
|
|
5020
|
+
validTo: qr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
5029
5021
|
val: s
|
|
5030
5022
|
});
|
|
5031
5023
|
}
|
|
@@ -5040,9 +5032,9 @@ const V = class V extends h {
|
|
|
5040
5032
|
*/
|
|
5041
5033
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
5042
5034
|
getTypedDataArrayRequester(e, s, i = !1, o = {}) {
|
|
5043
|
-
const c = s + (
|
|
5035
|
+
const c = s + (K(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? W.getCachedResponse(c) : void 0;
|
|
5044
5036
|
return u ? Promise.resolve(u) : this.get(s, o).then((p) => {
|
|
5045
|
-
const f = p.map((m) =>
|
|
5037
|
+
const f = p.map((m) => Me.instanceInitializer(e, m));
|
|
5046
5038
|
return i && f && this.cacheResponse(s, f), f;
|
|
5047
5039
|
});
|
|
5048
5040
|
}
|
|
@@ -5050,8 +5042,8 @@ const V = class V extends h {
|
|
|
5050
5042
|
/**
|
|
5051
5043
|
* Кэш результатов запросов.
|
|
5052
5044
|
*/
|
|
5053
|
-
t(
|
|
5054
|
-
let
|
|
5045
|
+
t(W, "responseDataCache", /* @__PURE__ */ new Map());
|
|
5046
|
+
let ue = W;
|
|
5055
5047
|
class rs extends h {
|
|
5056
5048
|
/**
|
|
5057
5049
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
@@ -5146,24 +5138,24 @@ class ss {
|
|
|
5146
5138
|
* Возвращает диапазон дат по умолчанию.
|
|
5147
5139
|
*/
|
|
5148
5140
|
static defaultDateRanges() {
|
|
5149
|
-
const r =
|
|
5141
|
+
const r = Nr(/* @__PURE__ */ new Date(), 1);
|
|
5150
5142
|
return {
|
|
5151
5143
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5152
|
-
nextWorkingDay: { label: "Следующий рабочий день", from:
|
|
5153
|
-
today: { label: "Сегодня", from:
|
|
5154
|
-
yesterday: { label: "Вчера", from:
|
|
5155
|
-
tomorrow: { label: "Завтра", from:
|
|
5144
|
+
nextWorkingDay: { label: "Следующий рабочий день", from: Br(r), to: Hr(r) },
|
|
5145
|
+
today: { label: "Сегодня", from: Le(), to: Gr() },
|
|
5146
|
+
yesterday: { label: "Вчера", from: jr(), to: Mr() },
|
|
5147
|
+
tomorrow: { label: "Завтра", from: Fr(), to: Ur() }
|
|
5156
5148
|
};
|
|
5157
5149
|
}
|
|
5158
5150
|
}
|
|
5159
|
-
const
|
|
5151
|
+
const J = class J {
|
|
5160
5152
|
/**
|
|
5161
5153
|
* Устанавливает список единиц измерения линейной величины.
|
|
5162
5154
|
*
|
|
5163
5155
|
* @param linearValues Список единиц измерения линейной величины.
|
|
5164
5156
|
*/
|
|
5165
5157
|
static setLinearValues(r) {
|
|
5166
|
-
|
|
5158
|
+
J.linearValues = r;
|
|
5167
5159
|
}
|
|
5168
5160
|
/**
|
|
5169
5161
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
@@ -5171,7 +5163,7 @@ const K = class K {
|
|
|
5171
5163
|
* @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
|
|
5172
5164
|
*/
|
|
5173
5165
|
static productIsMeasurable(r) {
|
|
5174
|
-
return
|
|
5166
|
+
return J.linearValues.includes(r.unit);
|
|
5175
5167
|
}
|
|
5176
5168
|
/**
|
|
5177
5169
|
* Возвращает кратность количества для указанного товара.
|
|
@@ -5180,7 +5172,7 @@ const K = class K {
|
|
|
5180
5172
|
*/
|
|
5181
5173
|
static getProductMultiplicity(r) {
|
|
5182
5174
|
var e, s;
|
|
5183
|
-
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) && !J.productIsMeasurable(r) ? r.properties.minCount : 1;
|
|
5184
5176
|
}
|
|
5185
5177
|
/**
|
|
5186
5178
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -5195,8 +5187,8 @@ const K = class K {
|
|
|
5195
5187
|
/**
|
|
5196
5188
|
* Список единиц измерения линейной величины.
|
|
5197
5189
|
*/
|
|
5198
|
-
t(
|
|
5199
|
-
let
|
|
5190
|
+
t(J, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5191
|
+
let er = J;
|
|
5200
5192
|
class is {
|
|
5201
5193
|
/**
|
|
5202
5194
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
@@ -5213,19 +5205,19 @@ class is {
|
|
|
5213
5205
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5214
5206
|
}
|
|
5215
5207
|
}
|
|
5216
|
-
class
|
|
5208
|
+
class Rt extends ue {
|
|
5217
5209
|
/**
|
|
5218
5210
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5219
5211
|
*/
|
|
5220
5212
|
async getManagers() {
|
|
5221
|
-
const r = "/internal/managers", e =
|
|
5213
|
+
const r = "/internal/managers", e = ue.getCachedResponse(r);
|
|
5222
5214
|
if (e)
|
|
5223
5215
|
return e;
|
|
5224
|
-
const i = (await this.get(r)).data.map((o) =>
|
|
5216
|
+
const i = (await this.get(r)).data.map((o) => Me.instanceInitializer(Ae, o));
|
|
5225
5217
|
return this.cacheResponse(r, i), i;
|
|
5226
5218
|
}
|
|
5227
5219
|
}
|
|
5228
|
-
class
|
|
5220
|
+
class $r extends Tr {
|
|
5229
5221
|
/**
|
|
5230
5222
|
* Инициализирует экземпляр класса {@link OrderInfo}.
|
|
5231
5223
|
*
|
|
@@ -5274,19 +5266,19 @@ class Tr extends Ar {
|
|
|
5274
5266
|
* Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
|
|
5275
5267
|
*/
|
|
5276
5268
|
t(this, "isNotInStock");
|
|
5277
|
-
this.client = new
|
|
5269
|
+
this.client = new ge(e == null ? void 0 : e.client), this.payment = {
|
|
5278
5270
|
type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
|
|
5279
5271
|
status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
|
|
5280
5272
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
5281
5273
|
}, this.delivery = {
|
|
5282
5274
|
type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
|
|
5283
5275
|
date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? v(e.delivery.date) : ((p = e == null ? void 0 : e.delivery) == null ? void 0 : p.date) ?? /* @__PURE__ */ new Date(),
|
|
5284
|
-
address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new
|
|
5285
|
-
warehouse: (m = e == null ? void 0 : e.delivery) != null && m.warehouse ? new
|
|
5286
|
-
}, this.attachedUser = new
|
|
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 Re(e.delivery.warehouse) : void 0
|
|
5278
|
+
}, this.attachedUser = new q(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new d(e == null ? void 0 : e.salesDirection), this.pendingAt = C(e == null ? void 0 : e.pendingAt) ? v(e.pendingAt) : e == null ? void 0 : e.pendingAt, this.processedAt = C(e == null ? void 0 : e.processedAt) ? v(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;
|
|
5287
5279
|
}
|
|
5288
5280
|
}
|
|
5289
|
-
class
|
|
5281
|
+
class At extends F {
|
|
5290
5282
|
/**
|
|
5291
5283
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5292
5284
|
*
|
|
@@ -5366,10 +5358,10 @@ class Rt extends j {
|
|
|
5366
5358
|
* который соответствует указанной ширине. Количество не ограничено.
|
|
5367
5359
|
*/
|
|
5368
5360
|
t(this, "sawing");
|
|
5369
|
-
this.product = new
|
|
5361
|
+
this.product = new Y(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;
|
|
5370
5362
|
}
|
|
5371
5363
|
}
|
|
5372
|
-
class
|
|
5364
|
+
class rr extends $r {
|
|
5373
5365
|
/**
|
|
5374
5366
|
* Инициализирует экземпляр класса {@link Order}.
|
|
5375
5367
|
*
|
|
@@ -5409,10 +5401,10 @@ class Dt extends Tr {
|
|
|
5409
5401
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
5410
5402
|
*/
|
|
5411
5403
|
t(this, "isAllowProcessingWithoutPayment");
|
|
5412
|
-
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 P(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
|
|
5413
5405
|
}
|
|
5414
5406
|
}
|
|
5415
|
-
class ns extends
|
|
5407
|
+
class ns extends De {
|
|
5416
5408
|
/**
|
|
5417
5409
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5418
5410
|
*
|
|
@@ -5425,7 +5417,7 @@ class ns extends Te {
|
|
|
5425
5417
|
getOrders(r, e, s) {
|
|
5426
5418
|
return this.getPaginated("/internal/orders", r, e ? [e] : void 0, s, {}, (i) => {
|
|
5427
5419
|
const o = { ...i.data };
|
|
5428
|
-
return o.data = o.data.map((c) => new
|
|
5420
|
+
return o.data = o.data.map((c) => new $r(c)), o;
|
|
5429
5421
|
});
|
|
5430
5422
|
}
|
|
5431
5423
|
/**
|
|
@@ -5443,10 +5435,40 @@ class ns extends Te {
|
|
|
5443
5435
|
* @param orderId Идентификатор заказа для которого необходимо вернуть данные.
|
|
5444
5436
|
*/
|
|
5445
5437
|
getOrder(r) {
|
|
5446
|
-
return this.get(`/internal/orders/${r}`, {}, (e) => new
|
|
5438
|
+
return this.get(`/internal/orders/${r}`, {}, (e) => new rr(e.data));
|
|
5439
|
+
}
|
|
5440
|
+
/**
|
|
5441
|
+
* Добавляет продукт в заказ и возвращает обновлённые данные заказа.
|
|
5442
|
+
*
|
|
5443
|
+
* @param orderId Идентификатор заказа, в который необходимо добавить продукт.
|
|
5444
|
+
* @param cartItem Данные о товаре, который необходимо добавить в заказ.
|
|
5445
|
+
* @param validationFieldResultData Список полей, для которых необходимо
|
|
5446
|
+
* установить данные об ошибках валидации
|
|
5447
|
+
* в случае ошибок в запросах.
|
|
5448
|
+
*
|
|
5449
|
+
* @see /doc/api/internal#/Заказы/api_internal_orders_product_add
|
|
5450
|
+
*/
|
|
5451
|
+
addOrderProduct(r, e, s = {}) {
|
|
5452
|
+
return this.post(
|
|
5453
|
+
`/internal/orders/${r}/products`,
|
|
5454
|
+
{
|
|
5455
|
+
id: e.configurator && e.category.id,
|
|
5456
|
+
productId: e.product.id,
|
|
5457
|
+
quantity: e.quantity,
|
|
5458
|
+
height: e.height,
|
|
5459
|
+
length: e.length,
|
|
5460
|
+
width: e.width,
|
|
5461
|
+
configurator: e.configurator,
|
|
5462
|
+
marker: e.marker,
|
|
5463
|
+
isAdditionalSale: e.isAdditionalSale,
|
|
5464
|
+
...e.configuratorParams
|
|
5465
|
+
},
|
|
5466
|
+
(i) => new rr(i.data),
|
|
5467
|
+
s
|
|
5468
|
+
);
|
|
5447
5469
|
}
|
|
5448
5470
|
}
|
|
5449
|
-
class
|
|
5471
|
+
class Ie {
|
|
5450
5472
|
/**
|
|
5451
5473
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
5452
5474
|
*
|
|
@@ -5473,12 +5495,12 @@ class xe {
|
|
|
5473
5495
|
* Источник клиентской цены.
|
|
5474
5496
|
*/
|
|
5475
5497
|
t(this, "source");
|
|
5476
|
-
this.client = new
|
|
5498
|
+
this.client = new ge(r == null ? void 0 : r.client), this.product = new I(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;
|
|
5477
5499
|
}
|
|
5478
5500
|
}
|
|
5479
|
-
const
|
|
5501
|
+
const xe = (n) => {
|
|
5480
5502
|
var r, e, s, i, o;
|
|
5481
|
-
return n ?
|
|
5503
|
+
return n ? cr(
|
|
5482
5504
|
{
|
|
5483
5505
|
cities: (r = n.cities) == null ? void 0 : r.map((c) => c.id),
|
|
5484
5506
|
clients: (e = n.clients) == null ? void 0 : e.map((c) => c.id),
|
|
@@ -5487,9 +5509,9 @@ const Le = (n) => {
|
|
|
5487
5509
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
5488
5510
|
hideNotActive: n.hideNotActive
|
|
5489
5511
|
},
|
|
5490
|
-
(c) =>
|
|
5512
|
+
(c) => D(c) || (V(c) || lr(c)) && K(c)
|
|
5491
5513
|
) : {};
|
|
5492
|
-
},
|
|
5514
|
+
}, tr = (n) => {
|
|
5493
5515
|
const r = {};
|
|
5494
5516
|
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;
|
|
5495
5517
|
};
|
|
@@ -5507,10 +5529,10 @@ class os extends h {
|
|
|
5507
5529
|
return this.get(
|
|
5508
5530
|
`/internal/price/products/${r}/analyze`,
|
|
5509
5531
|
{
|
|
5510
|
-
...
|
|
5511
|
-
filters:
|
|
5532
|
+
...tr(e),
|
|
5533
|
+
filters: xe(s)
|
|
5512
5534
|
},
|
|
5513
|
-
(i) => i.data.map((o) => new
|
|
5535
|
+
(i) => i.data.map((o) => new Ie(o))
|
|
5514
5536
|
);
|
|
5515
5537
|
}
|
|
5516
5538
|
/**
|
|
@@ -5526,10 +5548,10 @@ class os extends h {
|
|
|
5526
5548
|
return this.get(
|
|
5527
5549
|
`/internal/price/categories/${r}/analyze`,
|
|
5528
5550
|
{
|
|
5529
|
-
...
|
|
5530
|
-
filters:
|
|
5551
|
+
...tr(e),
|
|
5552
|
+
filters: xe(s)
|
|
5531
5553
|
},
|
|
5532
|
-
(i) => i.data.map((o) => new
|
|
5554
|
+
(i) => i.data.map((o) => new Ie(o))
|
|
5533
5555
|
);
|
|
5534
5556
|
}
|
|
5535
5557
|
/**
|
|
@@ -5548,13 +5570,13 @@ class os extends h {
|
|
|
5548
5570
|
`/internal/price/categories/${r}/analyze/square`,
|
|
5549
5571
|
{
|
|
5550
5572
|
...e,
|
|
5551
|
-
filters:
|
|
5573
|
+
filters: xe(s)
|
|
5552
5574
|
},
|
|
5553
|
-
(i) => i.data.map((o) => new
|
|
5575
|
+
(i) => i.data.map((o) => new Ie(o))
|
|
5554
5576
|
);
|
|
5555
5577
|
}
|
|
5556
5578
|
}
|
|
5557
|
-
class
|
|
5579
|
+
class Dt {
|
|
5558
5580
|
/**
|
|
5559
5581
|
* Инициализирует экземпляр класса {@link PriceHistoryItem}.
|
|
5560
5582
|
*
|
|
@@ -5601,7 +5623,7 @@ class At {
|
|
|
5601
5623
|
* @inheritDoc
|
|
5602
5624
|
*/
|
|
5603
5625
|
t(this, "currency");
|
|
5604
|
-
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? v(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
|
|
5626
|
+
this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = C(r.costDate) ? v(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 q(r.client) : void 0, this.executor = r.executor ? new q(r.executor) : void 0, this.currency = r.currency ? new we(r.currency) : void 0;
|
|
5605
5627
|
}
|
|
5606
5628
|
}
|
|
5607
5629
|
class Tt extends oe {
|
|
@@ -5616,7 +5638,7 @@ class Tt extends oe {
|
|
|
5616
5638
|
* @inheritDoc
|
|
5617
5639
|
*/
|
|
5618
5640
|
t(this, "history");
|
|
5619
|
-
this.history =
|
|
5641
|
+
this.history = pe(e.history, (s) => new Dt(s));
|
|
5620
5642
|
}
|
|
5621
5643
|
}
|
|
5622
5644
|
class cs extends h {
|
|
@@ -5635,19 +5657,19 @@ class cs extends h {
|
|
|
5635
5657
|
*/
|
|
5636
5658
|
getProductPriceHistory(r) {
|
|
5637
5659
|
var i, o, c, u;
|
|
5638
|
-
const e = T.getConfig().dateFormats.api, s =
|
|
5639
|
-
|
|
5660
|
+
const e = T.getConfig().dateFormats.api, s = cr(
|
|
5661
|
+
qe(r, {
|
|
5640
5662
|
costDate: {
|
|
5641
|
-
from: ke((i = r.costDate) == null ? void 0 : i.from) ?
|
|
5642
|
-
to: ke((c = r.costDate) == null ? void 0 : c.to) ?
|
|
5663
|
+
from: ke((i = r.costDate) == null ? void 0 : i.from) ? L(r.costDate.from, e) : (o = r.costDate) == null ? void 0 : o.from,
|
|
5664
|
+
to: ke((c = r.costDate) == null ? void 0 : c.to) ? L(r.costDate.to, e) : (u = r.costDate) == null ? void 0 : u.to
|
|
5643
5665
|
}
|
|
5644
5666
|
}),
|
|
5645
|
-
(p) =>
|
|
5667
|
+
(p) => D(p) || (V(p) || lr(p)) && K(p)
|
|
5646
5668
|
);
|
|
5647
|
-
return this.get("/internal/history", s, (p) =>
|
|
5669
|
+
return this.get("/internal/history", s, (p) => pe(p.data, (f) => new Tt(f)));
|
|
5648
5670
|
}
|
|
5649
5671
|
}
|
|
5650
|
-
class
|
|
5672
|
+
class sr {
|
|
5651
5673
|
/**
|
|
5652
5674
|
* Инициализирует экземпляр класса {@link RecommendationsList}.
|
|
5653
5675
|
*
|
|
@@ -5679,7 +5701,7 @@ class ls extends h {
|
|
|
5679
5701
|
* @see /docs/api#/operations/api_internal_recommendations_product_category_get
|
|
5680
5702
|
*/
|
|
5681
5703
|
getProductCategoryRecommendations(r) {
|
|
5682
|
-
return this.get(`/internal/recommendations/categories/${r.id}`, {}, (e) => new
|
|
5704
|
+
return this.get(`/internal/recommendations/categories/${r.id}`, {}, (e) => new sr(e.data));
|
|
5683
5705
|
}
|
|
5684
5706
|
/**
|
|
5685
5707
|
* Возвращает данные о рекомендациях указанного продукта.
|
|
@@ -5688,7 +5710,7 @@ class ls extends h {
|
|
|
5688
5710
|
* @see /docs/api#/operations/api_internal_recommendations_product_get
|
|
5689
5711
|
*/
|
|
5690
5712
|
getProductRecommendations(r) {
|
|
5691
|
-
return this.get(`/internal/recommendations/products/${r.id}`, {}, (e) => new
|
|
5713
|
+
return this.get(`/internal/recommendations/products/${r.id}`, {}, (e) => new sr(e.data));
|
|
5692
5714
|
}
|
|
5693
5715
|
/**
|
|
5694
5716
|
* Выполняет сохранение данных о рекомендуемых категориях продуктов.
|
|
@@ -5717,7 +5739,7 @@ class ls extends h {
|
|
|
5717
5739
|
});
|
|
5718
5740
|
}
|
|
5719
5741
|
}
|
|
5720
|
-
class $ extends
|
|
5742
|
+
class $ extends ue {
|
|
5721
5743
|
/**
|
|
5722
5744
|
* Возвращает {@link Promise} для получения данных указанного справочника.
|
|
5723
5745
|
*
|
|
@@ -5726,20 +5748,20 @@ class $ extends pe {
|
|
|
5726
5748
|
* и использовать в случае аналогичных запросов.
|
|
5727
5749
|
*/
|
|
5728
5750
|
getReference(r, e = !1) {
|
|
5729
|
-
return this.getTypedDataArrayRequester(
|
|
5751
|
+
return this.getTypedDataArrayRequester(ut, `/internal/references/${r}`, e);
|
|
5730
5752
|
}
|
|
5731
5753
|
/**
|
|
5732
5754
|
* Возвращает {@link Promise} для получения справочника данных о канале
|
|
5733
5755
|
* первичного интереса.
|
|
5734
5756
|
*/
|
|
5735
5757
|
getChannelPrimaryInterest() {
|
|
5736
|
-
return this.getTypedDataArrayRequester(
|
|
5758
|
+
return this.getTypedDataArrayRequester(Cr, "/internal/references/channel-primary-interest", !0);
|
|
5737
5759
|
}
|
|
5738
5760
|
/**
|
|
5739
5761
|
* Возвращает {@link Promise} для получения справочника должностей контактных лиц.
|
|
5740
5762
|
*/
|
|
5741
5763
|
getContactPositions() {
|
|
5742
|
-
return this.getTypedDataArrayRequester(
|
|
5764
|
+
return this.getTypedDataArrayRequester(pt, "/internal/references/contact-position", !0);
|
|
5743
5765
|
}
|
|
5744
5766
|
/**
|
|
5745
5767
|
* Возвращает {@link Promise} для получения справочника списка направлений кураторства.
|
|
@@ -5751,56 +5773,56 @@ class $ extends pe {
|
|
|
5751
5773
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
5752
5774
|
*/
|
|
5753
5775
|
getCurrency() {
|
|
5754
|
-
return this.getTypedDataArrayRequester(
|
|
5776
|
+
return this.getTypedDataArrayRequester(we, "/public/references/currency", !0);
|
|
5755
5777
|
}
|
|
5756
5778
|
/**
|
|
5757
5779
|
* Возвращает {@link Promise} для получения справочника данных
|
|
5758
5780
|
* групп партнеров (направлений деятельности).
|
|
5759
5781
|
*/
|
|
5760
5782
|
getPartnerGroup() {
|
|
5761
|
-
return this.getTypedDataArrayRequester(
|
|
5783
|
+
return this.getTypedDataArrayRequester(Z, "/internal/references/partner-group", !0);
|
|
5762
5784
|
}
|
|
5763
5785
|
/**
|
|
5764
5786
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
5765
5787
|
*/
|
|
5766
5788
|
getOpf() {
|
|
5767
|
-
return this.getTypedDataArrayRequester(
|
|
5789
|
+
return this.getTypedDataArrayRequester(N, "/public/references/opf", !0);
|
|
5768
5790
|
}
|
|
5769
5791
|
/**
|
|
5770
5792
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
5771
5793
|
*/
|
|
5772
5794
|
getOrderPaymentStatuses() {
|
|
5773
|
-
return this.getTypedDataArrayRequester(
|
|
5795
|
+
return this.getTypedDataArrayRequester(ht, "/public/references/order-payment-status", !0);
|
|
5774
5796
|
}
|
|
5775
5797
|
/**
|
|
5776
5798
|
* Возвращает {@link Promise} для получения справочника данных статусов заказов.
|
|
5777
5799
|
*/
|
|
5778
5800
|
getOrderStatuses() {
|
|
5779
|
-
return this.getTypedDataArrayRequester(
|
|
5801
|
+
return this.getTypedDataArrayRequester(gt, "/public/references/order-status", !0);
|
|
5780
5802
|
}
|
|
5781
5803
|
/**
|
|
5782
5804
|
* Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
|
|
5783
5805
|
*/
|
|
5784
5806
|
getPaymentTypes() {
|
|
5785
|
-
return this.getTypedDataArrayRequester(
|
|
5807
|
+
return this.getTypedDataArrayRequester(mt, "/public/references/payment-type", !0);
|
|
5786
5808
|
}
|
|
5787
5809
|
/**
|
|
5788
5810
|
* Возвращает {@link Promise} для получения справочника типов ресурсов.
|
|
5789
5811
|
*/
|
|
5790
5812
|
getResourceTypes() {
|
|
5791
|
-
return this.getTypedDataArrayRequester(
|
|
5813
|
+
return this.getTypedDataArrayRequester(vr, "/internal/references/resource-type", !0);
|
|
5792
5814
|
}
|
|
5793
5815
|
/**
|
|
5794
5816
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
5795
5817
|
*/
|
|
5796
5818
|
getSalesDirections() {
|
|
5797
|
-
return this.getTypedDataArrayRequester(
|
|
5819
|
+
return this.getTypedDataArrayRequester(d, "/public/references/sales-direction", !0);
|
|
5798
5820
|
}
|
|
5799
5821
|
/**
|
|
5800
5822
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
5801
5823
|
*/
|
|
5802
5824
|
getSourcePrimaryInterest() {
|
|
5803
|
-
return this.getTypedDataArrayRequester(
|
|
5825
|
+
return this.getTypedDataArrayRequester(Pr, "/internal/references/source-primary-interest", !0);
|
|
5804
5826
|
}
|
|
5805
5827
|
/**
|
|
5806
5828
|
* Выполняет поиск данных о городах по терму в названии.
|
|
@@ -5808,7 +5830,7 @@ class $ extends pe {
|
|
|
5808
5830
|
* @param term Терм поиска.
|
|
5809
5831
|
*/
|
|
5810
5832
|
searchCity(r) {
|
|
5811
|
-
return this.getTypedDataArrayRequester(
|
|
5833
|
+
return this.getTypedDataArrayRequester(Ee, `/internal/references/city-with-region-and-country/search?term=${r}`);
|
|
5812
5834
|
}
|
|
5813
5835
|
/**
|
|
5814
5836
|
* Выполняет поиск данных о регионах по терму в названии.
|
|
@@ -5816,7 +5838,7 @@ class $ extends pe {
|
|
|
5816
5838
|
* @param term Терм поиска.
|
|
5817
5839
|
*/
|
|
5818
5840
|
searchRegion(r) {
|
|
5819
|
-
return this.getTypedDataArrayRequester(
|
|
5841
|
+
return this.getTypedDataArrayRequester(ce, `/internal/references/region-with-country/search?term=${r}`);
|
|
5820
5842
|
}
|
|
5821
5843
|
/**
|
|
5822
5844
|
* Выполняет поиск данных о странах по терму в названии.
|
|
@@ -5824,41 +5846,41 @@ class $ extends pe {
|
|
|
5824
5846
|
* @param term Терм поиска.
|
|
5825
5847
|
*/
|
|
5826
5848
|
searchCountry(r) {
|
|
5827
|
-
return this.getTypedDataArrayRequester(
|
|
5849
|
+
return this.getTypedDataArrayRequester(X, `/internal/references/country/search?term=${r}`);
|
|
5828
5850
|
}
|
|
5829
5851
|
/**
|
|
5830
5852
|
* Возвращает {@link Promise} для получения справочника типов доставки.
|
|
5831
5853
|
*/
|
|
5832
5854
|
getDeliveryTypes() {
|
|
5833
|
-
return this.getTypedDataArrayRequester(
|
|
5855
|
+
return this.getTypedDataArrayRequester(Q, "/internal/references/delivery-type", !0);
|
|
5834
5856
|
}
|
|
5835
5857
|
/**
|
|
5836
5858
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
5837
5859
|
*/
|
|
5838
5860
|
getWarehouses() {
|
|
5839
|
-
return this.getTypedDataArrayRequester(
|
|
5861
|
+
return this.getTypedDataArrayRequester(Re, "/public/references/warehouse", !0);
|
|
5840
5862
|
}
|
|
5841
5863
|
/**
|
|
5842
5864
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
5843
5865
|
*/
|
|
5844
5866
|
getPropertyTypes() {
|
|
5845
|
-
return this.getTypedDataArrayRequester(
|
|
5867
|
+
return this.getTypedDataArrayRequester(wr, "/internal/references/property-type", !0);
|
|
5846
5868
|
}
|
|
5847
5869
|
/**
|
|
5848
5870
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
5849
5871
|
*/
|
|
5850
5872
|
getPriceCoefficients() {
|
|
5851
|
-
return this.getTypedDataArrayRequester(
|
|
5873
|
+
return this.getTypedDataArrayRequester(Pe, "/internal/references/price-coefficient", !0);
|
|
5852
5874
|
}
|
|
5853
5875
|
/**
|
|
5854
5876
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
5855
5877
|
*/
|
|
5856
5878
|
getProductFileType() {
|
|
5857
|
-
return this.getTypedDataArrayRequester(
|
|
5879
|
+
return this.getTypedDataArrayRequester(ft, "/public/references/product-file-type", !0);
|
|
5858
5880
|
}
|
|
5859
5881
|
}
|
|
5860
|
-
const
|
|
5861
|
-
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), S = y(void 0),
|
|
5882
|
+
const A = ee("__references_private", () => {
|
|
5883
|
+
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), S = y(void 0), re = y(void 0), te = y(void 0), M = y(void 0), j = y(void 0), Te = y(void 0), l = y(void 0);
|
|
5862
5884
|
return {
|
|
5863
5885
|
/**
|
|
5864
5886
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5911,111 +5933,111 @@ const D = te("__references_private", () => {
|
|
|
5911
5933
|
/**
|
|
5912
5934
|
* Справочник типов ресурсов.
|
|
5913
5935
|
*/
|
|
5914
|
-
resourceTypesReference:
|
|
5936
|
+
resourceTypesReference: re,
|
|
5915
5937
|
/**
|
|
5916
5938
|
* Справочник направлений продаж.
|
|
5917
5939
|
*/
|
|
5918
|
-
salesDirectionsReference:
|
|
5940
|
+
salesDirectionsReference: te,
|
|
5919
5941
|
/**
|
|
5920
5942
|
* Справочник источников первичного интереса.
|
|
5921
5943
|
*/
|
|
5922
|
-
sourcePrimaryInterestReference:
|
|
5944
|
+
sourcePrimaryInterestReference: M,
|
|
5923
5945
|
/**
|
|
5924
5946
|
* Справочник складов.
|
|
5925
5947
|
*/
|
|
5926
|
-
warehousesReference:
|
|
5948
|
+
warehousesReference: j,
|
|
5927
5949
|
/**
|
|
5928
5950
|
* Справочник типов свойств.
|
|
5929
5951
|
*/
|
|
5930
|
-
propertyTypesReference:
|
|
5952
|
+
propertyTypesReference: Te,
|
|
5931
5953
|
/**
|
|
5932
5954
|
* Справочник коэффициентов цен.
|
|
5933
5955
|
*/
|
|
5934
5956
|
priceCoefficientsReference: l
|
|
5935
5957
|
};
|
|
5936
|
-
}), us =
|
|
5958
|
+
}), us = ee("references", () => {
|
|
5937
5959
|
const n = R(() => {
|
|
5938
|
-
const l =
|
|
5960
|
+
const l = A();
|
|
5939
5961
|
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance($).getChannelPrimaryInterest().then((g) => {
|
|
5940
5962
|
l.channelPrimaryInterestReference = g;
|
|
5941
5963
|
}).catch(w)), l.channelPrimaryInterestReference;
|
|
5942
5964
|
}), r = R(() => {
|
|
5943
|
-
const l =
|
|
5965
|
+
const l = A();
|
|
5944
5966
|
return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance($).getContactPositions().then((g) => {
|
|
5945
5967
|
l.contactPositionsReference = g;
|
|
5946
5968
|
}).catch(w)), l.contactPositionsReference;
|
|
5947
5969
|
}), e = R(() => {
|
|
5948
|
-
const l =
|
|
5970
|
+
const l = A();
|
|
5949
5971
|
return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance($).getCurrency().then((g) => {
|
|
5950
5972
|
l.currencyReference = g;
|
|
5951
5973
|
}).catch(w)), l.currencyReference;
|
|
5952
5974
|
}), s = R(() => {
|
|
5953
|
-
const l =
|
|
5975
|
+
const l = A();
|
|
5954
5976
|
return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance($).getOpf().then((g) => {
|
|
5955
5977
|
l.opfReference = g;
|
|
5956
5978
|
}).catch(w)), l.opfReference;
|
|
5957
5979
|
}), i = R(() => {
|
|
5958
|
-
const l =
|
|
5980
|
+
const l = A();
|
|
5959
5981
|
return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance($).getOrderPaymentStatuses().then((g) => {
|
|
5960
5982
|
l.orderPaymentStatusReference = g;
|
|
5961
5983
|
}).catch(w)), l.orderPaymentStatusReference;
|
|
5962
5984
|
}), o = R(() => {
|
|
5963
|
-
const l =
|
|
5985
|
+
const l = A();
|
|
5964
5986
|
return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance($).getOrderStatuses().then((g) => {
|
|
5965
5987
|
l.orderStatusReference = g;
|
|
5966
5988
|
}).catch(w)), l.orderStatusReference;
|
|
5967
5989
|
}), c = R(() => {
|
|
5968
|
-
const l =
|
|
5990
|
+
const l = A();
|
|
5969
5991
|
return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance($).getPaymentTypes().then((g) => {
|
|
5970
5992
|
l.paymentTypeReference = g;
|
|
5971
5993
|
}).catch(w)), l.paymentTypeReference;
|
|
5972
5994
|
}), u = R(() => {
|
|
5973
|
-
const l =
|
|
5995
|
+
const l = A();
|
|
5974
5996
|
return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance($).getPartnerGroup().then((g) => {
|
|
5975
5997
|
l.partnerGroupReference = g;
|
|
5976
5998
|
}).catch(w)), l.partnerGroupReference;
|
|
5977
5999
|
}), p = R(() => {
|
|
5978
|
-
const l =
|
|
6000
|
+
const l = A();
|
|
5979
6001
|
return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance($).getProductFileType().then((g) => {
|
|
5980
6002
|
l.productFileTypeReference = g;
|
|
5981
6003
|
}).catch(w)), l.productFileTypeReference;
|
|
5982
6004
|
}), f = R(() => {
|
|
5983
|
-
const l =
|
|
6005
|
+
const l = A();
|
|
5984
6006
|
return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance($).getResourceTypes().then((g) => {
|
|
5985
6007
|
l.resourceTypesReference = g;
|
|
5986
6008
|
}).catch(w)), l.resourceTypesReference;
|
|
5987
6009
|
}), m = R(() => {
|
|
5988
|
-
const l =
|
|
6010
|
+
const l = A();
|
|
5989
6011
|
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance($).getSalesDirections().then((g) => {
|
|
5990
6012
|
l.salesDirectionsReference = g;
|
|
5991
6013
|
}).catch(w)), l.salesDirectionsReference;
|
|
5992
6014
|
}), S = R(() => {
|
|
5993
|
-
const l =
|
|
6015
|
+
const l = A();
|
|
5994
6016
|
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance($).getSourcePrimaryInterest().then((g) => {
|
|
5995
6017
|
l.sourcePrimaryInterestReference = g;
|
|
5996
6018
|
}).catch(w)), l.sourcePrimaryInterestReference;
|
|
5997
|
-
}),
|
|
5998
|
-
const l =
|
|
6019
|
+
}), re = R(() => {
|
|
6020
|
+
const l = A();
|
|
5999
6021
|
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance($).getDeliveryTypes().then((g) => {
|
|
6000
6022
|
l.deliveryTypeReference = g;
|
|
6001
6023
|
}).catch(w)), l.deliveryTypeReference;
|
|
6002
|
-
}),
|
|
6003
|
-
const l =
|
|
6004
|
-
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(
|
|
6024
|
+
}), te = R(() => {
|
|
6025
|
+
const l = A();
|
|
6026
|
+
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Rt).getManagers().then((g) => {
|
|
6005
6027
|
l.managersList = g;
|
|
6006
6028
|
}).catch(w)), l.managersList;
|
|
6007
|
-
}),
|
|
6008
|
-
const l =
|
|
6029
|
+
}), M = R(() => {
|
|
6030
|
+
const l = A();
|
|
6009
6031
|
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance($).getWarehouses().then((g) => {
|
|
6010
6032
|
l.warehousesReference = g;
|
|
6011
6033
|
}).catch(w)), l.warehousesReference;
|
|
6012
|
-
}),
|
|
6013
|
-
const l =
|
|
6034
|
+
}), j = R(() => {
|
|
6035
|
+
const l = A();
|
|
6014
6036
|
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance($).getPropertyTypes().then((g) => {
|
|
6015
6037
|
l.propertyTypesReference = g;
|
|
6016
6038
|
}).catch(w)), l.propertyTypesReference;
|
|
6017
|
-
}),
|
|
6018
|
-
const l =
|
|
6039
|
+
}), Te = R(() => {
|
|
6040
|
+
const l = A();
|
|
6019
6041
|
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance($).getPriceCoefficients().then((g) => {
|
|
6020
6042
|
l.priceCoefficientsReference = g;
|
|
6021
6043
|
}).catch(w)), l.priceCoefficientsReference;
|
|
@@ -6072,23 +6094,23 @@ const D = te("__references_private", () => {
|
|
|
6072
6094
|
/**
|
|
6073
6095
|
* Справочник типов доставки.
|
|
6074
6096
|
*/
|
|
6075
|
-
deliveryTypeReference:
|
|
6097
|
+
deliveryTypeReference: re,
|
|
6076
6098
|
/**
|
|
6077
6099
|
* Список менеджеров.
|
|
6078
6100
|
*/
|
|
6079
|
-
managersList:
|
|
6101
|
+
managersList: te,
|
|
6080
6102
|
/**
|
|
6081
6103
|
* Справочник складов.
|
|
6082
6104
|
*/
|
|
6083
|
-
warehousesReference:
|
|
6105
|
+
warehousesReference: M,
|
|
6084
6106
|
/**
|
|
6085
6107
|
* Справочник типов свойств.
|
|
6086
6108
|
*/
|
|
6087
|
-
propertyTypesReference:
|
|
6109
|
+
propertyTypesReference: j,
|
|
6088
6110
|
/**
|
|
6089
6111
|
* Справочник коэффициентов цен.
|
|
6090
6112
|
*/
|
|
6091
|
-
priceCoefficientsReference:
|
|
6113
|
+
priceCoefficientsReference: Te
|
|
6092
6114
|
};
|
|
6093
6115
|
});
|
|
6094
6116
|
class $t {
|
|
@@ -6109,7 +6131,7 @@ class $t {
|
|
|
6109
6131
|
this.name = r.name, this.content = r.content;
|
|
6110
6132
|
}
|
|
6111
6133
|
}
|
|
6112
|
-
class
|
|
6134
|
+
class ir {
|
|
6113
6135
|
/**
|
|
6114
6136
|
* Инициализирует экземпляр класса {@link Seo}.
|
|
6115
6137
|
*
|
|
@@ -6145,7 +6167,7 @@ class tr {
|
|
|
6145
6167
|
*/
|
|
6146
6168
|
t(this, "meta");
|
|
6147
6169
|
var e;
|
|
6148
|
-
this.resourceType = new
|
|
6170
|
+
this.resourceType = new vr(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 $t(s))) ?? [];
|
|
6149
6171
|
}
|
|
6150
6172
|
}
|
|
6151
6173
|
class ps extends h {
|
|
@@ -6156,7 +6178,7 @@ class ps extends h {
|
|
|
6156
6178
|
* @param resourceId Идентификатор ресурса для которого необходимо получить SEO-данные.
|
|
6157
6179
|
*/
|
|
6158
6180
|
getResourceSeoData(r, e) {
|
|
6159
|
-
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new
|
|
6181
|
+
return this.get(`/internal/seo/${r.slug}/${e}`, {}, (s) => new ir(s.data));
|
|
6160
6182
|
}
|
|
6161
6183
|
/**
|
|
6162
6184
|
* Выполняет сохранение данных о SEO-параметрах для указанного ресурса.
|
|
@@ -6167,7 +6189,7 @@ class ps extends h {
|
|
|
6167
6189
|
* в случае ошибок в запросах.
|
|
6168
6190
|
*/
|
|
6169
6191
|
saveResourceSeoData(r, e = {}) {
|
|
6170
|
-
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new
|
|
6192
|
+
return this.post(`/internal/seo/${r.resourceType.slug}/${r.resourceId}`, r, (s) => new ir(s.data), e);
|
|
6171
6193
|
}
|
|
6172
6194
|
/**
|
|
6173
6195
|
* Возвращает {@link Promise} для удаления данных о SEO-параметрах указанного ресурса.
|
|
@@ -6227,7 +6249,7 @@ class hs extends h {
|
|
|
6227
6249
|
}
|
|
6228
6250
|
}
|
|
6229
6251
|
var bt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(bt || {});
|
|
6230
|
-
class St extends
|
|
6252
|
+
class St extends yr {
|
|
6231
6253
|
/**
|
|
6232
6254
|
* Инициализирует экземпляр класса {@link User}.
|
|
6233
6255
|
*
|
|
@@ -6275,7 +6297,7 @@ class at extends h {
|
|
|
6275
6297
|
return this.get("/internal/users/info", {}, (r) => new St(r.data));
|
|
6276
6298
|
}
|
|
6277
6299
|
}
|
|
6278
|
-
const It =
|
|
6300
|
+
const It = ee("__user_state_private", () => {
|
|
6279
6301
|
const n = y({}), r = y(void 0);
|
|
6280
6302
|
return {
|
|
6281
6303
|
/**
|
|
@@ -6287,7 +6309,7 @@ const It = te("__user_state_private", () => {
|
|
|
6287
6309
|
*/
|
|
6288
6310
|
currentUser: r
|
|
6289
6311
|
};
|
|
6290
|
-
}), ms =
|
|
6312
|
+
}), ms = ee("user_state", () => ({
|
|
6291
6313
|
/**
|
|
6292
6314
|
* Данные о текущем пользователе.
|
|
6293
6315
|
*/
|
|
@@ -6324,151 +6346,151 @@ class fs {
|
|
|
6324
6346
|
}
|
|
6325
6347
|
}
|
|
6326
6348
|
export {
|
|
6327
|
-
|
|
6349
|
+
ut as AnyReference,
|
|
6328
6350
|
jt as AppBaseConfig,
|
|
6329
6351
|
T as AppConfigProvider,
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6352
|
+
de as BankAccount,
|
|
6353
|
+
De as BasePaginationProvider,
|
|
6354
|
+
Yr as CalculationTypeEnum,
|
|
6355
|
+
me as Cart,
|
|
6356
|
+
Qr as CartItem,
|
|
6357
|
+
Kr as CartItemBase,
|
|
6336
6358
|
Ft as CartProvider,
|
|
6337
6359
|
Gt as CatalogProvider,
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6360
|
+
ur as CatalogableItem,
|
|
6361
|
+
B as Category,
|
|
6362
|
+
Ke as CategoryPricingRule,
|
|
6363
|
+
Cr as ChannelPrimaryInterest,
|
|
6342
6364
|
Yt as City,
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6365
|
+
Ee as CityWithRegionAndCountry,
|
|
6366
|
+
Ze as Client,
|
|
6367
|
+
vt as ClientAdditionalData,
|
|
6368
|
+
ye as ClientCategory,
|
|
6369
|
+
x as ClientDataProvider,
|
|
6348
6370
|
Ht as ClientPriceProvider,
|
|
6349
6371
|
Bt as ClientPriceTemplateProvider,
|
|
6350
|
-
|
|
6372
|
+
Y as ClientProduct,
|
|
6351
6373
|
Wt as ClientProductCategoryDataProvider,
|
|
6352
6374
|
Jt as ClientProductDataProvider,
|
|
6353
|
-
|
|
6354
|
-
|
|
6375
|
+
ge as ClientShortInfo,
|
|
6376
|
+
lt as ClientsAdditionalDataRequestTypeEnum,
|
|
6355
6377
|
Xt as ClientsListFilters,
|
|
6356
6378
|
oe as CodedIdentity,
|
|
6357
6379
|
ts as ConfiguratorProvider,
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6380
|
+
Oe as Contact,
|
|
6381
|
+
mr as ContactLinks,
|
|
6382
|
+
U as ContactPerson,
|
|
6383
|
+
Ct as ContactPersonRelated,
|
|
6384
|
+
pt as ContactPosition,
|
|
6385
|
+
ae as ContactRelation,
|
|
6386
|
+
Rr as ContragentBase,
|
|
6387
|
+
Ce as ContragentFactory,
|
|
6388
|
+
Ar as ContragentIc,
|
|
6389
|
+
yt as ContragentPerson,
|
|
6390
|
+
wt as ContragentUlNr,
|
|
6369
6391
|
Dr as ContragentUlR,
|
|
6370
|
-
|
|
6371
|
-
|
|
6392
|
+
je as CostSourceEnum,
|
|
6393
|
+
X as Country,
|
|
6372
6394
|
He as CuratedDirection,
|
|
6373
|
-
|
|
6374
|
-
|
|
6395
|
+
Be as Curator,
|
|
6396
|
+
we as Currency,
|
|
6375
6397
|
hs as DataSuggestionProvider,
|
|
6376
6398
|
Zt as DataTablePagination,
|
|
6377
|
-
|
|
6399
|
+
Pt as DataTablePaginationRequestParams,
|
|
6378
6400
|
es as DataTableSortRequestParams,
|
|
6379
6401
|
ss as DateTimeProvider,
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6402
|
+
Zr as DeletableNamedIdentity,
|
|
6403
|
+
ve as DeliveryAddress,
|
|
6404
|
+
Q as DeliveryType,
|
|
6383
6405
|
Ut as DetailedJwtPayload,
|
|
6384
|
-
|
|
6385
|
-
|
|
6406
|
+
st as DeviceTypeResolutionConfig,
|
|
6407
|
+
et as DiscountShortInfo,
|
|
6386
6408
|
fs as FieldValidationResultData,
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6409
|
+
le as FilterGroup,
|
|
6410
|
+
Qe as FilterItem,
|
|
6411
|
+
ze as FilterOpEnum,
|
|
6412
|
+
hr as GeoCoordinates,
|
|
6413
|
+
Jr as HiddenCatalogableItem,
|
|
6414
|
+
ue as HttpCachedRequester,
|
|
6415
|
+
it as HttpParamsConfig,
|
|
6394
6416
|
h as HttpRequester,
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6417
|
+
F as Identity,
|
|
6418
|
+
Vr as Image,
|
|
6419
|
+
O as JwtPayload,
|
|
6398
6420
|
Ae as Manager,
|
|
6399
|
-
|
|
6421
|
+
Ge as ManagerCommon,
|
|
6400
6422
|
is as ManagerDataFactory,
|
|
6401
|
-
|
|
6423
|
+
Rt as ManagerDataProvider,
|
|
6402
6424
|
$t as MetaTagItem,
|
|
6403
6425
|
b as NamedIdentity,
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6426
|
+
N as Opf,
|
|
6427
|
+
_ as OpfEnum,
|
|
6428
|
+
rr as Order,
|
|
6429
|
+
$r as OrderInfo,
|
|
6430
|
+
ht as OrderPaymentStatus,
|
|
6431
|
+
At as OrderProduct,
|
|
6432
|
+
Tr as OrderShortInfo,
|
|
6433
|
+
gt as OrderStatus,
|
|
6412
6434
|
ns as OrdersDataProvider,
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6435
|
+
Z as PartnerGroup,
|
|
6436
|
+
mt as PaymentType,
|
|
6437
|
+
fe as PreferencesStorageProvider,
|
|
6438
|
+
Ie as PriceAnalyze,
|
|
6417
6439
|
os as PriceAnalyzeProvider,
|
|
6418
|
-
|
|
6419
|
-
|
|
6440
|
+
Pe as PriceCoefficient,
|
|
6441
|
+
pr as PriceCoefficientEnum,
|
|
6420
6442
|
cs as PriceHistoryDataProvider,
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6443
|
+
Dt as PriceHistoryItem,
|
|
6444
|
+
E as PriceTemplate,
|
|
6445
|
+
be as PriceTemplateCategory,
|
|
6424
6446
|
se as PriceTemplateClient,
|
|
6425
|
-
|
|
6426
|
-
|
|
6447
|
+
fr as PriceTemplateICatalogableItem,
|
|
6448
|
+
Se as PriceTemplateProduct,
|
|
6427
6449
|
Vt as PriceTemplateProvider,
|
|
6428
6450
|
ne as PricingRole,
|
|
6429
6451
|
Kt as PricingRoleProvider,
|
|
6430
|
-
|
|
6452
|
+
_e as PrimaryCatalogableItem,
|
|
6431
6453
|
I as Product,
|
|
6432
6454
|
Et as ProductCategoryDataProvider,
|
|
6433
6455
|
zt as ProductDataProvider,
|
|
6434
|
-
|
|
6435
|
-
|
|
6456
|
+
ft as ProductFileType,
|
|
6457
|
+
Fe as ProductPriceCoefficient,
|
|
6436
6458
|
Tt as ProductPriceHistory,
|
|
6437
6459
|
Qt as PropertiesProvider,
|
|
6438
6460
|
ie as Property,
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6461
|
+
wr as PropertyType,
|
|
6462
|
+
Xr as PropertyTypeEnum,
|
|
6463
|
+
H as PropertyValue,
|
|
6442
6464
|
ls as RecommendationsDataProvider,
|
|
6443
|
-
|
|
6465
|
+
sr as RecommendationsList,
|
|
6444
6466
|
P as Reference,
|
|
6445
6467
|
$ as ReferenceDataProvider,
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6468
|
+
ce as Region,
|
|
6469
|
+
vr as ResourceType,
|
|
6470
|
+
d as SalesDirection,
|
|
6471
|
+
nt as SentryConfig,
|
|
6472
|
+
ir as Seo,
|
|
6451
6473
|
ps as SeoDataProvider,
|
|
6452
|
-
|
|
6453
|
-
|
|
6474
|
+
Pr as SourcePrimaryInterest,
|
|
6475
|
+
Wr as StockCount,
|
|
6454
6476
|
Mt as TemplatesListFilters,
|
|
6455
|
-
|
|
6456
|
-
|
|
6477
|
+
Me as TypedInstanceFactory,
|
|
6478
|
+
er as UnitsHelper,
|
|
6457
6479
|
rs as UnknownClientDataProvider,
|
|
6458
|
-
|
|
6480
|
+
gr as UpdatableNamedIdentity,
|
|
6459
6481
|
St as User,
|
|
6460
6482
|
gs as UserAuthDataProvider,
|
|
6461
|
-
|
|
6483
|
+
yr as UserCommonInfo,
|
|
6462
6484
|
at as UserDataProvider,
|
|
6463
|
-
|
|
6464
|
-
|
|
6485
|
+
rt as UserPricingRole,
|
|
6486
|
+
q as UserShortInfo,
|
|
6465
6487
|
bt as UserTypeEnum,
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6488
|
+
ot as VersionConfig,
|
|
6489
|
+
Re as Warehouse,
|
|
6490
|
+
ct as WebSocketConfig,
|
|
6491
|
+
Ye as findCatalogItemByIdRecursive,
|
|
6492
|
+
Xe as flattenCatalogItems,
|
|
6493
|
+
$e as useAuthStateStore,
|
|
6472
6494
|
us as useReferencesStore,
|
|
6473
6495
|
ms as useUserStateStore
|
|
6474
6496
|
};
|