@snabcentr/common-lib 4.3.0-dev → 4.4.0-dev
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 +158 -109
- 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/external-seo/classes/external-seo-full-info.d.ts +18 -0
- package/dist/src/external-seo/classes/external-seo-full-info.d.ts.map +1 -0
- package/dist/src/external-seo/classes/external-seo-list-filters.d.ts +34 -0
- package/dist/src/external-seo/classes/external-seo-list-filters.d.ts.map +1 -0
- package/dist/src/external-seo/classes/index.d.ts +3 -0
- package/dist/src/external-seo/classes/index.d.ts.map +1 -0
- package/dist/src/external-seo/index.d.ts +4 -0
- package/dist/src/external-seo/index.d.ts.map +1 -0
- package/dist/src/external-seo/interfaces/i-external-seo-full-info.d.ts +11 -0
- package/dist/src/external-seo/interfaces/i-external-seo-full-info.d.ts.map +1 -0
- package/dist/src/external-seo/interfaces/i-external-seo-list-filters.d.ts +23 -0
- package/dist/src/external-seo/interfaces/i-external-seo-list-filters.d.ts.map +1 -0
- package/dist/src/external-seo/interfaces/index.d.ts +3 -0
- package/dist/src/external-seo/interfaces/index.d.ts.map +1 -0
- package/dist/src/external-seo/providers/external-seo-provider.d.ts +68 -0
- package/dist/src/external-seo/providers/external-seo-provider.d.ts.map +1 -0
- package/dist/src/external-seo/providers/index.d.ts +2 -0
- package/dist/src/external-seo/providers/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/managers/interfaces/index.d.ts +0 -1
- package/dist/src/managers/interfaces/index.d.ts.map +1 -1
- package/dist/src/managers/providers/manager-provider.d.ts +4 -4
- package/dist/src/managers/providers/manager-provider.d.ts.map +1 -1
- package/dist/src/operators/interfaces/index.d.ts +0 -1
- package/dist/src/operators/interfaces/index.d.ts.map +1 -1
- package/dist/src/operators/providers/operator-provider.d.ts +4 -4
- package/dist/src/operators/providers/operator-provider.d.ts.map +1 -1
- package/dist/src/user/interfaces/i-user-save-data.d.ts +18 -0
- package/dist/src/user/interfaces/i-user-save-data.d.ts.map +1 -0
- package/dist/src/user/interfaces/index.d.ts +1 -0
- package/dist/src/user/interfaces/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/src/managers/interfaces/i-manager-save-data.d.ts +0 -18
- package/dist/src/managers/interfaces/i-manager-save-data.d.ts.map +0 -1
- package/dist/src/operators/interfaces/i-operator-save-data.d.ts +0 -18
- package/dist/src/operators/interfaces/i-operator-save-data.d.ts.map +0 -1
package/dist/sc-common-lib.js
CHANGED
|
@@ -2306,16 +2306,65 @@ var Nn = class {
|
|
|
2306
2306
|
checkClient(e, t) {
|
|
2307
2307
|
return this.get(`/internal/price/discounts/${e}/clients/${t}/check`, {}, (e) => new Vn(e.data));
|
|
2308
2308
|
}
|
|
2309
|
-
}, Wn = class extends
|
|
2309
|
+
}, Wn = class extends _e {
|
|
2310
|
+
showAllCosts;
|
|
2311
|
+
constructor(e) {
|
|
2312
|
+
super(e), this.showAllCosts = e?.showAllCosts;
|
|
2313
|
+
}
|
|
2314
|
+
}, Gn = class extends N {
|
|
2315
|
+
name;
|
|
2316
|
+
phone;
|
|
2317
|
+
email;
|
|
2318
|
+
isActive;
|
|
2319
|
+
constructor(e) {
|
|
2320
|
+
super(), this.name = e?.name, this.phone = e?.phone, this.email = e?.email, this.isActive = e?.isActive;
|
|
2321
|
+
}
|
|
2322
|
+
resetFilterValue(e) {
|
|
2323
|
+
switch (e) {
|
|
2324
|
+
case "name":
|
|
2325
|
+
case "phone":
|
|
2326
|
+
case "email":
|
|
2327
|
+
case "isActive": this[e] = void 0;
|
|
2328
|
+
}
|
|
2329
|
+
return this;
|
|
2330
|
+
}
|
|
2331
|
+
}, Kn = class t extends e {
|
|
2332
|
+
static transformExternalSeoDataToRequest(e) {
|
|
2333
|
+
return {
|
|
2334
|
+
name: e.name,
|
|
2335
|
+
phone: e.phone,
|
|
2336
|
+
email: e.email,
|
|
2337
|
+
password: e.password,
|
|
2338
|
+
isActive: e.isActive,
|
|
2339
|
+
pricingRoleId: e.pricingRole?.id,
|
|
2340
|
+
showAllCosts: e.showAllCosts ?? !1
|
|
2341
|
+
};
|
|
2342
|
+
}
|
|
2343
|
+
getExternalSeoList(e, t, n, r) {
|
|
2344
|
+
return this.getTypedPaginated(_e, "/internal/external-seo", e, t, n, {}, void 0, r);
|
|
2345
|
+
}
|
|
2346
|
+
getExternalSeo(e, t = !1) {
|
|
2347
|
+
return this.get(`/internal/external-seo/${e}`, {}, (e) => new Wn(e.data), t);
|
|
2348
|
+
}
|
|
2349
|
+
createExternalSeo(e, n = {}) {
|
|
2350
|
+
return this.post("/internal/external-seo", t.transformExternalSeoDataToRequest(e), (e) => new Wn(e.data), n);
|
|
2351
|
+
}
|
|
2352
|
+
updateExternalSeo(e, n = {}) {
|
|
2353
|
+
return this.patch(`/internal/external-seo/${e.id}`, t.transformExternalSeoDataToRequest(e), (e) => new Wn(e.data), n);
|
|
2354
|
+
}
|
|
2355
|
+
deleteExternalSeo(e) {
|
|
2356
|
+
return this.delete(`/internal/external-seo/${e}`);
|
|
2357
|
+
}
|
|
2358
|
+
}, qn = class extends p {
|
|
2310
2359
|
constructor(e) {
|
|
2311
2360
|
super(e);
|
|
2312
2361
|
}
|
|
2313
|
-
},
|
|
2362
|
+
}, Jn = class extends d {
|
|
2314
2363
|
question;
|
|
2315
2364
|
answer;
|
|
2316
2365
|
groups;
|
|
2317
2366
|
constructor(e) {
|
|
2318
|
-
super(e, -1), this.question = e?.question ?? "", this.answer = e?.answer ?? "", this.groups = j(e?.groups ?? [], (e) => new
|
|
2367
|
+
super(e, -1), this.question = e?.question ?? "", this.answer = e?.answer ?? "", this.groups = j(e?.groups ?? [], (e) => new qn(e));
|
|
2319
2368
|
}
|
|
2320
2369
|
toSaveData() {
|
|
2321
2370
|
return {
|
|
@@ -2324,30 +2373,30 @@ var Nn = class {
|
|
|
2324
2373
|
groups: j(this.groups, "id")
|
|
2325
2374
|
};
|
|
2326
2375
|
}
|
|
2327
|
-
},
|
|
2376
|
+
}, Yn = class extends e {
|
|
2328
2377
|
getFaqList(e, t) {
|
|
2329
|
-
return this.getTypedPaginated(
|
|
2378
|
+
return this.getTypedPaginated(Jn, "/internal/faq", void 0, void 0, t, k(e) ? {} : { group: e });
|
|
2330
2379
|
}
|
|
2331
2380
|
getFaq(e) {
|
|
2332
|
-
return this.get(`/internal/faq/${e}`, {}, (e) => new
|
|
2381
|
+
return this.get(`/internal/faq/${e}`, {}, (e) => new Jn(e.data));
|
|
2333
2382
|
}
|
|
2334
2383
|
createFaq(e, t = {}) {
|
|
2335
|
-
return this.post("/internal/faq", e, (e) => new
|
|
2384
|
+
return this.post("/internal/faq", e, (e) => new Jn(e.data), t);
|
|
2336
2385
|
}
|
|
2337
2386
|
updateFaq(e, t, n = {}) {
|
|
2338
|
-
return this.patch(`/internal/faq/${e}`, t, (e) => new
|
|
2387
|
+
return this.patch(`/internal/faq/${e}`, t, (e) => new Jn(e.data), n);
|
|
2339
2388
|
}
|
|
2340
2389
|
removeFaq(e) {
|
|
2341
2390
|
return this.delete(`/internal/faq/${e}`);
|
|
2342
2391
|
}
|
|
2343
2392
|
getGroupsList() {
|
|
2344
|
-
return this.getTypedList(
|
|
2393
|
+
return this.getTypedList(qn, "/internal/faq/groups");
|
|
2345
2394
|
}
|
|
2346
2395
|
createGroup(e, t = {}) {
|
|
2347
|
-
return this.post("/internal/faq/groups", e, (e) => new
|
|
2396
|
+
return this.post("/internal/faq/groups", e, (e) => new qn(e.data), t);
|
|
2348
2397
|
}
|
|
2349
2398
|
updateGroup(e, t, n = {}) {
|
|
2350
|
-
return this.patch(`/internal/faq/groups/${e}`, t, (e) => new
|
|
2399
|
+
return this.patch(`/internal/faq/groups/${e}`, t, (e) => new qn(e.data), n);
|
|
2351
2400
|
}
|
|
2352
2401
|
removeGroup(e) {
|
|
2353
2402
|
return this.delete(`/internal/faq/groups/${e}`);
|
|
@@ -2355,13 +2404,13 @@ var Nn = class {
|
|
|
2355
2404
|
};
|
|
2356
2405
|
//#endregion
|
|
2357
2406
|
//#region src/helpers/format-percent-change.ts
|
|
2358
|
-
function
|
|
2407
|
+
function Xn(e) {
|
|
2359
2408
|
let t = rt(e * 100);
|
|
2360
2409
|
return `${t >= 0 ? "+" : ""}${t}%`;
|
|
2361
2410
|
}
|
|
2362
2411
|
//#endregion
|
|
2363
2412
|
//#region src/helpers/units-helper.ts
|
|
2364
|
-
var
|
|
2413
|
+
var Zn = class e {
|
|
2365
2414
|
static productIsMeasurable(e) {
|
|
2366
2415
|
return e.unit.isLinear || e.unit.isSquare;
|
|
2367
2416
|
}
|
|
@@ -2371,7 +2420,7 @@ var Jn = class e {
|
|
|
2371
2420
|
static getProductLengthMultiplicity(e) {
|
|
2372
2421
|
return e.properties?.lengthStep == null ? !e.properties?.ignoreMinCountCheck && e.properties?.minCount != null ? e.properties.minCount : .01 : e.properties.lengthStep;
|
|
2373
2422
|
}
|
|
2374
|
-
},
|
|
2423
|
+
}, Qn = class {
|
|
2375
2424
|
static generateUndefinedManagerInstance() {
|
|
2376
2425
|
return new f({
|
|
2377
2426
|
id: 0,
|
|
@@ -2383,7 +2432,7 @@ var Jn = class e {
|
|
|
2383
2432
|
static isUndefinedManagerInstance(e) {
|
|
2384
2433
|
return e.id === 0 && e.guid === "-undefined-";
|
|
2385
2434
|
}
|
|
2386
|
-
},
|
|
2435
|
+
}, $n = class extends N {
|
|
2387
2436
|
name;
|
|
2388
2437
|
phone;
|
|
2389
2438
|
email;
|
|
@@ -2406,7 +2455,7 @@ var Jn = class e {
|
|
|
2406
2455
|
}
|
|
2407
2456
|
return this;
|
|
2408
2457
|
}
|
|
2409
|
-
},
|
|
2458
|
+
}, er = class e extends ie {
|
|
2410
2459
|
static transformManagerDataToRequest(e) {
|
|
2411
2460
|
return {
|
|
2412
2461
|
name: e.name,
|
|
@@ -2439,18 +2488,18 @@ var Jn = class e {
|
|
|
2439
2488
|
getManagerRegionsList(e, t, n) {
|
|
2440
2489
|
return this.getTypedPaginated(ye, "/internal/managers/regions", e, t, n);
|
|
2441
2490
|
}
|
|
2442
|
-
},
|
|
2491
|
+
}, tr = /* @__PURE__ */ function(e) {
|
|
2443
2492
|
return e.Processing = "processing", e.Completed = "completed", e.Error = "error", e.NeedsActualization = "needs_actualization", e;
|
|
2444
|
-
}({}),
|
|
2493
|
+
}({}), nr = class {
|
|
2445
2494
|
status;
|
|
2446
2495
|
actualizedAt;
|
|
2447
2496
|
expiresAt;
|
|
2448
2497
|
error;
|
|
2449
2498
|
constructor(e) {
|
|
2450
|
-
this.status = e?.status ??
|
|
2499
|
+
this.status = e?.status ?? tr.Processing, this.actualizedAt = s.parse(e?.actualizedAt), this.expiresAt = s.parse(e?.expiresAt), this.error = e?.error;
|
|
2451
2500
|
}
|
|
2452
2501
|
get isProcessing() {
|
|
2453
|
-
return this.status ===
|
|
2502
|
+
return this.status === tr.Processing;
|
|
2454
2503
|
}
|
|
2455
2504
|
get isOutdated() {
|
|
2456
2505
|
return this.isOutdatedAt(/* @__PURE__ */ new Date());
|
|
@@ -2459,12 +2508,12 @@ var Jn = class e {
|
|
|
2459
2508
|
return this.isOrderAllowedAt(/* @__PURE__ */ new Date());
|
|
2460
2509
|
}
|
|
2461
2510
|
isOutdatedAt(e) {
|
|
2462
|
-
return this.status !==
|
|
2511
|
+
return this.status !== tr.Completed || k(this.actualizedAt) ? !0 : !k(this.expiresAt) && this.expiresAt.getTime() < e.getTime();
|
|
2463
2512
|
}
|
|
2464
2513
|
isOrderAllowedAt(e) {
|
|
2465
|
-
return this.status ===
|
|
2514
|
+
return this.status === tr.Completed && !this.isOutdatedAt(e);
|
|
2466
2515
|
}
|
|
2467
|
-
},
|
|
2516
|
+
}, rr = class extends M {
|
|
2468
2517
|
name;
|
|
2469
2518
|
client;
|
|
2470
2519
|
sum;
|
|
@@ -2472,9 +2521,9 @@ var Jn = class e {
|
|
|
2472
2521
|
actualization;
|
|
2473
2522
|
file;
|
|
2474
2523
|
constructor(e) {
|
|
2475
|
-
super(e), this.name = e?.name, this.client = new U(e?.client), this.sum = e?.sum, this.isProfstroy = e?.isProfstroy, this.actualization = e?.actualization && new
|
|
2524
|
+
super(e), this.name = e?.name, this.client = new U(e?.client), this.sum = e?.sum, this.isProfstroy = e?.isProfstroy, this.actualization = e?.actualization && new nr(e.actualization), this.file = e?.file;
|
|
2476
2525
|
}
|
|
2477
|
-
},
|
|
2526
|
+
}, ir = class extends Tt {
|
|
2478
2527
|
groupName;
|
|
2479
2528
|
supplierSku;
|
|
2480
2529
|
isIgnored;
|
|
@@ -2488,13 +2537,13 @@ var Jn = class e {
|
|
|
2488
2537
|
get isOrderable() {
|
|
2489
2538
|
return !this.isProductStub && !this.isIgnored && Ze(this.lineError);
|
|
2490
2539
|
}
|
|
2491
|
-
}, Z = class extends
|
|
2540
|
+
}, Z = class extends rr {
|
|
2492
2541
|
sum;
|
|
2493
2542
|
products;
|
|
2494
2543
|
constructor(e) {
|
|
2495
|
-
super(e), this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => e.isProfstroy ? new
|
|
2544
|
+
super(e), this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => e.isProfstroy ? new ir(t) : new Tt(t));
|
|
2496
2545
|
}
|
|
2497
|
-
},
|
|
2546
|
+
}, ar = class extends N {
|
|
2498
2547
|
id;
|
|
2499
2548
|
clientSearchTerm;
|
|
2500
2549
|
name;
|
|
@@ -2509,7 +2558,7 @@ var Jn = class e {
|
|
|
2509
2558
|
let e = super.asClearRaw();
|
|
2510
2559
|
return !e?.createdAt?.from && !e?.createdAt?.to && delete e.createdAt, e;
|
|
2511
2560
|
}
|
|
2512
|
-
},
|
|
2561
|
+
}, or = class extends vn {
|
|
2513
2562
|
client;
|
|
2514
2563
|
payment;
|
|
2515
2564
|
delivery;
|
|
@@ -2537,7 +2586,7 @@ var Jn = class e {
|
|
|
2537
2586
|
let t = e?.attachedAt;
|
|
2538
2587
|
this.attachedAt = A(t) ? w(t) : e?.attachedAt, this.isOnOrder = e?.isOnOrder ?? !1, this.isProfstroy = e?.isProfstroy ?? !1, this.isNotInStock = e?.isNotInStock ?? !1, this.sum = e?.sum ?? 0, this.isLargeOrder = e?.isLargeOrder ?? !1;
|
|
2539
2588
|
}
|
|
2540
|
-
},
|
|
2589
|
+
}, sr = class extends wt {
|
|
2541
2590
|
product;
|
|
2542
2591
|
cost;
|
|
2543
2592
|
costOne;
|
|
@@ -2553,7 +2602,7 @@ var Jn = class e {
|
|
|
2553
2602
|
constructor(e, t) {
|
|
2554
2603
|
super(e), this.product = new z(e.product), this.currency = new o(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 = Ye(e.sawing) ? e.sawing : e.sawing ? [e.sawing] : void 0, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
|
|
2555
2604
|
}
|
|
2556
|
-
}, Q = class extends
|
|
2605
|
+
}, Q = class extends or {
|
|
2557
2606
|
products;
|
|
2558
2607
|
invoices;
|
|
2559
2608
|
comment;
|
|
@@ -2569,11 +2618,11 @@ var Jn = class e {
|
|
|
2569
2618
|
erpOrderUrl;
|
|
2570
2619
|
numberDoc;
|
|
2571
2620
|
constructor(e) {
|
|
2572
|
-
super(e), this.products = (e.products ?? []).map((t) => new
|
|
2621
|
+
super(e), this.products = (e.products ?? []).map((t) => new sr(t, t.replacementId ? e.products?.find((e) => e.id === t.replacementId) : void 0)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? mn.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new de(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = e.nextStatuses?.map((e) => new se(e)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl, this.numberDoc = e.numberDoc;
|
|
2573
2622
|
}
|
|
2574
|
-
},
|
|
2623
|
+
}, cr = class extends e {
|
|
2575
2624
|
getOffers(e, t, n, r) {
|
|
2576
|
-
return this.getTypedPaginated(
|
|
2625
|
+
return this.getTypedPaginated(rr, "/internal/orders/offers", e, t, n, {}, void 0, r);
|
|
2577
2626
|
}
|
|
2578
2627
|
createOfferFromCart(e, t, n) {
|
|
2579
2628
|
return this.post(`/internal/orders/offers/${e}`, {
|
|
@@ -2657,25 +2706,25 @@ var Jn = class e {
|
|
|
2657
2706
|
sendOffer(e, t) {
|
|
2658
2707
|
return this.post(`/internal/orders/offers/${e}/send`, t);
|
|
2659
2708
|
}
|
|
2660
|
-
},
|
|
2709
|
+
}, lr = class {
|
|
2661
2710
|
static isProfstroy(e) {
|
|
2662
2711
|
return !!e?.isProfstroy;
|
|
2663
2712
|
}
|
|
2664
2713
|
static isProfstroyOffer(e) {
|
|
2665
2714
|
return !k(e) && e.isProfstroy === !0 && !k(e.actualization);
|
|
2666
2715
|
}
|
|
2667
|
-
},
|
|
2716
|
+
}, ur = class extends _e {
|
|
2668
2717
|
isBillingSupervisor;
|
|
2669
2718
|
constructor(e) {
|
|
2670
2719
|
super(e), this.isBillingSupervisor = e?.isBillingSupervisor ?? !1;
|
|
2671
2720
|
}
|
|
2672
|
-
},
|
|
2721
|
+
}, dr = class extends ur {
|
|
2673
2722
|
showAllCosts;
|
|
2674
2723
|
stores;
|
|
2675
2724
|
constructor(e) {
|
|
2676
2725
|
super(e), this.showAllCosts = e?.showAllCosts, this.stores = e?.stores?.map((e) => new me(e));
|
|
2677
2726
|
}
|
|
2678
|
-
},
|
|
2727
|
+
}, fr = class extends N {
|
|
2679
2728
|
name;
|
|
2680
2729
|
phone;
|
|
2681
2730
|
email;
|
|
@@ -2698,7 +2747,7 @@ var Jn = class e {
|
|
|
2698
2747
|
}
|
|
2699
2748
|
return this;
|
|
2700
2749
|
}
|
|
2701
|
-
},
|
|
2750
|
+
}, pr = class t extends e {
|
|
2702
2751
|
static transformOperatorDataToRequest(e) {
|
|
2703
2752
|
return {
|
|
2704
2753
|
name: e.name,
|
|
@@ -2716,20 +2765,20 @@ var Jn = class e {
|
|
|
2716
2765
|
};
|
|
2717
2766
|
}
|
|
2718
2767
|
getOperatorsList(e, t, n, r) {
|
|
2719
|
-
return this.getTypedPaginated(
|
|
2768
|
+
return this.getTypedPaginated(ur, "/internal/operators", e, t, n, {}, void 0, r);
|
|
2720
2769
|
}
|
|
2721
2770
|
getOperator(e, t = !1) {
|
|
2722
|
-
return this.get(`/internal/operators/${e}`, {}, (e) => new
|
|
2771
|
+
return this.get(`/internal/operators/${e}`, {}, (e) => new dr(e.data), t);
|
|
2723
2772
|
}
|
|
2724
2773
|
createOperator(e, n = {}) {
|
|
2725
|
-
return this.post("/internal/operators", t.transformOperatorDataToRequest(e), (e) => new
|
|
2774
|
+
return this.post("/internal/operators", t.transformOperatorDataToRequest(e), (e) => new dr(e.data), n);
|
|
2726
2775
|
}
|
|
2727
2776
|
updateOperator(e, n = {}) {
|
|
2728
|
-
return this.patch(`/internal/operators/${e.id}`, t.transformOperatorDataToRequest(e), (e) => new
|
|
2777
|
+
return this.patch(`/internal/operators/${e.id}`, t.transformOperatorDataToRequest(e), (e) => new dr(e.data), n);
|
|
2729
2778
|
}
|
|
2730
|
-
},
|
|
2779
|
+
}, mr = /* @__PURE__ */ function(e) {
|
|
2731
2780
|
return e.View = "view", e.Share = "share", e.EditTags = "edit_tags", e.SaveOrderIgnoredProducts = "save_order_ignored_products", e.ChangeStatus = "change_status", e.ChangeProducts = "change_products", e.ChangeOrderParameters = "change_order_parameters", e.Recalculate = "recalculate", e.AttachOrder = "attach_order", e.DetachOrder = "detach_order", e.ChangeAttachedOperator = "change_attached_operator", e.SendOnlinePaymentLink = "send_online_payment_link", e.ConfirmOnlineFullPayment = "confirm_online_full_payment", e.MergeOrders = "merge_orders", e.GetHistory = "get_history", e.CloneOrder = "clone_order", e.DeleteAttachedFile = "delete_attached_file", e;
|
|
2732
|
-
}({}),
|
|
2781
|
+
}({}), hr = class {
|
|
2733
2782
|
paymentType;
|
|
2734
2783
|
deliveryType;
|
|
2735
2784
|
contragentId;
|
|
@@ -2747,7 +2796,7 @@ var Jn = class e {
|
|
|
2747
2796
|
constructor(e) {
|
|
2748
2797
|
this.paymentType = e?.payment.type, this.deliveryType = e?.delivery.type, this.contragentId = e?.contragent?.id, this.deliveryDate = e?.delivery.date ? new Date(e.delivery.date) : void 0, this.addressId = e?.delivery.address?.id, this.warehouseId = e?.delivery.warehouse?.id, this.comment = e?.comment, this.barcode = e?.barcode, this.operatorsComment = e?.operatorsComment, this.operatorsForWarehouseComment = e?.operatorsForWarehouseComment, this.isAllowProcessingWithoutPayment = e?.isAllowProcessingWithoutPayment;
|
|
2749
2798
|
}
|
|
2750
|
-
},
|
|
2799
|
+
}, gr = class extends N {
|
|
2751
2800
|
attachedUsers;
|
|
2752
2801
|
clientSearchTerm;
|
|
2753
2802
|
client;
|
|
@@ -2813,7 +2862,7 @@ var Jn = class e {
|
|
|
2813
2862
|
let e = super.asClearRaw();
|
|
2814
2863
|
return !e?.createdAt?.from && !e?.createdAt?.to && delete e.createdAt, !e?.deliveryDate?.from && !e?.deliveryDate?.to && delete e.deliveryDate, !e?.attachedAt?.from && !e?.attachedAt?.to && delete e.attachedAt, e;
|
|
2815
2864
|
}
|
|
2816
|
-
},
|
|
2865
|
+
}, _r = class {
|
|
2817
2866
|
user;
|
|
2818
2867
|
status;
|
|
2819
2868
|
statusDetail;
|
|
@@ -2823,9 +2872,9 @@ var Jn = class e {
|
|
|
2823
2872
|
let t = e?.createdAt;
|
|
2824
2873
|
this.createdAt = A(t) ? w(t) : e?.createdAt ?? /* @__PURE__ */ new Date();
|
|
2825
2874
|
}
|
|
2826
|
-
},
|
|
2875
|
+
}, vr = class extends e {
|
|
2827
2876
|
getOrders(e, t, n, r) {
|
|
2828
|
-
return this.getTypedPaginated(
|
|
2877
|
+
return this.getTypedPaginated(or, "/internal/orders", e, t, n, {}, void 0, r);
|
|
2829
2878
|
}
|
|
2830
2879
|
getOrdersCount(e, t) {
|
|
2831
2880
|
return this.get("/internal/orders/count", e ? { filters: JSON.stringify((e instanceof ee ? e : new ee(e)).toPrimitive()) } : {}, void 0, void 0, t).then((e) => e.count);
|
|
@@ -2890,7 +2939,7 @@ var Jn = class e {
|
|
|
2890
2939
|
return this.patch(`/internal/orders/${e}/status`, { statusDetail: t }, (e) => new Q(e.data));
|
|
2891
2940
|
}
|
|
2892
2941
|
getOrderStatusHistory(e) {
|
|
2893
|
-
return this.getTypedList(
|
|
2942
|
+
return this.getTypedList(_r, `/internal/orders/${e}/history`);
|
|
2894
2943
|
}
|
|
2895
2944
|
getOrderPrintHtml(e, t) {
|
|
2896
2945
|
return this.get(`/internal/orders/${e}/print/view`, { ...t }, (e) => new Blob([e.data], { type: "text/html" }));
|
|
@@ -2937,7 +2986,7 @@ var Jn = class e {
|
|
|
2937
2986
|
warehouse_id: n
|
|
2938
2987
|
}, (e) => e.data, void 0, r);
|
|
2939
2988
|
}
|
|
2940
|
-
},
|
|
2989
|
+
}, yr = Symbol("currentOrder"), br = class {
|
|
2941
2990
|
client;
|
|
2942
2991
|
product;
|
|
2943
2992
|
cost;
|
|
@@ -2946,36 +2995,36 @@ var Jn = class e {
|
|
|
2946
2995
|
constructor(e) {
|
|
2947
2996
|
this.client = new U(e?.client), this.product = new R(e?.product), this.cost = e?.cost ?? 0, this.costCoefficient = e?.costCoefficient ?? 0, this.source = e?.source ?? Ct.Product;
|
|
2948
2997
|
}
|
|
2949
|
-
},
|
|
2998
|
+
}, xr = (e) => e ? nt({
|
|
2950
2999
|
cities: e.cities?.map((e) => e.id),
|
|
2951
3000
|
clients: e.clients?.map((e) => e.id),
|
|
2952
3001
|
managers: e.managers?.map((e) => e.id),
|
|
2953
3002
|
partnerGroups: e.partnerGroups?.map((e) => e.id),
|
|
2954
3003
|
salesDirections: e.salesDirections?.map((e) => e.id),
|
|
2955
3004
|
hideNotActive: e.hideNotActive
|
|
2956
|
-
}, (e) => k(e) || (Ye(e) || $e(e)) && Ze(e)) : {},
|
|
3005
|
+
}, (e) => k(e) || (Ye(e) || $e(e)) && Ze(e)) : {}, Sr = (e) => {
|
|
2957
3006
|
let t = {};
|
|
2958
3007
|
return e.from && (e.from.coefficient || e.from.value) && (t.from = {}, e.from.coefficient && (t.from.priceCoefficientId = e.from.coefficient.id), e.from.value && (t.from.increasePercent = e.from.value)), e.to && (e.to.coefficient || e.to.value) && (t.to = {}, e.to.coefficient && (t.to.priceCoefficientId = e.to.coefficient.id), e.to.value && (t.to.increasePercent = e.to.value)), t;
|
|
2959
|
-
},
|
|
3008
|
+
}, Cr = class extends u {
|
|
2960
3009
|
analyzeProductPrices(e, t, n) {
|
|
2961
3010
|
return this.get(`/internal/price/products/${e}/analyze`, {
|
|
2962
|
-
...
|
|
2963
|
-
filters:
|
|
2964
|
-
}, (e) => _.instanceListInitializer(
|
|
3011
|
+
...Sr(t),
|
|
3012
|
+
filters: xr(n)
|
|
3013
|
+
}, (e) => _.instanceListInitializer(br, e.data));
|
|
2965
3014
|
}
|
|
2966
3015
|
analyzeCategoryPrices(e, t, n) {
|
|
2967
3016
|
return this.get(`/internal/price/categories/${e}/analyze`, {
|
|
2968
|
-
...
|
|
2969
|
-
filters:
|
|
2970
|
-
}, (e) => _.instanceListInitializer(
|
|
3017
|
+
...Sr(t),
|
|
3018
|
+
filters: xr(n)
|
|
3019
|
+
}, (e) => _.instanceListInitializer(br, e.data));
|
|
2971
3020
|
}
|
|
2972
3021
|
analyzeCategoryPricesBySquare(e, t, n) {
|
|
2973
3022
|
return this.get(`/internal/price/categories/${e}/analyze/square`, {
|
|
2974
3023
|
...t,
|
|
2975
|
-
filters:
|
|
2976
|
-
}, (e) => _.instanceListInitializer(
|
|
3024
|
+
filters: xr(n)
|
|
3025
|
+
}, (e) => _.instanceListInitializer(br, e.data));
|
|
2977
3026
|
}
|
|
2978
|
-
},
|
|
3027
|
+
}, wr = class {
|
|
2979
3028
|
cost;
|
|
2980
3029
|
isLowCost;
|
|
2981
3030
|
isRetail;
|
|
@@ -2989,20 +3038,20 @@ var Jn = class e {
|
|
|
2989
3038
|
constructor(e) {
|
|
2990
3039
|
this.cost = e.cost ?? 0, this.isLowCost = e.isLowCost ?? !1, this.isRetail = e.isRetail ?? !1, this.costDate = A(e.costDate) ? w(e.costDate) : e.costDate ?? /* @__PURE__ */ new Date(), this.discountName = e.discountName, this.priceTemplateName = e.priceTemplateName, this.product = e.product ? new L(e.product) : void 0, this.client = e.client ? new F(e.client) : void 0, this.executor = e.executor ? new F(e.executor) : void 0, this.currency = e.currency ? new o(e.currency) : void 0;
|
|
2991
3040
|
}
|
|
2992
|
-
},
|
|
3041
|
+
}, Tr = class extends L {
|
|
2993
3042
|
history;
|
|
2994
3043
|
constructor(e) {
|
|
2995
|
-
super(e), this.history = j(e.history, (e) => new
|
|
3044
|
+
super(e), this.history = j(e.history, (e) => new wr(e));
|
|
2996
3045
|
}
|
|
2997
|
-
},
|
|
3046
|
+
}, Er = class extends u {
|
|
2998
3047
|
getProductPriceHistory(e) {
|
|
2999
3048
|
let t = v().config.dateFormats.api, n = nt(tt(e, { costDate: {
|
|
3000
3049
|
from: Xe(e.costDate?.from) ? C(e.costDate.from, t) : e.costDate?.from,
|
|
3001
3050
|
to: Xe(e.costDate?.to) ? C(e.costDate.to, t) : e.costDate?.to
|
|
3002
3051
|
} }), (e) => k(e) || (Ye(e) || $e(e)) && Ze(e)), r = e.product?.[0] ?? 0;
|
|
3003
|
-
return delete n.product, this.get(`/internal/price/products/${r}/history`, n).then((e) => [new
|
|
3052
|
+
return delete n.product, this.get(`/internal/price/products/${r}/history`, n).then((e) => [new Tr(tt(e[0], { history: e }))]);
|
|
3004
3053
|
}
|
|
3005
|
-
},
|
|
3054
|
+
}, Dr = class {
|
|
3006
3055
|
createdAt;
|
|
3007
3056
|
creator;
|
|
3008
3057
|
files;
|
|
@@ -3016,7 +3065,7 @@ var Jn = class e {
|
|
|
3016
3065
|
}
|
|
3017
3066
|
}, $ = /* @__PURE__ */ function(e) {
|
|
3018
3067
|
return e[e.Initiated = 1] = "Initiated", e[e.InfoRequired = 2] = "InfoRequired", e[e.Pending = 3] = "Pending", e[e.Completed = 4] = "Completed", e;
|
|
3019
|
-
}({}),
|
|
3068
|
+
}({}), Or = class extends M {
|
|
3020
3069
|
status;
|
|
3021
3070
|
closedAt;
|
|
3022
3071
|
isRead;
|
|
@@ -3037,15 +3086,15 @@ var Jn = class e {
|
|
|
3037
3086
|
getConsiderationDays(e = /* @__PURE__ */ new Date()) {
|
|
3038
3087
|
return Math.max(Te(this.closedAt ?? e, this.createdAt), 0);
|
|
3039
3088
|
}
|
|
3040
|
-
},
|
|
3089
|
+
}, kr = class extends Or {
|
|
3041
3090
|
items;
|
|
3042
3091
|
constructor(e) {
|
|
3043
|
-
super(e), this.items = j(e?.items ?? [], (e) => new
|
|
3092
|
+
super(e), this.items = j(e?.items ?? [], (e) => new Dr(e));
|
|
3044
3093
|
}
|
|
3045
3094
|
isClientMessage(e) {
|
|
3046
3095
|
return e.creator?.id === this.client.id;
|
|
3047
3096
|
}
|
|
3048
|
-
},
|
|
3097
|
+
}, Ar = class extends N {
|
|
3049
3098
|
id;
|
|
3050
3099
|
statuses;
|
|
3051
3100
|
createdAt;
|
|
@@ -3081,7 +3130,7 @@ var Jn = class e {
|
|
|
3081
3130
|
}
|
|
3082
3131
|
return this;
|
|
3083
3132
|
}
|
|
3084
|
-
},
|
|
3133
|
+
}, jr = class e {
|
|
3085
3134
|
static apiCodes = {
|
|
3086
3135
|
[$.Initiated]: "initiated",
|
|
3087
3136
|
[$.InfoRequired]: "info_required",
|
|
@@ -3094,21 +3143,21 @@ var Jn = class e {
|
|
|
3094
3143
|
static toApiCodes(t) {
|
|
3095
3144
|
return j(t, (t) => e.toApiCode(t));
|
|
3096
3145
|
}
|
|
3097
|
-
},
|
|
3146
|
+
}, Mr = class extends e {
|
|
3098
3147
|
getReclamationsList(e, t, n, r, i = !1) {
|
|
3099
|
-
return this.getTypedPaginated(
|
|
3148
|
+
return this.getTypedPaginated(Or, "/internal/reclamations", e, t, n, {}, i, r);
|
|
3100
3149
|
}
|
|
3101
3150
|
getReclamation(e, t, n = !1) {
|
|
3102
|
-
return this.get(`/internal/reclamations/${e}`, {}, (e) => new
|
|
3151
|
+
return this.get(`/internal/reclamations/${e}`, {}, (e) => new kr(e.data), n, t);
|
|
3103
3152
|
}
|
|
3104
3153
|
createMessage(e, t, n = {}) {
|
|
3105
|
-
return this.post(`/internal/reclamations/${e}/messages`, t, (e) => new
|
|
3154
|
+
return this.post(`/internal/reclamations/${e}/messages`, t, (e) => new kr(e.data), n);
|
|
3106
3155
|
}
|
|
3107
3156
|
deleteReclamation(e) {
|
|
3108
3157
|
return this.delete(`/internal/reclamations/${e}`);
|
|
3109
3158
|
}
|
|
3110
3159
|
restoreReclamation(e) {
|
|
3111
|
-
return this.post(`/internal/reclamations/${e}/restore`, {}, (e) => new
|
|
3160
|
+
return this.post(`/internal/reclamations/${e}/restore`, {}, (e) => new kr(e.data));
|
|
3112
3161
|
}
|
|
3113
3162
|
downloadReclamation(e, t = !1) {
|
|
3114
3163
|
return this.getBlob(`/internal/reclamations/${e}/download`, {}, (e) => new Blob([e.request.response], { type: "application/pdf" }), t);
|
|
@@ -3116,18 +3165,18 @@ var Jn = class e {
|
|
|
3116
3165
|
getUpdates(e, t = !1) {
|
|
3117
3166
|
return this.get("/internal/reclamations/updates", {}, void 0, t, e);
|
|
3118
3167
|
}
|
|
3119
|
-
},
|
|
3168
|
+
}, Nr = class {
|
|
3120
3169
|
products = [];
|
|
3121
3170
|
productCategories = [];
|
|
3122
3171
|
constructor(e) {
|
|
3123
3172
|
e?.products && (this.products = e.products.map((e) => new L(e))), e?.productCategories && (this.productCategories = e.productCategories.map((e) => new L(e)));
|
|
3124
3173
|
}
|
|
3125
|
-
},
|
|
3174
|
+
}, Pr = class extends u {
|
|
3126
3175
|
getProductCategoryRecommendations(e) {
|
|
3127
|
-
return this.get(`/internal/catalog/recommendations/categories/${e.id}`, {}, (e) => new
|
|
3176
|
+
return this.get(`/internal/catalog/recommendations/categories/${e.id}`, {}, (e) => new Nr(e.data));
|
|
3128
3177
|
}
|
|
3129
3178
|
getProductRecommendations(e) {
|
|
3130
|
-
return this.get(`/internal/catalog/recommendations/products/${e.id}`, {}, (e) => new
|
|
3179
|
+
return this.get(`/internal/catalog/recommendations/products/${e.id}`, {}, (e) => new Nr(e.data));
|
|
3131
3180
|
}
|
|
3132
3181
|
saveProductCategoryRecommendations(e, t) {
|
|
3133
3182
|
return this.post(`/internal/catalog/recommendations/categories/${e.id}`, {
|
|
@@ -3141,7 +3190,7 @@ var Jn = class e {
|
|
|
3141
3190
|
products: t.products.map((e) => e.id)
|
|
3142
3191
|
});
|
|
3143
3192
|
}
|
|
3144
|
-
},
|
|
3193
|
+
}, Fr = class {
|
|
3145
3194
|
static generateUndefinedInstance(e, t = "- Не определён -") {
|
|
3146
3195
|
return new e({
|
|
3147
3196
|
id: 0,
|
|
@@ -3152,13 +3201,13 @@ var Jn = class e {
|
|
|
3152
3201
|
static isUndefinedInstance(e) {
|
|
3153
3202
|
return e.id === 0 && e.slug === "-undefined-";
|
|
3154
3203
|
}
|
|
3155
|
-
},
|
|
3204
|
+
}, Ir = class {
|
|
3156
3205
|
name;
|
|
3157
3206
|
content;
|
|
3158
3207
|
constructor(e) {
|
|
3159
3208
|
this.name = e.name, this.content = e.content;
|
|
3160
3209
|
}
|
|
3161
|
-
},
|
|
3210
|
+
}, Lr = class {
|
|
3162
3211
|
resourceType;
|
|
3163
3212
|
resourceId;
|
|
3164
3213
|
h1;
|
|
@@ -3168,42 +3217,42 @@ var Jn = class e {
|
|
|
3168
3217
|
meta;
|
|
3169
3218
|
tags;
|
|
3170
3219
|
constructor(e) {
|
|
3171
|
-
this.resourceType = new pe(e?.resourceType), this.resourceId = e?.resourceId ?? "", this.h1 = e?.h1, this.title = e?.title, this.description = e?.description, this.keywords = e?.keywords, this.meta = e?.meta?.map((e) => new
|
|
3220
|
+
this.resourceType = new pe(e?.resourceType), this.resourceId = e?.resourceId ?? "", this.h1 = e?.h1, this.title = e?.title, this.description = e?.description, this.keywords = e?.keywords, this.meta = e?.meta?.map((e) => new Ir(e)) ?? [], this.tags = e?.tags;
|
|
3172
3221
|
}
|
|
3173
|
-
},
|
|
3222
|
+
}, Rr = class extends u {
|
|
3174
3223
|
getResourceSeoData(e, t) {
|
|
3175
|
-
return this.get(`/internal/seo/${e.slug}/${t}`, {}, (e) => new
|
|
3224
|
+
return this.get(`/internal/seo/${e.slug}/${t}`, {}, (e) => new Lr(e.data));
|
|
3176
3225
|
}
|
|
3177
3226
|
saveResourceSeoData(e, t = {}) {
|
|
3178
|
-
return this.post(`/internal/seo/${e.resourceType.slug}/${e.resourceId}`, e, (e) => new
|
|
3227
|
+
return this.post(`/internal/seo/${e.resourceType.slug}/${e.resourceId}`, e, (e) => new Lr(e.data), t);
|
|
3179
3228
|
}
|
|
3180
3229
|
deleteResourceSeoData(e, t) {
|
|
3181
3230
|
return this.delete(`/internal/seo/${e.slug}/${t}`);
|
|
3182
3231
|
}
|
|
3183
|
-
},
|
|
3232
|
+
}, zr = class extends d {
|
|
3184
3233
|
text;
|
|
3185
3234
|
searchCount;
|
|
3186
3235
|
lastSearchedAt;
|
|
3187
3236
|
constructor(e) {
|
|
3188
3237
|
super(e), this.text = e?.text ?? "", this.searchCount = e?.searchCount ?? 0, this.lastSearchedAt = s.parse(e?.lastSearchedAt);
|
|
3189
3238
|
}
|
|
3190
|
-
},
|
|
3239
|
+
}, Br = class extends u {
|
|
3191
3240
|
getSearchProductsStatistics(e, t) {
|
|
3192
|
-
return this.getTypedList(
|
|
3241
|
+
return this.getTypedList(zr, "/internal/statistics/search/products", { date: s.periodToApiFormat(e) }, !1, t);
|
|
3193
3242
|
}
|
|
3194
3243
|
removeSearchProductStatistic(e) {
|
|
3195
3244
|
return this.delete(`/internal/statistics/search/products/${e}`);
|
|
3196
3245
|
}
|
|
3197
|
-
},
|
|
3246
|
+
}, Vr = /* @__PURE__ */ function(e) {
|
|
3198
3247
|
return e[e.Undetermined = 0] = "Undetermined", e[e.Complete = 1] = "Complete", e[e.Incomplete = 2] = "Incomplete", e;
|
|
3199
|
-
}({}),
|
|
3248
|
+
}({}), Hr = class e {
|
|
3200
3249
|
static isBlocked(e, t) {
|
|
3201
|
-
return t && e ===
|
|
3250
|
+
return t && e === Vr.Incomplete;
|
|
3202
3251
|
}
|
|
3203
3252
|
static getValidationResult(t, n) {
|
|
3204
|
-
return e.isBlocked(t, n) ? new l("Проверьте адрес и выберите более точный вариант из подсказок", "error") : t ===
|
|
3253
|
+
return e.isBlocked(t, n) ? new l("Проверьте адрес и выберите более точный вариант из подсказок", "error") : t === Vr.Incomplete || t === Vr.Undetermined ? new l("Проверьте правильность адреса", "warning") : void 0;
|
|
3205
3254
|
}
|
|
3206
|
-
},
|
|
3255
|
+
}, Ur = class extends u {
|
|
3207
3256
|
searchAddresses(e) {
|
|
3208
3257
|
return this.execSuggestionQuery("/public/suggestions/address", e);
|
|
3209
3258
|
}
|
|
@@ -3221,26 +3270,26 @@ var Jn = class e {
|
|
|
3221
3270
|
}), t;
|
|
3222
3271
|
});
|
|
3223
3272
|
}
|
|
3224
|
-
},
|
|
3273
|
+
}, Wr = class extends u {
|
|
3225
3274
|
constructor() {
|
|
3226
3275
|
super(), this.baseUrl = `${v().config.http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
|
|
3227
3276
|
}
|
|
3228
3277
|
getAccessToken() {
|
|
3229
3278
|
return this.get("internal/users/current-tokens").then((e) => e.accessToken);
|
|
3230
3279
|
}
|
|
3231
|
-
},
|
|
3280
|
+
}, Gr = class {
|
|
3232
3281
|
user;
|
|
3233
3282
|
salesDirection;
|
|
3234
3283
|
constructor(e) {
|
|
3235
3284
|
this.user = new F(e?.user), this.salesDirection = new g(e?.salesDirection);
|
|
3236
3285
|
}
|
|
3237
|
-
},
|
|
3286
|
+
}, Kr = class extends ye {
|
|
3238
3287
|
cities;
|
|
3239
3288
|
users;
|
|
3240
3289
|
constructor(e) {
|
|
3241
|
-
super(e), this.cities = e?.cities?.map((e) => new n(e)) ?? [], this.users = e?.users?.map((e) => new
|
|
3290
|
+
super(e), this.cities = e?.cities?.map((e) => new n(e)) ?? [], this.users = e?.users?.map((e) => new Gr(e)) ?? [];
|
|
3242
3291
|
}
|
|
3243
|
-
},
|
|
3292
|
+
}, qr = class extends N {
|
|
3244
3293
|
id;
|
|
3245
3294
|
name;
|
|
3246
3295
|
abbr;
|
|
@@ -3255,27 +3304,27 @@ var Jn = class e {
|
|
|
3255
3304
|
}
|
|
3256
3305
|
return this;
|
|
3257
3306
|
}
|
|
3258
|
-
},
|
|
3307
|
+
}, Jr = class extends e {
|
|
3259
3308
|
getRegionsList(e, t, n) {
|
|
3260
3309
|
return this.getTypedPaginated(ye, "/internal/users/regions", e, t, n);
|
|
3261
3310
|
}
|
|
3262
3311
|
getRegion(e) {
|
|
3263
|
-
return this.get(`/internal/users/regions/${e}`, {}, (e) => new
|
|
3312
|
+
return this.get(`/internal/users/regions/${e}`, {}, (e) => new Kr(e.data));
|
|
3264
3313
|
}
|
|
3265
3314
|
createRegion(e, t = {}) {
|
|
3266
|
-
return this.post("/internal/users/regions", e, (e) => new
|
|
3315
|
+
return this.post("/internal/users/regions", e, (e) => new Kr(e.data), t);
|
|
3267
3316
|
}
|
|
3268
3317
|
updateRegion(e, t, n = {}) {
|
|
3269
|
-
return this.patch(`/internal/users/regions/${e}`, t, (e) => new
|
|
3318
|
+
return this.patch(`/internal/users/regions/${e}`, t, (e) => new Kr(e.data), n);
|
|
3270
3319
|
}
|
|
3271
3320
|
removeRegion(e) {
|
|
3272
3321
|
return this.delete(`/internal/users/regions/${e}`);
|
|
3273
3322
|
}
|
|
3274
3323
|
getRegionEmployees(e) {
|
|
3275
|
-
return this.getTypedList(
|
|
3324
|
+
return this.getTypedList(Gr, `/internal/users/regions/${e}/users`);
|
|
3276
3325
|
}
|
|
3277
3326
|
attachRegionEmployee(e, t, n) {
|
|
3278
|
-
return this.post(`/internal/users/regions/${e}/users/${t}`, { salesDirectionId: n }, (e) => new
|
|
3327
|
+
return this.post(`/internal/users/regions/${e}/users/${t}`, { salesDirectionId: n }, (e) => new Gr(e.data));
|
|
3279
3328
|
}
|
|
3280
3329
|
detachRegionEmployee(e, t, n) {
|
|
3281
3330
|
return this.request({
|
|
@@ -3286,4 +3335,4 @@ var Jn = class e {
|
|
|
3286
3335
|
}
|
|
3287
3336
|
};
|
|
3288
3337
|
//#endregion
|
|
3289
|
-
export {
|
|
3338
|
+
export { Vr as AddressQualityEnum, Hr as AddressQualityHelper, sn as BankAccount, dt as BlogPost, ct as BlogPostMediaFile, st as BlogPostMediaTypeEnum, lt as BlogPostPublicationStatusEnum, ut as BlogPostShortInfo, ft as BlogPostsListFilters, pt as BlogProvider, Dt as CalculationTypeEnum, X as CalendarHelper, V as Cart, Et as CartProvider, Kt as CatalogProvider, yt as CatalogableItem, H as Category, Gt as CategoryFilter, Ut as CategoryFilterSetting, Wt as CategoryFilterValue, Vt as CategoryPricingRule, gn as Client, yn as ClientAdditionalData, hn as ClientBaseInfo, At as ClientCategory, Sn as ClientDataProvider, Rt as ClientPriceCatalogableItem, Bt as ClientPriceCategory, zt as ClientPriceProduct, qt as ClientPriceProvider, Jt as ClientPriceTemplateProvider, z as ClientProduct, Zt as ClientProductCategoryDataProvider, Qt as ClientProductDataProvider, U as ClientShortInfo, on as ClientsAdditionalDataRequestTypeEnum, _n as ClientsListFilters, L as CodedIdentity, En as ConfiguratorProvider, Tn as ConfiguratorsEnum, cn as Contact, J as ContactPerson, xn as ContactPersonRelated, bn as ContactRelation, ln as ContragentBase, mn as ContragentFactory, dn as ContragentIc, un as ContragentPerson, pn as ContragentUlNr, fn as ContragentUlR, Ct as CostSourceEnum, M as CreatableIdentity, Pt as Curator, Ur as DataSuggestionProvider, Nn as DateTimeProvider, Ft as DeletableIdentity, mt as DeletableNamedIdentity, Y as DeliveryAddress, Bn as Discount, In as DiscountClient, Vn as DiscountClientEligibility, Ln as DiscountConditions, Un as DiscountProvider, ht as DiscountShortInfo, Rn as DiscountStateEnum, zn as DiscountStateHelper, Hn as DiscountsListFilters, Wn as ExternalSeoFullInfo, Gn as ExternalSeoListFilters, Kn as ExternalSeoProvider, Jn as Faq, qn as FaqGroup, Yn as FaqProvider, Ht as FilterSettings, bt as HiddenCatalogableItem, xt as Image, Qn as ManagerDataFactory, er as ManagerProvider, $n as ManagersListFilters, Ir as MetaTagItem, Z as Offer, nr as OfferActualization, tr as OfferActualizationStatus, lr as OfferHelper, rr as OfferShortInfo, cr as OffersDataProvider, ar as OffersListFilters, dr as OperatorFullInfo, pr as OperatorProvider, ur as OperatorShortInfo, fr as OperatorsListFilters, Q as Order, mr as OrderAction, hr as OrderEditorData, or as OrderInfo, sr as OrderItem, wt as OrderItemBase, vn as OrderShortInfo, _r as OrderStatusHistoryInfo, vr as OrdersDataProvider, gr as OrdersListFilters, N as PaginationFiltersBase, br as PriceAnalyze, Cr as PriceAnalyzeProvider, jt as PriceCatalogableItem, Er as PriceHistoryDataProvider, wr as PriceHistoryItem, I as PriceTemplate, Nt as PriceTemplateCategory, W as PriceTemplateClient, Mt as PriceTemplateICatalogableItem, It as PriceTemplateProduct, $t as PriceTemplateProvider, q as PricingRole, en as PricingRoleProvider, St as PrimaryCatalogableItem, R as Product, Yt as ProductCategoryDataProvider, Xt as ProductDataProvider, Ot as ProductFilterTypeEnum, gt as ProductPriceCoefficient, Tr as ProductPriceHistory, vt as ProductUnit, ir as ProfstroyOfferItem, tn as PropertiesProvider, G as Property, K as PropertyValue, kr as Reclamation, Dr as ReclamationItem, Mr as ReclamationProvider, Or as ReclamationShortInfo, $ as ReclamationStatusEnum, jr as ReclamationStatusHelper, Ar as ReclamationsListFilters, Pr as RecommendationsDataProvider, Nr as RecommendationsList, Fr as ReferenceDataFactory, Pn as STANDARD_PERIOD_GROUPS, Fn as STANDARD_PERIOD_SECTIONS, zr as SearchProductStatistic, Lr as Seo, Rr as SeoDataProvider, Br as StatisticsProvider, _t as StockCount, On as TableDataPagination, Dn as TableDataPaginationRequestParams, kn as TableDataSortRequestParams, nn as TemplateProductCategoryDataProvider, Lt as TemplatesListFilters, Zn as UnitsHelper, Cn as UnknownClientDataProvider, Wr as UserAuthDataProvider, Kr as UserRegion, Gr as UserRegionEmployee, Jr as UserRegionProvider, qr as UserRegionsListFilters, F as UserShortInfo, wn as VersionConfig, yr as currentOrderInjectionKey, An as daysAgoIso, rn as findCatalogItemByIdRecursive, an as flattenCatalogItems, Xn as formatPercentChange, Mn as formatRelativeDate, jn as pluralize };
|