@lemoncloud/clipbiz-goods-api 0.25.1204 → 0.25.1209
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/dist/modules/deals/model.d.ts +2 -0
- package/dist/modules/deals/types.d.ts +1 -0
- package/dist/modules/deals/views.d.ts +11 -0
- package/dist/modules/exams/model.d.ts +2 -0
- package/dist/modules/exams/views.d.ts +5 -1
- package/dist/modules/goods/model.d.ts +36 -1
- package/dist/modules/goods/types.d.ts +12 -0
- package/dist/modules/goods/views.d.ts +16 -3
- package/dist/service/backend-types.d.ts +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -101,6 +101,8 @@ export interface DealModel extends DealHead, Model {
|
|
|
101
101
|
stateNo?: number;
|
|
102
102
|
/** 상태 세트 (inner object) */
|
|
103
103
|
status$?: DealStatusSet;
|
|
104
|
+
/** (internal) message-id */
|
|
105
|
+
mid?: string;
|
|
104
106
|
/** 요청 정보 */
|
|
105
107
|
requestQuantity?: number;
|
|
106
108
|
requestPrice?: number;
|
|
@@ -12,6 +12,7 @@ import { DealModel } from './model';
|
|
|
12
12
|
import { ProdView } from '../goods/views';
|
|
13
13
|
import { ItemView } from '../goods/views';
|
|
14
14
|
import { SiteView } from '../sites/views';
|
|
15
|
+
import { SiteHead } from '../sites/model';
|
|
15
16
|
import $LUT, { DealDeptInfo, DealStatus, DealStatusSet } from './types';
|
|
16
17
|
export * from './types';
|
|
17
18
|
export default $LUT;
|
|
@@ -39,6 +40,16 @@ export interface DealView extends View, Omit<Partial<DealModel>, 'prod$' | 'item
|
|
|
39
40
|
* - 표준 사업장
|
|
40
41
|
*/
|
|
41
42
|
readonly sellerSite$?: SiteView;
|
|
43
|
+
/**
|
|
44
|
+
* (readonly) 신청 기업 상세정보
|
|
45
|
+
* @see clipbiz-backend-api/MySiteView
|
|
46
|
+
*/
|
|
47
|
+
readonly $buyer?: SiteHead;
|
|
48
|
+
/**
|
|
49
|
+
* (readonly) 공급 기업 상세정보
|
|
50
|
+
* @see clipbiz-backend-api/MySiteView
|
|
51
|
+
*/
|
|
52
|
+
readonly $seller?: SiteHead;
|
|
42
53
|
/**
|
|
43
54
|
* (readonly) 상태 세트
|
|
44
55
|
*/
|
|
@@ -18,7 +18,7 @@ export default $LUT;
|
|
|
18
18
|
* type: `ExamView`
|
|
19
19
|
* - usually same as post's body.
|
|
20
20
|
*/
|
|
21
|
-
export interface ExamView extends View, Omit<Partial<ExamModel>, 'certified' | 'legalCompliant' | 'site$' | 'examer$'> {
|
|
21
|
+
export interface ExamView extends View, Omit<Partial<ExamModel>, 'certified' | 'legalCompliant' | 'isSubsidiaryPlan' | 'site$' | 'examer$'> {
|
|
22
22
|
/**
|
|
23
23
|
* 사업장 인증 여부
|
|
24
24
|
*/
|
|
@@ -27,6 +27,10 @@ export interface ExamView extends View, Omit<Partial<ExamModel>, 'certified' | '
|
|
|
27
27
|
* 법적요건충족여부
|
|
28
28
|
*/
|
|
29
29
|
legalCompliant?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 자회사형 표준사업장 전환 의향 유무
|
|
32
|
+
*/
|
|
33
|
+
isSubsidiaryPlan?: boolean;
|
|
30
34
|
/**
|
|
31
35
|
* 업체 정보
|
|
32
36
|
*/
|
|
@@ -54,6 +54,16 @@ export interface ProdHead {
|
|
|
54
54
|
/** name of prod */
|
|
55
55
|
name?: string;
|
|
56
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* interface: `UnitHead`
|
|
59
|
+
* - common head of unit-model.
|
|
60
|
+
*/
|
|
61
|
+
export interface UnitHead {
|
|
62
|
+
/** id of unit */
|
|
63
|
+
id?: string;
|
|
64
|
+
/** name of unit */
|
|
65
|
+
name?: string;
|
|
66
|
+
}
|
|
57
67
|
/**
|
|
58
68
|
* interface: `ItemModel`
|
|
59
69
|
* - 품목(item) 정보를 저장함
|
|
@@ -85,8 +95,15 @@ export interface ItemModel extends ItemHead, Model {
|
|
|
85
95
|
price?: number;
|
|
86
96
|
/** 단가 협의 여부 (0: 고정, 1: 협의가능) */
|
|
87
97
|
priceNegotiable?: BoolFlag;
|
|
88
|
-
/**
|
|
98
|
+
/**
|
|
99
|
+
* 단위 타입
|
|
100
|
+
* @deprecated use UnitModel.name instead
|
|
101
|
+
*/
|
|
89
102
|
unitType?: ItemUnitType;
|
|
103
|
+
/** (optional) 단위 ID */
|
|
104
|
+
unitId?: string;
|
|
105
|
+
/** (optional) 단위 정보 */
|
|
106
|
+
unit$?: UnitHead;
|
|
90
107
|
/** 납기 소요일 */
|
|
91
108
|
leadTimeDays?: number;
|
|
92
109
|
/** 납기 소요일 협의 여부 (0: 고정, 1: 협의가능) */
|
|
@@ -160,6 +177,20 @@ export interface ProdModel extends ProdHead, Model {
|
|
|
160
177
|
/** (partial) category info */
|
|
161
178
|
category$?: CategoryHead;
|
|
162
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* interface: `UnitModel`
|
|
182
|
+
* - 단위(unit) 정보를 저장함
|
|
183
|
+
*/
|
|
184
|
+
export interface UnitModel extends UnitHead, Model {
|
|
185
|
+
/** 단위명 */
|
|
186
|
+
name?: string;
|
|
187
|
+
/** 단위명 (영문) */
|
|
188
|
+
nameEn?: string;
|
|
189
|
+
/** 속성 */
|
|
190
|
+
value?: string;
|
|
191
|
+
/** 설명 */
|
|
192
|
+
desc?: string;
|
|
193
|
+
}
|
|
163
194
|
/**
|
|
164
195
|
* extract field names from models
|
|
165
196
|
* - only fields start with lowercase, or all upper.
|
|
@@ -169,20 +200,24 @@ export declare const filterFields: (fields: string[], base?: string[]) => string
|
|
|
169
200
|
export declare const $HEAD: {
|
|
170
201
|
item: string[];
|
|
171
202
|
prod: string[];
|
|
203
|
+
unit: string[];
|
|
172
204
|
};
|
|
173
205
|
export declare const $FIELD: {
|
|
174
206
|
item: string[];
|
|
175
207
|
prod: string[];
|
|
208
|
+
unit: string[];
|
|
176
209
|
};
|
|
177
210
|
/** must export default as below */
|
|
178
211
|
declare const _default: {
|
|
179
212
|
$HEAD: {
|
|
180
213
|
item: string[];
|
|
181
214
|
prod: string[];
|
|
215
|
+
unit: string[];
|
|
182
216
|
};
|
|
183
217
|
$FIELD: {
|
|
184
218
|
item: string[];
|
|
185
219
|
prod: string[];
|
|
220
|
+
unit: string[];
|
|
186
221
|
};
|
|
187
222
|
};
|
|
188
223
|
export default _default;
|
|
@@ -28,6 +28,8 @@ declare const $LUT: {
|
|
|
28
28
|
item: string;
|
|
29
29
|
/** prod */
|
|
30
30
|
prod: string;
|
|
31
|
+
/** unit */
|
|
32
|
+
unit: string;
|
|
31
33
|
};
|
|
32
34
|
/**
|
|
33
35
|
* `ItemStereo`
|
|
@@ -41,6 +43,12 @@ declare const $LUT: {
|
|
|
41
43
|
ProdStereo: {
|
|
42
44
|
'': string;
|
|
43
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* `UnitStereo`
|
|
48
|
+
*/
|
|
49
|
+
UnitStereo: {
|
|
50
|
+
'': string;
|
|
51
|
+
};
|
|
44
52
|
/**
|
|
45
53
|
* `ItemUnitType`
|
|
46
54
|
*/
|
|
@@ -64,6 +72,10 @@ export declare type ItemStereo = keyof typeof $LUT.ItemStereo;
|
|
|
64
72
|
* type: `ProdStereo`
|
|
65
73
|
*/
|
|
66
74
|
export declare type ProdStereo = keyof typeof $LUT.ProdStereo;
|
|
75
|
+
/**
|
|
76
|
+
* type: `UnitStereo`
|
|
77
|
+
*/
|
|
78
|
+
export declare type UnitStereo = keyof typeof $LUT.UnitStereo;
|
|
67
79
|
/**
|
|
68
80
|
* type: `ItemUnitType`
|
|
69
81
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Copyright (C) 2022 LemonCloud Co Ltd. - All Rights Reserved.
|
|
11
11
|
*/
|
|
12
12
|
import { View, Body } from 'lemon-model';
|
|
13
|
-
import { ItemModel } from './model';
|
|
13
|
+
import { ItemModel, ProdModel, UnitModel } from './model';
|
|
14
14
|
import { CategoryView } from '../categories/views';
|
|
15
15
|
import { SiteView } from '../sites/views';
|
|
16
16
|
import $LUT from './types';
|
|
@@ -21,7 +21,7 @@ export default $LUT;
|
|
|
21
21
|
* type: `ItemView`
|
|
22
22
|
* - usually same as post's body.
|
|
23
23
|
*/
|
|
24
|
-
export interface ItemView extends View, Omit<Partial<ItemModel>, 'minOrderNegotiable' | 'priceNegotiable' | 'leadTimeNegotiable' | 'capacityFlexible' | 'site$' | 'category$' | 'availRegions$$' | 'excludeRegions$$'> {
|
|
24
|
+
export interface ItemView extends View, Omit<Partial<ItemModel>, 'minOrderNegotiable' | 'priceNegotiable' | 'leadTimeNegotiable' | 'capacityFlexible' | 'site$' | 'category$' | 'availRegions$$' | 'excludeRegions$$' | 'unit$'> {
|
|
25
25
|
/** 최소주문 협의 여부 */
|
|
26
26
|
minOrderNegotiable?: boolean;
|
|
27
27
|
/** 단가 협의 여부 */
|
|
@@ -30,6 +30,8 @@ export interface ItemView extends View, Omit<Partial<ItemModel>, 'minOrderNegoti
|
|
|
30
30
|
leadTimeNegotiable?: boolean;
|
|
31
31
|
/** 공급 능력 유동 여부 */
|
|
32
32
|
capacityFlexible?: boolean;
|
|
33
|
+
/** (partial) unit info */
|
|
34
|
+
readonly unit$?: UnitView;
|
|
33
35
|
/** (partial) site info */
|
|
34
36
|
readonly site$?: SiteView;
|
|
35
37
|
/** (partial) category info */
|
|
@@ -48,7 +50,7 @@ export interface ItemBody extends Body, Partial<ItemView> {
|
|
|
48
50
|
* type: `ProdView`
|
|
49
51
|
* - usually same as post's body.
|
|
50
52
|
*/
|
|
51
|
-
export interface ProdView extends View, Omit<Partial<
|
|
53
|
+
export interface ProdView extends View, Omit<Partial<ProdModel>, 'site$' | 'category$'> {
|
|
52
54
|
/** (partial) site info */
|
|
53
55
|
readonly site$?: SiteView;
|
|
54
56
|
/** (partial) category info */
|
|
@@ -59,3 +61,14 @@ export interface ProdView extends View, Omit<Partial<import('./model').ProdModel
|
|
|
59
61
|
*/
|
|
60
62
|
export interface ProdBody extends Body, Partial<ProdView> {
|
|
61
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* type: `UnitView`
|
|
66
|
+
* - usually same as post's body.
|
|
67
|
+
*/
|
|
68
|
+
export interface UnitView extends View, Partial<UnitModel> {
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Type `UnitBody`
|
|
72
|
+
*/
|
|
73
|
+
export interface UnitBody extends Body, Partial<UnitView> {
|
|
74
|
+
}
|