@jagota/interfaces 1.3.24 → 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.24",
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,17 +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;
83
86
  reqMinNarration?: string;
84
87
  winLossHistory: IProductWinLossHistory[];
85
88
  }
86
89
 
87
- export interface IBiddingPricelistPayload {
88
- custCode: string;
90
+ export interface IBiddingPeriodDate {
89
91
  periodFrom: string;
90
92
  periodTo: string;
91
93
  }
92
94
 
95
+ export interface IBiddingPricelistPayload extends IBiddingPeriodDate, IBiddingCustCode{
96
+ }
97
+
93
98
  export interface ISetBiddingPriceHPayload extends IBiddingPricelistPayload {
94
99
  submissionDay: number;
95
100
  tenderDay: number;
@@ -138,17 +143,18 @@ export interface IBiddingStatusResponse extends IBaseResponse {
138
143
  }
139
144
  }
140
145
 
141
- export interface IBiddingList extends IBiddingStatusPayload {
142
- periodFrom: string;
143
- periodTo: string;
144
- winRate: number;
146
+ export interface IBiddingQuotation {
145
147
  docType: string;
146
148
  docBook: string;
147
149
  docNo: string;
148
150
  }
149
- export interface IBiddingListPayload {
150
- custCode: string;
151
+
152
+ export interface IBiddingList extends IBiddingStatusPayload, IBiddingQuotation, IBiddingPeriodDate {
153
+ winRate: number;
154
+ }
155
+ export interface IBiddingListPayload extends IBiddingCustCode{
151
156
  }
157
+
152
158
  export interface IBiddingListResponse extends IBaseResponse {
153
159
  data: IBiddingList[];
154
160
  }
@@ -158,34 +164,19 @@ export interface IBiddingByRidPayload {
158
164
  export interface IBiddingByRidResponse extends IBaseResponse {
159
165
  data: IBiddingByRid;
160
166
  }
161
- export interface IBiddingByRid {
167
+ export interface IBiddingByRid extends IBiddingQuotation, IBiddingPeriodDate, IBiddingCustCodeAndName {
162
168
  recordId: number;
163
169
  status: string;
164
- periodFrom: string;
165
- periodTo: string;
166
- docType: string;
167
- docBook: string;
168
- docNo: string;
169
- custCode: string;
170
- custName: string;
171
170
  custAddress: string;
172
171
  companyName: string;
173
172
  companyAddress: string;
174
173
  }
175
-
176
- export interface IBiddingDetail {
177
- recordId: number;
178
- custCode: string;
179
- custProductCode: string;
180
- custProductName: string;
181
- seq: number;
182
- productCode: string;
183
- productShortCode: string;
184
- productName: string;
185
- thumbnail: string;
186
- unit: string;
187
- price: number;
174
+ export interface IWinLoss{
188
175
  winLoss: "W" | "L" | null;
176
+ }
177
+ export interface IBiddingDetail extends IBiddingProductDetail, IBiddingCustomerProductList, IWinLoss, IBiddingCustCode {
178
+ recordId: number;
179
+ price: number;
189
180
  winLossHistory: IProductWinLossHistory[];
190
181
  lossReasons: IBiddingReason[];
191
182
  }
@@ -200,9 +191,8 @@ export interface IBiddingReason {
200
191
  export interface IBiddingReasonResponse extends IBaseResponse {
201
192
  data: IBiddingReason[];
202
193
  }
203
- export interface IBiddingWinLoss {
194
+ export interface IBiddingWinLoss extends IWinLoss {
204
195
  recordId: number;
205
- winLoss: "W" | "L" | null;
206
196
  }
207
197
  export interface IBiddingWinLossResponse extends IBaseResponse {
208
198
  data: IBiddingWinLoss;
@@ -217,9 +207,7 @@ export interface IBiddingReasonByDetailRidResponse extends IBaseResponse {
217
207
  data: IBiddingReason[];
218
208
  }
219
209
 
220
- export interface IBiddingCustomerCommon {
221
- custCode: string;
222
- custName: string;
210
+ export interface IBiddingCustomerCommon extends IBiddingCustCodeAndName{
223
211
  startDate: Date;
224
212
  submissionDay: number;
225
213
  }
@@ -238,8 +226,6 @@ export interface IBiddingCustomerHistory extends IBiddingCustomerCommon {
238
226
  export interface IBiddingCustomerHistoryResponse extends IBaseResponse {
239
227
  data: IBiddingCustomerHistory[];
240
228
  }
241
- export interface IProductWinLossHistory {
242
- winLoss: "W" | "L" | null;
243
- periodFrom: string;
244
- periodTo: string;
229
+ export interface IProductWinLossHistory extends IBiddingPeriodDate, IWinLoss {
230
+
245
231
  }