@capibox/bridge-nextjs-client 0.0.43 → 0.0.44
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/index.d.mts +304 -192
- package/dist/index.d.ts +304 -192
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -384,6 +384,145 @@ interface components {
|
|
|
384
384
|
*/
|
|
385
385
|
access?: string[];
|
|
386
386
|
};
|
|
387
|
+
FunnelTemplatesEnumDto: {
|
|
388
|
+
/**
|
|
389
|
+
* @description Available templates for the home page
|
|
390
|
+
* @example [
|
|
391
|
+
* "Default"
|
|
392
|
+
* ]
|
|
393
|
+
*/
|
|
394
|
+
homePageTemplate: string[];
|
|
395
|
+
/**
|
|
396
|
+
* @description Available templates for the quiz page
|
|
397
|
+
* @example [
|
|
398
|
+
* "Default"
|
|
399
|
+
* ]
|
|
400
|
+
*/
|
|
401
|
+
quizPageTemplate: string[];
|
|
402
|
+
/**
|
|
403
|
+
* @description Available templates for the result page
|
|
404
|
+
* @example [
|
|
405
|
+
* "Default"
|
|
406
|
+
* ]
|
|
407
|
+
*/
|
|
408
|
+
resultPageTemplate: string[];
|
|
409
|
+
/**
|
|
410
|
+
* @description Available templates for the email page
|
|
411
|
+
* @example [
|
|
412
|
+
* "Default"
|
|
413
|
+
* ]
|
|
414
|
+
*/
|
|
415
|
+
emailPageTemplate: string[];
|
|
416
|
+
/**
|
|
417
|
+
* @description Available templates for the checkout page
|
|
418
|
+
* @example [
|
|
419
|
+
* "Default"
|
|
420
|
+
* ]
|
|
421
|
+
*/
|
|
422
|
+
checkoutPageTemplate: string[];
|
|
423
|
+
/**
|
|
424
|
+
* @description Available templates for the upsell page
|
|
425
|
+
* @example [
|
|
426
|
+
* "Default"
|
|
427
|
+
* ]
|
|
428
|
+
*/
|
|
429
|
+
upsellPageTemplate: string[];
|
|
430
|
+
/**
|
|
431
|
+
* @description Available templates for the payment window
|
|
432
|
+
* @example [
|
|
433
|
+
* "Default"
|
|
434
|
+
* ]
|
|
435
|
+
*/
|
|
436
|
+
paymentWindowTemplate: string[];
|
|
437
|
+
};
|
|
438
|
+
FunnelTemplatesEnumResponseDto: {
|
|
439
|
+
/** @description Indicates if the request was successful */
|
|
440
|
+
success: boolean;
|
|
441
|
+
data: components["schemas"]["FunnelTemplatesEnumDto"];
|
|
442
|
+
};
|
|
443
|
+
CreateFunnelDtoBridge: {
|
|
444
|
+
angle: string;
|
|
445
|
+
version: string;
|
|
446
|
+
note?: string;
|
|
447
|
+
home_page?: string;
|
|
448
|
+
quiz_page?: string;
|
|
449
|
+
results_page?: string;
|
|
450
|
+
email_page?: string;
|
|
451
|
+
checkout_page?: string;
|
|
452
|
+
payment_window?: string;
|
|
453
|
+
upsell_page: string;
|
|
454
|
+
upsell_options?: {
|
|
455
|
+
[key: string]: unknown;
|
|
456
|
+
};
|
|
457
|
+
options?: {
|
|
458
|
+
[key: string]: unknown;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
FunnelResponseDto: {
|
|
462
|
+
id: number;
|
|
463
|
+
project: string;
|
|
464
|
+
angle: string;
|
|
465
|
+
version: string;
|
|
466
|
+
note?: string;
|
|
467
|
+
home_page: string;
|
|
468
|
+
quiz_page: string;
|
|
469
|
+
results_page: string;
|
|
470
|
+
email_page: string;
|
|
471
|
+
checkout_page: string;
|
|
472
|
+
payment_window: string;
|
|
473
|
+
upsell_page: string;
|
|
474
|
+
upsell_options?: Record<string, never>;
|
|
475
|
+
options?: Record<string, never>;
|
|
476
|
+
};
|
|
477
|
+
UpdateFunnelDto: {
|
|
478
|
+
project?: string;
|
|
479
|
+
angle?: string;
|
|
480
|
+
version?: string;
|
|
481
|
+
note?: string;
|
|
482
|
+
home_page?: string;
|
|
483
|
+
quiz_page?: string;
|
|
484
|
+
results_page?: string;
|
|
485
|
+
email_page?: string;
|
|
486
|
+
checkout_page?: string;
|
|
487
|
+
payment_window?: string;
|
|
488
|
+
upsell_page?: string;
|
|
489
|
+
upsell_options?: {
|
|
490
|
+
[key: string]: unknown;
|
|
491
|
+
};
|
|
492
|
+
options?: {
|
|
493
|
+
[key: string]: unknown;
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
SplitItemDto: {
|
|
497
|
+
url: string;
|
|
498
|
+
split: number;
|
|
499
|
+
};
|
|
500
|
+
CreateSplitDto: {
|
|
501
|
+
project: string;
|
|
502
|
+
url?: string;
|
|
503
|
+
splits?: components["schemas"]["SplitItemDto"][];
|
|
504
|
+
options?: {
|
|
505
|
+
[key: string]: unknown;
|
|
506
|
+
};
|
|
507
|
+
active: boolean;
|
|
508
|
+
};
|
|
509
|
+
SplitResponseDto: {
|
|
510
|
+
id: number;
|
|
511
|
+
project: string;
|
|
512
|
+
url?: string;
|
|
513
|
+
splits?: components["schemas"]["SplitItemDto"][];
|
|
514
|
+
options?: Record<string, never>;
|
|
515
|
+
active: boolean;
|
|
516
|
+
};
|
|
517
|
+
UpdateSplitDto: {
|
|
518
|
+
project?: string;
|
|
519
|
+
url?: string;
|
|
520
|
+
splits?: components["schemas"]["SplitItemDto"][];
|
|
521
|
+
options?: {
|
|
522
|
+
[key: string]: unknown;
|
|
523
|
+
};
|
|
524
|
+
active?: boolean;
|
|
525
|
+
};
|
|
387
526
|
SendMailToRecipientDto: {
|
|
388
527
|
/**
|
|
389
528
|
* @description Email recipient address
|
|
@@ -545,145 +684,6 @@ interface components {
|
|
|
545
684
|
/** @description The project associated with the webhook */
|
|
546
685
|
project?: string;
|
|
547
686
|
};
|
|
548
|
-
FunnelTemplatesEnumDto: {
|
|
549
|
-
/**
|
|
550
|
-
* @description Available templates for the home page
|
|
551
|
-
* @example [
|
|
552
|
-
* "Default"
|
|
553
|
-
* ]
|
|
554
|
-
*/
|
|
555
|
-
homePageTemplate: string[];
|
|
556
|
-
/**
|
|
557
|
-
* @description Available templates for the quiz page
|
|
558
|
-
* @example [
|
|
559
|
-
* "Default"
|
|
560
|
-
* ]
|
|
561
|
-
*/
|
|
562
|
-
quizPageTemplate: string[];
|
|
563
|
-
/**
|
|
564
|
-
* @description Available templates for the result page
|
|
565
|
-
* @example [
|
|
566
|
-
* "Default"
|
|
567
|
-
* ]
|
|
568
|
-
*/
|
|
569
|
-
resultPageTemplate: string[];
|
|
570
|
-
/**
|
|
571
|
-
* @description Available templates for the email page
|
|
572
|
-
* @example [
|
|
573
|
-
* "Default"
|
|
574
|
-
* ]
|
|
575
|
-
*/
|
|
576
|
-
emailPageTemplate: string[];
|
|
577
|
-
/**
|
|
578
|
-
* @description Available templates for the checkout page
|
|
579
|
-
* @example [
|
|
580
|
-
* "Default"
|
|
581
|
-
* ]
|
|
582
|
-
*/
|
|
583
|
-
checkoutPageTemplate: string[];
|
|
584
|
-
/**
|
|
585
|
-
* @description Available templates for the upsell page
|
|
586
|
-
* @example [
|
|
587
|
-
* "Default"
|
|
588
|
-
* ]
|
|
589
|
-
*/
|
|
590
|
-
upsellPageTemplate: string[];
|
|
591
|
-
/**
|
|
592
|
-
* @description Available templates for the payment window
|
|
593
|
-
* @example [
|
|
594
|
-
* "Default"
|
|
595
|
-
* ]
|
|
596
|
-
*/
|
|
597
|
-
paymentWindowTemplate: string[];
|
|
598
|
-
};
|
|
599
|
-
FunnelTemplatesEnumResponseDto: {
|
|
600
|
-
/** @description Indicates if the request was successful */
|
|
601
|
-
success: boolean;
|
|
602
|
-
data: components["schemas"]["FunnelTemplatesEnumDto"];
|
|
603
|
-
};
|
|
604
|
-
CreateFunnelDtoBridge: {
|
|
605
|
-
angle: string;
|
|
606
|
-
version: string;
|
|
607
|
-
note?: string;
|
|
608
|
-
home_page?: string;
|
|
609
|
-
quiz_page?: string;
|
|
610
|
-
results_page?: string;
|
|
611
|
-
email_page?: string;
|
|
612
|
-
checkout_page?: string;
|
|
613
|
-
payment_window?: string;
|
|
614
|
-
upsell_page: string;
|
|
615
|
-
upsell_options?: {
|
|
616
|
-
[key: string]: unknown;
|
|
617
|
-
};
|
|
618
|
-
options?: {
|
|
619
|
-
[key: string]: unknown;
|
|
620
|
-
};
|
|
621
|
-
};
|
|
622
|
-
FunnelResponseDto: {
|
|
623
|
-
id: number;
|
|
624
|
-
project: string;
|
|
625
|
-
angle: string;
|
|
626
|
-
version: string;
|
|
627
|
-
note?: string;
|
|
628
|
-
home_page: string;
|
|
629
|
-
quiz_page: string;
|
|
630
|
-
results_page: string;
|
|
631
|
-
email_page: string;
|
|
632
|
-
checkout_page: string;
|
|
633
|
-
payment_window: string;
|
|
634
|
-
upsell_page: string;
|
|
635
|
-
upsell_options?: Record<string, never>;
|
|
636
|
-
options?: Record<string, never>;
|
|
637
|
-
};
|
|
638
|
-
UpdateFunnelDto: {
|
|
639
|
-
project?: string;
|
|
640
|
-
angle?: string;
|
|
641
|
-
version?: string;
|
|
642
|
-
note?: string;
|
|
643
|
-
home_page?: string;
|
|
644
|
-
quiz_page?: string;
|
|
645
|
-
results_page?: string;
|
|
646
|
-
email_page?: string;
|
|
647
|
-
checkout_page?: string;
|
|
648
|
-
payment_window?: string;
|
|
649
|
-
upsell_page?: string;
|
|
650
|
-
upsell_options?: {
|
|
651
|
-
[key: string]: unknown;
|
|
652
|
-
};
|
|
653
|
-
options?: {
|
|
654
|
-
[key: string]: unknown;
|
|
655
|
-
};
|
|
656
|
-
};
|
|
657
|
-
SplitItemDto: {
|
|
658
|
-
url: string;
|
|
659
|
-
split: number;
|
|
660
|
-
};
|
|
661
|
-
CreateSplitDto: {
|
|
662
|
-
project: string;
|
|
663
|
-
url?: string;
|
|
664
|
-
splits?: components["schemas"]["SplitItemDto"][];
|
|
665
|
-
options?: {
|
|
666
|
-
[key: string]: unknown;
|
|
667
|
-
};
|
|
668
|
-
active: boolean;
|
|
669
|
-
};
|
|
670
|
-
SplitResponseDto: {
|
|
671
|
-
id: number;
|
|
672
|
-
project: string;
|
|
673
|
-
url?: string;
|
|
674
|
-
splits?: components["schemas"]["SplitItemDto"][];
|
|
675
|
-
options?: Record<string, never>;
|
|
676
|
-
active: boolean;
|
|
677
|
-
};
|
|
678
|
-
UpdateSplitDto: {
|
|
679
|
-
project?: string;
|
|
680
|
-
url?: string;
|
|
681
|
-
splits?: components["schemas"]["SplitItemDto"][];
|
|
682
|
-
options?: {
|
|
683
|
-
[key: string]: unknown;
|
|
684
|
-
};
|
|
685
|
-
active?: boolean;
|
|
686
|
-
};
|
|
687
687
|
QuizResponseDto: {
|
|
688
688
|
/**
|
|
689
689
|
* @description Quiz data with dynamic keys
|
|
@@ -788,6 +788,8 @@ interface components {
|
|
|
788
788
|
VerifyPhoneResponseDto: {
|
|
789
789
|
/** @description Valid number or not */
|
|
790
790
|
valid: boolean;
|
|
791
|
+
/** @description Landline number or not. Possible values: 1 - YES, 0 - NO, -1 - api not support this feature */
|
|
792
|
+
landline: number;
|
|
791
793
|
/** @description Validation error if exists */
|
|
792
794
|
error: string;
|
|
793
795
|
};
|
|
@@ -892,6 +894,74 @@ interface components {
|
|
|
892
894
|
/** @description Token type */
|
|
893
895
|
type: string;
|
|
894
896
|
};
|
|
897
|
+
ImportDisputesUrlRequestDto: {
|
|
898
|
+
/**
|
|
899
|
+
* @description URL of the CSV file to import
|
|
900
|
+
* @example https://example.com/disputes.csv
|
|
901
|
+
*/
|
|
902
|
+
url: string;
|
|
903
|
+
};
|
|
904
|
+
TrustpilotInviteResponseDto: {
|
|
905
|
+
/** @example 1 */
|
|
906
|
+
id: number;
|
|
907
|
+
/** @example ext-456 */
|
|
908
|
+
externalId: string | null;
|
|
909
|
+
/** @example customer@example.com */
|
|
910
|
+
email: string;
|
|
911
|
+
/** @example John Doe */
|
|
912
|
+
name: string | null;
|
|
913
|
+
/**
|
|
914
|
+
* Format: date-time
|
|
915
|
+
* @example 2025-09-09T10:00:00.000Z
|
|
916
|
+
*/
|
|
917
|
+
scheduledAt: string;
|
|
918
|
+
/**
|
|
919
|
+
* Format: date-time
|
|
920
|
+
* @example 2025-09-09T09:00:00.000Z
|
|
921
|
+
*/
|
|
922
|
+
initialScheduledAt: string;
|
|
923
|
+
/**
|
|
924
|
+
* @example pending
|
|
925
|
+
* @enum {string}
|
|
926
|
+
*/
|
|
927
|
+
status: "pending" | "retry" | "sent" | "failed" | "cancelled";
|
|
928
|
+
/** @example false */
|
|
929
|
+
sent: boolean;
|
|
930
|
+
/** @example 0 */
|
|
931
|
+
attempts: number;
|
|
932
|
+
/**
|
|
933
|
+
* Format: date-time
|
|
934
|
+
* @example 2025-09-08T12:00:00.000Z
|
|
935
|
+
*/
|
|
936
|
+
lastAttemptAt: string | null;
|
|
937
|
+
/** @example SMTP error: 550 rejected */
|
|
938
|
+
lastError: string | null;
|
|
939
|
+
/** @example batch-uuid-789 */
|
|
940
|
+
batchId: string | null;
|
|
941
|
+
/** @example 507f191e810c19729de860ea */
|
|
942
|
+
templateId: string | null;
|
|
943
|
+
/**
|
|
944
|
+
* Format: date-time
|
|
945
|
+
* @example 2025-09-08T08:00:00.000Z
|
|
946
|
+
*/
|
|
947
|
+
createdAt: string;
|
|
948
|
+
/**
|
|
949
|
+
* Format: date-time
|
|
950
|
+
* @example 2025-09-08T09:00:00.000Z
|
|
951
|
+
*/
|
|
952
|
+
updatedAt: string;
|
|
953
|
+
};
|
|
954
|
+
PaginatedResponseDtoWithModel: {
|
|
955
|
+
data: components["schemas"]["TrustpilotInviteResponseDto"][];
|
|
956
|
+
/** @example 100 */
|
|
957
|
+
total: number;
|
|
958
|
+
/** @example 1 */
|
|
959
|
+
page: number;
|
|
960
|
+
/** @example 10 */
|
|
961
|
+
limit: number;
|
|
962
|
+
/** @example 10 */
|
|
963
|
+
totalPages: number;
|
|
964
|
+
};
|
|
895
965
|
TaxValueCountryStateRequestDto: {
|
|
896
966
|
/**
|
|
897
967
|
* @description ISO 3166-1 alpha-2 country code (e.g., US, CA)
|
|
@@ -1241,66 +1311,107 @@ interface components {
|
|
|
1241
1311
|
language?: string;
|
|
1242
1312
|
type: string;
|
|
1243
1313
|
};
|
|
1244
|
-
|
|
1245
|
-
/** @example
|
|
1314
|
+
CreateLinkDto: {
|
|
1315
|
+
/** @example Documentation Page */
|
|
1316
|
+
title: string;
|
|
1317
|
+
/** @example https://example.com/page */
|
|
1318
|
+
url: string;
|
|
1319
|
+
/** @example true */
|
|
1320
|
+
active?: boolean;
|
|
1321
|
+
/** @example en */
|
|
1322
|
+
language: string;
|
|
1323
|
+
/** @example Google Drive */
|
|
1324
|
+
source: string;
|
|
1325
|
+
/** @example Project Alpha */
|
|
1326
|
+
project: string;
|
|
1327
|
+
};
|
|
1328
|
+
LinkResponseDto: {
|
|
1329
|
+
/** @description Link ID */
|
|
1246
1330
|
id: number;
|
|
1247
|
-
/** @
|
|
1248
|
-
|
|
1249
|
-
/** @
|
|
1250
|
-
|
|
1251
|
-
/** @
|
|
1252
|
-
|
|
1253
|
-
/**
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1331
|
+
/** @description Link title */
|
|
1332
|
+
title: string;
|
|
1333
|
+
/** @description Target URL */
|
|
1334
|
+
url: string;
|
|
1335
|
+
/** @description Whether the link is active */
|
|
1336
|
+
active: boolean;
|
|
1337
|
+
/** @description Language of the account */
|
|
1338
|
+
language: string;
|
|
1339
|
+
/** @description Source of the link (e.g., google, facebook) */
|
|
1340
|
+
source: string;
|
|
1341
|
+
/** @description Project this link belongs to */
|
|
1342
|
+
project: string;
|
|
1343
|
+
/** @description Spreadsheet URL if applicable */
|
|
1344
|
+
spreadsheet_url?: string;
|
|
1345
|
+
};
|
|
1346
|
+
UpdateLinkDto: {
|
|
1347
|
+
/** @example Documentation Page */
|
|
1348
|
+
title?: string;
|
|
1349
|
+
/** @example https://example.com/page */
|
|
1350
|
+
url?: string;
|
|
1351
|
+
/** @example true */
|
|
1352
|
+
active?: boolean;
|
|
1353
|
+
/** @example en */
|
|
1354
|
+
language?: string;
|
|
1355
|
+
/** @example Google Drive */
|
|
1356
|
+
source?: string;
|
|
1357
|
+
/** @example Project Alpha */
|
|
1358
|
+
project?: string;
|
|
1359
|
+
};
|
|
1360
|
+
CreateLanguageRuleDto: {
|
|
1361
|
+
/** @example 1 */
|
|
1362
|
+
accountId: number;
|
|
1363
|
+
/** @example Greeting Rule */
|
|
1364
|
+
title: string;
|
|
1365
|
+
/** @example en */
|
|
1366
|
+
language: string;
|
|
1263
1367
|
/**
|
|
1264
|
-
* @example
|
|
1368
|
+
* @example contains
|
|
1265
1369
|
* @enum {string}
|
|
1266
1370
|
*/
|
|
1267
|
-
|
|
1268
|
-
/** @example
|
|
1269
|
-
|
|
1270
|
-
/** @example
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1371
|
+
condition_type: "contains" | "equals" | "not_contains";
|
|
1372
|
+
/** @example hello */
|
|
1373
|
+
condition_value: string;
|
|
1374
|
+
/** @example 1 */
|
|
1375
|
+
sort?: number;
|
|
1376
|
+
};
|
|
1377
|
+
LanguageRuleAccountDto: {
|
|
1378
|
+
/** @description Account ID (Link ID) */
|
|
1379
|
+
id: number;
|
|
1380
|
+
/** @description Account source */
|
|
1381
|
+
source: string;
|
|
1382
|
+
/** @description Account language */
|
|
1383
|
+
language: string;
|
|
1384
|
+
};
|
|
1385
|
+
LanguageRuleResponseDto: {
|
|
1386
|
+
/** @description Rule ID */
|
|
1387
|
+
id: number;
|
|
1388
|
+
/** @description Condition type (contains, equals) */
|
|
1389
|
+
condition_type: string;
|
|
1390
|
+
/** @description Condition value (string to match against campaign name) */
|
|
1391
|
+
condition_value: string;
|
|
1392
|
+
/** @description Language code to assign if matched */
|
|
1393
|
+
language: string;
|
|
1394
|
+
/** @description Sort order */
|
|
1395
|
+
sort: number;
|
|
1396
|
+
/** @description Associated account (Link) */
|
|
1397
|
+
account?: components["schemas"]["LanguageRuleAccountDto"];
|
|
1398
|
+
};
|
|
1399
|
+
UpdateLanguageRuleDto: {
|
|
1400
|
+
/** @example 1 */
|
|
1401
|
+
accountId?: number;
|
|
1402
|
+
/** @example Greeting Rule */
|
|
1403
|
+
title?: string;
|
|
1404
|
+
/** @example en */
|
|
1405
|
+
language?: string;
|
|
1288
1406
|
/**
|
|
1289
|
-
*
|
|
1290
|
-
* @
|
|
1407
|
+
* @example contains
|
|
1408
|
+
* @enum {string}
|
|
1291
1409
|
*/
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
data: components["schemas"]["TrustpilotInviteResponseDto"][];
|
|
1296
|
-
/** @example 100 */
|
|
1297
|
-
total: number;
|
|
1410
|
+
condition_type?: "contains" | "equals" | "not_contains";
|
|
1411
|
+
/** @example hello */
|
|
1412
|
+
condition_value?: string;
|
|
1298
1413
|
/** @example 1 */
|
|
1299
|
-
|
|
1300
|
-
/** @example 10 */
|
|
1301
|
-
limit: number;
|
|
1302
|
-
/** @example 10 */
|
|
1303
|
-
totalPages: number;
|
|
1414
|
+
sort?: number;
|
|
1304
1415
|
};
|
|
1305
1416
|
};
|
|
1306
1417
|
responses: never;
|
|
@@ -1399,6 +1510,7 @@ declare const browser: {
|
|
|
1399
1510
|
} | undefined>;
|
|
1400
1511
|
phone: (phone: string) => Promise<{
|
|
1401
1512
|
valid: boolean;
|
|
1513
|
+
landline: number;
|
|
1402
1514
|
error: string;
|
|
1403
1515
|
} | undefined>;
|
|
1404
1516
|
};
|