diff --git a/src/index.ts b/src/index.ts index 8f98ba0ea8..bca5aa2455 100644 --- a/src/index.ts +++ b/src/index.ts @@ -41,6 +41,7 @@ export * as profile from './profile'; export * as status from './status'; export * as util from './util'; export * as whatsapp from './whatsapp'; +export * as order from './order'; export { emit, diff --git a/src/whatsapp/collections/OrderCollection.ts b/src/whatsapp/collections/OrderCollection.ts index 78df695e81..68f5f7409a 100644 --- a/src/whatsapp/collections/OrderCollection.ts +++ b/src/whatsapp/collections/OrderCollection.ts @@ -26,6 +26,7 @@ export declare class OrderCollection extends Collection { static staleCollection?: any; width?: any; height?: any; + addOrder(): Promise; findOrder(e?: any, t?: any, a?: any): any; } exportModule( diff --git a/src/whatsapp/functions/products.ts b/src/whatsapp/functions/products.ts index 363d3e71aa..1c1b80a6ee 100644 --- a/src/whatsapp/functions/products.ts +++ b/src/whatsapp/functions/products.ts @@ -71,10 +71,8 @@ export declare function queryProduct( imageWidth?: number, imageHeight?: number, i?: any, - s?: boolean, - l?: any + s?: boolean ): any; - exportModule( exports, { diff --git a/src/whatsapp/models/OrderItemModel.ts b/src/whatsapp/models/OrderItemModel.ts index 02025d58c8..0aa8f65f11 100644 --- a/src/whatsapp/models/OrderItemModel.ts +++ b/src/whatsapp/models/OrderItemModel.ts @@ -27,9 +27,12 @@ interface Props { id?: any; price?: any; currency?: any; + name?: string; quantity?: any; thumbnailId?: any; thumbnailUrl?: any; + isCustomItem?: boolean; + isQuantitySet?: boolean; } interface Session {