@zernio/node 0.2.828 → 0.2.830
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.mts +23 -4
- package/dist/index.d.ts +23 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +23 -4
package/dist/index.d.mts
CHANGED
|
@@ -4713,9 +4713,28 @@ type CtwaAdRequestBody = {
|
|
|
4713
4713
|
*/
|
|
4714
4714
|
text: string;
|
|
4715
4715
|
/**
|
|
4716
|
-
* Message put into the user's text input, ready to send. Replaces Meta's default ("Hi! I want more info."). Lets one ad steer the opening message toward what it promotes (e.g. a specific product).
|
|
4716
|
+
* Message put into the user's text input, ready to send. Replaces Meta's default ("Hi! I want more info."). Lets one ad steer the opening message toward what it promotes (e.g. a specific product). Exactly one of prefillText or quickReplies.
|
|
4717
4717
|
*/
|
|
4718
|
-
prefillText
|
|
4718
|
+
prefillText?: string;
|
|
4719
|
+
/**
|
|
4720
|
+
* Tappable chips under the greeting instead of a prefilled
|
|
4721
|
+
* message. Exactly one of prefillText or quickReplies. Put
|
|
4722
|
+
* your own campaign or ad key in each payload: the tap arrives
|
|
4723
|
+
* on the messages webhook with that payload even where Meta
|
|
4724
|
+
* delivers no ad referral (Pages owned by an EU business under
|
|
4725
|
+
* the Europe/Japan Messenger restrictions).
|
|
4726
|
+
*
|
|
4727
|
+
*/
|
|
4728
|
+
quickReplies?: Array<{
|
|
4729
|
+
/**
|
|
4730
|
+
* Chip label the person taps.
|
|
4731
|
+
*/
|
|
4732
|
+
title: string;
|
|
4733
|
+
/**
|
|
4734
|
+
* Opaque string you choose; delivered on the message.received webhook as interactiveMetadata.quickReplyPayload when the chip is tapped.
|
|
4735
|
+
*/
|
|
4736
|
+
payload: string;
|
|
4737
|
+
}>;
|
|
4719
4738
|
};
|
|
4720
4739
|
/**
|
|
4721
4740
|
* Multi-creative shape: N CTWA ads under one campaign + one
|
|
@@ -27910,7 +27929,7 @@ type PurchasePhoneNumberError = (unknown | {
|
|
|
27910
27929
|
error?: string;
|
|
27911
27930
|
} | {
|
|
27912
27931
|
error?: string;
|
|
27913
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE';
|
|
27932
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK';
|
|
27914
27933
|
} | {
|
|
27915
27934
|
error?: string;
|
|
27916
27935
|
code?: 'CARRIER_UNAVAILABLE';
|
|
@@ -28281,7 +28300,7 @@ type PurchaseWhatsAppPhoneNumberError = (unknown | {
|
|
|
28281
28300
|
error?: string;
|
|
28282
28301
|
} | {
|
|
28283
28302
|
error?: string;
|
|
28284
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE';
|
|
28303
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK';
|
|
28285
28304
|
} | {
|
|
28286
28305
|
error?: string;
|
|
28287
28306
|
code?: 'CARRIER_UNAVAILABLE';
|
package/dist/index.d.ts
CHANGED
|
@@ -4713,9 +4713,28 @@ type CtwaAdRequestBody = {
|
|
|
4713
4713
|
*/
|
|
4714
4714
|
text: string;
|
|
4715
4715
|
/**
|
|
4716
|
-
* Message put into the user's text input, ready to send. Replaces Meta's default ("Hi! I want more info."). Lets one ad steer the opening message toward what it promotes (e.g. a specific product).
|
|
4716
|
+
* Message put into the user's text input, ready to send. Replaces Meta's default ("Hi! I want more info."). Lets one ad steer the opening message toward what it promotes (e.g. a specific product). Exactly one of prefillText or quickReplies.
|
|
4717
4717
|
*/
|
|
4718
|
-
prefillText
|
|
4718
|
+
prefillText?: string;
|
|
4719
|
+
/**
|
|
4720
|
+
* Tappable chips under the greeting instead of a prefilled
|
|
4721
|
+
* message. Exactly one of prefillText or quickReplies. Put
|
|
4722
|
+
* your own campaign or ad key in each payload: the tap arrives
|
|
4723
|
+
* on the messages webhook with that payload even where Meta
|
|
4724
|
+
* delivers no ad referral (Pages owned by an EU business under
|
|
4725
|
+
* the Europe/Japan Messenger restrictions).
|
|
4726
|
+
*
|
|
4727
|
+
*/
|
|
4728
|
+
quickReplies?: Array<{
|
|
4729
|
+
/**
|
|
4730
|
+
* Chip label the person taps.
|
|
4731
|
+
*/
|
|
4732
|
+
title: string;
|
|
4733
|
+
/**
|
|
4734
|
+
* Opaque string you choose; delivered on the message.received webhook as interactiveMetadata.quickReplyPayload when the chip is tapped.
|
|
4735
|
+
*/
|
|
4736
|
+
payload: string;
|
|
4737
|
+
}>;
|
|
4719
4738
|
};
|
|
4720
4739
|
/**
|
|
4721
4740
|
* Multi-creative shape: N CTWA ads under one campaign + one
|
|
@@ -27910,7 +27929,7 @@ type PurchasePhoneNumberError = (unknown | {
|
|
|
27910
27929
|
error?: string;
|
|
27911
27930
|
} | {
|
|
27912
27931
|
error?: string;
|
|
27913
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE';
|
|
27932
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK';
|
|
27914
27933
|
} | {
|
|
27915
27934
|
error?: string;
|
|
27916
27935
|
code?: 'CARRIER_UNAVAILABLE';
|
|
@@ -28281,7 +28300,7 @@ type PurchaseWhatsAppPhoneNumberError = (unknown | {
|
|
|
28281
28300
|
error?: string;
|
|
28282
28301
|
} | {
|
|
28283
28302
|
error?: string;
|
|
28284
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE';
|
|
28303
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK';
|
|
28285
28304
|
} | {
|
|
28286
28305
|
error?: string;
|
|
28287
28306
|
code?: 'CARRIER_UNAVAILABLE';
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.830",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.830",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
|
@@ -3178,9 +3178,28 @@ export type CtwaAdRequestBody = {
|
|
|
3178
3178
|
*/
|
|
3179
3179
|
text: string;
|
|
3180
3180
|
/**
|
|
3181
|
-
* Message put into the user's text input, ready to send. Replaces Meta's default ("Hi! I want more info."). Lets one ad steer the opening message toward what it promotes (e.g. a specific product).
|
|
3181
|
+
* Message put into the user's text input, ready to send. Replaces Meta's default ("Hi! I want more info."). Lets one ad steer the opening message toward what it promotes (e.g. a specific product). Exactly one of prefillText or quickReplies.
|
|
3182
3182
|
*/
|
|
3183
|
-
prefillText
|
|
3183
|
+
prefillText?: string;
|
|
3184
|
+
/**
|
|
3185
|
+
* Tappable chips under the greeting instead of a prefilled
|
|
3186
|
+
* message. Exactly one of prefillText or quickReplies. Put
|
|
3187
|
+
* your own campaign or ad key in each payload: the tap arrives
|
|
3188
|
+
* on the messages webhook with that payload even where Meta
|
|
3189
|
+
* delivers no ad referral (Pages owned by an EU business under
|
|
3190
|
+
* the Europe/Japan Messenger restrictions).
|
|
3191
|
+
*
|
|
3192
|
+
*/
|
|
3193
|
+
quickReplies?: Array<{
|
|
3194
|
+
/**
|
|
3195
|
+
* Chip label the person taps.
|
|
3196
|
+
*/
|
|
3197
|
+
title: string;
|
|
3198
|
+
/**
|
|
3199
|
+
* Opaque string you choose; delivered on the message.received webhook as interactiveMetadata.quickReplyPayload when the chip is tapped.
|
|
3200
|
+
*/
|
|
3201
|
+
payload: string;
|
|
3202
|
+
}>;
|
|
3184
3203
|
};
|
|
3185
3204
|
/**
|
|
3186
3205
|
* Multi-creative shape: N CTWA ads under one campaign + one
|
|
@@ -27763,7 +27782,7 @@ export type PurchasePhoneNumberError = (unknown | {
|
|
|
27763
27782
|
error?: string;
|
|
27764
27783
|
} | {
|
|
27765
27784
|
error?: string;
|
|
27766
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE';
|
|
27785
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK';
|
|
27767
27786
|
} | {
|
|
27768
27787
|
error?: string;
|
|
27769
27788
|
code?: 'CARRIER_UNAVAILABLE';
|
|
@@ -28148,7 +28167,7 @@ export type PurchaseWhatsAppPhoneNumberError = (unknown | {
|
|
|
28148
28167
|
error?: string;
|
|
28149
28168
|
} | {
|
|
28150
28169
|
error?: string;
|
|
28151
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE';
|
|
28170
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK';
|
|
28152
28171
|
} | {
|
|
28153
28172
|
error?: string;
|
|
28154
28173
|
code?: 'CARRIER_UNAVAILABLE';
|