@segment/action-destinations 3.480.0 → 3.481.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.
- package/dist/destinations/facebook-conversions-api/addToCart/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/addToCart/index.js +87 -4
- package/dist/destinations/facebook-conversions-api/addToCart/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/addToCart2/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/addToCart2/index.js +86 -4
- package/dist/destinations/facebook-conversions-api/addToCart2/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/constants.d.ts +0 -11
- package/dist/destinations/facebook-conversions-api/constants.js +1 -12
- package/dist/destinations/facebook-conversions-api/constants.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/custom/generated-types.d.ts +0 -9
- package/dist/destinations/facebook-conversions-api/custom/index.js +53 -5
- package/dist/destinations/facebook-conversions-api/custom/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/custom2/generated-types.d.ts +0 -9
- package/dist/destinations/facebook-conversions-api/custom2/index.js +52 -5
- package/dist/destinations/facebook-conversions-api/custom2/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/fb-capi-app-data.d.ts +11 -0
- package/dist/destinations/facebook-conversions-api/fb-capi-app-data.js +188 -0
- package/dist/destinations/facebook-conversions-api/fb-capi-app-data.js.map +1 -0
- package/dist/destinations/facebook-conversions-api/{fields.d.ts → fb-capi-properties.d.ts} +10 -14
- package/dist/destinations/facebook-conversions-api/fb-capi-properties.js +185 -0
- package/dist/destinations/facebook-conversions-api/fb-capi-properties.js.map +1 -0
- package/dist/destinations/facebook-conversions-api/fb-capi-user-data.d.ts +7 -0
- package/dist/destinations/facebook-conversions-api/fb-capi-user-data.js +272 -0
- package/dist/destinations/facebook-conversions-api/fb-capi-user-data.js.map +1 -0
- package/dist/destinations/facebook-conversions-api/initiateCheckout/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/initiateCheckout/index.js +90 -4
- package/dist/destinations/facebook-conversions-api/initiateCheckout/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/initiateCheckout2/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/initiateCheckout2/index.js +89 -4
- package/dist/destinations/facebook-conversions-api/initiateCheckout2/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/pageView/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/pageView/index.js +46 -5
- package/dist/destinations/facebook-conversions-api/pageView/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/pageView2/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/pageView2/index.js +45 -5
- package/dist/destinations/facebook-conversions-api/pageView2/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/purchase/generated-types.d.ts +0 -11
- package/dist/destinations/facebook-conversions-api/purchase/index.js +95 -4
- package/dist/destinations/facebook-conversions-api/purchase/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/purchase2/fields.d.ts +2 -0
- package/dist/destinations/facebook-conversions-api/purchase2/fields.js +50 -0
- package/dist/destinations/facebook-conversions-api/purchase2/fields.js.map +1 -0
- package/dist/destinations/facebook-conversions-api/purchase2/functions.d.ts +4 -0
- package/dist/destinations/facebook-conversions-api/purchase2/functions.js +59 -0
- package/dist/destinations/facebook-conversions-api/purchase2/functions.js.map +1 -0
- package/dist/destinations/facebook-conversions-api/purchase2/generated-types.d.ts +0 -11
- package/dist/destinations/facebook-conversions-api/purchase2/index.js +4 -5
- package/dist/destinations/facebook-conversions-api/purchase2/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/search/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/search/index.js +94 -4
- package/dist/destinations/facebook-conversions-api/search/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/search2/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/search2/index.js +93 -4
- package/dist/destinations/facebook-conversions-api/search2/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/utils.d.ts +3 -0
- package/dist/destinations/facebook-conversions-api/utils.js +19 -0
- package/dist/destinations/facebook-conversions-api/utils.js.map +1 -0
- package/dist/destinations/facebook-conversions-api/viewContent/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/viewContent/index.js +89 -4
- package/dist/destinations/facebook-conversions-api/viewContent/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/viewContent2/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/viewContent2/index.js +88 -4
- package/dist/destinations/facebook-conversions-api/viewContent2/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/destinations/facebook-conversions-api/fields.js +0 -842
- package/dist/destinations/facebook-conversions-api/fields.js.map +0 -1
- package/dist/destinations/facebook-conversions-api/functions.d.ts +0 -37
- package/dist/destinations/facebook-conversions-api/functions.js +0 -425
- package/dist/destinations/facebook-conversions-api/functions.js.map +0 -1
- package/dist/destinations/facebook-conversions-api/types.d.ts +0 -182
- package/dist/destinations/facebook-conversions-api/types.js +0 -3
- package/dist/destinations/facebook-conversions-api/types.js.map +0 -1
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { EventType } from './constants';
|
|
2
|
-
import type { Payload as AddToCartPayload } from './addToCart/generated-types';
|
|
3
|
-
import type { Payload as AddToCart2Payload } from './addToCart2/generated-types';
|
|
4
|
-
import type { Payload as CustomPayload } from './custom/generated-types';
|
|
5
|
-
import type { Payload as Custom2Payload } from './custom2/generated-types';
|
|
6
|
-
import type { Payload as InitiateCheckoutPayload } from './initiateCheckout/generated-types';
|
|
7
|
-
import type { Payload as InitiateCheckout2Payload } from './initiateCheckout2/generated-types';
|
|
8
|
-
import type { Payload as PageViewPayload } from './pageView/generated-types';
|
|
9
|
-
import type { Payload as PageView2Payload } from './pageView2/generated-types';
|
|
10
|
-
import type { Payload as PurchasePayload } from './purchase/generated-types';
|
|
11
|
-
import type { Payload as Purchase2Payload } from './purchase2/generated-types';
|
|
12
|
-
import type { Payload as SearchPayload } from './search/generated-types';
|
|
13
|
-
import type { Payload as Search2Payload } from './search2/generated-types';
|
|
14
|
-
import type { Payload as ViewContentPayload } from './viewContent/generated-types';
|
|
15
|
-
import type { Payload as ViewContentPayload2 } from './viewContent2/generated-types';
|
|
16
|
-
export type AnyPayload = PurchasePayload | Purchase2Payload | AddToCartPayload | AddToCart2Payload | ViewContentPayload | ViewContentPayload2 | InitiateCheckoutPayload | InitiateCheckout2Payload | PageViewPayload | PageView2Payload | CustomPayload | Custom2Payload | SearchPayload | Search2Payload;
|
|
17
|
-
export type EventDataType = PurchaseEventData | AppendValueEventData | AddToCartEventData | ViewContentEventData | InitiateCheckoutEventData | PageEventData | CustomEventData | SearchEventData;
|
|
18
|
-
export type EventTypeKey = keyof typeof EventType;
|
|
19
|
-
export interface RequestJSON {
|
|
20
|
-
partner_agent: "segment";
|
|
21
|
-
data: [EventDataType];
|
|
22
|
-
test_event_code?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface BaseEventData {
|
|
25
|
-
event_time: string;
|
|
26
|
-
action_source: string;
|
|
27
|
-
event_source_url?: string;
|
|
28
|
-
event_id?: string;
|
|
29
|
-
user_data: UserData;
|
|
30
|
-
app_data?: Record<string, unknown>;
|
|
31
|
-
data_processing_options?: string[];
|
|
32
|
-
data_processing_options_country?: number;
|
|
33
|
-
data_processing_options_state?: number;
|
|
34
|
-
}
|
|
35
|
-
export interface AddToCartEventData extends BaseEventData {
|
|
36
|
-
event_name: 'AddToCart';
|
|
37
|
-
custom_data: {
|
|
38
|
-
currency: string;
|
|
39
|
-
value?: number;
|
|
40
|
-
content_ids?: string[];
|
|
41
|
-
content_name?: string;
|
|
42
|
-
content_type?: string;
|
|
43
|
-
contents?: Array<{
|
|
44
|
-
id?: string;
|
|
45
|
-
quantity?: number;
|
|
46
|
-
item_price?: number;
|
|
47
|
-
delivery_category?: string;
|
|
48
|
-
}>;
|
|
49
|
-
[k: string]: unknown;
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
export interface CustomEventData extends BaseEventData {
|
|
53
|
-
event_name: string;
|
|
54
|
-
custom_data: {
|
|
55
|
-
[k: string]: unknown;
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
export interface PageEventData extends BaseEventData {
|
|
59
|
-
event_name: 'PageView';
|
|
60
|
-
}
|
|
61
|
-
export interface PurchaseEventData extends BaseEventData {
|
|
62
|
-
event_name: 'Purchase';
|
|
63
|
-
custom_data: {
|
|
64
|
-
currency: string;
|
|
65
|
-
value: number;
|
|
66
|
-
order_id?: string;
|
|
67
|
-
net_revenue?: number;
|
|
68
|
-
predicted_ltv?: number;
|
|
69
|
-
content_ids?: string[];
|
|
70
|
-
content_name?: string;
|
|
71
|
-
content_type?: string;
|
|
72
|
-
contents?: Array<{
|
|
73
|
-
id?: string;
|
|
74
|
-
quantity?: number;
|
|
75
|
-
item_price?: number;
|
|
76
|
-
delivery_category?: string;
|
|
77
|
-
}>;
|
|
78
|
-
num_items?: number;
|
|
79
|
-
[k: string]: unknown;
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
export interface InitiateCheckoutEventData extends BaseEventData {
|
|
83
|
-
event_name: 'InitiateCheckout';
|
|
84
|
-
custom_data: {
|
|
85
|
-
currency: string;
|
|
86
|
-
value?: number;
|
|
87
|
-
content_ids?: string[];
|
|
88
|
-
contents?: Array<{
|
|
89
|
-
id?: string;
|
|
90
|
-
quantity?: number;
|
|
91
|
-
item_price?: number;
|
|
92
|
-
delivery_category?: string;
|
|
93
|
-
}>;
|
|
94
|
-
num_items?: number;
|
|
95
|
-
content_category?: string;
|
|
96
|
-
[k: string]: unknown;
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
export interface SearchEventData extends BaseEventData {
|
|
100
|
-
event_name: 'Search';
|
|
101
|
-
custom_data: {
|
|
102
|
-
currency: string;
|
|
103
|
-
value?: number;
|
|
104
|
-
content_ids?: string[];
|
|
105
|
-
contents?: Array<{
|
|
106
|
-
id?: string;
|
|
107
|
-
quantity?: number;
|
|
108
|
-
item_price?: number;
|
|
109
|
-
delivery_category?: string;
|
|
110
|
-
}>;
|
|
111
|
-
content_category?: string;
|
|
112
|
-
search_string?: string;
|
|
113
|
-
[k: string]: unknown;
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
export interface ViewContentEventData extends BaseEventData {
|
|
117
|
-
event_name: 'ViewContent';
|
|
118
|
-
custom_data: {
|
|
119
|
-
currency: string;
|
|
120
|
-
value?: number;
|
|
121
|
-
content_ids?: string[];
|
|
122
|
-
content_name?: string;
|
|
123
|
-
content_type?: string;
|
|
124
|
-
contents?: Array<{
|
|
125
|
-
id?: string;
|
|
126
|
-
quantity?: number;
|
|
127
|
-
item_price?: number;
|
|
128
|
-
delivery_category?: string;
|
|
129
|
-
}>;
|
|
130
|
-
content_category?: string;
|
|
131
|
-
[k: string]: unknown;
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
export interface AppendValueEventData extends BaseEventData {
|
|
135
|
-
event_name: 'AppendValue';
|
|
136
|
-
original_event_data: {
|
|
137
|
-
event_name: string;
|
|
138
|
-
event_time?: string;
|
|
139
|
-
order_id?: string;
|
|
140
|
-
event_id?: string;
|
|
141
|
-
};
|
|
142
|
-
custom_data: {
|
|
143
|
-
net_revenue?: number;
|
|
144
|
-
predicted_ltv?: number;
|
|
145
|
-
[k: string]: unknown;
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
export type GeneratedAppData = {
|
|
149
|
-
advertiser_tracking_enabled: 1 | 0;
|
|
150
|
-
application_tracking_enabled: 1 | 0;
|
|
151
|
-
madid?: string;
|
|
152
|
-
extinfo: string[];
|
|
153
|
-
};
|
|
154
|
-
export interface UserData {
|
|
155
|
-
em?: string;
|
|
156
|
-
ph?: string;
|
|
157
|
-
ge?: string;
|
|
158
|
-
db?: string;
|
|
159
|
-
ln?: string;
|
|
160
|
-
fn?: string;
|
|
161
|
-
ct?: string;
|
|
162
|
-
st?: string;
|
|
163
|
-
zp?: string;
|
|
164
|
-
country?: string;
|
|
165
|
-
external_id?: string[];
|
|
166
|
-
client_ip_address?: string;
|
|
167
|
-
client_user_agent?: string;
|
|
168
|
-
fbc?: string;
|
|
169
|
-
fbp?: string;
|
|
170
|
-
subscription_id?: string;
|
|
171
|
-
lead_id?: number;
|
|
172
|
-
anon_id?: string;
|
|
173
|
-
madid?: string;
|
|
174
|
-
fb_login_id?: number;
|
|
175
|
-
partner_id?: string;
|
|
176
|
-
partner_name?: string;
|
|
177
|
-
ctwa_clid?: string;
|
|
178
|
-
}
|
|
179
|
-
export type Content = {
|
|
180
|
-
id?: string;
|
|
181
|
-
delivery_category?: string;
|
|
182
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/destinations/facebook-conversions-api/types.ts"],"names":[],"mappings":""}
|