@snabcentr/common-lib 1.67.0 → 1.67.1

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.
@@ -4,6 +4,6 @@
4
4
  "name": "public-api",
5
5
  "src": "src/public-api.ts",
6
6
  "isEntry": true,
7
- "integrity": "sha384-GcvLMknU0kLc5ibSJt6CBNZggiyl0fJDq9R1sbI9OQgiVU7u0TJmiuuyuXm7W64U"
7
+ "integrity": "sha384-QLb1HFqyRbTxpIqV0KqWRPahzIqhPJhY1/gRSyxsZQ7H/HVyVD/2dyYL5+TdGo4Y"
8
8
  }
9
9
  }
@@ -1,6 +1,4 @@
1
- ## 1.67.0 (2025-08-29)
1
+ ## 1.67.1 (2025-08-29)
2
2
 
3
- ### fixed (1 change)
4
-
5
- - [#12080: Исправлены ошибки выполнения запросов](web_soft/libs/ts/snabcentr-common-lib@4d8bc8471ad21a6affc2366f31df9540c8133756) ([merge request](web_soft/libs/ts/snabcentr-common-lib!127))
3
+ No changes.
6
4
 
@@ -2232,6 +2232,22 @@ class Xr extends rr {
2232
2232
  this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo;
2233
2233
  }
2234
2234
  }
2235
+ class It extends h {
2236
+ /**
2237
+ * Инициализирует экземпляр класса {@link UserAuthDataProvider}.
2238
+ */
2239
+ constructor() {
2240
+ super(), this.baseUrl = `${D.getConfig().http.portalApiUrl}/api`, this.interceptorIds.request.authRequestInterceptor && this.httpClient.interceptors.request.eject(this.interceptorIds.request.authRequestInterceptor);
2241
+ }
2242
+ /**
2243
+ * Функция для получения обновленных токенов доступа.
2244
+ *
2245
+ * @deprecated Данный механизм будет полностью удален при полном переходе на Vue приложение.
2246
+ */
2247
+ getAccessToken() {
2248
+ return this.get("internal/users/current-tokens").then((r) => r.accessToken);
2249
+ }
2250
+ }
2235
2251
  class Zr extends h {
2236
2252
  /**
2237
2253
  * Возвращает данные о текущем пользователе.
@@ -2253,7 +2269,7 @@ const et = X("__user_state_private", () => {
2253
2269
  */
2254
2270
  currentUser: r
2255
2271
  };
2256
- }), It = X("user_state", () => ({
2272
+ }), Lt = X("user_state", () => ({
2257
2273
  /**
2258
2274
  * Данные о текущем пользователе.
2259
2275
  */
@@ -2494,7 +2510,7 @@ class nt {
2494
2510
  this.date = m(r == null ? void 0 : r.date) ? y(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
2495
2511
  }
2496
2512
  }
2497
- class Lt {
2513
+ class kt {
2498
2514
  /**
2499
2515
  * Инициализирует экземпляр класса {@link AppBaseConfig}.
2500
2516
  *
@@ -2544,7 +2560,7 @@ class Lt {
2544
2560
  };
2545
2561
  }
2546
2562
  }
2547
- class kt extends h {
2563
+ class dt extends h {
2548
2564
  /**
2549
2565
  * Возвращает данные о результатах поиска категорий и товаров.
2550
2566
  *
@@ -2575,7 +2591,7 @@ class kt extends h {
2575
2591
  return s && (c += `&category_id=${s}`), i && (c += `&client_id=${i}`), c;
2576
2592
  }
2577
2593
  }
2578
- class dt extends h {
2594
+ class xt extends h {
2579
2595
  /**
2580
2596
  * Импортирует цены клиента из CSV файла.
2581
2597
  *
@@ -2774,7 +2790,7 @@ class dt extends h {
2774
2790
  return this.post(`/internal/clients/${r}/price/commercial-offer/send`, e);
2775
2791
  }
2776
2792
  }
2777
- class xt extends h {
2793
+ class Nt extends h {
2778
2794
  /**
2779
2795
  * Возвращает список шаблонов прайс-листа привязанных к клиенту.
2780
2796
  *
@@ -2866,7 +2882,7 @@ class xt extends h {
2866
2882
  return this.delete(`/internal/clients/${r}/price/templates/${e}/${s}`);
2867
2883
  }
2868
2884
  }
2869
- class Nt extends h {
2885
+ class Ot extends h {
2870
2886
  /**
2871
2887
  * Возвращает список данных о корневых категориях.
2872
2888
  *
@@ -2958,7 +2974,7 @@ class Nt extends h {
2958
2974
  });
2959
2975
  }
2960
2976
  }
2961
- class Ot extends h {
2977
+ class qt extends h {
2962
2978
  /**
2963
2979
  * Возвращает данные об указанном продукте.
2964
2980
  *
@@ -3020,7 +3036,7 @@ class Ot extends h {
3020
3036
  });
3021
3037
  }
3022
3038
  }
3023
- class qt extends h {
3039
+ class Ut extends h {
3024
3040
  /**
3025
3041
  * Возвращает список данных о корневых категориях указанного клиента.
3026
3042
  *
@@ -3082,7 +3098,7 @@ class qt extends h {
3082
3098
  );
3083
3099
  }
3084
3100
  }
3085
- class Ut extends h {
3101
+ class Gt extends h {
3086
3102
  /**
3087
3103
  * Возвращает данные об указанном продукте для указанного клиента.
3088
3104
  *
@@ -3193,7 +3209,7 @@ class ve extends h {
3193
3209
  return e && (u.filters = JSON.stringify((e instanceof ne ? e : new ne(e)).toPrimitive())), Le(s) || (u.sort = Je(s) ? s : [s]), o && (u = { ...u, ...o }), this.get(r, u, c, p);
3194
3210
  }
3195
3211
  }
3196
- class Gt extends ve {
3212
+ class Mt extends ve {
3197
3213
  /**
3198
3214
  * Возвращает список шаблонов прайс-листа.
3199
3215
  *
@@ -3397,7 +3413,7 @@ class Gt extends ve {
3397
3413
  );
3398
3414
  }
3399
3415
  }
3400
- class Mt extends h {
3416
+ class Ft extends h {
3401
3417
  /**
3402
3418
  * Возвращает список ролей ценообразования.
3403
3419
  *
@@ -3477,7 +3493,7 @@ class Mt extends h {
3477
3493
  );
3478
3494
  }
3479
3495
  }
3480
- class Ft extends ve {
3496
+ class Bt extends ve {
3481
3497
  /**
3482
3498
  * Возвращает пагинированный список свойств.
3483
3499
  *
@@ -3849,7 +3865,7 @@ class Ft extends ve {
3849
3865
  return this.post(`/internal/catalog/categories/${r}/image`, { image: e });
3850
3866
  }
3851
3867
  }
3852
- class Bt extends h {
3868
+ class Ht extends h {
3853
3869
  /**
3854
3870
  * Возвращает данные о рекомендациях указанной категории продуктов.
3855
3871
  *
@@ -4321,7 +4337,7 @@ class He extends ce {
4321
4337
  this.contragents = ((s = e == null ? void 0 : e.contragents) == null ? void 0 : s.map((p) => me.createInstance(p))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((p) => new Y(p))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((p) => new F(p))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((p) => new fe(p))) ?? [], this.channelPrimaryInterest = new sr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new nr(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new J(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.isExcludedFromMsCallsToClients = (e == null ? void 0 : e.isExcludedFromMsCallsToClients) ?? !1, this.preferredWarehouse = e != null && e.preferredWarehouse ? new we(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4322
4338
  }
4323
4339
  }
4324
- class Ht {
4340
+ class zt {
4325
4341
  /**
4326
4342
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4327
4343
  *
@@ -4572,7 +4588,7 @@ class ht {
4572
4588
  this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4573
4589
  }
4574
4590
  }
4575
- class zt extends ht {
4591
+ class jt extends ht {
4576
4592
  /**
4577
4593
  * Инициализирует экземпляр класса {@link DataTablePagination}.
4578
4594
  *
@@ -4603,7 +4619,7 @@ class zt extends ht {
4603
4619
  this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
4604
4620
  }
4605
4621
  }
4606
- class jt {
4622
+ class Wt {
4607
4623
  /**
4608
4624
  * Инициализирует экземпляр класса {@link ISortRequestParams}.
4609
4625
  *
@@ -4621,7 +4637,7 @@ class jt {
4621
4637
  this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4622
4638
  }
4623
4639
  }
4624
- class Wt extends ve {
4640
+ class Vt extends ve {
4625
4641
  /**
4626
4642
  * Возвращает данные об указанном клиенте.
4627
4643
  *
@@ -5348,7 +5364,7 @@ class Wt extends ve {
5348
5364
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5349
5365
  }
5350
5366
  }
5351
- class Vt extends h {
5367
+ class Et extends h {
5352
5368
  /**
5353
5369
  * Выполняет проверку занят ли указанный номер телефона.
5354
5370
  *
@@ -5362,7 +5378,7 @@ class Vt extends h {
5362
5378
  });
5363
5379
  }
5364
5380
  }
5365
- class Et extends h {
5381
+ class Jt extends h {
5366
5382
  /**
5367
5383
  * Возвращает настройки указанного конфигуратора для указанной категории.
5368
5384
  *
@@ -5433,7 +5449,7 @@ class Et extends h {
5433
5449
  return this.delete(`internal/catalog/categories/${r.id}/configurators/${(s = r.properties) == null ? void 0 : s.editor}/template/${e}`);
5434
5450
  }
5435
5451
  }
5436
- class Jt {
5452
+ class Kt {
5437
5453
  /**
5438
5454
  * Возвращает диапазон дат по умолчанию.
5439
5455
  */
@@ -5489,7 +5505,7 @@ const E = class E {
5489
5505
  */
5490
5506
  t(E, "linearValues", ["пог.м.", "м.", "м2"]);
5491
5507
  let ze = E;
5492
- class Kt {
5508
+ class Qt {
5493
5509
  /**
5494
5510
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5495
5511
  */
@@ -5692,7 +5708,7 @@ class mt extends ur {
5692
5708
  this.products = (e.products ?? []).map((s) => new gt(s)), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? me.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment;
5693
5709
  }
5694
5710
  }
5695
- class Qt extends ve {
5711
+ class Yt extends ve {
5696
5712
  /**
5697
5713
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
5698
5714
  *
@@ -5773,7 +5789,7 @@ const Te = (n) => {
5773
5789
  const r = {};
5774
5790
  return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
5775
5791
  };
5776
- class Yt extends h {
5792
+ class Xt extends h {
5777
5793
  /**
5778
5794
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
5779
5795
  *
@@ -5891,7 +5907,7 @@ class We {
5891
5907
  this.resourceType = new ir(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((s) => new ft(s))) ?? [];
5892
5908
  }
5893
5909
  }
5894
- class Xt extends h {
5910
+ class Zt extends h {
5895
5911
  /**
5896
5912
  * Возвращает {@link Promise} для получения данных о SEO-параметрах указанного ресурса.
5897
5913
  *
@@ -5922,7 +5938,7 @@ class Xt extends h {
5922
5938
  return this.delete(`/internal/seo/${r.slug}/${e}`);
5923
5939
  }
5924
5940
  }
5925
- class Zt extends h {
5941
+ class es extends h {
5926
5942
  /**
5927
5943
  * Возвращает подсказки по адресам.
5928
5944
  *
@@ -5969,7 +5985,7 @@ class Zt extends h {
5969
5985
  });
5970
5986
  }
5971
5987
  }
5972
- class es {
5988
+ class rs {
5973
5989
  /**
5974
5990
  * Инициализирует экземпляр класса {@link FieldValidationResultData}.
5975
5991
  *
@@ -5994,7 +6010,7 @@ class es {
5994
6010
  }
5995
6011
  export {
5996
6012
  jr as AnyReference,
5997
- Lt as AppBaseConfig,
6013
+ kt as AppBaseConfig,
5998
6014
  D as AppConfigProvider,
5999
6015
  _e as BankAccount,
6000
6016
  ve as BasePaginationProvider,
@@ -6003,7 +6019,7 @@ export {
6003
6019
  Ur as CartItem,
6004
6020
  qr as CartItemBase,
6005
6021
  $t as CartProvider,
6006
- kt as CatalogProvider,
6022
+ dt as CatalogProvider,
6007
6023
  Qe as CatalogableItem,
6008
6024
  U as Category,
6009
6025
  Me as CategoryPricingRule,
@@ -6013,16 +6029,16 @@ export {
6013
6029
  He as Client,
6014
6030
  ut as ClientAdditionalData,
6015
6031
  he as ClientCategory,
6016
- Wt as ClientDataProvider,
6017
- dt as ClientPriceProvider,
6018
- xt as ClientPriceTemplateProvider,
6032
+ Vt as ClientDataProvider,
6033
+ xt as ClientPriceProvider,
6034
+ Nt as ClientPriceTemplateProvider,
6019
6035
  K as ClientProduct,
6020
- qt as ClientProductCategoryDataProvider,
6021
- Ut as ClientProductDataProvider,
6036
+ Ut as ClientProductCategoryDataProvider,
6037
+ Gt as ClientProductDataProvider,
6022
6038
  ce as ClientShortInfo,
6023
6039
  ot as ClientsAdditionalDataRequestTypeEnum,
6024
- Ht as ClientsListFilters,
6025
- Et as ConfiguratorProvider,
6040
+ zt as ClientsListFilters,
6041
+ Jt as ConfiguratorProvider,
6026
6042
  Se as Contact,
6027
6043
  Hr as ContactLinks,
6028
6044
  F as ContactPerson,
@@ -6038,18 +6054,18 @@ export {
6038
6054
  Ne as CostSourceEnum,
6039
6055
  Q as Country,
6040
6056
  ge as Currency,
6041
- Zt as DataSuggestionProvider,
6042
- zt as DataTablePagination,
6057
+ es as DataSuggestionProvider,
6058
+ jt as DataTablePagination,
6043
6059
  ht as DataTablePaginationRequestParams,
6044
- jt as DataTableSortRequestParams,
6045
- Jt as DateTimeProvider,
6060
+ Wt as DataTableSortRequestParams,
6061
+ Kt as DateTimeProvider,
6046
6062
  Fr as DeletableNamedIdentity,
6047
6063
  fe as DeliveryAddress,
6048
6064
  J as DeliveryType,
6049
6065
  Dt as DetailedJwtPayload,
6050
6066
  tt as DeviceTypeResolutionConfig,
6051
6067
  Br as DiscountShortInfo,
6052
- es as FieldValidationResultData,
6068
+ rs as FieldValidationResultData,
6053
6069
  ne as FilterGroup,
6054
6070
  Fe as FilterItem,
6055
6071
  qe as FilterOpEnum,
@@ -6063,7 +6079,7 @@ export {
6063
6079
  ue as JwtPayload,
6064
6080
  Ce as Manager,
6065
6081
  te as ManagerCommon,
6066
- Kt as ManagerDataFactory,
6082
+ Qt as ManagerDataFactory,
6067
6083
  Qr as ManagerDataProvider,
6068
6084
  ft as MetaTagItem,
6069
6085
  $ as NamedIdentity,
@@ -6075,12 +6091,12 @@ export {
6075
6091
  gt as OrderProduct,
6076
6092
  pr as OrderShortInfo,
6077
6093
  Er as OrderStatus,
6078
- Qt as OrdersDataProvider,
6094
+ Yt as OrdersDataProvider,
6079
6095
  Y as PartnerGroup,
6080
6096
  Jr as PaymentType,
6081
6097
  Tt as PreferencesStorageProvider,
6082
6098
  $e as PriceAnalyze,
6083
- Yt as PriceAnalyzeProvider,
6099
+ Xt as PriceAnalyzeProvider,
6084
6100
  ye as PriceCoefficient,
6085
6101
  Ye as PriceCoefficientEnum,
6086
6102
  j as PriceTemplate,
@@ -6088,22 +6104,22 @@ export {
6088
6104
  Z as PriceTemplateClient,
6089
6105
  er as PriceTemplateICatalogableItem,
6090
6106
  ae as PriceTemplateProduct,
6091
- Gt as PriceTemplateProvider,
6107
+ Mt as PriceTemplateProvider,
6092
6108
  re as PricingRole,
6093
- Mt as PricingRoleProvider,
6109
+ Ft as PricingRoleProvider,
6094
6110
  be as PrimaryCatalogableItem,
6095
6111
  _ as Product,
6096
- Nt as ProductCategoryDataProvider,
6097
- Ot as ProductDataProvider,
6112
+ Ot as ProductCategoryDataProvider,
6113
+ qt as ProductDataProvider,
6098
6114
  Kr as ProductFileType,
6099
6115
  de as ProductPriceCoefficient,
6100
6116
  rt as ProductPriceHistory,
6101
- Ft as PropertiesProvider,
6117
+ Bt as PropertiesProvider,
6102
6118
  ee as Property,
6103
6119
  tr as PropertyType,
6104
6120
  Mr as PropertyTypeEnum,
6105
6121
  H as PropertyValue,
6106
- Bt as RecommendationsDataProvider,
6122
+ Ht as RecommendationsDataProvider,
6107
6123
  Ge as RecommendationsList,
6108
6124
  w as Reference,
6109
6125
  A as ReferenceDataProvider,
@@ -6112,15 +6128,16 @@ export {
6112
6128
  I as SalesDirection,
6113
6129
  it as SentryConfig,
6114
6130
  We as Seo,
6115
- Xt as SeoDataProvider,
6131
+ Zt as SeoDataProvider,
6116
6132
  nr as SourcePrimaryInterest,
6117
6133
  xr as StockCount,
6118
6134
  bt as TemplatesListFilters,
6119
6135
  xe as TypedInstanceFactory,
6120
6136
  ze as UnitsHelper,
6121
- Vt as UnknownClientDataProvider,
6137
+ Et as UnknownClientDataProvider,
6122
6138
  Ze as UpdatableNamedIdentity,
6123
6139
  Xr as User,
6140
+ It as UserAuthDataProvider,
6124
6141
  rr as UserCommonInfo,
6125
6142
  Zr as UserDataProvider,
6126
6143
  G as UserShortInfo,
@@ -6130,6 +6147,6 @@ export {
6130
6147
  Be as findCatalogItemByIdRecursive,
6131
6148
  Re as useAuthStateStore,
6132
6149
  St as useReferencesStore,
6133
- It as useUserStateStore
6150
+ Lt as useUserStateStore
6134
6151
  };
6135
6152
  //# sourceMappingURL=sc-common-lib.js.map