@segment/action-destinations 3.82.1-alpha.5 → 3.84.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/cordial/addProductToCart/generated-types.d.ts +17 -0
- package/dist/destinations/{intercom → cordial/addProductToCart}/generated-types.js +0 -0
- package/dist/destinations/cordial/addProductToCart/generated-types.js.map +1 -0
- package/dist/destinations/{intercom/groupIdentifyContact → cordial/addProductToCart}/index.d.ts +1 -1
- package/dist/destinations/cordial/addProductToCart/index.js +116 -0
- package/dist/destinations/cordial/addProductToCart/index.js.map +1 -0
- package/dist/destinations/cordial/cordial-client.d.ts +6 -0
- package/dist/destinations/cordial/cordial-client.js +42 -0
- package/dist/destinations/cordial/cordial-client.js.map +1 -1
- package/dist/destinations/cordial/index.js +9 -3
- package/dist/destinations/cordial/index.js.map +1 -1
- package/dist/destinations/cordial/removeProductFromCart/generated-types.d.ts +7 -0
- package/dist/destinations/{intercom/groupIdentifyContact → cordial/removeProductFromCart}/generated-types.js +0 -0
- package/dist/destinations/cordial/removeProductFromCart/generated-types.js.map +1 -0
- package/dist/destinations/{intercom/identifyContact → cordial/removeProductFromCart}/index.d.ts +1 -1
- package/dist/destinations/cordial/removeProductFromCart/index.js +44 -0
- package/dist/destinations/cordial/removeProductFromCart/index.js.map +1 -0
- package/dist/destinations/cordial/upsertOrder/generated-types.d.ts +26 -0
- package/dist/destinations/{intercom/identifyContact → cordial/upsertOrder}/generated-types.js +0 -0
- package/dist/destinations/cordial/upsertOrder/generated-types.js.map +1 -0
- package/dist/destinations/cordial/upsertOrder/index.d.ts +5 -0
- package/dist/destinations/cordial/upsertOrder/index.js +179 -0
- package/dist/destinations/cordial/upsertOrder/index.js.map +1 -0
- package/dist/destinations/{intercom → fullstory}/generated-types.d.ts +1 -0
- package/dist/destinations/fullstory/generated-types.js +3 -0
- package/dist/destinations/fullstory/generated-types.js.map +1 -0
- package/dist/destinations/fullstory/identifyUser/generated-types.d.ts +9 -0
- package/dist/destinations/fullstory/identifyUser/generated-types.js +3 -0
- package/dist/destinations/fullstory/identifyUser/generated-types.js.map +1 -0
- package/dist/destinations/fullstory/identifyUser/index.d.ts +4 -0
- package/dist/destinations/fullstory/identifyUser/index.js +73 -0
- package/dist/destinations/fullstory/identifyUser/index.js.map +1 -0
- package/dist/destinations/{intercom → fullstory}/index.d.ts +0 -0
- package/dist/destinations/fullstory/index.js +56 -0
- package/dist/destinations/fullstory/index.js.map +1 -0
- package/dist/destinations/fullstory/request-params.d.ts +18 -0
- package/dist/destinations/fullstory/request-params.js +70 -0
- package/dist/destinations/fullstory/request-params.js.map +1 -0
- package/dist/destinations/fullstory/trackEvent/generated-types.d.ts +10 -0
- package/dist/destinations/fullstory/trackEvent/generated-types.js +3 -0
- package/dist/destinations/fullstory/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/fullstory/trackEvent/index.d.ts +5 -0
- package/dist/destinations/fullstory/trackEvent/index.js +79 -0
- package/dist/destinations/fullstory/trackEvent/index.js.map +1 -0
- package/dist/destinations/fullstory/vars.d.ts +3 -0
- package/dist/destinations/fullstory/vars.js +100 -0
- package/dist/destinations/fullstory/vars.js.map +1 -0
- package/dist/destinations/google-analytics-4/addPaymentInfo/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js +29 -20
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToCart/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/addToCart/index.js +27 -18
- package/dist/destinations/google-analytics-4/addToCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToWishlist/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/addToWishlist/index.js +27 -18
- package/dist/destinations/google-analytics-4/addToWishlist/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/beginCheckout/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/beginCheckout/index.js +28 -19
- package/dist/destinations/google-analytics-4/beginCheckout/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/customEvent/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/customEvent/index.js +25 -15
- package/dist/destinations/google-analytics-4/customEvent/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-functions.d.ts +3 -0
- package/dist/destinations/google-analytics-4/ga4-functions.js +33 -1
- package/dist/destinations/google-analytics-4/ga4-functions.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-properties.d.ts +1 -0
- package/dist/destinations/google-analytics-4/ga4-properties.js +9 -1
- package/dist/destinations/google-analytics-4/ga4-properties.js.map +1 -1
- package/dist/destinations/google-analytics-4/generateLead/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/generateLead/index.js +26 -17
- package/dist/destinations/google-analytics-4/generateLead/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/login/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/login/index.js +26 -16
- package/dist/destinations/google-analytics-4/login/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/pageView/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/pageView/index.js +28 -18
- package/dist/destinations/google-analytics-4/pageView/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/purchase/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/purchase/index.js +32 -23
- package/dist/destinations/google-analytics-4/purchase/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/refund/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/refund/index.js +32 -23
- package/dist/destinations/google-analytics-4/refund/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/removeFromCart/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/removeFromCart/index.js +27 -18
- package/dist/destinations/google-analytics-4/removeFromCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/search/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/search/index.js +26 -16
- package/dist/destinations/google-analytics-4/search/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectItem/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/selectItem/index.js +27 -18
- package/dist/destinations/google-analytics-4/selectItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectPromotion/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/selectPromotion/index.js +30 -21
- package/dist/destinations/google-analytics-4/selectPromotion/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/signUp/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/signUp/index.js +26 -16
- package/dist/destinations/google-analytics-4/signUp/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewCart/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/viewCart/index.js +27 -18
- package/dist/destinations/google-analytics-4/viewCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItem/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/viewItem/index.js +27 -18
- package/dist/destinations/google-analytics-4/viewItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItemList/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/viewItemList/index.js +27 -18
- package/dist/destinations/google-analytics-4/viewItemList/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewPromotion/generated-types.d.ts +1 -0
- package/dist/destinations/google-analytics-4/viewPromotion/index.js +30 -21
- package/dist/destinations/google-analytics-4/viewPromotion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/postConversion/index.js +2 -2
- package/dist/destinations/google-enhanced-conversions/postConversion/index.js.map +1 -1
- package/dist/destinations/index.js +0 -1
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/pipedrive/pipedriveApi/pipedrive-client.js +4 -8
- package/dist/destinations/pipedrive/pipedriveApi/pipedrive-client.js.map +1 -1
- package/dist/destinations/talon-one/index.js +5 -1
- package/dist/destinations/talon-one/index.js.map +1 -1
- package/dist/destinations/talon-one/t1-properties.d.ts +5 -0
- package/dist/destinations/talon-one/t1-properties.js +179 -1
- package/dist/destinations/talon-one/t1-properties.js.map +1 -1
- package/dist/destinations/talon-one/trackEvent/generated-types.d.ts +4 -0
- package/dist/destinations/talon-one/trackEvent/index.js +37 -2
- package/dist/destinations/talon-one/trackEvent/index.js.map +1 -1
- package/dist/destinations/talon-one/updateCustomerProfile/generated-types.d.ts +4 -0
- package/dist/destinations/talon-one/updateCustomerProfile/index.js +38 -3
- package/dist/destinations/talon-one/updateCustomerProfile/index.js.map +1 -1
- package/dist/destinations/talon-one/updateCustomerProfileV2/generated-types.d.ts +19 -0
- package/dist/destinations/talon-one/updateCustomerProfileV2/generated-types.js +3 -0
- package/dist/destinations/talon-one/updateCustomerProfileV2/generated-types.js.map +1 -0
- package/dist/destinations/talon-one/updateCustomerProfileV2/index.d.ts +5 -0
- package/dist/destinations/talon-one/updateCustomerProfileV2/index.js +36 -0
- package/dist/destinations/talon-one/updateCustomerProfileV2/index.js.map +1 -0
- package/dist/destinations/talon-one/updateCustomerProfilesAttributes/generated-types.d.ts +4 -0
- package/dist/destinations/talon-one/updateCustomerProfilesAttributes/index.js +36 -1
- package/dist/destinations/talon-one/updateCustomerProfilesAttributes/index.js.map +1 -1
- package/dist/destinations/talon-one/updateCustomerSession/generated-types.d.ts +47 -0
- package/dist/destinations/talon-one/updateCustomerSession/generated-types.js +3 -0
- package/dist/destinations/talon-one/updateCustomerSession/generated-types.js.map +1 -0
- package/dist/destinations/talon-one/updateCustomerSession/index.d.ts +5 -0
- package/dist/destinations/talon-one/updateCustomerSession/index.js +117 -0
- package/dist/destinations/talon-one/updateCustomerSession/index.js.map +1 -0
- package/package.json +4 -4
- package/dist/destinations/intercom/generated-types.js.map +0 -1
- package/dist/destinations/intercom/groupIdentifyContact/generated-types.d.ts +0 -14
- package/dist/destinations/intercom/groupIdentifyContact/generated-types.js.map +0 -1
- package/dist/destinations/intercom/groupIdentifyContact/index.js +0 -122
- package/dist/destinations/intercom/groupIdentifyContact/index.js.map +0 -1
- package/dist/destinations/intercom/identifyContact/generated-types.d.ts +0 -15
- package/dist/destinations/intercom/identifyContact/generated-types.js.map +0 -1
- package/dist/destinations/intercom/identifyContact/index.js +0 -153
- package/dist/destinations/intercom/identifyContact/index.js.map +0 -1
- package/dist/destinations/intercom/index.js +0 -37
- package/dist/destinations/intercom/index.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteAudienceId = exports.addAudienceId = exports.audienceId = exports.attribute = exports.customerProfileId = void 0;
|
|
3
|
+
exports.cartItems = exports.attributesInfo = exports.audiencesToDelete = exports.audiencesToAdd = exports.audience = exports.deleteAudienceId = exports.addAudienceId = exports.audienceId = exports.attribute = exports.customerProfileId = void 0;
|
|
4
4
|
exports.customerProfileId = {
|
|
5
5
|
label: 'Customer Profile ID',
|
|
6
6
|
description: 'The customer profile integration identifier to use in Talon.One.',
|
|
@@ -34,4 +34,182 @@ exports.deleteAudienceId = {
|
|
|
34
34
|
...exports.audienceId,
|
|
35
35
|
label: 'List of audience ID to dissociate with the customer profile.'
|
|
36
36
|
};
|
|
37
|
+
exports.audience = {
|
|
38
|
+
label: 'Audience (the label must not be used)',
|
|
39
|
+
description: 'Audience name and integration ID',
|
|
40
|
+
type: 'object',
|
|
41
|
+
properties: {
|
|
42
|
+
name: {
|
|
43
|
+
label: 'Name',
|
|
44
|
+
description: 'The audience name.',
|
|
45
|
+
type: 'string',
|
|
46
|
+
required: true
|
|
47
|
+
},
|
|
48
|
+
integrationId: {
|
|
49
|
+
label: 'integrationID',
|
|
50
|
+
description: 'The audience integration ID.',
|
|
51
|
+
type: 'string',
|
|
52
|
+
required: false
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
multiple: true,
|
|
56
|
+
required: false
|
|
57
|
+
};
|
|
58
|
+
exports.audiencesToAdd = {
|
|
59
|
+
...exports.audience,
|
|
60
|
+
label: 'The audiences for the customer to join.',
|
|
61
|
+
default: {
|
|
62
|
+
'@arrayPath': [
|
|
63
|
+
'$.properties.audiencesToAdd',
|
|
64
|
+
{
|
|
65
|
+
name: {
|
|
66
|
+
'@path': '$.name'
|
|
67
|
+
},
|
|
68
|
+
integrationId: {
|
|
69
|
+
'@path': '$.integrationId'
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
exports.audiencesToDelete = {
|
|
76
|
+
...exports.audience,
|
|
77
|
+
label: 'The audiences for the customer to leave.',
|
|
78
|
+
default: {
|
|
79
|
+
'@arrayPath': [
|
|
80
|
+
'$.properties.audiencesToDelete',
|
|
81
|
+
{
|
|
82
|
+
name: {
|
|
83
|
+
'@path': '$.name'
|
|
84
|
+
},
|
|
85
|
+
integrationId: {
|
|
86
|
+
'@path': '$.integrationId'
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
exports.attributesInfo = {
|
|
93
|
+
label: 'Attributes info',
|
|
94
|
+
description: 'Use this field if you want to identify an attribute with a specific type',
|
|
95
|
+
type: 'object',
|
|
96
|
+
required: false,
|
|
97
|
+
multiple: true,
|
|
98
|
+
properties: {
|
|
99
|
+
name: {
|
|
100
|
+
label: 'Name',
|
|
101
|
+
description: 'Attribute name',
|
|
102
|
+
type: 'string',
|
|
103
|
+
required: true
|
|
104
|
+
},
|
|
105
|
+
type: {
|
|
106
|
+
label: 'Type',
|
|
107
|
+
description: 'Attribute type. Can be only `string`, `time`, `number`, `boolean`, `location`',
|
|
108
|
+
type: 'string',
|
|
109
|
+
required: true,
|
|
110
|
+
choices: [
|
|
111
|
+
{ label: 'String', value: 'string' },
|
|
112
|
+
{ label: 'Time', value: 'time' },
|
|
113
|
+
{ label: 'Number', value: 'number' },
|
|
114
|
+
{ label: 'Boolean', value: 'boolean' },
|
|
115
|
+
{ label: 'Location', value: 'location' }
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
default: {
|
|
120
|
+
'@arrayPath': [
|
|
121
|
+
'$.properties.attributesInfo',
|
|
122
|
+
{
|
|
123
|
+
name: {
|
|
124
|
+
'@path': '$.name'
|
|
125
|
+
},
|
|
126
|
+
type: {
|
|
127
|
+
'@path': '$.type'
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
exports.cartItems = {
|
|
134
|
+
label: 'Card Items',
|
|
135
|
+
description: 'The items to add to this sessions.\n' +
|
|
136
|
+
'\n' +
|
|
137
|
+
'If cart item flattening is disabled: Do not exceed 1000 items (regardless of their quantity) per request.\n' +
|
|
138
|
+
"If cart item flattening is enabled: Do not exceed 1000 items and ensure the sum of all cart item's quantity does not exceed 10.000 per request.`",
|
|
139
|
+
type: 'object',
|
|
140
|
+
multiple: true,
|
|
141
|
+
properties: {
|
|
142
|
+
name: {
|
|
143
|
+
label: 'Name',
|
|
144
|
+
description: 'Name of item',
|
|
145
|
+
type: 'string'
|
|
146
|
+
},
|
|
147
|
+
sku: {
|
|
148
|
+
label: 'SKU',
|
|
149
|
+
description: 'Stock keeping unit of item.',
|
|
150
|
+
type: 'string'
|
|
151
|
+
},
|
|
152
|
+
quantity: {
|
|
153
|
+
label: 'Quantity',
|
|
154
|
+
description: 'Quantity of item. Important: If you enabled cart item flattening, the quantity is always one and the same cart item might receive multiple per-item discounts. Ensure you can process multiple discounts on one cart item correctly.',
|
|
155
|
+
type: 'number'
|
|
156
|
+
},
|
|
157
|
+
price: {
|
|
158
|
+
label: 'Price',
|
|
159
|
+
description: 'Price of item.',
|
|
160
|
+
type: 'number'
|
|
161
|
+
},
|
|
162
|
+
returnedQuantity: {
|
|
163
|
+
label: 'Returned quantity',
|
|
164
|
+
description: 'Number of returned items, calculated internally based on returns of this item.',
|
|
165
|
+
type: 'string'
|
|
166
|
+
},
|
|
167
|
+
remainingQuantity: {
|
|
168
|
+
label: 'Remaining quantity',
|
|
169
|
+
description: 'Remaining quantity of the item, calculated internally based on returns of this item.',
|
|
170
|
+
type: 'string'
|
|
171
|
+
},
|
|
172
|
+
category: {
|
|
173
|
+
label: 'Category',
|
|
174
|
+
description: 'Type, group or model of the item.',
|
|
175
|
+
type: 'string'
|
|
176
|
+
},
|
|
177
|
+
weight: {
|
|
178
|
+
label: 'Weight',
|
|
179
|
+
description: 'Weight of item in grams.',
|
|
180
|
+
type: 'string'
|
|
181
|
+
},
|
|
182
|
+
height: {
|
|
183
|
+
label: 'Height',
|
|
184
|
+
description: 'Height of item in mm.',
|
|
185
|
+
type: 'string'
|
|
186
|
+
},
|
|
187
|
+
length: {
|
|
188
|
+
label: 'Length',
|
|
189
|
+
description: 'Length of item in mm.',
|
|
190
|
+
type: 'string'
|
|
191
|
+
},
|
|
192
|
+
position: {
|
|
193
|
+
label: 'Position',
|
|
194
|
+
description: 'Position of the Cart Item in the Cart (calculated internally).',
|
|
195
|
+
type: 'string'
|
|
196
|
+
},
|
|
197
|
+
attributes: {
|
|
198
|
+
...exports.attribute,
|
|
199
|
+
default: {
|
|
200
|
+
'@path': '$.properties.attributes'
|
|
201
|
+
},
|
|
202
|
+
description: 'Use this property to set a value for the attributes of your choice. Attributes represent any information to attach to this cart item.\n' +
|
|
203
|
+
'\n' +
|
|
204
|
+
'Custom cart item attributes must be created in the Campaign Manager before you set them with this property.\n' +
|
|
205
|
+
'\n' +
|
|
206
|
+
'[See more info](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes).'
|
|
207
|
+
},
|
|
208
|
+
additionalCosts: {
|
|
209
|
+
label: 'Additional Costs',
|
|
210
|
+
description: 'Use this property to set a value for the additional costs of this session, such as a shipping cost.`',
|
|
211
|
+
type: 'object'
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
};
|
|
37
215
|
//# sourceMappingURL=t1-properties.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"t1-properties.js","sourceRoot":"","sources":["../../../src/destinations/talon-one/t1-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAe;IAC3C,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,kEAAkE;IAC/E,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACP,OAAO,EAAE,UAAU;KACpB;CACF,CAAA;AAEY,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,oJAAoJ;IACtJ,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE;QACP,OAAO,EAAE,UAAU;KACpB;CACF,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,2CAA2C;IAClD,WAAW,EAAE,mDAAmD;IAChE,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,KAAK;CAChB,CAAA;AAEY,QAAA,aAAa,GAAe;IACvC,GAAG,kBAAU;IACb,KAAK,EAAE,6DAA6D;CACrE,CAAA;AAEY,QAAA,gBAAgB,GAAe;IAC1C,GAAG,kBAAU;IACb,KAAK,EAAE,8DAA8D;CACtE,CAAA"}
|
|
1
|
+
{"version":3,"file":"t1-properties.js","sourceRoot":"","sources":["../../../src/destinations/talon-one/t1-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAe;IAC3C,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,kEAAkE;IAC/E,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACP,OAAO,EAAE,UAAU;KACpB;CACF,CAAA;AAEY,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,oJAAoJ;IACtJ,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE;QACP,OAAO,EAAE,UAAU;KACpB;CACF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WAAW,EACT,sGAAsG;YACxG,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAA"}
|
|
@@ -29,9 +29,43 @@ const action = {
|
|
|
29
29
|
attributes: {
|
|
30
30
|
...t1_properties_1.attribute,
|
|
31
31
|
default: {
|
|
32
|
-
'@path': '$.properties'
|
|
32
|
+
'@path': '$.properties.attributes'
|
|
33
33
|
},
|
|
34
34
|
description: 'Extra attributes associated with the event. [See more info](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes).'
|
|
35
|
+
},
|
|
36
|
+
attributesInfo: {
|
|
37
|
+
label: 'Attributes info',
|
|
38
|
+
description: 'Use this field if you want to identify an attribute with a specific type',
|
|
39
|
+
type: 'object',
|
|
40
|
+
required: false,
|
|
41
|
+
multiple: true,
|
|
42
|
+
properties: {
|
|
43
|
+
name: {
|
|
44
|
+
label: 'Name',
|
|
45
|
+
description: 'Attribute name',
|
|
46
|
+
type: 'string',
|
|
47
|
+
required: true
|
|
48
|
+
},
|
|
49
|
+
type: {
|
|
50
|
+
label: 'Type',
|
|
51
|
+
description: 'Attribute type. Can be only `string`, `time`, `number`, `boolean`, `location`',
|
|
52
|
+
type: 'string',
|
|
53
|
+
required: true
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
default: {
|
|
57
|
+
'@arrayPath': [
|
|
58
|
+
'$.properties.attributesInfo',
|
|
59
|
+
{
|
|
60
|
+
name: {
|
|
61
|
+
'@path': '$.name'
|
|
62
|
+
},
|
|
63
|
+
type: {
|
|
64
|
+
'@path': '$.type'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
35
69
|
}
|
|
36
70
|
},
|
|
37
71
|
perform: (request, { payload }) => {
|
|
@@ -41,7 +75,8 @@ const action = {
|
|
|
41
75
|
customerProfileId: payload.customerProfileId,
|
|
42
76
|
eventType: payload.eventType,
|
|
43
77
|
type: payload.type,
|
|
44
|
-
eventAttributes: payload.attributes
|
|
78
|
+
eventAttributes: payload.attributes,
|
|
79
|
+
attributesInfo: payload.attributesInfo
|
|
45
80
|
}
|
|
46
81
|
});
|
|
47
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,oDAA+D;AAE/D,MAAM,iBAAiB,GAAG,QAAQ,CAAA;AAElC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,2CAA2C;IACxD,MAAM,EAAE;QACN,iBAAiB,EAAE;YACjB,GAAG,iCAAiB;YACpB,WAAW,EACT,gIAAgI;SACnI;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,SAAS;aACnB;SACF;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,8EAA8E;YAC3F,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,iBAAiB;SAC3B;QACD,UAAU,EAAE;YACV,GAAG,yBAAS;YACZ,OAAO,EAAE;gBACP,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,oDAA+D;AAE/D,MAAM,iBAAiB,GAAG,QAAQ,CAAA;AAElC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,2CAA2C;IACxD,MAAM,EAAE;QACN,iBAAiB,EAAE;YACjB,GAAG,iCAAiB;YACpB,WAAW,EACT,gIAAgI;SACnI;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;Y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ACnC,cAAc,EAAE,OAAO,CAAC,cAAc;aACvC;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -11,9 +11,43 @@ const action = {
|
|
|
11
11
|
addAudienceIds: { ...t1_properties_1.addAudienceId },
|
|
12
12
|
runRuleEngine: {
|
|
13
13
|
label: 'Run rule engine',
|
|
14
|
-
description: 'This runs rule engine in Talon.One upon updating customer profile. Set to true to trigger rules.',
|
|
14
|
+
description: 'This runs rule engine in Talon.One upon updating customer profile. Set to true to trigger rules. Setting this property to false improves response times. For audiences changes the runRuleEngine should be true. Default value is false.',
|
|
15
15
|
type: 'boolean',
|
|
16
|
-
default:
|
|
16
|
+
default: false
|
|
17
|
+
},
|
|
18
|
+
attributesInfo: {
|
|
19
|
+
label: 'Attributes with types',
|
|
20
|
+
description: 'Use this field if you want to identify an attribute with a specific type',
|
|
21
|
+
type: 'object',
|
|
22
|
+
required: false,
|
|
23
|
+
multiple: true,
|
|
24
|
+
properties: {
|
|
25
|
+
name: {
|
|
26
|
+
label: 'Name',
|
|
27
|
+
description: 'Attribute name',
|
|
28
|
+
type: 'string',
|
|
29
|
+
required: true
|
|
30
|
+
},
|
|
31
|
+
type: {
|
|
32
|
+
label: 'Type',
|
|
33
|
+
description: 'Attribute type. Can be only `string`, `time`, `number`, `boolean`, `location`',
|
|
34
|
+
type: 'string',
|
|
35
|
+
required: true
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
default: {
|
|
39
|
+
'@arrayPath': [
|
|
40
|
+
'$.traits.attributesInfo',
|
|
41
|
+
{
|
|
42
|
+
name: {
|
|
43
|
+
'@path': '$.name'
|
|
44
|
+
},
|
|
45
|
+
type: {
|
|
46
|
+
'@path': '$.type'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
17
51
|
}
|
|
18
52
|
},
|
|
19
53
|
perform: (request, { payload }) => {
|
|
@@ -25,7 +59,8 @@ const action = {
|
|
|
25
59
|
adds: payload.addAudienceIds,
|
|
26
60
|
deletes: payload.deleteAudienceIds
|
|
27
61
|
},
|
|
28
|
-
runRuleEngine: payload.runRuleEngine
|
|
62
|
+
runRuleEngine: payload.runRuleEngine,
|
|
63
|
+
attributesInfo: payload.attributesInfo
|
|
29
64
|
}
|
|
30
65
|
});
|
|
31
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/updateCustomerProfile/index.ts"],"names":[],"mappings":";;AAGA,oDAAgG;AAEhG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,sEAAsE;IACnF,MAAM,EAAE;QACN,UAAU,EAAE,EAAE,GAAG,yBAAS,EAAE;QAC5B,iBAAiB,EAAE,EAAE,GAAG,iCAAiB,EAAE;QAC3C,iBAAiB,EAAE,EAAE,GAAG,gCAAgB,EAAE;QAC1C,cAAc,EAAE,EAAE,GAAG,6BAAa,EAAE;QACpC,aAAa,EAAE;YACb,KAAK,EAAE,iBAAiB;YACxB,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/updateCustomerProfile/index.ts"],"names":[],"mappings":";;AAGA,oDAAgG;AAEhG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,sEAAsE;IACnF,MAAM,EAAE;QACN,UAAU,EAAE,EAAE,GAAG,yBAAS,EAAE;QAC5B,iBAAiB,EAAE,EAAE,GAAG,iCAAiB,EAAE;QAC3C,iBAAiB,EAAE,EAAE,GAAG,gCAAgB,EAAE;QAC1C,cAAc,EAAE,EAAE,GAAG,6BAAa,EAAE;QACpC,aAAa,EAAE;YACb,KAAK,EAAE,iBAAiB;YACxB,WAAW,EACT,0OAA0O;YAC5O,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACf;QACD,cAAc,EAAE;YACd,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,0EAA0E;YACvF,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM;oBACb,WAAW,EAAE,gBAAgB;oBAC7B,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;iBACf;gBACD,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM;oBACb,WAAW,EAAE,+EAA+E;oBAC5F,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;iBACf;aACF;YACD,OAAO,EAAE;gBACP,YAAY,EAAE;oBACZ,yBAAyB;oBACzB;wBACE,IAAI,EAAE;4BACJ,OAAO,EAAE,QAAQ;yBAClB;wBACD,IAAI,EAAE;4BACJ,OAAO,EAAE,QAAQ;yBAClB;qBACF;iBACF;aACF;SACF;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAEhC,OAAO,OAAO,CAAC,0DAA0D,OAAO,CAAC,iBAAiB,EAAE,EAAE;YACpG,MAAM,EAAE,KAAK;YACb,IAAI,EAAE;gBACJ,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,gBAAgB,EAAE;oBAChB,IAAI,EAAE,OAAO,CAAC,cAAc;oBAC5B,OAAO,EAAE,OAAO,CAAC,iBAAiB;iBACnC;gBACD,aAAa,EAAE,OAAO,CAAC,aAAa;gBACpC,cAAc,EAAE,OAAO,CAAC,cAAc;aACvC;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
customerProfileId: string;
|
|
3
|
+
audiencesToAdd?: {
|
|
4
|
+
name: string;
|
|
5
|
+
integrationId?: string;
|
|
6
|
+
}[];
|
|
7
|
+
audiencesToDelete?: {
|
|
8
|
+
name: string;
|
|
9
|
+
integrationId?: string;
|
|
10
|
+
}[];
|
|
11
|
+
runRuleEngine?: boolean;
|
|
12
|
+
attributes?: {
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
attributesInfo?: {
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
}[];
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/updateCustomerProfileV2/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const t1_properties_1 = require("../t1-properties");
|
|
4
|
+
const action = {
|
|
5
|
+
title: 'Update Customer Profile V2',
|
|
6
|
+
description: 'You do not have to create attributes or audiences before using this endpoint.',
|
|
7
|
+
fields: {
|
|
8
|
+
customerProfileId: { ...t1_properties_1.customerProfileId },
|
|
9
|
+
audiencesToAdd: { ...t1_properties_1.audiencesToAdd },
|
|
10
|
+
audiencesToDelete: { ...t1_properties_1.audiencesToDelete },
|
|
11
|
+
runRuleEngine: {
|
|
12
|
+
label: 'Run rule engine',
|
|
13
|
+
description: 'This runs rule engine in Talon.One upon updating customer profile. Set to true to trigger rules.',
|
|
14
|
+
type: 'boolean',
|
|
15
|
+
default: true
|
|
16
|
+
},
|
|
17
|
+
attributes: { ...t1_properties_1.attribute },
|
|
18
|
+
attributesInfo: { ...t1_properties_1.attributesInfo }
|
|
19
|
+
},
|
|
20
|
+
perform: (request, { payload }) => {
|
|
21
|
+
return request(`https://integration.talon.one/segment/customer_profile_v2/${payload.customerProfileId}`, {
|
|
22
|
+
method: 'put',
|
|
23
|
+
json: {
|
|
24
|
+
audiencesChanges: {
|
|
25
|
+
adds: payload.audiencesToAdd,
|
|
26
|
+
deletes: payload.audiencesToDelete
|
|
27
|
+
},
|
|
28
|
+
runRuleEngine: payload.runRuleEngine,
|
|
29
|
+
attributes: payload.attributes,
|
|
30
|
+
attributesInfo: payload.attributesInfo
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.default = action;
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/updateCustomerProfileV2/index.ts"],"names":[],"mappings":";;AAGA,oDAAkH;AAElH,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,4BAA4B;IACnC,WAAW,EAAE,+EAA+E;IAC5F,MAAM,EAAE;QACN,iBAAiB,EAAE,EAAE,GAAG,iCAAiB,EAAE;QAC3C,cAAc,EAAE,EAAE,GAAG,8BAAc,EAAE;QACrC,iBAAiB,EAAE,EAAE,GAAG,iCAAiB,EAAE;QAC3C,aAAa,EAAE;YACb,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,kGAAkG;YAC/G,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;SACd;QACD,UAAU,EAAE,EAAE,GAAG,yBAAS,EAAE;QAC5B,cAAc,EAAE,EAAE,GAAG,8BAAc,EAAE;KACtC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAEhC,OAAO,OAAO,CAAC,6DAA6D,OAAO,CAAC,iBAAiB,EAAE,EAAE;YACvG,MAAM,EAAE,KAAK;YACb,IAAI,EAAE;gBACJ,gBAAgB,EAAE;oBAChB,IAAI,EAAE,OAAO,CAAC,cAAc;oBAC5B,OAAO,EAAE,OAAO,CAAC,iBAAiB;iBACnC;gBACD,aAAa,EAAE,OAAO,CAAC,aAAa;gBACpC,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,cAAc,EAAE,OAAO,CAAC,cAAc;aACvC;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -20,6 +20,40 @@ const action = {
|
|
|
20
20
|
...t1_properties_1.attribute,
|
|
21
21
|
label: 'Mutual Attribute-Value pairs',
|
|
22
22
|
description: 'This may contain mutual list of attributes and their values for every customer profile in the "data" array.'
|
|
23
|
+
},
|
|
24
|
+
attributesInfo: {
|
|
25
|
+
label: 'Attributes with types',
|
|
26
|
+
description: 'Use this field if you want to identify an attribute with a specific type',
|
|
27
|
+
type: 'object',
|
|
28
|
+
required: false,
|
|
29
|
+
multiple: true,
|
|
30
|
+
properties: {
|
|
31
|
+
name: {
|
|
32
|
+
label: 'Name',
|
|
33
|
+
description: 'Attribute name',
|
|
34
|
+
type: 'string',
|
|
35
|
+
required: true
|
|
36
|
+
},
|
|
37
|
+
type: {
|
|
38
|
+
label: 'Type',
|
|
39
|
+
description: 'Attribute type. Can be only `string`, `time`, `number`, `boolean`, `location`',
|
|
40
|
+
type: 'string',
|
|
41
|
+
required: true
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
default: {
|
|
45
|
+
'@arrayPath': [
|
|
46
|
+
'$.traits.attributesInfo',
|
|
47
|
+
{
|
|
48
|
+
name: {
|
|
49
|
+
'@path': '$.name'
|
|
50
|
+
},
|
|
51
|
+
type: {
|
|
52
|
+
'@path': '$.type'
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
23
57
|
}
|
|
24
58
|
},
|
|
25
59
|
perform: (request, { payload }) => {
|
|
@@ -27,7 +61,8 @@ const action = {
|
|
|
27
61
|
method: 'put',
|
|
28
62
|
json: {
|
|
29
63
|
data: payload.data,
|
|
30
|
-
mutualAttributes: payload.mutualAttributes
|
|
64
|
+
mutualAttributes: payload.mutualAttributes,
|
|
65
|
+
attributesInfo: payload.attributesInfo
|
|
31
66
|
}
|
|
32
67
|
});
|
|
33
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/updateCustomerProfilesAttributes/index.ts"],"names":[],"mappings":";;AAGA,oDAA+D;AAE/D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,yDAAyD;IACtE,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,KAAK,EAAE,iDAAiD;YACxD,WAAW,EACT,8IAA8I;YAChJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE;gBACV,iBAAiB,EAAE,EAAE,GAAG,iCAAiB,EAAE;gBAC3C,UAAU,EAAE,EAAE,GAAG,yBAAS,EAAE;aAC7B;YACD,QAAQ,EAAE,IAAI;SACf;QACD,gBAAgB,EAAE;YAChB,GAAG,yBAAS;YACZ,KAAK,EAAE,8BAA8B;YACrC,WAAW,EACT,6GAA6G;SAChH;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAEhC,OAAO,OAAO,CAAC,oEAAoE,EAAE;YACnF,MAAM,EAAE,KAAK;YACb,IAAI,EAAE;gBACJ,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/updateCustomerProfilesAttributes/index.ts"],"names":[],"mappings":";;AAGA,oDAA+D;AAE/D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,yDAAyD;IACtE,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,KAAK,EAAE,iDAAiD;YACxD,WAAW,EACT,8IAA8I;YAChJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE;gBACV,iBAAiB,EAAE,EAAE,GAAG,iCAAiB,EAAE;gBAC3C,UAAU,EAAE,EAAE,GAAG,yBAAS,EAAE;aAC7B;YACD,QAAQ,EAAE,IAAI;SACf;QACD,gBAAgB,EAAE;YAChB,GAAG,yBAAS;YACZ,KAAK,EAAE,8BAA8B;YACrC,WAAW,EACT,6GAA6G;SAChH;QACD,cAAc,EAAE;YACd,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,0EAA0E;YACvF,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM;oBACb,WAAW,EAAE,gBAAgB;oBAC7B,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;iBACf;gBACD,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM;oBACb,WAAW,EAAE,+EAA+E;oBAC5F,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;iBACf;aACF;YACD,OAAO,EAAE;gBACP,YAAY,EAAE;oBACZ,yBAAyB;oBACzB;wBACE,IAAI,EAAE;4BACJ,OAAO,EAAE,QAAQ;yBAClB;wBACD,IAAI,EAAE;4BACJ,OAAO,EAAE,QAAQ;yBAClB;qBACF;iBACF;aACF;SACF;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAEhC,OAAO,OAAO,CAAC,oEAAoE,EAAE;YACnF,MAAM,EAAE,KAAK;YACb,IAAI,EAAE;gBACJ,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;gBAC1C,cAAc,EAAE,OAAO,CAAC,cAAc;aACvC;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
customerSessionId: string;
|
|
3
|
+
callbackDestination?: string;
|
|
4
|
+
callbackAPIKey?: string;
|
|
5
|
+
contentFields?: string;
|
|
6
|
+
callbackCorrelationId?: string;
|
|
7
|
+
customerSession: {
|
|
8
|
+
profileId?: string;
|
|
9
|
+
couponCodes?: string[];
|
|
10
|
+
referralCode?: string;
|
|
11
|
+
loyaltyCards?: string[];
|
|
12
|
+
state?: string;
|
|
13
|
+
cartItems?: {
|
|
14
|
+
name?: string;
|
|
15
|
+
sku?: string;
|
|
16
|
+
quantity?: number;
|
|
17
|
+
price?: number;
|
|
18
|
+
returnedQuantity?: string;
|
|
19
|
+
remainingQuantity?: string;
|
|
20
|
+
category?: string;
|
|
21
|
+
weight?: string;
|
|
22
|
+
height?: string;
|
|
23
|
+
length?: string;
|
|
24
|
+
position?: string;
|
|
25
|
+
attributes?: {
|
|
26
|
+
[k: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
additionalCosts?: {
|
|
29
|
+
[k: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
}[];
|
|
32
|
+
additionalCosts?: {
|
|
33
|
+
[k: string]: unknown;
|
|
34
|
+
};
|
|
35
|
+
attributes?: {
|
|
36
|
+
[k: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
sessionAttributesInfo?: {
|
|
40
|
+
name: string;
|
|
41
|
+
type: string;
|
|
42
|
+
}[];
|
|
43
|
+
cartItemsAttributesInfo?: {
|
|
44
|
+
name: string;
|
|
45
|
+
type: string;
|
|
46
|
+
}[];
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/updateCustomerSession/generated-types.ts"],"names":[],"mappings":""}
|