@capibox/bridge-nextjs-client 0.0.49 → 0.0.55
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/README.md +1 -1
- package/dist/index.d.mts +247 -1445
- package/dist/index.d.ts +247 -1445
- package/dist/index.js +20 -846
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -845
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as next_server from 'next/server';
|
|
2
1
|
import * as next_navigation from 'next/navigation';
|
|
2
|
+
export { server } from '@capibox/bridge-server';
|
|
3
3
|
|
|
4
4
|
type SdkRemoteFunnel = {
|
|
5
5
|
checkout: string;
|
|
@@ -28,714 +28,85 @@ type ParamsLandingPageResponse = {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/** @example Documentation Page */
|
|
35
|
-
title: string;
|
|
36
|
-
/** @example https://example.com/page */
|
|
37
|
-
url: string;
|
|
38
|
-
/** @example true */
|
|
39
|
-
active?: boolean;
|
|
40
|
-
/** @example en */
|
|
41
|
-
language: string;
|
|
42
|
-
/** @example Google Drive */
|
|
43
|
-
source: string;
|
|
44
|
-
/** @example Project Alpha */
|
|
45
|
-
project: string;
|
|
46
|
-
};
|
|
47
|
-
LinkResponseDto: {
|
|
48
|
-
/** @description Link ID */
|
|
49
|
-
id: number;
|
|
50
|
-
/** @description Link title */
|
|
51
|
-
title: string;
|
|
52
|
-
/** @description Target URL */
|
|
53
|
-
url: string;
|
|
54
|
-
/** @description Whether the link is active */
|
|
55
|
-
active: boolean;
|
|
56
|
-
/** @description Language of the account */
|
|
57
|
-
language: string;
|
|
58
|
-
/** @description Source of the link (e.g., google, facebook) */
|
|
59
|
-
source: string;
|
|
60
|
-
/** @description Project this link belongs to */
|
|
61
|
-
project: string;
|
|
62
|
-
/** @description Spreadsheet URL if applicable */
|
|
63
|
-
spreadsheet_url?: string;
|
|
64
|
-
};
|
|
65
|
-
UpdateLinkDto: {
|
|
66
|
-
/** @example Documentation Page */
|
|
67
|
-
title?: string;
|
|
68
|
-
/** @example https://example.com/page */
|
|
69
|
-
url?: string;
|
|
70
|
-
/** @example true */
|
|
71
|
-
active?: boolean;
|
|
72
|
-
/** @example en */
|
|
73
|
-
language?: string;
|
|
74
|
-
/** @example Google Drive */
|
|
75
|
-
source?: string;
|
|
76
|
-
/** @example Project Alpha */
|
|
77
|
-
project?: string;
|
|
78
|
-
};
|
|
79
|
-
CreateLanguageRuleDto: {
|
|
80
|
-
/** @example 1 */
|
|
81
|
-
accountId: number;
|
|
82
|
-
/** @example Greeting Rule */
|
|
83
|
-
title: string;
|
|
84
|
-
/** @example en */
|
|
85
|
-
language: string;
|
|
86
|
-
/**
|
|
87
|
-
* @example contains
|
|
88
|
-
* @enum {string}
|
|
89
|
-
*/
|
|
90
|
-
condition_type: "contains" | "equals" | "not_contains";
|
|
91
|
-
/** @example hello */
|
|
92
|
-
condition_value: string;
|
|
93
|
-
/** @example 1 */
|
|
94
|
-
sort?: number;
|
|
95
|
-
};
|
|
96
|
-
LanguageRuleAccountDto: {
|
|
97
|
-
/** @description Account ID (Link ID) */
|
|
98
|
-
id: number;
|
|
99
|
-
/** @description Account source */
|
|
100
|
-
source: string;
|
|
101
|
-
/** @description Account language */
|
|
102
|
-
language: string;
|
|
103
|
-
};
|
|
104
|
-
LanguageRuleResponseDto: {
|
|
105
|
-
/** @description Rule ID */
|
|
106
|
-
id: number;
|
|
107
|
-
/** @description Condition type (contains, equals) */
|
|
108
|
-
condition_type: string;
|
|
109
|
-
/** @description Condition value (string to match against campaign name) */
|
|
110
|
-
condition_value: string;
|
|
111
|
-
/** @description Language code to assign if matched */
|
|
112
|
-
language: string;
|
|
113
|
-
/** @description Sort order */
|
|
114
|
-
sort: number;
|
|
115
|
-
/** @description Associated account (Link) */
|
|
116
|
-
account?: components["schemas"]["LanguageRuleAccountDto"];
|
|
117
|
-
};
|
|
118
|
-
UpdateLanguageRuleDto: {
|
|
119
|
-
/** @example 1 */
|
|
120
|
-
accountId?: number;
|
|
121
|
-
/** @example Greeting Rule */
|
|
122
|
-
title?: string;
|
|
123
|
-
/** @example en */
|
|
124
|
-
language?: string;
|
|
125
|
-
/**
|
|
126
|
-
* @example contains
|
|
127
|
-
* @enum {string}
|
|
128
|
-
*/
|
|
129
|
-
condition_type?: "contains" | "equals" | "not_contains";
|
|
130
|
-
/** @example hello */
|
|
131
|
-
condition_value?: string;
|
|
132
|
-
/** @example 1 */
|
|
133
|
-
sort?: number;
|
|
134
|
-
};
|
|
135
|
-
AdSpendAccountDto: {
|
|
136
|
-
/** @description Account (Link) ID */
|
|
137
|
-
id: number;
|
|
138
|
-
/** @description Account source */
|
|
139
|
-
source: string;
|
|
140
|
-
/** @description Account language */
|
|
141
|
-
language: string;
|
|
142
|
-
};
|
|
143
|
-
AdSpendResponseDto: {
|
|
144
|
-
/** @description AdSpend record ID */
|
|
145
|
-
id: number;
|
|
146
|
-
/** @description Spend date (YYYY-MM-DD) */
|
|
147
|
-
date: string;
|
|
148
|
-
/** @description Country (mapped from country code) */
|
|
149
|
-
country: string;
|
|
150
|
-
/** @description Language code applied */
|
|
151
|
-
language: string;
|
|
152
|
-
/** @description Spend amount in account currency */
|
|
153
|
-
spend: number;
|
|
154
|
-
/** @description Associated account (Link) */
|
|
155
|
-
account?: components["schemas"]["AdSpendAccountDto"];
|
|
156
|
-
};
|
|
157
|
-
AdSpendPaginatedResponseDto: {
|
|
158
|
-
data: components["schemas"]["AdSpendResponseDto"][];
|
|
159
|
-
/** @example 100 */
|
|
160
|
-
total: number;
|
|
161
|
-
/** @example 1 */
|
|
162
|
-
page: number;
|
|
163
|
-
/** @example 10 */
|
|
164
|
-
limit: number;
|
|
165
|
-
/** @example 10 */
|
|
166
|
-
totalPages: number;
|
|
167
|
-
};
|
|
168
|
-
AdSpendDataForErpDto: {
|
|
169
|
-
/**
|
|
170
|
-
* @description Nested object with three levels of string keys and number values
|
|
171
|
-
* @example {
|
|
172
|
-
* "account1": {
|
|
173
|
-
* "campaign1": {
|
|
174
|
-
* "metric1": 100,
|
|
175
|
-
* "metric2": 200
|
|
176
|
-
* }
|
|
177
|
-
* }
|
|
178
|
-
* }
|
|
179
|
-
*/
|
|
180
|
-
data: Record<string, never>;
|
|
181
|
-
};
|
|
182
|
-
TeamResponseDto: {
|
|
183
|
-
/**
|
|
184
|
-
* @description The unique identifier of the team
|
|
185
|
-
* @example 1
|
|
186
|
-
*/
|
|
187
|
-
id: number;
|
|
188
|
-
/**
|
|
189
|
-
* @description The title of the team
|
|
190
|
-
* @example Development Team
|
|
191
|
-
*/
|
|
192
|
-
title: string;
|
|
193
|
-
/**
|
|
194
|
-
* @description The access for element
|
|
195
|
-
* @example [
|
|
196
|
-
* "xx@netzet.com",
|
|
197
|
-
* "xx2@netzet.com"
|
|
198
|
-
* ]
|
|
199
|
-
*/
|
|
200
|
-
access?: string[];
|
|
201
|
-
};
|
|
202
|
-
ProjectGroupResponseDto: {
|
|
203
|
-
/**
|
|
204
|
-
* @description The unique identifier of the project group
|
|
205
|
-
* @example 1
|
|
206
|
-
*/
|
|
207
|
-
id: number;
|
|
208
|
-
/**
|
|
209
|
-
* @description The title of the project group
|
|
210
|
-
* @example Frontend Projects
|
|
211
|
-
*/
|
|
212
|
-
title: string;
|
|
213
|
-
/**
|
|
214
|
-
* @description The ID of the team this project group belongs to
|
|
215
|
-
* @example 1
|
|
216
|
-
*/
|
|
217
|
-
teamId: number;
|
|
218
|
-
/** @description The team this project group belongs to */
|
|
219
|
-
team: components["schemas"]["TeamResponseDto"];
|
|
220
|
-
/**
|
|
221
|
-
* @description The access for element
|
|
222
|
-
* @example [
|
|
223
|
-
* "xx@netzet.com",
|
|
224
|
-
* "xx2@netzet.com"
|
|
225
|
-
* ]
|
|
226
|
-
*/
|
|
227
|
-
access?: string[];
|
|
228
|
-
};
|
|
229
|
-
ProjectResponseDto: {
|
|
230
|
-
/**
|
|
231
|
-
* @description The unique identifier of the project
|
|
232
|
-
* @example 1
|
|
233
|
-
*/
|
|
234
|
-
id: number;
|
|
235
|
-
/**
|
|
236
|
-
* @description The title of the project
|
|
237
|
-
* @example My Awesome Project
|
|
238
|
-
*/
|
|
239
|
-
title: string;
|
|
240
|
-
/**
|
|
241
|
-
* @description The unique UUID of the project used for authentication
|
|
242
|
-
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
243
|
-
*/
|
|
31
|
+
declare const browser: {
|
|
32
|
+
capi: {
|
|
33
|
+
facebook: (data: {
|
|
244
34
|
uuid: string;
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
* @description The slug of the project
|
|
267
|
-
* @example my-awesome-project
|
|
268
|
-
*/
|
|
269
|
-
slug: string;
|
|
270
|
-
groupId?: number;
|
|
271
|
-
teamId?: number;
|
|
272
|
-
team?: components["schemas"]["TeamResponseDto"];
|
|
273
|
-
group?: components["schemas"]["ProjectGroupResponseDto"];
|
|
274
|
-
/**
|
|
275
|
-
* @description The access for element
|
|
276
|
-
* @example [
|
|
277
|
-
* "xx@netzet.com",
|
|
278
|
-
* "xx2@netzet.com"
|
|
279
|
-
* ]
|
|
280
|
-
*/
|
|
281
|
-
access?: string[];
|
|
282
|
-
};
|
|
283
|
-
CreateProjectDto: {
|
|
284
|
-
/**
|
|
285
|
-
* @description The title of the project
|
|
286
|
-
* @example My Awesome Project
|
|
287
|
-
*/
|
|
288
|
-
title: string;
|
|
289
|
-
/**
|
|
290
|
-
* @description The URL of the project
|
|
291
|
-
* @example https://myproject.example.com
|
|
292
|
-
*/
|
|
293
|
-
url: string;
|
|
294
|
-
/**
|
|
295
|
-
* @description The support email address for the project
|
|
296
|
-
* @example support@example.com
|
|
297
|
-
*/
|
|
298
|
-
support_email?: string;
|
|
299
|
-
/**
|
|
300
|
-
* @description Project language
|
|
301
|
-
* @example en
|
|
302
|
-
*/
|
|
303
|
-
language?: string;
|
|
304
|
-
/**
|
|
305
|
-
* @description The slug of the project
|
|
306
|
-
* @example my-awesome-project
|
|
307
|
-
*/
|
|
308
|
-
slug: string;
|
|
309
|
-
groupId?: number;
|
|
310
|
-
teamId?: number;
|
|
311
|
-
/**
|
|
312
|
-
* @description The access for element
|
|
313
|
-
* @example [
|
|
314
|
-
* "xx@netzet.com",
|
|
315
|
-
* "xx2@netzet.com"
|
|
316
|
-
* ]
|
|
317
|
-
*/
|
|
318
|
-
access?: string[];
|
|
319
|
-
};
|
|
320
|
-
UpdateProjectDto: {
|
|
321
|
-
/**
|
|
322
|
-
* @description The title of the project
|
|
323
|
-
* @example My Awesome Project
|
|
324
|
-
*/
|
|
325
|
-
title?: string;
|
|
326
|
-
/**
|
|
327
|
-
* @description The URL of the project
|
|
328
|
-
* @example https://myproject.example.com
|
|
329
|
-
*/
|
|
330
|
-
url?: string;
|
|
331
|
-
/**
|
|
332
|
-
* @description The support email address for the project
|
|
333
|
-
* @example support@example.com
|
|
334
|
-
*/
|
|
335
|
-
support_email?: string;
|
|
336
|
-
/**
|
|
337
|
-
* @description Project language
|
|
338
|
-
* @example en
|
|
339
|
-
*/
|
|
340
|
-
language?: string;
|
|
341
|
-
/**
|
|
342
|
-
* @description The slug of the project
|
|
343
|
-
* @example my-awesome-project
|
|
344
|
-
*/
|
|
345
|
-
slug?: string;
|
|
346
|
-
groupId?: number;
|
|
347
|
-
teamId?: number;
|
|
348
|
-
/**
|
|
349
|
-
* @description The access for element
|
|
350
|
-
* @example [
|
|
351
|
-
* "xx@netzet.com",
|
|
352
|
-
* "xx2@netzet.com"
|
|
353
|
-
* ]
|
|
354
|
-
*/
|
|
355
|
-
access?: string[];
|
|
356
|
-
};
|
|
357
|
-
CreateTeamDto: {
|
|
358
|
-
/**
|
|
359
|
-
* @description The title of the team
|
|
360
|
-
* @example Development Team
|
|
361
|
-
*/
|
|
362
|
-
title: string;
|
|
363
|
-
/**
|
|
364
|
-
* @description The access for element
|
|
365
|
-
* @example [
|
|
366
|
-
* "xx@netzet.com",
|
|
367
|
-
* "xx2@netzet.com"
|
|
368
|
-
* ]
|
|
369
|
-
*/
|
|
370
|
-
access?: string[];
|
|
371
|
-
};
|
|
372
|
-
UpdateTeamDto: {
|
|
373
|
-
/**
|
|
374
|
-
* @description The title of the team
|
|
375
|
-
* @example Development Team
|
|
376
|
-
*/
|
|
377
|
-
title?: string;
|
|
378
|
-
/**
|
|
379
|
-
* @description The access for element
|
|
380
|
-
* @example [
|
|
381
|
-
* "xx@netzet.com",
|
|
382
|
-
* "xx2@netzet.com"
|
|
383
|
-
* ]
|
|
384
|
-
*/
|
|
385
|
-
access?: string[];
|
|
386
|
-
};
|
|
387
|
-
CreateProjectGroupDto: {
|
|
388
|
-
/**
|
|
389
|
-
* @description The title of the project group
|
|
390
|
-
* @example Frontend Projects
|
|
391
|
-
*/
|
|
392
|
-
title: string;
|
|
393
|
-
/**
|
|
394
|
-
* @description The ID of the team this project group belongs to
|
|
395
|
-
* @example 1
|
|
396
|
-
*/
|
|
397
|
-
teamId: number;
|
|
398
|
-
/**
|
|
399
|
-
* @description The access for element
|
|
400
|
-
* @example [
|
|
401
|
-
* "xx@netzet.com",
|
|
402
|
-
* "xx2@netzet.com"
|
|
403
|
-
* ]
|
|
404
|
-
*/
|
|
405
|
-
access?: string[];
|
|
406
|
-
};
|
|
407
|
-
UpdateProjectGroupDto: {
|
|
408
|
-
/**
|
|
409
|
-
* @description The title of the project group
|
|
410
|
-
* @example Frontend Projects
|
|
411
|
-
*/
|
|
412
|
-
title?: string;
|
|
413
|
-
/**
|
|
414
|
-
* @description The ID of the team this project group belongs to
|
|
415
|
-
* @example 1
|
|
416
|
-
*/
|
|
417
|
-
teamId?: number;
|
|
418
|
-
/**
|
|
419
|
-
* @description The access for element
|
|
420
|
-
* @example [
|
|
421
|
-
* "xx@netzet.com",
|
|
422
|
-
* "xx2@netzet.com"
|
|
423
|
-
* ]
|
|
424
|
-
*/
|
|
425
|
-
access?: string[];
|
|
426
|
-
};
|
|
427
|
-
IntegrationResponseDto: {
|
|
428
|
-
/**
|
|
429
|
-
* @description The unique identifier of the integration
|
|
430
|
-
* @example 1
|
|
431
|
-
*/
|
|
432
|
-
id: number;
|
|
433
|
-
/**
|
|
434
|
-
* @description The title of the integration
|
|
435
|
-
* @example My Facebook Integration
|
|
436
|
-
*/
|
|
437
|
-
title: string;
|
|
438
|
-
/**
|
|
439
|
-
* @description The ID of the project this integration belongs to
|
|
440
|
-
* @example 1
|
|
441
|
-
*/
|
|
442
|
-
projectId: number;
|
|
443
|
-
/**
|
|
444
|
-
* @description The type of integration
|
|
445
|
-
* @example facebook
|
|
446
|
-
*/
|
|
447
|
-
type: string;
|
|
448
|
-
/**
|
|
449
|
-
* @description The URL for the integration
|
|
450
|
-
* @example https://example.com/api
|
|
451
|
-
*/
|
|
452
|
-
url: string;
|
|
453
|
-
/**
|
|
454
|
-
* @description Additional options for the integration
|
|
455
|
-
* @example {
|
|
456
|
-
* "apiKey": "abc123",
|
|
457
|
-
* "enabled": true
|
|
458
|
-
* }
|
|
459
|
-
*/
|
|
460
|
-
options?: Record<string, never>;
|
|
461
|
-
/** @description The project this integration belongs to */
|
|
462
|
-
project?: components["schemas"]["ProjectResponseDto"];
|
|
463
|
-
/**
|
|
464
|
-
* @description The access for element
|
|
465
|
-
* @example [
|
|
466
|
-
* "xx@netzet.com",
|
|
467
|
-
* "xx2@netzet.com"
|
|
468
|
-
* ]
|
|
469
|
-
*/
|
|
470
|
-
access?: string[];
|
|
471
|
-
};
|
|
472
|
-
CreateIntegrationDto: {
|
|
473
|
-
/**
|
|
474
|
-
* @description The type of integration
|
|
475
|
-
* @example facebook
|
|
476
|
-
*/
|
|
477
|
-
type: string;
|
|
478
|
-
/**
|
|
479
|
-
* @description The title of the integration
|
|
480
|
-
* @example My Facebook Integration
|
|
481
|
-
*/
|
|
482
|
-
title: string;
|
|
483
|
-
/**
|
|
484
|
-
* @description The ID of the project this integration belongs to
|
|
485
|
-
* @example 1
|
|
486
|
-
*/
|
|
487
|
-
projectId: number;
|
|
488
|
-
/**
|
|
489
|
-
* @description Additional options for the integration
|
|
490
|
-
* @example {
|
|
491
|
-
* "apiKey": "abc123",
|
|
492
|
-
* "enabled": true
|
|
493
|
-
* }
|
|
494
|
-
*/
|
|
495
|
-
options?: Record<string, never>;
|
|
496
|
-
/**
|
|
497
|
-
* @description The URL for the integration
|
|
498
|
-
* @example https://example.com/api
|
|
499
|
-
*/
|
|
500
|
-
url?: string;
|
|
501
|
-
/**
|
|
502
|
-
* @description The access for element
|
|
503
|
-
* @example [
|
|
504
|
-
* "xx@netzet.com",
|
|
505
|
-
* "xx2@netzet.com"
|
|
506
|
-
* ]
|
|
507
|
-
*/
|
|
508
|
-
access?: string[];
|
|
509
|
-
};
|
|
510
|
-
UpdateIntegrationDto: {
|
|
511
|
-
/**
|
|
512
|
-
* @description The title of the integration
|
|
513
|
-
* @example Updated Facebook Integration
|
|
514
|
-
*/
|
|
515
|
-
title?: string;
|
|
516
|
-
/**
|
|
517
|
-
* @description The ID of the project this integration belongs to
|
|
518
|
-
* @example 1
|
|
519
|
-
*/
|
|
520
|
-
projectId?: number;
|
|
521
|
-
/**
|
|
522
|
-
* @description The type of integration
|
|
523
|
-
* @example facebook
|
|
524
|
-
*/
|
|
525
|
-
type?: string;
|
|
526
|
-
/**
|
|
527
|
-
* @description The URL for the integration
|
|
528
|
-
* @example https://example.com/api
|
|
529
|
-
*/
|
|
530
|
-
url?: string;
|
|
531
|
-
/**
|
|
532
|
-
* @description Description of the integration
|
|
533
|
-
* @example This is a Facebook integration for our project
|
|
534
|
-
*/
|
|
535
|
-
_description?: string;
|
|
536
|
-
/**
|
|
537
|
-
* @description Additional options for the integration
|
|
538
|
-
* @example {
|
|
539
|
-
* "apiKey": "abc123",
|
|
540
|
-
* "enabled": true
|
|
541
|
-
* }
|
|
542
|
-
*/
|
|
543
|
-
options?: Record<string, never>;
|
|
544
|
-
/**
|
|
545
|
-
* @description The access for element
|
|
546
|
-
* @example [
|
|
547
|
-
* "xx@netzet.com",
|
|
548
|
-
* "xx2@netzet.com"
|
|
549
|
-
* ]
|
|
550
|
-
*/
|
|
551
|
-
access?: string[];
|
|
552
|
-
};
|
|
553
|
-
FunnelTemplatesEnumDto: {
|
|
554
|
-
/**
|
|
555
|
-
* @description Available templates for the home page
|
|
556
|
-
* @example [
|
|
557
|
-
* "Default"
|
|
558
|
-
* ]
|
|
559
|
-
*/
|
|
560
|
-
homePageTemplate: string[];
|
|
561
|
-
/**
|
|
562
|
-
* @description Available templates for the quiz page
|
|
563
|
-
* @example [
|
|
564
|
-
* "Default"
|
|
565
|
-
* ]
|
|
566
|
-
*/
|
|
567
|
-
quizPageTemplate: string[];
|
|
568
|
-
/**
|
|
569
|
-
* @description Available templates for the result page
|
|
570
|
-
* @example [
|
|
571
|
-
* "Default"
|
|
572
|
-
* ]
|
|
573
|
-
*/
|
|
574
|
-
resultPageTemplate: string[];
|
|
575
|
-
/**
|
|
576
|
-
* @description Available templates for the email page
|
|
577
|
-
* @example [
|
|
578
|
-
* "Default"
|
|
579
|
-
* ]
|
|
580
|
-
*/
|
|
581
|
-
emailPageTemplate: string[];
|
|
582
|
-
/**
|
|
583
|
-
* @description Available templates for the checkout page
|
|
584
|
-
* @example [
|
|
585
|
-
* "Default"
|
|
586
|
-
* ]
|
|
587
|
-
*/
|
|
588
|
-
checkoutPageTemplate: string[];
|
|
589
|
-
/**
|
|
590
|
-
* @description Available templates for the upsell page
|
|
591
|
-
* @example [
|
|
592
|
-
* "Default"
|
|
593
|
-
* ]
|
|
594
|
-
*/
|
|
595
|
-
upsellPageTemplate: string[];
|
|
596
|
-
/**
|
|
597
|
-
* @description Available templates for the payment window
|
|
598
|
-
* @example [
|
|
599
|
-
* "Default"
|
|
600
|
-
* ]
|
|
601
|
-
*/
|
|
602
|
-
paymentWindowTemplate: string[];
|
|
603
|
-
};
|
|
604
|
-
FunnelTemplatesEnumResponseDto: {
|
|
605
|
-
/** @description Indicates if the request was successful */
|
|
606
|
-
success: boolean;
|
|
607
|
-
data: components["schemas"]["FunnelTemplatesEnumDto"];
|
|
608
|
-
};
|
|
609
|
-
CreateFunnelDtoBridge: {
|
|
610
|
-
angle: string;
|
|
611
|
-
version: string;
|
|
612
|
-
note?: string;
|
|
613
|
-
home_page?: string;
|
|
614
|
-
quiz_page?: string;
|
|
615
|
-
results_page?: string;
|
|
616
|
-
email_page?: string;
|
|
617
|
-
checkout_page?: string;
|
|
618
|
-
payment_window?: string;
|
|
619
|
-
upsell_page: string;
|
|
620
|
-
upsell_options?: {
|
|
621
|
-
[key: string]: unknown;
|
|
35
|
+
event: {
|
|
36
|
+
eventId: string;
|
|
37
|
+
eventName: string;
|
|
38
|
+
eventData: {
|
|
39
|
+
currency?: string;
|
|
40
|
+
total?: number;
|
|
41
|
+
sourceUrl: string;
|
|
42
|
+
};
|
|
43
|
+
testEventCode?: string;
|
|
44
|
+
clientData?: {
|
|
45
|
+
email?: string;
|
|
46
|
+
ip?: string;
|
|
47
|
+
userAgent?: string;
|
|
48
|
+
fbc?: string;
|
|
49
|
+
fbp?: string;
|
|
50
|
+
country?: string;
|
|
51
|
+
state?: string;
|
|
52
|
+
city?: string;
|
|
53
|
+
zip?: string;
|
|
54
|
+
phone?: string;
|
|
55
|
+
};
|
|
622
56
|
};
|
|
623
|
-
|
|
57
|
+
}) => Promise<{
|
|
58
|
+
success: boolean;
|
|
59
|
+
}>;
|
|
60
|
+
};
|
|
61
|
+
mail: {
|
|
62
|
+
sendToRecipient: (data: {
|
|
63
|
+
to: string;
|
|
64
|
+
subject: string;
|
|
65
|
+
htmlPart?: string;
|
|
66
|
+
textPart?: string;
|
|
67
|
+
}) => Promise<{
|
|
68
|
+
success: boolean;
|
|
69
|
+
}>;
|
|
70
|
+
sendToSupport: (data: {
|
|
71
|
+
subject: string;
|
|
72
|
+
htmlPart?: string;
|
|
73
|
+
textPart?: string;
|
|
74
|
+
}) => Promise<{
|
|
75
|
+
success: boolean;
|
|
76
|
+
}>;
|
|
77
|
+
};
|
|
78
|
+
session: {
|
|
79
|
+
append: (uuid: string, body: {
|
|
80
|
+
extraData?: {
|
|
624
81
|
[key: string]: unknown;
|
|
625
82
|
};
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
id: number;
|
|
83
|
+
}) => Promise<{
|
|
84
|
+
id: string;
|
|
629
85
|
project: string;
|
|
630
|
-
|
|
631
|
-
version: string;
|
|
632
|
-
note?: string;
|
|
633
|
-
home_page: string;
|
|
634
|
-
quiz_page: string;
|
|
635
|
-
results_page: string;
|
|
636
|
-
email_page: string;
|
|
637
|
-
checkout_page: string;
|
|
638
|
-
payment_window: string;
|
|
639
|
-
upsell_page: string;
|
|
640
|
-
upsell_options?: Record<string, never>;
|
|
641
|
-
options?: Record<string, never>;
|
|
642
|
-
};
|
|
643
|
-
UpdateFunnelDto: {
|
|
644
|
-
project?: string;
|
|
645
|
-
angle?: string;
|
|
646
|
-
version?: string;
|
|
647
|
-
note?: string;
|
|
648
|
-
home_page?: string;
|
|
649
|
-
quiz_page?: string;
|
|
650
|
-
results_page?: string;
|
|
651
|
-
email_page?: string;
|
|
652
|
-
checkout_page?: string;
|
|
653
|
-
payment_window?: string;
|
|
654
|
-
upsell_page?: string;
|
|
655
|
-
upsell_options?: {
|
|
656
|
-
[key: string]: unknown;
|
|
657
|
-
};
|
|
658
|
-
options?: {
|
|
86
|
+
cookies: {
|
|
659
87
|
[key: string]: unknown;
|
|
660
88
|
};
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
project: string;
|
|
668
|
-
url?: string;
|
|
669
|
-
splits?: components["schemas"]["SplitItemDto"][];
|
|
670
|
-
options?: {
|
|
89
|
+
country: string;
|
|
90
|
+
createdAt: string;
|
|
91
|
+
ip: string;
|
|
92
|
+
isEu: boolean;
|
|
93
|
+
origin: string;
|
|
94
|
+
query: {
|
|
671
95
|
[key: string]: unknown;
|
|
672
96
|
};
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
url?: string;
|
|
679
|
-
splits?: components["schemas"]["SplitItemDto"][];
|
|
680
|
-
options?: Record<string, never>;
|
|
681
|
-
active: boolean;
|
|
682
|
-
};
|
|
683
|
-
UpdateSplitDto: {
|
|
684
|
-
project?: string;
|
|
685
|
-
url?: string;
|
|
686
|
-
splits?: components["schemas"]["SplitItemDto"][];
|
|
687
|
-
options?: {
|
|
97
|
+
referer: string;
|
|
98
|
+
slug: string;
|
|
99
|
+
updatedAt: string;
|
|
100
|
+
useragent: string;
|
|
101
|
+
extraData: {
|
|
688
102
|
[key: string]: unknown;
|
|
689
103
|
};
|
|
690
|
-
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
*/
|
|
697
|
-
to: string;
|
|
698
|
-
/**
|
|
699
|
-
* @description Email subject
|
|
700
|
-
* @example Important information about your account
|
|
701
|
-
*/
|
|
702
|
-
subject: string;
|
|
703
|
-
/**
|
|
704
|
-
* @description HTML content of the email
|
|
705
|
-
* @example <p>Hello, this is an <strong>important</strong> message.</p>
|
|
706
|
-
*/
|
|
707
|
-
htmlPart?: string;
|
|
708
|
-
/**
|
|
709
|
-
* @description Plain text content of the email
|
|
710
|
-
* @example Hello, this is an important message.
|
|
711
|
-
*/
|
|
712
|
-
textPart?: string;
|
|
713
|
-
};
|
|
714
|
-
SendMailResponseDto: {
|
|
715
|
-
/**
|
|
716
|
-
* @description Success status
|
|
717
|
-
* @example true
|
|
718
|
-
*/
|
|
719
|
-
success: boolean;
|
|
720
|
-
};
|
|
721
|
-
SendMailToSupportDto: {
|
|
722
|
-
/**
|
|
723
|
-
* @description Email subject
|
|
724
|
-
* @example Important information about your account
|
|
725
|
-
*/
|
|
726
|
-
subject: string;
|
|
727
|
-
/**
|
|
728
|
-
* @description HTML content of the email
|
|
729
|
-
* @example <p>Hello, this is an <strong>important</strong> message.</p>
|
|
730
|
-
*/
|
|
731
|
-
htmlPart?: string;
|
|
732
|
-
/**
|
|
733
|
-
* @description Plain text content of the email
|
|
734
|
-
* @example Hello, this is an important message.
|
|
735
|
-
*/
|
|
736
|
-
textPart?: string;
|
|
737
|
-
};
|
|
738
|
-
CreateSessionBridgeDto: {
|
|
104
|
+
}>;
|
|
105
|
+
create: ({ language, email, currency, quiz, ...data }: {
|
|
106
|
+
language: string;
|
|
107
|
+
email?: string;
|
|
108
|
+
currency: string;
|
|
109
|
+
} & Omit<{
|
|
739
110
|
extraData?: {
|
|
740
111
|
[key: string]: unknown;
|
|
741
112
|
};
|
|
@@ -752,14 +123,9 @@ interface components {
|
|
|
752
123
|
};
|
|
753
124
|
referer?: string;
|
|
754
125
|
slug: string;
|
|
755
|
-
}
|
|
756
|
-
SessionResponseDto: {
|
|
126
|
+
}, "origin" | "referer" | "cookies" | "slug" | "query" | "ip" | "user-agent" | "analyticsId" | "analyticsIdv3">) => Promise<{
|
|
757
127
|
id: string;
|
|
758
128
|
project: string;
|
|
759
|
-
/** @example {
|
|
760
|
-
* "session_id": "1234567890",
|
|
761
|
-
* "session_token": "1234567890"
|
|
762
|
-
* } */
|
|
763
129
|
cookies: {
|
|
764
130
|
[key: string]: unknown;
|
|
765
131
|
};
|
|
@@ -767,744 +133,73 @@ interface components {
|
|
|
767
133
|
createdAt: string;
|
|
768
134
|
ip: string;
|
|
769
135
|
isEu: boolean;
|
|
770
|
-
/** @example https://www.example.com */
|
|
771
136
|
origin: string;
|
|
772
|
-
/** @example {
|
|
773
|
-
* "utm_source": "google",
|
|
774
|
-
* "utm_medium": "cpc",
|
|
775
|
-
* "utm_campaign": "adwords"
|
|
776
|
-
* } */
|
|
777
137
|
query: {
|
|
778
138
|
[key: string]: unknown;
|
|
779
139
|
};
|
|
780
|
-
/** @example https://www.example.com */
|
|
781
140
|
referer: string;
|
|
782
|
-
/** @example main/a */
|
|
783
141
|
slug: string;
|
|
784
142
|
updatedAt: string;
|
|
785
|
-
/** @example Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 */
|
|
786
143
|
useragent: string;
|
|
787
|
-
/** @example {
|
|
788
|
-
* "language": "en",
|
|
789
|
-
* "currency": "USD",
|
|
790
|
-
* "email": "xxx@example.com"
|
|
791
|
-
* } */
|
|
792
144
|
extraData: {
|
|
793
145
|
[key: string]: unknown;
|
|
794
146
|
};
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
AppendSessionDto: {
|
|
801
|
-
extraData?: {
|
|
802
|
-
[key: string]: unknown;
|
|
803
|
-
};
|
|
804
|
-
};
|
|
805
|
-
CreateWebhookDto: {
|
|
806
|
-
/** @description The title of the webhook */
|
|
807
|
-
title?: string;
|
|
808
|
-
/** @description The events that trigger the webhook */
|
|
809
|
-
events: string[];
|
|
810
|
-
/** @description The URL endpoint to send the webhook to */
|
|
811
|
-
endpoint: string;
|
|
812
|
-
/**
|
|
813
|
-
* @description The HTTP method to use when sending the webhook
|
|
814
|
-
* @default GET
|
|
815
|
-
*/
|
|
816
|
-
method: string;
|
|
817
|
-
/** @description The authorization header to use when sending the webhook */
|
|
818
|
-
authorization?: string;
|
|
819
|
-
/** @description The project associated with the webhook */
|
|
820
|
-
project?: string;
|
|
821
|
-
};
|
|
822
|
-
WebhookResponseDto: {
|
|
823
|
-
/** @description The unique identifier of the webhook */
|
|
824
|
-
id: number;
|
|
825
|
-
/** @description The title of the webhook */
|
|
826
|
-
title?: string;
|
|
827
|
-
/** @description The events that trigger the webhook */
|
|
828
|
-
events: string[];
|
|
829
|
-
/** @description The URL endpoint to send the webhook to */
|
|
830
|
-
endpoint: string;
|
|
831
|
-
/**
|
|
832
|
-
* @description The HTTP method to use when sending the webhook
|
|
833
|
-
* @default GET
|
|
834
|
-
*/
|
|
835
|
-
method: string;
|
|
836
|
-
/** @description The authorization header to use when sending the webhook */
|
|
837
|
-
authorization?: string;
|
|
838
|
-
/** @description The project associated with the webhook */
|
|
839
|
-
project?: string;
|
|
840
|
-
};
|
|
841
|
-
UpdateWebhookDto: {
|
|
842
|
-
/** @description The title of the webhook */
|
|
843
|
-
title?: string;
|
|
844
|
-
/** @description The URL endpoint to send the webhook to */
|
|
845
|
-
endpoint?: string;
|
|
846
|
-
/** @description The HTTP method to use when sending the webhook */
|
|
847
|
-
method?: string;
|
|
848
|
-
/** @description The authorization header to use when sending the webhook */
|
|
849
|
-
authorization?: string;
|
|
850
|
-
/** @description The project associated with the webhook */
|
|
851
|
-
project?: string;
|
|
852
|
-
};
|
|
853
|
-
QuizResponseDto: {
|
|
854
|
-
/**
|
|
855
|
-
* @description Quiz data with dynamic keys
|
|
856
|
-
* @example {
|
|
857
|
-
* "q-1": {
|
|
858
|
-
* "q": "What is your age?",
|
|
859
|
-
* "v": {
|
|
860
|
-
* "answer": "25"
|
|
861
|
-
* }
|
|
862
|
-
* },
|
|
863
|
-
* "q-2": {
|
|
864
|
-
* "q": "Which Social Media Platform Do You Use the most?",
|
|
865
|
-
* "v": {
|
|
866
|
-
* "answers": [
|
|
867
|
-
* "Facebook",
|
|
868
|
-
* "TikTok"
|
|
869
|
-
* ]
|
|
870
|
-
* }
|
|
871
|
-
* }
|
|
872
|
-
* }
|
|
873
|
-
*/
|
|
874
|
-
quiz: {
|
|
147
|
+
}>;
|
|
148
|
+
get: (uuid: string) => Promise<{
|
|
149
|
+
id: string;
|
|
150
|
+
project: string;
|
|
151
|
+
cookies: {
|
|
875
152
|
[key: string]: unknown;
|
|
876
153
|
};
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
* @example 1
|
|
882
|
-
*/
|
|
883
|
-
success: number;
|
|
884
|
-
/** @description Response data containing quiz information */
|
|
885
|
-
data: components["schemas"]["QuizResponseDto"];
|
|
886
|
-
};
|
|
887
|
-
TrackRealtimeEventDto: {
|
|
888
|
-
type: string;
|
|
889
|
-
uuid?: string;
|
|
890
|
-
pathname: string;
|
|
891
|
-
referer: string;
|
|
154
|
+
country: string;
|
|
155
|
+
createdAt: string;
|
|
156
|
+
ip: string;
|
|
157
|
+
isEu: boolean;
|
|
892
158
|
origin: string;
|
|
893
|
-
/** @example {
|
|
894
|
-
* "session_id": "a1b2c3d4-e5f6-7890",
|
|
895
|
-
* "status": "active"
|
|
896
|
-
* } */
|
|
897
159
|
query: {
|
|
898
|
-
[key: string]: string;
|
|
899
|
-
};
|
|
900
|
-
/** @example {
|
|
901
|
-
* "user_id": 12345,
|
|
902
|
-
* "session_id": "a1b2c3d4-e5f6-7890",
|
|
903
|
-
* "status": "active",
|
|
904
|
-
* "retry_count": 3
|
|
905
|
-
* } */
|
|
906
|
-
eventData?: {
|
|
907
|
-
[key: string]: string | number;
|
|
908
|
-
};
|
|
909
|
-
/** @example {
|
|
910
|
-
* "user_id": 12345,
|
|
911
|
-
* "session_id": "a1b2c3d4-e5f6-7890",
|
|
912
|
-
* "status": "active",
|
|
913
|
-
* "retry_count": 3
|
|
914
|
-
* } */
|
|
915
|
-
attr?: {
|
|
916
|
-
[key: string]: string | number;
|
|
917
|
-
};
|
|
918
|
-
skipEvent?: boolean;
|
|
919
|
-
};
|
|
920
|
-
CreateRealtimeAttributeDtoBridge: {
|
|
921
|
-
attr_key: string;
|
|
922
|
-
attr_value: string;
|
|
923
|
-
funnel: string;
|
|
924
|
-
created_at: number;
|
|
925
|
-
uuid: string;
|
|
926
|
-
};
|
|
927
|
-
CreateRealtimeEventDtoBridge: {
|
|
928
|
-
uuid: string;
|
|
929
|
-
name: string;
|
|
930
|
-
data?: {
|
|
931
160
|
[key: string]: unknown;
|
|
932
161
|
};
|
|
933
|
-
order_id?: string;
|
|
934
|
-
created_at: number;
|
|
935
|
-
funnel: string;
|
|
936
|
-
};
|
|
937
|
-
CreateRealtimeSessionDtoBridge: {
|
|
938
|
-
uuid: string;
|
|
939
|
-
ip: string;
|
|
940
|
-
user_agent: string;
|
|
941
|
-
origin: string;
|
|
942
162
|
referer: string;
|
|
943
|
-
|
|
944
|
-
browser: string;
|
|
945
|
-
type: string;
|
|
946
|
-
};
|
|
947
|
-
CreateRealtimeUtmDtoBridge: {
|
|
948
|
-
utm_key: string;
|
|
949
|
-
utm_value: string;
|
|
950
|
-
funnel: string;
|
|
951
|
-
created_at: number;
|
|
952
|
-
uuid: string;
|
|
953
|
-
};
|
|
954
|
-
VerifyPhoneResponseDto: {
|
|
955
|
-
/** @description Valid number or not */
|
|
956
|
-
valid: boolean;
|
|
957
|
-
/** @description Landline number or not. Possible values: 1 - YES, 0 - NO, -1 - api not support this feature */
|
|
958
|
-
landline: number;
|
|
959
|
-
/** @description Validation error if exists */
|
|
960
|
-
error: string;
|
|
961
|
-
};
|
|
962
|
-
VerifyEmailResponseDto: {
|
|
963
|
-
/** @description Valid email or not */
|
|
964
|
-
valid: boolean;
|
|
965
|
-
/** @description Validation error if exists */
|
|
966
|
-
error?: string;
|
|
967
|
-
};
|
|
968
|
-
PaymentCreateSessionBridgeRequestDto: {
|
|
969
|
-
/** @description Unique Customer ID for the transaction. */
|
|
970
|
-
referenceId: string;
|
|
971
|
-
paymentDescription: string;
|
|
972
|
-
/**
|
|
973
|
-
* @description Optional metadata for the transaction.
|
|
974
|
-
* @example {
|
|
975
|
-
* "orderId": "123",
|
|
976
|
-
* "customerId": "456"
|
|
977
|
-
* }
|
|
978
|
-
*/
|
|
979
|
-
metaData?: {
|
|
980
|
-
[key: string]: unknown;
|
|
981
|
-
};
|
|
982
|
-
};
|
|
983
|
-
PaymentCreateSessionBridgeResponseItemDto: {
|
|
984
|
-
/**
|
|
985
|
-
* @description The token for the payment session
|
|
986
|
-
* @example tok_1234567890
|
|
987
|
-
*/
|
|
988
|
-
token: string;
|
|
989
|
-
/**
|
|
990
|
-
* @description The source for the payment session from integration system
|
|
991
|
-
* @example paypal-us
|
|
992
|
-
*/
|
|
993
|
-
source: string;
|
|
994
|
-
/**
|
|
995
|
-
* @description The provider for the payment session
|
|
996
|
-
* @example paypal
|
|
997
|
-
*/
|
|
998
|
-
provider: string;
|
|
999
|
-
};
|
|
1000
|
-
EarlyFraudWarningSearchDto: {
|
|
1001
|
-
/**
|
|
1002
|
-
* @description Start date in YYYY-MM-DD format.
|
|
1003
|
-
* @example 2025-08-01
|
|
1004
|
-
*/
|
|
1005
|
-
startDate?: string;
|
|
1006
|
-
/**
|
|
1007
|
-
* @description End date in YYYY-MM-DD format.
|
|
1008
|
-
* @example 2025-08-10
|
|
1009
|
-
*/
|
|
1010
|
-
endDate?: string;
|
|
1011
|
-
};
|
|
1012
|
-
YunoCreatePaymentDto: {
|
|
1013
|
-
/** @description Main Order ID */
|
|
1014
|
-
referenceId: string;
|
|
1015
|
-
/** @description Payment method */
|
|
1016
|
-
paymentMethod: string;
|
|
1017
|
-
/** @description Payment token */
|
|
1018
|
-
token: string;
|
|
1019
|
-
};
|
|
1020
|
-
PaymentRefundRequestDto: {
|
|
1021
|
-
/** @description Order ID */
|
|
1022
|
-
orderId: string;
|
|
1023
|
-
/** @description Transaction or Charge ID */
|
|
1024
|
-
transactionId: string;
|
|
1025
|
-
/** @description Refund amount */
|
|
1026
|
-
amount: number;
|
|
1027
|
-
/** @description Original transaction amount */
|
|
1028
|
-
originalAmount?: number;
|
|
1029
|
-
/** @description Currency */
|
|
1030
|
-
currency: string;
|
|
1031
|
-
};
|
|
1032
|
-
PaymentRefundResponseDto: {
|
|
1033
|
-
/** @description Success or not */
|
|
1034
|
-
success: boolean;
|
|
1035
|
-
/**
|
|
1036
|
-
* @description Refund type
|
|
1037
|
-
* @enum {string}
|
|
1038
|
-
*/
|
|
1039
|
-
type: "refund" | "cancel";
|
|
1040
|
-
/** @description Refund error if exists */
|
|
1041
|
-
error: string;
|
|
1042
|
-
};
|
|
1043
|
-
PaymentCreateSessionResponseDto: {
|
|
1044
|
-
/** @description Token for initiate payment session */
|
|
1045
|
-
token: string;
|
|
1046
|
-
};
|
|
1047
|
-
PaypalCaptureOrderResponseDto: {
|
|
1048
|
-
/** @example 23T524207X938445J */
|
|
1049
|
-
id: string;
|
|
1050
|
-
/** @example COMPLETED */
|
|
1051
|
-
status: string;
|
|
1052
|
-
};
|
|
1053
|
-
PaypalCapturePaymentResponseDto: {
|
|
1054
|
-
/** @example 23T524207X938445J */
|
|
1055
|
-
id: string;
|
|
1056
|
-
/** @example COMPLETED */
|
|
1057
|
-
status: string;
|
|
1058
|
-
};
|
|
1059
|
-
TokenRetrieveRequestDto: {
|
|
1060
|
-
/** @description Main Order ID */
|
|
1061
|
-
orderId: string;
|
|
1062
|
-
/** @description Charge ID */
|
|
1063
|
-
chargeId: string;
|
|
1064
|
-
};
|
|
1065
|
-
TokenRetrieveResponseDto: {
|
|
1066
|
-
/** @description Token */
|
|
1067
|
-
token: string;
|
|
1068
|
-
/** @description Token type */
|
|
1069
|
-
type: string;
|
|
1070
|
-
};
|
|
1071
|
-
ImportDisputesUrlRequestDto: {
|
|
1072
|
-
/**
|
|
1073
|
-
* @description URL of the CSV file to import
|
|
1074
|
-
* @example https://example.com/disputes.csv
|
|
1075
|
-
*/
|
|
1076
|
-
url: string;
|
|
1077
|
-
};
|
|
1078
|
-
TrustpilotInviteResponseDto: {
|
|
1079
|
-
/** @example 1 */
|
|
1080
|
-
id: number;
|
|
1081
|
-
/** @example ext-456 */
|
|
1082
|
-
externalId: string | null;
|
|
1083
|
-
/** @example customer@example.com */
|
|
1084
|
-
email: string;
|
|
1085
|
-
/** @example John Doe */
|
|
1086
|
-
name: string | null;
|
|
1087
|
-
/**
|
|
1088
|
-
* Format: date-time
|
|
1089
|
-
* @example 2025-09-09T10:00:00.000Z
|
|
1090
|
-
*/
|
|
1091
|
-
scheduledAt: string;
|
|
1092
|
-
/**
|
|
1093
|
-
* Format: date-time
|
|
1094
|
-
* @example 2025-09-09T09:00:00.000Z
|
|
1095
|
-
*/
|
|
1096
|
-
initialScheduledAt: string;
|
|
1097
|
-
/**
|
|
1098
|
-
* @example pending
|
|
1099
|
-
* @enum {string}
|
|
1100
|
-
*/
|
|
1101
|
-
status: "pending" | "retry" | "sent" | "failed" | "cancelled";
|
|
1102
|
-
/** @example false */
|
|
1103
|
-
sent: boolean;
|
|
1104
|
-
/** @example 0 */
|
|
1105
|
-
attempts: number;
|
|
1106
|
-
/**
|
|
1107
|
-
* Format: date-time
|
|
1108
|
-
* @example 2025-09-08T12:00:00.000Z
|
|
1109
|
-
*/
|
|
1110
|
-
lastAttemptAt: string | null;
|
|
1111
|
-
/** @example SMTP error: 550 rejected */
|
|
1112
|
-
lastError: string | null;
|
|
1113
|
-
/** @example batch-uuid-789 */
|
|
1114
|
-
batchId: string | null;
|
|
1115
|
-
/** @example 507f191e810c19729de860ea */
|
|
1116
|
-
templateId: string | null;
|
|
1117
|
-
/**
|
|
1118
|
-
* Format: date-time
|
|
1119
|
-
* @example 2025-09-08T08:00:00.000Z
|
|
1120
|
-
*/
|
|
1121
|
-
createdAt: string;
|
|
1122
|
-
/**
|
|
1123
|
-
* Format: date-time
|
|
1124
|
-
* @example 2025-09-08T09:00:00.000Z
|
|
1125
|
-
*/
|
|
163
|
+
slug: string;
|
|
1126
164
|
updatedAt: string;
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
data: components["schemas"]["TrustpilotInviteResponseDto"][];
|
|
1130
|
-
/** @example 100 */
|
|
1131
|
-
total: number;
|
|
1132
|
-
/** @example 1 */
|
|
1133
|
-
page: number;
|
|
1134
|
-
/** @example 10 */
|
|
1135
|
-
limit: number;
|
|
1136
|
-
/** @example 10 */
|
|
1137
|
-
totalPages: number;
|
|
1138
|
-
};
|
|
1139
|
-
TaxValueCountryStateRequestDto: {
|
|
1140
|
-
/**
|
|
1141
|
-
* @description ISO 3166-1 alpha-2 country code (e.g., US, CA)
|
|
1142
|
-
* @example US
|
|
1143
|
-
*/
|
|
1144
|
-
countryCode: string;
|
|
1145
|
-
/**
|
|
1146
|
-
* @description State
|
|
1147
|
-
* @example Arizona
|
|
1148
|
-
*/
|
|
1149
|
-
state: string;
|
|
1150
|
-
/**
|
|
1151
|
-
* @description Amount for tax calculation
|
|
1152
|
-
* @example 2
|
|
1153
|
-
*/
|
|
1154
|
-
amount: number;
|
|
1155
|
-
};
|
|
1156
|
-
TaxValueCountryStateResponseDto: {
|
|
1157
|
-
/**
|
|
1158
|
-
* @description Tax percent
|
|
1159
|
-
* @example 5.6
|
|
1160
|
-
*/
|
|
1161
|
-
taxPercent: number;
|
|
1162
|
-
/**
|
|
1163
|
-
* @description Tax amount
|
|
1164
|
-
* @example 2
|
|
1165
|
-
*/
|
|
1166
|
-
taxAmount: number;
|
|
1167
|
-
/**
|
|
1168
|
-
* @description Amount with tax
|
|
1169
|
-
* @example 12
|
|
1170
|
-
*/
|
|
1171
|
-
amountWithTax: number;
|
|
1172
|
-
};
|
|
1173
|
-
TaxPercentCountryStateRequestDto: {
|
|
1174
|
-
/**
|
|
1175
|
-
* @description ISO 3166-1 alpha-2 country code (e.g., US, CA)
|
|
1176
|
-
* @example US
|
|
1177
|
-
*/
|
|
1178
|
-
countryCode: string;
|
|
1179
|
-
/**
|
|
1180
|
-
* @description State
|
|
1181
|
-
* @example Arizona
|
|
1182
|
-
*/
|
|
1183
|
-
state: string;
|
|
1184
|
-
};
|
|
1185
|
-
TaxPercentCountryStateResponseDto: {
|
|
1186
|
-
/**
|
|
1187
|
-
* @description Tax percent
|
|
1188
|
-
* @example 5.6
|
|
1189
|
-
*/
|
|
1190
|
-
taxPercent: number;
|
|
1191
|
-
};
|
|
1192
|
-
FacebookCapiEventDataDto: {
|
|
1193
|
-
/** @example USD */
|
|
1194
|
-
currency?: string;
|
|
1195
|
-
/** @example 129.99 */
|
|
1196
|
-
total?: number;
|
|
1197
|
-
/** @example https://example.com/product/123 */
|
|
1198
|
-
sourceUrl: string;
|
|
1199
|
-
};
|
|
1200
|
-
CustomClientData: {
|
|
1201
|
-
/**
|
|
1202
|
-
* @description The user's email address.
|
|
1203
|
-
* @example joe@example.com
|
|
1204
|
-
*/
|
|
1205
|
-
email?: string;
|
|
1206
|
-
/**
|
|
1207
|
-
* @description The user's IP address.
|
|
1208
|
-
* @example 123.123.123.123
|
|
1209
|
-
*/
|
|
1210
|
-
ip?: string;
|
|
1211
|
-
/**
|
|
1212
|
-
* @description The user's browser user agent string.
|
|
1213
|
-
* @example Mozilla/5.0 (Windows NT 10.0; Win64; x64) ...
|
|
1214
|
-
*/
|
|
1215
|
-
userAgent?: string;
|
|
1216
|
-
/**
|
|
1217
|
-
* @description The Facebook click ID.
|
|
1218
|
-
* @example fb.1.1554763741205.AbCdEfGhIjKlMnOp
|
|
1219
|
-
*/
|
|
1220
|
-
fbc?: string;
|
|
1221
|
-
/**
|
|
1222
|
-
* @description The Facebook browser ID.
|
|
1223
|
-
* @example fb.1.1558571054389.1098115397
|
|
1224
|
-
*/
|
|
1225
|
-
fbp?: string;
|
|
1226
|
-
/**
|
|
1227
|
-
* @description The user country.
|
|
1228
|
-
* @example US
|
|
1229
|
-
*/
|
|
1230
|
-
country?: string;
|
|
1231
|
-
/**
|
|
1232
|
-
* @description The user state.
|
|
1233
|
-
* @example DE
|
|
1234
|
-
*/
|
|
1235
|
-
state?: string;
|
|
1236
|
-
/**
|
|
1237
|
-
* @description The user city.
|
|
1238
|
-
* @example Berlin
|
|
1239
|
-
*/
|
|
1240
|
-
city?: string;
|
|
1241
|
-
/**
|
|
1242
|
-
* @description The user zip code.
|
|
1243
|
-
* @example 19901
|
|
1244
|
-
*/
|
|
1245
|
-
zip?: string;
|
|
1246
|
-
/**
|
|
1247
|
-
* @description The user phone number.
|
|
1248
|
-
* @example +123123231
|
|
1249
|
-
*/
|
|
1250
|
-
phone?: string;
|
|
1251
|
-
};
|
|
1252
|
-
FbCapiPayloadBridge: {
|
|
1253
|
-
/** @example EVENT_ID_123 */
|
|
1254
|
-
eventId: string;
|
|
1255
|
-
/** @example Purchase */
|
|
1256
|
-
eventName: string;
|
|
1257
|
-
eventData: components["schemas"]["FacebookCapiEventDataDto"];
|
|
1258
|
-
testEventCode?: string;
|
|
1259
|
-
clientData?: components["schemas"]["CustomClientData"];
|
|
1260
|
-
};
|
|
1261
|
-
FbCapiPayloadSessionBridge: {
|
|
1262
|
-
uuid: string;
|
|
1263
|
-
event: components["schemas"]["FbCapiPayloadBridge"];
|
|
1264
|
-
};
|
|
1265
|
-
FbCapiCreatePixelBridgeDto: {
|
|
1266
|
-
/** @description Title (just for UI purposes) */
|
|
1267
|
-
title: string;
|
|
1268
|
-
/** @description Facebook Pixel ID */
|
|
1269
|
-
pixel: string;
|
|
1270
|
-
/** @description Facebook Pixel Token */
|
|
1271
|
-
token: string;
|
|
1272
|
-
/** @description Active */
|
|
1273
|
-
active: boolean;
|
|
1274
|
-
};
|
|
1275
|
-
FbCapiPixelResponseBridgeDto: {
|
|
1276
|
-
/** @description Unique Record ID */
|
|
1277
|
-
id: number;
|
|
1278
|
-
/** @description Title (just for UI purposes) */
|
|
1279
|
-
title: string;
|
|
1280
|
-
/** @description Facebook Pixel ID */
|
|
1281
|
-
pixel: string;
|
|
1282
|
-
/** @description Facebook Pixel Token */
|
|
1283
|
-
token: string;
|
|
1284
|
-
/** @description Active */
|
|
1285
|
-
active: boolean;
|
|
1286
|
-
};
|
|
1287
|
-
FbCapiUpdatePixelBridgeDto: {
|
|
1288
|
-
/** @description Title (just for UI purposes) */
|
|
1289
|
-
title?: string;
|
|
1290
|
-
/** @description Facebook Pixel ID */
|
|
1291
|
-
pixel?: string;
|
|
1292
|
-
/** @description Facebook Pixel Token */
|
|
1293
|
-
token?: string;
|
|
1294
|
-
/** @description Active */
|
|
1295
|
-
active?: boolean;
|
|
1296
|
-
};
|
|
1297
|
-
FbCapiEventResponseDto: {
|
|
1298
|
-
/** @description Unique Record ID */
|
|
1299
|
-
id: number;
|
|
1300
|
-
/**
|
|
1301
|
-
* Format: date-time
|
|
1302
|
-
* @description Created At
|
|
1303
|
-
*/
|
|
1304
|
-
createdAt: string;
|
|
1305
|
-
/** @description Pixel ID */
|
|
1306
|
-
pixel: number;
|
|
1307
|
-
/** @description Event name */
|
|
1308
|
-
event: string;
|
|
1309
|
-
/** @description Request data */
|
|
1310
|
-
request: {
|
|
1311
|
-
[key: string]: unknown;
|
|
1312
|
-
};
|
|
1313
|
-
/** @description Response data */
|
|
1314
|
-
response: {
|
|
165
|
+
useragent: string;
|
|
166
|
+
extraData: {
|
|
1315
167
|
[key: string]: unknown;
|
|
1316
168
|
};
|
|
1317
|
-
};
|
|
1318
|
-
FbCapiEventFullResponseDto: {
|
|
1319
|
-
/** @description The list events */
|
|
1320
|
-
data: components["schemas"]["FbCapiEventResponseDto"][];
|
|
1321
|
-
/**
|
|
1322
|
-
* @description The total number of order items
|
|
1323
|
-
* @example 25
|
|
1324
|
-
*/
|
|
1325
|
-
total: number;
|
|
1326
|
-
/**
|
|
1327
|
-
* @description The current page number
|
|
1328
|
-
* @example 1
|
|
1329
|
-
*/
|
|
1330
|
-
page: number;
|
|
1331
|
-
/**
|
|
1332
|
-
* @description The number of order items per page
|
|
1333
|
-
* @example 10
|
|
1334
|
-
*/
|
|
1335
|
-
limit: number;
|
|
1336
|
-
/**
|
|
1337
|
-
* @description The total number of pages available
|
|
1338
|
-
* @example 3
|
|
1339
|
-
*/
|
|
1340
|
-
totalPages: number;
|
|
1341
|
-
};
|
|
1342
|
-
ReportItemDto: {
|
|
1343
|
-
/**
|
|
1344
|
-
* @description Unique identifier for the report item
|
|
1345
|
-
* @example 1
|
|
1346
|
-
*/
|
|
1347
|
-
id: number;
|
|
1348
|
-
/**
|
|
1349
|
-
* @description Unique order identifier
|
|
1350
|
-
* @example ORD-001
|
|
1351
|
-
*/
|
|
1352
|
-
orderId: string;
|
|
1353
|
-
/**
|
|
1354
|
-
* @description Country where the order was placed
|
|
1355
|
-
* @example US
|
|
1356
|
-
*/
|
|
1357
|
-
country: string;
|
|
1358
|
-
/**
|
|
1359
|
-
* @description Customer gender
|
|
1360
|
-
* @example male
|
|
1361
|
-
*/
|
|
1362
|
-
gender: string;
|
|
1363
|
-
/**
|
|
1364
|
-
* @description Customer email
|
|
1365
|
-
* @example xxx@example.com
|
|
1366
|
-
*/
|
|
1367
|
-
email: string;
|
|
1368
|
-
/**
|
|
1369
|
-
* @description Customer language
|
|
1370
|
-
* @example en
|
|
1371
|
-
*/
|
|
1372
|
-
language: string;
|
|
1373
|
-
/**
|
|
1374
|
-
* @description URL-friendly identifier for the order
|
|
1375
|
-
* @example order-001
|
|
1376
|
-
*/
|
|
1377
|
-
slug: string;
|
|
1378
|
-
/**
|
|
1379
|
-
* @description Source/origin of the order
|
|
1380
|
-
* @example http://example.com/
|
|
1381
|
-
*/
|
|
1382
|
-
origin: string;
|
|
1383
|
-
};
|
|
1384
|
-
TrustpilotServiceReviewInvitationDto: {
|
|
1385
|
-
/** @example 507f191e810c19729de860ea */
|
|
1386
|
-
templateId: string;
|
|
1387
|
-
/**
|
|
1388
|
-
* @description Preferred send time in UTC (ISO 8601)
|
|
1389
|
-
* @example 2026-01-05T13:37:00Z
|
|
1390
|
-
*/
|
|
1391
|
-
preferredSendTime?: string;
|
|
1392
|
-
/** @example http://trustpilot.com */
|
|
1393
|
-
redirectUri: string;
|
|
1394
|
-
/** @example [
|
|
1395
|
-
* "tag1",
|
|
1396
|
-
* "tag2"
|
|
1397
|
-
* ] */
|
|
1398
|
-
tags?: string[];
|
|
1399
|
-
};
|
|
1400
|
-
TrustpilotProductDto: {
|
|
1401
|
-
/** @example ABC-1234 */
|
|
1402
|
-
sku: string;
|
|
1403
|
-
/** @example Metal Toy Car */
|
|
1404
|
-
name: string;
|
|
1405
|
-
/** @example 7TX1641 */
|
|
1406
|
-
mpn: string;
|
|
1407
|
-
/** @example ACME */
|
|
1408
|
-
brand: string;
|
|
1409
|
-
/** @example http://www.mycompanystore.com/products/images/12345.jpg */
|
|
1410
|
-
imageUrl: string;
|
|
1411
|
-
/** @example http://www.mycompanystore.com/products/12345.htm */
|
|
1412
|
-
productUrl: string;
|
|
1413
|
-
/** @example 01234567890 */
|
|
1414
|
-
gtin: string;
|
|
1415
|
-
/** @example 1267 */
|
|
1416
|
-
productCategoryGoogleId: string;
|
|
1417
|
-
};
|
|
1418
|
-
TrustpilotProductReviewInvitationDto: {
|
|
1419
|
-
/** @example 507f191e810c19729de860ea */
|
|
1420
|
-
templateId: string;
|
|
1421
|
-
/** @example 2026-01-05T13:37:00Z */
|
|
1422
|
-
preferredSendTime?: string;
|
|
1423
|
-
/** @example http://trustpilot.com */
|
|
1424
|
-
redirectUri: string;
|
|
1425
|
-
products?: components["schemas"]["TrustpilotProductDto"][];
|
|
1426
|
-
};
|
|
1427
|
-
SendTrustpilotInvitationDto: {
|
|
1428
|
-
/** @example john.doe@trustpilot.com */
|
|
1429
|
-
replyTo?: string;
|
|
1430
|
-
/** @example en-US */
|
|
1431
|
-
locale?: string;
|
|
1432
|
-
/** @example John Doe */
|
|
1433
|
-
senderName?: string;
|
|
1434
|
-
/** @example john.doe@trustpilot.com */
|
|
1435
|
-
senderEmail?: string;
|
|
1436
|
-
/** @example ABC123 */
|
|
1437
|
-
locationId?: string;
|
|
1438
|
-
/** @example inv00001 */
|
|
1439
|
-
referenceNumber: string;
|
|
1440
|
-
/** @example John Doe */
|
|
1441
|
-
consumerName: string;
|
|
1442
|
-
/** @example john.doe@trustpilot.com */
|
|
1443
|
-
consumerEmail: string;
|
|
1444
|
-
/** @example email */
|
|
1445
|
-
type: string;
|
|
1446
|
-
serviceReviewInvitation?: components["schemas"]["TrustpilotServiceReviewInvitationDto"];
|
|
1447
|
-
productReviewInvitation?: components["schemas"]["TrustpilotProductReviewInvitationDto"];
|
|
1448
|
-
};
|
|
1449
|
-
SendTrustpilotInvitationResponseDto: {
|
|
1450
|
-
/** @example 200 */
|
|
1451
|
-
statusCode: number;
|
|
1452
|
-
/** @example Email invitation created successfully */
|
|
1453
|
-
message: string;
|
|
1454
|
-
};
|
|
1455
|
-
CreateTrustpilotInvitationLinkDto: {
|
|
1456
|
-
/** @description Optional Trustpilot location ID */
|
|
1457
|
-
locationId?: string;
|
|
1458
|
-
/** @example inv00001 */
|
|
1459
|
-
referenceId: string;
|
|
1460
|
-
/** @example john.doe@trustpilot.com */
|
|
1461
|
-
email: string;
|
|
1462
|
-
/** @example John Doe */
|
|
1463
|
-
name: string;
|
|
1464
|
-
/** @example en-US */
|
|
1465
|
-
locale: string;
|
|
1466
|
-
/** @example [
|
|
1467
|
-
* "tag1",
|
|
1468
|
-
* "tag2"
|
|
1469
|
-
* ] */
|
|
1470
|
-
tags?: string[];
|
|
1471
|
-
/** @example https://trustpilot.com */
|
|
1472
|
-
redirectUri: string;
|
|
1473
|
-
};
|
|
1474
|
-
CreateTrustpilotInvitationLinkResponseDto: {
|
|
1475
|
-
/** @description Invitation link id */
|
|
1476
|
-
id: string;
|
|
1477
|
-
/** @description Invitation link url */
|
|
1478
|
-
url: string;
|
|
1479
|
-
};
|
|
1480
|
-
TrustpilotTemplatesResponseDto: {
|
|
1481
|
-
id: string;
|
|
1482
|
-
name: string;
|
|
1483
|
-
isDefaultTemplate: boolean;
|
|
1484
|
-
locale?: string;
|
|
1485
|
-
language?: string;
|
|
1486
|
-
type: string;
|
|
1487
|
-
};
|
|
1488
|
-
};
|
|
1489
|
-
responses: never;
|
|
1490
|
-
parameters: never;
|
|
1491
|
-
requestBodies: never;
|
|
1492
|
-
headers: never;
|
|
1493
|
-
pathItems: never;
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
declare const browser: {
|
|
1497
|
-
capi: {
|
|
1498
|
-
facebook: (data: components["schemas"]["FbCapiPayloadSessionBridge"]) => Promise<{
|
|
1499
|
-
success: boolean;
|
|
1500
169
|
}>;
|
|
1501
170
|
};
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
171
|
+
sessionWithCurrency: {
|
|
172
|
+
get: (uuid: string) => Promise<{
|
|
173
|
+
success: number;
|
|
174
|
+
data: {
|
|
175
|
+
id: string;
|
|
176
|
+
project: string;
|
|
177
|
+
cookies: {
|
|
178
|
+
[key: string]: unknown;
|
|
179
|
+
};
|
|
180
|
+
country: string;
|
|
181
|
+
createdAt: string;
|
|
182
|
+
ip: string;
|
|
183
|
+
isEu: boolean;
|
|
184
|
+
origin: string;
|
|
185
|
+
query: {
|
|
186
|
+
[key: string]: unknown;
|
|
187
|
+
};
|
|
188
|
+
referer: string;
|
|
189
|
+
slug: string;
|
|
190
|
+
updatedAt: string;
|
|
191
|
+
useragent: string;
|
|
192
|
+
extraData: {
|
|
193
|
+
[key: string]: unknown;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
currency: {
|
|
197
|
+
currency: string;
|
|
198
|
+
country: string;
|
|
199
|
+
symbol: string;
|
|
200
|
+
rate: number;
|
|
201
|
+
};
|
|
202
|
+
}>;
|
|
1508
203
|
create: ({ language, email, currency, quiz, ...data }: {
|
|
1509
204
|
language: string;
|
|
1510
205
|
email?: string;
|
|
@@ -1526,8 +221,50 @@ declare const browser: {
|
|
|
1526
221
|
};
|
|
1527
222
|
referer?: string;
|
|
1528
223
|
slug: string;
|
|
1529
|
-
}, "origin" | "referer" | "cookies" | "slug" | "query" | "ip" | "user-agent" | "analyticsId" | "analyticsIdv3">) => Promise<
|
|
1530
|
-
|
|
224
|
+
}, "origin" | "referer" | "cookies" | "slug" | "query" | "ip" | "user-agent" | "analyticsId" | "analyticsIdv3">) => Promise<{
|
|
225
|
+
success: number;
|
|
226
|
+
data: {
|
|
227
|
+
id: string;
|
|
228
|
+
project: string;
|
|
229
|
+
cookies: {
|
|
230
|
+
[key: string]: unknown;
|
|
231
|
+
};
|
|
232
|
+
country: string;
|
|
233
|
+
createdAt: string;
|
|
234
|
+
ip: string;
|
|
235
|
+
isEu: boolean;
|
|
236
|
+
origin: string;
|
|
237
|
+
query: {
|
|
238
|
+
[key: string]: unknown;
|
|
239
|
+
};
|
|
240
|
+
referer: string;
|
|
241
|
+
slug: string;
|
|
242
|
+
updatedAt: string;
|
|
243
|
+
useragent: string;
|
|
244
|
+
extraData: {
|
|
245
|
+
[key: string]: unknown;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
currency: {
|
|
249
|
+
currency: string;
|
|
250
|
+
country: string;
|
|
251
|
+
symbol: string;
|
|
252
|
+
rate: number;
|
|
253
|
+
};
|
|
254
|
+
}>;
|
|
255
|
+
};
|
|
256
|
+
currency: {
|
|
257
|
+
rate: (dto: {
|
|
258
|
+
currencies: string[];
|
|
259
|
+
}) => Promise<{
|
|
260
|
+
id: number;
|
|
261
|
+
date: string;
|
|
262
|
+
currency: string;
|
|
263
|
+
base_currency: string;
|
|
264
|
+
rate: number;
|
|
265
|
+
}[]>;
|
|
266
|
+
suggest: (country: string) => Promise<never>;
|
|
267
|
+
symbol: (country: string) => Promise<never>;
|
|
1531
268
|
};
|
|
1532
269
|
crmAuth: {
|
|
1533
270
|
signIn: (data: any) => Promise<any>;
|
|
@@ -1536,9 +273,6 @@ declare const browser: {
|
|
|
1536
273
|
}>;
|
|
1537
274
|
verify: () => Promise<any>;
|
|
1538
275
|
};
|
|
1539
|
-
hooks: {
|
|
1540
|
-
useParamsLandingPage: () => ParamsLandingPageResponse;
|
|
1541
|
-
};
|
|
1542
276
|
realtime: {
|
|
1543
277
|
trackEvent: (type: string, uuid?: string, options?: {
|
|
1544
278
|
ga?: any;
|
|
@@ -1558,14 +292,6 @@ declare const browser: {
|
|
|
1558
292
|
skipEvent?: boolean;
|
|
1559
293
|
}) => Promise<void>;
|
|
1560
294
|
};
|
|
1561
|
-
funnels: {
|
|
1562
|
-
get: () => Promise<SdkRemoteFunnel[]>;
|
|
1563
|
-
getTemplates: ({ angle, version, searchParams }: {
|
|
1564
|
-
angle: string;
|
|
1565
|
-
version: string;
|
|
1566
|
-
searchParams?: next_navigation.ReadonlyURLSearchParams;
|
|
1567
|
-
}) => Promise<SdkRemoteFunnel>;
|
|
1568
|
-
};
|
|
1569
295
|
verify: {
|
|
1570
296
|
email: (email: string) => Promise<{
|
|
1571
297
|
valid: boolean;
|
|
@@ -1578,10 +304,20 @@ declare const browser: {
|
|
|
1578
304
|
} | undefined>;
|
|
1579
305
|
};
|
|
1580
306
|
quiz: {
|
|
1581
|
-
get: (uuid: string) => Promise<
|
|
307
|
+
get: (uuid: string) => Promise<{
|
|
308
|
+
quiz: {
|
|
309
|
+
[key: string]: unknown;
|
|
310
|
+
};
|
|
311
|
+
}>;
|
|
1582
312
|
};
|
|
1583
313
|
payments: {
|
|
1584
|
-
createSession: (data:
|
|
314
|
+
createSession: (data: {
|
|
315
|
+
referenceId: string;
|
|
316
|
+
paymentDescription: string;
|
|
317
|
+
metaData?: {
|
|
318
|
+
[key: string]: unknown;
|
|
319
|
+
};
|
|
320
|
+
}) => Promise<{
|
|
1585
321
|
token: string;
|
|
1586
322
|
source: string;
|
|
1587
323
|
provider: string;
|
|
@@ -1596,20 +332,86 @@ declare const browser: {
|
|
|
1596
332
|
}>;
|
|
1597
333
|
};
|
|
1598
334
|
yuno: {
|
|
1599
|
-
createPayment: (dto:
|
|
335
|
+
createPayment: (dto: {
|
|
336
|
+
referenceId: string;
|
|
337
|
+
paymentMethod: string;
|
|
338
|
+
token: string;
|
|
339
|
+
}) => Promise<never>;
|
|
340
|
+
};
|
|
341
|
+
primer: {
|
|
342
|
+
oneUsdChargeAndRefund: (dto: {
|
|
343
|
+
paymentMethodToken?: string;
|
|
344
|
+
orderId: string;
|
|
345
|
+
amount: number;
|
|
346
|
+
metadata?: {
|
|
347
|
+
[key: string]: unknown;
|
|
348
|
+
};
|
|
349
|
+
}) => Promise<{
|
|
350
|
+
success: boolean;
|
|
351
|
+
}>;
|
|
352
|
+
oneUsdChargeAndRefundDeferred: (dto: {
|
|
353
|
+
paymentMethodToken?: string;
|
|
354
|
+
orderId: string;
|
|
355
|
+
amount: number;
|
|
356
|
+
metadata?: {
|
|
357
|
+
[key: string]: unknown;
|
|
358
|
+
};
|
|
359
|
+
delay: number;
|
|
360
|
+
}) => Promise<true>;
|
|
1600
361
|
};
|
|
1601
362
|
};
|
|
1602
363
|
trustpilot: {
|
|
1603
|
-
getLink: (data:
|
|
1604
|
-
|
|
364
|
+
getLink: (data: {
|
|
365
|
+
locationId?: string;
|
|
366
|
+
referenceId: string;
|
|
367
|
+
email: string;
|
|
368
|
+
name: string;
|
|
369
|
+
locale: string;
|
|
370
|
+
tags?: string[];
|
|
371
|
+
redirectUri: string;
|
|
372
|
+
}) => Promise<{
|
|
373
|
+
id: string;
|
|
374
|
+
url: string;
|
|
375
|
+
}>;
|
|
376
|
+
sendInvitation: (data: {
|
|
377
|
+
replyTo?: string;
|
|
378
|
+
locale?: string;
|
|
379
|
+
senderName?: string;
|
|
380
|
+
senderEmail?: string;
|
|
381
|
+
locationId?: string;
|
|
382
|
+
referenceNumber: string;
|
|
383
|
+
consumerName: string;
|
|
384
|
+
consumerEmail: string;
|
|
385
|
+
type: string;
|
|
386
|
+
serviceReviewInvitation?: {
|
|
387
|
+
templateId: string;
|
|
388
|
+
preferredSendTime?: string;
|
|
389
|
+
redirectUri: string;
|
|
390
|
+
tags?: string[];
|
|
391
|
+
};
|
|
392
|
+
productReviewInvitation?: {
|
|
393
|
+
templateId: string;
|
|
394
|
+
preferredSendTime?: string;
|
|
395
|
+
redirectUri: string;
|
|
396
|
+
products?: {
|
|
397
|
+
sku: string;
|
|
398
|
+
name: string;
|
|
399
|
+
mpn: string;
|
|
400
|
+
brand: string;
|
|
401
|
+
imageUrl: string;
|
|
402
|
+
productUrl: string;
|
|
403
|
+
gtin: string;
|
|
404
|
+
productCategoryGoogleId: string;
|
|
405
|
+
}[];
|
|
406
|
+
};
|
|
407
|
+
}) => Promise<{
|
|
408
|
+
statusCode: number;
|
|
409
|
+
message: string;
|
|
410
|
+
}>;
|
|
411
|
+
};
|
|
412
|
+
hooks: {
|
|
413
|
+
useParamsLandingPage: () => ParamsLandingPageResponse;
|
|
1605
414
|
};
|
|
1606
|
-
};
|
|
1607
|
-
declare const server: {
|
|
1608
|
-
middleware: (req: next_server.NextRequest, options?: {
|
|
1609
|
-
templates?: {
|
|
1610
|
-
[key: string]: string[];
|
|
1611
|
-
};
|
|
1612
|
-
}) => Promise<next_server.NextResponse<any> | undefined>;
|
|
1613
415
|
funnels: {
|
|
1614
416
|
get: () => Promise<SdkRemoteFunnel[]>;
|
|
1615
417
|
getTemplates: ({ angle, version, searchParams }: {
|
|
@@ -1620,4 +422,4 @@ declare const server: {
|
|
|
1620
422
|
};
|
|
1621
423
|
};
|
|
1622
424
|
|
|
1623
|
-
export { type SdkRemoteFunnel, browser
|
|
425
|
+
export { type SdkRemoteFunnel, browser };
|