@rokt/dcui-orchestrator 0.0.4-rc.27 → 0.0.4-rc.29

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.
@@ -32,5 +32,11 @@ export declare function isRealTimeFulfillmentReferral(response: OfferEngagementP
32
32
  accountID: string;
33
33
  referralCreativeID: string;
34
34
  };
35
+ export declare function isRealTimeReferralOnly(response: OfferEngagementPayload | (OfferEngagementPayload & {
36
+ offerPositionIndex: number;
37
+ })): response is OfferEngagementPayload & {
38
+ accountID: string;
39
+ referralCreativeID: string;
40
+ };
35
41
  export declare function makeCaptureOnlyOfferEngagementPayload(offerPayload?: Partial<OfferEngagementCaptureOnlyPayload>): OfferEngagementCaptureOnlyPayload;
36
42
  export declare function makeUrlOfferEngagementPayload(offerPayload?: Partial<OfferEngagementUrlPayload>): OfferEngagementUrlPayload;
@@ -10,6 +10,7 @@ export type OutboundRealtimeOfferFulfillmentReferralEventPayload = {
10
10
  rclid: string;
11
11
  accountID: string;
12
12
  referralCreativeID: string;
13
+ referralOnly?: boolean;
13
14
  };
14
15
  };
15
16
  export type OutboundRealtimeOfferFulfillmentConversionEventPayload = {
@@ -1,4 +1,5 @@
1
1
  export declare const enum LayoutConversionType {
2
2
  Default = "Default",
3
- RealTime = "RealTime"
3
+ RealTime = "RealTime",
4
+ RealTimeReferral = "RealTimeReferral"
4
5
  }
@@ -1,4 +1,5 @@
1
1
  export declare const enum PluginConversionType {
2
2
  Default = "Default",
3
- RealTime = "RealTime"
3
+ RealTime = "RealTime",
4
+ RealTimeReferral = "RealTimeReferral"
4
5
  }
@@ -71,3 +71,7 @@ export declare function isRealtimeConversionResponseOption(value: unknown): valu
71
71
  conversionType: PluginConversionType.RealTime;
72
72
  rclid: string;
73
73
  };
74
+ export declare function isRealtimeReferralOnlyResponseOption(value: unknown): value is (PluginCreativeFulfillmentResponseOption | PluginCreativeUrlResponseOption) & {
75
+ conversionType: PluginConversionType.RealTimeReferral;
76
+ rclid: string;
77
+ };
@@ -19,6 +19,7 @@ export declare const CREATIVE_RESPONSE_ENUM_MAP: {
19
19
  conversionType: {
20
20
  Default: PluginConversionType;
21
21
  RealTime: PluginConversionType;
22
+ RealTimeReferral: PluginConversionType;
22
23
  };
23
24
  };
24
25
  export declare function makeTranslateErrorLogs(configurationName: string, instanceGuid: string, isChildLayout?: boolean): Error;
@@ -6,7 +6,7 @@ import { ChildPluginFactoryInterface } from '@rokt/plugin';
6
6
  import { ChildPluginResult, RealtimeFulfillmentEvent } from './channels';
7
7
  import { EventChannel } from 'redux-saga';
8
8
  type ChildPlugin = ReturnType<ChildPluginFactoryInterface['create']>;
9
- export declare function listenToChildPluginChannel(channel: EventChannel<ChildPluginResult>, dispatch: (action: GlobalActions) => void, isRealtimeConversion: boolean, realtimeSuccessCallback?: () => Generator<CallEffect<void> | PutEffect, void, void>): Generator<CallEffect<void> | ChannelTakeEffect<"SUCCESS" | "UNSPECIFIED" | "CLOSED">, void, ChildPluginResult>;
9
+ export declare function listenToChildPluginChannel(channel: EventChannel<ChildPluginResult>, dispatch: (action: GlobalActions) => void, isRealtimeConversion: boolean, isRealTimeReferralOnly: boolean, realtimeSuccessCallback?: () => Generator<CallEffect<void> | PutEffect, void, void>): Generator<CallEffect<void> | ChannelTakeEffect<"SUCCESS" | "UNSPECIFIED" | "CLOSED">, void, ChildPluginResult>;
10
10
  export declare function getRealtimeFulfillmentSuccessCallback(gateway: GlobalGateway, logger: (log: Log) => void, payload: OfferEngagementFulfillmentPayload, childPlugin: Pick<ChildPlugin, 'close'>): (() => Generator<CallEffect<void> | PutEffect<{
11
11
  type: string;
12
12
  payload: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokt/dcui-orchestrator",
3
- "version": "0.0.4-rc.27",
3
+ "version": "0.0.4-rc.29",
4
4
  "description": "Rokt's DCUI rendering process",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",