@snabcentr/common-lib 1.74.6 → 1.75.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 +348 -360
- 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/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/providers/client-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) =>
|
|
1
|
+
var br = Object.defineProperty;
|
|
2
|
+
var ar = (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) => ar(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { jwtDecode as nr } from "jwt-decode";
|
|
5
|
-
import { merge as
|
|
6
|
-
import { objectToCamel as
|
|
7
|
-
import { isAfter as Je, parseISO as v, startOfToday as
|
|
8
|
-
import { defineStore as
|
|
5
|
+
import { merge as fe, isUndefined as Sr, isNil as A, 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 dr, toLower as _r, isFunction as Ne, map as Pe, forEach as Or, isDate as Le, 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 de, 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 Br, startOfDay as Hr } from "date-fns";
|
|
8
|
+
import { defineStore as ee } from "pinia";
|
|
9
9
|
import { ref as y, markRaw as Er, computed as R } from "vue";
|
|
10
10
|
import zr from "axios";
|
|
11
|
-
class
|
|
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
|
+
fe(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 = nr(r), s = new
|
|
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
|
+
fe(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 (Sr(
|
|
171
|
+
if (Sr(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 $ =
|
|
194
|
-
class
|
|
192
|
+
t(z, "config");
|
|
193
|
+
let $ = z;
|
|
194
|
+
class me {
|
|
195
195
|
/**
|
|
196
196
|
* Возвращает актуальные и не просроченные данные из хранилища.
|
|
197
197
|
*
|
|
@@ -210,8 +210,8 @@ class fe {
|
|
|
210
210
|
if (e)
|
|
211
211
|
try {
|
|
212
212
|
const s = JSON.parse(e);
|
|
213
|
-
if (!s.availableFor || Je(v(s.availableFor) ||
|
|
214
|
-
if (A(s.data) ||
|
|
213
|
+
if (!s.availableFor || Je(v(s.availableFor) || de(), /* @__PURE__ */ new Date())) {
|
|
214
|
+
if (A(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 fe {
|
|
|
233
233
|
static saveActualDataToStorage(r, e, s) {
|
|
234
234
|
if (this.isLocalStorageAvailable())
|
|
235
235
|
try {
|
|
236
|
-
if (A(e) ||
|
|
236
|
+
if (A(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 fe {
|
|
|
284
284
|
const i = localStorage.getItem(s);
|
|
285
285
|
if (i) {
|
|
286
286
|
const o = JSON.parse(i);
|
|
287
|
-
o.availableFor && !Je(v(o.availableFor) ||
|
|
287
|
+
o.availableFor && !Je(v(o.availableFor) || de(), /* @__PURE__ */ new Date()) && r.push(s);
|
|
288
288
|
}
|
|
289
289
|
} catch {
|
|
290
290
|
r.push(s);
|
|
@@ -302,17 +302,17 @@ class fe {
|
|
|
302
302
|
}
|
|
303
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 = me.getActualDataFromStorage(
|
|
316
316
|
"sc.token"
|
|
317
317
|
/* JwtToken */
|
|
318
318
|
);
|
|
@@ -324,7 +324,7 @@ const H = te("__auth_state_private", () => {
|
|
|
324
324
|
), r = y(void 0), e = y(void 0), s = Er(/* @__PURE__ */ new Map());
|
|
325
325
|
function i() {
|
|
326
326
|
e.value = void 0, A(n.value) || n.value.then((o) => {
|
|
327
|
-
const c =
|
|
327
|
+
const c = O.getJwtPayload(o);
|
|
328
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
|
}
|
|
@@ -350,47 +350,47 @@ const H = te("__auth_state_private", () => {
|
|
|
350
350
|
*/
|
|
351
351
|
recalculateUserPermissions: i
|
|
352
352
|
};
|
|
353
|
-
}), be =
|
|
353
|
+
}), be = ee("__auth_state", () => {
|
|
354
354
|
const n = R(() => {
|
|
355
|
-
const o =
|
|
355
|
+
const o = G();
|
|
356
356
|
if (A(o.jwtToken) && !A(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), me.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), me.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, me.saveActualDataToStorage("sc.token", void 0);
|
|
374
374
|
}
|
|
375
375
|
function i(o) {
|
|
376
|
-
const c =
|
|
376
|
+
const c = G();
|
|
377
377
|
!A(c.jwtToken) && A(c.userPermissions) && c.jwtToken.then((f) => {
|
|
378
|
-
const g =
|
|
379
|
-
c.userPermissions = g.exp * 1e3 > Date.now() ? or(g.resourceAccess, (
|
|
378
|
+
const g = O.getJwtPayload(f);
|
|
379
|
+
c.userPermissions = g.exp * 1e3 > Date.now() ? or(g.resourceAccess, (a) => (a == null ? void 0 : a.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 h = R(() => {
|
|
385
385
|
const f = (g) => {
|
|
386
|
-
var
|
|
387
|
-
const
|
|
388
|
-
if (
|
|
386
|
+
var j;
|
|
387
|
+
const a = xr(g, ".");
|
|
388
|
+
if (a.length < 2)
|
|
389
389
|
return !1;
|
|
390
|
-
const [
|
|
391
|
-
return
|
|
390
|
+
const [re, te] = a, 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, (g) => f(g)) : f(o);
|
|
394
394
|
});
|
|
395
395
|
return c.userPermissionsComputedRefs.set(u, h), h;
|
|
396
396
|
}
|
|
@@ -423,7 +423,7 @@ const H = 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
|
*
|
|
@@ -448,7 +448,7 @@ class j {
|
|
|
448
448
|
return typeof this.id == "number" ? this.id === -1 : typeof this.id == "string" ? this.id === "" : A(this.id);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
class
|
|
451
|
+
class b extends F {
|
|
452
452
|
/**
|
|
453
453
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
454
454
|
*
|
|
@@ -463,7 +463,7 @@ class a extends j {
|
|
|
463
463
|
this.name = (e == null ? void 0 : e.name) ?? "";
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
class oe extends
|
|
466
|
+
class oe extends b {
|
|
467
467
|
/**
|
|
468
468
|
* Инициализирует экземпляр класса {@link NamedIdentity}.
|
|
469
469
|
*
|
|
@@ -497,7 +497,7 @@ class ur 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 Oe extends ur {
|
|
|
512
512
|
this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
class
|
|
515
|
+
class pe extends _e {
|
|
516
516
|
/**
|
|
517
517
|
* Инициализирует экземпляр класса {@link BaseCategory}.
|
|
518
518
|
*
|
|
@@ -540,7 +540,7 @@ class he extends Oe {
|
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
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
|
-
class P extends
|
|
543
|
+
class P extends b {
|
|
544
544
|
/**
|
|
545
545
|
* Инициализирует экземпляр класса {@link Reference}.
|
|
546
546
|
*
|
|
@@ -559,7 +559,7 @@ class P extends a {
|
|
|
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 Re extends P {
|
|
563
563
|
/**
|
|
564
564
|
* Возвращает значение справочника коэффициента розничной цены.
|
|
565
565
|
*/
|
|
@@ -567,7 +567,7 @@ class De extends P {
|
|
|
567
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,7 +594,7 @@ class Me {
|
|
|
594
594
|
* Признак того, что указанный коэффициент доступен текущему пользователю только для просмотра.
|
|
595
595
|
*/
|
|
596
596
|
t(this, "readOnly");
|
|
597
|
-
this.coefficient = new
|
|
597
|
+
this.coefficient = new Re(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
class hr {
|
|
@@ -615,9 +615,9 @@ class hr {
|
|
|
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 De extends P {
|
|
621
621
|
/**
|
|
622
622
|
* Инициализирует экземпляр класса {@link Warehouse}.
|
|
623
623
|
*
|
|
@@ -646,7 +646,7 @@ class Ae 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
652
|
class Wr {
|
|
@@ -664,7 +664,7 @@ class Wr {
|
|
|
664
664
|
* Количество остатков товара на складе.
|
|
665
665
|
*/
|
|
666
666
|
t(this, "count");
|
|
667
|
-
this.warehouse = new
|
|
667
|
+
this.warehouse = new De(r == null ? void 0 : r.warehouse), this.count = (r == null ? void 0 : r.count) ?? 0;
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
class Jr extends ur {
|
|
@@ -792,7 +792,7 @@ class I extends Jr {
|
|
|
792
792
|
t(this, "priceCoefficients");
|
|
793
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((h) => new Wr(h))) ?? [], 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((h) => h.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((h) => new _e(h))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((h) => new Vr(h, $.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((h) => new Fe(h))) ?? [], 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 Jr {
|
|
|
815
815
|
return this.retailCostRub ?? this.costRub;
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
|
-
class Kr extends
|
|
818
|
+
class Kr extends F {
|
|
819
819
|
/**
|
|
820
820
|
* Инициализирует экземпляр класса {@link CartItemBase}.
|
|
821
821
|
*
|
|
@@ -867,7 +867,7 @@ class Kr 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 pe(), this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && dr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale;
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
873
|
class Qr extends Kr {
|
|
@@ -920,7 +920,7 @@ class Qr extends Kr {
|
|
|
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 ge {
|
|
924
924
|
/**
|
|
925
925
|
* Инициализирует экземпляр класса {@link Cart}.
|
|
926
926
|
*
|
|
@@ -942,7 +942,7 @@ class me {
|
|
|
942
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
|
*
|
|
@@ -1025,11 +1025,11 @@ const S = class S {
|
|
|
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 = $.getConfig().version;
|
|
1030
1030
|
this.errorResponseHandler = S.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, $.getConfig().dateFormats.uiDate)})`,
|
|
1033
1033
|
Accept: "application/json",
|
|
1034
1034
|
"Content-Type": "application/json"
|
|
1035
1035
|
}
|
|
@@ -1058,7 +1058,7 @@ const S = class S {
|
|
|
1058
1058
|
* @param type Тип данных, которыми оперирует метод.
|
|
1059
1059
|
*/
|
|
1060
1060
|
static getInstance(r) {
|
|
1061
|
-
return Object.prototype.hasOwnProperty.call(S.instances, r.name) || (S.instances[r.name] =
|
|
1061
|
+
return Object.prototype.hasOwnProperty.call(S.instances, r.name) || (S.instances[r.name] = Me.simpleInstanceInitializer(r)), S.instances[r.name];
|
|
1062
1062
|
}
|
|
1063
1063
|
/**
|
|
1064
1064
|
* Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
|
|
@@ -1174,7 +1174,7 @@ class Ft extends p {
|
|
|
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 ge(e.data));
|
|
1178
1178
|
}
|
|
1179
1179
|
/**
|
|
1180
1180
|
* Удаляет всё содержимое корзины.
|
|
@@ -1212,7 +1212,7 @@ class Ft extends p {
|
|
|
1212
1212
|
isAdditionalSale: e.isAdditionalSale,
|
|
1213
1213
|
...e.configuratorParams
|
|
1214
1214
|
},
|
|
1215
|
-
(i) => new
|
|
1215
|
+
(i) => new ge(i.data),
|
|
1216
1216
|
s
|
|
1217
1217
|
);
|
|
1218
1218
|
}
|
|
@@ -1242,7 +1242,7 @@ class Ft extends p {
|
|
|
1242
1242
|
isAdditionalSale: e.isAdditionalSale,
|
|
1243
1243
|
...e.configuratorParams
|
|
1244
1244
|
},
|
|
1245
|
-
(i) => new
|
|
1245
|
+
(i) => new ge(i.data),
|
|
1246
1246
|
s
|
|
1247
1247
|
);
|
|
1248
1248
|
}
|
|
@@ -1266,7 +1266,7 @@ class Ft extends p {
|
|
|
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 ge(s.data));
|
|
1270
1270
|
}
|
|
1271
1271
|
/**
|
|
1272
1272
|
* Возвращает пример CSV файла для добавления продуктов в корзину.
|
|
@@ -1279,8 +1279,8 @@ class Ft extends p {
|
|
|
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 Yr = /* @__PURE__ */ ((n) => (n.m2Cost = "m2Cost", n.percent = "percent", n.value = "value", n))(Yr || {}),
|
|
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 H extends pe {
|
|
1284
1284
|
/**
|
|
1285
1285
|
* Инициализирует экземпляр класса {@link Category}.
|
|
1286
1286
|
*
|
|
@@ -1297,10 +1297,10 @@ class z extends he {
|
|
|
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 H(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 gr extends
|
|
1303
|
+
class gr extends b {
|
|
1304
1304
|
/**
|
|
1305
1305
|
* Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
|
|
1306
1306
|
*
|
|
@@ -1330,7 +1330,7 @@ class Zr extends gr {
|
|
|
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 a {
|
|
|
1345
1345
|
this.type = e == null ? void 0 : e.type;
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
|
-
class et extends
|
|
1348
|
+
class et extends b {
|
|
1349
1349
|
/**
|
|
1350
1350
|
* Инициализирует экземпляр класса {@link DiscountShortInfo}.
|
|
1351
1351
|
*
|
|
@@ -1381,10 +1381,10 @@ class et extends a {
|
|
|
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 gr {
|
|
|
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,7 +1439,7 @@ 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
1445
|
class mr {
|
|
@@ -1460,9 +1460,9 @@ class mr {
|
|
|
1460
1460
|
this.phone = /^\d+$/.test(r.phone ?? "") ? `+${r.phone}` : r.phone, this.email = r.email;
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
|
-
class
|
|
1463
|
+
class _ 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 a {
|
|
|
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 _(e.salesDirection) : new _(), 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 Be extends P {
|
|
1497
1497
|
}
|
|
1498
|
-
class rt extends
|
|
1498
|
+
class rt extends b {
|
|
1499
1499
|
/**
|
|
1500
1500
|
* Инициализирует экземпляр класса {@link IUserPricingRole}.
|
|
1501
1501
|
*
|
|
@@ -1518,7 +1518,7 @@ class rt extends a {
|
|
|
1518
1518
|
this.description = e.description, this.canChangeLowCost = e.canChangeLowCost, this.parentRoleId = e.parentRoleId;
|
|
1519
1519
|
}
|
|
1520
1520
|
}
|
|
1521
|
-
class
|
|
1521
|
+
class Ae extends Ge {
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Инициализирует экземпляр класса {@link Manager}.
|
|
1524
1524
|
*
|
|
@@ -1558,7 +1558,7 @@ class Te extends ce {
|
|
|
1558
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 Be(i))) ?? [];
|
|
1559
1559
|
}
|
|
1560
1560
|
}
|
|
1561
|
-
class tt extends
|
|
1561
|
+
class tt extends pe {
|
|
1562
1562
|
/**
|
|
1563
1563
|
* Инициализирует экземпляр класса {@link BaseClientCategory}.
|
|
1564
1564
|
*
|
|
@@ -1586,10 +1586,10 @@ class tt extends he {
|
|
|
1586
1586
|
* Данные о менеджере за которым закреплена категория.
|
|
1587
1587
|
*/
|
|
1588
1588
|
t(this, "manager");
|
|
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
|
|
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,7 +1606,7 @@ class we extends tt {
|
|
|
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
1612
|
class fr {
|
|
@@ -1624,10 +1624,10 @@ class fr {
|
|
|
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 Re(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
|
|
1628
1628
|
}
|
|
1629
1629
|
}
|
|
1630
|
-
class
|
|
1630
|
+
class ae extends fr {
|
|
1631
1631
|
/**
|
|
1632
1632
|
* Инициализирует экземпляр класса {@link PriceTemplateProduct}.
|
|
1633
1633
|
*
|
|
@@ -1639,10 +1639,10 @@ class Se extends fr {
|
|
|
1639
1639
|
* Базовые данные о продукте.
|
|
1640
1640
|
*/
|
|
1641
1641
|
t(this, "productCategory");
|
|
1642
|
-
this.productCategory = new
|
|
1642
|
+
this.productCategory = new pe(e == null ? void 0 : e.productCategory);
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
|
-
class He extends
|
|
1645
|
+
class He extends b {
|
|
1646
1646
|
/**
|
|
1647
1647
|
* Инициализирует экземпляр класса {@link Curator}.
|
|
1648
1648
|
*
|
|
@@ -1665,9 +1665,9 @@ class He extends a {
|
|
|
1665
1665
|
this.photo = e.photo, this.contacts = new mr(e.contacts), this.curatedDirection = new Be(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,8 +1678,8 @@ 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
1685
|
class Ee extends P {
|
|
@@ -1693,11 +1693,11 @@ class Ee 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 yr extends
|
|
1700
|
+
class yr extends b {
|
|
1701
1701
|
/**
|
|
1702
1702
|
* Инициализирует экземпляр класса {@link UserCommonInfo}.
|
|
1703
1703
|
*
|
|
@@ -1733,10 +1733,10 @@ class yr extends a {
|
|
|
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 _(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 he extends yr {
|
|
1740
1740
|
/**
|
|
1741
1741
|
* Инициализирует экземпляр класса {@link Client}.
|
|
1742
1742
|
*
|
|
@@ -1782,10 +1782,10 @@ class ge extends yr {
|
|
|
1782
1782
|
* @inheritDoc
|
|
1783
1783
|
*/
|
|
1784
1784
|
t(this, "curators");
|
|
1785
|
-
this.salesDirection = new
|
|
1785
|
+
this.salesDirection = new _(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 He(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 he(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
|
*
|
|
@@ -1829,7 +1829,7 @@ class Ie extends fr {
|
|
|
1829
1829
|
}
|
|
1830
1830
|
class wr extends P {
|
|
1831
1831
|
}
|
|
1832
|
-
class ie extends
|
|
1832
|
+
class ie extends b {
|
|
1833
1833
|
/**
|
|
1834
1834
|
* Инициализирует экземпляр класса {@link Property}.
|
|
1835
1835
|
*
|
|
@@ -1852,7 +1852,7 @@ class ie extends a {
|
|
|
1852
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 B {
|
|
1856
1856
|
/**
|
|
1857
1857
|
* Инициализирует экземпляр класса {@link PropertyValue}.
|
|
1858
1858
|
*
|
|
@@ -1871,7 +1871,7 @@ class E {
|
|
|
1871
1871
|
this.property = new ie(r == null ? void 0 : r.property), this.value = (r == null ? void 0 : r.value) ?? "";
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
|
-
class
|
|
1874
|
+
class k {
|
|
1875
1875
|
/**
|
|
1876
1876
|
* Инициализирует экземпляр класса {@link DatePeriod}.
|
|
1877
1877
|
*
|
|
@@ -1911,12 +1911,12 @@ class Mt {
|
|
|
1911
1911
|
/**
|
|
1912
1912
|
* Период создания.
|
|
1913
1913
|
*/
|
|
1914
|
-
t(this, "createdAt", new
|
|
1914
|
+
t(this, "createdAt", new k());
|
|
1915
1915
|
/**
|
|
1916
1916
|
* Период изменения.
|
|
1917
1917
|
*/
|
|
1918
|
-
t(this, "updatedAt", new
|
|
1919
|
-
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new
|
|
1918
|
+
t(this, "updatedAt", new k());
|
|
1919
|
+
this.id = r == null ? void 0 : r.id, this.name = r == null ? void 0 : r.name, this.description = r == null ? void 0 : r.description, this.createdAt = new k(r == null ? void 0 : r.createdAt), this.updatedAt = new k(r == null ? void 0 : r.updatedAt);
|
|
1920
1920
|
}
|
|
1921
1921
|
/**
|
|
1922
1922
|
* Выполняет сброс указанного фильтра в значение по умолчанию.
|
|
@@ -1949,11 +1949,11 @@ 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
|
-
A(u) || C(u) && u.trim().length === 0 ||
|
|
1952
|
+
A(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
|
}
|
|
1956
|
-
class ne extends
|
|
1956
|
+
class ne extends b {
|
|
1957
1957
|
/**
|
|
1958
1958
|
* Инициализирует экземпляр класса {@link PricingRole}.
|
|
1959
1959
|
*
|
|
@@ -2007,7 +2007,7 @@ class Ke {
|
|
|
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 pe(r == null ? void 0 : r.category), this.minCoefficient = new Re(r == null ? void 0 : r.minCoefficient);
|
|
2011
2011
|
}
|
|
2012
2012
|
}
|
|
2013
2013
|
class st {
|
|
@@ -2373,7 +2373,7 @@ class Bt extends p {
|
|
|
2373
2373
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2374
2374
|
increase_percent: s.value
|
|
2375
2375
|
},
|
|
2376
|
-
(o) => new
|
|
2376
|
+
(o) => new Y(o.data)
|
|
2377
2377
|
);
|
|
2378
2378
|
}
|
|
2379
2379
|
/**
|
|
@@ -2385,7 +2385,7 @@ class Bt extends p {
|
|
|
2385
2385
|
* @see /doc/api/internal#/operations/api_internal_client_price_products_remove
|
|
2386
2386
|
*/
|
|
2387
2387
|
removeProductPrice(r, e) {
|
|
2388
|
-
return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new
|
|
2388
|
+
return this.delete(`/internal/clients/${r}/price/products/${e}`, (s) => new Y(s.data));
|
|
2389
2389
|
}
|
|
2390
2390
|
/**
|
|
2391
2391
|
* Добавляет указанный продукт в список товаров для дополнительных продаж.
|
|
@@ -2487,8 +2487,8 @@ class Ht extends p {
|
|
|
2487
2487
|
return this.post(
|
|
2488
2488
|
`/internal/clients/${r}/price/templates/${e}`,
|
|
2489
2489
|
s && {
|
|
2490
|
-
startAt: s.startAt &&
|
|
2491
|
-
endAt: s.endAt &&
|
|
2490
|
+
startAt: s.startAt && L(s.startAt, i),
|
|
2491
|
+
endAt: s.endAt && L(s.endAt, i)
|
|
2492
2492
|
},
|
|
2493
2493
|
(o) => new se(o.data),
|
|
2494
2494
|
{},
|
|
@@ -2521,8 +2521,8 @@ class Ht extends p {
|
|
|
2521
2521
|
return this.patch(
|
|
2522
2522
|
`/internal/clients/${r}/price/templates/${e}/${s}`,
|
|
2523
2523
|
i && {
|
|
2524
|
-
startAt: i.startAt &&
|
|
2525
|
-
endAt: i.endAt &&
|
|
2524
|
+
startAt: i.startAt && L(i.startAt, o),
|
|
2525
|
+
endAt: i.endAt && L(i.endAt, o)
|
|
2526
2526
|
},
|
|
2527
2527
|
(c) => new se(c.data)
|
|
2528
2528
|
);
|
|
@@ -2554,7 +2554,7 @@ class Et extends p {
|
|
|
2554
2554
|
{
|
|
2555
2555
|
showHidden: r
|
|
2556
2556
|
},
|
|
2557
|
-
(e) => e.data.map((s) => new
|
|
2557
|
+
(e) => e.data.map((s) => new H(s))
|
|
2558
2558
|
);
|
|
2559
2559
|
}
|
|
2560
2560
|
/**
|
|
@@ -2573,7 +2573,7 @@ class Et extends p {
|
|
|
2573
2573
|
showHidden: e,
|
|
2574
2574
|
withNestedCategories: s
|
|
2575
2575
|
},
|
|
2576
|
-
(i) => new
|
|
2576
|
+
(i) => new H(i.data)
|
|
2577
2577
|
);
|
|
2578
2578
|
}
|
|
2579
2579
|
/**
|
|
@@ -2582,7 +2582,7 @@ class Et extends p {
|
|
|
2582
2582
|
* @param categoryID Идентификатор категории продуктов.
|
|
2583
2583
|
*/
|
|
2584
2584
|
getPublicCategoryData(r) {
|
|
2585
|
-
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new
|
|
2585
|
+
return this.get(`/public/catalog/categories/${r}`, {}, (e) => new H(e.data));
|
|
2586
2586
|
}
|
|
2587
2587
|
/**
|
|
2588
2588
|
* Возвращает список продуктов категории.
|
|
@@ -2600,7 +2600,7 @@ class Et extends p {
|
|
|
2600
2600
|
showHidden: s,
|
|
2601
2601
|
withPriceCoefficients: e
|
|
2602
2602
|
},
|
|
2603
|
-
(i) =>
|
|
2603
|
+
(i) => Pe(i.data, (o) => new I(o))
|
|
2604
2604
|
);
|
|
2605
2605
|
}
|
|
2606
2606
|
/**
|
|
@@ -2613,7 +2613,7 @@ class Et extends p {
|
|
|
2613
2613
|
getCategoryProductsCoefficients(r) {
|
|
2614
2614
|
return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
|
|
2615
2615
|
const { data: s } = e;
|
|
2616
|
-
return Or(s, (i) => i.map((o) => new
|
|
2616
|
+
return Or(s, (i) => i.map((o) => new Fe(o))), s;
|
|
2617
2617
|
});
|
|
2618
2618
|
}
|
|
2619
2619
|
/**
|
|
@@ -2625,7 +2625,7 @@ class Et extends p {
|
|
|
2625
2625
|
publicSimpleSearch(r, e = 10) {
|
|
2626
2626
|
return new Promise((s, i) => {
|
|
2627
2627
|
this.get(`/public/catalog/search/simple?limit=${e}&term=${r}`).then((o) => {
|
|
2628
|
-
s(o.categories.map((c) => new
|
|
2628
|
+
s(o.categories.map((c) => new H(c)));
|
|
2629
2629
|
}).catch((o) => {
|
|
2630
2630
|
i(o);
|
|
2631
2631
|
});
|
|
@@ -2663,7 +2663,7 @@ class zt extends p {
|
|
|
2663
2663
|
return this.get(
|
|
2664
2664
|
`/internal/catalog/products/${r}/coefficients`,
|
|
2665
2665
|
{},
|
|
2666
|
-
(e) =>
|
|
2666
|
+
(e) => Pe(e.data, (s) => new Fe(s))
|
|
2667
2667
|
);
|
|
2668
2668
|
}
|
|
2669
2669
|
/**
|
|
@@ -2698,7 +2698,7 @@ class Wt extends p {
|
|
|
2698
2698
|
clientId: r,
|
|
2699
2699
|
showHidden: e
|
|
2700
2700
|
},
|
|
2701
|
-
(s) => s.data.map((i) => new
|
|
2701
|
+
(s) => s.data.map((i) => new ye(i))
|
|
2702
2702
|
);
|
|
2703
2703
|
}
|
|
2704
2704
|
/**
|
|
@@ -2719,7 +2719,7 @@ class Wt extends p {
|
|
|
2719
2719
|
showHidden: s,
|
|
2720
2720
|
withNestedCategories: i
|
|
2721
2721
|
},
|
|
2722
|
-
(o) => new
|
|
2722
|
+
(o) => new ye(o.data)
|
|
2723
2723
|
);
|
|
2724
2724
|
}
|
|
2725
2725
|
/**
|
|
@@ -2740,7 +2740,7 @@ class Wt extends p {
|
|
|
2740
2740
|
showHidden: i,
|
|
2741
2741
|
withPriceCoefficients: s
|
|
2742
2742
|
},
|
|
2743
|
-
(o) =>
|
|
2743
|
+
(o) => Pe(o.data, (c) => new Y(c))
|
|
2744
2744
|
);
|
|
2745
2745
|
}
|
|
2746
2746
|
}
|
|
@@ -2761,7 +2761,7 @@ class Jt extends p {
|
|
|
2761
2761
|
clientId: e,
|
|
2762
2762
|
withPriceCoefficients: s
|
|
2763
2763
|
},
|
|
2764
|
-
(i) => new
|
|
2764
|
+
(i) => new Y(i.data)
|
|
2765
2765
|
);
|
|
2766
2766
|
}
|
|
2767
2767
|
}
|
|
@@ -2797,10 +2797,10 @@ class Qe {
|
|
|
2797
2797
|
field: this.field,
|
|
2798
2798
|
op: this.op
|
|
2799
2799
|
};
|
|
2800
|
-
return r.value =
|
|
2800
|
+
return r.value = Le(this.value) ? L(this.value, $.getConfig().dateFormats.api) : this.value, r;
|
|
2801
2801
|
}
|
|
2802
2802
|
}
|
|
2803
|
-
class
|
|
2803
|
+
class le {
|
|
2804
2804
|
/**
|
|
2805
2805
|
* Инициализирует экземпляр класса {@link FilterGroup}.
|
|
2806
2806
|
*
|
|
@@ -2820,7 +2820,7 @@ class ue {
|
|
|
2820
2820
|
*/
|
|
2821
2821
|
t(this, "groups");
|
|
2822
2822
|
var e, s;
|
|
2823
|
-
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
|
|
2823
|
+
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))) ?? [];
|
|
2824
2824
|
}
|
|
2825
2825
|
/**
|
|
2826
2826
|
* Преобразует группу фильтров в примитивное представление для API.
|
|
@@ -2830,12 +2830,12 @@ class ue {
|
|
|
2830
2830
|
toPrimitive() {
|
|
2831
2831
|
return {
|
|
2832
2832
|
groupOp: this.groupOp,
|
|
2833
|
-
filters: this.filters.map((r) => r instanceof Qe &&
|
|
2834
|
-
groups: this.groups.map((r) => r instanceof
|
|
2833
|
+
filters: this.filters.map((r) => r instanceof Qe && Ne(r.toPrimitive) ? r.toPrimitive() : r),
|
|
2834
|
+
groups: this.groups.map((r) => r instanceof le ? r.toPrimitive() : r)
|
|
2835
2835
|
};
|
|
2836
2836
|
}
|
|
2837
2837
|
}
|
|
2838
|
-
class
|
|
2838
|
+
class Te extends p {
|
|
2839
2839
|
/**
|
|
2840
2840
|
* Получает пагинированный список данных.
|
|
2841
2841
|
*
|
|
@@ -2852,10 +2852,10 @@ class $e extends p {
|
|
|
2852
2852
|
page: (i == null ? void 0 : i.page) ?? 1,
|
|
2853
2853
|
perPage: (i == null ? void 0 : i.pageSize) ?? 10
|
|
2854
2854
|
};
|
|
2855
|
-
return e && (h.filters = JSON.stringify((e instanceof
|
|
2855
|
+
return e && (h.filters = JSON.stringify((e instanceof le ? e : new le(e)).toPrimitive())), K(s) || (h.sort = V(s) ? s : [s]), o && (h = { ...h, ...o }), this.get(r, h, c, u);
|
|
2856
2856
|
}
|
|
2857
2857
|
}
|
|
2858
|
-
class Vt extends
|
|
2858
|
+
class Vt extends Te {
|
|
2859
2859
|
/**
|
|
2860
2860
|
* Возвращает список шаблонов прайс-листа.
|
|
2861
2861
|
*
|
|
@@ -2868,7 +2868,7 @@ class Vt extends $e {
|
|
|
2868
2868
|
getTemplateList(r, e, s) {
|
|
2869
2869
|
return this.getPaginated("/internal/price/templates", r, e, s, {}, (i) => {
|
|
2870
2870
|
const o = { ...i.data };
|
|
2871
|
-
return o.data = o.data.map((c) => new
|
|
2871
|
+
return o.data = o.data.map((c) => new E(c)), o;
|
|
2872
2872
|
});
|
|
2873
2873
|
}
|
|
2874
2874
|
/**
|
|
@@ -2881,7 +2881,7 @@ class Vt extends $e {
|
|
|
2881
2881
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_create
|
|
2882
2882
|
*/
|
|
2883
2883
|
createTemplate(r, e = {}) {
|
|
2884
|
-
return this.post("/internal/price/templates", r, (s) => new
|
|
2884
|
+
return this.post("/internal/price/templates", r, (s) => new E(s.data), e);
|
|
2885
2885
|
}
|
|
2886
2886
|
/**
|
|
2887
2887
|
* Возвращает данные о шаблоне прайс-листа.
|
|
@@ -2891,7 +2891,7 @@ class Vt extends $e {
|
|
|
2891
2891
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_get
|
|
2892
2892
|
*/
|
|
2893
2893
|
getTemplate(r) {
|
|
2894
|
-
return this.get(`/internal/price/templates/${r}`, {}, (e) => new
|
|
2894
|
+
return this.get(`/internal/price/templates/${r}`, {}, (e) => new E(e.data));
|
|
2895
2895
|
}
|
|
2896
2896
|
/**
|
|
2897
2897
|
* Изменяет данные о шаблоне прайс-листа.
|
|
@@ -2904,7 +2904,7 @@ class Vt extends $e {
|
|
|
2904
2904
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_update
|
|
2905
2905
|
*/
|
|
2906
2906
|
updateTemplate(r, e, s = {}) {
|
|
2907
|
-
return this.patch(`/internal/price/templates/${r}`, e, (i) => new
|
|
2907
|
+
return this.patch(`/internal/price/templates/${r}`, e, (i) => new E(i.data), s);
|
|
2908
2908
|
}
|
|
2909
2909
|
/**
|
|
2910
2910
|
* Удаляет данные о шаблоне прайс-листа.
|
|
@@ -2927,7 +2927,7 @@ class Vt extends $e {
|
|
|
2927
2927
|
return this.get(
|
|
2928
2928
|
`/internal/price/templates/${r}/products`,
|
|
2929
2929
|
{},
|
|
2930
|
-
(e) => e.data.map((s) => new
|
|
2930
|
+
(e) => e.data.map((s) => new Se(s))
|
|
2931
2931
|
);
|
|
2932
2932
|
}
|
|
2933
2933
|
/**
|
|
@@ -2939,7 +2939,7 @@ class Vt extends $e {
|
|
|
2939
2939
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_template_product_get
|
|
2940
2940
|
*/
|
|
2941
2941
|
getProductTemplatePrice(r, e) {
|
|
2942
|
-
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new
|
|
2942
|
+
return this.get(`/internal/price/templates/${r}/products/${e}`, {}, (s) => new Se(s.data));
|
|
2943
2943
|
}
|
|
2944
2944
|
/**
|
|
2945
2945
|
* Сохраняет цену на продукт в шаблоне прайс-листа.
|
|
@@ -2958,7 +2958,7 @@ class Vt extends $e {
|
|
|
2958
2958
|
price_coefficient_id: (i = s.coefficient) == null ? void 0 : i.id,
|
|
2959
2959
|
increase_percent: s.value
|
|
2960
2960
|
},
|
|
2961
|
-
(o) => new
|
|
2961
|
+
(o) => new Se(o.data)
|
|
2962
2962
|
);
|
|
2963
2963
|
}
|
|
2964
2964
|
/**
|
|
@@ -2983,7 +2983,7 @@ class Vt extends $e {
|
|
|
2983
2983
|
return this.get(
|
|
2984
2984
|
`/internal/price/templates/${r}/categories`,
|
|
2985
2985
|
{},
|
|
2986
|
-
(e) => e.data.map((s) => new
|
|
2986
|
+
(e) => e.data.map((s) => new ae(s))
|
|
2987
2987
|
);
|
|
2988
2988
|
}
|
|
2989
2989
|
/**
|
|
@@ -2998,7 +2998,7 @@ class Vt extends $e {
|
|
|
2998
2998
|
return this.get(
|
|
2999
2999
|
`/internal/price/templates/${r}/categories/${e}`,
|
|
3000
3000
|
{},
|
|
3001
|
-
(s) => new
|
|
3001
|
+
(s) => new ae(s.data)
|
|
3002
3002
|
);
|
|
3003
3003
|
}
|
|
3004
3004
|
/**
|
|
@@ -3024,7 +3024,7 @@ class Vt extends $e {
|
|
|
3024
3024
|
},
|
|
3025
3025
|
params: i ? { recursively: !0 } : {}
|
|
3026
3026
|
},
|
|
3027
|
-
(c) => new
|
|
3027
|
+
(c) => new ae(c.data)
|
|
3028
3028
|
);
|
|
3029
3029
|
}
|
|
3030
3030
|
/**
|
|
@@ -3139,7 +3139,7 @@ class Kt extends p {
|
|
|
3139
3139
|
);
|
|
3140
3140
|
}
|
|
3141
3141
|
}
|
|
3142
|
-
class Qt extends
|
|
3142
|
+
class Qt extends Te {
|
|
3143
3143
|
/**
|
|
3144
3144
|
* Возвращает пагинированный список свойств.
|
|
3145
3145
|
*
|
|
@@ -3215,7 +3215,7 @@ class Qt extends $e {
|
|
|
3215
3215
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get_list
|
|
3216
3216
|
*/
|
|
3217
3217
|
getProductProperties(r) {
|
|
3218
|
-
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
3218
|
+
return this.get(`/internal/catalog/products/${r}/properties`, {}, (e) => e.data.map((s) => new B(s)));
|
|
3219
3219
|
}
|
|
3220
3220
|
/**
|
|
3221
3221
|
* Возвращает значение свойства продукта.
|
|
@@ -3225,7 +3225,7 @@ class Qt extends $e {
|
|
|
3225
3225
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_get
|
|
3226
3226
|
*/
|
|
3227
3227
|
getProductProperty(r, e) {
|
|
3228
|
-
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new
|
|
3228
|
+
return this.get(`/internal/catalog/products/${r}/properties/${e}`, {}, (s) => new B(s.data));
|
|
3229
3229
|
}
|
|
3230
3230
|
/**
|
|
3231
3231
|
* Обновляет значение свойства продукта.
|
|
@@ -3236,7 +3236,7 @@ class Qt extends $e {
|
|
|
3236
3236
|
* @see /doc/api/internal#/operations/api_internal_catalog_product_properties_update
|
|
3237
3237
|
*/
|
|
3238
3238
|
updateProductProperty(r, e, s) {
|
|
3239
|
-
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new
|
|
3239
|
+
return this.patch(`/internal/catalog/products/${r}/properties/${e}`, { value: s }, (i) => new B(i.data));
|
|
3240
3240
|
}
|
|
3241
3241
|
/**
|
|
3242
3242
|
* Удаляет значение свойства продукта.
|
|
@@ -3361,7 +3361,7 @@ class Qt extends $e {
|
|
|
3361
3361
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get_list
|
|
3362
3362
|
*/
|
|
3363
3363
|
getCategoryProperties(r) {
|
|
3364
|
-
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new
|
|
3364
|
+
return this.get(`/internal/catalog/categories/${r}/properties`, {}, (e) => e.data.map((s) => new B(s)));
|
|
3365
3365
|
}
|
|
3366
3366
|
/**
|
|
3367
3367
|
* Возвращает значение свойства категории.
|
|
@@ -3371,7 +3371,7 @@ class Qt extends $e {
|
|
|
3371
3371
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_get
|
|
3372
3372
|
*/
|
|
3373
3373
|
getCategoryProperty(r, e) {
|
|
3374
|
-
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new
|
|
3374
|
+
return this.get(`/internal/catalog/categories/${r}/properties/${e}`, {}, (s) => new B(s.data));
|
|
3375
3375
|
}
|
|
3376
3376
|
/**
|
|
3377
3377
|
* Обновляет значение свойства категории.
|
|
@@ -3382,7 +3382,7 @@ class Qt extends $e {
|
|
|
3382
3382
|
* @see /doc/api/internal#/operations/api_internal_catalog_category_properties_update
|
|
3383
3383
|
*/
|
|
3384
3384
|
updateCategoryProperty(r, e, s) {
|
|
3385
|
-
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new
|
|
3385
|
+
return this.patch(`/internal/catalog/categories/${r}/properties/${e}`, { value: s }, (i) => new B(i.data));
|
|
3386
3386
|
}
|
|
3387
3387
|
/**
|
|
3388
3388
|
* Удаляет значение свойства категории.
|
|
@@ -3541,7 +3541,7 @@ function Xe(n) {
|
|
|
3541
3541
|
}
|
|
3542
3542
|
}), r;
|
|
3543
3543
|
}
|
|
3544
|
-
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 || {}),
|
|
3544
|
+
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 || {}), d = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(d || {});
|
|
3545
3545
|
class ut extends P {
|
|
3546
3546
|
}
|
|
3547
3547
|
class Cr extends P {
|
|
@@ -3550,7 +3550,7 @@ class Yt extends P {
|
|
|
3550
3550
|
}
|
|
3551
3551
|
class pt extends P {
|
|
3552
3552
|
}
|
|
3553
|
-
class
|
|
3553
|
+
class we extends b {
|
|
3554
3554
|
/**
|
|
3555
3555
|
* Инициализирует экземпляр класса {@link Currency}.
|
|
3556
3556
|
*
|
|
@@ -3569,15 +3569,15 @@ class Ce extends a {
|
|
|
3569
3569
|
e && (this.signature = e.signature ?? "", this.symbol = e.symbol ?? "");
|
|
3570
3570
|
}
|
|
3571
3571
|
}
|
|
3572
|
-
class
|
|
3572
|
+
class N extends P {
|
|
3573
3573
|
/**
|
|
3574
3574
|
* Возвращает сгенерированную запись-описание физического лица.
|
|
3575
3575
|
*/
|
|
3576
3576
|
static generatePersonItem() {
|
|
3577
|
-
return new
|
|
3577
|
+
return new N({
|
|
3578
3578
|
id: 1,
|
|
3579
3579
|
guid: "",
|
|
3580
|
-
slug:
|
|
3580
|
+
slug: d.Person,
|
|
3581
3581
|
name: ""
|
|
3582
3582
|
});
|
|
3583
3583
|
}
|
|
@@ -3586,7 +3586,7 @@ class ht extends P {
|
|
|
3586
3586
|
}
|
|
3587
3587
|
class gt extends P {
|
|
3588
3588
|
}
|
|
3589
|
-
class
|
|
3589
|
+
class Z extends P {
|
|
3590
3590
|
}
|
|
3591
3591
|
class mt extends P {
|
|
3592
3592
|
}
|
|
@@ -3596,7 +3596,7 @@ class vr extends P {
|
|
|
3596
3596
|
}
|
|
3597
3597
|
class Pr extends P {
|
|
3598
3598
|
}
|
|
3599
|
-
class
|
|
3599
|
+
class Oe extends F {
|
|
3600
3600
|
/**
|
|
3601
3601
|
* Инициализирует экземпляр класса {@link BankAccount}.
|
|
3602
3602
|
*
|
|
@@ -3623,11 +3623,11 @@ class qe extends j {
|
|
|
3623
3623
|
/**
|
|
3624
3624
|
* Данные о валюте.
|
|
3625
3625
|
*/
|
|
3626
|
-
t(this, "currency", new
|
|
3627
|
-
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new
|
|
3626
|
+
t(this, "currency", new we());
|
|
3627
|
+
e && (this.bankName = e.bankName ?? "", this.bic = e.bic ?? "", this.accountNumber = e.accountNumber ?? "", this.correspondentAccount = e.correspondentAccount ?? "", this.currency = new we(e.currency));
|
|
3628
3628
|
}
|
|
3629
3629
|
}
|
|
3630
|
-
class
|
|
3630
|
+
class qe extends b {
|
|
3631
3631
|
/**
|
|
3632
3632
|
* Инициализирует экземпляр класса {@link Contact}.
|
|
3633
3633
|
*
|
|
@@ -3646,7 +3646,7 @@ class Ne extends a {
|
|
|
3646
3646
|
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;
|
|
3647
3647
|
}
|
|
3648
3648
|
}
|
|
3649
|
-
class
|
|
3649
|
+
class U extends qe {
|
|
3650
3650
|
/**
|
|
3651
3651
|
* Инициализирует экземпляр класса {@link ContactPerson}.
|
|
3652
3652
|
*
|
|
@@ -3681,7 +3681,7 @@ class M extends Ne {
|
|
|
3681
3681
|
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;
|
|
3682
3682
|
}
|
|
3683
3683
|
}
|
|
3684
|
-
class Rr extends
|
|
3684
|
+
class Rr extends b {
|
|
3685
3685
|
/**
|
|
3686
3686
|
* Инициализирует экземпляр класса {@link ContragentBase}.
|
|
3687
3687
|
*
|
|
@@ -3690,22 +3690,14 @@ class Rr extends a {
|
|
|
3690
3690
|
// eslint-disable-next-line sonarjs/cognitive-complexity
|
|
3691
3691
|
constructor(e) {
|
|
3692
3692
|
super(e);
|
|
3693
|
-
/**
|
|
3694
|
-
* Данные о менеджере.
|
|
3695
|
-
*/
|
|
3696
|
-
t(this, "manager", new ce());
|
|
3697
3693
|
/**
|
|
3698
3694
|
* Данные об организационно-правовой форме.
|
|
3699
3695
|
*/
|
|
3700
|
-
t(this, "opf",
|
|
3701
|
-
/**
|
|
3702
|
-
* Направление продаж.
|
|
3703
|
-
*/
|
|
3704
|
-
t(this, "salesDirection", new x());
|
|
3696
|
+
t(this, "opf", N.generatePersonItem());
|
|
3705
3697
|
/**
|
|
3706
3698
|
* Группа партнеров (направление деятельности).
|
|
3707
3699
|
*/
|
|
3708
|
-
t(this, "partnerGroup", new
|
|
3700
|
+
t(this, "partnerGroup", new Z());
|
|
3709
3701
|
/**
|
|
3710
3702
|
* Список контактных лиц контрагента.
|
|
3711
3703
|
*/
|
|
@@ -3739,16 +3731,16 @@ class Rr extends a {
|
|
|
3739
3731
|
*/
|
|
3740
3732
|
t(this, "updater");
|
|
3741
3733
|
if (e) {
|
|
3742
|
-
if (this.opf = new
|
|
3734
|
+
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) {
|
|
3743
3735
|
const s = [];
|
|
3744
3736
|
e.contacts.forEach((i) => {
|
|
3745
|
-
s.push(new
|
|
3737
|
+
s.push(new U(i));
|
|
3746
3738
|
}), this.contacts = s;
|
|
3747
3739
|
}
|
|
3748
3740
|
if (e.bankAccounts) {
|
|
3749
3741
|
const s = [];
|
|
3750
3742
|
e.bankAccounts.forEach((i) => {
|
|
3751
|
-
s.push(new
|
|
3743
|
+
s.push(new Oe(i));
|
|
3752
3744
|
}), this.bankAccounts = s;
|
|
3753
3745
|
}
|
|
3754
3746
|
}
|
|
@@ -3833,7 +3825,7 @@ class wt extends Ar {
|
|
|
3833
3825
|
/**
|
|
3834
3826
|
* Страна регистрации юридического лица нерезидента.
|
|
3835
3827
|
*/
|
|
3836
|
-
t(this, "registrationCountry", new
|
|
3828
|
+
t(this, "registrationCountry", new X());
|
|
3837
3829
|
/**
|
|
3838
3830
|
* Регистрационный номер юридического лица нерезидента.
|
|
3839
3831
|
*/
|
|
@@ -3842,10 +3834,10 @@ class wt extends Ar {
|
|
|
3842
3834
|
* Налоговый номер юридического лица нерезидента.
|
|
3843
3835
|
*/
|
|
3844
3836
|
t(this, "taxNumber", "");
|
|
3845
|
-
e && (this.registrationCountry = new
|
|
3837
|
+
e && (this.registrationCountry = new X(e.registrationCountry), this.registrationNumber = e.registrationNumber ?? "", this.taxNumber = e.taxNumber ?? "");
|
|
3846
3838
|
}
|
|
3847
3839
|
}
|
|
3848
|
-
class
|
|
3840
|
+
class Ce {
|
|
3849
3841
|
/**
|
|
3850
3842
|
* Инициализирует и возвращает экземпляр класса с данными о контрагенте.
|
|
3851
3843
|
*
|
|
@@ -3853,18 +3845,18 @@ class ve {
|
|
|
3853
3845
|
*/
|
|
3854
3846
|
static createInstance(r) {
|
|
3855
3847
|
switch (r.opf.slug) {
|
|
3856
|
-
case
|
|
3848
|
+
case d.Ic:
|
|
3857
3849
|
return new Dr(r);
|
|
3858
|
-
case
|
|
3850
|
+
case d.UlR:
|
|
3859
3851
|
return new Ar(r);
|
|
3860
|
-
case
|
|
3852
|
+
case d.UlNr:
|
|
3861
3853
|
return new wt(r);
|
|
3862
3854
|
default:
|
|
3863
3855
|
return new yt(r);
|
|
3864
3856
|
}
|
|
3865
3857
|
}
|
|
3866
3858
|
}
|
|
3867
|
-
class
|
|
3859
|
+
class Ie extends F {
|
|
3868
3860
|
/**
|
|
3869
3861
|
* Инициализирует экземпляр класса {@link ContactRelation}.
|
|
3870
3862
|
*
|
|
@@ -3879,7 +3871,7 @@ class xe extends j {
|
|
|
3879
3871
|
this.isPrimary = e.isPrimary;
|
|
3880
3872
|
}
|
|
3881
3873
|
}
|
|
3882
|
-
class Ct extends
|
|
3874
|
+
class Ct extends U {
|
|
3883
3875
|
/**
|
|
3884
3876
|
* Инициализирует экземпляр класса {@link ContactPersonRelated}.
|
|
3885
3877
|
*
|
|
@@ -3904,10 +3896,10 @@ class Ct extends M {
|
|
|
3904
3896
|
*/
|
|
3905
3897
|
addresses: []
|
|
3906
3898
|
});
|
|
3907
|
-
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new
|
|
3899
|
+
e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((s) => new Ie(s))), e.relations.clients && (this.relations.clients = e.relations.clients.map((s) => new Ie(s))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((s) => new Ie(s))));
|
|
3908
3900
|
}
|
|
3909
3901
|
}
|
|
3910
|
-
class
|
|
3902
|
+
class ve extends Zr {
|
|
3911
3903
|
/**
|
|
3912
3904
|
* Инициализирует экземпляр класса {@link DeliveryAddress}.
|
|
3913
3905
|
*
|
|
@@ -3944,10 +3936,10 @@ class Pe extends Zr {
|
|
|
3944
3936
|
* Признак того, что указанный адрес является адресом транспортной компании.
|
|
3945
3937
|
*/
|
|
3946
3938
|
t(this, "isTransportCompanyAddress");
|
|
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
|
|
3939
|
+
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;
|
|
3948
3940
|
}
|
|
3949
3941
|
}
|
|
3950
|
-
class Ze extends
|
|
3942
|
+
class Ze extends he {
|
|
3951
3943
|
/**
|
|
3952
3944
|
* Инициализирует экземпляр класса {@link Client}.
|
|
3953
3945
|
*
|
|
@@ -4005,7 +3997,7 @@ class Ze extends ge {
|
|
|
4005
3997
|
* @inheritDoc
|
|
4006
3998
|
*/
|
|
4007
3999
|
t(this, "extraData");
|
|
4008
|
-
this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((u) =>
|
|
4000
|
+
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 De(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
|
|
4009
4001
|
}
|
|
4010
4002
|
}
|
|
4011
4003
|
class Xt {
|
|
@@ -4058,11 +4050,11 @@ class Xt {
|
|
|
4058
4050
|
/**
|
|
4059
4051
|
* @inheritDoc
|
|
4060
4052
|
*/
|
|
4061
|
-
t(this, "createdAt", new
|
|
4053
|
+
t(this, "createdAt", new k());
|
|
4062
4054
|
/**
|
|
4063
4055
|
* @inheritDoc
|
|
4064
4056
|
*/
|
|
4065
|
-
t(this, "lastLoginDate", new
|
|
4057
|
+
t(this, "lastLoginDate", new k());
|
|
4066
4058
|
/**
|
|
4067
4059
|
* @inheritDoc
|
|
4068
4060
|
*/
|
|
@@ -4112,8 +4104,8 @@ class Xt {
|
|
|
4112
4104
|
*/
|
|
4113
4105
|
t(this, "isExcludedFromMsCallsToClients");
|
|
4114
4106
|
var e, s, i, o, c, u, h, f;
|
|
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((g) => new Ee(g)), this.region = new
|
|
4116
|
-
createdAt: new
|
|
4107
|
+
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((g) => new Ee(g)), 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((g) => new Ae(g))) ?? [], this.curators = ((i = r == null ? void 0 : r.curators) == null ? void 0 : i.map((g) => new He(g))) ?? [], this.salesDirections = (o = r == null ? void 0 : r.salesDirections) == null ? void 0 : o.map((g) => new _(g)), 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((g) => new Z(g)), this.contact = new qe(r == null ? void 0 : r.contact), this.lastOrder = {
|
|
4108
|
+
createdAt: new k((u = r == null ? void 0 : r.lastOrder) == null ? void 0 : u.createdAt),
|
|
4117
4109
|
creator: (h = r == null ? void 0 : r.lastOrder) == null ? void 0 : h.creator,
|
|
4118
4110
|
isApproved: (f = r == null ? void 0 : r.lastOrder) == null ? void 0 : f.isApproved
|
|
4119
4111
|
}, this.isExcludedFromMsCallsToClients = r == null ? void 0 : r.isExcludedFromMsCallsToClients;
|
|
@@ -4129,7 +4121,7 @@ class Xt {
|
|
|
4129
4121
|
this.cities = [];
|
|
4130
4122
|
break;
|
|
4131
4123
|
case "region":
|
|
4132
|
-
this.region = new
|
|
4124
|
+
this.region = new ce();
|
|
4133
4125
|
break;
|
|
4134
4126
|
case "isActive":
|
|
4135
4127
|
this.isActive = !0;
|
|
@@ -4153,16 +4145,16 @@ class Xt {
|
|
|
4153
4145
|
this.salesDirections = [];
|
|
4154
4146
|
break;
|
|
4155
4147
|
case "contragentType":
|
|
4156
|
-
this.contragentType = new
|
|
4148
|
+
this.contragentType = new N();
|
|
4157
4149
|
break;
|
|
4158
4150
|
case "preferredDeliveryType":
|
|
4159
|
-
this.preferredDeliveryType = new
|
|
4151
|
+
this.preferredDeliveryType = new Q();
|
|
4160
4152
|
break;
|
|
4161
4153
|
case "partnerGroups":
|
|
4162
4154
|
this.partnerGroups = [];
|
|
4163
4155
|
break;
|
|
4164
4156
|
case "contact":
|
|
4165
|
-
this.contact = new
|
|
4157
|
+
this.contact = new qe();
|
|
4166
4158
|
break;
|
|
4167
4159
|
default:
|
|
4168
4160
|
this[r] = void 0;
|
|
@@ -4180,11 +4172,11 @@ class Xt {
|
|
|
4180
4172
|
return Object.keys(this).forEach((c) => {
|
|
4181
4173
|
const u = this[c];
|
|
4182
4174
|
// eslint-disable-next-line prettier/prettier
|
|
4183
|
-
A(u) || C(u) && u.trim().length === 0 ||
|
|
4175
|
+
A(u) || C(u) && u.trim().length === 0 || Ne(u.isNewRec) && u.isNewRec() || (r[c] = u);
|
|
4184
4176
|
}), !((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;
|
|
4185
4177
|
}
|
|
4186
4178
|
}
|
|
4187
|
-
class Tr extends
|
|
4179
|
+
class Tr extends F {
|
|
4188
4180
|
/**
|
|
4189
4181
|
* Инициализирует экземпляр класса {@link OrderShortInfo}.
|
|
4190
4182
|
*
|
|
@@ -4204,10 +4196,10 @@ class Tr extends j {
|
|
|
4204
4196
|
* Признак того, что заказ подтвержден в 1С.
|
|
4205
4197
|
*/
|
|
4206
4198
|
t(this, "isApproved1c");
|
|
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
|
|
4199
|
+
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;
|
|
4208
4200
|
}
|
|
4209
4201
|
}
|
|
4210
|
-
class vt extends
|
|
4202
|
+
class vt extends b {
|
|
4211
4203
|
/**
|
|
4212
4204
|
* Инициализирует экземпляр класса {@link ClientAdditionalData}.
|
|
4213
4205
|
*
|
|
@@ -4244,7 +4236,7 @@ class vt extends a {
|
|
|
4244
4236
|
* @inheritDoc
|
|
4245
4237
|
*/
|
|
4246
4238
|
t(this, "curators");
|
|
4247
|
-
this.contacts = ((s = e.contacts) == null ? void 0 : s.map((u) => new
|
|
4239
|
+
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 _(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 He(u))) ?? void 0;
|
|
4248
4240
|
}
|
|
4249
4241
|
}
|
|
4250
4242
|
class Pt {
|
|
@@ -4314,7 +4306,7 @@ class es {
|
|
|
4314
4306
|
this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
|
|
4315
4307
|
}
|
|
4316
4308
|
}
|
|
4317
|
-
class
|
|
4309
|
+
class x extends Te {
|
|
4318
4310
|
/**
|
|
4319
4311
|
* Преобразует данные о клиенте в данные требуемые для запроса.
|
|
4320
4312
|
*
|
|
@@ -4344,17 +4336,16 @@ class k extends $e {
|
|
|
4344
4336
|
* @param contragent Данные о контрагенте клиента.
|
|
4345
4337
|
*/
|
|
4346
4338
|
static transformContragentClientDataToRequest(r) {
|
|
4347
|
-
var c, u, h, f
|
|
4339
|
+
var c, u, h, f;
|
|
4348
4340
|
let e;
|
|
4349
4341
|
const s = r, i = r, o = r;
|
|
4350
4342
|
switch (r.opf.slug) {
|
|
4351
|
-
case
|
|
4343
|
+
case d.Ic:
|
|
4352
4344
|
e = {
|
|
4353
4345
|
opf: s.opf.slug,
|
|
4354
4346
|
name: s.name,
|
|
4355
4347
|
alternative_name: s.alternativeName,
|
|
4356
4348
|
partner_group_id: (c = s.partnerGroup) == null ? void 0 : c.id,
|
|
4357
|
-
manager_id: (u = s.manager) == null ? void 0 : u.id,
|
|
4358
4349
|
comment: s.comment,
|
|
4359
4350
|
inn: s.inn,
|
|
4360
4351
|
okpo: s.okpo,
|
|
@@ -4366,13 +4357,12 @@ class k extends $e {
|
|
|
4366
4357
|
actual_address: s.actualAddress
|
|
4367
4358
|
};
|
|
4368
4359
|
break;
|
|
4369
|
-
case
|
|
4360
|
+
case d.UlR:
|
|
4370
4361
|
e = {
|
|
4371
4362
|
opf: i.opf.slug,
|
|
4372
4363
|
name: i.name,
|
|
4373
4364
|
alternative_name: i.alternativeName,
|
|
4374
|
-
partner_group_id: (
|
|
4375
|
-
manager_id: (f = i.manager) == null ? void 0 : f.id,
|
|
4365
|
+
partner_group_id: (u = i.partnerGroup) == null ? void 0 : u.id,
|
|
4376
4366
|
comment: i.comment,
|
|
4377
4367
|
inn: i.inn,
|
|
4378
4368
|
kpp: i.kpp,
|
|
@@ -4385,13 +4375,12 @@ class k extends $e {
|
|
|
4385
4375
|
actual_address: i.actualAddress
|
|
4386
4376
|
};
|
|
4387
4377
|
break;
|
|
4388
|
-
case
|
|
4378
|
+
case d.UlNr:
|
|
4389
4379
|
e = {
|
|
4390
4380
|
opf: o.opf.slug,
|
|
4391
4381
|
name: o.name,
|
|
4392
4382
|
alternative_name: o.alternativeName,
|
|
4393
|
-
partner_group_id: (
|
|
4394
|
-
manager_id: (b = o.manager) == null ? void 0 : b.id,
|
|
4383
|
+
partner_group_id: (h = o.partnerGroup) == null ? void 0 : h.id,
|
|
4395
4384
|
comment: o.comment,
|
|
4396
4385
|
director_name: o.directorName,
|
|
4397
4386
|
director_position: o.directorPosition,
|
|
@@ -4409,8 +4398,7 @@ class k extends $e {
|
|
|
4409
4398
|
opf: r.opf.slug,
|
|
4410
4399
|
name: r.name,
|
|
4411
4400
|
alternative_name: r.alternativeName,
|
|
4412
|
-
partner_group_id: (
|
|
4413
|
-
manager_id: (_ = r.manager) == null ? void 0 : _.id,
|
|
4401
|
+
partner_group_id: (f = r.partnerGroup) == null ? void 0 : f.id,
|
|
4414
4402
|
comment: r.comment
|
|
4415
4403
|
};
|
|
4416
4404
|
break;
|
|
@@ -4474,7 +4462,7 @@ class k extends $e {
|
|
|
4474
4462
|
getClientsList(r, e, s, i) {
|
|
4475
4463
|
return this.getPaginated("/internal/clients", r, e, s, i, (o) => {
|
|
4476
4464
|
const c = { ...o.data };
|
|
4477
|
-
return c.data = c.data.map((u) => new
|
|
4465
|
+
return c.data = c.data.map((u) => new he(u)), c;
|
|
4478
4466
|
});
|
|
4479
4467
|
}
|
|
4480
4468
|
/**
|
|
@@ -4524,7 +4512,7 @@ class k extends $e {
|
|
|
4524
4512
|
* @see /doc/api/internal#/Клиенты/api_internal_client_create
|
|
4525
4513
|
*/
|
|
4526
4514
|
createClientCommonData(r, e = {}) {
|
|
4527
|
-
return this.post("/internal/clients",
|
|
4515
|
+
return this.post("/internal/clients", x.transformClientDataToRequest(r), (s) => new Ze(s.data), e);
|
|
4528
4516
|
}
|
|
4529
4517
|
/**
|
|
4530
4518
|
* Обновляет данные указанного клиента.
|
|
@@ -4534,7 +4522,7 @@ class k extends $e {
|
|
|
4534
4522
|
* @see /doc/api/internal#/Клиенты/api_internal_client_change
|
|
4535
4523
|
*/
|
|
4536
4524
|
updateClientCommonData(r, e = {}) {
|
|
4537
|
-
return this.patch(`/internal/clients/${r.id}`,
|
|
4525
|
+
return this.patch(`/internal/clients/${r.id}`, x.transformClientDataToRequest(r), void 0, e);
|
|
4538
4526
|
}
|
|
4539
4527
|
/**
|
|
4540
4528
|
* Обновляет данные "Не беспокоить" указанного клиента.
|
|
@@ -4664,8 +4652,8 @@ class k extends $e {
|
|
|
4664
4652
|
createContragentClientData(r, e, s = {}) {
|
|
4665
4653
|
return this.post(
|
|
4666
4654
|
`/internal/clients/${r}/contragents`,
|
|
4667
|
-
|
|
4668
|
-
(i) =>
|
|
4655
|
+
x.transformContragentClientDataToRequest(e),
|
|
4656
|
+
(i) => Ce.createInstance(i.data),
|
|
4669
4657
|
s
|
|
4670
4658
|
);
|
|
4671
4659
|
}
|
|
@@ -4680,8 +4668,8 @@ class k extends $e {
|
|
|
4680
4668
|
updateContragentClientData(r, e, s = {}) {
|
|
4681
4669
|
return this.patch(
|
|
4682
4670
|
`/internal/clients/${r}/contragents/${e.id}`,
|
|
4683
|
-
|
|
4684
|
-
(i) =>
|
|
4671
|
+
x.transformContragentClientDataToRequest(e),
|
|
4672
|
+
(i) => Ce.createInstance(i.data),
|
|
4685
4673
|
s
|
|
4686
4674
|
);
|
|
4687
4675
|
}
|
|
@@ -4706,8 +4694,8 @@ class k extends $e {
|
|
|
4706
4694
|
createClientDeliveryAddress(r, e, s = {}) {
|
|
4707
4695
|
return this.post(
|
|
4708
4696
|
`/internal/clients/${r}/delivery-addresses`,
|
|
4709
|
-
|
|
4710
|
-
(i) => new
|
|
4697
|
+
x.transformClientDeliveryAddressToRequest(e),
|
|
4698
|
+
(i) => new ve(i.data),
|
|
4711
4699
|
s
|
|
4712
4700
|
);
|
|
4713
4701
|
}
|
|
@@ -4722,8 +4710,8 @@ class k extends $e {
|
|
|
4722
4710
|
updateClientDeliveryAddress(r, e, s = {}) {
|
|
4723
4711
|
return this.patch(
|
|
4724
4712
|
`/internal/clients/${r}/delivery-addresses/${e.id}`,
|
|
4725
|
-
|
|
4726
|
-
(i) => new
|
|
4713
|
+
x.transformClientDeliveryAddressToRequest(e),
|
|
4714
|
+
(i) => new ve(i.data),
|
|
4727
4715
|
s
|
|
4728
4716
|
);
|
|
4729
4717
|
}
|
|
@@ -4749,8 +4737,8 @@ class k extends $e {
|
|
|
4749
4737
|
createContragentBankAccount(r, e, s, i = {}) {
|
|
4750
4738
|
return this.post(
|
|
4751
4739
|
`/internal/clients/${r}/contragents/${e}/bank-accounts`,
|
|
4752
|
-
|
|
4753
|
-
(o) => new
|
|
4740
|
+
x.transformClientContragentBankAccountToRequest(s),
|
|
4741
|
+
(o) => new Oe(o.data),
|
|
4754
4742
|
i
|
|
4755
4743
|
);
|
|
4756
4744
|
}
|
|
@@ -4766,8 +4754,8 @@ class k extends $e {
|
|
|
4766
4754
|
updateContragentBankAccount(r, e, s, i = {}) {
|
|
4767
4755
|
return this.patch(
|
|
4768
4756
|
`/internal/clients/${r}/contragents/${e}/bank-accounts/${s.id}`,
|
|
4769
|
-
|
|
4770
|
-
(o) => new
|
|
4757
|
+
x.transformClientContragentBankAccountToRequest(s),
|
|
4758
|
+
(o) => new Oe(o.data),
|
|
4771
4759
|
i
|
|
4772
4760
|
);
|
|
4773
4761
|
}
|
|
@@ -4823,7 +4811,7 @@ class k extends $e {
|
|
|
4823
4811
|
comment: e.comment,
|
|
4824
4812
|
not_disturb: e.notDisturb
|
|
4825
4813
|
},
|
|
4826
|
-
(i) => new
|
|
4814
|
+
(i) => new U(i.data),
|
|
4827
4815
|
s
|
|
4828
4816
|
);
|
|
4829
4817
|
}
|
|
@@ -4960,7 +4948,7 @@ class k extends $e {
|
|
|
4960
4948
|
comment: e.comment,
|
|
4961
4949
|
...s
|
|
4962
4950
|
};
|
|
4963
|
-
return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (h) => new
|
|
4951
|
+
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, (h) => new U(h.data), i);
|
|
4964
4952
|
}
|
|
4965
4953
|
/**
|
|
4966
4954
|
* Устанавливает признак основного контактного лица.
|
|
@@ -4989,7 +4977,7 @@ class k extends $e {
|
|
|
4989
4977
|
return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
|
|
4990
4978
|
}
|
|
4991
4979
|
}
|
|
4992
|
-
const
|
|
4980
|
+
const W = class W extends p {
|
|
4993
4981
|
/**
|
|
4994
4982
|
* Инициализирует экземпляр класса {@link HttpCachedRequester}.
|
|
4995
4983
|
*/
|
|
@@ -5009,7 +4997,7 @@ const V = class V extends p {
|
|
|
5009
4997
|
*/
|
|
5010
4998
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
5011
4999
|
static getCachedResponse(e) {
|
|
5012
|
-
const s =
|
|
5000
|
+
const s = W.responseDataCache.get(e);
|
|
5013
5001
|
if (s && s.validTo > /* @__PURE__ */ new Date())
|
|
5014
5002
|
return s.val;
|
|
5015
5003
|
}
|
|
@@ -5020,7 +5008,7 @@ const V = class V extends p {
|
|
|
5020
5008
|
* @param data Данные для кэширования.
|
|
5021
5009
|
*/
|
|
5022
5010
|
cacheResponse(e, s) {
|
|
5023
|
-
|
|
5011
|
+
W.responseDataCache.set(e, {
|
|
5024
5012
|
validTo: qr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
|
|
5025
5013
|
val: s
|
|
5026
5014
|
});
|
|
@@ -5036,9 +5024,9 @@ const V = class V extends p {
|
|
|
5036
5024
|
*/
|
|
5037
5025
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
|
|
5038
5026
|
getTypedDataArrayRequester(e, s, i = !1, o = {}) {
|
|
5039
|
-
const c = s + (
|
|
5027
|
+
const c = s + (K(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? W.getCachedResponse(c) : void 0;
|
|
5040
5028
|
return u ? Promise.resolve(u) : this.get(s, o).then((h) => {
|
|
5041
|
-
const f = h.map((g) =>
|
|
5029
|
+
const f = h.map((g) => Me.instanceInitializer(e, g));
|
|
5042
5030
|
return i && f && this.cacheResponse(s, f), f;
|
|
5043
5031
|
});
|
|
5044
5032
|
}
|
|
@@ -5046,8 +5034,8 @@ const V = class V extends p {
|
|
|
5046
5034
|
/**
|
|
5047
5035
|
* Кэш результатов запросов.
|
|
5048
5036
|
*/
|
|
5049
|
-
t(
|
|
5050
|
-
let
|
|
5037
|
+
t(W, "responseDataCache", /* @__PURE__ */ new Map());
|
|
5038
|
+
let ue = W;
|
|
5051
5039
|
class rs extends p {
|
|
5052
5040
|
/**
|
|
5053
5041
|
* Выполняет проверку занят ли указанный номер телефона.
|
|
@@ -5146,20 +5134,20 @@ class ss {
|
|
|
5146
5134
|
return {
|
|
5147
5135
|
// 'Следующий рабочий день' - это значение по-умолчанию
|
|
5148
5136
|
nextWorkingDay: { label: "Следующий рабочий день", from: Hr(r), to: Br(r) },
|
|
5149
|
-
today: { label: "Сегодня", from:
|
|
5137
|
+
today: { label: "Сегодня", from: de(), to: Gr() },
|
|
5150
5138
|
yesterday: { label: "Вчера", from: jr(), to: Mr() },
|
|
5151
5139
|
tomorrow: { label: "Завтра", from: Fr(), to: Ur() }
|
|
5152
5140
|
};
|
|
5153
5141
|
}
|
|
5154
5142
|
}
|
|
5155
|
-
const
|
|
5143
|
+
const J = class J {
|
|
5156
5144
|
/**
|
|
5157
5145
|
* Устанавливает список единиц измерения линейной величины.
|
|
5158
5146
|
*
|
|
5159
5147
|
* @param linearValues Список единиц измерения линейной величины.
|
|
5160
5148
|
*/
|
|
5161
5149
|
static setLinearValues(r) {
|
|
5162
|
-
|
|
5150
|
+
J.linearValues = r;
|
|
5163
5151
|
}
|
|
5164
5152
|
/**
|
|
5165
5153
|
* Возвращает признак, что указанный товар имеет линейную единицу измерения.
|
|
@@ -5167,7 +5155,7 @@ const K = class K {
|
|
|
5167
5155
|
* @param product Данные о товаре для которого нужно проверить линейность его единицы измерения.
|
|
5168
5156
|
*/
|
|
5169
5157
|
static productIsMeasurable(r) {
|
|
5170
|
-
return
|
|
5158
|
+
return J.linearValues.includes(r.unit);
|
|
5171
5159
|
}
|
|
5172
5160
|
/**
|
|
5173
5161
|
* Возвращает кратность количества для указанного товара.
|
|
@@ -5176,7 +5164,7 @@ const K = class K {
|
|
|
5176
5164
|
*/
|
|
5177
5165
|
static getProductMultiplicity(r) {
|
|
5178
5166
|
var e, s;
|
|
5179
|
-
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !
|
|
5167
|
+
return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((s = r.properties) != null && s.minCount) && !J.productIsMeasurable(r) ? r.properties.minCount : 1;
|
|
5180
5168
|
}
|
|
5181
5169
|
/**
|
|
5182
5170
|
* Возвращает кратность длины для указанного товара.
|
|
@@ -5191,14 +5179,14 @@ const K = class K {
|
|
|
5191
5179
|
/**
|
|
5192
5180
|
* Список единиц измерения линейной величины.
|
|
5193
5181
|
*/
|
|
5194
|
-
t(
|
|
5195
|
-
let er =
|
|
5182
|
+
t(J, "linearValues", ["пог.м.", "м.", "м2"]);
|
|
5183
|
+
let er = J;
|
|
5196
5184
|
class is {
|
|
5197
5185
|
/**
|
|
5198
5186
|
* Генерирует и возвращает данные-заглушку неопределённого менеджера.
|
|
5199
5187
|
*/
|
|
5200
5188
|
static generateUndefinedManagerInstance() {
|
|
5201
|
-
return new
|
|
5189
|
+
return new Ae({ id: 0, name: "- Не назначен -", isActive: !0, guid: "-undefined-" });
|
|
5202
5190
|
}
|
|
5203
5191
|
/**
|
|
5204
5192
|
* Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённом менеджере.
|
|
@@ -5209,15 +5197,15 @@ class is {
|
|
|
5209
5197
|
return r.id === 0 && r.guid === "-undefined-";
|
|
5210
5198
|
}
|
|
5211
5199
|
}
|
|
5212
|
-
class Rt extends
|
|
5200
|
+
class Rt extends ue {
|
|
5213
5201
|
/**
|
|
5214
5202
|
* Возвращает {@link Promise} для получения справочника списка менеджеров.
|
|
5215
5203
|
*/
|
|
5216
5204
|
async getManagers() {
|
|
5217
|
-
const r = "/internal/managers", e =
|
|
5205
|
+
const r = "/internal/managers", e = ue.getCachedResponse(r);
|
|
5218
5206
|
if (e)
|
|
5219
5207
|
return e;
|
|
5220
|
-
const i = (await this.get(r)).data.map((o) =>
|
|
5208
|
+
const i = (await this.get(r)).data.map((o) => Me.instanceInitializer(Ae, o));
|
|
5221
5209
|
return this.cacheResponse(r, i), i;
|
|
5222
5210
|
}
|
|
5223
5211
|
}
|
|
@@ -5270,19 +5258,19 @@ class $r extends Tr {
|
|
|
5270
5258
|
* Признак того, что заказ создан из товаров, которые имеют признак "Нет в наличии".
|
|
5271
5259
|
*/
|
|
5272
5260
|
t(this, "isNotInStock");
|
|
5273
|
-
this.client = new
|
|
5261
|
+
this.client = new he(e == null ? void 0 : e.client), this.payment = {
|
|
5274
5262
|
type: ((s = e == null ? void 0 : e.payment) == null ? void 0 : s.type) ?? -1,
|
|
5275
5263
|
status: ((i = e == null ? void 0 : e.payment) == null ? void 0 : i.status) ?? -1,
|
|
5276
5264
|
onlinePaymentLink: (o = e == null ? void 0 : e.payment) == null ? void 0 : o.onlinePaymentLink
|
|
5277
5265
|
}, this.delivery = {
|
|
5278
5266
|
type: ((c = e == null ? void 0 : e.delivery) == null ? void 0 : c.type) ?? -1,
|
|
5279
5267
|
date: C((u = e == null ? void 0 : e.delivery) == null ? void 0 : u.date) ? v(e.delivery.date) : ((h = e == null ? void 0 : e.delivery) == null ? void 0 : h.date) ?? /* @__PURE__ */ new Date(),
|
|
5280
|
-
address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new
|
|
5281
|
-
warehouse: (g = e == null ? void 0 : e.delivery) != null && g.warehouse ? new
|
|
5282
|
-
}, this.attachedUser = new
|
|
5268
|
+
address: (f = e == null ? void 0 : e.delivery) != null && f.address ? new ve(e.delivery.address) : void 0,
|
|
5269
|
+
warehouse: (g = e == null ? void 0 : e.delivery) != null && g.warehouse ? new De(e.delivery.warehouse) : void 0
|
|
5270
|
+
}, this.attachedUser = new q(e == null ? void 0 : e.attachedUser), this.status = (e == null ? void 0 : e.status) ?? 0, this.salesDirection = new _(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;
|
|
5283
5271
|
}
|
|
5284
5272
|
}
|
|
5285
|
-
class Dt extends
|
|
5273
|
+
class Dt extends F {
|
|
5286
5274
|
/**
|
|
5287
5275
|
* Инициализирует экземпляр класса {@link OrderProduct}.
|
|
5288
5276
|
*
|
|
@@ -5362,7 +5350,7 @@ class Dt extends j {
|
|
|
5362
5350
|
* который соответствует указанной ширине. Количество не ограничено.
|
|
5363
5351
|
*/
|
|
5364
5352
|
t(this, "sawing");
|
|
5365
|
-
this.product = new
|
|
5353
|
+
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;
|
|
5366
5354
|
}
|
|
5367
5355
|
}
|
|
5368
5356
|
class rr extends $r {
|
|
@@ -5405,10 +5393,10 @@ class rr extends $r {
|
|
|
5405
5393
|
* Признак, что разрешена передача заказа в работу без оплаты.
|
|
5406
5394
|
*/
|
|
5407
5395
|
t(this, "isAllowProcessingWithoutPayment");
|
|
5408
|
-
this.products = (e.products ?? []).map((s) => new Dt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ?
|
|
5396
|
+
this.products = (e.products ?? []).map((s) => new Dt(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;
|
|
5409
5397
|
}
|
|
5410
5398
|
}
|
|
5411
|
-
class ns extends
|
|
5399
|
+
class ns extends Te {
|
|
5412
5400
|
/**
|
|
5413
5401
|
* Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
|
|
5414
5402
|
*
|
|
@@ -5472,7 +5460,7 @@ class ns extends $e {
|
|
|
5472
5460
|
);
|
|
5473
5461
|
}
|
|
5474
5462
|
}
|
|
5475
|
-
class
|
|
5463
|
+
class xe {
|
|
5476
5464
|
/**
|
|
5477
5465
|
* Инициализирует экземпляр класса {@link PriceAnalyze}.
|
|
5478
5466
|
*
|
|
@@ -5499,10 +5487,10 @@ class ke {
|
|
|
5499
5487
|
* Источник клиентской цены.
|
|
5500
5488
|
*/
|
|
5501
5489
|
t(this, "source");
|
|
5502
|
-
this.client = new
|
|
5490
|
+
this.client = new he(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;
|
|
5503
5491
|
}
|
|
5504
5492
|
}
|
|
5505
|
-
const
|
|
5493
|
+
const ke = (n) => {
|
|
5506
5494
|
var r, e, s, i, o;
|
|
5507
5495
|
return n ? cr(
|
|
5508
5496
|
{
|
|
@@ -5513,7 +5501,7 @@ const Le = (n) => {
|
|
|
5513
5501
|
salesDirections: (o = n.salesDirections) == null ? void 0 : o.map((c) => c.id),
|
|
5514
5502
|
hideNotActive: n.hideNotActive
|
|
5515
5503
|
},
|
|
5516
|
-
(c) => A(c) || (
|
|
5504
|
+
(c) => A(c) || (V(c) || lr(c)) && K(c)
|
|
5517
5505
|
) : {};
|
|
5518
5506
|
}, tr = (n) => {
|
|
5519
5507
|
const r = {};
|
|
@@ -5534,9 +5522,9 @@ class os extends p {
|
|
|
5534
5522
|
`/internal/price/products/${r}/analyze`,
|
|
5535
5523
|
{
|
|
5536
5524
|
...tr(e),
|
|
5537
|
-
filters:
|
|
5525
|
+
filters: ke(s)
|
|
5538
5526
|
},
|
|
5539
|
-
(i) => i.data.map((o) => new
|
|
5527
|
+
(i) => i.data.map((o) => new xe(o))
|
|
5540
5528
|
);
|
|
5541
5529
|
}
|
|
5542
5530
|
/**
|
|
@@ -5553,9 +5541,9 @@ class os extends p {
|
|
|
5553
5541
|
`/internal/price/categories/${r}/analyze`,
|
|
5554
5542
|
{
|
|
5555
5543
|
...tr(e),
|
|
5556
|
-
filters:
|
|
5544
|
+
filters: ke(s)
|
|
5557
5545
|
},
|
|
5558
|
-
(i) => i.data.map((o) => new
|
|
5546
|
+
(i) => i.data.map((o) => new xe(o))
|
|
5559
5547
|
);
|
|
5560
5548
|
}
|
|
5561
5549
|
/**
|
|
@@ -5574,9 +5562,9 @@ class os extends p {
|
|
|
5574
5562
|
`/internal/price/categories/${r}/analyze/square`,
|
|
5575
5563
|
{
|
|
5576
5564
|
...e,
|
|
5577
|
-
filters:
|
|
5565
|
+
filters: ke(s)
|
|
5578
5566
|
},
|
|
5579
|
-
(i) => i.data.map((o) => new
|
|
5567
|
+
(i) => i.data.map((o) => new xe(o))
|
|
5580
5568
|
);
|
|
5581
5569
|
}
|
|
5582
5570
|
}
|
|
@@ -5627,7 +5615,7 @@ class At {
|
|
|
5627
5615
|
* @inheritDoc
|
|
5628
5616
|
*/
|
|
5629
5617
|
t(this, "currency");
|
|
5630
|
-
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
|
|
5618
|
+
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;
|
|
5631
5619
|
}
|
|
5632
5620
|
}
|
|
5633
5621
|
class Tt extends oe {
|
|
@@ -5642,7 +5630,7 @@ class Tt extends oe {
|
|
|
5642
5630
|
* @inheritDoc
|
|
5643
5631
|
*/
|
|
5644
5632
|
t(this, "history");
|
|
5645
|
-
this.history =
|
|
5633
|
+
this.history = Pe(e.history, (s) => new At(s));
|
|
5646
5634
|
}
|
|
5647
5635
|
}
|
|
5648
5636
|
class cs extends p {
|
|
@@ -5656,16 +5644,16 @@ class cs extends p {
|
|
|
5656
5644
|
getProductPriceHistory(r) {
|
|
5657
5645
|
var o, c, u, h, f;
|
|
5658
5646
|
const e = $.getConfig().dateFormats.api, s = cr(
|
|
5659
|
-
|
|
5647
|
+
fe(r, {
|
|
5660
5648
|
costDate: {
|
|
5661
|
-
from:
|
|
5662
|
-
to:
|
|
5649
|
+
from: Le((o = r.costDate) == null ? void 0 : o.from) ? L(r.costDate.from, e) : (c = r.costDate) == null ? void 0 : c.from,
|
|
5650
|
+
to: Le((u = r.costDate) == null ? void 0 : u.to) ? L(r.costDate.to, e) : (h = r.costDate) == null ? void 0 : h.to
|
|
5663
5651
|
}
|
|
5664
5652
|
}),
|
|
5665
|
-
(g) => A(g) || (
|
|
5653
|
+
(g) => A(g) || (V(g) || lr(g)) && K(g)
|
|
5666
5654
|
), i = ((f = r.product) == null ? void 0 : f[0]) ?? 0;
|
|
5667
5655
|
return delete s.product, this.get(`/internal/price/products/${i}/history`, s).then((g) => [
|
|
5668
|
-
new Tt(
|
|
5656
|
+
new Tt(fe(g[0], { history: g }))
|
|
5669
5657
|
]);
|
|
5670
5658
|
}
|
|
5671
5659
|
}
|
|
@@ -5733,7 +5721,7 @@ class ls extends p {
|
|
|
5733
5721
|
});
|
|
5734
5722
|
}
|
|
5735
5723
|
}
|
|
5736
|
-
class T extends
|
|
5724
|
+
class T extends ue {
|
|
5737
5725
|
/**
|
|
5738
5726
|
* Возвращает {@link Promise} для получения данных указанного справочника.
|
|
5739
5727
|
*
|
|
@@ -5767,20 +5755,20 @@ class T extends pe {
|
|
|
5767
5755
|
* Возвращает {@link Promise} для получения справочника списка валют.
|
|
5768
5756
|
*/
|
|
5769
5757
|
getCurrency() {
|
|
5770
|
-
return this.getTypedDataArrayRequester(
|
|
5758
|
+
return this.getTypedDataArrayRequester(we, "/public/references/currency", !0);
|
|
5771
5759
|
}
|
|
5772
5760
|
/**
|
|
5773
5761
|
* Возвращает {@link Promise} для получения справочника данных
|
|
5774
5762
|
* групп партнеров (направлений деятельности).
|
|
5775
5763
|
*/
|
|
5776
5764
|
getPartnerGroup() {
|
|
5777
|
-
return this.getTypedDataArrayRequester(
|
|
5765
|
+
return this.getTypedDataArrayRequester(Z, "/internal/references/partner-group", !0);
|
|
5778
5766
|
}
|
|
5779
5767
|
/**
|
|
5780
5768
|
* Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
|
|
5781
5769
|
*/
|
|
5782
5770
|
getOpf() {
|
|
5783
|
-
return this.getTypedDataArrayRequester(
|
|
5771
|
+
return this.getTypedDataArrayRequester(N, "/public/references/opf", !0);
|
|
5784
5772
|
}
|
|
5785
5773
|
/**
|
|
5786
5774
|
* Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
|
|
@@ -5810,7 +5798,7 @@ class T extends pe {
|
|
|
5810
5798
|
* Возвращает {@link Promise} для получения справочника данных направлений продаж.
|
|
5811
5799
|
*/
|
|
5812
5800
|
getSalesDirections() {
|
|
5813
|
-
return this.getTypedDataArrayRequester(
|
|
5801
|
+
return this.getTypedDataArrayRequester(_, "/public/references/sales-direction", !0);
|
|
5814
5802
|
}
|
|
5815
5803
|
/**
|
|
5816
5804
|
* Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
|
|
@@ -5832,7 +5820,7 @@ class T extends pe {
|
|
|
5832
5820
|
* @param term Терм поиска.
|
|
5833
5821
|
*/
|
|
5834
5822
|
searchRegion(r) {
|
|
5835
|
-
return this.getTypedDataArrayRequester(
|
|
5823
|
+
return this.getTypedDataArrayRequester(ce, `/internal/references/region-with-country/search?term=${r}`);
|
|
5836
5824
|
}
|
|
5837
5825
|
/**
|
|
5838
5826
|
* Выполняет поиск данных о странах по терму в названии.
|
|
@@ -5840,19 +5828,19 @@ class T extends pe {
|
|
|
5840
5828
|
* @param term Терм поиска.
|
|
5841
5829
|
*/
|
|
5842
5830
|
searchCountry(r) {
|
|
5843
|
-
return this.getTypedDataArrayRequester(
|
|
5831
|
+
return this.getTypedDataArrayRequester(X, `/internal/references/country/search?term=${r}`);
|
|
5844
5832
|
}
|
|
5845
5833
|
/**
|
|
5846
5834
|
* Возвращает {@link Promise} для получения справочника типов доставки.
|
|
5847
5835
|
*/
|
|
5848
5836
|
getDeliveryTypes() {
|
|
5849
|
-
return this.getTypedDataArrayRequester(
|
|
5837
|
+
return this.getTypedDataArrayRequester(Q, "/internal/references/delivery-type", !0);
|
|
5850
5838
|
}
|
|
5851
5839
|
/**
|
|
5852
5840
|
* Возвращает {@link Promise} для получения справочника складов.
|
|
5853
5841
|
*/
|
|
5854
5842
|
getWarehouses() {
|
|
5855
|
-
return this.getTypedDataArrayRequester(
|
|
5843
|
+
return this.getTypedDataArrayRequester(De, "/public/references/warehouse", !0);
|
|
5856
5844
|
}
|
|
5857
5845
|
/**
|
|
5858
5846
|
* Возвращает {@link Promise} для получения справочника типов свойств.
|
|
@@ -5864,7 +5852,7 @@ class T extends pe {
|
|
|
5864
5852
|
* Возвращает {@link Promise} для получения справочника коэффициентов цен.
|
|
5865
5853
|
*/
|
|
5866
5854
|
getPriceCoefficients() {
|
|
5867
|
-
return this.getTypedDataArrayRequester(
|
|
5855
|
+
return this.getTypedDataArrayRequester(Re, "/internal/references/price-coefficient", !0);
|
|
5868
5856
|
}
|
|
5869
5857
|
/**
|
|
5870
5858
|
* Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
|
|
@@ -5873,8 +5861,8 @@ class T extends pe {
|
|
|
5873
5861
|
return this.getTypedDataArrayRequester(ft, "/public/references/product-file-type", !0);
|
|
5874
5862
|
}
|
|
5875
5863
|
}
|
|
5876
|
-
const D =
|
|
5877
|
-
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), h = y(void 0), f = y(void 0), g = y(void 0),
|
|
5864
|
+
const D = ee("__references_private", () => {
|
|
5865
|
+
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), h = y(void 0), f = y(void 0), g = y(void 0), a = y(void 0), re = y(void 0), te = y(void 0), M = y(void 0), j = y(void 0), $e = y(void 0), l = y(void 0);
|
|
5878
5866
|
return {
|
|
5879
5867
|
/**
|
|
5880
5868
|
* Список загружаемых/загруженных на данный момент значений.
|
|
@@ -5923,33 +5911,33 @@ const D = te("__references_private", () => {
|
|
|
5923
5911
|
/**
|
|
5924
5912
|
* Справочник типов файлов продукктов/категорий.
|
|
5925
5913
|
*/
|
|
5926
|
-
productFileTypeReference:
|
|
5914
|
+
productFileTypeReference: a,
|
|
5927
5915
|
/**
|
|
5928
5916
|
* Справочник типов ресурсов.
|
|
5929
5917
|
*/
|
|
5930
|
-
resourceTypesReference:
|
|
5918
|
+
resourceTypesReference: re,
|
|
5931
5919
|
/**
|
|
5932
5920
|
* Справочник направлений продаж.
|
|
5933
5921
|
*/
|
|
5934
|
-
salesDirectionsReference:
|
|
5922
|
+
salesDirectionsReference: te,
|
|
5935
5923
|
/**
|
|
5936
5924
|
* Справочник источников первичного интереса.
|
|
5937
5925
|
*/
|
|
5938
|
-
sourcePrimaryInterestReference:
|
|
5926
|
+
sourcePrimaryInterestReference: M,
|
|
5939
5927
|
/**
|
|
5940
5928
|
* Справочник складов.
|
|
5941
5929
|
*/
|
|
5942
|
-
warehousesReference:
|
|
5930
|
+
warehousesReference: j,
|
|
5943
5931
|
/**
|
|
5944
5932
|
* Справочник типов свойств.
|
|
5945
5933
|
*/
|
|
5946
|
-
propertyTypesReference:
|
|
5934
|
+
propertyTypesReference: $e,
|
|
5947
5935
|
/**
|
|
5948
5936
|
* Справочник коэффициентов цен.
|
|
5949
5937
|
*/
|
|
5950
5938
|
priceCoefficientsReference: l
|
|
5951
5939
|
};
|
|
5952
|
-
}), us =
|
|
5940
|
+
}), us = ee("references", () => {
|
|
5953
5941
|
const n = R(() => {
|
|
5954
5942
|
const l = D();
|
|
5955
5943
|
return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, p.getInstance(T).getChannelPrimaryInterest().then((m) => {
|
|
@@ -6005,32 +5993,32 @@ const D = te("__references_private", () => {
|
|
|
6005
5993
|
return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, p.getInstance(T).getSalesDirections().then((m) => {
|
|
6006
5994
|
l.salesDirectionsReference = m;
|
|
6007
5995
|
}).catch(w)), l.salesDirectionsReference;
|
|
6008
|
-
}),
|
|
5996
|
+
}), a = R(() => {
|
|
6009
5997
|
const l = D();
|
|
6010
5998
|
return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, p.getInstance(T).getSourcePrimaryInterest().then((m) => {
|
|
6011
5999
|
l.sourcePrimaryInterestReference = m;
|
|
6012
6000
|
}).catch(w)), l.sourcePrimaryInterestReference;
|
|
6013
|
-
}),
|
|
6001
|
+
}), re = R(() => {
|
|
6014
6002
|
const l = D();
|
|
6015
6003
|
return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, p.getInstance(T).getDeliveryTypes().then((m) => {
|
|
6016
6004
|
l.deliveryTypeReference = m;
|
|
6017
6005
|
}).catch(w)), l.deliveryTypeReference;
|
|
6018
|
-
}),
|
|
6006
|
+
}), te = R(() => {
|
|
6019
6007
|
const l = D();
|
|
6020
6008
|
return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, p.getInstance(Rt).getManagers().then((m) => {
|
|
6021
6009
|
l.managersList = m;
|
|
6022
6010
|
}).catch(w)), l.managersList;
|
|
6023
|
-
}),
|
|
6011
|
+
}), M = R(() => {
|
|
6024
6012
|
const l = D();
|
|
6025
6013
|
return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, p.getInstance(T).getWarehouses().then((m) => {
|
|
6026
6014
|
l.warehousesReference = m;
|
|
6027
6015
|
}).catch(w)), l.warehousesReference;
|
|
6028
|
-
}),
|
|
6016
|
+
}), j = R(() => {
|
|
6029
6017
|
const l = D();
|
|
6030
6018
|
return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, p.getInstance(T).getPropertyTypes().then((m) => {
|
|
6031
6019
|
l.propertyTypesReference = m;
|
|
6032
6020
|
}).catch(w)), l.propertyTypesReference;
|
|
6033
|
-
}),
|
|
6021
|
+
}), $e = R(() => {
|
|
6034
6022
|
const l = D();
|
|
6035
6023
|
return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, p.getInstance(T).getPriceCoefficients().then((m) => {
|
|
6036
6024
|
l.priceCoefficientsReference = m;
|
|
@@ -6084,27 +6072,27 @@ const D = te("__references_private", () => {
|
|
|
6084
6072
|
/**
|
|
6085
6073
|
* Справочник каналов первичного интереса.
|
|
6086
6074
|
*/
|
|
6087
|
-
sourcePrimaryInterestsReference:
|
|
6075
|
+
sourcePrimaryInterestsReference: a,
|
|
6088
6076
|
/**
|
|
6089
6077
|
* Справочник типов доставки.
|
|
6090
6078
|
*/
|
|
6091
|
-
deliveryTypeReference:
|
|
6079
|
+
deliveryTypeReference: re,
|
|
6092
6080
|
/**
|
|
6093
6081
|
* Список менеджеров.
|
|
6094
6082
|
*/
|
|
6095
|
-
managersList:
|
|
6083
|
+
managersList: te,
|
|
6096
6084
|
/**
|
|
6097
6085
|
* Справочник складов.
|
|
6098
6086
|
*/
|
|
6099
|
-
warehousesReference:
|
|
6087
|
+
warehousesReference: M,
|
|
6100
6088
|
/**
|
|
6101
6089
|
* Справочник типов свойств.
|
|
6102
6090
|
*/
|
|
6103
|
-
propertyTypesReference:
|
|
6091
|
+
propertyTypesReference: j,
|
|
6104
6092
|
/**
|
|
6105
6093
|
* Справочник коэффициентов цен.
|
|
6106
6094
|
*/
|
|
6107
|
-
priceCoefficientsReference:
|
|
6095
|
+
priceCoefficientsReference: $e
|
|
6108
6096
|
};
|
|
6109
6097
|
});
|
|
6110
6098
|
class $t {
|
|
@@ -6242,8 +6230,8 @@ class hs extends p {
|
|
|
6242
6230
|
});
|
|
6243
6231
|
}
|
|
6244
6232
|
}
|
|
6245
|
-
var
|
|
6246
|
-
class
|
|
6233
|
+
var bt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(bt || {});
|
|
6234
|
+
class at extends yr {
|
|
6247
6235
|
/**
|
|
6248
6236
|
* Инициализирует экземпляр класса {@link User}.
|
|
6249
6237
|
*
|
|
@@ -6288,10 +6276,10 @@ class St extends p {
|
|
|
6288
6276
|
*/
|
|
6289
6277
|
// eslint-disable-next-line class-methods-use-this
|
|
6290
6278
|
getCurrentUser() {
|
|
6291
|
-
return this.get("/internal/users/info", {}, (r) => new
|
|
6279
|
+
return this.get("/internal/users/info", {}, (r) => new at(r.data));
|
|
6292
6280
|
}
|
|
6293
6281
|
}
|
|
6294
|
-
const It =
|
|
6282
|
+
const It = ee("__user_state_private", () => {
|
|
6295
6283
|
const n = y({}), r = y(void 0);
|
|
6296
6284
|
return {
|
|
6297
6285
|
/**
|
|
@@ -6303,7 +6291,7 @@ const It = te("__user_state_private", () => {
|
|
|
6303
6291
|
*/
|
|
6304
6292
|
currentUser: r
|
|
6305
6293
|
};
|
|
6306
|
-
}), ms =
|
|
6294
|
+
}), ms = ee("user_state", () => ({
|
|
6307
6295
|
/**
|
|
6308
6296
|
* Данные о текущем пользователе.
|
|
6309
6297
|
*/
|
|
@@ -6343,82 +6331,82 @@ export {
|
|
|
6343
6331
|
ut as AnyReference,
|
|
6344
6332
|
jt as AppBaseConfig,
|
|
6345
6333
|
$ as AppConfigProvider,
|
|
6346
|
-
|
|
6347
|
-
|
|
6334
|
+
Oe as BankAccount,
|
|
6335
|
+
Te as BasePaginationProvider,
|
|
6348
6336
|
Yr as CalculationTypeEnum,
|
|
6349
|
-
|
|
6337
|
+
ge as Cart,
|
|
6350
6338
|
Qr as CartItem,
|
|
6351
6339
|
Kr as CartItemBase,
|
|
6352
6340
|
Ft as CartProvider,
|
|
6353
6341
|
Gt as CatalogProvider,
|
|
6354
6342
|
ur as CatalogableItem,
|
|
6355
|
-
|
|
6343
|
+
H as Category,
|
|
6356
6344
|
Ke as CategoryPricingRule,
|
|
6357
6345
|
Cr as ChannelPrimaryInterest,
|
|
6358
6346
|
Yt as City,
|
|
6359
6347
|
Ee as CityWithRegionAndCountry,
|
|
6360
6348
|
Ze as Client,
|
|
6361
6349
|
vt as ClientAdditionalData,
|
|
6362
|
-
|
|
6363
|
-
|
|
6350
|
+
ye as ClientCategory,
|
|
6351
|
+
x as ClientDataProvider,
|
|
6364
6352
|
Bt as ClientPriceProvider,
|
|
6365
6353
|
Ht as ClientPriceTemplateProvider,
|
|
6366
|
-
|
|
6354
|
+
Y as ClientProduct,
|
|
6367
6355
|
Wt as ClientProductCategoryDataProvider,
|
|
6368
6356
|
Jt as ClientProductDataProvider,
|
|
6369
|
-
|
|
6357
|
+
he as ClientShortInfo,
|
|
6370
6358
|
lt as ClientsAdditionalDataRequestTypeEnum,
|
|
6371
6359
|
Xt as ClientsListFilters,
|
|
6372
6360
|
oe as CodedIdentity,
|
|
6373
6361
|
ts as ConfiguratorProvider,
|
|
6374
|
-
|
|
6362
|
+
qe as Contact,
|
|
6375
6363
|
mr as ContactLinks,
|
|
6376
|
-
|
|
6364
|
+
U as ContactPerson,
|
|
6377
6365
|
Ct as ContactPersonRelated,
|
|
6378
6366
|
pt as ContactPosition,
|
|
6379
|
-
|
|
6367
|
+
Ie as ContactRelation,
|
|
6380
6368
|
Rr as ContragentBase,
|
|
6381
|
-
|
|
6369
|
+
Ce as ContragentFactory,
|
|
6382
6370
|
Dr as ContragentIc,
|
|
6383
6371
|
yt as ContragentPerson,
|
|
6384
6372
|
wt as ContragentUlNr,
|
|
6385
6373
|
Ar as ContragentUlR,
|
|
6386
|
-
|
|
6387
|
-
|
|
6374
|
+
je as CostSourceEnum,
|
|
6375
|
+
X as Country,
|
|
6388
6376
|
Be as CuratedDirection,
|
|
6389
6377
|
He as Curator,
|
|
6390
|
-
|
|
6378
|
+
we as Currency,
|
|
6391
6379
|
hs as DataSuggestionProvider,
|
|
6392
6380
|
Zt as DataTablePagination,
|
|
6393
6381
|
Pt as DataTablePaginationRequestParams,
|
|
6394
6382
|
es as DataTableSortRequestParams,
|
|
6395
6383
|
ss as DateTimeProvider,
|
|
6396
6384
|
Zr as DeletableNamedIdentity,
|
|
6397
|
-
|
|
6398
|
-
|
|
6385
|
+
ve as DeliveryAddress,
|
|
6386
|
+
Q as DeliveryType,
|
|
6399
6387
|
Ut as DetailedJwtPayload,
|
|
6400
6388
|
st as DeviceTypeResolutionConfig,
|
|
6401
6389
|
et as DiscountShortInfo,
|
|
6402
6390
|
fs as FieldValidationResultData,
|
|
6403
|
-
|
|
6391
|
+
le as FilterGroup,
|
|
6404
6392
|
Qe as FilterItem,
|
|
6405
6393
|
ze as FilterOpEnum,
|
|
6406
6394
|
hr as GeoCoordinates,
|
|
6407
6395
|
Jr as HiddenCatalogableItem,
|
|
6408
|
-
|
|
6396
|
+
ue as HttpCachedRequester,
|
|
6409
6397
|
it as HttpParamsConfig,
|
|
6410
6398
|
p as HttpRequester,
|
|
6411
|
-
|
|
6399
|
+
F as Identity,
|
|
6412
6400
|
Vr as Image,
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6401
|
+
O as JwtPayload,
|
|
6402
|
+
Ae as Manager,
|
|
6403
|
+
Ge as ManagerCommon,
|
|
6416
6404
|
is as ManagerDataFactory,
|
|
6417
6405
|
Rt as ManagerDataProvider,
|
|
6418
6406
|
$t as MetaTagItem,
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6407
|
+
b as NamedIdentity,
|
|
6408
|
+
N as Opf,
|
|
6409
|
+
d as OpfEnum,
|
|
6422
6410
|
rr as Order,
|
|
6423
6411
|
$r as OrderInfo,
|
|
6424
6412
|
ht as OrderPaymentStatus,
|
|
@@ -6426,61 +6414,61 @@ export {
|
|
|
6426
6414
|
Tr as OrderShortInfo,
|
|
6427
6415
|
gt as OrderStatus,
|
|
6428
6416
|
ns as OrdersDataProvider,
|
|
6429
|
-
|
|
6417
|
+
Z as PartnerGroup,
|
|
6430
6418
|
mt as PaymentType,
|
|
6431
|
-
|
|
6432
|
-
|
|
6419
|
+
me as PreferencesStorageProvider,
|
|
6420
|
+
xe as PriceAnalyze,
|
|
6433
6421
|
os as PriceAnalyzeProvider,
|
|
6434
|
-
|
|
6422
|
+
Re as PriceCoefficient,
|
|
6435
6423
|
pr as PriceCoefficientEnum,
|
|
6436
6424
|
cs as PriceHistoryDataProvider,
|
|
6437
6425
|
At as PriceHistoryItem,
|
|
6438
|
-
|
|
6439
|
-
|
|
6426
|
+
E as PriceTemplate,
|
|
6427
|
+
ae as PriceTemplateCategory,
|
|
6440
6428
|
se as PriceTemplateClient,
|
|
6441
6429
|
fr as PriceTemplateICatalogableItem,
|
|
6442
|
-
|
|
6430
|
+
Se as PriceTemplateProduct,
|
|
6443
6431
|
Vt as PriceTemplateProvider,
|
|
6444
6432
|
ne as PricingRole,
|
|
6445
6433
|
Kt as PricingRoleProvider,
|
|
6446
|
-
|
|
6434
|
+
_e as PrimaryCatalogableItem,
|
|
6447
6435
|
I as Product,
|
|
6448
6436
|
Et as ProductCategoryDataProvider,
|
|
6449
6437
|
zt as ProductDataProvider,
|
|
6450
6438
|
ft as ProductFileType,
|
|
6451
|
-
|
|
6439
|
+
Fe as ProductPriceCoefficient,
|
|
6452
6440
|
Tt as ProductPriceHistory,
|
|
6453
6441
|
Qt as PropertiesProvider,
|
|
6454
6442
|
ie as Property,
|
|
6455
6443
|
wr as PropertyType,
|
|
6456
6444
|
Xr as PropertyTypeEnum,
|
|
6457
|
-
|
|
6445
|
+
B as PropertyValue,
|
|
6458
6446
|
ls as RecommendationsDataProvider,
|
|
6459
6447
|
sr as RecommendationsList,
|
|
6460
6448
|
P as Reference,
|
|
6461
6449
|
T as ReferenceDataProvider,
|
|
6462
|
-
|
|
6450
|
+
ce as Region,
|
|
6463
6451
|
vr as ResourceType,
|
|
6464
|
-
|
|
6452
|
+
_ as SalesDirection,
|
|
6465
6453
|
nt as SentryConfig,
|
|
6466
6454
|
ir as Seo,
|
|
6467
6455
|
ps as SeoDataProvider,
|
|
6468
6456
|
Pr as SourcePrimaryInterest,
|
|
6469
6457
|
Wr as StockCount,
|
|
6470
6458
|
Mt as TemplatesListFilters,
|
|
6471
|
-
|
|
6459
|
+
Me as TypedInstanceFactory,
|
|
6472
6460
|
er as UnitsHelper,
|
|
6473
6461
|
rs as UnknownClientDataProvider,
|
|
6474
6462
|
gr as UpdatableNamedIdentity,
|
|
6475
|
-
|
|
6463
|
+
at as User,
|
|
6476
6464
|
gs as UserAuthDataProvider,
|
|
6477
6465
|
yr as UserCommonInfo,
|
|
6478
6466
|
St as UserDataProvider,
|
|
6479
6467
|
rt as UserPricingRole,
|
|
6480
|
-
|
|
6481
|
-
|
|
6468
|
+
q as UserShortInfo,
|
|
6469
|
+
bt as UserTypeEnum,
|
|
6482
6470
|
ot as VersionConfig,
|
|
6483
|
-
|
|
6471
|
+
De as Warehouse,
|
|
6484
6472
|
ct as WebSocketConfig,
|
|
6485
6473
|
Ye as findCatalogItemByIdRecursive,
|
|
6486
6474
|
Xe as flattenCatalogItems,
|