Skip to content

Commit

Permalink
fix: 🐛 webhook timestamp type
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosNicolau committed May 27, 2024
1 parent 6d64c81 commit bc6f579
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions src/types/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export type WebhookMessage = {
/**
* The time when the customer sent the message to the business in unix format
*/
timestamp: number | string;
timestamp: string;
/**
* When the messages type is set to audio, including voice messages, this object is included in the messages object:
*/
Expand Down Expand Up @@ -138,28 +138,28 @@ export type WebhookMessage = {
*/
interactive?: {
type: string;
/**
* Sent when a customer clicks a button
*/
button_reply?: {
/**
* Unique ID of a button
*/
id: string;
title: string;
};
/**
* Sent when a customer selects an item from a list
*/
list_reply?: {
/**
* Unique ID of the selected list item
*/
id: string;
title: string;
description: string;
};
};
/**
* Sent when a customer clicks a button
*/
button_reply?: {
/**
* Unique ID of a button
*/
id: string;
title: string;
};
/**
* Sent when a customer selects an item from a list
*/
list_reply?: {
/**
* Unique ID of the selected list item
*/
id: string;
title: string;
description: string;
};
};
/**
* Included in the messages object when a customer has placed an order. Order objects have the following properties:
*/
Expand Down Expand Up @@ -339,7 +339,7 @@ export type WebhookStatus = {
/**
* Date for the status message in unix
*/
timestamp: number;
timestamp: string;
};

export type WebhookMetadata = {
Expand Down

0 comments on commit bc6f579

Please sign in to comment.