@cbm-common/cbm-types 0.0.68 → 0.0.69

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
- 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.68",
3
+ "version": "0.0.69",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {