@epilot/customer-portal-client 0.17.2 → 0.17.3-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/openapi.d.ts CHANGED
@@ -721,10 +721,6 @@ declare namespace Components {
721
721
  number_of_days_before_restriction?: number;
722
722
  }[];
723
723
  allowed_file_extensions?: /* Allowed file extensions for upload */ AllowedFileExtensions;
724
- /**
725
- * Configured Portal extensions
726
- */
727
- extensions?: ExtensionConfig[];
728
724
  }
729
725
  /**
730
726
  * The mapped contact of the portal user
@@ -1433,80 +1429,107 @@ declare namespace Components {
1433
1429
  */
1434
1430
  en: string;
1435
1431
  };
1432
+ /**
1433
+ * Name of the extension.
1434
+ */
1435
+ description: {
1436
+ [name: string]: string;
1437
+ /**
1438
+ * Name of the extension in English.
1439
+ */
1440
+ en: string;
1441
+ };
1436
1442
  /**
1437
1443
  * Version of the extension.
1438
1444
  */
1439
1445
  version: string;
1440
1446
  /**
1441
- * Variables available to the extension configurable by the portal administrator.
1447
+ * Options available to the extension configurable by the portal administrator.
1442
1448
  */
1443
- variables?: {
1449
+ options?: {
1444
1450
  /**
1445
- * Identifier of the variable. Should not change between updates.
1451
+ * Identifier of the option. Should not change between updates.
1446
1452
  */
1447
1453
  id: string;
1448
1454
  /**
1449
- * Name of the variable.
1455
+ * Name of the option.
1450
1456
  */
1451
1457
  name: {
1452
1458
  [name: string]: string;
1453
1459
  /**
1454
- * Name of the variable in English.
1460
+ * Name of the option in English.
1455
1461
  */
1456
1462
  en: string;
1457
1463
  };
1458
1464
  /**
1459
- * Type of the variable.
1465
+ * Type of the option.
1460
1466
  */
1461
1467
  type: "secret";
1462
1468
  /**
1463
- * Description of the variable.
1469
+ * Description of the option.
1464
1470
  */
1465
1471
  description?: {
1466
1472
  [name: string]: string;
1467
1473
  /**
1468
- * Description of the variable in English.
1474
+ * Description of the option in English.
1469
1475
  */
1470
1476
  en: string;
1471
1477
  };
1472
1478
  /**
1473
- * Default value of the variable.
1479
+ * Default value of the option.
1474
1480
  */
1475
1481
  default?: string;
1476
1482
  /**
1477
- * Indicate whether the variable is required.
1483
+ * Indicate whether the option is required.
1478
1484
  */
1479
1485
  required?: boolean;
1480
1486
  }[];
1481
1487
  /**
1482
- * Widgets that can be used by portal administrator.
1488
+ * External links added to the portal.
1483
1489
  */
1484
- widgets?: ({
1485
- /**
1486
- * Identifier of the widget. Should not change between updates.
1487
- */
1488
- id?: string;
1489
- /**
1490
- * Name of the widget.
1491
- */
1492
- name?: {
1493
- [name: string]: string;
1490
+ links?: {
1491
+ type: "seamless";
1492
+ authentication?: {
1494
1493
  /**
1495
- * Name of the widget in English.
1494
+ * HTTP method to use for authentication
1496
1495
  */
1497
- en: string;
1496
+ method?: string;
1497
+ /**
1498
+ * URL to use for authentication. Supports variable interpolation.
1499
+ */
1500
+ url: string;
1501
+ /**
1502
+ * Parameters to append to the URL. Supports variable interpolation.
1503
+ */
1504
+ params?: {
1505
+ [name: string]: string;
1506
+ };
1507
+ /**
1508
+ * Headers to use for authentication. Supports variable interpolation.
1509
+ */
1510
+ headers?: {
1511
+ [name: string]: string;
1512
+ };
1513
+ /**
1514
+ * JSON body to use for authentication. Supports variable interpolation.
1515
+ */
1516
+ body?: {
1517
+ [name: string]: string;
1518
+ };
1498
1519
  };
1499
- /**
1500
- * Description of the widget.
1501
- */
1502
- description?: {
1503
- [name: string]: string;
1520
+ redirect: {
1504
1521
  /**
1505
- * Description of the widget in English.
1522
+ * URL to redirect to. Supports variable interpolation.
1506
1523
  */
1507
- en: string;
1524
+ url?: string;
1525
+ /**
1526
+ * Parameters to append to the URL. Supports variable interpolation.
1527
+ */
1528
+ params?: {
1529
+ [name: string]: string;
1530
+ };
1508
1531
  };
1509
- } & (ExtensionWidgetSeamlessLink))[];
1532
+ }[];
1510
1533
  /**
1511
1534
  * Hooks that influence the behavior of Portal.
1512
1535
  */
@@ -1516,7 +1539,7 @@ declare namespace Components {
1516
1539
  */
1517
1540
  id?: string;
1518
1541
  } & (/**
1519
- * Hook that replaces the built-in registration identifiers check. This hook makes the specified call whenever a user is trying to register to find the corresponding contact. The expected response to the call is:
1542
+ * Hook that replaces the built-in registration identifiers check. This hook makes a POST call whenever a user is trying to register to find the corresponding contact. The expected response to the call is:
1520
1543
  * - 200 with body `{ "contactId": "uuid" }` if exactly one contact is found
1521
1544
  * - 404 if no contact is found or more than contact is found
1522
1545
  *
@@ -1546,96 +1569,97 @@ declare namespace Components {
1546
1569
  id?: string;
1547
1570
  }
1548
1571
  /**
1549
- * Hook that replaces the built-in registration identifiers check. This hook makes the specified call whenever a user is trying to register to find the corresponding contact. The expected response to the call is:
1572
+ * Hook that replaces the built-in registration identifiers check. This hook makes a POST call whenever a user is trying to register to find the corresponding contact. The expected response to the call is:
1550
1573
  * - 200 with body `{ "contactId": "uuid" }` if exactly one contact is found
1551
1574
  * - 404 if no contact is found or more than contact is found
1552
1575
  *
1553
1576
  */
1554
1577
  export interface ExtensionHookRegistrationIdentifiersCheck {
1555
1578
  type: "registrationIdentifiersCheck";
1556
- call: {
1579
+ authentication?: {
1557
1580
  /**
1558
- * URL to call. Supports variable interpolation.
1581
+ * HTTP method to use for authentication
1582
+ */
1583
+ method?: string;
1584
+ /**
1585
+ * URL to use for authentication. Supports variable interpolation.
1559
1586
  */
1560
1587
  url: string;
1561
1588
  /**
1562
- * Parameters to append to the URL.
1589
+ * Parameters to append to the URL. Supports variable interpolation.
1563
1590
  */
1564
1591
  params?: {
1565
1592
  [name: string]: string;
1566
1593
  };
1567
1594
  /**
1568
- * Headers to use. Supports variable interpolation.
1595
+ * Headers to use for authentication. Supports variable interpolation.
1569
1596
  */
1570
- headers: {
1597
+ headers?: {
1571
1598
  [name: string]: string;
1572
1599
  };
1573
- };
1574
- }
1575
- export interface ExtensionWidget {
1576
- /**
1577
- * Identifier of the widget. Should not change between updates.
1578
- */
1579
- id?: string;
1580
- /**
1581
- * Name of the widget.
1582
- */
1583
- name?: {
1584
- [name: string]: string;
1585
1600
  /**
1586
- * Name of the widget in English.
1601
+ * JSON body to use for authentication. Supports variable interpolation.
1587
1602
  */
1588
- en: string;
1603
+ body?: {
1604
+ [name: string]: string;
1605
+ };
1589
1606
  };
1590
- /**
1591
- * Description of the widget.
1592
- */
1593
- description?: {
1594
- [name: string]: string;
1607
+ call: {
1595
1608
  /**
1596
- * Description of the widget in English.
1609
+ * URL to call. Supports variable interpolation.
1597
1610
  */
1598
- en: string;
1611
+ url: string;
1612
+ /**
1613
+ * Parameters to append to the URL. Supports variable interpolation.
1614
+ */
1615
+ params?: {
1616
+ [name: string]: string;
1617
+ };
1618
+ /**
1619
+ * Headers to use. Supports variable interpolation.
1620
+ */
1621
+ headers: {
1622
+ [name: string]: string;
1623
+ };
1599
1624
  };
1600
1625
  }
1601
- export interface ExtensionWidgetSeamlessLink {
1602
- type?: "seamlessLink";
1626
+ export interface ExtensionSeamlessLink {
1627
+ type: "seamless";
1603
1628
  authentication?: {
1604
- type?: "token";
1605
1629
  /**
1606
1630
  * HTTP method to use for authentication
1607
1631
  */
1608
1632
  method?: string;
1609
1633
  /**
1610
- * URL to use for authentication
1634
+ * URL to use for authentication. Supports variable interpolation.
1611
1635
  */
1612
- url?: string;
1636
+ url: string;
1613
1637
  /**
1614
- * Parameters to append to the URL.
1638
+ * Parameters to append to the URL. Supports variable interpolation.
1615
1639
  */
1616
1640
  params?: {
1617
1641
  [name: string]: string;
1618
1642
  };
1619
1643
  /**
1620
- * Headers to use for authentication
1644
+ * Headers to use for authentication. Supports variable interpolation.
1621
1645
  */
1622
1646
  headers?: {
1623
1647
  [name: string]: string;
1624
1648
  };
1625
1649
  /**
1626
- * JSON body to use for authentication
1650
+ * JSON body to use for authentication. Supports variable interpolation.
1627
1651
  */
1628
1652
  body?: {
1629
1653
  [name: string]: string;
1630
1654
  };
1631
1655
  };
1632
- redirect?: {
1656
+ redirect: {
1633
1657
  /**
1634
- * URL to redirect to.
1658
+ * URL to redirect to. Supports variable interpolation.
1635
1659
  */
1636
1660
  url?: string;
1637
1661
  /**
1638
- * Parameters to append to the URL.
1662
+ * Parameters to append to the URL. Supports variable interpolation.
1639
1663
  */
1640
1664
  params?: {
1641
1665
  [name: string]: string;
@@ -2496,10 +2520,6 @@ declare namespace Components {
2496
2520
  number_of_days_before_restriction?: number;
2497
2521
  }[];
2498
2522
  allowed_file_extensions?: /* Allowed file extensions for upload */ AllowedFileExtensions;
2499
- /**
2500
- * Configured Portal extensions
2501
- */
2502
- extensions?: ExtensionConfig[];
2503
2523
  /**
2504
2524
  * ID of the organization
2505
2525
  * example:
@@ -2903,6 +2923,10 @@ declare namespace Components {
2903
2923
  de?: string;
2904
2924
  };
2905
2925
  }[];
2926
+ /**
2927
+ * Configured Portal extensions
2928
+ */
2929
+ extensions?: ExtensionConfig[];
2906
2930
  /**
2907
2931
  * Default 360 user to notify upon an internal notification
2908
2932
  */
@@ -2935,6 +2959,10 @@ declare namespace Components {
2935
2959
  de?: string;
2936
2960
  };
2937
2961
  }[];
2962
+ /**
2963
+ * Configured Portal extensions
2964
+ */
2965
+ extensions?: ExtensionConfig[];
2938
2966
  /**
2939
2967
  * Default 360 user to notify upon an internal notification
2940
2968
  */
@@ -3222,10 +3250,6 @@ declare namespace Components {
3222
3250
  number_of_days_before_restriction?: number;
3223
3251
  }[];
3224
3252
  allowed_file_extensions?: /* Allowed file extensions for upload */ AllowedFileExtensions;
3225
- /**
3226
- * Configured Portal extensions
3227
- */
3228
- extensions?: ExtensionConfig[];
3229
3253
  }
3230
3254
  export interface UpsertPortalWidget {
3231
3255
  widgets: PortalWidget[];
@@ -4989,10 +5013,6 @@ declare namespace Paths {
4989
5013
  number_of_days_before_restriction?: number;
4990
5014
  }[];
4991
5015
  allowed_file_extensions?: /* Allowed file extensions for upload */ Components.Schemas.AllowedFileExtensions;
4992
- /**
4993
- * Configured Portal extensions
4994
- */
4995
- extensions?: Components.Schemas.ExtensionConfig[];
4996
5016
  /**
4997
5017
  * ID of the organization
4998
5018
  * example:
@@ -7609,8 +7629,7 @@ export type Extension = Components.Schemas.Extension;
7609
7629
  export type ExtensionConfig = Components.Schemas.ExtensionConfig;
7610
7630
  export type ExtensionHook = Components.Schemas.ExtensionHook;
7611
7631
  export type ExtensionHookRegistrationIdentifiersCheck = Components.Schemas.ExtensionHookRegistrationIdentifiersCheck;
7612
- export type ExtensionWidget = Components.Schemas.ExtensionWidget;
7613
- export type ExtensionWidgetSeamlessLink = Components.Schemas.ExtensionWidgetSeamlessLink;
7632
+ export type ExtensionSeamlessLink = Components.Schemas.ExtensionSeamlessLink;
7614
7633
  export type ExtraSchemaAttributes = Components.Schemas.ExtraSchemaAttributes;
7615
7634
  export type FailedRuleErrorResp = Components.Schemas.FailedRuleErrorResp;
7616
7635
  export type File = Components.Schemas.File;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/customer-portal-client",
3
- "version": "0.17.2",
3
+ "version": "0.17.3-rc.0",
4
4
  "description": "API Client for epilot portal API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",