@zernio/node 0.2.1476 → 0.2.1478

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 CHANGED
@@ -4204,16 +4204,24 @@ type AdRuleEvaluation = {
4204
4204
  objects: Array<AdRuleObjectEvaluation>;
4205
4205
  };
4206
4206
  /**
4207
- * Narrows the objects the rule checks. Every filter must hold. Text compares without case, and a missing field reads as empty.
4207
+ * Narrows the objects the rule checks. Every filter must hold. A campaign rule reads `name`, `campaign_id`, `goal` and `days_live`; an ad set rule also `campaign_name` and `adset_id`; an ad rule also `adset_name` and `ad_id`.
4208
4208
  */
4209
- type AdRuleFilters = Array<{
4209
+ type AdRuleFilters = Array<({
4210
4210
  /**
4211
4211
  * The object's own name, its campaign's or ad set's name, or the campaign goal (objective) as the platform reports it.
4212
4212
  */
4213
4213
  field: 'name' | 'campaign_name' | 'adset_name' | 'goal';
4214
4214
  op: 'contains' | 'not_contains' | 'equals' | 'not_equals' | 'starts_with';
4215
4215
  value: string;
4216
- }>;
4216
+ } | {
4217
+ field: 'campaign_id' | 'adset_id' | 'ad_id';
4218
+ op: 'in' | 'not_in';
4219
+ values: Array<(string)>;
4220
+ } | {
4221
+ field: 'days_live';
4222
+ op: '>=' | '<';
4223
+ value: number;
4224
+ })>;
4217
4225
  /**
4218
4226
  * Whether the rule checks campaigns, ad sets or single ads. Each one is evaluated on its own.
4219
4227
  */
@@ -20755,7 +20763,7 @@ type WebhookPayloadCommerceProduct = {
20755
20763
  type event34 = 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted';
20756
20764
  type type22 = 'product';
20757
20765
  /**
20758
- * Webhook payload for contact.updated and contact.deleted, fired after a provider contacts sync (Google Contacts, Outlook) changed a contact. Read the contact with `GET /v1/contacts/{id}`.
20766
+ * Webhook payload for contact.updated and contact.deleted, fired after a provider contacts sync (Google Contacts, Outlook) changed a contact. contact.updated also fires after a WhatsApp coexistence address-book change (WhatsApp never fires contact.deleted). Read the contact with `GET /v1/contacts/{id}`.
20759
20767
  */
20760
20768
  type WebhookPayloadContact = {
20761
20769
  id: string;
package/dist/index.d.ts CHANGED
@@ -4204,16 +4204,24 @@ type AdRuleEvaluation = {
4204
4204
  objects: Array<AdRuleObjectEvaluation>;
4205
4205
  };
4206
4206
  /**
4207
- * Narrows the objects the rule checks. Every filter must hold. Text compares without case, and a missing field reads as empty.
4207
+ * Narrows the objects the rule checks. Every filter must hold. A campaign rule reads `name`, `campaign_id`, `goal` and `days_live`; an ad set rule also `campaign_name` and `adset_id`; an ad rule also `adset_name` and `ad_id`.
4208
4208
  */
4209
- type AdRuleFilters = Array<{
4209
+ type AdRuleFilters = Array<({
4210
4210
  /**
4211
4211
  * The object's own name, its campaign's or ad set's name, or the campaign goal (objective) as the platform reports it.
4212
4212
  */
4213
4213
  field: 'name' | 'campaign_name' | 'adset_name' | 'goal';
4214
4214
  op: 'contains' | 'not_contains' | 'equals' | 'not_equals' | 'starts_with';
4215
4215
  value: string;
4216
- }>;
4216
+ } | {
4217
+ field: 'campaign_id' | 'adset_id' | 'ad_id';
4218
+ op: 'in' | 'not_in';
4219
+ values: Array<(string)>;
4220
+ } | {
4221
+ field: 'days_live';
4222
+ op: '>=' | '<';
4223
+ value: number;
4224
+ })>;
4217
4225
  /**
4218
4226
  * Whether the rule checks campaigns, ad sets or single ads. Each one is evaluated on its own.
4219
4227
  */
@@ -20755,7 +20763,7 @@ type WebhookPayloadCommerceProduct = {
20755
20763
  type event34 = 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted';
20756
20764
  type type22 = 'product';
20757
20765
  /**
20758
- * Webhook payload for contact.updated and contact.deleted, fired after a provider contacts sync (Google Contacts, Outlook) changed a contact. Read the contact with `GET /v1/contacts/{id}`.
20766
+ * Webhook payload for contact.updated and contact.deleted, fired after a provider contacts sync (Google Contacts, Outlook) changed a contact. contact.updated also fires after a WhatsApp coexistence address-book change (WhatsApp never fires contact.deleted). Read the contact with `GET /v1/contacts/{id}`.
20759
20767
  */
20760
20768
  type WebhookPayloadContact = {
20761
20769
  id: string;
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.1476",
39
+ version: "0.2.1478",
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.1476",
8
+ version: "0.2.1478",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.1476",
3
+ "version": "0.2.1478",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1991,16 +1991,24 @@ export type AdRuleEvaluation = {
1991
1991
  };
1992
1992
 
1993
1993
  /**
1994
- * Narrows the objects the rule checks. Every filter must hold. Text compares without case, and a missing field reads as empty.
1994
+ * Narrows the objects the rule checks. Every filter must hold. A campaign rule reads `name`, `campaign_id`, `goal` and `days_live`; an ad set rule also `campaign_name` and `adset_id`; an ad rule also `adset_name` and `ad_id`.
1995
1995
  */
1996
- export type AdRuleFilters = Array<{
1996
+ export type AdRuleFilters = Array<({
1997
1997
  /**
1998
1998
  * The object's own name, its campaign's or ad set's name, or the campaign goal (objective) as the platform reports it.
1999
1999
  */
2000
2000
  field: 'name' | 'campaign_name' | 'adset_name' | 'goal';
2001
2001
  op: 'contains' | 'not_contains' | 'equals' | 'not_equals' | 'starts_with';
2002
2002
  value: string;
2003
- }>;
2003
+ } | {
2004
+ field: 'campaign_id' | 'adset_id' | 'ad_id';
2005
+ op: 'in' | 'not_in';
2006
+ values: Array<(string)>;
2007
+ } | {
2008
+ field: 'days_live';
2009
+ op: '>=' | '<';
2010
+ value: number;
2011
+ })>;
2004
2012
 
2005
2013
  /**
2006
2014
  * Whether the rule checks campaigns, ad sets or single ads. Each one is evaluated on its own.
@@ -19302,7 +19310,7 @@ export type event34 = 'commerce.product.created' | 'commerce.product.updated' |
19302
19310
  export type type22 = 'product';
19303
19311
 
19304
19312
  /**
19305
- * Webhook payload for contact.updated and contact.deleted, fired after a provider contacts sync (Google Contacts, Outlook) changed a contact. Read the contact with `GET /v1/contacts/{id}`.
19313
+ * Webhook payload for contact.updated and contact.deleted, fired after a provider contacts sync (Google Contacts, Outlook) changed a contact. contact.updated also fires after a WhatsApp coexistence address-book change (WhatsApp never fires contact.deleted). Read the contact with `GET /v1/contacts/{id}`.
19306
19314
  */
19307
19315
  export type WebhookPayloadContact = {
19308
19316
  id: string;