@segment/action-destinations 3.30.2-alpha.5 → 3.31.1-alpha.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/amplitude/groupIdentifyUser/index.js +2 -2
- package/dist/destinations/amplitude/groupIdentifyUser/index.js.map +1 -1
- package/dist/destinations/amplitude/identifyUser/index.js +13 -13
- package/dist/destinations/amplitude/identifyUser/index.js.map +1 -1
- package/dist/destinations/amplitude/mapUser/index.js +3 -3
- package/dist/destinations/amplitude/mapUser/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/custom/generated-types.d.ts +2 -2
- package/dist/destinations/facebook-conversions-api/custom/index.js +4 -5
- package/dist/destinations/facebook-conversions-api/custom/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/viewContent/generated-types.d.ts +5 -5
- package/dist/destinations/facebook-conversions-api/viewContent/index.js +5 -5
- package/dist/destinations/facebook-conversions-api/viewContent/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js +45 -135
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToCart/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/addToCart/index.js +38 -125
- package/dist/destinations/google-analytics-4/addToCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToWishlist/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/addToWishlist/index.js +38 -123
- package/dist/destinations/google-analytics-4/addToWishlist/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/beginCheckout/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/beginCheckout/index.js +42 -136
- package/dist/destinations/google-analytics-4/beginCheckout/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/customEvent/index.js +2 -13
- package/dist/destinations/google-analytics-4/customEvent/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-properties.d.ts +15 -0
- package/dist/destinations/google-analytics-4/ga4-properties.js +194 -0
- package/dist/destinations/google-analytics-4/ga4-properties.js.map +1 -0
- package/dist/destinations/google-analytics-4/generateLead/index.js +4 -23
- package/dist/destinations/google-analytics-4/generateLead/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/login/index.js +2 -13
- package/dist/destinations/google-analytics-4/login/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/pageView/index.js +2 -13
- package/dist/destinations/google-analytics-4/pageView/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/purchase/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/purchase/index.js +45 -169
- package/dist/destinations/google-analytics-4/purchase/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/refund/index.js +45 -147
- package/dist/destinations/google-analytics-4/refund/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/removeFromCart/index.js +38 -123
- package/dist/destinations/google-analytics-4/removeFromCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/search/index.js +2 -13
- package/dist/destinations/google-analytics-4/search/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectItem/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/selectItem/index.js +37 -113
- package/dist/destinations/google-analytics-4/selectItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectPromotion/generated-types.d.ts +4 -4
- package/dist/destinations/google-analytics-4/selectPromotion/index.js +47 -145
- package/dist/destinations/google-analytics-4/selectPromotion/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/signUp/index.js +2 -13
- package/dist/destinations/google-analytics-4/signUp/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewCart/index.js +41 -123
- package/dist/destinations/google-analytics-4/viewCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItem/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/viewItem/index.js +38 -128
- package/dist/destinations/google-analytics-4/viewItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItemList/index.js +39 -113
- package/dist/destinations/google-analytics-4/viewItemList/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewPromotion/generated-types.d.ts +4 -4
- package/dist/destinations/google-analytics-4/viewPromotion/index.js +47 -154
- package/dist/destinations/google-analytics-4/viewPromotion/index.js.map +1 -1
- package/dist/destinations/slack/postToChannel/index.js +5 -5
- package/dist/destinations/slack/postToChannel/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -54,13 +54,13 @@ const action = {
|
|
|
54
54
|
group_type: {
|
|
55
55
|
label: 'Group Type',
|
|
56
56
|
type: 'string',
|
|
57
|
-
description: '
|
|
57
|
+
description: 'The type of the group',
|
|
58
58
|
required: true
|
|
59
59
|
},
|
|
60
60
|
group_value: {
|
|
61
61
|
label: 'Group Value',
|
|
62
62
|
type: 'string',
|
|
63
|
-
description: '
|
|
63
|
+
description: 'The value of the group',
|
|
64
64
|
required: true
|
|
65
65
|
},
|
|
66
66
|
min_id_length: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/groupIdentifyUser/index.ts"],"names":[],"mappings":";;;;;AAGA,+DAAsC;AAEtC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EACT,+GAA+G;IACjH,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,WAAW,EACT,uPAAuP;YACzP,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,oHAAoH;YACtH,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;oBAC1C,IAAI,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;oBACxC,IAAI,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;iBACnC;aACF;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,4OAA4O;SAC/O;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,4GAA4G;YAC9G,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,gBAAgB,EAAE;YAChB,KAAK,EAAE,kBAAkB;YACzB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iDAAiD;YAC9D,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/groupIdentifyUser/index.ts"],"names":[],"mappings":";;;;;AAGA,+DAAsC;AAEtC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EACT,+GAA+G;IACjH,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,WAAW,EACT,uPAAuP;YACzP,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,oHAAoH;YACtH,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;oBAC1C,IAAI,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;oBACxC,IAAI,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;iBACnC;aAC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,eAAe,CAAC;gBACxB,OAAO,EAAE,QAAQ,CAAC,MAAM;gBACxB,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC;oBAC7B;wBACE,SAAS,EAAE,OAAO,CAAC,SAAS;wBAC5B,MAAM,EAAE,gBAAgB;wBACxB,SAAS,EAAE,OAAO,CAAC,SAAS;wBAC5B,OAAO,EAAE,SAAS;wBAClB,IAAI,EAAE,eAAK,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE;wBACvC,OAAO,EAAE,OAAO,CAAC,OAAO;wBACxB,eAAe,EAAE,gBAAgB;qBAClC;iBACF,CAAC;gBACF,OAAO;aACkB,CAAC;SAC7B,CAAC,CAAA;QAGF,OAAO,OAAO,CAAC,yCAAyC,EAAE;YACxD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,eAAe,CAAC;gBACxB,OAAO,EAAE,QAAQ,CAAC,MAAM;gBACxB,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC;oBAC7B;wBACE,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;wBAC1C,WAAW,EAAE,OAAO,CAAC,WAAW;wBAChC,UAAU,EAAE,OAAO,CAAC,UAAU;wBAC9B,OAAO,EAAE,SAAS;qBACnB;iBACF,CAAC;gBACF,OAAO;aACkB,CAAC;SAC7B,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -55,7 +55,7 @@ const action = {
|
|
|
55
55
|
platform: {
|
|
56
56
|
label: 'Platform',
|
|
57
57
|
type: 'string',
|
|
58
|
-
description:
|
|
58
|
+
description: "The platform of the user's device.",
|
|
59
59
|
default: {
|
|
60
60
|
'@path': '$.context.device.type'
|
|
61
61
|
}
|
|
@@ -63,7 +63,7 @@ const action = {
|
|
|
63
63
|
os_name: {
|
|
64
64
|
label: 'OS Name',
|
|
65
65
|
type: 'string',
|
|
66
|
-
description:
|
|
66
|
+
description: "The mobile operating system or browser of the user's device.",
|
|
67
67
|
default: {
|
|
68
68
|
'@path': '$.context.os.name'
|
|
69
69
|
}
|
|
@@ -71,7 +71,7 @@ const action = {
|
|
|
71
71
|
os_version: {
|
|
72
72
|
label: 'OS Version',
|
|
73
73
|
type: 'string',
|
|
74
|
-
description:
|
|
74
|
+
description: "The version of the mobile operating system or browser of the user's device.",
|
|
75
75
|
default: {
|
|
76
76
|
'@path': '$.context.os.version'
|
|
77
77
|
}
|
|
@@ -79,7 +79,7 @@ const action = {
|
|
|
79
79
|
device_brand: {
|
|
80
80
|
label: 'Device Brand',
|
|
81
81
|
type: 'string',
|
|
82
|
-
description:
|
|
82
|
+
description: "The brand of user's the device.",
|
|
83
83
|
default: {
|
|
84
84
|
'@path': '$.context.device.brand'
|
|
85
85
|
}
|
|
@@ -87,7 +87,7 @@ const action = {
|
|
|
87
87
|
device_manufacturer: {
|
|
88
88
|
label: 'Device Manufacturer',
|
|
89
89
|
type: 'string',
|
|
90
|
-
description:
|
|
90
|
+
description: "The manufacturer of the user's device.",
|
|
91
91
|
default: {
|
|
92
92
|
'@path': '$.context.device.manufacturer'
|
|
93
93
|
}
|
|
@@ -95,7 +95,7 @@ const action = {
|
|
|
95
95
|
device_model: {
|
|
96
96
|
label: 'Device Model',
|
|
97
97
|
type: 'string',
|
|
98
|
-
description:
|
|
98
|
+
description: "The model of the user's device.",
|
|
99
99
|
default: {
|
|
100
100
|
'@path': '$.context.device.model'
|
|
101
101
|
}
|
|
@@ -103,7 +103,7 @@ const action = {
|
|
|
103
103
|
carrier: {
|
|
104
104
|
label: 'Carrier',
|
|
105
105
|
type: 'string',
|
|
106
|
-
description: '
|
|
106
|
+
description: "The user's mobile carrier.",
|
|
107
107
|
default: {
|
|
108
108
|
'@path': '$.context.network.carrier'
|
|
109
109
|
}
|
|
@@ -111,7 +111,7 @@ const action = {
|
|
|
111
111
|
country: {
|
|
112
112
|
label: 'Country',
|
|
113
113
|
type: 'string',
|
|
114
|
-
description: '
|
|
114
|
+
description: 'The country in which the user is located.',
|
|
115
115
|
default: {
|
|
116
116
|
'@path': '$.context.location.country'
|
|
117
117
|
}
|
|
@@ -119,7 +119,7 @@ const action = {
|
|
|
119
119
|
region: {
|
|
120
120
|
label: 'Region',
|
|
121
121
|
type: 'string',
|
|
122
|
-
description: '
|
|
122
|
+
description: 'The geographical region in which the user is located.',
|
|
123
123
|
default: {
|
|
124
124
|
'@path': '$.context.location.region'
|
|
125
125
|
}
|
|
@@ -127,7 +127,7 @@ const action = {
|
|
|
127
127
|
city: {
|
|
128
128
|
label: 'City',
|
|
129
129
|
type: 'string',
|
|
130
|
-
description: '
|
|
130
|
+
description: 'The city in which the user is located.',
|
|
131
131
|
default: {
|
|
132
132
|
'@path': '$.context.location.city'
|
|
133
133
|
}
|
|
@@ -135,12 +135,12 @@ const action = {
|
|
|
135
135
|
dma: {
|
|
136
136
|
label: 'Designated Market Area',
|
|
137
137
|
type: 'string',
|
|
138
|
-
description: 'The Designated Market Area
|
|
138
|
+
description: 'The Designated Market Area in which the user is located.'
|
|
139
139
|
},
|
|
140
140
|
language: {
|
|
141
141
|
label: 'Language',
|
|
142
142
|
type: 'string',
|
|
143
|
-
description: 'Language the user has set.',
|
|
143
|
+
description: 'Language the user has set on their device or browser.',
|
|
144
144
|
default: {
|
|
145
145
|
'@path': '$.context.locale'
|
|
146
146
|
}
|
|
@@ -153,7 +153,7 @@ const action = {
|
|
|
153
153
|
start_version: {
|
|
154
154
|
label: 'Initial Version',
|
|
155
155
|
type: 'string',
|
|
156
|
-
description: '
|
|
156
|
+
description: 'The version of the app the user was first on.'
|
|
157
157
|
},
|
|
158
158
|
insert_id: {
|
|
159
159
|
label: 'Insert ID',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/identifyUser/index.ts"],"names":[],"mappings":";;AAAA,wDAA+E;AAG/E,gCAA6C;AAC7C,0CAAqD;AACrD,8CAAwD;AACxD,oEAA8D;AAG9D,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","sources":["../../../../src/destinations/amplitude/identifyUser/index.ts"],"names":[],"mappings":";;AAAA,wDAA+E;AAG/E,gCAA6C;AAC7C,0CAAqD;AACrD,8CAAwD;AACxD,oEAA8D;AAG9D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,6GAA6G;IAC/G,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,WAAW,EACT,uPAAuP;YACzP,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,oHAAoH;YACtH,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;oBAC1C,IAAI,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;oBACxC,IAAI,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;iBACnC;aACF;SACF;QACD,eAAe,EAAE;YACf,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,8QAA8Q;YAChR,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,MAAM,EAAE;YACN,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,4RAA4R;SAC/R;QACD,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oCAAoC;YACjD,OAAO,EAAE;gBACP,OAAO,EAAE,uBAAuB;aACjC;SACF;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oCAAoC;YACjD,OAAO,EAAE;gBACP,OAAO,EAAE,uBAAu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AC,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;SAChG;QAED,IAAI,OAAO,KAAK,cAAc,EAAE;YAC9B,UAAU,CAAC,QAAQ,GAAG,KAAK,CAAA;SAC5B;QAED,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,IAAI,EAAE,CAAC,CAAC,MAAM,IAAI,QAAQ,EAAE;YACxD,UAAU,CAAC,eAAe,GAAG,2CAAmB,CAC9C,mBAAI,CAAC,UAAU,CAAC,eAAe,IAAI,EAAE,EAAE,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC,EACtE,0BAAoB,CAAC,OAAO,CAAC,EAC7B,kCAAuB,CAAC,OAAO,CAAC,CACjC,CAAA;SACF;QAED,IAAI,aAAa,IAAI,aAAa,GAAG,CAAC,EAAE;YACtC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC,CAAA;SAC5C;QAED,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC;YAEpC,GAAG,CAAC,gBAAgB,IAAI,qCAAwB,CAAC,SAAS,CAAC,CAAC;YAE5D,GAAG,8BAAe,CAAC,UAAU,CAAC;YAC9B,OAAO,EAAE,SAAS;SACnB,CAAC,CAAA;QACF,OAAO,OAAO,CAAC,oCAAoC,EAAE;YACnD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,eAAe,CAAC;gBACxB,OAAO,EAAE,QAAQ,CAAC,MAAM;gBACxB,cAAc;gBACd,OAAO;aACkB,CAAC;SAC7B,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -8,7 +8,7 @@ const action = {
|
|
|
8
8
|
user_id: {
|
|
9
9
|
label: 'User ID',
|
|
10
10
|
type: 'string',
|
|
11
|
-
description: 'The User ID to be associated',
|
|
11
|
+
description: 'The User ID to be associated.',
|
|
12
12
|
default: {
|
|
13
13
|
'@path': '$.previousId'
|
|
14
14
|
}
|
|
@@ -16,14 +16,14 @@ const action = {
|
|
|
16
16
|
global_user_id: {
|
|
17
17
|
label: 'Global User ID',
|
|
18
18
|
type: 'string',
|
|
19
|
-
description: 'The
|
|
19
|
+
description: 'The Global User ID to associate with the User ID.',
|
|
20
20
|
default: {
|
|
21
21
|
'@path': '$.userId'
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
min_id_length: {
|
|
25
25
|
label: 'Minimum ID Length',
|
|
26
|
-
description: 'Amplitude has a default minimum id
|
|
26
|
+
description: 'Amplitude has a default minimum id length of 5 characters for user_id and device_id fields. This field allows the minimum to be overridden to allow shorter id lengths.',
|
|
27
27
|
allowNull: true,
|
|
28
28
|
type: 'integer'
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/mapUser/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,6FAA6F;IAC1G,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/mapUser/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,6FAA6F;IAC1G,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,+BAA+B;YAC5C,OAAO,EAAE;gBACP,OAAO,EAAE,cAAc;aACxB;SACF;QACD,cAAc,EAAE;YACd,KAAK,EAAE,gBAAgB;YACvB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mDAAmD;YAChE,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,aAAa,EAAE;YACb,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EACT,yKAAyK;YAC3K,SAAS,EAAE,IAAI;YACf,IAAI,EAAE,SAAS;SAChB;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAA;QACjC,MAAM,OAAO,GAAG,aAAa,IAAI,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;QAClG,OAAO,OAAO,CAAC,mCAAmC,EAAE;YAClD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,eAAe,CAAC;gBACxB,OAAO,EAAE,QAAQ,CAAC,MAAM;gBACxB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC;gBAClC,GAAG,CAAC,OAAO,IAAI,EAAE,OAAO,EAAE,CAAC;aAC5B,CAAC;SACH,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -20,20 +20,19 @@ const action = {
|
|
|
20
20
|
},
|
|
21
21
|
event_time: { ...fb_capi_properties_1.event_time, required: true },
|
|
22
22
|
user_data: fb_capi_user_data_1.user_data_field,
|
|
23
|
-
event_id: fb_capi_properties_1.event_id,
|
|
24
|
-
event_source_url: fb_capi_properties_1.event_source_url,
|
|
25
23
|
custom_data: {
|
|
26
24
|
label: 'Custom Data',
|
|
27
25
|
description: 'The custom data object which can be used to pass custom properties. See [here](https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/custom-data) for more information',
|
|
28
26
|
type: 'object'
|
|
29
|
-
}
|
|
27
|
+
},
|
|
28
|
+
event_id: fb_capi_properties_1.event_id,
|
|
29
|
+
event_source_url: fb_capi_properties_1.event_source_url
|
|
30
30
|
},
|
|
31
31
|
perform: (request, { payload, settings }) => {
|
|
32
32
|
if (!payload.user_data) {
|
|
33
33
|
throw new actions_core_1.IntegrationError('Must include at least one user data property', 'Misconfigured required field', 400);
|
|
34
34
|
}
|
|
35
|
-
if (!['email', 'website', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other']
|
|
36
|
-
.includes(payload.action_source)) {
|
|
35
|
+
if (!['email', 'website', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other'].includes(payload.action_source)) {
|
|
37
36
|
throw new actions_core_1.IntegrationError('Provide a valid value for the action source parameter, such as "website"', 'Misconfigured required field', 400);
|
|
38
37
|
}
|
|
39
38
|
return request(`https://graph.facebook.com/v${constants_1.API_VERSION}/${settings.pixelId}/events`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/custom/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,8DAA6F;AAC7F,4DAAsE;AAGtE,4CAA0C;AAC1C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,+BAA+B;IAC5C,MAAM,EAAE;QACN,aAAa,EAAE,EAAE,GAAG,kCAAa,EAAE,QAAQ,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/custom/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,8DAA6F;AAC7F,4DAAsE;AAGtE,4CAA0C;AAC1C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,+BAA+B;IAC5C,MAAM,EAAE;QACN,aAAa,EAAE,EAAE,GAAG,kCAAa,EAAE,QAAQ,EAAE,IAAI,EAAE;QACnD,UAAU,EAAE;YACV,KAAK,EAAE,YAA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AAC,SAAS,EAAE,CAAC;wBAC3D,WAAW,EAAE,OAAO,CAAC,WAAW;qBACjC;iBACF;aACF;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export interface Payload {
|
|
2
|
+
action_source: string;
|
|
3
|
+
event_time: string;
|
|
2
4
|
user_data: {
|
|
3
5
|
externalId?: string;
|
|
4
6
|
email?: string;
|
|
@@ -19,12 +21,8 @@ export interface Payload {
|
|
|
19
21
|
leadID?: number;
|
|
20
22
|
fbLoginID?: number;
|
|
21
23
|
};
|
|
22
|
-
event_time: string;
|
|
23
|
-
action_source: string;
|
|
24
|
-
event_id?: string;
|
|
25
|
-
event_source_url?: string;
|
|
26
|
-
content_ids?: string[];
|
|
27
24
|
content_category?: string;
|
|
25
|
+
content_ids?: string[];
|
|
28
26
|
content_name?: string;
|
|
29
27
|
content_type?: string;
|
|
30
28
|
contents?: {
|
|
@@ -34,5 +32,7 @@ export interface Payload {
|
|
|
34
32
|
delivery_category?: string;
|
|
35
33
|
}[];
|
|
36
34
|
currency?: string;
|
|
35
|
+
event_id?: string;
|
|
36
|
+
event_source_url?: string;
|
|
37
37
|
value?: number;
|
|
38
38
|
}
|
|
@@ -9,13 +9,11 @@ const action = {
|
|
|
9
9
|
description: 'Send event when a user views content or a product',
|
|
10
10
|
defaultSubscription: 'type = "track" and event = "Product Viewed"',
|
|
11
11
|
fields: {
|
|
12
|
-
user_data: fb_capi_user_data_1.user_data_field,
|
|
13
|
-
event_time: { ...fb_capi_properties_1.event_time, required: true },
|
|
14
12
|
action_source: { ...fb_capi_properties_1.action_source, required: true },
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
content_ids: { ...fb_capi_properties_1.content_ids, default: { '@path': '$.properties.product_id' } },
|
|
13
|
+
event_time: { ...fb_capi_properties_1.event_time, required: true },
|
|
14
|
+
user_data: fb_capi_user_data_1.user_data_field,
|
|
18
15
|
content_category: fb_capi_properties_1.content_category,
|
|
16
|
+
content_ids: { ...fb_capi_properties_1.content_ids, default: { '@path': '$.properties.product_id' } },
|
|
19
17
|
content_name: fb_capi_properties_1.content_name,
|
|
20
18
|
content_type: fb_capi_properties_1.content_type,
|
|
21
19
|
contents: {
|
|
@@ -38,6 +36,8 @@ const action = {
|
|
|
38
36
|
}
|
|
39
37
|
},
|
|
40
38
|
currency: fb_capi_properties_1.currency,
|
|
39
|
+
event_id: fb_capi_properties_1.event_id,
|
|
40
|
+
event_source_url: fb_capi_properties_1.event_source_url,
|
|
41
41
|
value: { ...fb_capi_properties_1.value, default: { '@path': '$.properties.price' } }
|
|
42
42
|
},
|
|
43
43
|
perform: (request, { payload, settings }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/viewContent/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,8DAY8B;AAC9B,4DAAsE;AAGtE,4CAA8D;AAE9D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,mDAAmD;IAChE,mBAAmB,EAAE,6CAA6C;IAClE,MAAM,EAAE;QACN,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/viewContent/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,8DAY8B;AAC9B,4DAAsE;AAGtE,4CAA8D;AAE9D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,mDAAmD;IAChE,mBAAmB,EAAE,6CAA6C;IAClE,MAAM,EAAE;QACN,aAAa,EAAE,EAAE,GAAG,kCAAa,EAAE,QAAQ,EAAE,IAAI,EAAE;QACnD,UAAU,EAAE,EAAE,GAAG,+BAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7C,SAAS,EAAE,mCAAe;QAC1B,gBAAgB,EAAE,qCAA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CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -2,149 +2,59 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const actions_core_1 = require("@segment/actions-core");
|
|
4
4
|
const constants_1 = require("../constants");
|
|
5
|
+
const ga4_properties_1 = require("../ga4-properties");
|
|
5
6
|
const action = {
|
|
6
7
|
title: 'Add Payment Info',
|
|
7
8
|
description: 'Send event when a user submits their payment information',
|
|
8
9
|
defaultSubscription: 'type = "track" and event = "Payment Info Entered"',
|
|
9
10
|
fields: {
|
|
10
|
-
client_id: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
default: {
|
|
16
|
-
'@if': {
|
|
17
|
-
exists: { '@path': '$.userId' },
|
|
18
|
-
then: { '@path': '$.userId' },
|
|
19
|
-
else: { '@path': '$.anonymousId' }
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
currency: {
|
|
24
|
-
label: 'Currency',
|
|
25
|
-
type: 'string',
|
|
26
|
-
description: 'Currency of the items associated with the event, in 3-letter ISO 4217 format.'
|
|
27
|
-
},
|
|
28
|
-
value: {
|
|
29
|
-
label: 'Value',
|
|
30
|
-
type: 'string',
|
|
31
|
-
description: 'The monetary value of the event.'
|
|
32
|
-
},
|
|
33
|
-
coupon: {
|
|
34
|
-
label: 'Coupon',
|
|
35
|
-
type: 'string',
|
|
36
|
-
description: 'Coupon code used for a purchase.'
|
|
37
|
-
},
|
|
38
|
-
payment_type: {
|
|
39
|
-
label: 'Payment Type',
|
|
40
|
-
type: 'string',
|
|
41
|
-
description: 'The chosen method of payment.',
|
|
42
|
-
default: {
|
|
43
|
-
'@path': '$.properties.payment_method'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
11
|
+
client_id: { ...ga4_properties_1.client_id, required: true },
|
|
12
|
+
currency: { ...ga4_properties_1.currency },
|
|
13
|
+
value: { ...ga4_properties_1.value, type: 'string' },
|
|
14
|
+
coupon: { ...ga4_properties_1.coupon },
|
|
15
|
+
payment_type: { ...ga4_properties_1.payment_type },
|
|
46
16
|
items: {
|
|
47
|
-
|
|
48
|
-
description: 'The list of products purchased.',
|
|
49
|
-
type: 'object',
|
|
50
|
-
multiple: true,
|
|
17
|
+
...ga4_properties_1.items,
|
|
51
18
|
required: true,
|
|
52
19
|
properties: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
description: 'Brand associated with the product.'
|
|
92
|
-
},
|
|
93
|
-
item_category: {
|
|
94
|
-
label: 'Category',
|
|
95
|
-
type: 'string',
|
|
96
|
-
description: 'Product category.'
|
|
97
|
-
},
|
|
98
|
-
item_category2: {
|
|
99
|
-
label: 'Category 2',
|
|
100
|
-
type: 'string',
|
|
101
|
-
description: 'Product category 2.'
|
|
102
|
-
},
|
|
103
|
-
item_category3: {
|
|
104
|
-
label: 'Category 3',
|
|
105
|
-
type: 'string',
|
|
106
|
-
description: 'Product category 3.'
|
|
107
|
-
},
|
|
108
|
-
item_category4: {
|
|
109
|
-
label: 'Category 4',
|
|
110
|
-
type: 'string',
|
|
111
|
-
description: 'Product category 4.'
|
|
112
|
-
},
|
|
113
|
-
item_category5: {
|
|
114
|
-
label: 'Category 5',
|
|
115
|
-
type: 'string',
|
|
116
|
-
description: 'Product category 5.'
|
|
117
|
-
},
|
|
118
|
-
item_list_id: {
|
|
119
|
-
label: 'Item List ID',
|
|
120
|
-
type: 'string',
|
|
121
|
-
description: 'The ID of the list in which the item was presented to the user.'
|
|
122
|
-
},
|
|
123
|
-
item_list_name: {
|
|
124
|
-
label: 'Item List Name',
|
|
125
|
-
type: 'string',
|
|
126
|
-
description: 'The name of the list in which the item was presented to the user.'
|
|
127
|
-
},
|
|
128
|
-
item_variant: {
|
|
129
|
-
label: 'Variant',
|
|
130
|
-
type: 'string',
|
|
131
|
-
description: 'Variant of the product (e.g. Black).'
|
|
132
|
-
},
|
|
133
|
-
location_id: {
|
|
134
|
-
label: 'Location ID',
|
|
135
|
-
type: 'string',
|
|
136
|
-
description: 'The location associated with the item.'
|
|
137
|
-
},
|
|
138
|
-
price: {
|
|
139
|
-
label: 'Price',
|
|
140
|
-
type: 'number',
|
|
141
|
-
description: 'Price of the product being purchased, in units of the specified currency parameter.'
|
|
142
|
-
},
|
|
143
|
-
quantity: {
|
|
144
|
-
label: 'Quantity',
|
|
145
|
-
type: 'integer',
|
|
146
|
-
description: 'Item quantity.'
|
|
147
|
-
}
|
|
20
|
+
...ga4_properties_1.items.properties
|
|
21
|
+
},
|
|
22
|
+
default: {
|
|
23
|
+
'@arrayPath': [
|
|
24
|
+
'$.properties.products',
|
|
25
|
+
{
|
|
26
|
+
item_id: {
|
|
27
|
+
'@path': '$.product_id'
|
|
28
|
+
},
|
|
29
|
+
item_name: {
|
|
30
|
+
'@path': '$.name'
|
|
31
|
+
},
|
|
32
|
+
affiliation: {
|
|
33
|
+
'@path': '$.affiliation'
|
|
34
|
+
},
|
|
35
|
+
coupon: {
|
|
36
|
+
'@path': '$.coupon'
|
|
37
|
+
},
|
|
38
|
+
index: {
|
|
39
|
+
'@path': '$.position'
|
|
40
|
+
},
|
|
41
|
+
item_brand: {
|
|
42
|
+
'@path': '$.brand'
|
|
43
|
+
},
|
|
44
|
+
item_category: {
|
|
45
|
+
'@path': '$.category'
|
|
46
|
+
},
|
|
47
|
+
item_variant: {
|
|
48
|
+
'@path': '$.variant'
|
|
49
|
+
},
|
|
50
|
+
price: {
|
|
51
|
+
'@path': '$.price'
|
|
52
|
+
},
|
|
53
|
+
quantity: {
|
|
54
|
+
'@path': '$.quantity'
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
148
58
|
}
|
|
149
59
|
}
|
|
150
60
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addPaymentInfo/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,4CAAiD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addPaymentInfo/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,4CAAiD;AAIjD,sDAA2F;AAE3F,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,0DAA0D;IACvE,mBAAmB,EAAE,mDAAmD;IACxE,MAAM,EAAE;QACN,SAAS,EAAE,EAAE,GAAG,0BAAS,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC3C,QAAQ,EAAE,EAAE,GAAG,yBAAQ,EAAE;QACzB,KAAK,EAAE,EAAE,GAAG,sBAAK,EAAE,IAAI,EAAE,QAAQ,EAAE;QACnC,MAAM,EAAE,EAAE,GAAG,uBAAM,EAAE;QACrB,YAAY,EAAE,EAAE,GAAG,6BAAY,EAAE;QACjC,KAAK,EAAE;YACL,GAAG,sBAAK;YACR,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE;gBACV,GAAG,sBAAK,CAAC,UAAU;aACpB;YACD,OAAO,EAAE;gBACP,YAAY,EAAE;oBACZ,uBAAuB;oBACvB;wBACE,OAAO,EAAE;4BACP,OAAO,EAAE,cAAc;yBACxB;wBACD,SAAS,EAAE;4BACT,OAAO,EAAE,QAAQ;yBA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