@jagota/interfaces 1.3.23 → 1.3.25

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.3.23",
3
+ "version": "1.3.25",
4
4
  "type": "module",
5
5
  "description": "Interfaces for the Jagota Brothers project",
6
6
  "main": "src/index.ts",
@@ -5,6 +5,14 @@ export interface IBiddingType {
5
5
  name: string;
6
6
  }
7
7
 
8
+ export interface IBiddingCustCode {
9
+ custCode: string;
10
+ }
11
+
12
+ export interface IBiddingCustCodeAndName extends IBiddingCustCode {
13
+ custName: string;
14
+ }
15
+
8
16
  export interface IBiddingPeriod {
9
17
  recordId: number;
10
18
  biddingTypeRid: number;
@@ -15,24 +23,18 @@ export interface IBiddingPeriod {
15
23
  status: string;
16
24
  }
17
25
 
18
- export interface ICustomerForBidding {
19
- custCode: string;
20
- custName: string;
26
+ export interface ICustomerForBidding extends IBiddingCustCodeAndName {
21
27
  status: string;
22
28
  statusText: string;
23
29
  tradeName: string;
24
30
  biddingStatus: string;
25
31
  }
26
- export interface IBiddingCustomer {
27
- custCode: string;
28
- custName: string;
32
+ export interface IBiddingCustomer extends IBiddingCustCodeAndName{
29
33
  status: string;
30
34
  statusText: string;
31
35
  tradeName: string;
32
36
  }
33
- export interface IBiddingCustomerInfo {
34
- custCode: string;
35
- custName: string;
37
+ export interface IBiddingCustomerInfo extends IBiddingCustCodeAndName{
36
38
  address: string;
37
39
  tradeName: string;
38
40
  salesCode: string;
@@ -66,12 +68,10 @@ export interface IBiddingMarketPayloadItem extends IBiddingCustomerProductList {
66
68
  productCode: string;
67
69
  status: string;
68
70
  }
69
- export interface IBiddingMarketPayload {
70
- custCode: string;
71
+ export interface IBiddingMarketPayload extends IBiddingCustCode {
71
72
  list: IBiddingMarketPayloadItem[];
72
73
  }
73
- export interface IBiddingPricelist extends IBiddingCustomerProductList {
74
- recordId: number;
74
+ export interface IBiddingProductDetail {
75
75
  productCode: string;
76
76
  productShortCode: string;
77
77
  productName: string;
@@ -79,16 +79,22 @@ export interface IBiddingPricelist extends IBiddingCustomerProductList {
79
79
  unit: string;
80
80
  minPrice?: number;
81
81
  centerPrice?: number;
82
+ }
83
+ export interface IBiddingPricelist extends IBiddingProductDetail, IBiddingCustomerProductList {
84
+ recordId: number;
82
85
  price?: number;
86
+ reqMinNarration?: string;
83
87
  winLossHistory: IProductWinLossHistory[];
84
88
  }
85
89
 
86
- export interface IBiddingPricelistPayload {
87
- custCode: string;
90
+ export interface IBiddingPeriodDate {
88
91
  periodFrom: string;
89
92
  periodTo: string;
90
93
  }
91
94
 
95
+ export interface IBiddingPricelistPayload extends IBiddingPeriodDate, IBiddingCustCode{
96
+ }
97
+
92
98
  export interface ISetBiddingPriceHPayload extends IBiddingPricelistPayload {
93
99
  submissionDay: number;
94
100
  tenderDay: number;
@@ -137,17 +143,18 @@ export interface IBiddingStatusResponse extends IBaseResponse {
137
143
  }
138
144
  }
139
145
 
140
- export interface IBiddingList extends IBiddingStatusPayload {
141
- periodFrom: string;
142
- periodTo: string;
143
- winRate: number;
146
+ export interface IBiddingQuotation {
144
147
  docType: string;
145
148
  docBook: string;
146
149
  docNo: string;
147
150
  }
148
- export interface IBiddingListPayload {
149
- custCode: string;
151
+
152
+ export interface IBiddingList extends IBiddingStatusPayload, IBiddingQuotation, IBiddingPeriodDate {
153
+ winRate: number;
154
+ }
155
+ export interface IBiddingListPayload extends IBiddingCustCode{
150
156
  }
157
+
151
158
  export interface IBiddingListResponse extends IBaseResponse {
152
159
  data: IBiddingList[];
153
160
  }
@@ -157,34 +164,19 @@ export interface IBiddingByRidPayload {
157
164
  export interface IBiddingByRidResponse extends IBaseResponse {
158
165
  data: IBiddingByRid;
159
166
  }
160
- export interface IBiddingByRid {
167
+ export interface IBiddingByRid extends IBiddingQuotation, IBiddingPeriodDate, IBiddingCustCodeAndName {
161
168
  recordId: number;
162
169
  status: string;
163
- periodFrom: string;
164
- periodTo: string;
165
- docType: string;
166
- docBook: string;
167
- docNo: string;
168
- custCode: string;
169
- custName: string;
170
170
  custAddress: string;
171
171
  companyName: string;
172
172
  companyAddress: string;
173
173
  }
174
-
175
- export interface IBiddingDetail {
176
- recordId: number;
177
- custCode: string;
178
- custProductCode: string;
179
- custProductName: string;
180
- seq: number;
181
- productCode: string;
182
- productShortCode: string;
183
- productName: string;
184
- thumbnail: string;
185
- unit: string;
186
- price: number;
174
+ export interface IWinLoss{
187
175
  winLoss: "W" | "L" | null;
176
+ }
177
+ export interface IBiddingDetail extends IBiddingProductDetail, IBiddingCustomerProductList, IWinLoss, IBiddingCustCode {
178
+ recordId: number;
179
+ price: number;
188
180
  winLossHistory: IProductWinLossHistory[];
189
181
  lossReasons: IBiddingReason[];
190
182
  }
@@ -199,9 +191,8 @@ export interface IBiddingReason {
199
191
  export interface IBiddingReasonResponse extends IBaseResponse {
200
192
  data: IBiddingReason[];
201
193
  }
202
- export interface IBiddingWinLoss {
194
+ export interface IBiddingWinLoss extends IWinLoss {
203
195
  recordId: number;
204
- winLoss: "W" | "L" | null;
205
196
  }
206
197
  export interface IBiddingWinLossResponse extends IBaseResponse {
207
198
  data: IBiddingWinLoss;
@@ -216,9 +207,7 @@ export interface IBiddingReasonByDetailRidResponse extends IBaseResponse {
216
207
  data: IBiddingReason[];
217
208
  }
218
209
 
219
- export interface IBiddingCustomerCommon {
220
- custCode: string;
221
- custName: string;
210
+ export interface IBiddingCustomerCommon extends IBiddingCustCodeAndName{
222
211
  startDate: Date;
223
212
  submissionDay: number;
224
213
  }
@@ -237,8 +226,6 @@ export interface IBiddingCustomerHistory extends IBiddingCustomerCommon {
237
226
  export interface IBiddingCustomerHistoryResponse extends IBaseResponse {
238
227
  data: IBiddingCustomerHistory[];
239
228
  }
240
- export interface IProductWinLossHistory {
241
- winLoss: "W" | "L" | null;
242
- periodFrom: string;
243
- periodTo: string;
229
+ export interface IProductWinLossHistory extends IBiddingPeriodDate, IWinLoss {
230
+
244
231
  }