feeef 0.9.5 → 0.9.7

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.
@@ -340,6 +340,27 @@ export declare enum PixelReportMode {
340
340
  client = "client",
341
341
  both = "both"
342
342
  }
343
+ /** Which order field to compare for [PixelStatusRule] (server-side CAPI on transition). */
344
+ export declare enum PixelStatusDimension {
345
+ orderStatus = "orderStatus",
346
+ deliveryStatus = "deliveryStatus",
347
+ paymentStatus = "paymentStatus",
348
+ customStatus = "customStatus"
349
+ }
350
+ /**
351
+ * When the order transitions so `dimension` becomes `equals`, send configured Meta/TikTok server events.
352
+ * `id` must be stable (UUID) — used for idempotency in `order.claims.pixelStatusEvents`.
353
+ */
354
+ export interface PixelStatusRule {
355
+ id: string;
356
+ dimension: PixelStatusDimension;
357
+ equals: string;
358
+ metaEvent?: MetaPixelEvent | null;
359
+ tiktokEvent?: TiktokPixelEvent | null;
360
+ /** When set, overrides `metaEvent` (Meta CAPI custom event name). */
361
+ metaCustomEvent?: string | null;
362
+ tiktokCustomEvent?: string | null;
363
+ }
343
364
  export interface MetaPixel {
344
365
  name?: string;
345
366
  id: string;
@@ -366,6 +387,8 @@ export interface MetaPixelIntegration {
366
387
  pixels: MetaPixel[];
367
388
  objective?: MetaPixelEvent | null;
368
389
  draftObjective?: MetaPixelEvent | null;
390
+ /** Server-only lifecycle rules; never exposed on public storefront JSON. */
391
+ statusRules?: PixelStatusRule[];
369
392
  active: boolean;
370
393
  metadata: Record<string, any>;
371
394
  /** Facebook Marketing OAuth data - for accessing pixels via API */
@@ -378,6 +401,8 @@ export interface TiktokPixelIntegration {
378
401
  pixels: TiktokPixel[];
379
402
  objective?: TiktokPixelEvent | null;
380
403
  draftObjective?: TiktokPixelEvent | null;
404
+ /** Server-only lifecycle rules; never exposed on public storefront JSON. */
405
+ statusRules?: PixelStatusRule[];
381
406
  active: boolean;
382
407
  metadata: Record<string, any>;
383
408
  /** Where to send events: server, client, or both. Omit for auto (prefer server if accessToken set). */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "feeef",
3
3
  "description": "feeef sdk for javascript",
4
- "version": "0.9.5",
4
+ "version": "0.9.7",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
7
7
  "files": [