@smartlyqofficial/node 0.1.18 → 0.1.19

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.cts CHANGED
@@ -13139,6 +13139,10 @@ type SendWhatsAppMessageData = {
13139
13139
  * For type=reaction. The emoji to react with, or an empty string to remove a previously-sent reaction. Requires context_message_id.
13140
13140
  */
13141
13141
  emoji?: string;
13142
+ /**
13143
+ * Pricing category for a template send. Optional - if omitted we read it from the template itself. Free-form sends are always billed as `service`.
13144
+ */
13145
+ category?: 'marketing' | 'utility' | 'authentication' | 'service';
13142
13146
  };
13143
13147
  path?: never;
13144
13148
  query?: never;
@@ -13164,7 +13168,35 @@ type SendWhatsAppMessageResponses = {
13164
13168
  * Sent
13165
13169
  */
13166
13170
  201: {
13167
- [key: string]: unknown;
13171
+ success?: true;
13172
+ data?: {
13173
+ message_id?: string;
13174
+ status?: string;
13175
+ /**
13176
+ * What this send was priced at.
13177
+ */
13178
+ pricing?: {
13179
+ /**
13180
+ * Category actually billed.
13181
+ */
13182
+ category?: string;
13183
+ /**
13184
+ * Market the destination resolved to.
13185
+ */
13186
+ market?: string;
13187
+ /**
13188
+ * Country calling code matched.
13189
+ */
13190
+ calling_code?: string;
13191
+ /**
13192
+ * USD charged for this message.
13193
+ */
13194
+ rate?: string;
13195
+ };
13196
+ };
13197
+ usage?: {
13198
+ [key: string]: unknown;
13199
+ };
13168
13200
  };
13169
13201
  };
13170
13202
  type SendWhatsAppMessageResponse = SendWhatsAppMessageResponses[keyof SendWhatsAppMessageResponses];
package/dist/index.d.ts CHANGED
@@ -13139,6 +13139,10 @@ type SendWhatsAppMessageData = {
13139
13139
  * For type=reaction. The emoji to react with, or an empty string to remove a previously-sent reaction. Requires context_message_id.
13140
13140
  */
13141
13141
  emoji?: string;
13142
+ /**
13143
+ * Pricing category for a template send. Optional - if omitted we read it from the template itself. Free-form sends are always billed as `service`.
13144
+ */
13145
+ category?: 'marketing' | 'utility' | 'authentication' | 'service';
13142
13146
  };
13143
13147
  path?: never;
13144
13148
  query?: never;
@@ -13164,7 +13168,35 @@ type SendWhatsAppMessageResponses = {
13164
13168
  * Sent
13165
13169
  */
13166
13170
  201: {
13167
- [key: string]: unknown;
13171
+ success?: true;
13172
+ data?: {
13173
+ message_id?: string;
13174
+ status?: string;
13175
+ /**
13176
+ * What this send was priced at.
13177
+ */
13178
+ pricing?: {
13179
+ /**
13180
+ * Category actually billed.
13181
+ */
13182
+ category?: string;
13183
+ /**
13184
+ * Market the destination resolved to.
13185
+ */
13186
+ market?: string;
13187
+ /**
13188
+ * Country calling code matched.
13189
+ */
13190
+ calling_code?: string;
13191
+ /**
13192
+ * USD charged for this message.
13193
+ */
13194
+ rate?: string;
13195
+ };
13196
+ };
13197
+ usage?: {
13198
+ [key: string]: unknown;
13199
+ };
13168
13200
  };
13169
13201
  };
13170
13202
  type SendWhatsAppMessageResponse = SendWhatsAppMessageResponses[keyof SendWhatsAppMessageResponses];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/node",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Official Node.js SDK for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
5
5
  "keywords": [
6
6
  "smartlyq",