@uniformdev/canvas 19.35.2 → 19.36.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/index.d.mts +9320 -0
- package/dist/index.d.ts +1068 -65
- package/dist/index.esm.js +53 -8
- package/dist/index.js +58 -11
- package/dist/index.mjs +53 -8
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
@@ -105,7 +105,7 @@ interface components$4 {
|
|
105
105
|
/** @description Friendly name of the component definition */
|
106
106
|
name: string;
|
107
107
|
/**
|
108
|
-
* @description Icon name
|
108
|
+
* @description Icon name for the component definition (e.g. 'screen')
|
109
109
|
* @default screen
|
110
110
|
*/
|
111
111
|
icon?: string;
|
@@ -123,6 +123,22 @@ interface components$4 {
|
|
123
123
|
canBeComposition?: boolean;
|
124
124
|
/** @description The parameters for this component. Parameters are key-value pairs that can be anything from text values to links to CMS entries. */
|
125
125
|
parameters?: components$4["schemas"]["ComponentDefinitionParameter"][];
|
126
|
+
/**
|
127
|
+
* Format: uuid
|
128
|
+
* @description Reference to the category this component definition belongs to
|
129
|
+
* @default null
|
130
|
+
*/
|
131
|
+
categoryId?: string | null;
|
132
|
+
/**
|
133
|
+
* @description Description of the component definition
|
134
|
+
* @default null
|
135
|
+
*/
|
136
|
+
description?: string;
|
137
|
+
/**
|
138
|
+
* @description Description of the component definition
|
139
|
+
* @default null
|
140
|
+
*/
|
141
|
+
previewImageUrl?: string;
|
126
142
|
/**
|
127
143
|
* @description if this component uses team permissions or custom permissions
|
128
144
|
* @default true
|
@@ -466,6 +482,21 @@ interface components$4 {
|
|
466
482
|
DataResourceVariables: {
|
467
483
|
[key: string]: string;
|
468
484
|
};
|
485
|
+
/** @description Category for tagging canvas entities */
|
486
|
+
Category: {
|
487
|
+
/**
|
488
|
+
* Format: uuid
|
489
|
+
* @description Unique identifier for the category
|
490
|
+
*/
|
491
|
+
id: string;
|
492
|
+
/** @description Display name of the category */
|
493
|
+
name: string;
|
494
|
+
/**
|
495
|
+
* @description Sets the order of the category when displayed in a list with other categories. If not set, the order defaults to alphabetical with any explicitly set orders first in the list.
|
496
|
+
* @default 0
|
497
|
+
*/
|
498
|
+
order?: number;
|
499
|
+
};
|
469
500
|
/** @description Project map node information related to a component. */
|
470
501
|
CompositionProjectMapNodeInfo: {
|
471
502
|
/**
|
@@ -484,25 +515,696 @@ interface components$4 {
|
|
484
515
|
};
|
485
516
|
}
|
486
517
|
|
518
|
+
/**
|
519
|
+
* This file was auto-generated by openapi-typescript.
|
520
|
+
* Do not make direct changes to the file.
|
521
|
+
*/
|
522
|
+
interface paths$9 {
|
523
|
+
"/api/v1/canvas-definitions": {
|
524
|
+
get: {
|
525
|
+
parameters: {
|
526
|
+
query: {
|
527
|
+
/** The project ID to get component definitions for. */
|
528
|
+
projectId: string;
|
529
|
+
/** Limit list to one result by ID (response remains an array). */
|
530
|
+
componentId?: string;
|
531
|
+
/** Number of records to skip */
|
532
|
+
offset?: number;
|
533
|
+
/** Max number of records to return */
|
534
|
+
limit?: number;
|
535
|
+
/** Whether to fetch system meta-component definitions (personalize, test, etc) */
|
536
|
+
includeSystem?: boolean;
|
537
|
+
/** Filtration by category ID */
|
538
|
+
categories?: string[];
|
539
|
+
};
|
540
|
+
};
|
541
|
+
responses: {
|
542
|
+
/** OK */
|
543
|
+
200: {
|
544
|
+
content: {
|
545
|
+
"application/json": {
|
546
|
+
/** @description Component definitions that match the query */
|
547
|
+
componentDefinitions: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinition"][];
|
548
|
+
};
|
549
|
+
};
|
550
|
+
};
|
551
|
+
400: external$a["swagger.yml"]["components"]["responses"]["BadRequestError"];
|
552
|
+
401: external$a["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
|
553
|
+
403: external$a["swagger.yml"]["components"]["responses"]["ForbiddenError"];
|
554
|
+
429: external$a["swagger.yml"]["components"]["responses"]["RateLimitError"];
|
555
|
+
500: external$a["swagger.yml"]["components"]["responses"]["InternalServerError"];
|
556
|
+
};
|
557
|
+
};
|
558
|
+
/** Upserts a component definition */
|
559
|
+
put: {
|
560
|
+
responses: {
|
561
|
+
/** OK */
|
562
|
+
204: never;
|
563
|
+
400: external$a["swagger.yml"]["components"]["responses"]["BadRequestError"];
|
564
|
+
401: external$a["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
|
565
|
+
403: external$a["swagger.yml"]["components"]["responses"]["ForbiddenError"];
|
566
|
+
429: external$a["swagger.yml"]["components"]["responses"]["RateLimitError"];
|
567
|
+
500: external$a["swagger.yml"]["components"]["responses"]["InternalServerError"];
|
568
|
+
};
|
569
|
+
requestBody: {
|
570
|
+
content: {
|
571
|
+
"application/json": {
|
572
|
+
/**
|
573
|
+
* Format: uuid
|
574
|
+
* @description The project ID to upsert the component definition to
|
575
|
+
*/
|
576
|
+
projectId: string;
|
577
|
+
componentDefinition: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinition"];
|
578
|
+
};
|
579
|
+
};
|
580
|
+
};
|
581
|
+
};
|
582
|
+
/** Deletes a component definition */
|
583
|
+
delete: {
|
584
|
+
responses: {
|
585
|
+
/** OK */
|
586
|
+
204: never;
|
587
|
+
400: external$a["swagger.yml"]["components"]["responses"]["BadRequestError"];
|
588
|
+
401: external$a["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
|
589
|
+
403: external$a["swagger.yml"]["components"]["responses"]["ForbiddenError"];
|
590
|
+
429: external$a["swagger.yml"]["components"]["responses"]["RateLimitError"];
|
591
|
+
500: external$a["swagger.yml"]["components"]["responses"]["InternalServerError"];
|
592
|
+
};
|
593
|
+
requestBody: {
|
594
|
+
content: {
|
595
|
+
"application/json": {
|
596
|
+
/** @description The public ID of the component definition to delete */
|
597
|
+
componentId: string;
|
598
|
+
/**
|
599
|
+
* Format: uuid
|
600
|
+
* @description The ID of the project the composition to delete belongs to
|
601
|
+
*/
|
602
|
+
projectId: string;
|
603
|
+
};
|
604
|
+
};
|
605
|
+
};
|
606
|
+
};
|
607
|
+
/** Handles preflight requests. This endpoint allows CORS. */
|
608
|
+
options: {
|
609
|
+
responses: {
|
610
|
+
/** OK */
|
611
|
+
204: never;
|
612
|
+
};
|
613
|
+
};
|
614
|
+
};
|
615
|
+
}
|
616
|
+
interface external$a {
|
617
|
+
"swagger.yml": {
|
618
|
+
paths: {};
|
619
|
+
components: {
|
620
|
+
schemas: {
|
621
|
+
Error: {
|
622
|
+
/** @description Error message(s) that occurred while processing the request */
|
623
|
+
errorMessage?: string[] | string;
|
624
|
+
};
|
625
|
+
};
|
626
|
+
responses: {
|
627
|
+
/** Request input validation failed */
|
628
|
+
BadRequestError: {
|
629
|
+
content: {
|
630
|
+
"application/json": external$a["swagger.yml"]["components"]["schemas"]["Error"];
|
631
|
+
};
|
632
|
+
};
|
633
|
+
/** API key or token was not valid */
|
634
|
+
UnauthorizedError: {
|
635
|
+
content: {
|
636
|
+
"application/json": external$a["swagger.yml"]["components"]["schemas"]["Error"];
|
637
|
+
};
|
638
|
+
};
|
639
|
+
/** Permission was denied */
|
640
|
+
ForbiddenError: {
|
641
|
+
content: {
|
642
|
+
"application/json": external$a["swagger.yml"]["components"]["schemas"]["Error"];
|
643
|
+
};
|
644
|
+
};
|
645
|
+
/** Resource not found */
|
646
|
+
NotFoundError: {
|
647
|
+
content: {
|
648
|
+
"application/json": external$a["swagger.yml"]["components"]["schemas"]["Error"];
|
649
|
+
};
|
650
|
+
};
|
651
|
+
/** Too many requests in allowed time period */
|
652
|
+
RateLimitError: unknown;
|
653
|
+
/** Execution error occurred */
|
654
|
+
InternalServerError: unknown;
|
655
|
+
};
|
656
|
+
};
|
657
|
+
operations: {};
|
658
|
+
};
|
659
|
+
"uniform-canvas-types.swagger.yml": {
|
660
|
+
paths: {};
|
661
|
+
components: {
|
662
|
+
schemas: {
|
663
|
+
/** @description Public ID (used in code). Do not change after creation. */
|
664
|
+
PublicIdProperty: string;
|
665
|
+
/** @description The definition of a component parameter */
|
666
|
+
ComponentDefinitionParameter: {
|
667
|
+
id: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["PublicIdProperty"];
|
668
|
+
/** @description Friendly name of the parameter */
|
669
|
+
name: string;
|
670
|
+
/** @description Appears next to the parameter in the Composition editor */
|
671
|
+
helpText?: string;
|
672
|
+
/** @description Type name of the parameter (provided by a Uniform integration) */
|
673
|
+
type: string;
|
674
|
+
/** @description The configuration object for the type (type-specific) */
|
675
|
+
typeConfig?: unknown;
|
676
|
+
};
|
677
|
+
/** @description The definition of a named component slot that can contain other components */
|
678
|
+
ComponentDefinitionSlot: {
|
679
|
+
id: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["PublicIdProperty"];
|
680
|
+
/** @description Friendly name of the slot */
|
681
|
+
name: string;
|
682
|
+
/** @description A list of component definition public IDs that are allowed in this named slot */
|
683
|
+
allowedComponents: string[];
|
684
|
+
/**
|
685
|
+
* @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
|
686
|
+
* If allowAllComponents is true, this value is ignored.
|
687
|
+
*
|
688
|
+
* @default false
|
689
|
+
*/
|
690
|
+
inheritAllowedComponents: boolean;
|
691
|
+
/**
|
692
|
+
* @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
|
693
|
+
* When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
|
694
|
+
*/
|
695
|
+
allowAllComponents?: boolean;
|
696
|
+
/**
|
697
|
+
* @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
|
698
|
+
* When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
|
699
|
+
*/
|
700
|
+
patternsInAllowedComponents?: boolean;
|
701
|
+
/** @description Minimum valid number of components in this slot */
|
702
|
+
minComponents?: number;
|
703
|
+
/** @description Maximum valid number of components in this slot */
|
704
|
+
maxComponents?: number;
|
705
|
+
};
|
706
|
+
/** @description The definition of a composition's slug settings */
|
707
|
+
ComponentDefinitionSlugSettings: {
|
708
|
+
/**
|
709
|
+
* @description Whether the slug is required
|
710
|
+
* no: slug is optional
|
711
|
+
* yes: slug is required
|
712
|
+
* disabled: slug is disabled and will not be shown in the editor
|
713
|
+
*
|
714
|
+
* @default no
|
715
|
+
* @enum {string}
|
716
|
+
*/
|
717
|
+
required?: "no" | "yes" | "disabled";
|
718
|
+
/**
|
719
|
+
* @description Slug uniqueness configuration.
|
720
|
+
* no = no unique constraint
|
721
|
+
* local = must be unique within this component type
|
722
|
+
* global = must be unique across all component types
|
723
|
+
*
|
724
|
+
* @enum {string}
|
725
|
+
*/
|
726
|
+
unique?: "no" | "local" | "global";
|
727
|
+
/** @description Regular expression slugs must match */
|
728
|
+
regularExpression?: string;
|
729
|
+
/**
|
730
|
+
* @description Custom error message when regular expression validation fails.
|
731
|
+
* Has no effect if `regularExpression` is not set.
|
732
|
+
*/
|
733
|
+
regularExpressionMessage?: string;
|
734
|
+
};
|
735
|
+
/** @description The definition of a component variant */
|
736
|
+
ComponentDefinitionVariant: {
|
737
|
+
id: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["PublicIdProperty"];
|
738
|
+
/** @description Friendly name of the variant */
|
739
|
+
name: string;
|
740
|
+
};
|
741
|
+
/** @description Permission set for a component defintion */
|
742
|
+
ComponentDefinitionPermission: {
|
743
|
+
roleId: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["PublicIdProperty"];
|
744
|
+
/**
|
745
|
+
* @description Permission type for this permission ComponentDefinition:
|
746
|
+
* read | write | create | delete
|
747
|
+
*
|
748
|
+
* @enum {string}
|
749
|
+
*/
|
750
|
+
permission: "read" | "write" | "create" | "delete";
|
751
|
+
/** @description State of the component that this permission applies to */
|
752
|
+
state: number;
|
753
|
+
};
|
754
|
+
/** @description Defines a component type that can live on a Composition */
|
755
|
+
ComponentDefinition: {
|
756
|
+
id: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["PublicIdProperty"];
|
757
|
+
/** @description Friendly name of the component definition */
|
758
|
+
name: string;
|
759
|
+
/**
|
760
|
+
* @description Icon name for the component definition (e.g. 'screen')
|
761
|
+
* @default screen
|
762
|
+
*/
|
763
|
+
icon?: string;
|
764
|
+
/**
|
765
|
+
* @description The public ID of the parameter whose value should be used to create a display title for this component in the UI.
|
766
|
+
* The parameter type must support being used as a title parameter for this to work.
|
767
|
+
*
|
768
|
+
* @default null
|
769
|
+
*/
|
770
|
+
titleParameter?: string | null;
|
771
|
+
/**
|
772
|
+
* @description Whether this component type can be the root of a composition. If false, this component is only used within slots on other components.
|
773
|
+
* @default false
|
774
|
+
*/
|
775
|
+
canBeComposition?: boolean;
|
776
|
+
/** @description The parameters for this component. Parameters are key-value pairs that can be anything from text values to links to CMS entries. */
|
777
|
+
parameters?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
|
778
|
+
/**
|
779
|
+
* Format: uuid
|
780
|
+
* @description Reference to the category this component definition belongs to
|
781
|
+
* @default null
|
782
|
+
*/
|
783
|
+
categoryId?: string | null;
|
784
|
+
/**
|
785
|
+
* @description Description of the component definition
|
786
|
+
* @default null
|
787
|
+
*/
|
788
|
+
description?: string;
|
789
|
+
/**
|
790
|
+
* @description Description of the component definition
|
791
|
+
* @default null
|
792
|
+
*/
|
793
|
+
previewImageUrl?: string;
|
794
|
+
/**
|
795
|
+
* @description if this component uses team permissions or custom permissions
|
796
|
+
* @default true
|
797
|
+
*/
|
798
|
+
useTeamPermissions?: boolean;
|
799
|
+
/** @description Custom role permissions for this component definition */
|
800
|
+
permissions?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionPermission"][];
|
801
|
+
/** @description The named slots for this component; placement areas where arrays of other components can be added. */
|
802
|
+
slots?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionSlot"][];
|
803
|
+
slugSettings?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionSlugSettings"];
|
804
|
+
/** @description Default component instance value */
|
805
|
+
defaults?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentInstance"] | null;
|
806
|
+
/** @description Named variants for this component; enables creation of visual variants that use the same parameter data */
|
807
|
+
variants?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionVariant"][];
|
808
|
+
/** @description Created date string for this definition (ignored for writes) */
|
809
|
+
created?: string;
|
810
|
+
/** @description Last modified date string for this definition (ignored for writes) */
|
811
|
+
updated?: string;
|
812
|
+
};
|
813
|
+
/** @description Defines a content type */
|
814
|
+
ContentType: {
|
815
|
+
id: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["PublicIdProperty"];
|
816
|
+
/** @description Friendly name of the content type */
|
817
|
+
name: string;
|
818
|
+
/**
|
819
|
+
* @description The public ID of the field whose value should be used to create a display name for entries of this content type in the UI.
|
820
|
+
* The field type must support being used as an entry name for this to work.
|
821
|
+
*/
|
822
|
+
entryName?: string | null;
|
823
|
+
/** @description The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
|
824
|
+
fields?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
|
825
|
+
/** @description Created date string for this content type (ignored for writes) */
|
826
|
+
created?: string;
|
827
|
+
/** @description Last modified date string for this content type (ignored for writes) */
|
828
|
+
updated?: string;
|
829
|
+
};
|
830
|
+
/** @description Defines an editable parameter on a component. */
|
831
|
+
ComponentParameter: {
|
832
|
+
/** @description The value of the parameter. Any JSON-serializable value is acceptable. */
|
833
|
+
value: unknown;
|
834
|
+
/** @description The type of the parameter. Determines how it is displayed when editing, and tells the consumer how to process it. */
|
835
|
+
type: string;
|
836
|
+
connectedData?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataElementConnectionDefinition"];
|
837
|
+
};
|
838
|
+
/**
|
839
|
+
* @description Defines a connection to a data element on a data resource.
|
840
|
+
*
|
841
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
842
|
+
* Future updates that do not break the edgehanced/data-bound state of a composition may be made without notice.
|
843
|
+
*/
|
844
|
+
DataElementConnectionDefinition: {
|
845
|
+
/** @description A JSON Pointer expression that defines the data element to connect the parameter to. */
|
846
|
+
pointer: string;
|
847
|
+
/**
|
848
|
+
* @description The syntax used to select the data element to bind to
|
849
|
+
* @enum {string}
|
850
|
+
*/
|
851
|
+
syntax: "jptr";
|
852
|
+
};
|
853
|
+
/** @description Defines the shape of a component instance served by the composition API. */
|
854
|
+
ComponentInstance: {
|
855
|
+
/** @description Type of the component instance (public_id of its definition) */
|
856
|
+
type: string;
|
857
|
+
/** @description Component parameter values for the component instance */
|
858
|
+
parameters?: {
|
859
|
+
[key: string]: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
860
|
+
};
|
861
|
+
/** @description Public ID of alternate visual appearance for this component, if any selected */
|
862
|
+
variant?: string;
|
863
|
+
/** @description Slots containing any child components */
|
864
|
+
slots?: {
|
865
|
+
[key: string]: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentInstance"][];
|
866
|
+
};
|
867
|
+
/**
|
868
|
+
* @description Unique identifier of the component within the composition.
|
869
|
+
* No assumptions should be made about the format of this value other than "it will be unique."
|
870
|
+
* This is not returned in GET replies unless specifically requested via `withComponentIDs` API parameter.
|
871
|
+
* When updating or creating a composition, if you do not specify an _id for each component, one will be created and stored for you.
|
872
|
+
*/
|
873
|
+
_id?: string;
|
874
|
+
/** @description Indicates this component instance should be sourced from a pattern library pattern. */
|
875
|
+
_pattern?: string;
|
876
|
+
_dataResources?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
877
|
+
/**
|
878
|
+
* @description Data definitions coming from a pattern resolved for this component. Merged with _dataResources during resolution.
|
879
|
+
* Means nothing for PUTs; it will be ignored.
|
880
|
+
*/
|
881
|
+
_patternDataResources?: {
|
882
|
+
[key: string]: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinition"];
|
883
|
+
};
|
884
|
+
/**
|
885
|
+
* @description Describes why the pattern could not be resolved, if a pattern could not be resolved. For PUTs, this is allowed but ignored.
|
886
|
+
* CYCLIC: A cyclic pattern graph was detected, which could not be resolved because it would cause an infinite loop.
|
887
|
+
* NOTFOUND: The pattern ID referenced could not be found. It may have been deleted, or not be published yet.
|
888
|
+
* Means nothing for PUTs; it will be ignored.
|
889
|
+
*
|
890
|
+
* @enum {string}
|
891
|
+
*/
|
892
|
+
_patternError?: "NOTFOUND" | "CYCLIC";
|
893
|
+
/**
|
894
|
+
* @description Defines patch overrides to component IDs that live in the composition.
|
895
|
+
* This can be used to override parameters that are defined on patterns,
|
896
|
+
* including nested patterns, with values that are specific to this composition.
|
897
|
+
* The keys in this object are component IDs.
|
898
|
+
* Overrides are applied from the top down, so for example if both the composition
|
899
|
+
* and a pattern on the composition define an override on a nested pattern,
|
900
|
+
* the composition's override replaces the pattern's.
|
901
|
+
*
|
902
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
903
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
904
|
+
*/
|
905
|
+
_overrides?: {
|
906
|
+
[key: string]: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
907
|
+
};
|
908
|
+
/**
|
909
|
+
* @description When used on a pattern, defines how the pattern's parameters may be overridden
|
910
|
+
* by consumers of the pattern.
|
911
|
+
*
|
912
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
913
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
914
|
+
*/
|
915
|
+
_overridability?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
916
|
+
};
|
917
|
+
/** @description Defines the shape of the root component in a composition */
|
918
|
+
RootComponentInstance: {
|
919
|
+
/** @description Type of the component instance (public_id of its definition) */
|
920
|
+
type: string;
|
921
|
+
/** @description Component parameter values for the component instance */
|
922
|
+
parameters?: {
|
923
|
+
[key: string]: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
924
|
+
};
|
925
|
+
/** @description Public ID of alternate visual appearance for this component, if any selected */
|
926
|
+
variant?: string;
|
927
|
+
/** @description Project map nodes associated with this component. Must pass withProjectMapNodes parameter to be populated. */
|
928
|
+
projectMapNodes?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["CompositionProjectMapNodeInfo"][];
|
929
|
+
/** @description Slots containing any child components */
|
930
|
+
slots?: {
|
931
|
+
[key: string]: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentInstance"][];
|
932
|
+
};
|
933
|
+
/** @description The public UUID of the composition. */
|
934
|
+
_id: string;
|
935
|
+
/** @description Slug pattern of this component. */
|
936
|
+
_slug?: string | null;
|
937
|
+
/** @description Friendly name of this component. */
|
938
|
+
_name: string;
|
939
|
+
_dataResources?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
940
|
+
/**
|
941
|
+
* @description Defines patch overrides to component IDs that live in the composition.
|
942
|
+
* This can be used to override parameters that are defined on patterns,
|
943
|
+
* including nested patterns, with values that are specific to this composition.
|
944
|
+
* The keys in this object are component IDs.
|
945
|
+
* Overrides are applied from the top down, so for example if both the composition
|
946
|
+
* and a pattern on the composition define an override on a nested pattern,
|
947
|
+
* the composition's override replaces the pattern's.
|
948
|
+
*
|
949
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
950
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
951
|
+
*/
|
952
|
+
_overrides?: {
|
953
|
+
[key: string]: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
954
|
+
};
|
955
|
+
/**
|
956
|
+
* @description When used on a pattern, defines how the pattern's parameters may be overridden
|
957
|
+
* by consumers of the pattern.
|
958
|
+
*
|
959
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
960
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
961
|
+
*/
|
962
|
+
_overridability?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
963
|
+
};
|
964
|
+
/**
|
965
|
+
* @description Defines how to override a specific component.
|
966
|
+
*
|
967
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
968
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
969
|
+
*/
|
970
|
+
ComponentOverride: {
|
971
|
+
parameters?: {
|
972
|
+
[key: string]: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
973
|
+
};
|
974
|
+
variant?: string;
|
975
|
+
};
|
976
|
+
/**
|
977
|
+
* @description Defines how a component on a pattern may have its values overridden.
|
978
|
+
* NOTE: Data resources' overridability is defined in the data resource definition, not here.
|
979
|
+
*
|
980
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
981
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
982
|
+
*/
|
983
|
+
ComponentOverridability: {
|
984
|
+
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
985
|
+
parameters?: {
|
986
|
+
[key: string]: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["OverrideOptions"];
|
987
|
+
};
|
988
|
+
/** @description Allows overriding a display variant is allowed, if it is defined on the component the pattern is derived from. Default = false. */
|
989
|
+
variants?: boolean;
|
990
|
+
};
|
991
|
+
/**
|
992
|
+
* @description Whether a parameter is overridable
|
993
|
+
*
|
994
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
995
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
996
|
+
*
|
997
|
+
* @enum {string}
|
998
|
+
*/
|
999
|
+
OverrideOptions: "yes" | "no";
|
1000
|
+
/**
|
1001
|
+
* @description An instance of a data source (i.e. "Master environment of the stable space", "Yelp API", "Sanity dev dataset").
|
1002
|
+
* These are created in the UI and shared across a whole project.
|
1003
|
+
* NOTE: if you acquire a list of data sources or do not have manage permissions, you will receive "SECRET"
|
1004
|
+
* for all header, parameter, and variable values to obscure the actual encrypted secret value.
|
1005
|
+
*/
|
1006
|
+
DataSource: {
|
1007
|
+
/** @description Public ID of the data source */
|
1008
|
+
id: string;
|
1009
|
+
/** @description Display name of the data source */
|
1010
|
+
displayName: string;
|
1011
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an intalled integration) */
|
1012
|
+
connectorType: string;
|
1013
|
+
/** @description Base resource URL of the data source. No trailing slash. */
|
1014
|
+
baseUrl: string;
|
1015
|
+
/** @description HTTP headers to pass with requests to the data source */
|
1016
|
+
headers?: {
|
1017
|
+
key: string;
|
1018
|
+
value: string;
|
1019
|
+
}[];
|
1020
|
+
/** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
|
1021
|
+
parameters?: {
|
1022
|
+
key: string;
|
1023
|
+
value: string;
|
1024
|
+
}[];
|
1025
|
+
/** @description Variables needed to make calls to the data source */
|
1026
|
+
variables?: {
|
1027
|
+
[key: string]: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataVariableDefinition"];
|
1028
|
+
};
|
1029
|
+
/** @description Custom configuration specific to the data source being defined (used to maintain UI state for custom integrations) */
|
1030
|
+
custom?: {
|
1031
|
+
[key: string]: unknown;
|
1032
|
+
};
|
1033
|
+
};
|
1034
|
+
/** @description A specific type of data that a Data Source can provide (i.e. "Recipe", "Recipes List by Tag", "Yelp Reviews of My Restaurant"). These are created in the UI and shared a whole project. */
|
1035
|
+
DataType: {
|
1036
|
+
/** @description Public ID of the data type */
|
1037
|
+
id: string;
|
1038
|
+
/** @description Display name of the data type */
|
1039
|
+
displayName: string;
|
1040
|
+
/** @description Public ID of the associated data source */
|
1041
|
+
dataSourceId: string;
|
1042
|
+
/**
|
1043
|
+
* @description A connector-specific archetype for this data type; used to select UI as well as perform any
|
1044
|
+
* necessary post-processing on the response. e.g. 'cms-entry', 'cms-query'. Can be undefined if
|
1045
|
+
* no special UI or processing is required.
|
1046
|
+
*/
|
1047
|
+
archetype?: string;
|
1048
|
+
allowedOnComponents?: string[];
|
1049
|
+
/** @description Resource path, appended to the data source's baseUrl (e.g. baseUrl = https://base.url, path = /v1/endpoint -> final URL https://base.url/v1/endpoint). Must have leading slash. */
|
1050
|
+
path: string;
|
1051
|
+
/** @description Time-to-live (in seconds) for the primary resource data cache. */
|
1052
|
+
ttl?: number;
|
1053
|
+
/** @description Long term data resource cache configuration. */
|
1054
|
+
longTermCache?: {
|
1055
|
+
/** @description A flag to turn the long term cache on. */
|
1056
|
+
enabled: boolean;
|
1057
|
+
/** @description Time-to-live (in hours) for the long term resource data cache. */
|
1058
|
+
ttlInHours?: number;
|
1059
|
+
};
|
1060
|
+
/** @description A key for the resource data cache purging. */
|
1061
|
+
purgeKey?: string;
|
1062
|
+
/** @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. */
|
1063
|
+
badgeIconUrl?: string;
|
1064
|
+
/** @description HTTP headers to pass with requests to the data type. Merged with headers from the data source, overriding identical keys. */
|
1065
|
+
headers?: {
|
1066
|
+
key: string;
|
1067
|
+
value: string;
|
1068
|
+
}[];
|
1069
|
+
/** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
|
1070
|
+
parameters?: {
|
1071
|
+
key: string;
|
1072
|
+
value: string;
|
1073
|
+
}[];
|
1074
|
+
/** @description Body to pass with requests to the data type (ignored unless method is POST) */
|
1075
|
+
body?: string;
|
1076
|
+
/**
|
1077
|
+
* @description HTTP method to use with requests to the data type.
|
1078
|
+
* @default GET
|
1079
|
+
* @enum {string}
|
1080
|
+
*/
|
1081
|
+
method: "GET" | "POST" | "HEAD";
|
1082
|
+
/** @description Variables needed to make calls to the data type. Merged with variables from the data source, overriding identical keys. */
|
1083
|
+
variables?: {
|
1084
|
+
[key: string]: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataVariableDefinition"];
|
1085
|
+
};
|
1086
|
+
/** @description Custom configuration specific to the data source being defined */
|
1087
|
+
custom?: {
|
1088
|
+
[key: string]: unknown;
|
1089
|
+
};
|
1090
|
+
};
|
1091
|
+
/** @description Defines the shape of a data variable on a Data Source or Data Type */
|
1092
|
+
DataVariableDefinition: {
|
1093
|
+
/** @description Display name of the data variable */
|
1094
|
+
displayName?: string;
|
1095
|
+
/** @description Explanatory text that is provided to the data resource editor to explain what this variable does. */
|
1096
|
+
helpText?: string;
|
1097
|
+
/**
|
1098
|
+
* @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.
|
1099
|
+
* @default text
|
1100
|
+
*/
|
1101
|
+
type?: string;
|
1102
|
+
/** @description Default value of the data variable */
|
1103
|
+
default: string;
|
1104
|
+
/** @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. */
|
1105
|
+
order?: number;
|
1106
|
+
/**
|
1107
|
+
* @description An optional arbitrary human readable source identifier to describe where this variable is from.
|
1108
|
+
* Some user interfaces may group variables by source value, for example 'From URL' or 'My Integration'.
|
1109
|
+
*/
|
1110
|
+
source?: string;
|
1111
|
+
};
|
1112
|
+
/**
|
1113
|
+
* @description Data definitions attached to this component. The property name is the key of the data in the data document.
|
1114
|
+
* Note: data definitions are inherited from ancestors at runtime (and may be overridden by descendants that use the same key).
|
1115
|
+
*/
|
1116
|
+
DataResourceDefinitions: {
|
1117
|
+
[key: string]: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinition"];
|
1118
|
+
};
|
1119
|
+
/** @description Defines a data resource, which is a named JSON document, usually from an API response, which may be projected onto parameters */
|
1120
|
+
DataResourceDefinition: {
|
1121
|
+
/** @description Public ID of the data type that provides this data */
|
1122
|
+
type: string;
|
1123
|
+
/** @description Whether this data is a pattern data resource that can be overridden when a pattern is referenced on another composition. If this is not a pattern composition, this has no meaning and should not be used. If unspecified, the default is false. */
|
1124
|
+
isPatternParameter?: boolean;
|
1125
|
+
/**
|
1126
|
+
* @description When true, the default data resource of a pattern data parameter (isPatternParameter=true) will be ignored when the pattern is referenced.
|
1127
|
+
* Unless specifically overridden, the pattern data parameter will be provided with a null default value - leaving any data connections to it unresolvable.
|
1128
|
+
* If isPatternParameter is false or undefined, this has no meaning.
|
1129
|
+
*/
|
1130
|
+
ignorePatternParameterDefault?: boolean;
|
1131
|
+
variables?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceVariables"];
|
1132
|
+
};
|
1133
|
+
/** @description Variable values for a data resource. */
|
1134
|
+
DataResourceVariables: {
|
1135
|
+
[key: string]: string;
|
1136
|
+
};
|
1137
|
+
/** @description Category for tagging canvas entities */
|
1138
|
+
Category: {
|
1139
|
+
/**
|
1140
|
+
* Format: uuid
|
1141
|
+
* @description Unique identifier for the category
|
1142
|
+
*/
|
1143
|
+
id: string;
|
1144
|
+
/** @description Display name of the category */
|
1145
|
+
name: string;
|
1146
|
+
/**
|
1147
|
+
* @description Sets the order of the category when displayed in a list with other categories. If not set, the order defaults to alphabetical with any explicitly set orders first in the list.
|
1148
|
+
* @default 0
|
1149
|
+
*/
|
1150
|
+
order?: number;
|
1151
|
+
};
|
1152
|
+
/** @description Project map node information related to a component. */
|
1153
|
+
CompositionProjectMapNodeInfo: {
|
1154
|
+
/**
|
1155
|
+
* Format: uuid
|
1156
|
+
* @description Unique identifier for the project map node
|
1157
|
+
*/
|
1158
|
+
id: string;
|
1159
|
+
/** @description Path of the project map node */
|
1160
|
+
path: string;
|
1161
|
+
/**
|
1162
|
+
* Format: uuid
|
1163
|
+
* @description Unique identifier for the project map that this node belongs to.
|
1164
|
+
*/
|
1165
|
+
projectMapId: string;
|
1166
|
+
};
|
1167
|
+
};
|
1168
|
+
};
|
1169
|
+
operations: {};
|
1170
|
+
};
|
1171
|
+
}
|
1172
|
+
|
1173
|
+
type SharedComponents$2 = components$4['schemas'];
|
1174
|
+
type Api$2 = paths$9['/api/v1/canvas-definitions'];
|
1175
|
+
/** Shape of the GET response from /api/v1/canvas-definitions */
|
1176
|
+
type ComponentDefinitionGetResponse = Api$2['get']['responses']['200']['content']['application/json'];
|
1177
|
+
/** Shape of the PUT request body for /api/v1/canvas-definitions */
|
1178
|
+
type ComponentDefinitionPutParameters = Api$2['put']['requestBody']['content']['application/json'];
|
1179
|
+
/** Shape of the DELETE request body for /api/v1/canvas-definitions */
|
1180
|
+
type ComponentDefinitionDeleteParameters = Api$2['delete']['requestBody']['content']['application/json'];
|
1181
|
+
/** Query parameter options for GET /api/v1/canvas-definitions */
|
1182
|
+
type ComponentDefinitionGetParameters = Api$2['get']['parameters']['query'];
|
1183
|
+
/** The definition of a component parameter */
|
1184
|
+
type ComponentDefinitionParameter<TConfig = unknown> = Omit<components$4['schemas']['ComponentDefinitionParameter'], 'typeConfig'> & {
|
1185
|
+
typeConfig?: TConfig;
|
1186
|
+
};
|
1187
|
+
/** The definition of a component visual variant */
|
1188
|
+
type ComponentDefinitionVariant = SharedComponents$2['ComponentDefinitionVariant'];
|
1189
|
+
/** The definition of a composition's slug settings */
|
1190
|
+
type ComponentDefinitionSlugSettings = SharedComponents$2['ComponentDefinitionSlugSettings'];
|
1191
|
+
/** The definition of a named component slot that can contain other components */
|
1192
|
+
type ComponentDefinitionSlot = SharedComponents$2['ComponentDefinitionSlot'];
|
1193
|
+
/** Permission set for a component defintion */
|
1194
|
+
type ComponentDefinitionPermission = SharedComponents$2['ComponentDefinitionPermission'];
|
1195
|
+
/** Defines a component type that can live on a Composition */
|
1196
|
+
type ComponentDefinition = SharedComponents$2['ComponentDefinition'];
|
1197
|
+
|
487
1198
|
/**
|
488
1199
|
* This file was auto-generated by openapi-typescript.
|
489
1200
|
* Do not make direct changes to the file.
|
490
1201
|
*/
|
491
1202
|
interface paths$8 {
|
492
|
-
"/api/v1/
|
1203
|
+
"/api/v1/categories": {
|
493
1204
|
get: {
|
494
1205
|
parameters: {
|
495
1206
|
query: {
|
496
|
-
/** The project ID to get component definitions for. */
|
497
1207
|
projectId: string;
|
498
|
-
/** Limit list to one result by ID (response remains an array). */
|
499
|
-
componentId?: string;
|
500
|
-
/** Number of records to skip */
|
501
|
-
offset?: number;
|
502
|
-
/** Max number of records to return */
|
503
|
-
limit?: number;
|
504
|
-
/** Whether to fetch system meta-component definitions (personalize, test, etc) */
|
505
|
-
includeSystem?: boolean;
|
506
1208
|
};
|
507
1209
|
};
|
508
1210
|
responses: {
|
@@ -510,8 +1212,7 @@ interface paths$8 {
|
|
510
1212
|
200: {
|
511
1213
|
content: {
|
512
1214
|
"application/json": {
|
513
|
-
|
514
|
-
componentDefinitions: external$9["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinition"][];
|
1215
|
+
categories: external$9["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["Category"][];
|
515
1216
|
};
|
516
1217
|
};
|
517
1218
|
};
|
@@ -522,7 +1223,6 @@ interface paths$8 {
|
|
522
1223
|
500: external$9["swagger.yml"]["components"]["responses"]["InternalServerError"];
|
523
1224
|
};
|
524
1225
|
};
|
525
|
-
/** Upserts a component definition */
|
526
1226
|
put: {
|
527
1227
|
responses: {
|
528
1228
|
/** OK */
|
@@ -536,17 +1236,13 @@ interface paths$8 {
|
|
536
1236
|
requestBody: {
|
537
1237
|
content: {
|
538
1238
|
"application/json": {
|
539
|
-
/**
|
540
|
-
* Format: uuid
|
541
|
-
* @description The project ID to upsert the component definition to
|
542
|
-
*/
|
1239
|
+
/** Format: uuid */
|
543
1240
|
projectId: string;
|
544
|
-
|
1241
|
+
categories: external$9["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["Category"][];
|
545
1242
|
};
|
546
1243
|
};
|
547
1244
|
};
|
548
1245
|
};
|
549
|
-
/** Deletes a component definition */
|
550
1246
|
delete: {
|
551
1247
|
responses: {
|
552
1248
|
/** OK */
|
@@ -560,24 +1256,14 @@ interface paths$8 {
|
|
560
1256
|
requestBody: {
|
561
1257
|
content: {
|
562
1258
|
"application/json": {
|
563
|
-
/**
|
564
|
-
|
565
|
-
/**
|
566
|
-
* Format: uuid
|
567
|
-
* @description The ID of the project the composition to delete belongs to
|
568
|
-
*/
|
1259
|
+
/** Format: uuid */
|
1260
|
+
categoryId: string;
|
1261
|
+
/** Format: uuid */
|
569
1262
|
projectId: string;
|
570
1263
|
};
|
571
1264
|
};
|
572
1265
|
};
|
573
1266
|
};
|
574
|
-
/** Handles preflight requests. This endpoint allows CORS. */
|
575
|
-
options: {
|
576
|
-
responses: {
|
577
|
-
/** OK */
|
578
|
-
204: never;
|
579
|
-
};
|
580
|
-
};
|
581
1267
|
};
|
582
1268
|
}
|
583
1269
|
interface external$9 {
|
@@ -724,7 +1410,7 @@ interface external$9 {
|
|
724
1410
|
/** @description Friendly name of the component definition */
|
725
1411
|
name: string;
|
726
1412
|
/**
|
727
|
-
* @description Icon name
|
1413
|
+
* @description Icon name for the component definition (e.g. 'screen')
|
728
1414
|
* @default screen
|
729
1415
|
*/
|
730
1416
|
icon?: string;
|
@@ -742,6 +1428,22 @@ interface external$9 {
|
|
742
1428
|
canBeComposition?: boolean;
|
743
1429
|
/** @description The parameters for this component. Parameters are key-value pairs that can be anything from text values to links to CMS entries. */
|
744
1430
|
parameters?: external$9["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
|
1431
|
+
/**
|
1432
|
+
* Format: uuid
|
1433
|
+
* @description Reference to the category this component definition belongs to
|
1434
|
+
* @default null
|
1435
|
+
*/
|
1436
|
+
categoryId?: string | null;
|
1437
|
+
/**
|
1438
|
+
* @description Description of the component definition
|
1439
|
+
* @default null
|
1440
|
+
*/
|
1441
|
+
description?: string;
|
1442
|
+
/**
|
1443
|
+
* @description Description of the component definition
|
1444
|
+
* @default null
|
1445
|
+
*/
|
1446
|
+
previewImageUrl?: string;
|
745
1447
|
/**
|
746
1448
|
* @description if this component uses team permissions or custom permissions
|
747
1449
|
* @default true
|
@@ -1085,6 +1787,21 @@ interface external$9 {
|
|
1085
1787
|
DataResourceVariables: {
|
1086
1788
|
[key: string]: string;
|
1087
1789
|
};
|
1790
|
+
/** @description Category for tagging canvas entities */
|
1791
|
+
Category: {
|
1792
|
+
/**
|
1793
|
+
* Format: uuid
|
1794
|
+
* @description Unique identifier for the category
|
1795
|
+
*/
|
1796
|
+
id: string;
|
1797
|
+
/** @description Display name of the category */
|
1798
|
+
name: string;
|
1799
|
+
/**
|
1800
|
+
* @description Sets the order of the category when displayed in a list with other categories. If not set, the order defaults to alphabetical with any explicitly set orders first in the list.
|
1801
|
+
* @default 0
|
1802
|
+
*/
|
1803
|
+
order?: number;
|
1804
|
+
};
|
1088
1805
|
/** @description Project map node information related to a component. */
|
1089
1806
|
CompositionProjectMapNodeInfo: {
|
1090
1807
|
/**
|
@@ -1107,29 +1824,17 @@ interface external$9 {
|
|
1107
1824
|
}
|
1108
1825
|
|
1109
1826
|
type SharedComponents$1 = components$4['schemas'];
|
1110
|
-
type Api$1 = paths$8['/api/v1/
|
1111
|
-
/** Shape of the GET response from /api/v1/
|
1112
|
-
type
|
1113
|
-
/** Shape of the PUT request body for /api/v1/
|
1114
|
-
type
|
1115
|
-
/** Shape of the DELETE request body for /api/v1/
|
1116
|
-
type
|
1117
|
-
/** Query parameter options for GET /api/v1/
|
1118
|
-
type
|
1119
|
-
/** The definition of a component parameter */
|
1120
|
-
type ComponentDefinitionParameter<TConfig = unknown> = Omit<components$4['schemas']['ComponentDefinitionParameter'], 'typeConfig'> & {
|
1121
|
-
typeConfig?: TConfig;
|
1122
|
-
};
|
1123
|
-
/** The definition of a component visual variant */
|
1124
|
-
type ComponentDefinitionVariant = SharedComponents$1['ComponentDefinitionVariant'];
|
1125
|
-
/** The definition of a composition's slug settings */
|
1126
|
-
type ComponentDefinitionSlugSettings = SharedComponents$1['ComponentDefinitionSlugSettings'];
|
1127
|
-
/** The definition of a named component slot that can contain other components */
|
1128
|
-
type ComponentDefinitionSlot = SharedComponents$1['ComponentDefinitionSlot'];
|
1129
|
-
/** Permission set for a component defintion */
|
1130
|
-
type ComponentDefinitionPermission = SharedComponents$1['ComponentDefinitionPermission'];
|
1827
|
+
type Api$1 = paths$8['/api/v1/categories'];
|
1828
|
+
/** Shape of the GET response from /api/v1/category */
|
1829
|
+
type CategoriesGetResponse = Api$1['get']['responses']['200']['content']['application/json'];
|
1830
|
+
/** Shape of the PUT request body for /api/v1/category */
|
1831
|
+
type CategoriesPutParameters = Api$1['put']['requestBody']['content']['application/json'];
|
1832
|
+
/** Shape of the DELETE request body for /api/v1/category */
|
1833
|
+
type CategoriesDeleteParameters = Api$1['delete']['requestBody']['content']['application/json'];
|
1834
|
+
/** Query parameter options for GET /api/v1/category */
|
1835
|
+
type CategoriesGetParameters = Api$1['get']['parameters']['query'];
|
1131
1836
|
/** Defines a component type that can live on a Composition */
|
1132
|
-
type
|
1837
|
+
type Category = SharedComponents$1['Category'];
|
1133
1838
|
|
1134
1839
|
/**
|
1135
1840
|
* This file was auto-generated by openapi-typescript.
|
@@ -1354,7 +2059,7 @@ interface external$8 {
|
|
1354
2059
|
/** @description Friendly name of the component definition */
|
1355
2060
|
name: string;
|
1356
2061
|
/**
|
1357
|
-
* @description Icon name
|
2062
|
+
* @description Icon name for the component definition (e.g. 'screen')
|
1358
2063
|
* @default screen
|
1359
2064
|
*/
|
1360
2065
|
icon?: string;
|
@@ -1372,6 +2077,22 @@ interface external$8 {
|
|
1372
2077
|
canBeComposition?: boolean;
|
1373
2078
|
/** @description The parameters for this component. Parameters are key-value pairs that can be anything from text values to links to CMS entries. */
|
1374
2079
|
parameters?: external$8["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
|
2080
|
+
/**
|
2081
|
+
* Format: uuid
|
2082
|
+
* @description Reference to the category this component definition belongs to
|
2083
|
+
* @default null
|
2084
|
+
*/
|
2085
|
+
categoryId?: string | null;
|
2086
|
+
/**
|
2087
|
+
* @description Description of the component definition
|
2088
|
+
* @default null
|
2089
|
+
*/
|
2090
|
+
description?: string;
|
2091
|
+
/**
|
2092
|
+
* @description Description of the component definition
|
2093
|
+
* @default null
|
2094
|
+
*/
|
2095
|
+
previewImageUrl?: string;
|
1375
2096
|
/**
|
1376
2097
|
* @description if this component uses team permissions or custom permissions
|
1377
2098
|
* @default true
|
@@ -1715,6 +2436,21 @@ interface external$8 {
|
|
1715
2436
|
DataResourceVariables: {
|
1716
2437
|
[key: string]: string;
|
1717
2438
|
};
|
2439
|
+
/** @description Category for tagging canvas entities */
|
2440
|
+
Category: {
|
2441
|
+
/**
|
2442
|
+
* Format: uuid
|
2443
|
+
* @description Unique identifier for the category
|
2444
|
+
*/
|
2445
|
+
id: string;
|
2446
|
+
/** @description Display name of the category */
|
2447
|
+
name: string;
|
2448
|
+
/**
|
2449
|
+
* @description Sets the order of the category when displayed in a list with other categories. If not set, the order defaults to alphabetical with any explicitly set orders first in the list.
|
2450
|
+
* @default 0
|
2451
|
+
*/
|
2452
|
+
order?: number;
|
2453
|
+
};
|
1718
2454
|
/** @description Project map node information related to a component. */
|
1719
2455
|
CompositionProjectMapNodeInfo: {
|
1720
2456
|
/**
|
@@ -1915,7 +2651,7 @@ interface external$7 {
|
|
1915
2651
|
/** @description Friendly name of the component definition */
|
1916
2652
|
name: string;
|
1917
2653
|
/**
|
1918
|
-
* @description Icon name
|
2654
|
+
* @description Icon name for the component definition (e.g. 'screen')
|
1919
2655
|
* @default screen
|
1920
2656
|
*/
|
1921
2657
|
icon?: string;
|
@@ -1933,6 +2669,22 @@ interface external$7 {
|
|
1933
2669
|
canBeComposition?: boolean;
|
1934
2670
|
/** @description The parameters for this component. Parameters are key-value pairs that can be anything from text values to links to CMS entries. */
|
1935
2671
|
parameters?: external$7["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
|
2672
|
+
/**
|
2673
|
+
* Format: uuid
|
2674
|
+
* @description Reference to the category this component definition belongs to
|
2675
|
+
* @default null
|
2676
|
+
*/
|
2677
|
+
categoryId?: string | null;
|
2678
|
+
/**
|
2679
|
+
* @description Description of the component definition
|
2680
|
+
* @default null
|
2681
|
+
*/
|
2682
|
+
description?: string;
|
2683
|
+
/**
|
2684
|
+
* @description Description of the component definition
|
2685
|
+
* @default null
|
2686
|
+
*/
|
2687
|
+
previewImageUrl?: string;
|
1936
2688
|
/**
|
1937
2689
|
* @description if this component uses team permissions or custom permissions
|
1938
2690
|
* @default true
|
@@ -2276,6 +3028,21 @@ interface external$7 {
|
|
2276
3028
|
DataResourceVariables: {
|
2277
3029
|
[key: string]: string;
|
2278
3030
|
};
|
3031
|
+
/** @description Category for tagging canvas entities */
|
3032
|
+
Category: {
|
3033
|
+
/**
|
3034
|
+
* Format: uuid
|
3035
|
+
* @description Unique identifier for the category
|
3036
|
+
*/
|
3037
|
+
id: string;
|
3038
|
+
/** @description Display name of the category */
|
3039
|
+
name: string;
|
3040
|
+
/**
|
3041
|
+
* @description Sets the order of the category when displayed in a list with other categories. If not set, the order defaults to alphabetical with any explicitly set orders first in the list.
|
3042
|
+
* @default 0
|
3043
|
+
*/
|
3044
|
+
order?: number;
|
3045
|
+
};
|
2279
3046
|
/** @description Project map node information related to a component. */
|
2280
3047
|
CompositionProjectMapNodeInfo: {
|
2281
3048
|
/**
|
@@ -2511,7 +3278,7 @@ interface external$6 {
|
|
2511
3278
|
/** @description Friendly name of the component definition */
|
2512
3279
|
name: string;
|
2513
3280
|
/**
|
2514
|
-
* @description Icon name
|
3281
|
+
* @description Icon name for the component definition (e.g. 'screen')
|
2515
3282
|
* @default screen
|
2516
3283
|
*/
|
2517
3284
|
icon?: string;
|
@@ -2529,6 +3296,22 @@ interface external$6 {
|
|
2529
3296
|
canBeComposition?: boolean;
|
2530
3297
|
/** @description The parameters for this component. Parameters are key-value pairs that can be anything from text values to links to CMS entries. */
|
2531
3298
|
parameters?: external$6["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
|
3299
|
+
/**
|
3300
|
+
* Format: uuid
|
3301
|
+
* @description Reference to the category this component definition belongs to
|
3302
|
+
* @default null
|
3303
|
+
*/
|
3304
|
+
categoryId?: string | null;
|
3305
|
+
/**
|
3306
|
+
* @description Description of the component definition
|
3307
|
+
* @default null
|
3308
|
+
*/
|
3309
|
+
description?: string;
|
3310
|
+
/**
|
3311
|
+
* @description Description of the component definition
|
3312
|
+
* @default null
|
3313
|
+
*/
|
3314
|
+
previewImageUrl?: string;
|
2532
3315
|
/**
|
2533
3316
|
* @description if this component uses team permissions or custom permissions
|
2534
3317
|
* @default true
|
@@ -2872,6 +3655,21 @@ interface external$6 {
|
|
2872
3655
|
DataResourceVariables: {
|
2873
3656
|
[key: string]: string;
|
2874
3657
|
};
|
3658
|
+
/** @description Category for tagging canvas entities */
|
3659
|
+
Category: {
|
3660
|
+
/**
|
3661
|
+
* Format: uuid
|
3662
|
+
* @description Unique identifier for the category
|
3663
|
+
*/
|
3664
|
+
id: string;
|
3665
|
+
/** @description Display name of the category */
|
3666
|
+
name: string;
|
3667
|
+
/**
|
3668
|
+
* @description Sets the order of the category when displayed in a list with other categories. If not set, the order defaults to alphabetical with any explicitly set orders first in the list.
|
3669
|
+
* @default 0
|
3670
|
+
*/
|
3671
|
+
order?: number;
|
3672
|
+
};
|
2875
3673
|
/** @description Project map node information related to a component. */
|
2876
3674
|
CompositionProjectMapNodeInfo: {
|
2877
3675
|
/**
|
@@ -3021,6 +3819,8 @@ interface paths$4 {
|
|
3021
3819
|
* This is a primary query parameter, and cannot be used with any other primary query parameters.
|
3022
3820
|
*/
|
3023
3821
|
slug?: components$3["parameters"]["slug"];
|
3822
|
+
/** Filtration by category ID */
|
3823
|
+
categories?: components$3["parameters"]["categories"];
|
3024
3824
|
/**
|
3025
3825
|
* Publishing state to fetch. 0 = draft, 64 = published.
|
3026
3826
|
* This is a list query parameter, and cannot be used with any primary query parameters.
|
@@ -3120,6 +3920,22 @@ interface paths$4 {
|
|
3120
3920
|
created?: string;
|
3121
3921
|
/** @description Ignored if present */
|
3122
3922
|
modified?: string;
|
3923
|
+
/**
|
3924
|
+
* Format: uuid
|
3925
|
+
* @description Reference to the category this component definition belongs to
|
3926
|
+
* @default null
|
3927
|
+
*/
|
3928
|
+
categoryId?: string | null;
|
3929
|
+
/**
|
3930
|
+
* @description Description of the component definition
|
3931
|
+
* @default null
|
3932
|
+
*/
|
3933
|
+
description?: string | null;
|
3934
|
+
/**
|
3935
|
+
* @description Description of the component definition
|
3936
|
+
* @default null
|
3937
|
+
*/
|
3938
|
+
previewImageUrl?: string | null;
|
3123
3939
|
};
|
3124
3940
|
};
|
3125
3941
|
};
|
@@ -3189,6 +4005,15 @@ interface components$3 {
|
|
3189
4005
|
* @description Modified date string for this definition
|
3190
4006
|
*/
|
3191
4007
|
modified: string;
|
4008
|
+
/**
|
4009
|
+
* Format: uuid
|
4010
|
+
* @description Reference to the category this component definition belongs to
|
4011
|
+
*/
|
4012
|
+
categoryId?: string;
|
4013
|
+
/** @description Description of the component definition */
|
4014
|
+
description?: string;
|
4015
|
+
/** @description Description of the component definition */
|
4016
|
+
previewImageUrl?: string;
|
3192
4017
|
/** @description Whether this composition is a pattern (can be referenced by other compositions, not treated as a composition) */
|
3193
4018
|
pattern: boolean;
|
3194
4019
|
composition: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["RootComponentInstance"];
|
@@ -3258,6 +4083,8 @@ interface components$3 {
|
|
3258
4083
|
* This is a list query parameter, and cannot be used with any primary query parameters.
|
3259
4084
|
*/
|
3260
4085
|
limit: number;
|
4086
|
+
/** @description Filtration by category ID */
|
4087
|
+
categories: string[];
|
3261
4088
|
/**
|
3262
4089
|
* @deprecated
|
3263
4090
|
* @description Signals an enhancer proxy to skip processing enhancements to the data and return raw data only.
|
@@ -3493,7 +4320,7 @@ interface external$5 {
|
|
3493
4320
|
/** @description Friendly name of the component definition */
|
3494
4321
|
name: string;
|
3495
4322
|
/**
|
3496
|
-
* @description Icon name
|
4323
|
+
* @description Icon name for the component definition (e.g. 'screen')
|
3497
4324
|
* @default screen
|
3498
4325
|
*/
|
3499
4326
|
icon?: string;
|
@@ -3511,6 +4338,22 @@ interface external$5 {
|
|
3511
4338
|
canBeComposition?: boolean;
|
3512
4339
|
/** @description The parameters for this component. Parameters are key-value pairs that can be anything from text values to links to CMS entries. */
|
3513
4340
|
parameters?: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
|
4341
|
+
/**
|
4342
|
+
* Format: uuid
|
4343
|
+
* @description Reference to the category this component definition belongs to
|
4344
|
+
* @default null
|
4345
|
+
*/
|
4346
|
+
categoryId?: string | null;
|
4347
|
+
/**
|
4348
|
+
* @description Description of the component definition
|
4349
|
+
* @default null
|
4350
|
+
*/
|
4351
|
+
description?: string;
|
4352
|
+
/**
|
4353
|
+
* @description Description of the component definition
|
4354
|
+
* @default null
|
4355
|
+
*/
|
4356
|
+
previewImageUrl?: string;
|
3514
4357
|
/**
|
3515
4358
|
* @description if this component uses team permissions or custom permissions
|
3516
4359
|
* @default true
|
@@ -3854,6 +4697,21 @@ interface external$5 {
|
|
3854
4697
|
DataResourceVariables: {
|
3855
4698
|
[key: string]: string;
|
3856
4699
|
};
|
4700
|
+
/** @description Category for tagging canvas entities */
|
4701
|
+
Category: {
|
4702
|
+
/**
|
4703
|
+
* Format: uuid
|
4704
|
+
* @description Unique identifier for the category
|
4705
|
+
*/
|
4706
|
+
id: string;
|
4707
|
+
/** @description Display name of the category */
|
4708
|
+
name: string;
|
4709
|
+
/**
|
4710
|
+
* @description Sets the order of the category when displayed in a list with other categories. If not set, the order defaults to alphabetical with any explicitly set orders first in the list.
|
4711
|
+
* @default 0
|
4712
|
+
*/
|
4713
|
+
order?: number;
|
4714
|
+
};
|
3857
4715
|
/** @description Project map node information related to a component. */
|
3858
4716
|
CompositionProjectMapNodeInfo: {
|
3859
4717
|
/**
|
@@ -4305,7 +5163,7 @@ interface external$3 {
|
|
4305
5163
|
/** @description Friendly name of the component definition */
|
4306
5164
|
name: string;
|
4307
5165
|
/**
|
4308
|
-
* @description Icon name
|
5166
|
+
* @description Icon name for the component definition (e.g. 'screen')
|
4309
5167
|
* @default screen
|
4310
5168
|
*/
|
4311
5169
|
icon?: string;
|
@@ -4323,6 +5181,22 @@ interface external$3 {
|
|
4323
5181
|
canBeComposition?: boolean;
|
4324
5182
|
/** @description The parameters for this component. Parameters are key-value pairs that can be anything from text values to links to CMS entries. */
|
4325
5183
|
parameters?: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
|
5184
|
+
/**
|
5185
|
+
* Format: uuid
|
5186
|
+
* @description Reference to the category this component definition belongs to
|
5187
|
+
* @default null
|
5188
|
+
*/
|
5189
|
+
categoryId?: string | null;
|
5190
|
+
/**
|
5191
|
+
* @description Description of the component definition
|
5192
|
+
* @default null
|
5193
|
+
*/
|
5194
|
+
description?: string;
|
5195
|
+
/**
|
5196
|
+
* @description Description of the component definition
|
5197
|
+
* @default null
|
5198
|
+
*/
|
5199
|
+
previewImageUrl?: string;
|
4326
5200
|
/**
|
4327
5201
|
* @description if this component uses team permissions or custom permissions
|
4328
5202
|
* @default true
|
@@ -4666,6 +5540,21 @@ interface external$3 {
|
|
4666
5540
|
DataResourceVariables: {
|
4667
5541
|
[key: string]: string;
|
4668
5542
|
};
|
5543
|
+
/** @description Category for tagging canvas entities */
|
5544
|
+
Category: {
|
5545
|
+
/**
|
5546
|
+
* Format: uuid
|
5547
|
+
* @description Unique identifier for the category
|
5548
|
+
*/
|
5549
|
+
id: string;
|
5550
|
+
/** @description Display name of the category */
|
5551
|
+
name: string;
|
5552
|
+
/**
|
5553
|
+
* @description Sets the order of the category when displayed in a list with other categories. If not set, the order defaults to alphabetical with any explicitly set orders first in the list.
|
5554
|
+
* @default 0
|
5555
|
+
*/
|
5556
|
+
order?: number;
|
5557
|
+
};
|
4669
5558
|
/** @description Project map node information related to a component. */
|
4670
5559
|
CompositionProjectMapNodeInfo: {
|
4671
5560
|
/**
|
@@ -4783,6 +5672,8 @@ interface external$3 {
|
|
4783
5672
|
* This is a primary query parameter, and cannot be used with any other primary query parameters.
|
4784
5673
|
*/
|
4785
5674
|
slug?: external$3["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["slug"];
|
5675
|
+
/** Filtration by category ID */
|
5676
|
+
categories?: external$3["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["categories"];
|
4786
5677
|
/**
|
4787
5678
|
* Publishing state to fetch. 0 = draft, 64 = published.
|
4788
5679
|
* This is a list query parameter, and cannot be used with any primary query parameters.
|
@@ -4882,6 +5773,22 @@ interface external$3 {
|
|
4882
5773
|
created?: string;
|
4883
5774
|
/** @description Ignored if present */
|
4884
5775
|
modified?: string;
|
5776
|
+
/**
|
5777
|
+
* Format: uuid
|
5778
|
+
* @description Reference to the category this component definition belongs to
|
5779
|
+
* @default null
|
5780
|
+
*/
|
5781
|
+
categoryId?: string | null;
|
5782
|
+
/**
|
5783
|
+
* @description Description of the component definition
|
5784
|
+
* @default null
|
5785
|
+
*/
|
5786
|
+
description?: string | null;
|
5787
|
+
/**
|
5788
|
+
* @description Description of the component definition
|
5789
|
+
* @default null
|
5790
|
+
*/
|
5791
|
+
previewImageUrl?: string | null;
|
4885
5792
|
};
|
4886
5793
|
};
|
4887
5794
|
};
|
@@ -4951,6 +5858,15 @@ interface external$3 {
|
|
4951
5858
|
* @description Modified date string for this definition
|
4952
5859
|
*/
|
4953
5860
|
modified: string;
|
5861
|
+
/**
|
5862
|
+
* Format: uuid
|
5863
|
+
* @description Reference to the category this component definition belongs to
|
5864
|
+
*/
|
5865
|
+
categoryId?: string;
|
5866
|
+
/** @description Description of the component definition */
|
5867
|
+
description?: string;
|
5868
|
+
/** @description Description of the component definition */
|
5869
|
+
previewImageUrl?: string;
|
4954
5870
|
/** @description Whether this composition is a pattern (can be referenced by other compositions, not treated as a composition) */
|
4955
5871
|
pattern: boolean;
|
4956
5872
|
composition: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["RootComponentInstance"];
|
@@ -5020,6 +5936,8 @@ interface external$3 {
|
|
5020
5936
|
* This is a list query parameter, and cannot be used with any primary query parameters.
|
5021
5937
|
*/
|
5022
5938
|
limit: number;
|
5939
|
+
/** @description Filtration by category ID */
|
5940
|
+
categories: string[];
|
5023
5941
|
/**
|
5024
5942
|
* @deprecated
|
5025
5943
|
* @description Signals an enhancer proxy to skip processing enhancements to the data and return raw data only.
|
@@ -5744,7 +6662,7 @@ interface external$2 {
|
|
5744
6662
|
/** @description Friendly name of the component definition */
|
5745
6663
|
name: string;
|
5746
6664
|
/**
|
5747
|
-
* @description Icon name
|
6665
|
+
* @description Icon name for the component definition (e.g. 'screen')
|
5748
6666
|
* @default screen
|
5749
6667
|
*/
|
5750
6668
|
icon?: string;
|
@@ -5762,6 +6680,22 @@ interface external$2 {
|
|
5762
6680
|
canBeComposition?: boolean;
|
5763
6681
|
/** @description The parameters for this component. Parameters are key-value pairs that can be anything from text values to links to CMS entries. */
|
5764
6682
|
parameters?: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
|
6683
|
+
/**
|
6684
|
+
* Format: uuid
|
6685
|
+
* @description Reference to the category this component definition belongs to
|
6686
|
+
* @default null
|
6687
|
+
*/
|
6688
|
+
categoryId?: string | null;
|
6689
|
+
/**
|
6690
|
+
* @description Description of the component definition
|
6691
|
+
* @default null
|
6692
|
+
*/
|
6693
|
+
description?: string;
|
6694
|
+
/**
|
6695
|
+
* @description Description of the component definition
|
6696
|
+
* @default null
|
6697
|
+
*/
|
6698
|
+
previewImageUrl?: string;
|
5765
6699
|
/**
|
5766
6700
|
* @description if this component uses team permissions or custom permissions
|
5767
6701
|
* @default true
|
@@ -6105,6 +7039,21 @@ interface external$2 {
|
|
6105
7039
|
DataResourceVariables: {
|
6106
7040
|
[key: string]: string;
|
6107
7041
|
};
|
7042
|
+
/** @description Category for tagging canvas entities */
|
7043
|
+
Category: {
|
7044
|
+
/**
|
7045
|
+
* Format: uuid
|
7046
|
+
* @description Unique identifier for the category
|
7047
|
+
*/
|
7048
|
+
id: string;
|
7049
|
+
/** @description Display name of the category */
|
7050
|
+
name: string;
|
7051
|
+
/**
|
7052
|
+
* @description Sets the order of the category when displayed in a list with other categories. If not set, the order defaults to alphabetical with any explicitly set orders first in the list.
|
7053
|
+
* @default 0
|
7054
|
+
*/
|
7055
|
+
order?: number;
|
7056
|
+
};
|
6108
7057
|
/** @description Project map node information related to a component. */
|
6109
7058
|
CompositionProjectMapNodeInfo: {
|
6110
7059
|
/**
|
@@ -6222,6 +7171,8 @@ interface external$2 {
|
|
6222
7171
|
* This is a primary query parameter, and cannot be used with any other primary query parameters.
|
6223
7172
|
*/
|
6224
7173
|
slug?: external$2["v1-canvas.swagger.yml"]["components"]["parameters"]["slug"];
|
7174
|
+
/** Filtration by category ID */
|
7175
|
+
categories?: external$2["v1-canvas.swagger.yml"]["components"]["parameters"]["categories"];
|
6225
7176
|
/**
|
6226
7177
|
* Publishing state to fetch. 0 = draft, 64 = published.
|
6227
7178
|
* This is a list query parameter, and cannot be used with any primary query parameters.
|
@@ -6321,6 +7272,22 @@ interface external$2 {
|
|
6321
7272
|
created?: string;
|
6322
7273
|
/** @description Ignored if present */
|
6323
7274
|
modified?: string;
|
7275
|
+
/**
|
7276
|
+
* Format: uuid
|
7277
|
+
* @description Reference to the category this component definition belongs to
|
7278
|
+
* @default null
|
7279
|
+
*/
|
7280
|
+
categoryId?: string | null;
|
7281
|
+
/**
|
7282
|
+
* @description Description of the component definition
|
7283
|
+
* @default null
|
7284
|
+
*/
|
7285
|
+
description?: string | null;
|
7286
|
+
/**
|
7287
|
+
* @description Description of the component definition
|
7288
|
+
* @default null
|
7289
|
+
*/
|
7290
|
+
previewImageUrl?: string | null;
|
6324
7291
|
};
|
6325
7292
|
};
|
6326
7293
|
};
|
@@ -6390,6 +7357,15 @@ interface external$2 {
|
|
6390
7357
|
* @description Modified date string for this definition
|
6391
7358
|
*/
|
6392
7359
|
modified: string;
|
7360
|
+
/**
|
7361
|
+
* Format: uuid
|
7362
|
+
* @description Reference to the category this component definition belongs to
|
7363
|
+
*/
|
7364
|
+
categoryId?: string;
|
7365
|
+
/** @description Description of the component definition */
|
7366
|
+
description?: string;
|
7367
|
+
/** @description Description of the component definition */
|
7368
|
+
previewImageUrl?: string;
|
6393
7369
|
/** @description Whether this composition is a pattern (can be referenced by other compositions, not treated as a composition) */
|
6394
7370
|
pattern: boolean;
|
6395
7371
|
composition: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["RootComponentInstance"];
|
@@ -6459,6 +7435,8 @@ interface external$2 {
|
|
6459
7435
|
* This is a list query parameter, and cannot be used with any primary query parameters.
|
6460
7436
|
*/
|
6461
7437
|
limit: number;
|
7438
|
+
/** @description Filtration by category ID */
|
7439
|
+
categories: string[];
|
6462
7440
|
/**
|
6463
7441
|
* @deprecated
|
6464
7442
|
* @description Signals an enhancer proxy to skip processing enhancements to the data and return raw data only.
|
@@ -6829,6 +7807,7 @@ type CanvasDefinitions = {
|
|
6829
7807
|
components?: Array<ComponentDefinition>;
|
6830
7808
|
compositions?: Array<CompositionGetResponse>;
|
6831
7809
|
dataTypes?: Array<DataType>;
|
7810
|
+
categories?: Array<Category>;
|
6832
7811
|
};
|
6833
7812
|
/** Defines shared parameters for requests getting a single composition */
|
6834
7813
|
type CompositionGetOneSharedParameters = Pick<CompositionGetParameters, 'state' | 'skipEnhance' | 'skipPatternResolution' | 'withComponentIDs' | 'withUIStatus' | 'withTotalCount' | 'skipOverridesResolution' | 'withContentSourceMap' | 'versionId'>;
|
@@ -6924,6 +7903,9 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
6924
7903
|
projectId: string;
|
6925
7904
|
created: string;
|
6926
7905
|
modified: string;
|
7906
|
+
categoryId?: string | undefined;
|
7907
|
+
description?: string | undefined;
|
7908
|
+
previewImageUrl?: string | undefined;
|
6927
7909
|
pattern: boolean;
|
6928
7910
|
composition: {
|
6929
7911
|
type: string;
|
@@ -7092,6 +8074,9 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
7092
8074
|
type: string;
|
7093
8075
|
typeConfig?: unknown;
|
7094
8076
|
}[] | undefined;
|
8077
|
+
categoryId?: string | null | undefined;
|
8078
|
+
description?: string | undefined;
|
8079
|
+
previewImageUrl?: string | undefined;
|
7095
8080
|
useTeamPermissions?: boolean | undefined;
|
7096
8081
|
permissions?: {
|
7097
8082
|
roleId: string;
|
@@ -7192,6 +8177,25 @@ declare class UncachedCanvasClient extends CanvasClient {
|
|
7192
8177
|
constructor(options: Omit<CanvasClientOptions, 'bypassCache'>);
|
7193
8178
|
}
|
7194
8179
|
|
8180
|
+
declare class CategoryClient extends ApiClient {
|
8181
|
+
constructor(options: ClientOptions);
|
8182
|
+
/** Fetches all categories created in given project */
|
8183
|
+
getCategories(options?: Omit<CategoriesGetParameters, 'projectId'>): Promise<{
|
8184
|
+
categories: {
|
8185
|
+
id: string;
|
8186
|
+
name: string;
|
8187
|
+
order?: number | undefined;
|
8188
|
+
}[];
|
8189
|
+
}>;
|
8190
|
+
/** Updates or creates a category, also used to re-order them */
|
8191
|
+
upsertCategories(categories: CategoriesPutParameters['categories']): Promise<unknown>;
|
8192
|
+
/** Deletes a category */
|
8193
|
+
removeCategory(options: Omit<CategoriesDeleteParameters, 'projectId'>): Promise<unknown>;
|
8194
|
+
}
|
8195
|
+
declare class UncachedCategoryClient extends CategoryClient {
|
8196
|
+
constructor(options: Omit<ClientOptions, 'bypassCache'>);
|
8197
|
+
}
|
8198
|
+
|
7195
8199
|
/**
|
7196
8200
|
* This file was auto-generated by openapi-typescript.
|
7197
8201
|
* Do not make direct changes to the file.
|
@@ -8288,8 +9292,7 @@ type GetParameterAttributesProps = {
|
|
8288
9292
|
/**
|
8289
9293
|
* Returns the attributes needed to annotate a Uniform parameter for inline editing.
|
8290
9294
|
* Supports only text parameters at the moment.
|
8291
|
-
|
8292
|
-
**/
|
9295
|
+
*/
|
8293
9296
|
declare const getParameterAttributes: ({ id, component, placeholder, isMultiline, }: GetParameterAttributesProps) => Record<string, string | boolean | undefined>;
|
8294
9297
|
|
8295
9298
|
declare const generateHash: ({ composition, secret, }: {
|
@@ -8314,4 +9317,4 @@ declare function mapSlotToTestVariations(slot: ComponentInstance[] | undefined):
|
|
8314
9317
|
|
8315
9318
|
declare const CanvasClientError: typeof ApiClientError;
|
8316
9319
|
|
8317
|
-
export { ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, AddComponentMessage, BatchEnhancer, BatchEntry, BatchInvalidationPayload, BindVariablesOptions, BindVariablesResult, BindVariablesToObjectOptions, CANVAS_DRAFT_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CanvasClient, CanvasClientError, CanvasDefinitions, Channel, ChannelMessage, ChannelSubscription, ChildEnhancerBuilder, ComponentDefinition, ComponentDefinitionDeleteParameters, ComponentDefinitionGetParameters, ComponentDefinitionGetResponse, ComponentDefinitionParameter, ComponentDefinitionPermission, ComponentDefinitionPutParameters, ComponentDefinitionSlot, ComponentDefinitionSlugSettings, ComponentDefinitionVariant, ComponentEnhancer, ComponentEnhancerFunction, ComponentEnhancerOptions, ComponentInstance, ComponentInstanceHistoryEntry, ComponentInstanceHistoryGetParameters, ComponentInstanceHistoryGetResponse, ComponentLocationReference, ComponentOverridability, ComponentOverride, ComponentOverrides, ComponentParameter, ComponentParameterContextualEditing, ComponentParameterEnhancer, ComponentParameterEnhancerFunction, ComponentParameterEnhancerOptions, CompositionDataDiagnostic, CompositionDeleteParameters, CompositionDiagnostics, CompositionGetByIdParameters, CompositionGetByNodeIdParameters, CompositionGetByNodePathParameters, CompositionGetBySlugParameters, CompositionGetListResponse, CompositionGetOrderBy, CompositionGetParameters, CompositionGetResponse, CompositionGetValidResponses, CompositionIssue, CompositionPatternIssue, CompositionPutParameters, CompositionRelationshipsClientOptions, CompositionRelationshipsDDefinitionGetResponse, CompositionRelationshipsDefinitionApi, CompositionRelationshipsDefinitionGetParameters, CompositionResolvedGetResponse, CompositionUIStatus, ContextualEditingComponentReference, DataElementBindingIssue, DataElementConnectionDefinition, DataResolutionConfigIssue, DataResolutionOption, DataResolutionOptionNegative, DataResolutionOptionPositive, DataResolutionParameters, DataResourceDefinition, DataResourceDefinitions, DataResourceIssue, DataResourceVariables, DataSource, DataSourceClient, DataSourceDeleteParameters, DataSourceGetParameters, DataSourceGetResponse, DataSourcePutParameters, DataSourcesGetParameters, DataSourcesGetResponse, DataType, DataTypeClient, DataTypeDeleteParameters, DataTypeGetParameters, DataTypeGetResponse, DataTypePutParameters, DataVariableDefinition, DismissPlaceholderMessage, DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_DEFAULT_L2_CACHE_TTL_IN_HOURS, EDGE_MAX_CACHE_TTL, EDGE_MAX_L2_CACHE_TTL_IN_HOURS, EDGE_MIN_CACHE_TTL, EDGE_MIN_L2_CACHE_TTL_IN_HOURS, EMPTY_COMPOSITION, EnhancerBuilder, EnhancerContext, EnhancerError, EventNames, GetParameterAttributesProps, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, InvalidationPayload, InvalidationResult, LimitPolicy, LinkComponentParameterValue, LinkParamConfiguration, LinkParamValue, LinkParameterType, LinkTypeConfiguration, MessageHandler, MoveComponentMessage, NonProjectMapLinkParamValue, OverrideOptions, PLACEHOLDER_ID, PreviewEventBus, PreviewPanelSettings, ProjectMapLinkComponentParameterValue, ProjectMapLinkParamValue, ReadyMessage, ReportRenderedCompositionsMessage, ResolvedRouteGetResponse, RichTextBuiltInElement, RichTextBuiltInFormat, RichTextParamConfiguration, RichTextParamValue, RootComponentInstance, RouteClient, RouteDynamicInputs, RouteGetParameters, RouteGetResponse, RouteGetResponseComposition, RouteGetResponseEdgehancedComposition, RouteGetResponseNotFound, RouteGetResponseRedirect, SelectComponentMessage, SelectParameterMessage, SpecificProjectMap, SubscribeToCompositionOptions, TriggerCompositionActionMessage, UncachedCanvasClient, UniqueBatchEntries, UnsubscribeCallback, UpdateComponentParameterMessage, UpdateCompositionInternalMessage, UpdateCompositionMessage, UpdateContextualEditingStateInternalMessage, UpdatePreviewSettingsMessage, UsageTrackingApi, UsageTrackingGetParameters, UsageTrackingGetResponse, UsageTrackingPostParameters, UsageTrackingPostResponse, WalkComponentTreeActions, bindVariables, bindVariablesToObject, compose, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, enhance, extractLocales, generateHash, getChannelName, getComponentJsonPointer, getComponentPath, getParameterAttributes, isAddComponentMessage, isDismissPlaceholderMessage, isMovingComponentMessage, isReadyMessage, isReportRenderedCompositionsMessage, isSelectComponentMessage, isSelectParameterMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree };
|
9320
|
+
export { ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, AddComponentMessage, BatchEnhancer, BatchEntry, BatchInvalidationPayload, BindVariablesOptions, BindVariablesResult, BindVariablesToObjectOptions, CANVAS_DRAFT_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CanvasClient, CanvasClientError, CanvasDefinitions, CategoriesDeleteParameters, CategoriesGetParameters, CategoriesGetResponse, CategoriesPutParameters, Category, CategoryClient, Channel, ChannelMessage, ChannelSubscription, ChildEnhancerBuilder, ComponentDefinition, ComponentDefinitionDeleteParameters, ComponentDefinitionGetParameters, ComponentDefinitionGetResponse, ComponentDefinitionParameter, ComponentDefinitionPermission, ComponentDefinitionPutParameters, ComponentDefinitionSlot, ComponentDefinitionSlugSettings, ComponentDefinitionVariant, ComponentEnhancer, ComponentEnhancerFunction, ComponentEnhancerOptions, ComponentInstance, ComponentInstanceHistoryEntry, ComponentInstanceHistoryGetParameters, ComponentInstanceHistoryGetResponse, ComponentLocationReference, ComponentOverridability, ComponentOverride, ComponentOverrides, ComponentParameter, ComponentParameterContextualEditing, ComponentParameterEnhancer, ComponentParameterEnhancerFunction, ComponentParameterEnhancerOptions, CompositionDataDiagnostic, CompositionDeleteParameters, CompositionDiagnostics, CompositionGetByIdParameters, CompositionGetByNodeIdParameters, CompositionGetByNodePathParameters, CompositionGetBySlugParameters, CompositionGetListResponse, CompositionGetOrderBy, CompositionGetParameters, CompositionGetResponse, CompositionGetValidResponses, CompositionIssue, CompositionPatternIssue, CompositionPutParameters, CompositionRelationshipsClientOptions, CompositionRelationshipsDDefinitionGetResponse, CompositionRelationshipsDefinitionApi, CompositionRelationshipsDefinitionGetParameters, CompositionResolvedGetResponse, CompositionUIStatus, ContextualEditingComponentReference, DataElementBindingIssue, DataElementConnectionDefinition, DataResolutionConfigIssue, DataResolutionOption, DataResolutionOptionNegative, DataResolutionOptionPositive, DataResolutionParameters, DataResourceDefinition, DataResourceDefinitions, DataResourceIssue, DataResourceVariables, DataSource, DataSourceClient, DataSourceDeleteParameters, DataSourceGetParameters, DataSourceGetResponse, DataSourcePutParameters, DataSourcesGetParameters, DataSourcesGetResponse, DataType, DataTypeClient, DataTypeDeleteParameters, DataTypeGetParameters, DataTypeGetResponse, DataTypePutParameters, DataVariableDefinition, DismissPlaceholderMessage, DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_DEFAULT_L2_CACHE_TTL_IN_HOURS, EDGE_MAX_CACHE_TTL, EDGE_MAX_L2_CACHE_TTL_IN_HOURS, EDGE_MIN_CACHE_TTL, EDGE_MIN_L2_CACHE_TTL_IN_HOURS, EMPTY_COMPOSITION, EnhancerBuilder, EnhancerContext, EnhancerError, EventNames, GetParameterAttributesProps, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, InvalidationPayload, InvalidationResult, LimitPolicy, LinkComponentParameterValue, LinkParamConfiguration, LinkParamValue, LinkParameterType, LinkTypeConfiguration, MessageHandler, MoveComponentMessage, NonProjectMapLinkParamValue, OverrideOptions, PLACEHOLDER_ID, PreviewEventBus, PreviewPanelSettings, ProjectMapLinkComponentParameterValue, ProjectMapLinkParamValue, ReadyMessage, ReportRenderedCompositionsMessage, ResolvedRouteGetResponse, RichTextBuiltInElement, RichTextBuiltInFormat, RichTextParamConfiguration, RichTextParamValue, RootComponentInstance, RouteClient, RouteDynamicInputs, RouteGetParameters, RouteGetResponse, RouteGetResponseComposition, RouteGetResponseEdgehancedComposition, RouteGetResponseNotFound, RouteGetResponseRedirect, SelectComponentMessage, SelectParameterMessage, SpecificProjectMap, SubscribeToCompositionOptions, TriggerCompositionActionMessage, UncachedCanvasClient, UncachedCategoryClient, UniqueBatchEntries, UnsubscribeCallback, UpdateComponentParameterMessage, UpdateCompositionInternalMessage, UpdateCompositionMessage, UpdateContextualEditingStateInternalMessage, UpdatePreviewSettingsMessage, UsageTrackingApi, UsageTrackingGetParameters, UsageTrackingGetResponse, UsageTrackingPostParameters, UsageTrackingPostResponse, WalkComponentTreeActions, bindVariables, bindVariablesToObject, compose, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, enhance, extractLocales, generateHash, getChannelName, getComponentJsonPointer, getComponentPath, getParameterAttributes, isAddComponentMessage, isDismissPlaceholderMessage, isMovingComponentMessage, isReadyMessage, isReportRenderedCompositionsMessage, isSelectComponentMessage, isSelectParameterMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree };
|