@snabcentr/common-lib 2.20.3 → 2.21.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.
@@ -4,6 +4,6 @@
4
4
  "name": "public-api",
5
5
  "src": "src/public-api.ts",
6
6
  "isEntry": true,
7
- "integrity": "sha384-LZdyfBXCeKGCKi4xPeJ0oc1ger9QH7AadYfMfvHgtVzIpT01hd+AjvVEodKgYVfK"
7
+ "integrity": "sha384-lwsmW3JyfQkTvyugkmQ8WGGAkI/k1gXOt+bvJoy6DI/izvXzHY1cF9H5EaqhEX+b"
8
8
  }
9
9
  }
@@ -1,6 +1,6 @@
1
- ## 2.20.3 (2026-09-08)
1
+ ## 2.21.0 (2026-09-09)
2
2
 
3
- ### fixed (1 change)
3
+ ### added (1 change)
4
4
 
5
- - [#13864: Исправлена потеря маркировки «ДопПродажа» при изменении товара в заказе и черновике](web_soft/libs/ts/snabcentr-common-lib@78ce7ad9834e1069cda6300722d121263a5f053c) ([merge request](web_soft/libs/ts/snabcentr-common-lib!223))
5
+ - [#: Добавлена возможность поиска клиентов по GUID](web_soft/libs/ts/snabcentr-common-lib@47aa1b6ee6d2e4f7bb2f6463e8c5f52a2d699ded)
6
6
 
@@ -4697,6 +4697,10 @@ class si extends _e {
4697
4697
  * @inheritDoc
4698
4698
  */
4699
4699
  s(this, "id");
4700
+ /**
4701
+ * @inheritDoc
4702
+ */
4703
+ s(this, "guid");
4700
4704
  /**
4701
4705
  * @inheritDoc
4702
4706
  */
@@ -4793,7 +4797,7 @@ class si extends _e {
4793
4797
  * @inheritDoc
4794
4798
  */
4795
4799
  s(this, "noOrdersPeriod", new A());
4796
- this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((C) => new ve(C)), this.region = new ae(e == null ? void 0 : e.region), this.country = new ye(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.lastLoginDate = new A(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((C) => new Ne(C))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((C) => new Sr(C))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((C) => new F(C)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new Z(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new E(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((C) => new we(C)), this.contact = new vr(e == null ? void 0 : e.contact), this.lastOrder = {
4800
+ this.id = e == null ? void 0 : e.id, this.guid = e == null ? void 0 : e.guid, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((C) => new ve(C)), this.region = new ae(e == null ? void 0 : e.region), this.country = new ye(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.lastLoginDate = new A(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((C) => new Ne(C))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((C) => new Sr(C))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((C) => new F(C)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new Z(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new E(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((C) => new we(C)), this.contact = new vr(e == null ? void 0 : e.contact), this.lastOrder = {
4797
4801
  createdAt: new A((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4798
4802
  creator: (g = e == null ? void 0 : e.lastOrder) == null ? void 0 : g.creator,
4799
4803
  isApproved: (y = e == null ? void 0 : e.lastOrder) == null ? void 0 : y.isApproved
@@ -5098,7 +5102,7 @@ class H extends re {
5098
5102
  /**
5099
5103
  * Возвращает данные об указанном клиенте.
5100
5104
  *
5101
- * @param id Идентификатор клиента для которого необходимо получить данные.
5105
+ * @param id Идентификатор или GUID клиента для которого необходимо получить данные.
5102
5106
  * @see /doc/api/internal#/Клиенты/api_internal_client_get_full_info
5103
5107
  */
5104
5108
  getClient(r) {