@snabcentr/common-lib 1.67.2 → 1.69.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/release_notes.tmp +4 -2
- package/dist/sc-common-lib.js +2958 -2892
- 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/catalog/classes/index.d.ts +0 -2
- package/dist/src/catalog/classes/index.d.ts.map +1 -1
- package/dist/src/catalog/interfaces/index.d.ts +0 -2
- package/dist/src/catalog/interfaces/index.d.ts.map +1 -1
- package/dist/src/catalog/providers/index.d.ts +0 -1
- package/dist/src/catalog/providers/index.d.ts.map +1 -1
- package/dist/src/catalog/providers/product-data-provider.d.ts +0 -10
- package/dist/src/catalog/providers/product-data-provider.d.ts.map +1 -1
- package/dist/src/config/classes/http-params-config.d.ts +8 -0
- package/dist/src/config/classes/http-params-config.d.ts.map +1 -1
- package/dist/src/config/interfaces/i-http-params-config.d.ts +8 -0
- package/dist/src/config/interfaces/i-http-params-config.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/price-history/classes/index.d.ts +3 -0
- package/dist/src/price-history/classes/index.d.ts.map +1 -0
- package/dist/src/price-history/classes/price-history-item.d.ts +56 -0
- package/dist/src/price-history/classes/price-history-item.d.ts.map +1 -0
- package/dist/src/price-history/classes/product-price-history.d.ts +19 -0
- package/dist/src/price-history/classes/product-price-history.d.ts.map +1 -0
- package/dist/src/price-history/index.d.ts +4 -0
- package/dist/src/price-history/index.d.ts.map +1 -0
- package/dist/src/{catalog/interfaces/i-product-price-history.d.ts → price-history/interfaces/i-price-history-item.d.ts} +15 -10
- package/dist/src/price-history/interfaces/i-price-history-item.d.ts.map +1 -0
- package/dist/src/price-history/interfaces/i-price-history-request-params.d.ts +19 -0
- package/dist/src/price-history/interfaces/i-price-history-request-params.d.ts.map +1 -0
- package/dist/src/price-history/interfaces/i-product-price-history.d.ts +12 -0
- package/dist/src/price-history/interfaces/i-product-price-history.d.ts.map +1 -0
- package/dist/src/price-history/interfaces/index.d.ts +4 -0
- package/dist/src/price-history/interfaces/index.d.ts.map +1 -0
- package/dist/src/price-history/providers/index.d.ts +2 -0
- package/dist/src/price-history/providers/index.d.ts.map +1 -0
- package/dist/src/price-history/providers/price-history-data-provider.d.ts +21 -0
- package/dist/src/price-history/providers/price-history-data-provider.d.ts.map +1 -0
- package/dist/src/recommendations/classes/index.d.ts +2 -0
- package/dist/src/recommendations/classes/index.d.ts.map +1 -0
- package/dist/src/{catalog → recommendations}/classes/recommendations-list.d.ts +3 -4
- package/dist/src/recommendations/classes/recommendations-list.d.ts.map +1 -0
- package/dist/src/recommendations/index.d.ts +4 -0
- package/dist/src/recommendations/index.d.ts.map +1 -0
- package/dist/src/{catalog → recommendations}/interfaces/i-recommendations-list.d.ts +3 -4
- package/dist/src/recommendations/interfaces/i-recommendations-list.d.ts.map +1 -0
- package/dist/src/recommendations/interfaces/index.d.ts +2 -0
- package/dist/src/recommendations/interfaces/index.d.ts.map +1 -0
- package/dist/src/recommendations/providers/index.d.ts +2 -0
- package/dist/src/recommendations/providers/index.d.ts.map +1 -0
- package/dist/src/{catalog → recommendations}/providers/recommendations-data-provider.d.ts +9 -1
- package/dist/src/recommendations/providers/recommendations-data-provider.d.ts.map +1 -0
- package/dist/src/system/classes/catalogable-item.d.ts +2 -6
- package/dist/src/system/classes/catalogable-item.d.ts.map +1 -1
- package/dist/src/system/classes/coded-identity.d.ts +18 -0
- package/dist/src/system/classes/coded-identity.d.ts.map +1 -0
- package/dist/src/system/classes/index.d.ts +1 -0
- package/dist/src/system/classes/index.d.ts.map +1 -1
- package/dist/src/system/interfaces/i-catalogable-item.d.ts +2 -6
- package/dist/src/system/interfaces/i-catalogable-item.d.ts.map +1 -1
- package/dist/src/system/interfaces/i-coded-identity.d.ts +11 -0
- package/dist/src/system/interfaces/i-coded-identity.d.ts.map +1 -0
- package/dist/src/system/interfaces/index.d.ts +1 -0
- package/dist/src/system/interfaces/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/src/catalog/classes/product-price-history.d.ts +0 -51
- package/dist/src/catalog/classes/product-price-history.d.ts.map +0 -1
- package/dist/src/catalog/classes/recommendations-list.d.ts.map +0 -1
- package/dist/src/catalog/interfaces/i-product-price-history.d.ts.map +0 -1
- package/dist/src/catalog/interfaces/i-recommendations-list.d.ts.map +0 -1
- package/dist/src/catalog/providers/recommendations-data-provider.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-catalogable-item.d.ts","sourceRoot":"","sources":["../../../../src/system/interfaces/i-catalogable-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACpD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"i-catalogable-item.d.ts","sourceRoot":"","sources":["../../../../src/system/interfaces/i-catalogable-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACpD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC7B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { INamedIdentity } from './i-named-identity';
|
|
2
|
+
/**
|
|
3
|
+
* Базовая идентифицируемая сущность содержащая название и артикул.
|
|
4
|
+
*/
|
|
5
|
+
export interface ICodedIdentity<T = number> extends INamedIdentity<T> {
|
|
6
|
+
/**
|
|
7
|
+
* Артикул.
|
|
8
|
+
*/
|
|
9
|
+
code: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=i-coded-identity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-coded-identity.d.ts","sourceRoot":"","sources":["../../../../src/system/interfaces/i-coded-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IACjE;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -6,6 +6,7 @@ export * from './i-named';
|
|
|
6
6
|
export * from './i-typed-nullable-range';
|
|
7
7
|
export * from './i-date-period';
|
|
8
8
|
export * from './i-named-identity';
|
|
9
|
+
export * from './i-coded-identity';
|
|
9
10
|
export * from './i-reference';
|
|
10
11
|
export * from './i-updatable-named-identity';
|
|
11
12
|
export * from './i-deletable-named-identity';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/system/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAE1B,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAE9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAE7C,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAE1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/system/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAE1B,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAE9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAE7C,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAE1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { IProductPriceHistory } from '../interfaces/i-product-price-history';
|
|
2
|
-
import { ICurrency } from '../../references/interfaces/i-currency';
|
|
3
|
-
import { IUserShortInfo } from '../../user/interfaces/i-user-short-info';
|
|
4
|
-
/**
|
|
5
|
-
* Данные записи истории изменения цены на товар или услугу.
|
|
6
|
-
*/
|
|
7
|
-
export declare class ProductPriceHistory implements IProductPriceHistory {
|
|
8
|
-
/**
|
|
9
|
-
* Стоимость товара или услуги.
|
|
10
|
-
*/
|
|
11
|
-
cost: number;
|
|
12
|
-
/**
|
|
13
|
-
* Дата установки цены.
|
|
14
|
-
*/
|
|
15
|
-
costDate: Date;
|
|
16
|
-
/**
|
|
17
|
-
* Признак, что цена может быть ниже минимальной.
|
|
18
|
-
*/
|
|
19
|
-
isLowCost: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Признак, что это розничная цена.
|
|
22
|
-
*/
|
|
23
|
-
isRetail: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Название примененной скидки.
|
|
26
|
-
*/
|
|
27
|
-
discountName?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Название примененного шаблона прайс-листа.
|
|
30
|
-
*/
|
|
31
|
-
priceTemplateName?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Данные клиента.
|
|
34
|
-
*/
|
|
35
|
-
client?: IUserShortInfo;
|
|
36
|
-
/**
|
|
37
|
-
* Данные пользователя изменившего цену.
|
|
38
|
-
*/
|
|
39
|
-
executor?: IUserShortInfo;
|
|
40
|
-
/**
|
|
41
|
-
* Данные о валюте.
|
|
42
|
-
*/
|
|
43
|
-
currency?: ICurrency;
|
|
44
|
-
/**
|
|
45
|
-
* Инициализирует экземпляр класса {@link ProductPriceHistory}.
|
|
46
|
-
*
|
|
47
|
-
* @param data Данные для первоначальной инициализации.
|
|
48
|
-
*/
|
|
49
|
-
constructor(data: IProductPriceHistory);
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=product-price-history.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product-price-history.d.ts","sourceRoot":"","sources":["../../../../src/catalog/classes/product-price-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAEtF,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEjE,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAIvE;;GAEG;AACH,qBAAa,mBAAoB,YAAW,oBAAoB;IAC5D;;OAEG;IACI,IAAI,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACI,QAAQ,EAAE,IAAI,CAAC;IAEtB;;OAEG;IACI,SAAS,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACI,QAAQ,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACI,YAAY,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACI,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAElC;;OAEG;IACI,MAAM,CAAC,EAAE,cAAc,CAAC;IAE/B;;OAEG;IACI,QAAQ,CAAC,EAAE,cAAc,CAAC;IAEjC;;OAEG;IACI,QAAQ,CAAC,EAAE,SAAS,CAAC;IAE5B;;;;OAIG;gBACgB,IAAI,EAAE,oBAAoB;CAWhD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recommendations-list.d.ts","sourceRoot":"","sources":["../../../../src/catalog/classes/recommendations-list.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAErF;;GAEG;AACH,qBAAa,mBAAoB,YAAW,oBAAoB;IAC5D;;OAEG;IACI,QAAQ,EAAE,QAAQ,EAAE,CAAM;IAEjC;;OAEG;IACI,iBAAiB,EAAE,SAAS,EAAE,CAAM;IAE3C;;;;OAIG;gBACgB,IAAI,CAAC,EAAE,oBAAoB;CASjD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-product-price-history.d.ts","sourceRoot":"","sources":["../../../../src/catalog/interfaces/i-product-price-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-recommendations-list.d.ts","sourceRoot":"","sources":["../../../../src/catalog/interfaces/i-recommendations-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,QAAQ,EAAE,QAAQ,EAAE,CAAC;IAErB;;OAEG;IACH,iBAAiB,EAAE,SAAS,EAAE,CAAC;CAClC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recommendations-data-provider.d.ts","sourceRoot":"","sources":["../../../../src/catalog/providers/recommendations-data-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAE5E;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,aAAa;IAC1D;;;;OAIG;IACI,iCAAiC,CAAC,eAAe,EAAE,gBAAgB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAI1G;;;;OAIG;IACI,yBAAyB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAI1F;;;;;OAKG;IACI,kCAAkC,CAAC,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAOlI;;;;;OAKG;IACI,0BAA0B,CAAC,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;CAMrH"}
|