@cbm-common/cbm-types 0.0.68 → 0.0.70
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.
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export namespace CbmSalePriceEnums {
|
|
2
|
+
export enum EType {
|
|
3
|
+
ITEM = 'item',
|
|
4
|
+
SERVICE = 'service',
|
|
5
|
+
KIT = 'kit',
|
|
6
|
+
OUTSOURCING = 'outsourcing_service',
|
|
7
|
+
}
|
|
8
|
+
export type TType = `${EType}`;
|
|
9
|
+
export enum EName {
|
|
10
|
+
BLANKET_AGREEMENTS_ITEM = 'blanket_agreements_item',
|
|
11
|
+
BLANKET_AGREEMENTS_CATEGORY_ITEM = 'blanket_agreements_category_item',
|
|
12
|
+
PRICE_LIST_COMPANY_BRANCH = 'price_list_company_branch',
|
|
13
|
+
PERIOD_AND_VOLUMNE_DISCOUNTS = 'period_and_volume_discounts',
|
|
14
|
+
ITEM_DISCOUNT_GROUP_CLIENT = 'item_discount_group_client',
|
|
15
|
+
CATEGORY_DISCOUNT_GROUP_CLIENT = 'category_discount_group_client',
|
|
16
|
+
MANUFACTURER_DISCOUNT_GROUP_CLIENT = 'manufacturer_discount_group_client',
|
|
17
|
+
ITEM_DISCOUNT_GROUP_CLIENT_CATEGORY = 'item_discount_group_client_category',
|
|
18
|
+
CATEGORY_DISCOUNT_GROUP_CLIENT_CATEGORY = 'category_discount_group_client_category',
|
|
19
|
+
MANUFACTURER_DISCOUNT_GROUP_CLIENT_CATEGORY = 'manufacturer_discount_group_client_category',
|
|
20
|
+
ITEM_DISCOUNT_GROUP_ALL_CLIENTS = 'item_discount_group_all_clients',
|
|
21
|
+
CATEGORY_DISCOUNT_GROUP_ALL_CLIENTS = 'category_discount_group_all_clients',
|
|
22
|
+
MANUFACTURER_DISCOUNT_GROUP_ALL_CLIENTS = 'manufacturer_discount_group_all_clients',
|
|
23
|
+
SPECIAL_CUSTOMER_DISCOUNT_ITEM = 'special_customer_discount_item',
|
|
24
|
+
SPECIAL_CUSTOMER_DISCOUNT = 'special_customer_discount',
|
|
25
|
+
BLANKET_AGREEMENTS_SERVICE = 'blanket_agreements_service',
|
|
26
|
+
BLANKET_AGREEMENTS_CATEGORY_SERVICE = 'blanket_agreements_category_service',
|
|
27
|
+
PRICE_LIST_ITEM = 'price_list_item',
|
|
28
|
+
PRICE_LIST_SERVICE = 'price_list_service',
|
|
29
|
+
PRICE_LIST_KIT = 'price_list_kit',
|
|
30
|
+
PRICE_LIST_PERSONALIZED = 'price_list_personalized',
|
|
31
|
+
PERIOD_DISCOUNT = 'period_discount',
|
|
32
|
+
}
|
|
33
|
+
export type TName = `${EName}`;
|
|
34
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare namespace CbmSalePriceModel {
|
|
2
|
-
enum EType {
|
|
2
|
+
export enum EType {
|
|
3
3
|
ITEM = "item",
|
|
4
4
|
SERVICE = "service",
|
|
5
5
|
KIT = "kit",
|
|
6
6
|
OUTSOURCING = "outsourcing_service"
|
|
7
7
|
}
|
|
8
|
-
type TType = `${EType}`;
|
|
9
|
-
enum EName {
|
|
8
|
+
export type TType = `${EType}`;
|
|
9
|
+
export enum EName {
|
|
10
10
|
BLANKET_AGREEMENTS_ITEM = "blanket_agreements_item",
|
|
11
11
|
BLANKET_AGREEMENTS_CATEGORY_ITEM = "blanket_agreements_category_item",
|
|
12
12
|
PRICE_LIST_COMPANY_BRANCH = "price_list_company_branch",
|
|
@@ -30,8 +30,8 @@ export declare namespace CbmSalePriceModel {
|
|
|
30
30
|
PRICE_LIST_PERSONALIZED = "price_list_personalized",
|
|
31
31
|
PERIOD_DISCOUNT = "period_discount"
|
|
32
32
|
}
|
|
33
|
-
type TName = `${EName}`;
|
|
34
|
-
interface GetParams {
|
|
33
|
+
export type TName = `${EName}`;
|
|
34
|
+
export interface GetParams {
|
|
35
35
|
amount?: number;
|
|
36
36
|
price_list_id: string;
|
|
37
37
|
type: TType;
|
|
@@ -39,12 +39,12 @@ export declare namespace CbmSalePriceModel {
|
|
|
39
39
|
client_id: string;
|
|
40
40
|
item_id: string;
|
|
41
41
|
}
|
|
42
|
-
interface GetResponse {
|
|
42
|
+
export interface GetResponse {
|
|
43
43
|
success: boolean;
|
|
44
44
|
data: GetResponse.Data[];
|
|
45
45
|
}
|
|
46
|
-
namespace GetResponse {
|
|
47
|
-
interface Data {
|
|
46
|
+
export namespace GetResponse {
|
|
47
|
+
export interface Data {
|
|
48
48
|
item_id: string;
|
|
49
49
|
type: TType;
|
|
50
50
|
client_id?: string;
|
|
@@ -64,8 +64,8 @@ export declare namespace CbmSalePriceModel {
|
|
|
64
64
|
amount_discount?: boolean;
|
|
65
65
|
details_amount_discount?: Data.AmountDiscount[];
|
|
66
66
|
}
|
|
67
|
-
namespace Data {
|
|
68
|
-
interface AmountDiscount {
|
|
67
|
+
export namespace Data {
|
|
68
|
+
export interface AmountDiscount {
|
|
69
69
|
amount: number;
|
|
70
70
|
discount_rate: number;
|
|
71
71
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export * from './lib/domain/models/client-category.domain.model';
|
|
|
72
72
|
|
|
73
73
|
//#region client group repository
|
|
74
74
|
export * from './lib/domain/repositories/client-group.domain.repository';
|
|
75
|
-
export * from './lib/domain/models/client-
|
|
75
|
+
export * from './lib/domain/models/client-gro.domain.model';
|
|
76
76
|
|
|
77
77
|
//#region client repository
|
|
78
78
|
export * from './lib/domain/repositories/client.domain.repository';
|
|
@@ -276,6 +276,7 @@ export * from './lib/components/xml-modal/xml-modal';
|
|
|
276
276
|
// #region sale price repository
|
|
277
277
|
export * from './lib/domain/repositories/sale-price.domain.repository';
|
|
278
278
|
export * from './lib/domain/models/sale-price.domain.model';
|
|
279
|
+
export * from './lib/declare-enums/cbm-sales-price';
|
|
279
280
|
|
|
280
281
|
// #region view reports component
|
|
281
282
|
export * from './lib/components/view-reports/model';
|