@jagota/interfaces 1.2.44 → 1.2.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jagota/interfaces",
3
- "version": "1.2.44",
3
+ "version": "1.2.46",
4
4
  "type": "module",
5
5
  "description": "Interfaces for the Jagota Brothers project",
6
6
  "main": "src/index.ts",
@@ -0,0 +1,4 @@
1
+ export interface IBaseResponse {
2
+ error: boolean;
3
+ message: string;
4
+ }
@@ -1,3 +1,5 @@
1
+ import { IBaseResponse } from "./base.interface";
2
+
1
3
  export interface IBiddingType {
2
4
  recordId: number;
3
5
  name: string;
@@ -83,4 +85,36 @@ export interface IBiddingPricelistPayload {
83
85
  custCode: string;
84
86
  periodFrom: string;
85
87
  periodTo: string;
88
+ }
89
+ export interface ISetBiddingPricelistPayload extends IBiddingPricelistPayload {
90
+ custProductCode: string;
91
+ productCode: string;
92
+ price?: number;
93
+ }
94
+
95
+ export interface IGetBiddingPriceListResponse extends IBaseResponse {
96
+ data: IBiddingPricelist[];
97
+ }
98
+
99
+ export interface ISetBiddingPricelistResponse extends IBaseResponse {
100
+ data: {
101
+ PRICE: number;
102
+ }
103
+ }
104
+
105
+ export interface IBiddingList {
106
+ recordId: number;
107
+ periodFrom: string;
108
+ periodTo: string;
109
+ status: string;
110
+ winRate: number;
111
+ docType: string;
112
+ docBook: string;
113
+ docNo: string;
114
+ }
115
+ export interface IBiddingListPayload {
116
+ custCode: string;
117
+ }
118
+ export interface IBiddingListResponse extends IBaseResponse {
119
+ data: IBiddingList[];
86
120
  }