@seeka-labs/sdk-apps-server 2.0.21-alpha.0 → 2.2.1
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/sdk-apps-server.commonjs.js +2 -0
- package/dist/sdk-apps-server.commonjs.js.map +7 -0
- package/dist/sdk-apps-server.module.mjs +2 -0
- package/dist/sdk-apps-server.module.mjs.map +7 -0
- package/dist/types/api/helper/__tests__/index.test.d.ts +2 -0
- package/dist/types/api/helper/__tests__/index.test.d.ts.map +1 -0
- package/dist/types/api/helper/auth/index.d.ts +17 -0
- package/dist/types/api/helper/auth/index.d.ts.map +1 -0
- package/dist/types/api/helper/config/index.d.ts.map +1 -0
- package/dist/types/api/helper/index.d.ts.map +1 -0
- package/dist/types/api/helper/serviceResolver/index.d.ts.map +1 -0
- package/dist/types/{src/api → api}/models/index.d.ts +0 -4
- package/dist/types/api/models/index.d.ts.map +1 -0
- package/dist/types/api/privacy/models/index.d.ts.map +1 -0
- package/dist/types/{src/api → api}/services/index.d.ts +0 -288
- package/dist/types/api/services/index.d.ts.map +1 -0
- package/dist/types/api/webhooks/__tests__/index.test.d.ts +2 -0
- package/dist/types/api/webhooks/__tests__/index.test.d.ts.map +1 -0
- package/dist/types/api/webhooks/index.d.ts.map +1 -0
- package/dist/types/cache/appCacheManager/index.d.ts.map +1 -0
- package/dist/types/helpers/app/index.d.ts.map +1 -0
- package/dist/types/helpers/crypto/index.d.ts +7 -0
- package/dist/types/helpers/crypto/index.d.ts.map +1 -0
- package/dist/types/helpers/util/activity/index.d.ts.map +1 -0
- package/dist/types/helpers/util/crypto/index.d.ts.map +1 -0
- package/dist/types/helpers/util/identity/index.d.ts.map +1 -0
- package/dist/types/helpers/util/index.d.ts.map +1 -0
- package/dist/types/{src/index.d.ts → index.d.ts} +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +33 -25
- package/dist/sdk-apps-server.js +0 -2
- package/dist/sdk-apps-server.js.map +0 -1
- package/dist/sdk-apps-server.module.js +0 -2
- package/dist/sdk-apps-server.module.js.map +0 -1
- package/dist/types/src/api/helper/auth/index.d.ts +0 -17
- package/dist/types/src/api/helper/auth/index.d.ts.map +0 -1
- package/dist/types/src/api/helper/config/index.d.ts.map +0 -1
- package/dist/types/src/api/helper/index.d.ts.map +0 -1
- package/dist/types/src/api/helper/serviceResolver/index.d.ts.map +0 -1
- package/dist/types/src/api/models/index.d.ts.map +0 -1
- package/dist/types/src/api/privacy/models/index.d.ts.map +0 -1
- package/dist/types/src/api/services/index.d.ts.map +0 -1
- package/dist/types/src/api/webhooks/index.d.ts.map +0 -1
- package/dist/types/src/cache/appCacheManager/index.d.ts.map +0 -1
- package/dist/types/src/helpers/app/index.d.ts.map +0 -1
- package/dist/types/src/helpers/crypto/index.d.ts +0 -9
- package/dist/types/src/helpers/crypto/index.d.ts.map +0 -1
- package/dist/types/src/helpers/util/activity/index.d.ts.map +0 -1
- package/dist/types/src/helpers/util/crypto/index.d.ts.map +0 -1
- package/dist/types/src/helpers/util/identity/index.d.ts.map +0 -1
- package/dist/types/src/helpers/util/index.d.ts.map +0 -1
- package/dist/types/src/index.d.ts.map +0 -1
- /package/dist/types/{src/api → api}/helper/config/index.d.ts +0 -0
- /package/dist/types/{src/api → api}/helper/index.d.ts +0 -0
- /package/dist/types/{src/api → api}/helper/serviceResolver/index.d.ts +0 -0
- /package/dist/types/{src/api → api}/privacy/models/index.d.ts +0 -0
- /package/dist/types/{src/api → api}/webhooks/index.d.ts +0 -0
- /package/dist/types/{src/cache → cache}/appCacheManager/index.d.ts +0 -0
- /package/dist/types/{src/helpers → helpers}/app/index.d.ts +0 -0
- /package/dist/types/{src/helpers → helpers}/util/activity/index.d.ts +0 -0
- /package/dist/types/{src/helpers → helpers}/util/crypto/index.d.ts +0 -0
- /package/dist/types/{src/helpers → helpers}/util/identity/index.d.ts +0 -0
- /package/dist/types/{src/helpers → helpers}/util/index.d.ts +0 -0
|
@@ -27,9 +27,6 @@ export declare class IdentityServiceProxy extends ApiServiceProxyBase {
|
|
|
27
27
|
protected baseUrl: string;
|
|
28
28
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
29
29
|
constructor(configuration: SeekaAppConfig, baseUrl?: string, instance?: AxiosInstance);
|
|
30
|
-
/**
|
|
31
|
-
* Merge identity
|
|
32
|
-
*/
|
|
33
30
|
merge(payload: PersonIdentificationRequest, cancelToken?: CancelToken): Promise<ApiResponseDtoOfPersonIdentificationResolutionResponse>;
|
|
34
31
|
protected processMerge(response: AxiosResponse): Promise<ApiResponseDtoOfPersonIdentificationResolutionResponse>;
|
|
35
32
|
}
|
|
@@ -38,9 +35,6 @@ export declare class IngestServiceProxy extends ApiServiceProxyBase {
|
|
|
38
35
|
protected baseUrl: string;
|
|
39
36
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
40
37
|
constructor(configuration: SeekaAppConfig, baseUrl?: string, instance?: AxiosInstance);
|
|
41
|
-
/**
|
|
42
|
-
* Track activity
|
|
43
|
-
*/
|
|
44
38
|
batch(payload: DataIngestBatchHttpRequest, cancelToken?: CancelToken): Promise<void>;
|
|
45
39
|
protected processBatch(response: AxiosResponse): Promise<void>;
|
|
46
40
|
}
|
|
@@ -89,132 +83,84 @@ export interface HelpAction {
|
|
|
89
83
|
helpActionTitle?: string;
|
|
90
84
|
}
|
|
91
85
|
export interface PersonIdentificationRequest {
|
|
92
|
-
/** Collection of identifiers used to calculate the identity graph. */
|
|
93
86
|
id: PersonIdentifiers;
|
|
94
|
-
/** Source of the identification request. */
|
|
95
87
|
src: TrackingEventSource;
|
|
96
88
|
}
|
|
97
89
|
export interface PersonIdentifiersBase {
|
|
98
|
-
/** Browser user agent */
|
|
99
90
|
ua?: string[];
|
|
100
|
-
/** IP Address */
|
|
101
91
|
ip?: string[];
|
|
102
|
-
/** Seeka Person ID - Identity graph ID */
|
|
103
92
|
seekaPId?: string;
|
|
104
|
-
/** Seeka Browser ID */
|
|
105
93
|
seekaBId?: string[];
|
|
106
|
-
/** Email address */
|
|
107
94
|
email?: string[];
|
|
108
|
-
/** Gender */
|
|
109
95
|
gender?: string[];
|
|
110
|
-
/** Phone number. Recommended to provide in E.164 format. */
|
|
111
96
|
phone?: string[];
|
|
112
|
-
/** External ID */
|
|
113
97
|
eid?: string[];
|
|
114
|
-
/** First name */
|
|
115
98
|
firstName?: string[];
|
|
116
|
-
/** Last name / surname */
|
|
117
99
|
lastName?: string[];
|
|
118
|
-
/** Shipping, mailing or residential address */
|
|
119
100
|
address?: PlaceAddress[];
|
|
120
|
-
/** Date of birth */
|
|
121
101
|
dob?: Date[];
|
|
122
|
-
/** Shopify identifiers */
|
|
123
102
|
shopify?: ShopifyPersonIdentifiers;
|
|
124
|
-
/** WooCommerce identifiers */
|
|
125
103
|
wooCommerce?: WooCommercePersonIdentifiers;
|
|
126
|
-
/** BigCommerce identifiers */
|
|
127
104
|
bigCommerce?: BigCommercePersonIdentifiers;
|
|
128
|
-
/** Magento identifiers */
|
|
129
105
|
magento?: MagentoPersonIdentifiers;
|
|
130
|
-
/** Klaviyo identifiers scoped by Klaviyo account ID */
|
|
131
106
|
klaviyo?: ScopedIdentifiersOfKlaviyoPersonIdentifiersDtoAndString;
|
|
132
|
-
/** Arbitrary traits */
|
|
133
107
|
traits?: {
|
|
134
108
|
[key: string]: any;
|
|
135
109
|
};
|
|
136
110
|
}
|
|
137
111
|
export interface PersonIdentifiers extends PersonIdentifiersBase {
|
|
138
|
-
/** Facebook identifiers */
|
|
139
112
|
facebook?: FacebookPersonIdentifiers;
|
|
140
|
-
/** Snapchat identifiers */
|
|
141
113
|
snapchat?: SnapchatPersonIdentifiers;
|
|
142
|
-
/** TikTok identifiers */
|
|
143
114
|
tiktok?: TikTokPersonIdentifiers;
|
|
144
|
-
/** Google identifiers */
|
|
145
115
|
google?: GooglePersonIdentifiers;
|
|
146
|
-
/** Pinterest identifiers */
|
|
147
116
|
pinterest?: PinterestPersonIdentifiers;
|
|
148
|
-
/** Marketing, analytics and other third-party opt in/consent information */
|
|
149
117
|
consent?: PersonConsentInfo;
|
|
150
118
|
}
|
|
151
119
|
export interface BrandScopedFacebookPersonIdentifiers {
|
|
152
|
-
/** Facebook user login ID */
|
|
153
120
|
login?: string[];
|
|
154
|
-
/** Facebook click ID */
|
|
155
121
|
fbc?: string[];
|
|
156
|
-
/** Facebook lead ID */
|
|
157
122
|
lead?: string[];
|
|
158
123
|
}
|
|
159
124
|
export interface FacebookPersonIdentifiers extends BrandScopedFacebookPersonIdentifiers {
|
|
160
|
-
/** Facebook pixel / browser ID */
|
|
161
125
|
fbp?: string[];
|
|
162
126
|
}
|
|
163
127
|
export interface BrandScopedSnapchatPersonIdentifiers {
|
|
164
|
-
/** Snapchat click ID */
|
|
165
128
|
sccid?: string[];
|
|
166
129
|
}
|
|
167
130
|
export interface SnapchatPersonIdentifiers extends BrandScopedSnapchatPersonIdentifiers {
|
|
168
|
-
/** Snapchat pixel / browser ID */
|
|
169
131
|
scid?: string[];
|
|
170
132
|
}
|
|
171
133
|
export interface BrandScopedTikTokPersonIdentifiers {
|
|
172
|
-
/** TikTok click ID */
|
|
173
134
|
ttclid?: string[];
|
|
174
|
-
/** TikTok lead ID */
|
|
175
135
|
lead?: string[];
|
|
176
136
|
}
|
|
177
137
|
export interface TikTokPersonIdentifiers extends BrandScopedTikTokPersonIdentifiers {
|
|
178
|
-
/** TikTok pixel / browser ID */
|
|
179
138
|
ttp?: string[];
|
|
180
139
|
}
|
|
181
140
|
export interface BrandScopedGooglePersonIdentifiers {
|
|
182
|
-
/** Google click ID */
|
|
183
141
|
gclid?: string[];
|
|
184
|
-
/** Google Braid ID */
|
|
185
142
|
gbraid?: string[];
|
|
186
|
-
/** Google Web Braid ID */
|
|
187
143
|
wbraid?: string[];
|
|
188
144
|
}
|
|
189
145
|
export interface GooglePersonIdentifiers extends BrandScopedGooglePersonIdentifiers {
|
|
190
|
-
/** Google user client ID */
|
|
191
146
|
userClientId?: string[];
|
|
192
147
|
}
|
|
193
148
|
export interface BrandScopedPinterestPersonIdentifiers {
|
|
194
|
-
/** Pinterest click ID / epik ID */
|
|
195
149
|
epik?: string[];
|
|
196
150
|
}
|
|
197
151
|
export interface PinterestPersonIdentifiers extends BrandScopedPinterestPersonIdentifiers {
|
|
198
152
|
}
|
|
199
153
|
export interface PersonConsentInfo {
|
|
200
|
-
/** Grant for sending data to 3rd party analytics and marketing platforms. */
|
|
201
154
|
analytics?: ConsentInfo;
|
|
202
|
-
/** Grant for marketing via re-marketing campaigns, EDMs etc. */
|
|
203
155
|
marketing?: MarketingConsentInfo;
|
|
204
|
-
/** Grant for enrolling and participating in loyalty programs. */
|
|
205
156
|
loyalty?: ConsentInfo;
|
|
206
157
|
privacy?: PrivacyState;
|
|
207
158
|
}
|
|
208
159
|
export interface ConsentInfo {
|
|
209
|
-
/** Type of consent */
|
|
210
160
|
type?: PrivacyConsentType;
|
|
211
|
-
/** When the consent was granted. */
|
|
212
161
|
consentGrantedAt?: Date | undefined;
|
|
213
|
-
/** The name of the source that provided the grant information. Set to the source platform like Shopify, Wordpress or your custom integration client name. */
|
|
214
162
|
consentGrantedSourceName?: string;
|
|
215
|
-
/** When the consent was not granted. */
|
|
216
163
|
consentNotGrantedAt?: Date | undefined;
|
|
217
|
-
/** The name of the source that provided the grant information. Set to the source platform like Shopify, Wordpress or your custom integration client name. */
|
|
218
164
|
consentNotGrantedSourceName?: string;
|
|
219
165
|
}
|
|
220
166
|
export declare enum PrivacyConsentType {
|
|
@@ -230,8 +176,6 @@ export interface MarketingConsentInfo {
|
|
|
230
176
|
sms?: ConsentInfo;
|
|
231
177
|
}
|
|
232
178
|
export interface PrivacyState {
|
|
233
|
-
/** Transparency and Consent Framework (TCF) consent string v2.0
|
|
234
|
-
See https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20Consent%20string%20and%20vendor%20list%20formats%20v2.md */
|
|
235
179
|
tcfConsentString?: string | undefined;
|
|
236
180
|
}
|
|
237
181
|
export interface PlaceAddress {
|
|
@@ -240,28 +184,21 @@ export interface PlaceAddress {
|
|
|
240
184
|
addressLine2?: string;
|
|
241
185
|
streetName?: string;
|
|
242
186
|
locality?: string;
|
|
243
|
-
/** Full name of the state / province / territory */
|
|
244
187
|
state?: string;
|
|
245
|
-
/** ISO 3166-2 - Two or three character subdivision code */
|
|
246
188
|
stateCode?: string;
|
|
247
189
|
postcode?: string;
|
|
248
|
-
/** Full name of the country */
|
|
249
190
|
country?: string;
|
|
250
|
-
/** ISO 3166-2 - Two character country code */
|
|
251
191
|
countryCode?: string;
|
|
252
192
|
googlePlaceId?: string;
|
|
253
193
|
timeZone?: TimeZoneInfo;
|
|
254
194
|
geoLocation?: GeographicalCoordinate;
|
|
255
195
|
}
|
|
256
196
|
export interface TimeZoneInfo {
|
|
257
|
-
/** IANA timezone ID */
|
|
258
197
|
friendlyId?: string;
|
|
259
198
|
description?: string;
|
|
260
199
|
}
|
|
261
200
|
export interface GeographicalCoordinate {
|
|
262
|
-
/** Longitude */
|
|
263
201
|
longitude?: number;
|
|
264
|
-
/** Latitude */
|
|
265
202
|
latitude?: number;
|
|
266
203
|
}
|
|
267
204
|
export interface ShopifyPersonIdentifiers {
|
|
@@ -283,23 +220,15 @@ export interface WooCommercePersonIdentifiers {
|
|
|
283
220
|
cartHash?: string[];
|
|
284
221
|
}
|
|
285
222
|
export interface BigCommercePersonIdentifiers {
|
|
286
|
-
/** BigCommerce */
|
|
287
223
|
customerId?: string[];
|
|
288
|
-
/** BigCommerce */
|
|
289
224
|
cartId?: string[];
|
|
290
|
-
/** BigCommerce */
|
|
291
225
|
orderId?: string[];
|
|
292
226
|
}
|
|
293
227
|
export interface MagentoPersonIdentifiers {
|
|
294
|
-
/** Magento customer */
|
|
295
228
|
customerId?: string[];
|
|
296
|
-
/** Magento cart */
|
|
297
229
|
cartId?: string[];
|
|
298
|
-
/** Magento order unique identifier */
|
|
299
230
|
orderId?: string[];
|
|
300
|
-
/** Magento order number / incremental ID */
|
|
301
231
|
orderNumber?: string[];
|
|
302
|
-
/** Magento checkout */
|
|
303
232
|
checkoutId?: string[];
|
|
304
233
|
}
|
|
305
234
|
export interface ScopedIdentifiersOfKlaviyoPersonIdentifiersDtoAndString {
|
|
@@ -308,31 +237,18 @@ export interface ScopedIdentifiersOfKlaviyoPersonIdentifiersDtoAndString {
|
|
|
308
237
|
};
|
|
309
238
|
}
|
|
310
239
|
export interface KlaviyoPersonIdentifiers {
|
|
311
|
-
/** Klaviyo profile ID */
|
|
312
240
|
profileId?: string[] | undefined;
|
|
313
241
|
}
|
|
314
242
|
export interface TrackingEventSource {
|
|
315
|
-
/** Source method that requested the tracking. */
|
|
316
243
|
method: string;
|
|
317
|
-
/** Type of origin that generated the tracking request.
|
|
318
|
-
This is not the same as where the tracking event originated from, this property specifies where the tracking event was tracked from. */
|
|
319
244
|
origin?: TrackingEventSourceOriginType | undefined;
|
|
320
|
-
/** Time occurred. Do not provide to use server time (recommended) */
|
|
321
245
|
time?: Date | undefined;
|
|
322
|
-
/** URL where the tracking event originated from. */
|
|
323
246
|
loc: string;
|
|
324
|
-
/** Title of the view or page where the tracking event originated from. */
|
|
325
247
|
vt?: string | undefined;
|
|
326
|
-
/** Session ID where the tracking event originated from. UTC date.time and then random digits.
|
|
327
|
-
Format YYYYMMDD.HHMMSS.{random 10 digits} */
|
|
328
248
|
sess?: string | undefined;
|
|
329
|
-
/** Diagnosis session ID. UTC date.time and then random digits.
|
|
330
|
-
Format YYYYMMDD.HHMMSS.{random 10 digits} */
|
|
331
249
|
diag?: string | undefined;
|
|
332
250
|
runtime?: SeekaSdkRuntimeInfo;
|
|
333
|
-
/** Context of the pipeline integration that raised the tracking event. */
|
|
334
251
|
pipeline?: SeekaPipelineIntegrationSource | undefined;
|
|
335
|
-
/** IP address */
|
|
336
252
|
ip?: string | undefined;
|
|
337
253
|
device?: DeviceTrackingSource | undefined;
|
|
338
254
|
privacy?: PrivacyState | undefined;
|
|
@@ -349,16 +265,12 @@ export declare enum TrackingEventSourceOriginType {
|
|
|
349
265
|
Automatic = "automatic"
|
|
350
266
|
}
|
|
351
267
|
export interface SeekaSdkRuntimeInfo {
|
|
352
|
-
/** Version of the package or library being used to interact with the SDK */
|
|
353
268
|
ver?: string;
|
|
354
|
-
/** Type of the package or library being used to interact with the SDK */
|
|
355
269
|
type?: string;
|
|
356
270
|
client?: SeekaSdkClientRuntimeInfo;
|
|
357
271
|
}
|
|
358
272
|
export interface SeekaSdkClientRuntimeInfo {
|
|
359
|
-
/** Client version used to identify the implementation of the SDK */
|
|
360
273
|
ver?: string;
|
|
361
|
-
/** Name or type used to identify the implementation of the SDK. This could be specified as 'backend' for a backend integration with the SDK or 'website' for integrations placed on a website. */
|
|
362
274
|
type?: string;
|
|
363
275
|
origin?: SeekaSdkClientRuntimeOrigin | undefined;
|
|
364
276
|
}
|
|
@@ -367,25 +279,16 @@ export interface SeekaSdkClientRuntimeOrigin {
|
|
|
367
279
|
}
|
|
368
280
|
export interface SeekaPipelineIntegrationSource {
|
|
369
281
|
convergePipelineIntegrationInstanceId?: string;
|
|
370
|
-
/** The IntegrationVendorNameKey could be set to "Klaviyo" for all Klaviyo pipeline integration classes so that the rate limit for certain operations are shared across all Klaviyo integration instances that share the same IntegrationInstanceUniqueKey
|
|
371
|
-
Alpha only
|
|
372
|
-
Max length of 12 characters */
|
|
373
282
|
integrationVendorNameKey?: string;
|
|
374
|
-
/** In format of IntegrationPublisherCompany.IntegrationVendorNameKey.IntegrationName. Eg. Seeka.Klaviyo.Identity */
|
|
375
283
|
convergePipelineIntegrationTypeKey?: string;
|
|
376
284
|
}
|
|
377
285
|
export interface DeviceTrackingSource {
|
|
378
|
-
/** Browser name (Chrome, Firefox, Safari, etc) */
|
|
379
286
|
bn?: string | undefined;
|
|
380
|
-
/** Browser version */
|
|
381
287
|
bv?: string | undefined;
|
|
382
|
-
/** Platform name (Win32, OSX etc) */
|
|
383
288
|
pl?: string | undefined;
|
|
384
|
-
/** Device fingerprint */
|
|
385
289
|
fp?: string | undefined;
|
|
386
290
|
}
|
|
387
291
|
export interface DataIngestBatchHttpRequest {
|
|
388
|
-
/** Max batch size is 50 */
|
|
389
292
|
data?: DataIngestBatchHttpItem[];
|
|
390
293
|
}
|
|
391
294
|
export interface DataIngestBatchHttpItem {
|
|
@@ -395,66 +298,39 @@ export interface DataIngestBatchHttpItem {
|
|
|
395
298
|
log?: ActivityLogRequest | undefined;
|
|
396
299
|
}
|
|
397
300
|
export interface ActivityTrackingRequest {
|
|
398
|
-
/** Collection of identifiers used to calculate the identity graph. */
|
|
399
301
|
id: PersonIdentifiers;
|
|
400
|
-
/** Source of the identification request. */
|
|
401
302
|
src: TrackingEventSource;
|
|
402
|
-
/** Custom properties to attach to tracking event */
|
|
403
303
|
props?: {
|
|
404
304
|
[key: string]: string;
|
|
405
305
|
};
|
|
406
|
-
/** UTM tracking information */
|
|
407
306
|
utm?: UtmTrackingEvent[];
|
|
408
|
-
/** Activity tracking information */
|
|
409
307
|
payload?: ActivityPayload;
|
|
410
308
|
}
|
|
411
309
|
export interface UtmTrackingEvent {
|
|
412
|
-
/** UTM ID */
|
|
413
310
|
id?: string;
|
|
414
|
-
/** UTM content */
|
|
415
311
|
content?: string;
|
|
416
|
-
/** UTM source */
|
|
417
312
|
source?: string;
|
|
418
|
-
/** UTM campaign */
|
|
419
313
|
campaign?: string;
|
|
420
|
-
/** UTM term */
|
|
421
314
|
term?: string;
|
|
422
|
-
/** UTM medium */
|
|
423
315
|
medium?: string;
|
|
424
316
|
}
|
|
425
317
|
export interface ActivityPayloadBase {
|
|
426
|
-
/** Standard or custom activity / behavior activity name. */
|
|
427
318
|
activityName?: TrackingActivityNames;
|
|
428
|
-
/** Required if ActivityName is set to Custom.
|
|
429
|
-
When setting this parameter in conjunction with setting ActivityName to a standard event name, Seeka will process the event
|
|
430
|
-
as a standard event with the exception of conversion based data destinations being sent the event as the ActivityNameCustom value
|
|
431
|
-
with the parameters of the standard event. */
|
|
432
319
|
activityNameCustom?: string;
|
|
433
|
-
/** Unique identifier used to de-duplicate activities */
|
|
434
320
|
activityId?: string;
|
|
435
|
-
/** E-Commerce specific activity properties */
|
|
436
321
|
commerce?: CommerceActivityTrackingEventMetadata;
|
|
437
|
-
/** Search function specific activity properties */
|
|
438
322
|
search?: SearchActivityTrackingEventMetadata;
|
|
439
|
-
/** Sign up / newsletter function specific activity properties */
|
|
440
323
|
signUp?: SignUpActivityTrackingEventMetadata;
|
|
441
|
-
/** User account specific activity properties */
|
|
442
324
|
userAccount?: UserAccountActivityTrackingEventMetadata;
|
|
443
|
-
/** Promotion specific activity properties */
|
|
444
325
|
promotion?: PromotionalActivityTrackingEventMetadata;
|
|
445
|
-
/** Content behavior specific activity properties */
|
|
446
326
|
contentBehaviour?: ContentBehaviourActivityTrackingEventMetadata;
|
|
447
|
-
/** Lead activity properties */
|
|
448
327
|
lead?: LeadActivityTrackingEventMetadata;
|
|
449
|
-
/** Content item activity properties */
|
|
450
328
|
contentItem?: ContentItemActivityTrackingEventMetadata;
|
|
451
|
-
/** Custom properties attached to the tracking event */
|
|
452
329
|
properties?: {
|
|
453
330
|
[key: string]: string;
|
|
454
331
|
};
|
|
455
332
|
}
|
|
456
333
|
export interface ActivityPayload extends ActivityPayloadBase {
|
|
457
|
-
/** Time activity occurred. Do not provide to use server time (recommended) */
|
|
458
334
|
time?: Date | undefined;
|
|
459
335
|
}
|
|
460
336
|
export declare enum TrackingActivityNames {
|
|
@@ -488,72 +364,39 @@ export declare enum TrackingActivityNames {
|
|
|
488
364
|
}
|
|
489
365
|
export interface CommerceActivityTrackingEventMetadata {
|
|
490
366
|
products?: CommerceActivityTrackingEventProductMetadata[];
|
|
491
|
-
/** Identifier of the checkout */
|
|
492
367
|
checkoutIdentifier?: string;
|
|
493
|
-
/** Identifier of the cart */
|
|
494
368
|
cartIdentifier?: string;
|
|
495
|
-
/** Identifier of the order */
|
|
496
369
|
orderIdentifier?: string;
|
|
497
|
-
/** Incremental ID of the order */
|
|
498
370
|
orderNumber?: string;
|
|
499
|
-
/** Identifier of the customer */
|
|
500
371
|
customerIdentifier?: string;
|
|
501
|
-
/** Where the order was placed */
|
|
502
372
|
sourceChannelName?: string;
|
|
503
|
-
/** Type of the e-commerce platform */
|
|
504
373
|
platformType?: ECommercePlatform;
|
|
505
|
-
/** Payment method name */
|
|
506
374
|
paymentMethodName?: string;
|
|
507
|
-
/** ISO 4217 3 letter currency code */
|
|
508
375
|
currencyCode?: string;
|
|
509
|
-
/** Test order */
|
|
510
376
|
isTest?: boolean;
|
|
511
|
-
/** Total refunds */
|
|
512
377
|
totalRefunds?: number | undefined;
|
|
513
|
-
/** Total discounts */
|
|
514
378
|
totalDiscounts?: number | undefined;
|
|
515
|
-
/** Total sum of all the line items in the order
|
|
516
|
-
Can be left empty to auto calculate */
|
|
517
379
|
totalLineItemsPrice?: number | undefined;
|
|
518
|
-
/** Total price of the order paid by the purchaser */
|
|
519
380
|
totalPrice?: number | undefined;
|
|
520
|
-
/** Total tax */
|
|
521
381
|
totalTax?: number | undefined;
|
|
522
|
-
/** Total shipping price */
|
|
523
382
|
totalShippingPrice?: number | undefined;
|
|
524
|
-
/** Fulfillment status */
|
|
525
383
|
fulfillmentStatus?: ECommerceFulfillmentStatus | undefined;
|
|
526
|
-
/** Financial status */
|
|
527
384
|
financialStatus?: ECommerceFinancialStatus | undefined;
|
|
528
385
|
}
|
|
529
386
|
export interface CommerceActivityTrackingEventProductMetadata {
|
|
530
|
-
/** ISO 4217 currency code */
|
|
531
387
|
currencyCode?: string;
|
|
532
|
-
/** Product ID */
|
|
533
388
|
productIdentifier?: string;
|
|
534
|
-
/** Variant ID */
|
|
535
389
|
variantIdentifier?: string;
|
|
536
|
-
/** SKU */
|
|
537
390
|
sku?: string;
|
|
538
|
-
/** Identifier of the line item */
|
|
539
391
|
lineItemIdentifier?: string;
|
|
540
|
-
/** Name of product */
|
|
541
392
|
productName?: string;
|
|
542
|
-
/** Name of variant */
|
|
543
393
|
variantName?: string;
|
|
544
|
-
/** Name of category */
|
|
545
394
|
categoryName?: string;
|
|
546
|
-
/** Brand of the item */
|
|
547
395
|
brandName?: string;
|
|
548
|
-
/** Price of a single item */
|
|
549
396
|
unitPrice?: number | undefined;
|
|
550
|
-
/** Quantity */
|
|
551
397
|
quantity?: number | undefined;
|
|
552
|
-
/** Total discounts */
|
|
553
398
|
totalDiscount?: number | undefined;
|
|
554
|
-
/** Type of product or collection */
|
|
555
399
|
type?: ECommerceContentType | undefined;
|
|
556
|
-
/** Additional attributes of the product */
|
|
557
400
|
attributes?: {
|
|
558
401
|
[key: string]: any;
|
|
559
402
|
};
|
|
@@ -574,7 +417,6 @@ export declare enum ECommercePlatform {
|
|
|
574
417
|
WooCommerce = "wooCommerce",
|
|
575
418
|
Demandware = "demandware"
|
|
576
419
|
}
|
|
577
|
-
/** https://shopify.dev/api/admin-rest/2022-01/resources/order#resource-object */
|
|
578
420
|
export declare enum ECommerceFulfillmentStatus {
|
|
579
421
|
Undefined = "undefined",
|
|
580
422
|
Fulfilled = "fulfilled",
|
|
@@ -583,7 +425,6 @@ export declare enum ECommerceFulfillmentStatus {
|
|
|
583
425
|
RestockedOrCancelled = "restockedOrCancelled",
|
|
584
426
|
Pending = "pending"
|
|
585
427
|
}
|
|
586
|
-
/** https://shopify.dev/api/admin-rest/2022-01/resources/order#resource-object */
|
|
587
428
|
export declare enum ECommerceFinancialStatus {
|
|
588
429
|
Undefined = "undefined",
|
|
589
430
|
Pending = "pending",
|
|
@@ -608,31 +449,20 @@ export interface PromotionalActivityTrackingEventMetadata {
|
|
|
608
449
|
code?: string;
|
|
609
450
|
}
|
|
610
451
|
export interface ContentBehaviourActivityTrackingEventMetadata {
|
|
611
|
-
/** Behavior that changes or customised a product via an attribute. */
|
|
612
452
|
changeProduct?: ChangeProductAttributeActivityTrackingEventMetadata;
|
|
613
|
-
/** Behavior that filters a list of items or content via an attribute. */
|
|
614
453
|
filterItems?: FilterItemsByAttributeActivityTrackingEventMetadata;
|
|
615
454
|
}
|
|
616
455
|
export interface ChangeProductAttributeActivityTrackingEventMetadata {
|
|
617
|
-
/** Name of the type of attribute. */
|
|
618
456
|
attributeTypeName?: string;
|
|
619
|
-
/** Previous value of the attribute before the change. */
|
|
620
457
|
previousAttributeValue?: string;
|
|
621
|
-
/** Value the attribute was changed to. */
|
|
622
458
|
newAttributeValue?: string;
|
|
623
|
-
/** Product that relates to attribute change. */
|
|
624
459
|
product?: CommerceActivityTrackingEventProductMetadata;
|
|
625
460
|
}
|
|
626
461
|
export interface FilterItemsByAttributeActivityTrackingEventMetadata {
|
|
627
|
-
/** Name of the type of attribute that is being filtered by. */
|
|
628
462
|
attributeTypeName?: string;
|
|
629
|
-
/** String value of the filter. Use only one of StringValue, NumericValue, BooleanValue or DateValue properties. */
|
|
630
463
|
stringValue?: string;
|
|
631
|
-
/** Numerical value of the filter. Use only one of StringValue, NumericValue, BooleanValue or DateValue properties. */
|
|
632
464
|
numericValue?: number | undefined;
|
|
633
|
-
/** Date value of the filter. Use only one of StringValue, NumericValue, BooleanValue or DateValue properties. */
|
|
634
465
|
dateValue?: Date | undefined;
|
|
635
|
-
/** Boolean (true/false) value of the filter. Use only one of StringValue, NumericValue, BooleanValue or DateValue properties. */
|
|
636
466
|
booleanValue?: boolean | undefined;
|
|
637
467
|
}
|
|
638
468
|
export interface LeadActivityTrackingEventMetadata {
|
|
@@ -641,14 +471,12 @@ export interface LeadActivityTrackingEventMetadata {
|
|
|
641
471
|
companyName?: string;
|
|
642
472
|
predictedLtv?: number | undefined;
|
|
643
473
|
predictedValue?: number | undefined;
|
|
644
|
-
/** ISO 4217 currency code */
|
|
645
474
|
currencyCode?: string;
|
|
646
475
|
}
|
|
647
476
|
export interface ContentItemActivityTrackingEventMetadata {
|
|
648
477
|
contentName?: string;
|
|
649
478
|
identifiers?: string[];
|
|
650
479
|
categoryName?: string;
|
|
651
|
-
/** ISO 4217 currency code */
|
|
652
480
|
currencyCode?: string;
|
|
653
481
|
value?: number | undefined;
|
|
654
482
|
contentType?: ECommerceContentType | undefined;
|
|
@@ -699,9 +527,7 @@ export declare enum SeekaWebhookCallType {
|
|
|
699
527
|
}
|
|
700
528
|
export interface SeekaWebhookPayload {
|
|
701
529
|
type?: SeekaWebhookCallType;
|
|
702
|
-
/** Determines if the webhook is sent as a result of a test call */
|
|
703
530
|
isTest?: boolean;
|
|
704
|
-
/** Unique identifier for the webhook request */
|
|
705
531
|
requestId?: string;
|
|
706
532
|
causationId?: string | undefined;
|
|
707
533
|
}
|
|
@@ -709,13 +535,9 @@ export interface SeekaWebhookPayloadOfSeekaAppWebhookContext extends SeekaWebhoo
|
|
|
709
535
|
context?: SeekaAppWebhookContext;
|
|
710
536
|
}
|
|
711
537
|
export interface SeekaAppWebhookContext {
|
|
712
|
-
/** ID of the organisation that installed the app */
|
|
713
538
|
organisationId?: string;
|
|
714
|
-
/** ID of the brand that installed the app */
|
|
715
539
|
organisationBrandId?: string;
|
|
716
|
-
/** Pipeline integration ID / ID of the installation of the app */
|
|
717
540
|
applicationInstallId?: string;
|
|
718
|
-
/** The client / application ID */
|
|
719
541
|
applicationId?: string;
|
|
720
542
|
}
|
|
721
543
|
export interface SeekaBrowserSdkPluginWebhookResponse {
|
|
@@ -729,7 +551,6 @@ export interface SeekaAppInstalledWebhookContent {
|
|
|
729
551
|
installationSettings?: {
|
|
730
552
|
[key: string]: any;
|
|
731
553
|
};
|
|
732
|
-
/** The permissions granted to the app install by the user that installed the app. */
|
|
733
554
|
grantedPermissions?: string[];
|
|
734
555
|
}
|
|
735
556
|
export interface SeekaAppInstalledWebhookPayload extends SeekaWebhookPayloadOfSeekaAppWebhookContext {
|
|
@@ -753,7 +574,6 @@ export interface SeekaAppInstallSettingsUpdatedWebhookContent {
|
|
|
753
574
|
installationSettings?: {
|
|
754
575
|
[key: string]: any;
|
|
755
576
|
};
|
|
756
|
-
/** The permissions granted to the app install by the user that installed the app. */
|
|
757
577
|
grantedPermissions?: string[];
|
|
758
578
|
}
|
|
759
579
|
export interface SeekaAppInstallSettingsUpdatedWebhookPayload extends SeekaWebhookPayloadOfSeekaAppWebhookContext {
|
|
@@ -763,19 +583,13 @@ export interface SeekaWebhookPayloadOfSeekaAppWebhookContextAndSeekaActivityAcce
|
|
|
763
583
|
content?: SeekaActivityAcceptedWebhookContent;
|
|
764
584
|
}
|
|
765
585
|
export interface SeekaActivityAcceptedWebhookContent {
|
|
766
|
-
/** Source of the activity */
|
|
767
586
|
source?: TrackingEventSource;
|
|
768
|
-
/** Identifiers resolved to the activity */
|
|
769
587
|
identifiers?: PersonIdentifiers;
|
|
770
|
-
/** Activity metadata */
|
|
771
588
|
activity?: WebsiteEventActivityAppsPayload;
|
|
772
|
-
/** Attribution metadata */
|
|
773
589
|
attribution?: AttributionInfo | undefined;
|
|
774
|
-
/** Seeka Person ID - Identity Graph ID */
|
|
775
590
|
personId?: string;
|
|
776
591
|
}
|
|
777
592
|
export interface WebsiteEventActivityAppsPayload extends ActivityPayloadBase {
|
|
778
|
-
/** Time activity occurred */
|
|
779
593
|
time?: Date;
|
|
780
594
|
}
|
|
781
595
|
export interface AttributionInfo {
|
|
@@ -831,9 +645,7 @@ export declare enum ConditionComparer {
|
|
|
831
645
|
export interface ActivityPipelineActivityFilterSourceItem {
|
|
832
646
|
label?: string;
|
|
833
647
|
type?: ActivityPipelineActivityFilterSourceItemType;
|
|
834
|
-
/** Criteria to match against. */
|
|
835
648
|
key?: string;
|
|
836
|
-
/** If key is null, this is the criteria to match against. */
|
|
837
649
|
textMatch?: TextMatchInfo | undefined;
|
|
838
650
|
}
|
|
839
651
|
export declare enum ActivityPipelineActivityFilterSourceItemType {
|
|
@@ -846,7 +658,6 @@ export declare enum ActivityPipelineActivityFilterSourceItemType {
|
|
|
846
658
|
}
|
|
847
659
|
export interface TextMatchInfo {
|
|
848
660
|
operator?: ConditionOperator;
|
|
849
|
-
/** Can be a JSON string, number (as string), regex expression or text depending on the operator */
|
|
850
661
|
matchValue?: string | undefined;
|
|
851
662
|
}
|
|
852
663
|
export declare enum ConditionOperator {
|
|
@@ -891,16 +702,11 @@ export interface PipelineRuleActivityModifiers {
|
|
|
891
702
|
pipelineRuleId?: string;
|
|
892
703
|
activityName?: TrackingActivityNames;
|
|
893
704
|
activityNameCustom?: string;
|
|
894
|
-
/** If provided, this will override the activity name sent to the platform.
|
|
895
|
-
This will disable normalising (eg. AddToCart -> add_to_cart) and also disable changing of the
|
|
896
|
-
activity name casing. */
|
|
897
705
|
activityNameOverride?: string;
|
|
898
706
|
id?: string;
|
|
899
707
|
}
|
|
900
708
|
export interface ConvergeEmbedTrackingWebsiteConfiguration {
|
|
901
|
-
/** SEEKA API endpoint */
|
|
902
709
|
endpoint?: string;
|
|
903
|
-
/** SEEKA API ingestion endpoint */
|
|
904
710
|
ingestEndpoint?: string;
|
|
905
711
|
isDomainIngestRulesEnabled?: boolean;
|
|
906
712
|
debug?: ConvergeEmbedTrackingWebsiteDebugConfiguration;
|
|
@@ -910,17 +716,12 @@ export interface ConvergeEmbedTrackingWebsiteConfiguration {
|
|
|
910
716
|
browserSdkVersion?: string;
|
|
911
717
|
}
|
|
912
718
|
export interface ConvergeEmbedTrackingWebsiteDebugConfiguration {
|
|
913
|
-
/** Enables debugging on browser SDK. This setting is strongly not recommended to be kept enabled in production environments. */
|
|
914
719
|
isEnabled?: boolean;
|
|
915
|
-
/** Enables diagnosis on browser SDK. This setting is strongly not recommended to be kept enabled in production environments. */
|
|
916
720
|
isDiagnosisEnabled?: boolean;
|
|
917
721
|
}
|
|
918
722
|
export interface ConvergeEmbedTrackingJsTenantDefaultsConfiguration {
|
|
919
|
-
/** ISO 4217 currency code to use as a fallback if events ingested do not carry the parameter. */
|
|
920
723
|
currencyCode?: string;
|
|
921
|
-
/** ISO 3166-2 country code to use as a fallback if events ingested do not carry the parameter. */
|
|
922
724
|
countryCode?: string;
|
|
923
|
-
/** IANA timezone ID to use as a fallback if events ingested do not carry the parameter. */
|
|
924
725
|
timezoneId?: string;
|
|
925
726
|
}
|
|
926
727
|
export interface ConvergeEmbedTrackingJsTenantAnalyticsConfigurationBase {
|
|
@@ -942,9 +743,7 @@ export interface ConvergeEmbedTrackingJsTenantAnalyticsLibrariesConfiguration {
|
|
|
942
743
|
pinterestPixel?: ConvergeEmbedTrackingJsAnalyticsLibraryActivityConfiguration;
|
|
943
744
|
}
|
|
944
745
|
export interface ConvergeEmbedTrackingJsAnalyticsLibraryActivityConfiguration {
|
|
945
|
-
/** Whether push of events to the platform is enabled. */
|
|
946
746
|
isPushEnabled?: boolean;
|
|
947
|
-
/** The library to push event to. */
|
|
948
747
|
library?: AnalyticsLibrary;
|
|
949
748
|
}
|
|
950
749
|
export interface SeekaConvergeEmbedTrackingJsAnalyticsLibraryActivityConfiguration extends ConvergeEmbedTrackingJsAnalyticsLibraryActivityConfiguration {
|
|
@@ -963,29 +762,21 @@ export declare enum AnalyticsLibrary {
|
|
|
963
762
|
GoogleAds = "googleAds"
|
|
964
763
|
}
|
|
965
764
|
export interface GoogleAnalyticsConvergeEmbedTrackingJsAnalyticsLibraryActivityConfiguration extends ConvergeEmbedTrackingJsAnalyticsLibraryActivityConfiguration {
|
|
966
|
-
/** Additional tags to be used for tracking which will be configured on every page via the gtag('config', ...) command. */
|
|
967
765
|
googleTags?: GoogleAnalyticsConvergeEmbedTrackingJsAnalyticsLibraryTagConfiguration[];
|
|
968
|
-
/** Used to augment product IDs sent to Google Analytics for use with Google Merchant Center. */
|
|
969
766
|
merchant?: GoogleAnalyticsConvergeEmbedTrackingJsAnalyticsLibraryMerchantConfiguration;
|
|
970
767
|
}
|
|
971
768
|
export interface GoogleAnalyticsConvergeEmbedTrackingJsAnalyticsLibraryTagConfiguration {
|
|
972
|
-
/** The ID of the tag. */
|
|
973
769
|
tagId?: string;
|
|
974
770
|
phoneConversions?: GoogleAnalyticsConvergeEmbedTrackingJsAnalyticsLibraryPhoneConversionConfiguration[];
|
|
975
771
|
}
|
|
976
772
|
export interface GoogleAnalyticsConvergeEmbedTrackingJsAnalyticsLibraryPhoneConversionConfiguration {
|
|
977
|
-
/** The phone number in human form as it appears on the page. This number will be replaced by Google to allow them to track inbound calls. */
|
|
978
773
|
phoneConversionNumber?: string;
|
|
979
|
-
/** The label of the conversion. */
|
|
980
774
|
conversionLabel?: string;
|
|
981
775
|
}
|
|
982
776
|
export interface GoogleAnalyticsConvergeEmbedTrackingJsAnalyticsLibraryMerchantConfiguration {
|
|
983
|
-
/** Used to augment product IDs sent to Google Analytics for use with Google Merchant Center. */
|
|
984
777
|
productItemIdPrefix?: string;
|
|
985
|
-
/** Used to augment product IDs sent to Google Analytics for use with Google Merchant Center. */
|
|
986
778
|
productItemIdBehavior?: ContentIdentificationBehavior | undefined;
|
|
987
779
|
}
|
|
988
|
-
/** Defines the behavior to identify content based on product ID, variant ID or SKU when sending events to platforms. */
|
|
989
780
|
export declare enum ContentIdentificationBehavior {
|
|
990
781
|
Default = "default",
|
|
991
782
|
Sku = "sku",
|
|
@@ -995,9 +786,7 @@ export declare enum ContentIdentificationBehavior {
|
|
|
995
786
|
VariantIdOrProductId = "variantIdOrProductId"
|
|
996
787
|
}
|
|
997
788
|
export interface FacebookPixelConvergeEmbedTrackingJsAnalyticsLibraryActivityConfiguration extends ConvergeEmbedTrackingJsAnalyticsLibraryActivityConfiguration {
|
|
998
|
-
/** Test event code as retrieved from your Facebook Events Manager for diagnosing and debugging events. */
|
|
999
789
|
testEventCode?: string;
|
|
1000
|
-
/** Publish strategy */
|
|
1001
790
|
publishMode?: ConvergeVendorDestinationPublishStrategy;
|
|
1002
791
|
}
|
|
1003
792
|
export declare enum ConvergeVendorDestinationPublishStrategy {
|
|
@@ -1007,7 +796,6 @@ export declare enum ConvergeVendorDestinationPublishStrategy {
|
|
|
1007
796
|
DeliverMaxWeightedTraitsOnlyAndDeliverEventsOnlyIfMaxWeightedTraitsPresent = "deliverMaxWeightedTraitsOnlyAndDeliverEventsOnlyIfMaxWeightedTraitsPresent"
|
|
1008
797
|
}
|
|
1009
798
|
export interface TikTokPixelConvergeEmbedTrackingJsAnalyticsLibraryActivityConfiguration extends ConvergeEmbedTrackingJsAnalyticsLibraryActivityConfiguration {
|
|
1010
|
-
/** Publish mode */
|
|
1011
799
|
publishMode?: ConvergeVendorDestinationPublishStrategy;
|
|
1012
800
|
}
|
|
1013
801
|
export interface DynamicYieldConvergeEmbedTrackingJsAnalyticsLibraryActivityConfiguration extends ConvergeEmbedTrackingJsAnalyticsLibraryActivityConfiguration {
|
|
@@ -1018,34 +806,19 @@ export interface SegmentConvergeEmbedTrackingJsAnalyticsLibraryActivityConfigura
|
|
|
1018
806
|
writeKey?: string;
|
|
1019
807
|
}
|
|
1020
808
|
export interface ConvergeEmbedTrackingJsAutoCollectionConfiguration {
|
|
1021
|
-
/** Activities or events that will be automatically collected from user behaviour. */
|
|
1022
809
|
activityNames?: TrackingActivityNames[];
|
|
1023
|
-
/** Name of query parameter that contains the search text for site searches.
|
|
1024
|
-
A KeywordSearchQueryParamName of 'q' will resolve the search text 'awesome product' from the url https://examplewebsite.com?q=awesome%20product */
|
|
1025
810
|
keywordSearchQueryParamName?: string;
|
|
1026
|
-
/** Regex to match and identify order status page URL for the site to allow for automatic order event collection. */
|
|
1027
811
|
orderSuccessUrlPathMatchRegex?: string;
|
|
1028
812
|
activityDefinitions?: ConvergeEmbedTrackingActivityDefinition[];
|
|
1029
|
-
/** The currency amount to apply to activities sent to data destinations that require a value
|
|
1030
|
-
but no value was provided in the tracking. */
|
|
1031
813
|
defaultActivityCurrencyAmount?: CurrencyAmount | undefined;
|
|
1032
|
-
/** Milliseconds to wait until initialising the interceptors that support automatic activity collection.
|
|
1033
|
-
Null or 0 will disable the delay and initialise the interceptors immediately.
|
|
1034
|
-
-1 will disable the interceptors. */
|
|
1035
814
|
interceptorStartDelayMs?: number | undefined;
|
|
1036
815
|
}
|
|
1037
816
|
export interface ConvergeEmbedTrackingActivityDefinition {
|
|
1038
817
|
triggerSettings?: ConvergeEmbedTrackingActivityDefinitionTriggerSettings;
|
|
1039
818
|
vendorSettings?: ConvergeEmbedTrackingActivityDefinitionVendorSettings;
|
|
1040
819
|
consentSettings?: ConvergeEmbedTrackingActivityDefinitionConsentSettings;
|
|
1041
|
-
/** Standard or custom activity / behavior activity name. */
|
|
1042
820
|
activityName?: TrackingActivityNames;
|
|
1043
|
-
/** Required if ActivityName is set to Custom.
|
|
1044
|
-
When setting this parameter in conjunction with setting ActivityName to a standard event name, Seeka will process the event
|
|
1045
|
-
as a standard event with the exception of conversion based data destinations being sent the event as the ActivityNameCustom value
|
|
1046
|
-
with the parameters of the standard event. */
|
|
1047
821
|
activityNameCustom?: string | undefined;
|
|
1048
|
-
/** Parameters to be sent with the activity. */
|
|
1049
822
|
activityParameters?: {
|
|
1050
823
|
[key: string]: any;
|
|
1051
824
|
};
|
|
@@ -1055,46 +828,31 @@ with the parameters of the standard event. */
|
|
|
1055
828
|
}
|
|
1056
829
|
export interface ConvergeEmbedTrackingActivityDefinitionTriggerSettings {
|
|
1057
830
|
schemaVersion?: number;
|
|
1058
|
-
/** Specify if all or one triggers should raise the activity */
|
|
1059
831
|
firingTriggersComparer?: ConditionComparer;
|
|
1060
832
|
firingTriggers?: ConvergeEmbedTrackingActivityDefinitionTrigger[] | undefined;
|
|
1061
|
-
/** Specify if all or one triggers should raise the activity */
|
|
1062
833
|
blockingTriggersComparer?: ConditionComparer;
|
|
1063
834
|
blockingTriggers?: ConvergeEmbedTrackingActivityDefinitionTrigger[] | undefined;
|
|
1064
835
|
triggerComparer?: ConditionComparer | undefined;
|
|
1065
836
|
triggers?: ConvergeEmbedTrackingActivityDefinitionTriggerV1[] | undefined;
|
|
1066
837
|
}
|
|
1067
838
|
export interface ConvergeEmbedTrackingActivityDefinitionTrigger extends ActivityPipelineActivitySourceFilter {
|
|
1068
|
-
/** The HTML elements that if captured should cause this trigger to match. */
|
|
1069
839
|
htmlElements?: ConvergeEmbedTrackingActivityDefinitionTriggerHtmlElement[] | undefined;
|
|
1070
840
|
}
|
|
1071
841
|
export interface ConvergeEmbedTrackingActivityDefinitionTriggerHtmlElement {
|
|
1072
842
|
locator?: HtmlElementLocator;
|
|
1073
|
-
/** The HTML element event types that if captured on the locator HTML element should cause this trigger to match. https://developer.mozilla.org/en-US/docs/Web/Events. */
|
|
1074
843
|
eventTypes?: string[];
|
|
1075
844
|
}
|
|
1076
845
|
export interface HtmlElementLocator {
|
|
1077
|
-
/** List of HTML element class names to match. */
|
|
1078
846
|
classNames?: string[] | undefined;
|
|
1079
|
-
/** HTML elements type name to match. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element for list.
|
|
1080
|
-
button */
|
|
1081
847
|
elementTypes?: string[] | undefined;
|
|
1082
|
-
/** ID of the HTML element to match. */
|
|
1083
848
|
elementId?: string | undefined;
|
|
1084
|
-
/** HTML element type name to match. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element for list.
|
|
1085
|
-
button */
|
|
1086
849
|
elementType?: string;
|
|
1087
|
-
/** Inner text of the HTML element to match. */
|
|
1088
850
|
innerText?: string | undefined;
|
|
1089
|
-
/** Inner text of the HTML element to match. */
|
|
1090
851
|
innerTextMatch?: TextMatchInfo | undefined;
|
|
1091
|
-
/** ID of the HTML element to match. */
|
|
1092
852
|
elementIdMatch?: TextMatchInfo | undefined;
|
|
1093
|
-
/** URL of the anchor, button etc. HTML element to match. */
|
|
1094
853
|
linkUrlMatch?: TextMatchInfo | undefined;
|
|
1095
854
|
}
|
|
1096
855
|
export interface ConvergeEmbedTrackingActivityDefinitionTriggerV1 {
|
|
1097
|
-
/** Regex to match a URL path to trigger the activity. */
|
|
1098
856
|
urlPathMatchRegex?: string;
|
|
1099
857
|
htmlElement?: ConvergeEmbedTrackingActivityDefinitionTriggerHtmlElement;
|
|
1100
858
|
}
|
|
@@ -1105,24 +863,16 @@ export interface ConvergeEmbedTrackingActivityDefinitionGoogleTriggerSettings {
|
|
|
1105
863
|
googleAdsConversionTriggers?: GoogleAdsConversionTriggerData[];
|
|
1106
864
|
}
|
|
1107
865
|
export interface GoogleAdsConversionTriggerData {
|
|
1108
|
-
/** Conversion ID */
|
|
1109
866
|
conversionId?: string;
|
|
1110
|
-
/** Conversion label */
|
|
1111
867
|
conversionLabel?: string;
|
|
1112
868
|
}
|
|
1113
869
|
export interface ConvergeEmbedTrackingActivityDefinitionConsentSettings {
|
|
1114
|
-
/** Grant for sending data to 3rd party analytics and marketing platforms. */
|
|
1115
870
|
analytics?: ConvergeEmbedTrackingActivityDefinitionConsentTypeSettings;
|
|
1116
|
-
/** Grant for marketing via re-marketing campaigns, EDMs etc. */
|
|
1117
871
|
marketing?: ConvergeEmbedTrackingActivityDefinitionMarketingConsentSettings;
|
|
1118
|
-
/** Grant for enrolling and participating in loyalty programs. */
|
|
1119
872
|
loyalty?: ConvergeEmbedTrackingActivityDefinitionConsentTypeSettings;
|
|
1120
873
|
}
|
|
1121
874
|
export interface ConvergeEmbedTrackingActivityDefinitionConsentTypeSettings {
|
|
1122
|
-
/** The name of the source that provided the grant information. Set to the source platform like Shopify, Wordpress or your custom integration client name.
|
|
1123
|
-
If this is left empty then the source of the data will be assumed. Eg for an event fired on a website the source name will be set to the domain name of the website. */
|
|
1124
875
|
consentSourceName?: string | undefined;
|
|
1125
|
-
/** If the consent has been granted or not granted. */
|
|
1126
876
|
consentGranted?: boolean | undefined;
|
|
1127
877
|
}
|
|
1128
878
|
export interface ConvergeEmbedTrackingActivityDefinitionMarketingConsentSettings {
|
|
@@ -1131,32 +881,23 @@ export interface ConvergeEmbedTrackingActivityDefinitionMarketingConsentSettings
|
|
|
1131
881
|
}
|
|
1132
882
|
export interface CurrencyAmount {
|
|
1133
883
|
amount?: number;
|
|
1134
|
-
/** ISO 4217 currency code */
|
|
1135
884
|
currencyCode?: string;
|
|
1136
|
-
/** Currency symbol */
|
|
1137
885
|
currencySymbol?: string;
|
|
1138
886
|
}
|
|
1139
887
|
export interface ConvergeEmbedTrackingJsIdentityConfiguration {
|
|
1140
|
-
/** The timeout to inform the time to live for a user session. */
|
|
1141
888
|
userSessionTimeoutSeconds?: number;
|
|
1142
889
|
}
|
|
1143
890
|
export interface ConvergeEmbedTrackingJsTenantAnalyticsCrossDomainConfiguration {
|
|
1144
891
|
rules?: CrossDomainTrackingDomainRule[] | undefined;
|
|
1145
892
|
}
|
|
1146
893
|
export interface CrossDomainTrackingDomainRule {
|
|
1147
|
-
/** The hostname to match for the source hostname.
|
|
1148
|
-
If the source hostname matches the current URL, links matching the destination link will be modified. */
|
|
1149
894
|
sourceHostname?: TextMatchInfo;
|
|
1150
|
-
/** The link to match.
|
|
1151
|
-
If the source hostname matches the current URL, links matching the destination link will be modified. */
|
|
1152
895
|
destinationLink: TextMatchInfo;
|
|
1153
896
|
identifiers?: CrossDomainTrackingDomainRuleIdentifierSettings;
|
|
1154
897
|
utm?: CrossDomainTrackingDomainRuleUtmSettings;
|
|
1155
898
|
id?: string;
|
|
1156
899
|
}
|
|
1157
900
|
export interface CrossDomainTrackingDomainRuleIdentifierSettings {
|
|
1158
|
-
/** If disabled, Seeka will not append Seeka profile ID and ad platform identifiers
|
|
1159
|
-
onto the destination URL. */
|
|
1160
901
|
isIdentifierPassthroughDisabled?: boolean;
|
|
1161
902
|
}
|
|
1162
903
|
export interface CrossDomainTrackingDomainRuleUtmSettings {
|
|
@@ -1168,44 +909,24 @@ export declare enum CrossDomainTrackingUtmBehavior {
|
|
|
1168
909
|
UrlPassthrough = "urlPassthrough"
|
|
1169
910
|
}
|
|
1170
911
|
export interface ConvergeEmbedTrackingWebsiteProcessingConfiguration {
|
|
1171
|
-
/** Disable browser events from being sent from the browser to platforms and SEEKA API directly. */
|
|
1172
912
|
isBrowserEventsDisabled?: boolean;
|
|
1173
|
-
/** Disable events from being ingested by SEEKA API. This will also disable the delivery of events to platforms. */
|
|
1174
913
|
isServerEventsDisabled?: boolean;
|
|
1175
|
-
/** Disable identity resolution on the browser SDK. */
|
|
1176
914
|
isIdentityDisabled?: boolean;
|
|
1177
|
-
/** Controls identity resolution delay. */
|
|
1178
915
|
publishToVendorsTimeoutSeconds?: number | undefined;
|
|
1179
|
-
/** Amount of time to retain untouched anonymous/partial identities for until purging. */
|
|
1180
916
|
anonymousIdentityRetentionPeriod?: string | undefined;
|
|
1181
|
-
/** Amount of time to retain untouched enriched/partial identities for until purging. */
|
|
1182
917
|
enrichedIdentityRetentionPeriod?: string | undefined;
|
|
1183
|
-
/** Defines the behavior to identify content based on product ID, variant ID or SKU when sending events to platforms. */
|
|
1184
918
|
contentIdentificationBehavior?: ContentIdentificationBehavior | undefined;
|
|
1185
|
-
/** JavaScript object reference that all Converge.track and Converge.identity api calls will be mediated to.
|
|
1186
|
-
Can be used to forward all tracking calls to Shopify.analytics.publish('seeka_mediate', { api: 'track', method: TrackingActivityNames.AddToCart, params: [{ productIdentifier: '123' }, commonProps] }) by setting this to Shopify.analytics.publish. */
|
|
1187
919
|
mediateBrowserMethodsToWindowReference?: string;
|
|
1188
|
-
/** Consent management settings. */
|
|
1189
920
|
consent?: ConsentSettings | undefined;
|
|
1190
|
-
/** Privacy data control settings */
|
|
1191
921
|
privacyDataControl?: PrivacyDataControlSettings | undefined;
|
|
1192
922
|
}
|
|
1193
923
|
export interface ConsentSettings {
|
|
1194
|
-
/** Settings for regional consent management. */
|
|
1195
924
|
regionalConsent?: RegionalConsentSettings[] | undefined;
|
|
1196
|
-
/** Settings for consent management platforms. */
|
|
1197
925
|
consentManagementPlatform?: ConsentManagementPlatformSettings | undefined;
|
|
1198
|
-
/** If using a consent management platform, this should be set to true to disable Seeka's consent management. */
|
|
1199
926
|
disableConsentManagement?: boolean;
|
|
1200
927
|
}
|
|
1201
928
|
export interface RegionalConsentSettings {
|
|
1202
|
-
/** ISO-3166-1 alpha-2 country code
|
|
1203
|
-
See https://en.wikipedia.org/wiki/ISO_3166-2 for list.
|
|
1204
|
-
Should be null for "default" / "fallback" settings. */
|
|
1205
929
|
countryCode?: string | undefined;
|
|
1206
|
-
/** ISO-3166-1 alpha-2 subdivision code
|
|
1207
|
-
See https://en.wikipedia.org/wiki/ISO_3166-2 for list.
|
|
1208
|
-
/// Should be null for "default" region or for targeting a whole country when used in conjunction with CountryCode. */
|
|
1209
930
|
subdivisionCode?: string | undefined;
|
|
1210
931
|
configuration?: ConsentConfiguration;
|
|
1211
932
|
}
|
|
@@ -1230,10 +951,7 @@ export interface OneTrustConsentManagementPlatformSettings {
|
|
|
1230
951
|
purposeMappings?: OneTrustConsentManagementPurposeMapping[];
|
|
1231
952
|
}
|
|
1232
953
|
export interface OneTrustConsentManagementPurposeMapping {
|
|
1233
|
-
/** The IAB purpose ID that maps to the OneTrust categories. */
|
|
1234
954
|
iabPurposeId?: IabPrivacyConsentPurposeId;
|
|
1235
|
-
/** OneTrust category IDs that map to the IAB purpose.
|
|
1236
|
-
C0001 */
|
|
1237
955
|
oneTrustCategoryIds?: string[];
|
|
1238
956
|
matchType?: ConsentMappingMatchType;
|
|
1239
957
|
}
|
|
@@ -1255,9 +973,7 @@ export declare enum PrivacyDataControlMode {
|
|
|
1255
973
|
Implicit = "implicit"
|
|
1256
974
|
}
|
|
1257
975
|
export interface ConvergeTrackingConfiguration {
|
|
1258
|
-
/** SEEKA API endpoint */
|
|
1259
976
|
endpoint?: string;
|
|
1260
|
-
/** SEEKA API ingestion endpoint */
|
|
1261
977
|
ingestEndpoint?: string;
|
|
1262
978
|
isDomainIngestRulesEnabled?: boolean;
|
|
1263
979
|
debug?: ConvergeEmbedTrackingWebsiteDebugConfiguration;
|
|
@@ -1286,15 +1002,11 @@ export declare class ApiException extends Error {
|
|
|
1286
1002
|
static isApiException(obj: any): obj is ApiException;
|
|
1287
1003
|
}
|
|
1288
1004
|
export interface AppClientRuntimeInfo {
|
|
1289
|
-
/** Client version used to identify the implementation of the SDK */
|
|
1290
1005
|
ver: string;
|
|
1291
|
-
/** Name or type used to identify the implementation of the SDK. This could be specified as 'backend' for a backend integration with the SDK or 'website' for integrations placed on a website. */
|
|
1292
1006
|
type: string;
|
|
1293
1007
|
}
|
|
1294
1008
|
export interface AppRuntimeInfo {
|
|
1295
|
-
/** Version of the package or library being used to interact with the SDK */
|
|
1296
1009
|
ver: string;
|
|
1297
|
-
/** Type of the package or library being used to interact with the SDK */
|
|
1298
1010
|
type: string;
|
|
1299
1011
|
client: AppClientRuntimeInfo;
|
|
1300
1012
|
}
|