@uniformdev/canvas 17.4.1-alpha.1 → 17.4.1-alpha.250

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.
@@ -423,12 +423,16 @@ interface external$4 {
423
423
  ttl?: number;
424
424
  /** @description A key for the resource data cache purging. */
425
425
  purgeKey?: string;
426
+ /** @description URL to a custom badge icon for the Uniform dashboard for this data type. If not set falls back to the data connector or integration icons. */
427
+ badgeIconUrl?: string;
428
+ /** @description HTTP headers to pass with requests to the data type. Merged with headers from the data source, overriding identical keys. */
426
429
  headers?: {
427
430
  [key: string]: string;
428
431
  } | {
429
432
  key: string;
430
433
  value: string;
431
434
  }[];
435
+ /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
432
436
  parameters?: {
433
437
  [key: string]: string;
434
438
  } | {
@@ -454,23 +458,22 @@ interface external$4 {
454
458
  };
455
459
  /**
456
460
  * @deprecated
457
- * @description Defines the shape of a data variable on a Data Connector or Data Type
461
+ * @description Defines the shape of a data variable on a Data Source or Data Type
458
462
  */
459
463
  DataVariableDefinition: {
460
464
  /** @description Display name of the data variable */
461
465
  displayName?: string;
466
+ /** @description Explanatory text that is provided to the data resource editor to explain what this variable does. */
467
+ helpText?: string;
462
468
  /**
463
- * @description Type of the data variable
469
+ * @description Type of the data variable. Optionally used as a point of reference for custom integrations to decide how to render an editor for a variable.
464
470
  * @default text
465
471
  */
466
- type: string;
472
+ type?: string;
467
473
  /** @description Default value of the data variable */
468
474
  default: string;
469
- /**
470
- * @description Where the variable value is set. Static = set to static value by the author. Dynamic = set to a dynamic value by a runtime API request from the frontend (default is used in the editor).
471
- * @enum {string}
472
- */
473
- setBy: "static" | "dynamic";
475
+ /** @description Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list. */
476
+ order?: number;
474
477
  };
475
478
  /**
476
479
  * @deprecated
@@ -786,12 +789,16 @@ interface components$1 {
786
789
  ttl?: number;
787
790
  /** @description A key for the resource data cache purging. */
788
791
  purgeKey?: string;
792
+ /** @description URL to a custom badge icon for the Uniform dashboard for this data type. If not set falls back to the data connector or integration icons. */
793
+ badgeIconUrl?: string;
794
+ /** @description HTTP headers to pass with requests to the data type. Merged with headers from the data source, overriding identical keys. */
789
795
  headers?: {
790
796
  [key: string]: string;
791
797
  } | {
792
798
  key: string;
793
799
  value: string;
794
800
  }[];
801
+ /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
795
802
  parameters?: {
796
803
  [key: string]: string;
797
804
  } | {
@@ -817,23 +824,22 @@ interface components$1 {
817
824
  };
818
825
  /**
819
826
  * @deprecated
820
- * @description Defines the shape of a data variable on a Data Connector or Data Type
827
+ * @description Defines the shape of a data variable on a Data Source or Data Type
821
828
  */
822
829
  DataVariableDefinition: {
823
830
  /** @description Display name of the data variable */
824
831
  displayName?: string;
832
+ /** @description Explanatory text that is provided to the data resource editor to explain what this variable does. */
833
+ helpText?: string;
825
834
  /**
826
- * @description Type of the data variable
835
+ * @description Type of the data variable. Optionally used as a point of reference for custom integrations to decide how to render an editor for a variable.
827
836
  * @default text
828
837
  */
829
- type: string;
838
+ type?: string;
830
839
  /** @description Default value of the data variable */
831
840
  default: string;
832
- /**
833
- * @description Where the variable value is set. Static = set to static value by the author. Dynamic = set to a dynamic value by a runtime API request from the frontend (default is used in the editor).
834
- * @enum {string}
835
- */
836
- setBy: "static" | "dynamic";
841
+ /** @description Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list. */
842
+ order?: number;
837
843
  };
838
844
  /**
839
845
  * @deprecated
@@ -1440,12 +1446,16 @@ interface external$3 {
1440
1446
  ttl?: number;
1441
1447
  /** @description A key for the resource data cache purging. */
1442
1448
  purgeKey?: string;
1449
+ /** @description URL to a custom badge icon for the Uniform dashboard for this data type. If not set falls back to the data connector or integration icons. */
1450
+ badgeIconUrl?: string;
1451
+ /** @description HTTP headers to pass with requests to the data type. Merged with headers from the data source, overriding identical keys. */
1443
1452
  headers?: {
1444
1453
  [key: string]: string;
1445
1454
  } | {
1446
1455
  key: string;
1447
1456
  value: string;
1448
1457
  }[];
1458
+ /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
1449
1459
  parameters?: {
1450
1460
  [key: string]: string;
1451
1461
  } | {
@@ -1471,23 +1481,22 @@ interface external$3 {
1471
1481
  };
1472
1482
  /**
1473
1483
  * @deprecated
1474
- * @description Defines the shape of a data variable on a Data Connector or Data Type
1484
+ * @description Defines the shape of a data variable on a Data Source or Data Type
1475
1485
  */
1476
1486
  DataVariableDefinition: {
1477
1487
  /** @description Display name of the data variable */
1478
1488
  displayName?: string;
1489
+ /** @description Explanatory text that is provided to the data resource editor to explain what this variable does. */
1490
+ helpText?: string;
1479
1491
  /**
1480
- * @description Type of the data variable
1492
+ * @description Type of the data variable. Optionally used as a point of reference for custom integrations to decide how to render an editor for a variable.
1481
1493
  * @default text
1482
1494
  */
1483
- type: string;
1495
+ type?: string;
1484
1496
  /** @description Default value of the data variable */
1485
1497
  default: string;
1486
- /**
1487
- * @description Where the variable value is set. Static = set to static value by the author. Dynamic = set to a dynamic value by a runtime API request from the frontend (default is used in the editor).
1488
- * @enum {string}
1489
- */
1490
- setBy: "static" | "dynamic";
1498
+ /** @description Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list. */
1499
+ order?: number;
1491
1500
  };
1492
1501
  /**
1493
1502
  * @deprecated
@@ -1576,6 +1585,101 @@ declare type CanvasDefinitions = {
1576
1585
  compositions?: Array<CompositionGetResponse>;
1577
1586
  dataTypes?: Array<DataType>;
1578
1587
  };
1588
+ /** Defines shared parameters for requests getting a single composition */
1589
+ declare type CompositionGetOneSharedParameters = Pick<CompositionGetParameters, 'state' | 'skipEnhance' | 'skipPatternResolution' | 'withComponentIDs' | 'withUIStatus' | 'withTotalCount'>;
1590
+ /** Defines exact parameters for specific requests getting a single composition */
1591
+ declare type CompositionGetByNodePathParameters = CompositionGetOneSharedParameters & Pick<CompositionGetParameters, 'projectMapNodePath' | 'projectMapId'>;
1592
+ declare type CompositionGetByNodeIdParameters = CompositionGetOneSharedParameters & Pick<CompositionGetParameters, 'projectMapNodeId' | 'projectMapId'>;
1593
+ declare type CompositionGetBySlugParameters = CompositionGetOneSharedParameters & Pick<CompositionGetParameters, 'slug'>;
1594
+ declare type CompositionGetByIdParameters = CompositionGetOneSharedParameters & Pick<CompositionGetParameters, 'compositionId'>;
1595
+ /** Switches for data resolution */
1596
+ declare type DataResolutionOption = {
1597
+ unstable_resolveData?: boolean;
1598
+ };
1599
+ declare type DataResolutionOptionNegative = {
1600
+ unstable_resolveData?: false;
1601
+ };
1602
+ declare type DataResolutionOptionPositive = {
1603
+ unstable_resolveData: true;
1604
+ };
1605
+ declare type DataResolutionParameters = {
1606
+ /**
1607
+ * Adds additional diagnostics (`dataDiagnostics`) to the response containing timings and resolved datas for the composition.
1608
+ * Because this adds a lot of data to the response, we do not recommend using this unless diagnosing performance issues.
1609
+ */
1610
+ unstable_dataDiagnostics?: boolean;
1611
+ /**
1612
+ * Pass dynamic variables to the composition that are required for resolving bindings and datas,
1613
+ * such as language, detail page ID, etc.
1614
+ */
1615
+ unstable_dynamicVariables?: Record<string, string>;
1616
+ };
1617
+ /** Types of issue that can occur when fetching composition data */
1618
+ declare type CompositionIssue = CompositionPatternIssue | DataResourceIssue | DataElementBindingIssue | DataResourceVariableIssue | DataResolutionConfigIssue;
1619
+ declare type CompositionIssueCore = {
1620
+ componentPath: string;
1621
+ componentType: string;
1622
+ message: string;
1623
+ };
1624
+ /** An error that occured resolving a pattern that is referenced on the composition */
1625
+ declare type CompositionPatternIssue = CompositionIssueCore & {
1626
+ type: 'pattern';
1627
+ code: NonNullable<ComponentInstance['_patternError']>;
1628
+ };
1629
+ /** An error while binding a data element from a data resource to a component parameter (i.e. a missing property in the data resource) */
1630
+ declare type DataElementBindingIssue = CompositionIssueCore & {
1631
+ type: 'binding';
1632
+ parameterName: string;
1633
+ };
1634
+ /** An error that occurred fetching a data defined on the composition or a pattern within */
1635
+ declare type DataResourceIssue = CompositionIssueCore & {
1636
+ type: 'data';
1637
+ dataName: string;
1638
+ dataType: string;
1639
+ };
1640
+ /** An issue that occurred while binding dynamic variables to composition data resources */
1641
+ declare type DataResourceVariableIssue = CompositionIssueCore & {
1642
+ type: 'variable';
1643
+ variableName: string;
1644
+ };
1645
+ declare type DataResolutionConfigIssue = {
1646
+ message: string;
1647
+ type: 'config';
1648
+ };
1649
+ /** Diagnostic data about the load performance of attached composition datas */
1650
+ declare type CompositionDataDiagnostic = {
1651
+ componentPath: string;
1652
+ dataType: string;
1653
+ dataName: string;
1654
+ performance: {
1655
+ cacheHit: boolean;
1656
+ total: number;
1657
+ retryCount: number;
1658
+ retryDelay: number;
1659
+ };
1660
+ data: unknown;
1661
+ };
1662
+ /** Response as it comes from the data resolution endpoint */
1663
+ declare type CompositionResolvedGetResponse = CompositionGetResponse & {
1664
+ /**
1665
+ * Copies of resolved data and how long it took to resolve each data.
1666
+ * Only set when dataDiagnostics=true is passed to the options.
1667
+ */
1668
+ dataDiagnostics?: Array<CompositionDataDiagnostic>;
1669
+ /**
1670
+ * Any failures to bind to data that occured on bindings marked 'must exist'.
1671
+ * If no failures occurred, this will be undefined.
1672
+ * NOTE: No exception will be thrown if this type of error occurs. You must inspect this property if you care to cause client errors.
1673
+ */
1674
+ errors?: Array<CompositionIssue>;
1675
+ /**
1676
+ * Any failures to bind to data that occurred on optional bindings. In most cases, these are only informational (i.e. data is bound to a property that does not always exist)
1677
+ * If no failures occurred, this will be undefined.
1678
+ */
1679
+ warnings?: Array<CompositionIssue>;
1680
+ };
1681
+ /** All valid response types */
1682
+ declare type CompositionGetValidResponses = CompositionGetResponse | CompositionResolvedGetResponse;
1579
1683
 
1580
1684
  /**
1581
1685
  * This file was auto-generated by openapi-typescript.
@@ -1974,12 +2078,16 @@ interface external$2 {
1974
2078
  ttl?: number;
1975
2079
  /** @description A key for the resource data cache purging. */
1976
2080
  purgeKey?: string;
2081
+ /** @description URL to a custom badge icon for the Uniform dashboard for this data type. If not set falls back to the data connector or integration icons. */
2082
+ badgeIconUrl?: string;
2083
+ /** @description HTTP headers to pass with requests to the data type. Merged with headers from the data source, overriding identical keys. */
1977
2084
  headers?: {
1978
2085
  [key: string]: string;
1979
2086
  } | {
1980
2087
  key: string;
1981
2088
  value: string;
1982
2089
  }[];
2090
+ /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
1983
2091
  parameters?: {
1984
2092
  [key: string]: string;
1985
2093
  } | {
@@ -2005,23 +2113,22 @@ interface external$2 {
2005
2113
  };
2006
2114
  /**
2007
2115
  * @deprecated
2008
- * @description Defines the shape of a data variable on a Data Connector or Data Type
2116
+ * @description Defines the shape of a data variable on a Data Source or Data Type
2009
2117
  */
2010
2118
  DataVariableDefinition: {
2011
2119
  /** @description Display name of the data variable */
2012
2120
  displayName?: string;
2121
+ /** @description Explanatory text that is provided to the data resource editor to explain what this variable does. */
2122
+ helpText?: string;
2013
2123
  /**
2014
- * @description Type of the data variable
2124
+ * @description Type of the data variable. Optionally used as a point of reference for custom integrations to decide how to render an editor for a variable.
2015
2125
  * @default text
2016
2126
  */
2017
- type: string;
2127
+ type?: string;
2018
2128
  /** @description Default value of the data variable */
2019
2129
  default: string;
2020
- /**
2021
- * @description Where the variable value is set. Static = set to static value by the author. Dynamic = set to a dynamic value by a runtime API request from the frontend (default is used in the editor).
2022
- * @enum {string}
2023
- */
2024
- setBy: "static" | "dynamic";
2130
+ /** @description Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list. */
2131
+ order?: number;
2025
2132
  };
2026
2133
  /**
2027
2134
  * @deprecated
@@ -2455,12 +2562,16 @@ interface external$1 {
2455
2562
  ttl?: number;
2456
2563
  /** @description A key for the resource data cache purging. */
2457
2564
  purgeKey?: string;
2565
+ /** @description URL to a custom badge icon for the Uniform dashboard for this data type. If not set falls back to the data connector or integration icons. */
2566
+ badgeIconUrl?: string;
2567
+ /** @description HTTP headers to pass with requests to the data type. Merged with headers from the data source, overriding identical keys. */
2458
2568
  headers?: {
2459
2569
  [key: string]: string;
2460
2570
  } | {
2461
2571
  key: string;
2462
2572
  value: string;
2463
2573
  }[];
2574
+ /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
2464
2575
  parameters?: {
2465
2576
  [key: string]: string;
2466
2577
  } | {
@@ -2486,23 +2597,22 @@ interface external$1 {
2486
2597
  };
2487
2598
  /**
2488
2599
  * @deprecated
2489
- * @description Defines the shape of a data variable on a Data Connector or Data Type
2600
+ * @description Defines the shape of a data variable on a Data Source or Data Type
2490
2601
  */
2491
2602
  DataVariableDefinition: {
2492
2603
  /** @description Display name of the data variable */
2493
2604
  displayName?: string;
2605
+ /** @description Explanatory text that is provided to the data resource editor to explain what this variable does. */
2606
+ helpText?: string;
2494
2607
  /**
2495
- * @description Type of the data variable
2608
+ * @description Type of the data variable. Optionally used as a point of reference for custom integrations to decide how to render an editor for a variable.
2496
2609
  * @default text
2497
2610
  */
2498
- type: string;
2611
+ type?: string;
2499
2612
  /** @description Default value of the data variable */
2500
2613
  default: string;
2501
- /**
2502
- * @description Where the variable value is set. Static = set to static value by the author. Dynamic = set to a dynamic value by a runtime API request from the frontend (default is used in the editor).
2503
- * @enum {string}
2504
- */
2505
- setBy: "static" | "dynamic";
2614
+ /** @description Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list. */
2615
+ order?: number;
2506
2616
  };
2507
2617
  /**
2508
2618
  * @deprecated
@@ -2893,12 +3003,16 @@ interface external {
2893
3003
  ttl?: number;
2894
3004
  /** @description A key for the resource data cache purging. */
2895
3005
  purgeKey?: string;
3006
+ /** @description URL to a custom badge icon for the Uniform dashboard for this data type. If not set falls back to the data connector or integration icons. */
3007
+ badgeIconUrl?: string;
3008
+ /** @description HTTP headers to pass with requests to the data type. Merged with headers from the data source, overriding identical keys. */
2896
3009
  headers?: {
2897
3010
  [key: string]: string;
2898
3011
  } | {
2899
3012
  key: string;
2900
3013
  value: string;
2901
3014
  }[];
3015
+ /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
2902
3016
  parameters?: {
2903
3017
  [key: string]: string;
2904
3018
  } | {
@@ -2924,23 +3038,22 @@ interface external {
2924
3038
  };
2925
3039
  /**
2926
3040
  * @deprecated
2927
- * @description Defines the shape of a data variable on a Data Connector or Data Type
3041
+ * @description Defines the shape of a data variable on a Data Source or Data Type
2928
3042
  */
2929
3043
  DataVariableDefinition: {
2930
3044
  /** @description Display name of the data variable */
2931
3045
  displayName?: string;
3046
+ /** @description Explanatory text that is provided to the data resource editor to explain what this variable does. */
3047
+ helpText?: string;
2932
3048
  /**
2933
- * @description Type of the data variable
3049
+ * @description Type of the data variable. Optionally used as a point of reference for custom integrations to decide how to render an editor for a variable.
2934
3050
  * @default text
2935
3051
  */
2936
- type: string;
3052
+ type?: string;
2937
3053
  /** @description Default value of the data variable */
2938
3054
  default: string;
2939
- /**
2940
- * @description Where the variable value is set. Static = set to static value by the author. Dynamic = set to a dynamic value by a runtime API request from the frontend (default is used in the editor).
2941
- * @enum {string}
2942
- */
2943
- setBy: "static" | "dynamic";
3055
+ /** @description Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list. */
3056
+ order?: number;
2944
3057
  };
2945
3058
  /**
2946
3059
  * @deprecated
@@ -3027,4 +3140,4 @@ declare global {
3027
3140
  */
3028
3141
  declare function createEventBus(): Promise<PreviewEventBus | undefined>;
3029
3142
 
3030
- export { CreatingComponentDefinition as A, CompositionGetOrderBy as B, ComponentInstance as C, DataSourceGetParameters as D, CompositionUIStatus as E, CompositionGetListResponse as F, CompositionAPIResponse as G, CompositionAPIDeleteRequest as H, CompositionListAPIResponse as I, CompositionAPIOptions as J, DataElementConnectionDefinition as K, DataResourceVariables as L, DataResourceDefinitions as M, DataResourceDefinition as N, CanvasDefinitions as O, PreviewEventBus as P, DataSourceGetResponse as Q, RootComponentInstance as R, DataSourcesGetResponse as S, DataType as T, DataSource as U, DataSourceInfo as V, DataVariableDefinition as W, ChannelSubscription as X, createEventBus as Y, ComponentParameter as a, CompositionGetParameters as b, CompositionPutParameters as c, CompositionDeleteParameters as d, ComponentDefinitionGetParameters as e, ComponentDefinitionPutParameters as f, ComponentDefinitionDeleteParameters as g, DataSourcesGetParameters as h, DataSourcePutParameters as i, DataSourceDeleteParameters as j, DataTypeGetParameters as k, DataTypeGetResponse as l, DataTypePutParameters as m, DataTypeDeleteParameters as n, CompositionGetResponse as o, ComponentDefinitionGetResponse as p, ComponentDefinitionAPIResponse as q, ComponentDefinitionAPIPutRequest as r, ComponentDefinitionAPIDeleteRequest as s, ComponentDefinitionListAPIOptions as t, ComponentDefinitionParameter as u, ComponentDefinitionVariant as v, ComponentDefinitionSlugSettings as w, ComponentDefinitionSlot as x, ComponentDefinitionPermission as y, ComponentDefinition as z };
3143
+ export { CompositionIssue as $, ComponentDefinitionAPIResponse as A, ComponentDefinitionAPIPutRequest as B, ComponentInstance as C, DataResolutionOptionNegative as D, ComponentDefinitionAPIDeleteRequest as E, ComponentDefinitionListAPIOptions as F, ComponentDefinitionParameter as G, ComponentDefinitionVariant as H, ComponentDefinitionSlugSettings as I, ComponentDefinitionSlot as J, ComponentDefinitionPermission as K, ComponentDefinition as L, CreatingComponentDefinition as M, CompositionGetOrderBy as N, CompositionUIStatus as O, PreviewEventBus as P, CompositionGetListResponse as Q, RootComponentInstance as R, CompositionAPIResponse as S, CompositionAPIDeleteRequest as T, CompositionListAPIResponse as U, CompositionAPIOptions as V, DataElementConnectionDefinition as W, DataResourceVariables as X, DataResourceDefinitions as Y, DataResourceDefinition as Z, CanvasDefinitions as _, ComponentParameter as a, CompositionPatternIssue as a0, DataElementBindingIssue as a1, DataResourceIssue as a2, DataResourceVariableIssue as a3, DataResolutionConfigIssue as a4, CompositionDataDiagnostic as a5, DataSourceGetResponse as a6, DataSourcesGetResponse as a7, DataType as a8, DataSource as a9, DataSourceInfo as aa, DataVariableDefinition as ab, ChannelSubscription as ac, createEventBus as ad, CompositionGetParameters as b, CompositionGetByNodePathParameters as c, CompositionGetResponse as d, DataResolutionOptionPositive as e, DataResolutionParameters as f, CompositionResolvedGetResponse as g, CompositionGetValidResponses as h, DataResolutionOption as i, CompositionGetByNodeIdParameters as j, CompositionGetBySlugParameters as k, CompositionGetByIdParameters as l, CompositionPutParameters as m, CompositionDeleteParameters as n, ComponentDefinitionGetParameters as o, ComponentDefinitionPutParameters as p, ComponentDefinitionDeleteParameters as q, DataSourceGetParameters as r, DataSourcesGetParameters as s, DataSourcePutParameters as t, DataSourceDeleteParameters as u, DataTypeGetParameters as v, DataTypeGetResponse as w, DataTypePutParameters as x, DataTypeDeleteParameters as y, ComponentDefinitionGetResponse as z };