@rokt/dcui-orchestrator 0.0.4-rc.3 → 0.0.4-rc.5
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.cjs +15 -15
- package/dist/index.js +13 -13
- package/dist/libraries/domain/src/behaviors/send-partner.d.ts +9 -1
- package/dist/libraries/domain/src/models/partner-event.d.ts +1 -1
- package/dist/modules/instant-purchase/src/components/color-swatch/color-swatch.d.ts +25 -0
- package/package.json +1 -1
|
@@ -12,6 +12,14 @@ export type OutboundRealtimeOfferFulfillmentReferralEventPayload = {
|
|
|
12
12
|
referralCreativeID: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
+
export type OutboundRealtimeOfferFulfillmentConversionEventPayload = {
|
|
16
|
+
name: 'REALTIME_OFFER_FULFILLMENT_CONVERSION';
|
|
17
|
+
body: {
|
|
18
|
+
rclid: string;
|
|
19
|
+
accountID: string;
|
|
20
|
+
referralCreativeID: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
15
23
|
export type OutboundRealtimeOfferFulfillmentSuccessEventPayload = {
|
|
16
24
|
name: 'REALTIME_OFFER_FULFILLMENT_SUCCESS';
|
|
17
25
|
body: Record<string, string>;
|
|
@@ -28,7 +36,7 @@ export type OutboundUpsellCreativeSentEventPayload = {
|
|
|
28
36
|
description: string;
|
|
29
37
|
};
|
|
30
38
|
};
|
|
31
|
-
export type OutboundPartnerEventPayload<EventType extends OutboundPartnerEvent> = EventType extends 'REALTIME_OFFER_FULFILLMENT_REFERRAL' ? OutboundRealtimeOfferFulfillmentReferralEventPayload : EventType extends 'REALTIME_OFFER_FULFILLMENT_SUCCESS' ? OutboundRealtimeOfferFulfillmentSuccessEventPayload : EventType extends 'V2_CART_ITEM_UPDATED' | 'CART_ITEM_INSTANT_PURCHASE' | 'UPSELL_CREATIVE_SENT' ? never : {
|
|
39
|
+
export type OutboundPartnerEventPayload<EventType extends OutboundPartnerEvent> = EventType extends 'REALTIME_OFFER_FULFILLMENT_REFERRAL' ? OutboundRealtimeOfferFulfillmentReferralEventPayload : EventType extends 'REALTIME_OFFER_FULFILLMENT_CONVERSION' ? OutboundRealtimeOfferFulfillmentConversionEventPayload : EventType extends 'REALTIME_OFFER_FULFILLMENT_SUCCESS' ? OutboundRealtimeOfferFulfillmentSuccessEventPayload : EventType extends 'V2_CART_ITEM_UPDATED' | 'CART_ITEM_INSTANT_PURCHASE' | 'UPSELL_CREATIVE_SENT' ? never : {
|
|
32
40
|
name: EventType;
|
|
33
41
|
};
|
|
34
42
|
export type SendPartner<EventType extends OutboundPartnerEvent> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type CatalogOutboundPartnerEvent = 'V2_CART_ITEM_UPDATED' | 'CART_ITEM_INSTANT_PURCHASE';
|
|
2
|
-
export type OfferOutboundPartnerEvent = CatalogOutboundPartnerEvent | 'OFFER_ENGAGEMENT' | 'POSITIVE_ENGAGEMENT' | 'UPSELL_CREATIVE_SENT' | 'REALTIME_OFFER_FULFILLMENT_REFERRAL' | 'REALTIME_OFFER_FULFILLMENT_SUCCESS';
|
|
2
|
+
export type OfferOutboundPartnerEvent = CatalogOutboundPartnerEvent | 'OFFER_ENGAGEMENT' | 'POSITIVE_ENGAGEMENT' | 'UPSELL_CREATIVE_SENT' | 'REALTIME_OFFER_FULFILLMENT_REFERRAL' | 'REALTIME_OFFER_FULFILLMENT_CONVERSION' | 'REALTIME_OFFER_FULFILLMENT_SUCCESS';
|
|
3
3
|
export type OutboundPartnerEvent = OfferOutboundPartnerEvent | 'PLACEMENT_CLOSED' | 'PLACEMENT_COMPLETED' | 'PLACEMENT_INTERACTIVE' | 'PLACEMENT_FAILURE';
|
|
4
4
|
export declare function isOutboundPartnerEvent(value: unknown): value is OutboundPartnerEvent;
|
|
5
5
|
export declare function isOfferOutboundPartnerEvent(value: unknown): value is OfferOutboundPartnerEvent;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BackgroundStylingProperties, BasicStateStylingBlock, BorderStylingProperties, ConditionalStyleTransition, ContainerStylingProperties, DimensionStylingProperties, FlexChildStylingProperties, LayoutStyle, SpacingStylingProperties, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
|
+
interface ColorSwatchStyles {
|
|
3
|
+
container?: null | ContainerStylingProperties;
|
|
4
|
+
background?: null | BackgroundStylingProperties;
|
|
5
|
+
border?: null | BorderStylingProperties;
|
|
6
|
+
dimension?: null | DimensionStylingProperties;
|
|
7
|
+
flexChild?: null | FlexChildStylingProperties;
|
|
8
|
+
spacing?: null | SpacingStylingProperties;
|
|
9
|
+
}
|
|
10
|
+
interface ColorSwatchElements {
|
|
11
|
+
own: BasicStateStylingBlock<ColorSwatchStyles>[];
|
|
12
|
+
}
|
|
13
|
+
interface ColorSwatchTransitions {
|
|
14
|
+
own: null | ColorSwatchStyles;
|
|
15
|
+
}
|
|
16
|
+
export interface ColorSwatchModel<Predicates> {
|
|
17
|
+
styles?: null | LayoutStyle<ColorSwatchElements, ConditionalStyleTransition<ColorSwatchTransitions, Predicates>>;
|
|
18
|
+
value: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ColorSwatchProps {
|
|
21
|
+
schema: ColorSwatchModel<WhenPredicate>;
|
|
22
|
+
testId?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function ColorSwatch(props: ColorSwatchProps): import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
+
export {};
|