@mcdylanproperenterprise/nodejs-proper-sunsoontaat-types 0.0.5 → 0.0.6
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 +1 -1
- package/types.d.ts +26 -0
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -144,6 +144,32 @@ export type TOrder = {
|
|
|
144
144
|
createdAt: Date;
|
|
145
145
|
};
|
|
146
146
|
|
|
147
|
+
export type TProduct = {
|
|
148
|
+
type: EProductType;
|
|
149
|
+
width: number;
|
|
150
|
+
height: number;
|
|
151
|
+
feet: number;
|
|
152
|
+
isFeetUp: boolean;
|
|
153
|
+
thickness: number;
|
|
154
|
+
unitOfMeasurement: EProductUnitOfMeasurement;
|
|
155
|
+
quantity: number;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export type TPostOrderCreateBody = {
|
|
159
|
+
status: EOrderStatus;
|
|
160
|
+
customerId: string | null;
|
|
161
|
+
purchaseOrderNo: string;
|
|
162
|
+
purchaseOrderAt: Date | null;
|
|
163
|
+
addOn: string;
|
|
164
|
+
isOwnCollect: boolean;
|
|
165
|
+
deliveryAddress: string;
|
|
166
|
+
products: TProduct[];
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
export type TPostOrderCreateResponse = {
|
|
170
|
+
id: string;
|
|
171
|
+
};
|
|
172
|
+
|
|
147
173
|
export type TLength = {
|
|
148
174
|
length: number;
|
|
149
175
|
quantity: number;
|