@snabcentr/common-lib 2.13.2 → 2.15.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.
Files changed (77) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +1 -1
  3. package/dist/sc-common-lib.js +1136 -735
  4. package/dist/sc-common-lib.js.map +1 -1
  5. package/dist/sc-common-lib.umd.cjs +1 -1
  6. package/dist/sc-common-lib.umd.cjs.map +1 -1
  7. package/dist/src/catalog/classes/category-filter-setting.d.ts +30 -0
  8. package/dist/src/catalog/classes/category-filter-setting.d.ts.map +1 -0
  9. package/dist/src/catalog/classes/filter-settings.d.ts +37 -0
  10. package/dist/src/catalog/classes/filter-settings.d.ts.map +1 -0
  11. package/dist/src/catalog/classes/index.d.ts +2 -0
  12. package/dist/src/catalog/classes/index.d.ts.map +1 -1
  13. package/dist/src/catalog/classes/property.d.ts +4 -0
  14. package/dist/src/catalog/classes/property.d.ts.map +1 -1
  15. package/dist/src/catalog/enums/index.d.ts +1 -0
  16. package/dist/src/catalog/enums/index.d.ts.map +1 -1
  17. package/dist/src/catalog/enums/product-filter-type-enum.d.ts +18 -0
  18. package/dist/src/catalog/enums/product-filter-type-enum.d.ts.map +1 -0
  19. package/dist/src/catalog/interfaces/i-category-filter-setting-update-data.d.ts +27 -0
  20. package/dist/src/catalog/interfaces/i-category-filter-setting-update-data.d.ts.map +1 -0
  21. package/dist/src/catalog/interfaces/i-category-filter-setting.d.ts +21 -0
  22. package/dist/src/catalog/interfaces/i-category-filter-setting.d.ts.map +1 -0
  23. package/dist/src/catalog/interfaces/i-filter-settings.d.ts +27 -0
  24. package/dist/src/catalog/interfaces/i-filter-settings.d.ts.map +1 -0
  25. package/dist/src/catalog/interfaces/i-property.d.ts +4 -0
  26. package/dist/src/catalog/interfaces/i-property.d.ts.map +1 -1
  27. package/dist/src/catalog/interfaces/index.d.ts +3 -0
  28. package/dist/src/catalog/interfaces/index.d.ts.map +1 -1
  29. package/dist/src/catalog/providers/properties-provider.d.ts +26 -0
  30. package/dist/src/catalog/providers/properties-provider.d.ts.map +1 -1
  31. package/dist/src/http/classes/http-cached-requester.d.ts +2 -1
  32. package/dist/src/http/classes/http-cached-requester.d.ts.map +1 -1
  33. package/dist/src/index.d.ts +1 -0
  34. package/dist/src/index.d.ts.map +1 -1
  35. package/dist/src/references/classes/city-with-user-region.d.ts +19 -0
  36. package/dist/src/references/classes/city-with-user-region.d.ts.map +1 -0
  37. package/dist/src/references/classes/index.d.ts +1 -0
  38. package/dist/src/references/classes/index.d.ts.map +1 -1
  39. package/dist/src/references/interfaces/i-city-with-user-region.d.ts +12 -0
  40. package/dist/src/references/interfaces/i-city-with-user-region.d.ts.map +1 -0
  41. package/dist/src/references/interfaces/index.d.ts +1 -0
  42. package/dist/src/references/interfaces/index.d.ts.map +1 -1
  43. package/dist/src/references/providers/reference-data-provider.d.ts +54 -0
  44. package/dist/src/references/providers/reference-data-provider.d.ts.map +1 -1
  45. package/dist/src/user/classes/user-short-info.d.ts +4 -0
  46. package/dist/src/user/classes/user-short-info.d.ts.map +1 -1
  47. package/dist/src/user/interfaces/i-user-short-info.d.ts +4 -0
  48. package/dist/src/user/interfaces/i-user-short-info.d.ts.map +1 -1
  49. package/dist/src/user-regions/classes/index.d.ts +5 -0
  50. package/dist/src/user-regions/classes/index.d.ts.map +1 -0
  51. package/dist/src/user-regions/classes/user-region-employee.d.ts +23 -0
  52. package/dist/src/user-regions/classes/user-region-employee.d.ts.map +1 -0
  53. package/dist/src/user-regions/classes/user-region-short-info.d.ts +18 -0
  54. package/dist/src/user-regions/classes/user-region-short-info.d.ts.map +1 -0
  55. package/dist/src/user-regions/classes/user-region.d.ts +24 -0
  56. package/dist/src/user-regions/classes/user-region.d.ts.map +1 -0
  57. package/dist/src/user-regions/classes/user-regions-list-filters.d.ts +30 -0
  58. package/dist/src/user-regions/classes/user-regions-list-filters.d.ts.map +1 -0
  59. package/dist/src/user-regions/index.d.ts +4 -0
  60. package/dist/src/user-regions/index.d.ts.map +1 -0
  61. package/dist/src/user-regions/interfaces/i-user-region-employee.d.ts +16 -0
  62. package/dist/src/user-regions/interfaces/i-user-region-employee.d.ts.map +1 -0
  63. package/dist/src/user-regions/interfaces/i-user-region-save-data.d.ts +18 -0
  64. package/dist/src/user-regions/interfaces/i-user-region-save-data.d.ts.map +1 -0
  65. package/dist/src/user-regions/interfaces/i-user-region-short-info.d.ts +11 -0
  66. package/dist/src/user-regions/interfaces/i-user-region-short-info.d.ts.map +1 -0
  67. package/dist/src/user-regions/interfaces/i-user-region.d.ts +17 -0
  68. package/dist/src/user-regions/interfaces/i-user-region.d.ts.map +1 -0
  69. package/dist/src/user-regions/interfaces/i-user-regions-list-filters.d.ts +19 -0
  70. package/dist/src/user-regions/interfaces/i-user-regions-list-filters.d.ts.map +1 -0
  71. package/dist/src/user-regions/interfaces/index.d.ts +6 -0
  72. package/dist/src/user-regions/interfaces/index.d.ts.map +1 -0
  73. package/dist/src/user-regions/providers/index.d.ts +2 -0
  74. package/dist/src/user-regions/providers/index.d.ts.map +1 -0
  75. package/dist/src/user-regions/providers/user-region-provider.d.ts +93 -0
  76. package/dist/src/user-regions/providers/user-region-provider.d.ts.map +1 -0
  77. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ import { NamedIdentity } from '../../system/classes/named-identity';
2
+ import { IUserRegionShortInfo } from '../interfaces/i-user-region-short-info';
3
+ /**
4
+ * Краткие данные о регионе пользователя.
5
+ */
6
+ export declare class UserRegionShortInfo extends NamedIdentity implements IUserRegionShortInfo {
7
+ /**
8
+ * @inheritDoc
9
+ */
10
+ abbr: string;
11
+ /**
12
+ * Инициализирует экземпляр класса {@link UserRegionShortInfo}.
13
+ *
14
+ * @param data Данные для первоначальной инициализации.
15
+ */
16
+ constructor(data?: Partial<IUserRegionShortInfo>);
17
+ }
18
+ //# sourceMappingURL=user-region-short-info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-region-short-info.d.ts","sourceRoot":"","sources":["../../../../src/user-regions/classes/user-region-short-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAE5F;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,aAAc,YAAW,oBAAoB;IAClF;;OAEG;IACI,IAAI,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;gBACgB,IAAI,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC;CAK1D"}
@@ -0,0 +1,24 @@
1
+ import { ICityWithRegionAndCountry } from '../../references/interfaces/i-city-with-region-and-country';
2
+ import { UserRegionShortInfo } from './user-region-short-info';
3
+ import { IUserRegion } from '../interfaces/i-user-region';
4
+ import { IUserRegionEmployee } from '../interfaces/i-user-region-employee';
5
+ /**
6
+ * Полные данные о регионе пользователя.
7
+ */
8
+ export declare class UserRegion extends UserRegionShortInfo implements IUserRegion {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ cities: ICityWithRegionAndCountry[];
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ users: IUserRegionEmployee[];
17
+ /**
18
+ * Инициализирует экземпляр класса {@link UserRegion}.
19
+ *
20
+ * @param data Данные для первоначальной инициализации.
21
+ */
22
+ constructor(data?: Partial<IUserRegion>);
23
+ }
24
+ //# sourceMappingURL=user-region.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-region.d.ts","sourceRoot":"","sources":["../../../../src/user-regions/classes/user-region.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0DAA0D,CAAC;AAErG,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAEzF;;GAEG;AACH,qBAAa,UAAW,SAAQ,mBAAoB,YAAW,WAAW;IACtE;;OAEG;IACI,MAAM,EAAE,yBAAyB,EAAE,CAAC;IAE3C;;OAEG;IACI,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAEpC;;;;OAIG;gBACgB,IAAI,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;CAMjD"}
@@ -0,0 +1,30 @@
1
+ import { PaginationFiltersBase } from '../../pagination/filters/pagination-filters-base';
2
+ import { IUserRegionsListFilters } from '../interfaces/i-user-regions-list-filters';
3
+ /**
4
+ * Данные о параметрах фильтрации списка регионов пользователей.
5
+ */
6
+ export declare class UserRegionsListFilters extends PaginationFiltersBase implements IUserRegionsListFilters {
7
+ /**
8
+ * @inheritDoc
9
+ */
10
+ id?: string;
11
+ /**
12
+ * @inheritDoc
13
+ */
14
+ name?: string;
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ abbr?: string;
19
+ /**
20
+ * Инициализирует экземпляр класса {@link UserRegionsListFilters}.
21
+ *
22
+ * @param data Данные для первоначальной инициализации.
23
+ */
24
+ constructor(data?: IUserRegionsListFilters);
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ resetFilterValue(key: string): this;
29
+ }
30
+ //# sourceMappingURL=user-regions-list-filters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-regions-list-filters.d.ts","sourceRoot":"","sources":["../../../../src/user-regions/classes/user-regions-list-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAElG;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,qBAAsB,YAAW,uBAAuB;IAChG;;OAEG;IACI,EAAE,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACI,IAAI,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACI,IAAI,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;gBACgB,IAAI,CAAC,EAAE,uBAAuB;IAQjD;;OAEG;IACI,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAc7C"}
@@ -0,0 +1,4 @@
1
+ export * from './interfaces';
2
+ export * from './classes';
3
+ export * from './providers';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/user-regions/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { ISalesDirection } from '../../references/interfaces/i-sales-direction';
2
+ import { IUserShortInfo } from '../../user/interfaces/i-user-short-info';
3
+ /**
4
+ * Данные о закреплении сотрудника за регионом пользователей по направлению продаж.
5
+ */
6
+ export interface IUserRegionEmployee {
7
+ /**
8
+ * Данные о сотруднике.
9
+ */
10
+ user: IUserShortInfo;
11
+ /**
12
+ * Направление продаж, по которому сотрудник закреплён за регионом.
13
+ */
14
+ salesDirection: ISalesDirection;
15
+ }
16
+ //# sourceMappingURL=i-user-region-employee.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-user-region-employee.d.ts","sourceRoot":"","sources":["../../../../src/user-regions/interfaces/i-user-region-employee.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,IAAI,EAAE,cAAc,CAAC;IAErB;;OAEG;IACH,cAAc,EAAE,eAAe,CAAC;CACnC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Данные для создания или изменения региона пользователей.
3
+ */
4
+ export interface IUserRegionSaveData {
5
+ /**
6
+ * Название региона.
7
+ */
8
+ name: string;
9
+ /**
10
+ * Сокращённое название региона.
11
+ */
12
+ abbr: string;
13
+ /**
14
+ * Полный список идентификаторов городов региона.
15
+ */
16
+ cities: number[];
17
+ }
18
+ //# sourceMappingURL=i-user-region-save-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-user-region-save-data.d.ts","sourceRoot":"","sources":["../../../../src/user-regions/interfaces/i-user-region-save-data.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB"}
@@ -0,0 +1,11 @@
1
+ import { INamedIdentity } from '../../system/interfaces/i-named-identity';
2
+ /**
3
+ * Краткие данные о регионе пользователя.
4
+ */
5
+ export interface IUserRegionShortInfo extends INamedIdentity {
6
+ /**
7
+ * Сокращённое название региона.
8
+ */
9
+ abbr: string;
10
+ }
11
+ //# sourceMappingURL=i-user-region-short-info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-user-region-short-info.d.ts","sourceRoot":"","sources":["../../../../src/user-regions/interfaces/i-user-region-short-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IACxD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,17 @@
1
+ import { ICityWithRegionAndCountry } from '../../references/interfaces/i-city-with-region-and-country';
2
+ import { IUserRegionEmployee } from './i-user-region-employee';
3
+ import { IUserRegionShortInfo } from './i-user-region-short-info';
4
+ /**
5
+ * Полные данные о регионе пользователя.
6
+ */
7
+ export interface IUserRegion extends IUserRegionShortInfo {
8
+ /**
9
+ * Список городов, закреплённых за регионом.
10
+ */
11
+ cities: ICityWithRegionAndCountry[];
12
+ /**
13
+ * Список сотрудников, закреплённых за регионом.
14
+ */
15
+ users: IUserRegionEmployee[];
16
+ }
17
+ //# sourceMappingURL=i-user-region.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-user-region.d.ts","sourceRoot":"","sources":["../../../../src/user-regions/interfaces/i-user-region.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0DAA0D,CAAC;AACrG,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAE5F;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,oBAAoB;IACrD;;OAEG;IACH,MAAM,EAAE,yBAAyB,EAAE,CAAC;IAEpC;;OAEG;IACH,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAChC"}
@@ -0,0 +1,19 @@
1
+ import { IPaginationFiltersBase } from '../../pagination/filters/i-pagination-filters-base';
2
+ /**
3
+ * Данные о параметрах фильтрации списка регионов пользователей.
4
+ */
5
+ export interface IUserRegionsListFilters extends IPaginationFiltersBase {
6
+ /**
7
+ * Идентификатор региона.
8
+ */
9
+ id?: string;
10
+ /**
11
+ * Название региона.
12
+ */
13
+ name?: string;
14
+ /**
15
+ * Сокращённое название региона.
16
+ */
17
+ abbr?: string;
18
+ }
19
+ //# sourceMappingURL=i-user-regions-list-filters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-user-regions-list-filters.d.ts","sourceRoot":"","sources":["../../../../src/user-regions/interfaces/i-user-regions-list-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAE1F;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACnE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,6 @@
1
+ export * from './i-user-region';
2
+ export * from './i-user-region-employee';
3
+ export * from './i-user-region-save-data';
4
+ export * from './i-user-region-short-info';
5
+ export * from './i-user-regions-list-filters';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/user-regions/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './user-region-provider';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/user-regions/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,93 @@
1
+ import { IPaginatedResponse } from '../../pagination/interfaces/i-paginated-response';
2
+ import { BasePaginationProvider } from '../../pagination/providers/base-pagination-provider';
3
+ import { IFilterGroup } from '../../table-data/interfaces/i-filter-group';
4
+ import { IPaginationRequestParams } from '../../table-data/interfaces/i-pagination-request-params';
5
+ import { ISortRequestParams } from '../../table-data/interfaces/i-sort-request-params';
6
+ import { IUserRegion } from '../interfaces/i-user-region';
7
+ import { IUserRegionEmployee } from '../interfaces/i-user-region-employee';
8
+ import { IUserRegionSaveData } from '../interfaces/i-user-region-save-data';
9
+ import { IUserRegionShortInfo } from '../interfaces/i-user-region-short-info';
10
+ import { IFieldValidationResultData } from '../../validation/interfaces/i-field-validation-result-data';
11
+ /**
12
+ * Предоставляет механизмы получения/управления регионами пользователей.
13
+ */
14
+ export declare class UserRegionProvider extends BasePaginationProvider {
15
+ /**
16
+ * Возвращает список регионов пользователей.
17
+ *
18
+ * @param filters Параметры фильтрации данных.
19
+ * @param sortParams Параметры сортировки.
20
+ * @param paginationParams Параметры пагинации.
21
+ *
22
+ * @see /doc/api/internal#/operations/api_internal_user_region_get_list
23
+ */
24
+ getRegionsList(filters?: IFilterGroup, sortParams?: ISortRequestParams[] | ISortRequestParams, paginationParams?: IPaginationRequestParams): Promise<IPaginatedResponse<IUserRegionShortInfo>>;
25
+ /**
26
+ * Возвращает полные данные о регионе пользователей.
27
+ *
28
+ * @param regionId Идентификатор региона.
29
+ *
30
+ * @see /doc/api/internal#/operations/api_internal_user_region_get
31
+ */
32
+ getRegion(regionId: number): Promise<IUserRegion>;
33
+ /**
34
+ * Создаёт новый регион пользователей.
35
+ *
36
+ * @param data Данные для создания региона.
37
+ * @param validationFieldResultData Список полей, для которых необходимо
38
+ * установить данные об ошибках валидации
39
+ * в случае ошибок в запросах.
40
+ *
41
+ * @see /doc/api/internal#/operations/api_internal_user_region_create
42
+ */
43
+ createRegion(data: IUserRegionSaveData, validationFieldResultData?: Record<string, IFieldValidationResultData>): Promise<IUserRegion>;
44
+ /**
45
+ * Изменяет данные о регионе пользователей.
46
+ *
47
+ * @param regionId Идентификатор региона.
48
+ * @param data Данные для изменения региона.
49
+ * @param validationFieldResultData Список полей, для которых необходимо
50
+ * установить данные об ошибках валидации
51
+ * в случае ошибок в запросах.
52
+ *
53
+ * @see /doc/api/internal#/operations/api_internal_user_region_change
54
+ */
55
+ updateRegion(regionId: number, data: IUserRegionSaveData, validationFieldResultData?: Record<string, IFieldValidationResultData>): Promise<IUserRegion>;
56
+ /**
57
+ * Удаляет регион пользователей.
58
+ *
59
+ * @param regionId Идентификатор региона.
60
+ *
61
+ * @see /doc/api/internal#/operations/api_internal_user_region_delete
62
+ */
63
+ removeRegion(regionId: number): Promise<void>;
64
+ /**
65
+ * Возвращает список сотрудников, закреплённых за регионом.
66
+ *
67
+ * @param regionId Идентификатор региона.
68
+ *
69
+ * @see /doc/api/internal#/operations/api_internal_user_region_user_get_list
70
+ */
71
+ getRegionEmployees(regionId: number): Promise<IUserRegionEmployee[]>;
72
+ /**
73
+ * Закрепляет сотрудника за регионом по указанному направлению продаж.
74
+ *
75
+ * @param regionId Идентификатор региона.
76
+ * @param userId Идентификатор сотрудника.
77
+ * @param salesDirectionId Идентификатор направления продаж.
78
+ *
79
+ * @see /doc/api/internal#/operations/api_internal_user_region_user_add
80
+ */
81
+ attachRegionEmployee(regionId: number, userId: number, salesDirectionId: number): Promise<IUserRegionEmployee>;
82
+ /**
83
+ * Открепляет сотрудника от региона по указанному направлению продаж.
84
+ *
85
+ * @param regionId Идентификатор региона.
86
+ * @param userId Идентификатор сотрудника.
87
+ * @param salesDirectionId Идентификатор направления продаж.
88
+ *
89
+ * @see /doc/api/internal#/operations/api_internal_user_region_user_delete
90
+ */
91
+ detachRegionEmployee(regionId: number, userId: number, salesDirectionId: number): Promise<void>;
92
+ }
93
+ //# sourceMappingURL=user-region-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-region-provider.d.ts","sourceRoot":"","sources":["../../../../src/user-regions/providers/user-region-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,uDAAuD,CAAC;AACjG,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAIrF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AAEtG;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,sBAAsB;IAC1D;;;;;;;;OAQG;IACI,cAAc,CACjB,OAAO,CAAC,EAAE,YAAY,EACtB,UAAU,CAAC,EAAE,kBAAkB,EAAE,GAAG,kBAAkB,EACtD,gBAAgB,CAAC,EAAE,wBAAwB,GAC5C,OAAO,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;IAUpD;;;;;;OAMG;IACI,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAIxD;;;;;;;;;OASG;IACI,YAAY,CAAC,IAAI,EAAE,mBAAmB,EAAE,yBAAyB,GAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAIhJ;;;;;;;;;;OAUG;IACI,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,yBAAyB,GAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAIlK;;;;;;OAMG;IACI,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIpD;;;;;;OAMG;IACI,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAM3E;;;;;;;;OAQG;IACI,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIrH;;;;;;;;OAQG;IACI,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAQzG"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "keywords": [],
5
5
  "author": "Sergey S. Smirnov <dev@snabcentr.com>",
6
6
  "type": "module",
7
- "version": "2.13.2",
7
+ "version": "2.15.0",
8
8
  "license": "ISC",
9
9
  "scripts": {
10
10
  "dev": "vite",