diff --git a/packages/conversation/src/models/v1/choice-item/choice-item.ts b/packages/conversation/src/models/v1/choice-item/choice-item.ts index 34c5dd46..63aef533 100644 --- a/packages/conversation/src/models/v1/choice-item/choice-item.ts +++ b/packages/conversation/src/models/v1/choice-item/choice-item.ts @@ -1,6 +1,8 @@ import { MediaMessageItem } from '../media-message'; export interface ChoiceItem { + + /** A message component for interactive messages, containing a choice. */ choice: ChoiceItemItem; } diff --git a/packages/conversation/src/models/v1/index.ts b/packages/conversation/src/models/v1/index.ts index 6ea6b101..da0f794f 100644 --- a/packages/conversation/src/models/v1/index.ts +++ b/packages/conversation/src/models/v1/index.ts @@ -63,7 +63,6 @@ export * from './media-message'; export * from './merge-contact-request'; export * from './message-retry-settings'; export * from './product'; -export * from './product-item'; export * from './product-response-message'; export * from './error-detail'; export * from './lookup-capability-request'; diff --git a/packages/conversation/src/models/v1/product-item/index.ts b/packages/conversation/src/models/v1/product-item/index.ts deleted file mode 100644 index 050a45ee..00000000 --- a/packages/conversation/src/models/v1/product-item/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { ProductItem } from './product-item'; diff --git a/packages/conversation/src/models/v1/product-item/product-item.ts b/packages/conversation/src/models/v1/product-item/product-item.ts deleted file mode 100644 index 8456c479..00000000 --- a/packages/conversation/src/models/v1/product-item/product-item.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * A message component for interactive messages, containing a product. - */ -export interface ProductItem { - /** Required parameter. The ID for the product. */ - id: string; - /** Required parameter. The marketplace to which the product belongs. */ - marketplace: string; - /** Output only. The quantity of the chosen product. */ - quantity?: number; - /** Output only. The price for one unit of the chosen product. */ - item_price?: number; - /** Output only. The currency of the item_price. */ - currency?: string; -} diff --git a/packages/conversation/src/models/v1/product-response-message/product-response-message.ts b/packages/conversation/src/models/v1/product-response-message/product-response-message.ts index bc974dd6..eeb8c41e 100644 --- a/packages/conversation/src/models/v1/product-response-message/product-response-message.ts +++ b/packages/conversation/src/models/v1/product-response-message/product-response-message.ts @@ -1,4 +1,4 @@ -import { ProductItem } from '../product-item'; +import { ProductItem } from '../product'; /** * Represents an interactive WhatsApp message containing ProductItem objects diff --git a/packages/conversation/src/models/v1/product/index.ts b/packages/conversation/src/models/v1/product/index.ts index a4258086..510807c8 100644 --- a/packages/conversation/src/models/v1/product/index.ts +++ b/packages/conversation/src/models/v1/product/index.ts @@ -1 +1 @@ -export type { Product } from './product'; +export type { Product, ProductItem } from './product';