@geekapps/post-nextjs 0.1.15 → 0.1.16
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/dist/index.d.ts +12 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/types.ts +12 -0
package/dist/index.d.ts
CHANGED
|
@@ -214,6 +214,15 @@ interface TemplateVariables {
|
|
|
214
214
|
footer?: TemplateVariable[];
|
|
215
215
|
buttons?: TemplateVariable[];
|
|
216
216
|
}
|
|
217
|
+
interface EmailAttachment {
|
|
218
|
+
filename: string;
|
|
219
|
+
/** Conteúdo do arquivo em base64. Informe `content` ou `url`. */
|
|
220
|
+
content?: string;
|
|
221
|
+
/** URL pública (http/https) do arquivo. Informe `content` ou `url`. */
|
|
222
|
+
url?: string;
|
|
223
|
+
/** Ex.: "application/pdf". Se omitido, é inferido pelo nome do arquivo. */
|
|
224
|
+
contentType?: string;
|
|
225
|
+
}
|
|
217
226
|
interface SendMessageInput {
|
|
218
227
|
type: MessageType;
|
|
219
228
|
to: string;
|
|
@@ -224,6 +233,8 @@ interface SendMessageInput {
|
|
|
224
233
|
subject?: string;
|
|
225
234
|
body?: string;
|
|
226
235
|
variables?: TemplateVariable[] | TemplateVariables;
|
|
236
|
+
/** Apenas para `type: "email"`. Máx. 10 arquivos / 25MB no total. */
|
|
237
|
+
attachments?: EmailAttachment[];
|
|
227
238
|
}
|
|
228
239
|
interface CreateTemplateInput {
|
|
229
240
|
name: string;
|
|
@@ -883,4 +894,4 @@ declare function verifyWebhookSignature(rawBody: string, signatureHeader: string
|
|
|
883
894
|
/** Verifies the signature and parses the payload; throws if invalid. */
|
|
884
895
|
declare function constructWebhookEvent(rawBody: string, signatureHeader: string | null | undefined, secret: string): PostWebhookPayload;
|
|
885
896
|
|
|
886
|
-
export { type AreaCode, type AvailablePlan, type CallActionResult, type CallAnswerInput, type CallConnectWebhookData, type CallPermissionStatus, type CallStatusWebhookData, type CallTargetInput, type CallTerminateWebhookData, type CallingSettings, type CallingStatus, type ConnectCallInput, type ConnectCallResult, type ConnectWabaInput, type ConnectWhatsappNumberInput, type CreateDomainInput, type CreateDomainResult, type CreateTemplateInput, type CreateWebhookInput, type CreateWhatsappTemplateInput, type DnsRecord, type DomainStatus, type DomainType, DomainsResource, GeekappsPost, type GeekappsPostOptions, HistoryResource, type HttpClientOptions, type ListHistoryParams, type ManagedNumber, type ManagedNumberStatus, ManagedNumbersResource, type MessageLog, type MessageLogDetail, type MessagePresenceInput, type MessagePresenceResult, type MessageReceivedWebhookData, type MessageStatus, type MessageTemplate, type MessageType, MessagesResource, type OrgDomain, type OrgPlan, type OrgUsage, type OrgWaba, type OrgWebhook, type OrgWebhookWithSecret, type PaginatedResult, type PhoneNumberStatusResult, type PlanTier, PlansResource, type PlansResult, PostApiError, PostClient, type PostWebhookPayload, type RegisterWhatsappNumberInput, type RequestCallPermissionInput, type RequestCallPermissionResult, type RotateSecretResult, type SaveDraftInput, type SendMessageInput, type SendMessageResult, type SendWhatsappMessageInput, type SendWhatsappMessageResult, type SmtpConfig, SmtpResource, type StatisticsParams, StatisticsResource, type StatisticsResult, type SyncWhatsappTemplatesResult, type TemplateVariable, type TemplateVariables, TemplatesResource, type TokenResolver, type UpdateCallingSettingsInput, type UpdatePlanInput, type UpdateTemplateInput, type UpdateWebhookInput, type UpdateWhatsappProfileInput, type UpdateWhatsappTemplateInput, type UploadWhatsappMediaInput, type UploadWhatsappMediaResult, type UpsertSmtpConfigInput, type WabaStatus, type WebhookDelivery, type WebhookEvent, type WebhookSdpSession, WebhooksResource, WhatsappCallsResource, type WhatsappContactCard, type WhatsappInteractive, type WhatsappInteractiveButtons, type WhatsappInteractiveCtaUrl, type WhatsappInteractiveList, type WhatsappInteractiveLocationRequest, type WhatsappMediaDownload, type WhatsappMediaInfo, type WhatsappMediaRef, type WhatsappMessage, WhatsappMessagesResource, type WhatsappNumber, type WhatsappNumberProfile, type WhatsappNumberStatus, WhatsappNumbersResource, type WhatsappTemplate, type WhatsappTemplateCategory, type WhatsappTemplateStatus, WhatsappTemplatesResource, constructWebhookEvent, verifyWebhookSignature };
|
|
897
|
+
export { type AreaCode, type AvailablePlan, type CallActionResult, type CallAnswerInput, type CallConnectWebhookData, type CallPermissionStatus, type CallStatusWebhookData, type CallTargetInput, type CallTerminateWebhookData, type CallingSettings, type CallingStatus, type ConnectCallInput, type ConnectCallResult, type ConnectWabaInput, type ConnectWhatsappNumberInput, type CreateDomainInput, type CreateDomainResult, type CreateTemplateInput, type CreateWebhookInput, type CreateWhatsappTemplateInput, type DnsRecord, type DomainStatus, type DomainType, DomainsResource, type EmailAttachment, GeekappsPost, type GeekappsPostOptions, HistoryResource, type HttpClientOptions, type ListHistoryParams, type ManagedNumber, type ManagedNumberStatus, ManagedNumbersResource, type MessageLog, type MessageLogDetail, type MessagePresenceInput, type MessagePresenceResult, type MessageReceivedWebhookData, type MessageStatus, type MessageTemplate, type MessageType, MessagesResource, type OrgDomain, type OrgPlan, type OrgUsage, type OrgWaba, type OrgWebhook, type OrgWebhookWithSecret, type PaginatedResult, type PhoneNumberStatusResult, type PlanTier, PlansResource, type PlansResult, PostApiError, PostClient, type PostWebhookPayload, type RegisterWhatsappNumberInput, type RequestCallPermissionInput, type RequestCallPermissionResult, type RotateSecretResult, type SaveDraftInput, type SendMessageInput, type SendMessageResult, type SendWhatsappMessageInput, type SendWhatsappMessageResult, type SmtpConfig, SmtpResource, type StatisticsParams, StatisticsResource, type StatisticsResult, type SyncWhatsappTemplatesResult, type TemplateVariable, type TemplateVariables, TemplatesResource, type TokenResolver, type UpdateCallingSettingsInput, type UpdatePlanInput, type UpdateTemplateInput, type UpdateWebhookInput, type UpdateWhatsappProfileInput, type UpdateWhatsappTemplateInput, type UploadWhatsappMediaInput, type UploadWhatsappMediaResult, type UpsertSmtpConfigInput, type WabaStatus, type WebhookDelivery, type WebhookEvent, type WebhookSdpSession, WebhooksResource, WhatsappCallsResource, type WhatsappContactCard, type WhatsappInteractive, type WhatsappInteractiveButtons, type WhatsappInteractiveCtaUrl, type WhatsappInteractiveList, type WhatsappInteractiveLocationRequest, type WhatsappMediaDownload, type WhatsappMediaInfo, type WhatsappMediaRef, type WhatsappMessage, WhatsappMessagesResource, type WhatsappNumber, type WhatsappNumberProfile, type WhatsappNumberStatus, WhatsappNumbersResource, type WhatsappTemplate, type WhatsappTemplateCategory, type WhatsappTemplateStatus, WhatsappTemplatesResource, constructWebhookEvent, verifyWebhookSignature };
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -256,6 +256,16 @@ export interface TemplateVariables {
|
|
|
256
256
|
buttons?: TemplateVariable[];
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
+
export interface EmailAttachment {
|
|
260
|
+
filename: string;
|
|
261
|
+
/** Conteúdo do arquivo em base64. Informe `content` ou `url`. */
|
|
262
|
+
content?: string;
|
|
263
|
+
/** URL pública (http/https) do arquivo. Informe `content` ou `url`. */
|
|
264
|
+
url?: string;
|
|
265
|
+
/** Ex.: "application/pdf". Se omitido, é inferido pelo nome do arquivo. */
|
|
266
|
+
contentType?: string;
|
|
267
|
+
}
|
|
268
|
+
|
|
259
269
|
export interface SendMessageInput {
|
|
260
270
|
type: MessageType;
|
|
261
271
|
to: string;
|
|
@@ -266,6 +276,8 @@ export interface SendMessageInput {
|
|
|
266
276
|
subject?: string;
|
|
267
277
|
body?: string;
|
|
268
278
|
variables?: TemplateVariable[] | TemplateVariables;
|
|
279
|
+
/** Apenas para `type: "email"`. Máx. 10 arquivos / 25MB no total. */
|
|
280
|
+
attachments?: EmailAttachment[];
|
|
269
281
|
}
|
|
270
282
|
|
|
271
283
|
export interface CreateTemplateInput {
|