@geekapps/post-nextjs 0.1.6 → 0.1.8
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 +16 -5
- package/package.json +1 -1
- package/src/index.ts +3 -0
- package/src/types.ts +18 -1
package/dist/index.d.ts
CHANGED
|
@@ -204,6 +204,20 @@ interface AreaCode {
|
|
|
204
204
|
state: string;
|
|
205
205
|
available: boolean;
|
|
206
206
|
}
|
|
207
|
+
interface TemplateVariable {
|
|
208
|
+
name: string;
|
|
209
|
+
value: string;
|
|
210
|
+
}
|
|
211
|
+
interface ButtonVariables {
|
|
212
|
+
index: number;
|
|
213
|
+
variables: TemplateVariable[];
|
|
214
|
+
}
|
|
215
|
+
interface TemplateVariables {
|
|
216
|
+
header?: TemplateVariable[];
|
|
217
|
+
body?: TemplateVariable[];
|
|
218
|
+
footer?: TemplateVariable[];
|
|
219
|
+
buttons?: ButtonVariables[];
|
|
220
|
+
}
|
|
207
221
|
interface SendMessageInput {
|
|
208
222
|
type: MessageType;
|
|
209
223
|
to: string;
|
|
@@ -213,10 +227,7 @@ interface SendMessageInput {
|
|
|
213
227
|
template?: string;
|
|
214
228
|
subject?: string;
|
|
215
229
|
body?: string;
|
|
216
|
-
variables?:
|
|
217
|
-
name: string;
|
|
218
|
-
value: string;
|
|
219
|
-
}>;
|
|
230
|
+
variables?: TemplateVariable[] | TemplateVariables;
|
|
220
231
|
}
|
|
221
232
|
interface CreateTemplateInput {
|
|
222
233
|
name: string;
|
|
@@ -541,4 +552,4 @@ declare class PostApiError extends Error {
|
|
|
541
552
|
get isValidationError(): boolean;
|
|
542
553
|
}
|
|
543
554
|
|
|
544
|
-
export { type AreaCode, type AvailablePlan, 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 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 RegisterWhatsappNumberInput, type RotateSecretResult, type SaveDraftInput, type SendMessageInput, type SendMessageResult, type SmtpConfig, SmtpResource, type StatisticsParams, StatisticsResource, type StatisticsResult, type SyncWhatsappTemplatesResult, TemplatesResource, type TokenResolver, type UpdatePlanInput, type UpdateTemplateInput, type UpdateWebhookInput, type UpdateWhatsappProfileInput, type UpdateWhatsappTemplateInput, type UpsertSmtpConfigInput, type WabaStatus, type WebhookDelivery, type WebhookEvent, WebhooksResource, type WhatsappNumber, type WhatsappNumberProfile, type WhatsappNumberStatus, WhatsappNumbersResource, type WhatsappTemplate, type WhatsappTemplateCategory, type WhatsappTemplateStatus, WhatsappTemplatesResource };
|
|
555
|
+
export { type AreaCode, type AvailablePlan, type ButtonVariables, 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 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 RegisterWhatsappNumberInput, type RotateSecretResult, type SaveDraftInput, type SendMessageInput, type SendMessageResult, type SmtpConfig, SmtpResource, type StatisticsParams, StatisticsResource, type StatisticsResult, type SyncWhatsappTemplatesResult, type TemplateVariable, type TemplateVariables, TemplatesResource, type TokenResolver, type UpdatePlanInput, type UpdateTemplateInput, type UpdateWebhookInput, type UpdateWhatsappProfileInput, type UpdateWhatsappTemplateInput, type UpsertSmtpConfigInput, type WabaStatus, type WebhookDelivery, type WebhookEvent, WebhooksResource, type WhatsappNumber, type WhatsappNumberProfile, type WhatsappNumberStatus, WhatsappNumbersResource, type WhatsappTemplate, type WhatsappTemplateCategory, type WhatsappTemplateStatus, WhatsappTemplatesResource };
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -239,6 +239,23 @@ export interface AreaCode {
|
|
|
239
239
|
|
|
240
240
|
// ─── Request types ────────────────────────────────────────────────────────────
|
|
241
241
|
|
|
242
|
+
export interface TemplateVariable {
|
|
243
|
+
name: string;
|
|
244
|
+
value: string;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface ButtonVariables {
|
|
248
|
+
index: number;
|
|
249
|
+
variables: TemplateVariable[];
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export interface TemplateVariables {
|
|
253
|
+
header?: TemplateVariable[];
|
|
254
|
+
body?: TemplateVariable[];
|
|
255
|
+
footer?: TemplateVariable[];
|
|
256
|
+
buttons?: ButtonVariables[];
|
|
257
|
+
}
|
|
258
|
+
|
|
242
259
|
export interface SendMessageInput {
|
|
243
260
|
type: MessageType;
|
|
244
261
|
to: string;
|
|
@@ -248,7 +265,7 @@ export interface SendMessageInput {
|
|
|
248
265
|
template?: string;
|
|
249
266
|
subject?: string;
|
|
250
267
|
body?: string;
|
|
251
|
-
variables?:
|
|
268
|
+
variables?: TemplateVariable[] | TemplateVariables;
|
|
252
269
|
}
|
|
253
270
|
|
|
254
271
|
export interface CreateTemplateInput {
|