@joai/core 5.1.0 → 5.3.0

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +5 -2
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -4570,7 +4570,7 @@ type InstallOptOutPayload = {
4570
4570
  };
4571
4571
  //#endregion
4572
4572
  //#region src/segment/types.d.ts
4573
- type SegmentConditionType = 'tag' | 'has_email' | 'has_phone' | 'has_user' | 'has_install' | 'install_push_status' | 'last_purchase_after' | 'last_purchase_before' | 'total_order_amount' | 'order_count_at_least' | 'never_purchased' | 'avg_order_value_at_least' | 'last_contact_after' | 'last_contact_before' | 'waiting_on' | 'created_after' | 'created_before' | 'email_contains' | 'prop' | 'marketing_opt_out';
4573
+ type SegmentConditionType = 'tag' | 'has_email' | 'has_phone' | 'has_user' | 'has_install' | 'install_push_status' | 'last_purchase_after' | 'last_purchase_before' | 'total_order_amount' | 'order_count_at_least' | 'never_purchased' | 'avg_order_value_at_least' | 'last_contact_after' | 'last_contact_before' | 'waiting_on' | 'created_after' | 'created_before' | 'email_contains' | 'prop' | 'marketing_opt_out' | 'marketing_consent';
4574
4574
  type InstallPushStatusValue = 'subscribed' | 'opted_out' | 'unavailable';
4575
4575
  type SegmentCondition = {
4576
4576
  type: SegmentConditionType;
@@ -4679,7 +4679,8 @@ type CampaignCreatePayload = {
4679
4679
  aiParams?: Record<string, string>;
4680
4680
  agentId?: string;
4681
4681
  tags?: string[];
4682
- contactIds?: string[];
4682
+ contactIds?: string[]; /** Push only: specific install hashids (devices). Ignored when segmentId is set. */
4683
+ installIds?: string[];
4683
4684
  segmentId?: string;
4684
4685
  };
4685
4686
  type CampaignUpdatePayload = {
@@ -4694,6 +4695,7 @@ type CampaignUpdatePayload = {
4694
4695
  agentId?: string;
4695
4696
  tags?: string[];
4696
4697
  contactIds?: string[];
4698
+ installIds?: string[];
4697
4699
  segmentId?: string;
4698
4700
  };
4699
4701
  /** Test-send from the create/edit form without saving a campaign row. */
@@ -4717,6 +4719,7 @@ type CampaignAudiencePreviewPayload = {
4717
4719
  channel: CampaignChannel;
4718
4720
  tags?: string[];
4719
4721
  contactIds?: string[];
4722
+ installIds?: string[];
4720
4723
  segmentId?: string;
4721
4724
  };
4722
4725
  type CampaignStats = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joai/core",
3
- "version": "5.1.0",
3
+ "version": "5.3.0",
4
4
  "description": "JoAi shared types, HTTP service, and config",
5
5
  "license": "MIT",
6
6
  "type": "module",