@cbm-common/cbm-types 0.0.70 → 0.0.71
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare namespace CbmSalePriceModel {
|
|
2
|
-
|
|
2
|
+
enum EType {
|
|
3
3
|
ITEM = "item",
|
|
4
4
|
SERVICE = "service",
|
|
5
5
|
KIT = "kit",
|
|
6
6
|
OUTSOURCING = "outsourcing_service"
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
type TType = `${EType}`;
|
|
9
|
+
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
|
-
|
|
34
|
-
|
|
33
|
+
type TName = `${EName}`;
|
|
34
|
+
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
|
-
|
|
42
|
+
interface GetResponse {
|
|
43
43
|
success: boolean;
|
|
44
44
|
data: GetResponse.Data[];
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
namespace GetResponse {
|
|
47
|
+
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
|
-
|
|
68
|
-
|
|
67
|
+
namespace Data {
|
|
68
|
+
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-group.domain.model';
|
|
76
76
|
|
|
77
77
|
//#region client repository
|
|
78
78
|
export * from './lib/domain/repositories/client.domain.repository';
|