-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
107 lines (99 loc) · 2.23 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// resource.d.ts
export interface SalesDepartment {
id: number | null;
code: string | null;
}
export interface Pricing {
sellPrice: string[];
currMargin: string;
currMarginPct: string;
avgMargin: string;
avgMarginPct: string;
}
export interface UOM {
description: string | null;
location: string;
weight: string;
}
export interface Levy {
code: string | null;
}
export interface PrimaryVendor {
vendorNo: string | null;
}
export interface Links {
self: string;
}
export interface InventoryItem {
id: number;
whse: string;
partNo: string;
description: string;
status: number;
availableQty: string;
onHandQty: string;
backorderQty: string;
committedQty: string;
onPurchaseQty: string;
buyMeasureCode: string;
stockMeasureCode: string;
sellMeasureCode: string;
alternatePartNo: string | null;
currentCost: string;
averageCost: string;
standardCost: string;
groupNo: string | null;
type: string;
salesDepartment: SalesDepartment;
userDef1: string | null;
userDef2: string;
poDueDate: string | null;
currentPONo: string | null;
reorderPoint: string;
minimumBuyQty: string;
lastYearQty: string;
lastYearSales: string;
thisYearQty: string;
thisYearSales: string;
nextYearQty: string;
nextYearSales: string;
allowBackorders: boolean;
allowReturns: boolean;
dutyPct: string;
freightPct: string;
defaultExpiryDate: string | null;
lotConsumeType: string | null;
manufactureCountry: string | null;
harmonizedCode: string | null;
suggestedOrderQty: string;
pricing: Pricing;
uom: UOM;
packSize: string;
foregroundColor: number;
backgroundColor: number;
levy: Levy;
primaryVendor: PrimaryVendor;
allowBackOrders: boolean;
dfltExpiryDays: number | null;
mfgCountry: string | null;
hsCode: string | null;
serializedMode: string;
upload: boolean;
lastModified: string | null;
lastSaleDate: string | null;
lastReceiptDate: string | null;
lastCountDate: string | null;
lastCountQty: number | null;
lastCountVariance: number | null;
created: string;
createdBy: string;
modified: string;
modifiedBy: string;
links: Links;
}
export interface InventoryCollection {
records: InventoryItem[];
start: number;
limit: number;
count: number;
}