Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
keshav2010 committed Oct 19, 2023
1 parent ccca666 commit b4a0f37
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 20 deletions.
11 changes: 5 additions & 6 deletions lib/cjs/interfaces/repositories/OrderRepositoryInterfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@ export interface OrderItems {
quantity: number;
price: number;
}
export interface OrderCustomInfo<T = any> {
name: string;
value: T;
}
export interface OrderSchema<CustomInfoValue = any> {
export interface OrderSchema {
_id?: string;
vendorId: string;
customerId: string;
items: OrderItems[];
orderState: OrderStates;
orderStateHistory: OrderStates[];
customInfo?: OrderCustomInfo<CustomInfoValue>[];
customInfo?: {
name: string;
value: any;
}[];
createdAt: Date;
lastModifiedAt: Date;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions lib/esm/interfaces/repositories/OrderRepositoryInterfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@ export interface OrderItems {
quantity: number;
price: number;
}
export interface OrderCustomInfo<T = any> {
name: string;
value: T;
}
export interface OrderSchema<CustomInfoValue = any> {
export interface OrderSchema {
_id?: string;
vendorId: string;
customerId: string;
items: OrderItems[];
orderState: OrderStates;
orderStateHistory: OrderStates[];
customInfo?: OrderCustomInfo<CustomInfoValue>[];
customInfo?: {
name: string;
value: any;
}[];
createdAt: Date;
lastModifiedAt: Date;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions src/interfaces/repositories/OrderRepositoryInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,14 @@ export interface OrderItems {
quantity: number;
price: number;
}
export interface OrderCustomInfo<T = any> {
name: string;
value: T;
}
export interface OrderSchema<CustomInfoValue = any> {
export interface OrderSchema {
_id?: string; //order id
vendorId: string; // vendor whose item are being stored in this cart
customerId: string; // customer who owns this cart
items: OrderItems[];
orderState: OrderStates;
orderStateHistory: OrderStates[];
customInfo?: OrderCustomInfo<CustomInfoValue>[];
customInfo?: { name: string; value: any }[];
createdAt: Date;
lastModifiedAt: Date;
}
Expand Down

0 comments on commit b4a0f37

Please sign in to comment.