@apex-inc/capacitor-plugin 2.3.0 → 2.4.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.
@@ -30,6 +30,8 @@ object ApexEvents {
30
30
  const val CART_SNAPSHOT = "cart_snapshot"
31
31
  const val SUBSCRIPTION_STARTED = "subscription_started"
32
32
  const val SUBSCRIPTION_CANCELED = "subscription_canceled"
33
+ const val PAYMENT_FAILED = "payment_failed"
34
+ const val PAYMENT_RECOVERED = "payment_recovered"
33
35
  const val IN_APP_PURCHASE = "in_app_purchase"
34
36
  const val PURCHASE_REFUNDED = "purchase_refunded"
35
37
  const val SUBSCRIPTION_EVENT = "subscription_event"
@@ -52,6 +54,7 @@ object ApexEvents {
52
54
  const val APP_OPEN = "app_open"
53
55
  const val APP_BACKGROUND = "app_background"
54
56
  const val APP_UNINSTALL = "app_uninstall"
57
+ const val APP_CRASH = "app_crash"
55
58
  const val APP_REINSTALL = "app_reinstall"
56
59
 
57
60
  // ─── Session ────────────────────────────────────────────────────────
@@ -86,6 +89,7 @@ object ApexEvents {
86
89
  const val EMAIL_CLICKED = "email_clicked"
87
90
  const val IN_APP_MESSAGE_SEEN = "in_app_message_seen"
88
91
  const val IN_APP_MESSAGE_CLICKED = "in_app_message_clicked"
92
+ const val UNSUBSCRIBED = "unsubscribed"
89
93
 
90
94
  // ─── Deep link ──────────────────────────────────────────────────────
91
95
  const val DEEP_LINK_OPEN = "deep_link_open"
@@ -104,8 +108,40 @@ object ApexEvents {
104
108
  const val LIFECYCLE_TRANSITION = "lifecycle_transition"
105
109
  const val JS_ERROR = "js_error"
106
110
 
111
+ // ─── Fulfillment ────────────────────────────────────────────────────
112
+ const val ORDER_SHIPPED = "order_shipped"
113
+ const val ORDER_DELIVERED = "order_delivered"
114
+
115
+ // ─── Engagement (vertical additions) ────────────────────────────────
116
+ const val FEATURE_USED = "feature_used"
117
+ const val WEBINAR_REGISTERED = "webinar_registered"
118
+ const val SURVEY_STARTED = "survey_started"
119
+ const val SURVEY_COMPLETED = "survey_completed"
120
+
121
+ // ─── Marketplace ────────────────────────────────────────────────────
122
+ const val SELLER_SIGNUP = "seller_signup"
123
+ const val LISTING_CREATED = "listing_created"
124
+ const val BUYER_REVIEW_REQUESTED = "buyer_review_requested"
125
+ const val PAYOUT_SENT = "payout_sent"
126
+ const val TRUST_BADGE_EARNED = "trust_badge_earned"
127
+
128
+ // ─── Agency ─────────────────────────────────────────────────────────
129
+ const val CLIENT_ONBOARDED = "client_onboarded"
130
+ const val CAMPAIGN_MILESTONE_REACHED = "campaign_milestone_reached"
131
+ const val CONTRACT_RENEWAL_APPROACHING = "contract_renewal_approaching"
132
+ const val NEW_CAPABILITY_LAUNCHED = "new_capability_launched"
133
+
134
+ // ─── Loyalty + lifecycle (vertical additions) ───────────────────────
135
+ const val LOYALTY_MILESTONE_REACHED = "loyalty_milestone_reached"
136
+ const val USAGE_MILESTONE_REACHED = "usage_milestone_reached"
137
+ const val USER_CHURNED = "user_churned"
138
+ const val USER_REACTIVATED = "user_reactivated"
139
+ const val TRIAL_EXPIRED = "trial_expired"
140
+ const val INVOICE_PAID = "invoice_paid"
141
+ const val SUBSCRIPTION_RENEWED = "subscription_renewed"
142
+
107
143
  /** Apex Spec semver this SDK implements. */
108
- const val SPEC_VERSION = "1.1.0"
144
+ const val SPEC_VERSION = "1.2.0"
109
145
 
110
146
  /** Complete list of every canonical event name. */
111
147
  val ALL: List<String> = listOf(
@@ -124,5 +160,11 @@ object ApexEvents {
124
160
  REATTRIBUTION, REENGAGEMENT,
125
161
  SMART_BANNER_IMPRESSION, SMART_BANNER_CLICK, SMART_BANNER_DISMISS,
126
162
  CUSTOM, LIFECYCLE_TRANSITION, JS_ERROR,
163
+ ORDER_SHIPPED, ORDER_DELIVERED,
164
+ FEATURE_USED, WEBINAR_REGISTERED, SURVEY_STARTED, SURVEY_COMPLETED,
165
+ SELLER_SIGNUP, LISTING_CREATED, BUYER_REVIEW_REQUESTED, PAYOUT_SENT, TRUST_BADGE_EARNED,
166
+ CLIENT_ONBOARDED, CAMPAIGN_MILESTONE_REACHED, CONTRACT_RENEWAL_APPROACHING, NEW_CAPABILITY_LAUNCHED,
167
+ LOYALTY_MILESTONE_REACHED, USAGE_MILESTONE_REACHED, USER_CHURNED, USER_REACTIVATED,
168
+ TRIAL_EXPIRED, INVOICE_PAID, SUBSCRIPTION_RENEWED,
127
169
  )
128
170
  }
@@ -30,6 +30,8 @@ export declare const ApexEvents: {
30
30
  readonly CartSnapshot: "cart_snapshot";
31
31
  readonly SubscriptionStarted: "subscription_started";
32
32
  readonly SubscriptionCanceled: "subscription_canceled";
33
+ readonly PaymentFailed: "payment_failed";
34
+ readonly PaymentRecovered: "payment_recovered";
33
35
  readonly InAppPurchase: "in_app_purchase";
34
36
  readonly PurchaseRefunded: "purchase_refunded";
35
37
  readonly SubscriptionEvent: "subscription_event";
@@ -47,6 +49,7 @@ export declare const ApexEvents: {
47
49
  readonly AppBackground: "app_background";
48
50
  readonly AppUninstall: "app_uninstall";
49
51
  readonly AppReinstall: "app_reinstall";
52
+ readonly AppCrash: "app_crash";
50
53
  readonly SessionStart: "session_start";
51
54
  readonly SessionEnd: "session_end";
52
55
  readonly ExperimentExposure: "experiment_exposure";
@@ -72,6 +75,7 @@ export declare const ApexEvents: {
72
75
  readonly EmailClicked: "email_clicked";
73
76
  readonly InAppMessageSeen: "in_app_message_seen";
74
77
  readonly InAppMessageClicked: "in_app_message_clicked";
78
+ readonly Unsubscribed: "unsubscribed";
75
79
  readonly DeepLinkOpen: "deep_link_open";
76
80
  readonly Reattribution: "reattribution";
77
81
  readonly Reengagement: "reengagement";
@@ -81,11 +85,33 @@ export declare const ApexEvents: {
81
85
  readonly Custom: "custom";
82
86
  readonly LifecycleTransition: "lifecycle_transition";
83
87
  readonly JsError: "js_error";
88
+ readonly OrderShipped: "order_shipped";
89
+ readonly OrderDelivered: "order_delivered";
90
+ readonly FeatureUsed: "feature_used";
91
+ readonly WebinarRegistered: "webinar_registered";
92
+ readonly SurveyStarted: "survey_started";
93
+ readonly SurveyCompleted: "survey_completed";
94
+ readonly SellerSignup: "seller_signup";
95
+ readonly ListingCreated: "listing_created";
96
+ readonly BuyerReviewRequested: "buyer_review_requested";
97
+ readonly PayoutSent: "payout_sent";
98
+ readonly TrustBadgeEarned: "trust_badge_earned";
99
+ readonly ClientOnboarded: "client_onboarded";
100
+ readonly CampaignMilestoneReached: "campaign_milestone_reached";
101
+ readonly ContractRenewalApproaching: "contract_renewal_approaching";
102
+ readonly NewCapabilityLaunched: "new_capability_launched";
103
+ readonly LoyaltyMilestoneReached: "loyalty_milestone_reached";
104
+ readonly UsageMilestoneReached: "usage_milestone_reached";
105
+ readonly UserChurned: "user_churned";
106
+ readonly UserReactivated: "user_reactivated";
107
+ readonly TrialExpired: "trial_expired";
108
+ readonly InvoicePaid: "invoice_paid";
109
+ readonly SubscriptionRenewed: "subscription_renewed";
84
110
  };
85
111
  export type ApexEventName = (typeof ApexEvents)[keyof typeof ApexEvents];
86
112
  /**
87
113
  * Apex Spec semver this SDK implements. Bumped together with
88
114
  * `APEX_SPEC_VERSION` in `app/src/lib/core/apex-spec/events.ts`.
89
115
  */
90
- export declare const APEX_SPEC_VERSION = "1.1.0";
116
+ export declare const APEX_SPEC_VERSION = "1.2.0";
91
117
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuFb,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEzE;;;GAGG;AACH,eAAO,MAAM,iBAAiB,UAAU,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Hb,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEzE;;;GAGG;AACH,eAAO,MAAM,iBAAiB,UAAU,CAAC"}
@@ -31,6 +31,8 @@ export const ApexEvents = {
31
31
  CartSnapshot: "cart_snapshot",
32
32
  SubscriptionStarted: "subscription_started",
33
33
  SubscriptionCanceled: "subscription_canceled",
34
+ PaymentFailed: "payment_failed",
35
+ PaymentRecovered: "payment_recovered",
34
36
  InAppPurchase: "in_app_purchase",
35
37
  PurchaseRefunded: "purchase_refunded",
36
38
  SubscriptionEvent: "subscription_event",
@@ -51,6 +53,7 @@ export const ApexEvents = {
51
53
  AppBackground: "app_background",
52
54
  AppUninstall: "app_uninstall",
53
55
  AppReinstall: "app_reinstall",
56
+ AppCrash: "app_crash",
54
57
  // Session
55
58
  SessionStart: "session_start",
56
59
  SessionEnd: "session_end",
@@ -81,6 +84,7 @@ export const ApexEvents = {
81
84
  EmailClicked: "email_clicked",
82
85
  InAppMessageSeen: "in_app_message_seen",
83
86
  InAppMessageClicked: "in_app_message_clicked",
87
+ Unsubscribed: "unsubscribed",
84
88
  // Deep link
85
89
  DeepLinkOpen: "deep_link_open",
86
90
  // Attribution
@@ -94,10 +98,37 @@ export const ApexEvents = {
94
98
  Custom: "custom",
95
99
  LifecycleTransition: "lifecycle_transition",
96
100
  JsError: "js_error",
101
+ // Fulfillment
102
+ OrderShipped: "order_shipped",
103
+ OrderDelivered: "order_delivered",
104
+ // Engagement (vertical additions)
105
+ FeatureUsed: "feature_used",
106
+ WebinarRegistered: "webinar_registered",
107
+ SurveyStarted: "survey_started",
108
+ SurveyCompleted: "survey_completed",
109
+ // Marketplace
110
+ SellerSignup: "seller_signup",
111
+ ListingCreated: "listing_created",
112
+ BuyerReviewRequested: "buyer_review_requested",
113
+ PayoutSent: "payout_sent",
114
+ TrustBadgeEarned: "trust_badge_earned",
115
+ // Agency
116
+ ClientOnboarded: "client_onboarded",
117
+ CampaignMilestoneReached: "campaign_milestone_reached",
118
+ ContractRenewalApproaching: "contract_renewal_approaching",
119
+ NewCapabilityLaunched: "new_capability_launched",
120
+ // Loyalty + lifecycle (vertical additions)
121
+ LoyaltyMilestoneReached: "loyalty_milestone_reached",
122
+ UsageMilestoneReached: "usage_milestone_reached",
123
+ UserChurned: "user_churned",
124
+ UserReactivated: "user_reactivated",
125
+ TrialExpired: "trial_expired",
126
+ InvoicePaid: "invoice_paid",
127
+ SubscriptionRenewed: "subscription_renewed",
97
128
  };
98
129
  /**
99
130
  * Apex Spec semver this SDK implements. Bumped together with
100
131
  * `APEX_SPEC_VERSION` in `app/src/lib/core/apex-spec/events.ts`.
101
132
  */
102
- export const APEX_SPEC_VERSION = "1.1.0";
133
+ export const APEX_SPEC_VERSION = "1.2.0";
103
134
  //# sourceMappingURL=events.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,WAAW;IACX,SAAS,EAAE,aAAa;IACxB,cAAc,EAAE,kBAAkB;IAClC,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,iBAAiB;IAChC,eAAe,EAAE,kBAAkB;IACnC,iBAAiB,EAAE,oBAAoB;IACvC,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,eAAe;IAC7B,mBAAmB,EAAE,sBAAsB;IAC3C,oBAAoB,EAAE,uBAAuB;IAC7C,aAAa,EAAE,iBAAiB;IAChC,gBAAgB,EAA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AC/B,eAAe,EAAE,kBAAkB;IAEnC,cAAc;IACd,YAAY,EAAE,eAAe;IAC7B,cAAc,EAAE,iBAAiB;IACjC,oBAAoB,EAAE,wBAAwB;IAC9C,UAAU,EAAE,aAAa;IACzB,gBAAgB,EAAE,oBAAoB;IAEtC,SAAS;IACT,eAAe,EAAE,kBAAkB;IACnC,wBAAwB,EAAE,4BAA4B;IACtD,0BAA0B,EAAE,8BAA8B;IAC1D,qBAAqB,EAAE,yBAAyB;IAEhD,2CAA2C;IAC3C,uBAAuB,EAAE,2BAA2B;IACpD,qBAAqB,EAAE,yBAAyB;IAChD,WAAW,EAAE,cAAc;IAC3B,eAAe,EAAE,kBAAkB;IACnC,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,cAAc;IAC3B,mBAAmB,EAAE,sBAAsB;CACnC,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC"}
package/dist/events.d.ts CHANGED
@@ -30,6 +30,8 @@ export declare const ApexEvents: {
30
30
  readonly CartSnapshot: "cart_snapshot";
31
31
  readonly SubscriptionStarted: "subscription_started";
32
32
  readonly SubscriptionCanceled: "subscription_canceled";
33
+ readonly PaymentFailed: "payment_failed";
34
+ readonly PaymentRecovered: "payment_recovered";
33
35
  readonly InAppPurchase: "in_app_purchase";
34
36
  readonly PurchaseRefunded: "purchase_refunded";
35
37
  readonly SubscriptionEvent: "subscription_event";
@@ -47,6 +49,7 @@ export declare const ApexEvents: {
47
49
  readonly AppBackground: "app_background";
48
50
  readonly AppUninstall: "app_uninstall";
49
51
  readonly AppReinstall: "app_reinstall";
52
+ readonly AppCrash: "app_crash";
50
53
  readonly SessionStart: "session_start";
51
54
  readonly SessionEnd: "session_end";
52
55
  readonly ExperimentExposure: "experiment_exposure";
@@ -72,6 +75,7 @@ export declare const ApexEvents: {
72
75
  readonly EmailClicked: "email_clicked";
73
76
  readonly InAppMessageSeen: "in_app_message_seen";
74
77
  readonly InAppMessageClicked: "in_app_message_clicked";
78
+ readonly Unsubscribed: "unsubscribed";
75
79
  readonly DeepLinkOpen: "deep_link_open";
76
80
  readonly Reattribution: "reattribution";
77
81
  readonly Reengagement: "reengagement";
@@ -81,11 +85,33 @@ export declare const ApexEvents: {
81
85
  readonly Custom: "custom";
82
86
  readonly LifecycleTransition: "lifecycle_transition";
83
87
  readonly JsError: "js_error";
88
+ readonly OrderShipped: "order_shipped";
89
+ readonly OrderDelivered: "order_delivered";
90
+ readonly FeatureUsed: "feature_used";
91
+ readonly WebinarRegistered: "webinar_registered";
92
+ readonly SurveyStarted: "survey_started";
93
+ readonly SurveyCompleted: "survey_completed";
94
+ readonly SellerSignup: "seller_signup";
95
+ readonly ListingCreated: "listing_created";
96
+ readonly BuyerReviewRequested: "buyer_review_requested";
97
+ readonly PayoutSent: "payout_sent";
98
+ readonly TrustBadgeEarned: "trust_badge_earned";
99
+ readonly ClientOnboarded: "client_onboarded";
100
+ readonly CampaignMilestoneReached: "campaign_milestone_reached";
101
+ readonly ContractRenewalApproaching: "contract_renewal_approaching";
102
+ readonly NewCapabilityLaunched: "new_capability_launched";
103
+ readonly LoyaltyMilestoneReached: "loyalty_milestone_reached";
104
+ readonly UsageMilestoneReached: "usage_milestone_reached";
105
+ readonly UserChurned: "user_churned";
106
+ readonly UserReactivated: "user_reactivated";
107
+ readonly TrialExpired: "trial_expired";
108
+ readonly InvoicePaid: "invoice_paid";
109
+ readonly SubscriptionRenewed: "subscription_renewed";
84
110
  };
85
111
  export type ApexEventName = (typeof ApexEvents)[keyof typeof ApexEvents];
86
112
  /**
87
113
  * Apex Spec semver this SDK implements. Bumped together with
88
114
  * `APEX_SPEC_VERSION` in `app/src/lib/core/apex-spec/events.ts`.
89
115
  */
90
- export declare const APEX_SPEC_VERSION = "1.1.0";
116
+ export declare const APEX_SPEC_VERSION = "1.2.0";
91
117
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuFb,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEzE;;;GAGG;AACH,eAAO,MAAM,iBAAiB,UAAU,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Hb,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEzE;;;GAGG;AACH,eAAO,MAAM,iBAAiB,UAAU,CAAC"}
package/dist/events.js CHANGED
@@ -34,6 +34,8 @@ exports.ApexEvents = {
34
34
  CartSnapshot: "cart_snapshot",
35
35
  SubscriptionStarted: "subscription_started",
36
36
  SubscriptionCanceled: "subscription_canceled",
37
+ PaymentFailed: "payment_failed",
38
+ PaymentRecovered: "payment_recovered",
37
39
  InAppPurchase: "in_app_purchase",
38
40
  PurchaseRefunded: "purchase_refunded",
39
41
  SubscriptionEvent: "subscription_event",
@@ -54,6 +56,7 @@ exports.ApexEvents = {
54
56
  AppBackground: "app_background",
55
57
  AppUninstall: "app_uninstall",
56
58
  AppReinstall: "app_reinstall",
59
+ AppCrash: "app_crash",
57
60
  // Session
58
61
  SessionStart: "session_start",
59
62
  SessionEnd: "session_end",
@@ -84,6 +87,7 @@ exports.ApexEvents = {
84
87
  EmailClicked: "email_clicked",
85
88
  InAppMessageSeen: "in_app_message_seen",
86
89
  InAppMessageClicked: "in_app_message_clicked",
90
+ Unsubscribed: "unsubscribed",
87
91
  // Deep link
88
92
  DeepLinkOpen: "deep_link_open",
89
93
  // Attribution
@@ -97,10 +101,37 @@ exports.ApexEvents = {
97
101
  Custom: "custom",
98
102
  LifecycleTransition: "lifecycle_transition",
99
103
  JsError: "js_error",
104
+ // Fulfillment
105
+ OrderShipped: "order_shipped",
106
+ OrderDelivered: "order_delivered",
107
+ // Engagement (vertical additions)
108
+ FeatureUsed: "feature_used",
109
+ WebinarRegistered: "webinar_registered",
110
+ SurveyStarted: "survey_started",
111
+ SurveyCompleted: "survey_completed",
112
+ // Marketplace
113
+ SellerSignup: "seller_signup",
114
+ ListingCreated: "listing_created",
115
+ BuyerReviewRequested: "buyer_review_requested",
116
+ PayoutSent: "payout_sent",
117
+ TrustBadgeEarned: "trust_badge_earned",
118
+ // Agency
119
+ ClientOnboarded: "client_onboarded",
120
+ CampaignMilestoneReached: "campaign_milestone_reached",
121
+ ContractRenewalApproaching: "contract_renewal_approaching",
122
+ NewCapabilityLaunched: "new_capability_launched",
123
+ // Loyalty + lifecycle (vertical additions)
124
+ LoyaltyMilestoneReached: "loyalty_milestone_reached",
125
+ UsageMilestoneReached: "usage_milestone_reached",
126
+ UserChurned: "user_churned",
127
+ UserReactivated: "user_reactivated",
128
+ TrialExpired: "trial_expired",
129
+ InvoicePaid: "invoice_paid",
130
+ SubscriptionRenewed: "subscription_renewed",
100
131
  };
101
132
  /**
102
133
  * Apex Spec semver this SDK implements. Bumped together with
103
134
  * `APEX_SPEC_VERSION` in `app/src/lib/core/apex-spec/events.ts`.
104
135
  */
105
- exports.APEX_SPEC_VERSION = "1.1.0";
136
+ exports.APEX_SPEC_VERSION = "1.2.0";
106
137
  //# sourceMappingURL=events.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;AA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AE,yBAAyB;IAChD,gBAAgB,EAAE,oBAAoB;IACtC,kBAAkB,EAAE,sBAAsB;IAE1C,SAAS;IACT,MAAM,EAAE,QAAQ;IAChB,mBAAmB,EAAE,sBAAsB;IAC3C,OAAO,EAAE,UAAU;IAEnB,cAAc;IACd,YAAY,EAAE,eAAe;IAC7B,cAAc,EAAE,iBAAiB;IAEjC,kCAAkC;IAClC,WAAW,EAAE,cAAc;IAC3B,iBAAiB,EAAE,oBAAoB;IACvC,aAAa,EAAE,gBAAgB;IAC/B,eAAe,EAAE,kBAAkB;IAEnC,cAAc;IACd,YAAY,EAAE,eAAe;IAC7B,cAAc,EAAE,iBAAiB;IACjC,oBAAoB,EAAE,wBAAwB;IAC9C,UAAU,EAAE,aAAa;IACzB,gBAAgB,EAAE,oBAAoB;IAEtC,SAAS;IACT,eAAe,EAAE,kBAAkB;IACnC,wBAAwB,EAAE,4BAA4B;IACtD,0BAA0B,EAAE,8BAA8B;IAC1D,qBAAqB,EAAE,yBAAyB;IAEhD,2CAA2C;IAC3C,uBAAuB,EAAE,2BAA2B;IACpD,qBAAqB,EAAE,yBAAyB;IAChD,WAAW,EAAE,cAAc;IAC3B,eAAe,EAAE,kBAAkB;IACnC,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,cAAc;IAC3B,mBAAmB,EAAE,sBAAsB;CACnC,CAAC;AAIX;;;GAGG;AACU,QAAA,iBAAiB,GAAG,OAAO,CAAC"}
@@ -30,6 +30,8 @@ public enum ApexEvents {
30
30
  public static let cartSnapshot = "cart_snapshot"
31
31
  public static let subscriptionStarted = "subscription_started"
32
32
  public static let subscriptionCanceled = "subscription_canceled"
33
+ public static let paymentFailed = "payment_failed"
34
+ public static let paymentRecovered = "payment_recovered"
33
35
  public static let inAppPurchase = "in_app_purchase"
34
36
  public static let purchaseRefunded = "purchase_refunded"
35
37
  public static let subscriptionEvent = "subscription_event"
@@ -52,6 +54,7 @@ public enum ApexEvents {
52
54
  public static let appOpen = "app_open"
53
55
  public static let appBackground = "app_background"
54
56
  public static let appUninstall = "app_uninstall"
57
+ public static let appCrash = "app_crash"
55
58
  public static let appReinstall = "app_reinstall"
56
59
 
57
60
  // MARK: Session
@@ -86,6 +89,7 @@ public enum ApexEvents {
86
89
  public static let emailClicked = "email_clicked"
87
90
  public static let inAppMessageSeen = "in_app_message_seen"
88
91
  public static let inAppMessageClicked = "in_app_message_clicked"
92
+ public static let unsubscribed = "unsubscribed"
89
93
 
90
94
  // MARK: Deep link
91
95
  public static let deepLinkOpen = "deep_link_open"
@@ -104,9 +108,41 @@ public enum ApexEvents {
104
108
  public static let lifecycleTransition = "lifecycle_transition"
105
109
  public static let jsError = "js_error"
106
110
 
111
+ // MARK: Fulfillment
112
+ public static let orderShipped = "order_shipped"
113
+ public static let orderDelivered = "order_delivered"
114
+
115
+ // MARK: Engagement (vertical additions)
116
+ public static let featureUsed = "feature_used"
117
+ public static let webinarRegistered = "webinar_registered"
118
+ public static let surveyStarted = "survey_started"
119
+ public static let surveyCompleted = "survey_completed"
120
+
121
+ // MARK: Marketplace
122
+ public static let sellerSignup = "seller_signup"
123
+ public static let listingCreated = "listing_created"
124
+ public static let buyerReviewRequested = "buyer_review_requested"
125
+ public static let payoutSent = "payout_sent"
126
+ public static let trustBadgeEarned = "trust_badge_earned"
127
+
128
+ // MARK: Agency
129
+ public static let clientOnboarded = "client_onboarded"
130
+ public static let campaignMilestoneReached = "campaign_milestone_reached"
131
+ public static let contractRenewalApproaching = "contract_renewal_approaching"
132
+ public static let newCapabilityLaunched = "new_capability_launched"
133
+
134
+ // MARK: Loyalty + lifecycle (vertical additions)
135
+ public static let loyaltyMilestoneReached = "loyalty_milestone_reached"
136
+ public static let usageMilestoneReached = "usage_milestone_reached"
137
+ public static let userChurned = "user_churned"
138
+ public static let userReactivated = "user_reactivated"
139
+ public static let trialExpired = "trial_expired"
140
+ public static let invoicePaid = "invoice_paid"
141
+ public static let subscriptionRenewed = "subscription_renewed"
142
+
107
143
  /// Apex Spec semver this SDK implements. Bumped together with
108
144
  /// `APEX_SPEC_VERSION` in the TypeScript registry.
109
- public static let specVersion = "1.1.0"
145
+ public static let specVersion = "1.2.0"
110
146
 
111
147
  /// Complete list of every canonical event name. Used internally for
112
148
  /// validation; iterate this set if you need to enumerate the spec.
@@ -126,5 +162,11 @@ public enum ApexEvents {
126
162
  reattribution, reengagement,
127
163
  smartBannerImpression, smartBannerClick, smartBannerDismiss,
128
164
  custom, lifecycleTransition, jsError,
165
+ orderShipped, orderDelivered,
166
+ featureUsed, webinarRegistered, surveyStarted, surveyCompleted,
167
+ sellerSignup, listingCreated, buyerReviewRequested, payoutSent, trustBadgeEarned,
168
+ clientOnboarded, campaignMilestoneReached, contractRenewalApproaching, newCapabilityLaunched,
169
+ loyaltyMilestoneReached, usageMilestoneReached, userChurned, userReactivated,
170
+ trialExpired, invoicePaid, subscriptionRenewed,
129
171
  ]
130
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apex-inc/capacitor-plugin",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Apex Capacitor plugin — iOS/Android attribution, events, deep linking, SKAN, and offline-tolerant tracking for Capacitor apps.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",