@uniformdev/canvas 17.4.0 → 17.4.1-alpha.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.
@@ -471,6 +471,8 @@ interface external$4 {
471
471
  * @enum {string}
472
472
  */
473
473
  setBy: "static" | "dynamic";
474
+ /** @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. */
475
+ order?: number;
474
476
  };
475
477
  /**
476
478
  * @deprecated
@@ -834,6 +836,8 @@ interface components$1 {
834
836
  * @enum {string}
835
837
  */
836
838
  setBy: "static" | "dynamic";
839
+ /** @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. */
840
+ order?: number;
837
841
  };
838
842
  /**
839
843
  * @deprecated
@@ -1488,6 +1492,8 @@ interface external$3 {
1488
1492
  * @enum {string}
1489
1493
  */
1490
1494
  setBy: "static" | "dynamic";
1495
+ /** @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. */
1496
+ order?: number;
1491
1497
  };
1492
1498
  /**
1493
1499
  * @deprecated
@@ -1576,6 +1582,97 @@ declare type CanvasDefinitions = {
1576
1582
  compositions?: Array<CompositionGetResponse>;
1577
1583
  dataTypes?: Array<DataType>;
1578
1584
  };
1585
+ /** Defines shared parameters for requests getting a single composition */
1586
+ declare type CompositionGetOneSharedParameters = Pick<CompositionGetParameters, 'state' | 'skipEnhance' | 'skipPatternResolution' | 'withComponentIDs' | 'withUIStatus' | 'withTotalCount'>;
1587
+ /** Defines exact parameters for specific requests getting a single composition */
1588
+ declare type CompositionGetByNodePathParameters = CompositionGetOneSharedParameters & Pick<CompositionGetParameters, 'projectMapNodePath' | 'projectMapId'>;
1589
+ declare type CompositionGetByNodeIdParameters = CompositionGetOneSharedParameters & Pick<CompositionGetParameters, 'projectMapNodeId' | 'projectMapId'>;
1590
+ declare type CompositionGetBySlugParameters = CompositionGetOneSharedParameters & Pick<CompositionGetParameters, 'slug'>;
1591
+ declare type CompositionGetByIdParameters = CompositionGetOneSharedParameters & Pick<CompositionGetParameters, 'compositionId'>;
1592
+ /** Switches for data resolution */
1593
+ declare type DataResolutionOption = {
1594
+ unstable_resolveData?: boolean;
1595
+ };
1596
+ declare type DataResolutionOptionNegative = {
1597
+ unstable_resolveData?: false;
1598
+ };
1599
+ declare type DataResolutionOptionPositive = {
1600
+ unstable_resolveData: true;
1601
+ };
1602
+ declare type DataResolutionParameters = {
1603
+ /**
1604
+ * Adds additional diagnostics (`dataDiagnostics`) to the response containing timings and resolved datas for the composition.
1605
+ * Because this adds a lot of data to the response, we do not recommend using this unless diagnosing performance issues.
1606
+ */
1607
+ unstable_dataDiagnostics?: boolean;
1608
+ /**
1609
+ * Pass dynamic variables to the composition that are required for resolving bindings and datas,
1610
+ * such as language, detail page ID, etc.
1611
+ */
1612
+ unstable_dynamicVariables?: Record<string, string>;
1613
+ };
1614
+ /** Types of issue that can occur when fetching composition data */
1615
+ declare type CompositionIssue = CompositionPatternIssue | DataResourceIssue | DataElementBindingIssue | DataResourceVariableIssue;
1616
+ declare type CompositionIssueCore = {
1617
+ componentPath: string;
1618
+ componentType: string;
1619
+ message: string;
1620
+ };
1621
+ /** An error that occured resolving a pattern that is referenced on the composition */
1622
+ declare type CompositionPatternIssue = CompositionIssueCore & {
1623
+ type: 'pattern';
1624
+ code: NonNullable<ComponentInstance['_patternError']>;
1625
+ };
1626
+ /** An error while binding a data element from a data resource to a component parameter (i.e. a missing property in the data resource) */
1627
+ declare type DataElementBindingIssue = CompositionIssueCore & {
1628
+ type: 'binding';
1629
+ parameterName: string;
1630
+ };
1631
+ /** An error that occurred fetching a data defined on the composition or a pattern within */
1632
+ declare type DataResourceIssue = CompositionIssueCore & {
1633
+ type: 'data';
1634
+ dataName: string;
1635
+ dataType: string;
1636
+ };
1637
+ /** An issue that occurred while binding dynamic variables to composition data resources */
1638
+ declare type DataResourceVariableIssue = CompositionIssueCore & {
1639
+ type: 'variable';
1640
+ variableName: string;
1641
+ };
1642
+ /** Diagnostic data about the load performance of attached composition datas */
1643
+ declare type CompositionDataDiagnostic = {
1644
+ componentPath: string;
1645
+ dataType: string;
1646
+ dataName: string;
1647
+ performance: {
1648
+ cacheHit: boolean;
1649
+ total: number;
1650
+ retryCount: number;
1651
+ retryDelay: number;
1652
+ };
1653
+ data: unknown;
1654
+ };
1655
+ /** Response as it comes from the data resolution endpoint */
1656
+ declare type CompositionResolvedGetResponse = CompositionGetResponse & {
1657
+ /**
1658
+ * Copies of resolved data and how long it took to resolve each data.
1659
+ * Only set when dataDiagnostics=true is passed to the options.
1660
+ */
1661
+ dataDiagnostics?: Array<CompositionDataDiagnostic>;
1662
+ /**
1663
+ * Any failures to bind to data that occured on bindings marked 'must exist'.
1664
+ * If no failures occurred, this will be undefined.
1665
+ * NOTE: No exception will be thrown if this type of error occurs. You must inspect this property if you care to cause client errors.
1666
+ */
1667
+ errors?: Array<CompositionIssue>;
1668
+ /**
1669
+ * 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)
1670
+ * If no failures occurred, this will be undefined.
1671
+ */
1672
+ warnings?: Array<CompositionIssue>;
1673
+ };
1674
+ /** All valid response types */
1675
+ declare type CompositionGetValidResponses = CompositionGetResponse | CompositionResolvedGetResponse;
1579
1676
 
1580
1677
  /**
1581
1678
  * This file was auto-generated by openapi-typescript.
@@ -2022,6 +2119,8 @@ interface external$2 {
2022
2119
  * @enum {string}
2023
2120
  */
2024
2121
  setBy: "static" | "dynamic";
2122
+ /** @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. */
2123
+ order?: number;
2025
2124
  };
2026
2125
  /**
2027
2126
  * @deprecated
@@ -2503,6 +2602,8 @@ interface external$1 {
2503
2602
  * @enum {string}
2504
2603
  */
2505
2604
  setBy: "static" | "dynamic";
2605
+ /** @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. */
2606
+ order?: number;
2506
2607
  };
2507
2608
  /**
2508
2609
  * @deprecated
@@ -2941,6 +3042,8 @@ interface external {
2941
3042
  * @enum {string}
2942
3043
  */
2943
3044
  setBy: "static" | "dynamic";
3045
+ /** @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. */
3046
+ order?: number;
2944
3047
  };
2945
3048
  /**
2946
3049
  * @deprecated
@@ -3027,4 +3130,4 @@ declare global {
3027
3130
  */
3028
3131
  declare function createEventBus(): Promise<PreviewEventBus | undefined>;
3029
3132
 
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 };
3133
+ 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, CompositionDataDiagnostic as a4, DataSourceGetResponse as a5, DataSourcesGetResponse as a6, DataType as a7, DataSource as a8, DataSourceInfo as a9, DataVariableDefinition as aa, ChannelSubscription as ab, createEventBus as ac, 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 };