@uniformdev/canvas 20.29.2-alpha.14 → 20.29.2-alpha.8
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 +15 -41
- package/dist/index.d.ts +15 -41
- package/dist/index.esm.js +4 -14
- package/dist/index.js +4 -14
- package/dist/index.mjs +4 -14
- package/package.json +7 -6
package/dist/index.d.mts
CHANGED
@@ -2,6 +2,7 @@ import { ApiClient, ExceptProject, ClientOptions, ApiClientError } from '@unifor
|
|
2
2
|
export { ApiClientError } from '@uniformdev/context/api';
|
3
3
|
import { AssetGetResponseSingle, AssetParamValue, AssetParamValueItem } from '@uniformdev/assets';
|
4
4
|
export { AssetParamValue, AssetParamValueItem } from '@uniformdev/assets';
|
5
|
+
import { EndpointOut, EndpointHeadersOut, EndpointTransformationOut } from 'svix';
|
5
6
|
import { Quirks, StorageCommands, PersonalizedVariant, VariationMatchMetadata, TestVariant } from '@uniformdev/context';
|
6
7
|
import { Options as Options$1 } from 'p-retry';
|
7
8
|
import { Options } from 'p-throttle';
|
@@ -3094,13 +3095,7 @@ interface paths$h {
|
|
3094
3095
|
put: {
|
3095
3096
|
parameters: {
|
3096
3097
|
query?: never;
|
3097
|
-
header?:
|
3098
|
-
/** @description Optional concurrency control header. If provided, the server will check that the entry
|
3099
|
-
* has not been modified since this timestamp. If the timestamp doesn't match the current
|
3100
|
-
* modified timestamp, a 409 Conflict response will be returned.
|
3101
|
-
* */
|
3102
|
-
"X-If-Unmodified-Since"?: string;
|
3103
|
-
};
|
3098
|
+
header?: never;
|
3104
3099
|
path?: never;
|
3105
3100
|
cookie?: never;
|
3106
3101
|
};
|
@@ -3174,15 +3169,6 @@ interface paths$h {
|
|
3174
3169
|
400: components$j["responses"]["BadRequestError"];
|
3175
3170
|
401: components$j["responses"]["UnauthorizedError"];
|
3176
3171
|
403: components$j["responses"]["ForbiddenError"];
|
3177
|
-
/** @description Conflict - Entry has been changed since being loaded */
|
3178
|
-
409: {
|
3179
|
-
headers: {
|
3180
|
-
[name: string]: unknown;
|
3181
|
-
};
|
3182
|
-
content: {
|
3183
|
-
"text/plain": string;
|
3184
|
-
};
|
3185
|
-
};
|
3186
3172
|
429: components$j["responses"]["RateLimitError"];
|
3187
3173
|
500: components$j["responses"]["InternalServerError"];
|
3188
3174
|
};
|
@@ -6299,13 +6285,7 @@ interface paths$a {
|
|
6299
6285
|
put: {
|
6300
6286
|
parameters: {
|
6301
6287
|
query?: never;
|
6302
|
-
header?:
|
6303
|
-
/** @description Optional concurrency control header. If provided, the server will check that the composition
|
6304
|
-
* has not been modified since this timestamp. If the timestamp doesn't match the current
|
6305
|
-
* modified timestamp, a 409 Conflict response will be returned.
|
6306
|
-
* */
|
6307
|
-
"X-If-Unmodified-Since"?: string;
|
6308
|
-
};
|
6288
|
+
header?: never;
|
6309
6289
|
path?: never;
|
6310
6290
|
cookie?: never;
|
6311
6291
|
};
|
@@ -6395,15 +6375,6 @@ interface paths$a {
|
|
6395
6375
|
400: components$b["responses"]["BadRequestError"];
|
6396
6376
|
401: components$b["responses"]["UnauthorizedError"];
|
6397
6377
|
403: components$b["responses"]["ForbiddenError"];
|
6398
|
-
/** @description Conflict - Composition has been changed since being loaded */
|
6399
|
-
409: {
|
6400
|
-
headers: {
|
6401
|
-
[name: string]: unknown;
|
6402
|
-
};
|
6403
|
-
content: {
|
6404
|
-
"text/plain": string;
|
6405
|
-
};
|
6406
|
-
};
|
6407
6378
|
429: components$b["responses"]["RateLimitError"];
|
6408
6379
|
500: components$b["responses"]["InternalServerError"];
|
6409
6380
|
};
|
@@ -9733,6 +9704,14 @@ type CopiedComponentSubtree = {
|
|
9733
9704
|
* Defines how a component on a pattern may have its values overridden
|
9734
9705
|
*/
|
9735
9706
|
type ComponentOverridability = SharedComponents$1['ComponentOverridability'];
|
9707
|
+
/**
|
9708
|
+
* Defines the shape of serialized webhook
|
9709
|
+
*/
|
9710
|
+
type WebhookDefinition = {
|
9711
|
+
endpoint: EndpointOut;
|
9712
|
+
headers: EndpointHeadersOut | null;
|
9713
|
+
transformation: EndpointTransformationOut | null;
|
9714
|
+
};
|
9736
9715
|
/** Defines single structure to keep all canvas models (used in CLI commands and Starter content generations) */
|
9737
9716
|
type CanvasDefinitions = {
|
9738
9717
|
components?: Array<ComponentDefinition>;
|
@@ -9750,6 +9729,7 @@ type CanvasDefinitions = {
|
|
9750
9729
|
workflows?: Array<WorkflowDefinition>;
|
9751
9730
|
previewUrls?: Array<PreviewUrl>;
|
9752
9731
|
previewViewports?: Array<PreviewViewport>;
|
9732
|
+
webhooks?: Array<WebhookDefinition>;
|
9753
9733
|
};
|
9754
9734
|
/** Defines shared parameters for requests getting a single composition */
|
9755
9735
|
type CompositionGetOneSharedParameters = Pick<CompositionGetParameters, 'state' | 'skipEnhance' | 'skipPatternResolution' | 'withComponentIDs' | 'withUIStatus' | 'withWorkflowDefinition' | 'withProjectMapNodes' | 'withTotalCount' | 'skipOverridesResolution' | 'withContentSourceMap' | 'versionId' | 'locale' | 'releaseId' | 'editions'>;
|
@@ -11593,9 +11573,6 @@ type CanvasClientOptions = ClientOptions & {
|
|
11593
11573
|
edgeApiHost?: string;
|
11594
11574
|
disableSWR?: boolean;
|
11595
11575
|
};
|
11596
|
-
type UpdateCompositionOptions = {
|
11597
|
-
ifUnmodifiedSince?: string;
|
11598
|
-
};
|
11599
11576
|
declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
11600
11577
|
private edgeApiHost;
|
11601
11578
|
private edgeApiRequestInit?;
|
@@ -11637,7 +11614,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
11637
11614
|
}>;
|
11638
11615
|
private getOneComposition;
|
11639
11616
|
/** Updates or creates a Canvas component definition */
|
11640
|
-
updateComposition(body: Omit<CompositionPutParameters, 'projectId'
|
11617
|
+
updateComposition(body: Omit<CompositionPutParameters, 'projectId'>): Promise<{
|
11641
11618
|
modified: string | null;
|
11642
11619
|
}>;
|
11643
11620
|
/** Deletes a Canvas component definition */
|
@@ -11670,9 +11647,6 @@ declare class UncachedCategoryClient extends CategoryClient {
|
|
11670
11647
|
constructor(options: Omit<ClientOptions, 'bypassCache'>);
|
11671
11648
|
}
|
11672
11649
|
|
11673
|
-
type UpsertEntryOptions = {
|
11674
|
-
ifUnmodifiedSince?: string;
|
11675
|
-
};
|
11676
11650
|
type ContentClientOptions = ClientOptions & {
|
11677
11651
|
edgeApiHost?: string;
|
11678
11652
|
disableSWR?: boolean;
|
@@ -11694,7 +11668,7 @@ declare class ContentClient extends ApiClient<ContentClientOptions> {
|
|
11694
11668
|
upsertContentType(body: ExceptProject<PutContentTypeBody>, opts?: {
|
11695
11669
|
autogenerateDataTypes?: boolean;
|
11696
11670
|
}): Promise<void>;
|
11697
|
-
upsertEntry(body: ExceptProject<PutEntryBody
|
11671
|
+
upsertEntry(body: ExceptProject<PutEntryBody>): Promise<{
|
11698
11672
|
modified: string | null;
|
11699
11673
|
}>;
|
11700
11674
|
deleteContentType(body: ExceptProject<DeleteContentTypeOptions>): Promise<void>;
|
@@ -13347,4 +13321,4 @@ declare class WorkflowClient extends ApiClient {
|
|
13347
13321
|
|
13348
13322
|
declare const CanvasClientError: typeof ApiClientError;
|
13349
13323
|
|
13350
|
-
export { ASSETS_SOURCE_CUSTOM_URL, ASSETS_SOURCE_UNIFORM, ASSET_PARAMETER_TYPE, ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, type AddComponentMessage, type BatchEnhancer, BatchEntry, type BatchInvalidationPayload, type BindVariablesOptions, type BindVariablesResult, type BindVariablesToObjectOptions, BlockFormatError, type BlockLocationReference, type BlockValue, CANVAS_BLOCK_PARAM_TYPE, CANVAS_CONTEXTUAL_EDITING_PARAM, CANVAS_DRAFT_STATE, CANVAS_EDITOR_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_ALGORITHM_PARAM, CANVAS_PERSONALIZATION_ALGORITHM_TYPE, CANVAS_PERSONALIZATION_EVENT_NAME_PARAM, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZATION_TAKE_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_SLOT_SECTION_SLOT, CANVAS_SLOT_SECTION_TYPE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CANVAS_VIZ_CONTROL_PARAM, CANVAS_VIZ_DI_RULE, CANVAS_VIZ_DYNAMIC_TOKEN_RULE, CANVAS_VIZ_LOCALE_RULE, CANVAS_VIZ_QUIRKS_RULE, CanvasClient, CanvasClientError, type CanvasDefinitions, type CategoriesDeleteParameters, type CategoriesGetParameters, type CategoriesGetResponse, type CategoriesPutParameters, type Category, CategoryClient, type Channel, type ChannelMessage, ChildEnhancerBuilder, type ComponentDefinition, type ComponentDefinitionDeleteParameters, type ComponentDefinitionGetParameters, type ComponentDefinitionGetResponse, type ComponentDefinitionParameter, type ComponentDefinitionPermission, type ComponentDefinitionPutParameters, type ComponentDefinitionSlot, type ComponentDefinitionSlugSettings, type ComponentDefinitionVariant, type ComponentEnhancer, type ComponentEnhancerFunction, type ComponentEnhancerOptions, type ComponentInstance, type ComponentInstanceContextualEditing, type ComponentInstanceHistoryEntry, type ComponentInstanceHistoryGetParameters, type ComponentInstanceHistoryGetResponse, type ComponentLocationReference, type ComponentOverridability, type ComponentOverride, type ComponentOverrides, type ComponentParameter, type ComponentParameterBlock, type ComponentParameterConditionalValue, type ComponentParameterContextualEditing, type ComponentParameterEnhancer, type ComponentParameterEnhancerFunction, type ComponentParameterEnhancerOptions, type CompositionDeleteParameters, type CompositionFilters, type CompositionGetByComponentIdParameters, type CompositionGetByIdParameters, type CompositionGetByNodeIdParameters, type CompositionGetByNodePathParameters, type CompositionGetBySlugParameters, type CompositionGetListResponse, type CompositionGetParameters, type CompositionGetResponse, type CompositionGetValidResponses, type CompositionPutParameters, type CompositionResolvedGetResponse, type CompositionResolvedListResponse, type CompositionUIStatus, ContentClient, type ContentType, type ContentTypeField, type ContentTypePreviewConfiguration, type ContextStorageUpdatedMessage, type ContextualEditingComponentReference, type ContextualEditingValue, type CopiedComponentSubtree, type DataDiagnostic, type DataElementBindingIssue, type DataElementConnectionDefinition, type DataElementConnectionFailureAction, type DataElementConnectionFailureLogLevel, type DataResolutionConfigIssue, type DataResolutionIssue, type DataResolutionOption, type DataResolutionOptionNegative, type DataResolutionOptionPositive, type DataResolutionParameters, type DataResourceDefinition, type DataResourceDefinitions, type DataResourceIssue, type DataResourceVariables, type DataSource, DataSourceClient, type DataSourceDeleteParameters, type DataSourceGetParameters, type DataSourceGetResponse, type DataSourcePutParameters, type DataSourceVariantData, type DataSourceVariantsKeys, type DataSourcesGetParameters, type DataSourcesGetResponse, type DataType, DataTypeClient, type DataTypeDeleteParameters, type DataTypeGetParameters, type DataTypeGetResponse, type DataTypePutParameters, type DataVariableDefinition, type DataWithProperties, type DeleteContentTypeOptions, type DeleteEntryOptions, type DismissPlaceholderMessage, type DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_MAX_CACHE_TTL, EDGE_MIN_CACHE_TTL, EMPTY_COMPOSITION, type EdgehancersDiagnostics, type EdgehancersWholeResponseCacheDiagnostics, type EditorStateUpdatedMessage, EnhancerBuilder, type EnhancerContext, type EnhancerError, EntityReleasesClient, type EntityReleasesGetParameters, type EntityReleasesGetResponse, type EntriesGetParameters, type EntriesGetResponse, type EntriesHistoryGetParameters, type EntriesHistoryGetResponse, type EntriesResolvedListResponse, type Entry, type EntryData, type EntryFilters, type EntryList, type EvaluateCriteriaGroupOptions, type EvaluateNodeTreeVisibilityOptions, type EvaluateNodeVisibilityParameterOptions, type EvaluatePropertyCriteriaOptions, type EvaluateWalkTreePropertyCriteriaOptions, type Filters, type FindInNodeTreeReference, type FlattenProperty, type FlattenValues, type FlattenValuesOptions, type GetContentTypesOptions, type GetContentTypesResponse, type GetEffectivePropertyValueOptions, type GetEntriesOptions, type GetEntriesResponse, type GetParameterAttributesProps, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_FORCED_SETTINGS_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, type InvalidationPayload, LOCALE_DYNAMIC_INPUT_NAME, type LimitPolicy, type LinkParamConfiguration, type LinkParamValue, type LinkParameterType, type LinkTypeConfiguration, type Locale, LocaleClient, type LocaleDeleteParameters, type LocalePutParameters, type LocalesGetParameters, type LocalesGetResponse, type LocalizeOptions, type MaxDepthExceededIssue, type MessageHandler, type MoveComponentMessage, type MultiSelectParamConfiguration, type MultiSelectParamValue, type NodeLocationReference, type NonProjectMapLinkParamValue, type NumberParamConfig, type NumberParamValue, type OpenParameterEditorMessage, type OverrideOptions, PLACEHOLDER_ID, type PatternIssue, PreviewClient, type PreviewPanelSettings, type PreviewUrl, type PreviewUrlDeleteParameters, type PreviewUrlDeleteResponse, type PreviewUrlPutParameters, type PreviewUrlPutResponse, type PreviewUrlsGetParameters, type PreviewUrlsGetResponse, type PreviewViewport, type PreviewViewportDeleteParameters, type PreviewViewportDeleteResponse, type PreviewViewportPutParameters, type PreviewViewportPutResponse, type PreviewViewportsGetParameters, type PreviewViewportsGetResponse, type Project, ProjectClient, type ProjectDeleteParameters, type ProjectGetParameters, type ProjectGetResponse, type ProjectMapLinkParamValue, type ProjectPutParameters, type ProjectPutResponse, type Prompt, PromptClient, type PromptsDeleteParameters, type PromptsGetParameters, type PromptsGetResponse, type PromptsPutParameters, type PropertyCriteriaMatch, type PropertyValue, type PutContentTypeBody, type PutEntryBody, type ReadyMessage, RelationshipClient, type RelationshipResultInstance, type Release, ReleaseClient, type ReleaseContent, ReleaseContentsClient, type ReleaseContentsDeleteBody, type ReleaseContentsGetParameters, type ReleaseContentsGetResponse, type ReleaseDeleteParameters, type ReleasePatchParameters, type ReleasePutParameters, type ReleaseState, type ReleasesGetParameters, type ReleasesGetResponse, type ReportRenderedCompositionsMessage, type RequestComponentSuggestionMessage, type RequestPageHtmlMessage, type ResolvedRouteGetResponse, type RichTextBuiltInElement, type RichTextBuiltInFormat, type RichTextParamConfiguration, type RichTextParamValue, type RootComponentInstance, type RootEntryReference, type RootLocationReference, RouteClient, type RouteDynamicInputs, type RouteGetParameters, type RouteGetResponse, type RouteGetResponseComposition, type RouteGetResponseEdgehancedComposition, type RouteGetResponseEdgehancedNotFound, type RouteGetResponseNotFound, type RouteGetResponseRedirect, SECRET_QUERY_STRING_PARAM, type SelectComponentMessage, type SelectParamConfiguration, type SelectParamOption, type SelectParamValue, type SelectParameterMessage, type SendPageHtmlMessage, type SpecificProjectMap, type StringOperators, type SuggestComponentMessage, type TreeNodeInfoTypes, type TriggerComponentActionMessage, type TriggerCompositionActionMessage, UncachedCanvasClient, UncachedCategoryClient, UncachedContentClient, UniqueBatchEntries, type UpdateComponentParameterMessage, type UpdateComponentReferencesMessage, type UpdateCompositionInternalMessage, type UpdateCompositionMessage, type UpdateCompositionOptions, type UpdateContextualEditingStateInternalMessage, type UpdateFeatureFlagsMessage, type UpdatePreviewSettingsMessage, type UpsertEntryOptions, type VisibilityCriteria, type VisibilityCriteriaEvaluationResult, type VisibilityCriteriaGroup, type VisibilityParameterValue, type VisibilityRule, type VisibilityRules, type WalkNodeTreeActions, type WalkNodeTreeOptions, WorkflowClient, type WorkflowDefinition, type WorkflowStage, type WorkflowStagePermission, type WorkflowStageTransition, type WorkflowStageTransitionPermission, type WorkflowsDeleteParameters, type WorkflowsGetParameters, type WorkflowsGetResponse, type WorkflowsPutParameters, bindExpressionEscapeChars, bindExpressionPrefix, bindVariables, bindVariablesToObject, compose, convertEntryToPutEntry, convertToBindExpression, createBatchEnhancer, createCanvasChannel, createDynamicInputVisibilityRule, createDynamicTokenVisibilityRule, createLimitPolicy, createLocaleVisibilityRule, createQuirksVisibilityRule, createUniformApiEnhancer, createVariableReference, enhance, escapeBindExpressionDefaultValue, evaluateNodeVisibilityParameter, evaluatePropertyCriteria, evaluateVisibilityCriteriaGroup, evaluateWalkTreeNodeVisibility, evaluateWalkTreePropertyCriteria, extractLocales, findParameterInNodeTree, flattenValues, generateComponentPlaceholderId, generateHash, getBlockValue, getComponentJsonPointer, getComponentPath, getDataSourceVariantFromRouteGetParams, getEffectivePropertyValue, getLocalizedPropertyValues, getNounForLocation, getNounForNode, getParameterAttributes, getPropertiesValue, hasReferencedVariables, isAddComponentMessage, isAllowedReferrer, isAssetParamValue, isAssetParamValueItem, isComponentActionMessage, isComponentPlaceholderId, isContextStorageUpdatedMessage, isDismissPlaceholderMessage, isEntryData, isLinkParamValue, isMovingComponentMessage, isNestedNodeType, isOpenParameterEditorMessage, isReadyMessage, isReportRenderedCompositionsMessage, isRequestComponentSuggestionMessage, isRootEntryReference, isSelectComponentMessage, isSelectParameterMessage, isSuggestComponentMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateComponentReferencesMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdateFeatureFlagsMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseComponentPlaceholderId, parseVariableExpression, version, walkNodeTree, walkPropertyValues };
|
13324
|
+
export { ASSETS_SOURCE_CUSTOM_URL, ASSETS_SOURCE_UNIFORM, ASSET_PARAMETER_TYPE, ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, type AddComponentMessage, type BatchEnhancer, BatchEntry, type BatchInvalidationPayload, type BindVariablesOptions, type BindVariablesResult, type BindVariablesToObjectOptions, BlockFormatError, type BlockLocationReference, type BlockValue, CANVAS_BLOCK_PARAM_TYPE, CANVAS_CONTEXTUAL_EDITING_PARAM, CANVAS_DRAFT_STATE, CANVAS_EDITOR_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_ALGORITHM_PARAM, CANVAS_PERSONALIZATION_ALGORITHM_TYPE, CANVAS_PERSONALIZATION_EVENT_NAME_PARAM, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZATION_TAKE_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_SLOT_SECTION_SLOT, CANVAS_SLOT_SECTION_TYPE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CANVAS_VIZ_CONTROL_PARAM, CANVAS_VIZ_DI_RULE, CANVAS_VIZ_DYNAMIC_TOKEN_RULE, CANVAS_VIZ_LOCALE_RULE, CANVAS_VIZ_QUIRKS_RULE, CanvasClient, CanvasClientError, type CanvasDefinitions, type CategoriesDeleteParameters, type CategoriesGetParameters, type CategoriesGetResponse, type CategoriesPutParameters, type Category, CategoryClient, type Channel, type ChannelMessage, ChildEnhancerBuilder, type ComponentDefinition, type ComponentDefinitionDeleteParameters, type ComponentDefinitionGetParameters, type ComponentDefinitionGetResponse, type ComponentDefinitionParameter, type ComponentDefinitionPermission, type ComponentDefinitionPutParameters, type ComponentDefinitionSlot, type ComponentDefinitionSlugSettings, type ComponentDefinitionVariant, type ComponentEnhancer, type ComponentEnhancerFunction, type ComponentEnhancerOptions, type ComponentInstance, type ComponentInstanceContextualEditing, type ComponentInstanceHistoryEntry, type ComponentInstanceHistoryGetParameters, type ComponentInstanceHistoryGetResponse, type ComponentLocationReference, type ComponentOverridability, type ComponentOverride, type ComponentOverrides, type ComponentParameter, type ComponentParameterBlock, type ComponentParameterConditionalValue, type ComponentParameterContextualEditing, type ComponentParameterEnhancer, type ComponentParameterEnhancerFunction, type ComponentParameterEnhancerOptions, type CompositionDeleteParameters, type CompositionFilters, type CompositionGetByComponentIdParameters, type CompositionGetByIdParameters, type CompositionGetByNodeIdParameters, type CompositionGetByNodePathParameters, type CompositionGetBySlugParameters, type CompositionGetListResponse, type CompositionGetParameters, type CompositionGetResponse, type CompositionGetValidResponses, type CompositionPutParameters, type CompositionResolvedGetResponse, type CompositionResolvedListResponse, type CompositionUIStatus, ContentClient, type ContentType, type ContentTypeField, type ContentTypePreviewConfiguration, type ContextStorageUpdatedMessage, type ContextualEditingComponentReference, type ContextualEditingValue, type CopiedComponentSubtree, type DataDiagnostic, type DataElementBindingIssue, type DataElementConnectionDefinition, type DataElementConnectionFailureAction, type DataElementConnectionFailureLogLevel, type DataResolutionConfigIssue, type DataResolutionIssue, type DataResolutionOption, type DataResolutionOptionNegative, type DataResolutionOptionPositive, type DataResolutionParameters, type DataResourceDefinition, type DataResourceDefinitions, type DataResourceIssue, type DataResourceVariables, type DataSource, DataSourceClient, type DataSourceDeleteParameters, type DataSourceGetParameters, type DataSourceGetResponse, type DataSourcePutParameters, type DataSourceVariantData, type DataSourceVariantsKeys, type DataSourcesGetParameters, type DataSourcesGetResponse, type DataType, DataTypeClient, type DataTypeDeleteParameters, type DataTypeGetParameters, type DataTypeGetResponse, type DataTypePutParameters, type DataVariableDefinition, type DataWithProperties, type DeleteContentTypeOptions, type DeleteEntryOptions, type DismissPlaceholderMessage, type DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_MAX_CACHE_TTL, EDGE_MIN_CACHE_TTL, EMPTY_COMPOSITION, type EdgehancersDiagnostics, type EdgehancersWholeResponseCacheDiagnostics, type EditorStateUpdatedMessage, EnhancerBuilder, type EnhancerContext, type EnhancerError, EntityReleasesClient, type EntityReleasesGetParameters, type EntityReleasesGetResponse, type EntriesGetParameters, type EntriesGetResponse, type EntriesHistoryGetParameters, type EntriesHistoryGetResponse, type EntriesResolvedListResponse, type Entry, type EntryData, type EntryFilters, type EntryList, type EvaluateCriteriaGroupOptions, type EvaluateNodeTreeVisibilityOptions, type EvaluateNodeVisibilityParameterOptions, type EvaluatePropertyCriteriaOptions, type EvaluateWalkTreePropertyCriteriaOptions, type Filters, type FindInNodeTreeReference, type FlattenProperty, type FlattenValues, type FlattenValuesOptions, type GetContentTypesOptions, type GetContentTypesResponse, type GetEffectivePropertyValueOptions, type GetEntriesOptions, type GetEntriesResponse, type GetParameterAttributesProps, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_FORCED_SETTINGS_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, type InvalidationPayload, LOCALE_DYNAMIC_INPUT_NAME, type LimitPolicy, type LinkParamConfiguration, type LinkParamValue, type LinkParameterType, type LinkTypeConfiguration, type Locale, LocaleClient, type LocaleDeleteParameters, type LocalePutParameters, type LocalesGetParameters, type LocalesGetResponse, type LocalizeOptions, type MaxDepthExceededIssue, type MessageHandler, type MoveComponentMessage, type MultiSelectParamConfiguration, type MultiSelectParamValue, type NodeLocationReference, type NonProjectMapLinkParamValue, type NumberParamConfig, type NumberParamValue, type OpenParameterEditorMessage, type OverrideOptions, PLACEHOLDER_ID, type PatternIssue, PreviewClient, type PreviewPanelSettings, type PreviewUrl, type PreviewUrlDeleteParameters, type PreviewUrlDeleteResponse, type PreviewUrlPutParameters, type PreviewUrlPutResponse, type PreviewUrlsGetParameters, type PreviewUrlsGetResponse, type PreviewViewport, type PreviewViewportDeleteParameters, type PreviewViewportDeleteResponse, type PreviewViewportPutParameters, type PreviewViewportPutResponse, type PreviewViewportsGetParameters, type PreviewViewportsGetResponse, type Project, ProjectClient, type ProjectDeleteParameters, type ProjectGetParameters, type ProjectGetResponse, type ProjectMapLinkParamValue, type ProjectPutParameters, type ProjectPutResponse, type Prompt, PromptClient, type PromptsDeleteParameters, type PromptsGetParameters, type PromptsGetResponse, type PromptsPutParameters, type PropertyCriteriaMatch, type PropertyValue, type PutContentTypeBody, type PutEntryBody, type ReadyMessage, RelationshipClient, type RelationshipResultInstance, type Release, ReleaseClient, type ReleaseContent, ReleaseContentsClient, type ReleaseContentsDeleteBody, type ReleaseContentsGetParameters, type ReleaseContentsGetResponse, type ReleaseDeleteParameters, type ReleasePatchParameters, type ReleasePutParameters, type ReleaseState, type ReleasesGetParameters, type ReleasesGetResponse, type ReportRenderedCompositionsMessage, type RequestComponentSuggestionMessage, type RequestPageHtmlMessage, type ResolvedRouteGetResponse, type RichTextBuiltInElement, type RichTextBuiltInFormat, type RichTextParamConfiguration, type RichTextParamValue, type RootComponentInstance, type RootEntryReference, type RootLocationReference, RouteClient, type RouteDynamicInputs, type RouteGetParameters, type RouteGetResponse, type RouteGetResponseComposition, type RouteGetResponseEdgehancedComposition, type RouteGetResponseEdgehancedNotFound, type RouteGetResponseNotFound, type RouteGetResponseRedirect, SECRET_QUERY_STRING_PARAM, type SelectComponentMessage, type SelectParamConfiguration, type SelectParamOption, type SelectParamValue, type SelectParameterMessage, type SendPageHtmlMessage, type SpecificProjectMap, type StringOperators, type SuggestComponentMessage, type TreeNodeInfoTypes, type TriggerComponentActionMessage, type TriggerCompositionActionMessage, UncachedCanvasClient, UncachedCategoryClient, UncachedContentClient, UniqueBatchEntries, type UpdateComponentParameterMessage, type UpdateComponentReferencesMessage, type UpdateCompositionInternalMessage, type UpdateCompositionMessage, type UpdateContextualEditingStateInternalMessage, type UpdateFeatureFlagsMessage, type UpdatePreviewSettingsMessage, type VisibilityCriteria, type VisibilityCriteriaEvaluationResult, type VisibilityCriteriaGroup, type VisibilityParameterValue, type VisibilityRule, type VisibilityRules, type WalkNodeTreeActions, type WalkNodeTreeOptions, type WebhookDefinition, WorkflowClient, type WorkflowDefinition, type WorkflowStage, type WorkflowStagePermission, type WorkflowStageTransition, type WorkflowStageTransitionPermission, type WorkflowsDeleteParameters, type WorkflowsGetParameters, type WorkflowsGetResponse, type WorkflowsPutParameters, bindExpressionEscapeChars, bindExpressionPrefix, bindVariables, bindVariablesToObject, compose, convertEntryToPutEntry, convertToBindExpression, createBatchEnhancer, createCanvasChannel, createDynamicInputVisibilityRule, createDynamicTokenVisibilityRule, createLimitPolicy, createLocaleVisibilityRule, createQuirksVisibilityRule, createUniformApiEnhancer, createVariableReference, enhance, escapeBindExpressionDefaultValue, evaluateNodeVisibilityParameter, evaluatePropertyCriteria, evaluateVisibilityCriteriaGroup, evaluateWalkTreeNodeVisibility, evaluateWalkTreePropertyCriteria, extractLocales, findParameterInNodeTree, flattenValues, generateComponentPlaceholderId, generateHash, getBlockValue, getComponentJsonPointer, getComponentPath, getDataSourceVariantFromRouteGetParams, getEffectivePropertyValue, getLocalizedPropertyValues, getNounForLocation, getNounForNode, getParameterAttributes, getPropertiesValue, hasReferencedVariables, isAddComponentMessage, isAllowedReferrer, isAssetParamValue, isAssetParamValueItem, isComponentActionMessage, isComponentPlaceholderId, isContextStorageUpdatedMessage, isDismissPlaceholderMessage, isEntryData, isLinkParamValue, isMovingComponentMessage, isNestedNodeType, isOpenParameterEditorMessage, isReadyMessage, isReportRenderedCompositionsMessage, isRequestComponentSuggestionMessage, isRootEntryReference, isSelectComponentMessage, isSelectParameterMessage, isSuggestComponentMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateComponentReferencesMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdateFeatureFlagsMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseComponentPlaceholderId, parseVariableExpression, version, walkNodeTree, walkPropertyValues };
|
package/dist/index.d.ts
CHANGED
@@ -2,6 +2,7 @@ import { ApiClient, ExceptProject, ClientOptions, ApiClientError } from '@unifor
|
|
2
2
|
export { ApiClientError } from '@uniformdev/context/api';
|
3
3
|
import { AssetGetResponseSingle, AssetParamValue, AssetParamValueItem } from '@uniformdev/assets';
|
4
4
|
export { AssetParamValue, AssetParamValueItem } from '@uniformdev/assets';
|
5
|
+
import { EndpointOut, EndpointHeadersOut, EndpointTransformationOut } from 'svix';
|
5
6
|
import { Quirks, StorageCommands, PersonalizedVariant, VariationMatchMetadata, TestVariant } from '@uniformdev/context';
|
6
7
|
import { Options as Options$1 } from 'p-retry';
|
7
8
|
import { Options } from 'p-throttle';
|
@@ -3094,13 +3095,7 @@ interface paths$h {
|
|
3094
3095
|
put: {
|
3095
3096
|
parameters: {
|
3096
3097
|
query?: never;
|
3097
|
-
header?:
|
3098
|
-
/** @description Optional concurrency control header. If provided, the server will check that the entry
|
3099
|
-
* has not been modified since this timestamp. If the timestamp doesn't match the current
|
3100
|
-
* modified timestamp, a 409 Conflict response will be returned.
|
3101
|
-
* */
|
3102
|
-
"X-If-Unmodified-Since"?: string;
|
3103
|
-
};
|
3098
|
+
header?: never;
|
3104
3099
|
path?: never;
|
3105
3100
|
cookie?: never;
|
3106
3101
|
};
|
@@ -3174,15 +3169,6 @@ interface paths$h {
|
|
3174
3169
|
400: components$j["responses"]["BadRequestError"];
|
3175
3170
|
401: components$j["responses"]["UnauthorizedError"];
|
3176
3171
|
403: components$j["responses"]["ForbiddenError"];
|
3177
|
-
/** @description Conflict - Entry has been changed since being loaded */
|
3178
|
-
409: {
|
3179
|
-
headers: {
|
3180
|
-
[name: string]: unknown;
|
3181
|
-
};
|
3182
|
-
content: {
|
3183
|
-
"text/plain": string;
|
3184
|
-
};
|
3185
|
-
};
|
3186
3172
|
429: components$j["responses"]["RateLimitError"];
|
3187
3173
|
500: components$j["responses"]["InternalServerError"];
|
3188
3174
|
};
|
@@ -6299,13 +6285,7 @@ interface paths$a {
|
|
6299
6285
|
put: {
|
6300
6286
|
parameters: {
|
6301
6287
|
query?: never;
|
6302
|
-
header?:
|
6303
|
-
/** @description Optional concurrency control header. If provided, the server will check that the composition
|
6304
|
-
* has not been modified since this timestamp. If the timestamp doesn't match the current
|
6305
|
-
* modified timestamp, a 409 Conflict response will be returned.
|
6306
|
-
* */
|
6307
|
-
"X-If-Unmodified-Since"?: string;
|
6308
|
-
};
|
6288
|
+
header?: never;
|
6309
6289
|
path?: never;
|
6310
6290
|
cookie?: never;
|
6311
6291
|
};
|
@@ -6395,15 +6375,6 @@ interface paths$a {
|
|
6395
6375
|
400: components$b["responses"]["BadRequestError"];
|
6396
6376
|
401: components$b["responses"]["UnauthorizedError"];
|
6397
6377
|
403: components$b["responses"]["ForbiddenError"];
|
6398
|
-
/** @description Conflict - Composition has been changed since being loaded */
|
6399
|
-
409: {
|
6400
|
-
headers: {
|
6401
|
-
[name: string]: unknown;
|
6402
|
-
};
|
6403
|
-
content: {
|
6404
|
-
"text/plain": string;
|
6405
|
-
};
|
6406
|
-
};
|
6407
6378
|
429: components$b["responses"]["RateLimitError"];
|
6408
6379
|
500: components$b["responses"]["InternalServerError"];
|
6409
6380
|
};
|
@@ -9733,6 +9704,14 @@ type CopiedComponentSubtree = {
|
|
9733
9704
|
* Defines how a component on a pattern may have its values overridden
|
9734
9705
|
*/
|
9735
9706
|
type ComponentOverridability = SharedComponents$1['ComponentOverridability'];
|
9707
|
+
/**
|
9708
|
+
* Defines the shape of serialized webhook
|
9709
|
+
*/
|
9710
|
+
type WebhookDefinition = {
|
9711
|
+
endpoint: EndpointOut;
|
9712
|
+
headers: EndpointHeadersOut | null;
|
9713
|
+
transformation: EndpointTransformationOut | null;
|
9714
|
+
};
|
9736
9715
|
/** Defines single structure to keep all canvas models (used in CLI commands and Starter content generations) */
|
9737
9716
|
type CanvasDefinitions = {
|
9738
9717
|
components?: Array<ComponentDefinition>;
|
@@ -9750,6 +9729,7 @@ type CanvasDefinitions = {
|
|
9750
9729
|
workflows?: Array<WorkflowDefinition>;
|
9751
9730
|
previewUrls?: Array<PreviewUrl>;
|
9752
9731
|
previewViewports?: Array<PreviewViewport>;
|
9732
|
+
webhooks?: Array<WebhookDefinition>;
|
9753
9733
|
};
|
9754
9734
|
/** Defines shared parameters for requests getting a single composition */
|
9755
9735
|
type CompositionGetOneSharedParameters = Pick<CompositionGetParameters, 'state' | 'skipEnhance' | 'skipPatternResolution' | 'withComponentIDs' | 'withUIStatus' | 'withWorkflowDefinition' | 'withProjectMapNodes' | 'withTotalCount' | 'skipOverridesResolution' | 'withContentSourceMap' | 'versionId' | 'locale' | 'releaseId' | 'editions'>;
|
@@ -11593,9 +11573,6 @@ type CanvasClientOptions = ClientOptions & {
|
|
11593
11573
|
edgeApiHost?: string;
|
11594
11574
|
disableSWR?: boolean;
|
11595
11575
|
};
|
11596
|
-
type UpdateCompositionOptions = {
|
11597
|
-
ifUnmodifiedSince?: string;
|
11598
|
-
};
|
11599
11576
|
declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
11600
11577
|
private edgeApiHost;
|
11601
11578
|
private edgeApiRequestInit?;
|
@@ -11637,7 +11614,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
11637
11614
|
}>;
|
11638
11615
|
private getOneComposition;
|
11639
11616
|
/** Updates or creates a Canvas component definition */
|
11640
|
-
updateComposition(body: Omit<CompositionPutParameters, 'projectId'
|
11617
|
+
updateComposition(body: Omit<CompositionPutParameters, 'projectId'>): Promise<{
|
11641
11618
|
modified: string | null;
|
11642
11619
|
}>;
|
11643
11620
|
/** Deletes a Canvas component definition */
|
@@ -11670,9 +11647,6 @@ declare class UncachedCategoryClient extends CategoryClient {
|
|
11670
11647
|
constructor(options: Omit<ClientOptions, 'bypassCache'>);
|
11671
11648
|
}
|
11672
11649
|
|
11673
|
-
type UpsertEntryOptions = {
|
11674
|
-
ifUnmodifiedSince?: string;
|
11675
|
-
};
|
11676
11650
|
type ContentClientOptions = ClientOptions & {
|
11677
11651
|
edgeApiHost?: string;
|
11678
11652
|
disableSWR?: boolean;
|
@@ -11694,7 +11668,7 @@ declare class ContentClient extends ApiClient<ContentClientOptions> {
|
|
11694
11668
|
upsertContentType(body: ExceptProject<PutContentTypeBody>, opts?: {
|
11695
11669
|
autogenerateDataTypes?: boolean;
|
11696
11670
|
}): Promise<void>;
|
11697
|
-
upsertEntry(body: ExceptProject<PutEntryBody
|
11671
|
+
upsertEntry(body: ExceptProject<PutEntryBody>): Promise<{
|
11698
11672
|
modified: string | null;
|
11699
11673
|
}>;
|
11700
11674
|
deleteContentType(body: ExceptProject<DeleteContentTypeOptions>): Promise<void>;
|
@@ -13347,4 +13321,4 @@ declare class WorkflowClient extends ApiClient {
|
|
13347
13321
|
|
13348
13322
|
declare const CanvasClientError: typeof ApiClientError;
|
13349
13323
|
|
13350
|
-
export { ASSETS_SOURCE_CUSTOM_URL, ASSETS_SOURCE_UNIFORM, ASSET_PARAMETER_TYPE, ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, type AddComponentMessage, type BatchEnhancer, BatchEntry, type BatchInvalidationPayload, type BindVariablesOptions, type BindVariablesResult, type BindVariablesToObjectOptions, BlockFormatError, type BlockLocationReference, type BlockValue, CANVAS_BLOCK_PARAM_TYPE, CANVAS_CONTEXTUAL_EDITING_PARAM, CANVAS_DRAFT_STATE, CANVAS_EDITOR_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_ALGORITHM_PARAM, CANVAS_PERSONALIZATION_ALGORITHM_TYPE, CANVAS_PERSONALIZATION_EVENT_NAME_PARAM, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZATION_TAKE_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_SLOT_SECTION_SLOT, CANVAS_SLOT_SECTION_TYPE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CANVAS_VIZ_CONTROL_PARAM, CANVAS_VIZ_DI_RULE, CANVAS_VIZ_DYNAMIC_TOKEN_RULE, CANVAS_VIZ_LOCALE_RULE, CANVAS_VIZ_QUIRKS_RULE, CanvasClient, CanvasClientError, type CanvasDefinitions, type CategoriesDeleteParameters, type CategoriesGetParameters, type CategoriesGetResponse, type CategoriesPutParameters, type Category, CategoryClient, type Channel, type ChannelMessage, ChildEnhancerBuilder, type ComponentDefinition, type ComponentDefinitionDeleteParameters, type ComponentDefinitionGetParameters, type ComponentDefinitionGetResponse, type ComponentDefinitionParameter, type ComponentDefinitionPermission, type ComponentDefinitionPutParameters, type ComponentDefinitionSlot, type ComponentDefinitionSlugSettings, type ComponentDefinitionVariant, type ComponentEnhancer, type ComponentEnhancerFunction, type ComponentEnhancerOptions, type ComponentInstance, type ComponentInstanceContextualEditing, type ComponentInstanceHistoryEntry, type ComponentInstanceHistoryGetParameters, type ComponentInstanceHistoryGetResponse, type ComponentLocationReference, type ComponentOverridability, type ComponentOverride, type ComponentOverrides, type ComponentParameter, type ComponentParameterBlock, type ComponentParameterConditionalValue, type ComponentParameterContextualEditing, type ComponentParameterEnhancer, type ComponentParameterEnhancerFunction, type ComponentParameterEnhancerOptions, type CompositionDeleteParameters, type CompositionFilters, type CompositionGetByComponentIdParameters, type CompositionGetByIdParameters, type CompositionGetByNodeIdParameters, type CompositionGetByNodePathParameters, type CompositionGetBySlugParameters, type CompositionGetListResponse, type CompositionGetParameters, type CompositionGetResponse, type CompositionGetValidResponses, type CompositionPutParameters, type CompositionResolvedGetResponse, type CompositionResolvedListResponse, type CompositionUIStatus, ContentClient, type ContentType, type ContentTypeField, type ContentTypePreviewConfiguration, type ContextStorageUpdatedMessage, type ContextualEditingComponentReference, type ContextualEditingValue, type CopiedComponentSubtree, type DataDiagnostic, type DataElementBindingIssue, type DataElementConnectionDefinition, type DataElementConnectionFailureAction, type DataElementConnectionFailureLogLevel, type DataResolutionConfigIssue, type DataResolutionIssue, type DataResolutionOption, type DataResolutionOptionNegative, type DataResolutionOptionPositive, type DataResolutionParameters, type DataResourceDefinition, type DataResourceDefinitions, type DataResourceIssue, type DataResourceVariables, type DataSource, DataSourceClient, type DataSourceDeleteParameters, type DataSourceGetParameters, type DataSourceGetResponse, type DataSourcePutParameters, type DataSourceVariantData, type DataSourceVariantsKeys, type DataSourcesGetParameters, type DataSourcesGetResponse, type DataType, DataTypeClient, type DataTypeDeleteParameters, type DataTypeGetParameters, type DataTypeGetResponse, type DataTypePutParameters, type DataVariableDefinition, type DataWithProperties, type DeleteContentTypeOptions, type DeleteEntryOptions, type DismissPlaceholderMessage, type DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_MAX_CACHE_TTL, EDGE_MIN_CACHE_TTL, EMPTY_COMPOSITION, type EdgehancersDiagnostics, type EdgehancersWholeResponseCacheDiagnostics, type EditorStateUpdatedMessage, EnhancerBuilder, type EnhancerContext, type EnhancerError, EntityReleasesClient, type EntityReleasesGetParameters, type EntityReleasesGetResponse, type EntriesGetParameters, type EntriesGetResponse, type EntriesHistoryGetParameters, type EntriesHistoryGetResponse, type EntriesResolvedListResponse, type Entry, type EntryData, type EntryFilters, type EntryList, type EvaluateCriteriaGroupOptions, type EvaluateNodeTreeVisibilityOptions, type EvaluateNodeVisibilityParameterOptions, type EvaluatePropertyCriteriaOptions, type EvaluateWalkTreePropertyCriteriaOptions, type Filters, type FindInNodeTreeReference, type FlattenProperty, type FlattenValues, type FlattenValuesOptions, type GetContentTypesOptions, type GetContentTypesResponse, type GetEffectivePropertyValueOptions, type GetEntriesOptions, type GetEntriesResponse, type GetParameterAttributesProps, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_FORCED_SETTINGS_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, type InvalidationPayload, LOCALE_DYNAMIC_INPUT_NAME, type LimitPolicy, type LinkParamConfiguration, type LinkParamValue, type LinkParameterType, type LinkTypeConfiguration, type Locale, LocaleClient, type LocaleDeleteParameters, type LocalePutParameters, type LocalesGetParameters, type LocalesGetResponse, type LocalizeOptions, type MaxDepthExceededIssue, type MessageHandler, type MoveComponentMessage, type MultiSelectParamConfiguration, type MultiSelectParamValue, type NodeLocationReference, type NonProjectMapLinkParamValue, type NumberParamConfig, type NumberParamValue, type OpenParameterEditorMessage, type OverrideOptions, PLACEHOLDER_ID, type PatternIssue, PreviewClient, type PreviewPanelSettings, type PreviewUrl, type PreviewUrlDeleteParameters, type PreviewUrlDeleteResponse, type PreviewUrlPutParameters, type PreviewUrlPutResponse, type PreviewUrlsGetParameters, type PreviewUrlsGetResponse, type PreviewViewport, type PreviewViewportDeleteParameters, type PreviewViewportDeleteResponse, type PreviewViewportPutParameters, type PreviewViewportPutResponse, type PreviewViewportsGetParameters, type PreviewViewportsGetResponse, type Project, ProjectClient, type ProjectDeleteParameters, type ProjectGetParameters, type ProjectGetResponse, type ProjectMapLinkParamValue, type ProjectPutParameters, type ProjectPutResponse, type Prompt, PromptClient, type PromptsDeleteParameters, type PromptsGetParameters, type PromptsGetResponse, type PromptsPutParameters, type PropertyCriteriaMatch, type PropertyValue, type PutContentTypeBody, type PutEntryBody, type ReadyMessage, RelationshipClient, type RelationshipResultInstance, type Release, ReleaseClient, type ReleaseContent, ReleaseContentsClient, type ReleaseContentsDeleteBody, type ReleaseContentsGetParameters, type ReleaseContentsGetResponse, type ReleaseDeleteParameters, type ReleasePatchParameters, type ReleasePutParameters, type ReleaseState, type ReleasesGetParameters, type ReleasesGetResponse, type ReportRenderedCompositionsMessage, type RequestComponentSuggestionMessage, type RequestPageHtmlMessage, type ResolvedRouteGetResponse, type RichTextBuiltInElement, type RichTextBuiltInFormat, type RichTextParamConfiguration, type RichTextParamValue, type RootComponentInstance, type RootEntryReference, type RootLocationReference, RouteClient, type RouteDynamicInputs, type RouteGetParameters, type RouteGetResponse, type RouteGetResponseComposition, type RouteGetResponseEdgehancedComposition, type RouteGetResponseEdgehancedNotFound, type RouteGetResponseNotFound, type RouteGetResponseRedirect, SECRET_QUERY_STRING_PARAM, type SelectComponentMessage, type SelectParamConfiguration, type SelectParamOption, type SelectParamValue, type SelectParameterMessage, type SendPageHtmlMessage, type SpecificProjectMap, type StringOperators, type SuggestComponentMessage, type TreeNodeInfoTypes, type TriggerComponentActionMessage, type TriggerCompositionActionMessage, UncachedCanvasClient, UncachedCategoryClient, UncachedContentClient, UniqueBatchEntries, type UpdateComponentParameterMessage, type UpdateComponentReferencesMessage, type UpdateCompositionInternalMessage, type UpdateCompositionMessage, type UpdateCompositionOptions, type UpdateContextualEditingStateInternalMessage, type UpdateFeatureFlagsMessage, type UpdatePreviewSettingsMessage, type UpsertEntryOptions, type VisibilityCriteria, type VisibilityCriteriaEvaluationResult, type VisibilityCriteriaGroup, type VisibilityParameterValue, type VisibilityRule, type VisibilityRules, type WalkNodeTreeActions, type WalkNodeTreeOptions, WorkflowClient, type WorkflowDefinition, type WorkflowStage, type WorkflowStagePermission, type WorkflowStageTransition, type WorkflowStageTransitionPermission, type WorkflowsDeleteParameters, type WorkflowsGetParameters, type WorkflowsGetResponse, type WorkflowsPutParameters, bindExpressionEscapeChars, bindExpressionPrefix, bindVariables, bindVariablesToObject, compose, convertEntryToPutEntry, convertToBindExpression, createBatchEnhancer, createCanvasChannel, createDynamicInputVisibilityRule, createDynamicTokenVisibilityRule, createLimitPolicy, createLocaleVisibilityRule, createQuirksVisibilityRule, createUniformApiEnhancer, createVariableReference, enhance, escapeBindExpressionDefaultValue, evaluateNodeVisibilityParameter, evaluatePropertyCriteria, evaluateVisibilityCriteriaGroup, evaluateWalkTreeNodeVisibility, evaluateWalkTreePropertyCriteria, extractLocales, findParameterInNodeTree, flattenValues, generateComponentPlaceholderId, generateHash, getBlockValue, getComponentJsonPointer, getComponentPath, getDataSourceVariantFromRouteGetParams, getEffectivePropertyValue, getLocalizedPropertyValues, getNounForLocation, getNounForNode, getParameterAttributes, getPropertiesValue, hasReferencedVariables, isAddComponentMessage, isAllowedReferrer, isAssetParamValue, isAssetParamValueItem, isComponentActionMessage, isComponentPlaceholderId, isContextStorageUpdatedMessage, isDismissPlaceholderMessage, isEntryData, isLinkParamValue, isMovingComponentMessage, isNestedNodeType, isOpenParameterEditorMessage, isReadyMessage, isReportRenderedCompositionsMessage, isRequestComponentSuggestionMessage, isRootEntryReference, isSelectComponentMessage, isSelectParameterMessage, isSuggestComponentMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateComponentReferencesMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdateFeatureFlagsMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseComponentPlaceholderId, parseVariableExpression, version, walkNodeTree, walkPropertyValues };
|
13324
|
+
export { ASSETS_SOURCE_CUSTOM_URL, ASSETS_SOURCE_UNIFORM, ASSET_PARAMETER_TYPE, ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, type AddComponentMessage, type BatchEnhancer, BatchEntry, type BatchInvalidationPayload, type BindVariablesOptions, type BindVariablesResult, type BindVariablesToObjectOptions, BlockFormatError, type BlockLocationReference, type BlockValue, CANVAS_BLOCK_PARAM_TYPE, CANVAS_CONTEXTUAL_EDITING_PARAM, CANVAS_DRAFT_STATE, CANVAS_EDITOR_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_ALGORITHM_PARAM, CANVAS_PERSONALIZATION_ALGORITHM_TYPE, CANVAS_PERSONALIZATION_EVENT_NAME_PARAM, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZATION_TAKE_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_SLOT_SECTION_SLOT, CANVAS_SLOT_SECTION_TYPE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CANVAS_VIZ_CONTROL_PARAM, CANVAS_VIZ_DI_RULE, CANVAS_VIZ_DYNAMIC_TOKEN_RULE, CANVAS_VIZ_LOCALE_RULE, CANVAS_VIZ_QUIRKS_RULE, CanvasClient, CanvasClientError, type CanvasDefinitions, type CategoriesDeleteParameters, type CategoriesGetParameters, type CategoriesGetResponse, type CategoriesPutParameters, type Category, CategoryClient, type Channel, type ChannelMessage, ChildEnhancerBuilder, type ComponentDefinition, type ComponentDefinitionDeleteParameters, type ComponentDefinitionGetParameters, type ComponentDefinitionGetResponse, type ComponentDefinitionParameter, type ComponentDefinitionPermission, type ComponentDefinitionPutParameters, type ComponentDefinitionSlot, type ComponentDefinitionSlugSettings, type ComponentDefinitionVariant, type ComponentEnhancer, type ComponentEnhancerFunction, type ComponentEnhancerOptions, type ComponentInstance, type ComponentInstanceContextualEditing, type ComponentInstanceHistoryEntry, type ComponentInstanceHistoryGetParameters, type ComponentInstanceHistoryGetResponse, type ComponentLocationReference, type ComponentOverridability, type ComponentOverride, type ComponentOverrides, type ComponentParameter, type ComponentParameterBlock, type ComponentParameterConditionalValue, type ComponentParameterContextualEditing, type ComponentParameterEnhancer, type ComponentParameterEnhancerFunction, type ComponentParameterEnhancerOptions, type CompositionDeleteParameters, type CompositionFilters, type CompositionGetByComponentIdParameters, type CompositionGetByIdParameters, type CompositionGetByNodeIdParameters, type CompositionGetByNodePathParameters, type CompositionGetBySlugParameters, type CompositionGetListResponse, type CompositionGetParameters, type CompositionGetResponse, type CompositionGetValidResponses, type CompositionPutParameters, type CompositionResolvedGetResponse, type CompositionResolvedListResponse, type CompositionUIStatus, ContentClient, type ContentType, type ContentTypeField, type ContentTypePreviewConfiguration, type ContextStorageUpdatedMessage, type ContextualEditingComponentReference, type ContextualEditingValue, type CopiedComponentSubtree, type DataDiagnostic, type DataElementBindingIssue, type DataElementConnectionDefinition, type DataElementConnectionFailureAction, type DataElementConnectionFailureLogLevel, type DataResolutionConfigIssue, type DataResolutionIssue, type DataResolutionOption, type DataResolutionOptionNegative, type DataResolutionOptionPositive, type DataResolutionParameters, type DataResourceDefinition, type DataResourceDefinitions, type DataResourceIssue, type DataResourceVariables, type DataSource, DataSourceClient, type DataSourceDeleteParameters, type DataSourceGetParameters, type DataSourceGetResponse, type DataSourcePutParameters, type DataSourceVariantData, type DataSourceVariantsKeys, type DataSourcesGetParameters, type DataSourcesGetResponse, type DataType, DataTypeClient, type DataTypeDeleteParameters, type DataTypeGetParameters, type DataTypeGetResponse, type DataTypePutParameters, type DataVariableDefinition, type DataWithProperties, type DeleteContentTypeOptions, type DeleteEntryOptions, type DismissPlaceholderMessage, type DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_MAX_CACHE_TTL, EDGE_MIN_CACHE_TTL, EMPTY_COMPOSITION, type EdgehancersDiagnostics, type EdgehancersWholeResponseCacheDiagnostics, type EditorStateUpdatedMessage, EnhancerBuilder, type EnhancerContext, type EnhancerError, EntityReleasesClient, type EntityReleasesGetParameters, type EntityReleasesGetResponse, type EntriesGetParameters, type EntriesGetResponse, type EntriesHistoryGetParameters, type EntriesHistoryGetResponse, type EntriesResolvedListResponse, type Entry, type EntryData, type EntryFilters, type EntryList, type EvaluateCriteriaGroupOptions, type EvaluateNodeTreeVisibilityOptions, type EvaluateNodeVisibilityParameterOptions, type EvaluatePropertyCriteriaOptions, type EvaluateWalkTreePropertyCriteriaOptions, type Filters, type FindInNodeTreeReference, type FlattenProperty, type FlattenValues, type FlattenValuesOptions, type GetContentTypesOptions, type GetContentTypesResponse, type GetEffectivePropertyValueOptions, type GetEntriesOptions, type GetEntriesResponse, type GetParameterAttributesProps, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_FORCED_SETTINGS_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, type InvalidationPayload, LOCALE_DYNAMIC_INPUT_NAME, type LimitPolicy, type LinkParamConfiguration, type LinkParamValue, type LinkParameterType, type LinkTypeConfiguration, type Locale, LocaleClient, type LocaleDeleteParameters, type LocalePutParameters, type LocalesGetParameters, type LocalesGetResponse, type LocalizeOptions, type MaxDepthExceededIssue, type MessageHandler, type MoveComponentMessage, type MultiSelectParamConfiguration, type MultiSelectParamValue, type NodeLocationReference, type NonProjectMapLinkParamValue, type NumberParamConfig, type NumberParamValue, type OpenParameterEditorMessage, type OverrideOptions, PLACEHOLDER_ID, type PatternIssue, PreviewClient, type PreviewPanelSettings, type PreviewUrl, type PreviewUrlDeleteParameters, type PreviewUrlDeleteResponse, type PreviewUrlPutParameters, type PreviewUrlPutResponse, type PreviewUrlsGetParameters, type PreviewUrlsGetResponse, type PreviewViewport, type PreviewViewportDeleteParameters, type PreviewViewportDeleteResponse, type PreviewViewportPutParameters, type PreviewViewportPutResponse, type PreviewViewportsGetParameters, type PreviewViewportsGetResponse, type Project, ProjectClient, type ProjectDeleteParameters, type ProjectGetParameters, type ProjectGetResponse, type ProjectMapLinkParamValue, type ProjectPutParameters, type ProjectPutResponse, type Prompt, PromptClient, type PromptsDeleteParameters, type PromptsGetParameters, type PromptsGetResponse, type PromptsPutParameters, type PropertyCriteriaMatch, type PropertyValue, type PutContentTypeBody, type PutEntryBody, type ReadyMessage, RelationshipClient, type RelationshipResultInstance, type Release, ReleaseClient, type ReleaseContent, ReleaseContentsClient, type ReleaseContentsDeleteBody, type ReleaseContentsGetParameters, type ReleaseContentsGetResponse, type ReleaseDeleteParameters, type ReleasePatchParameters, type ReleasePutParameters, type ReleaseState, type ReleasesGetParameters, type ReleasesGetResponse, type ReportRenderedCompositionsMessage, type RequestComponentSuggestionMessage, type RequestPageHtmlMessage, type ResolvedRouteGetResponse, type RichTextBuiltInElement, type RichTextBuiltInFormat, type RichTextParamConfiguration, type RichTextParamValue, type RootComponentInstance, type RootEntryReference, type RootLocationReference, RouteClient, type RouteDynamicInputs, type RouteGetParameters, type RouteGetResponse, type RouteGetResponseComposition, type RouteGetResponseEdgehancedComposition, type RouteGetResponseEdgehancedNotFound, type RouteGetResponseNotFound, type RouteGetResponseRedirect, SECRET_QUERY_STRING_PARAM, type SelectComponentMessage, type SelectParamConfiguration, type SelectParamOption, type SelectParamValue, type SelectParameterMessage, type SendPageHtmlMessage, type SpecificProjectMap, type StringOperators, type SuggestComponentMessage, type TreeNodeInfoTypes, type TriggerComponentActionMessage, type TriggerCompositionActionMessage, UncachedCanvasClient, UncachedCategoryClient, UncachedContentClient, UniqueBatchEntries, type UpdateComponentParameterMessage, type UpdateComponentReferencesMessage, type UpdateCompositionInternalMessage, type UpdateCompositionMessage, type UpdateContextualEditingStateInternalMessage, type UpdateFeatureFlagsMessage, type UpdatePreviewSettingsMessage, type VisibilityCriteria, type VisibilityCriteriaEvaluationResult, type VisibilityCriteriaGroup, type VisibilityParameterValue, type VisibilityRule, type VisibilityRules, type WalkNodeTreeActions, type WalkNodeTreeOptions, type WebhookDefinition, WorkflowClient, type WorkflowDefinition, type WorkflowStage, type WorkflowStagePermission, type WorkflowStageTransition, type WorkflowStageTransitionPermission, type WorkflowsDeleteParameters, type WorkflowsGetParameters, type WorkflowsGetResponse, type WorkflowsPutParameters, bindExpressionEscapeChars, bindExpressionPrefix, bindVariables, bindVariablesToObject, compose, convertEntryToPutEntry, convertToBindExpression, createBatchEnhancer, createCanvasChannel, createDynamicInputVisibilityRule, createDynamicTokenVisibilityRule, createLimitPolicy, createLocaleVisibilityRule, createQuirksVisibilityRule, createUniformApiEnhancer, createVariableReference, enhance, escapeBindExpressionDefaultValue, evaluateNodeVisibilityParameter, evaluatePropertyCriteria, evaluateVisibilityCriteriaGroup, evaluateWalkTreeNodeVisibility, evaluateWalkTreePropertyCriteria, extractLocales, findParameterInNodeTree, flattenValues, generateComponentPlaceholderId, generateHash, getBlockValue, getComponentJsonPointer, getComponentPath, getDataSourceVariantFromRouteGetParams, getEffectivePropertyValue, getLocalizedPropertyValues, getNounForLocation, getNounForNode, getParameterAttributes, getPropertiesValue, hasReferencedVariables, isAddComponentMessage, isAllowedReferrer, isAssetParamValue, isAssetParamValueItem, isComponentActionMessage, isComponentPlaceholderId, isContextStorageUpdatedMessage, isDismissPlaceholderMessage, isEntryData, isLinkParamValue, isMovingComponentMessage, isNestedNodeType, isOpenParameterEditorMessage, isReadyMessage, isReportRenderedCompositionsMessage, isRequestComponentSuggestionMessage, isRootEntryReference, isSelectComponentMessage, isSelectParameterMessage, isSuggestComponentMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateComponentReferencesMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdateFeatureFlagsMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseComponentPlaceholderId, parseVariableExpression, version, walkNodeTree, walkPropertyValues };
|
package/dist/index.esm.js
CHANGED
@@ -671,17 +671,12 @@ var CanvasClient = class extends ApiClient {
|
|
671
671
|
return this.apiClient(edgeUrl, this.edgeApiRequestInit);
|
672
672
|
}
|
673
673
|
/** Updates or creates a Canvas component definition */
|
674
|
-
async updateComposition(body
|
674
|
+
async updateComposition(body) {
|
675
675
|
const fetchUri = this.createUrl(CANVAS_URL);
|
676
|
-
const headers = {};
|
677
|
-
if (options == null ? void 0 : options.ifUnmodifiedSince) {
|
678
|
-
headers["x-if-unmodified-since"] = options.ifUnmodifiedSince;
|
679
|
-
}
|
680
676
|
const { response } = await this.apiClientWithResponse(fetchUri, {
|
681
677
|
method: "PUT",
|
682
678
|
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
683
|
-
expectNoContent: true
|
684
|
-
headers
|
679
|
+
expectNoContent: true
|
685
680
|
});
|
686
681
|
return { modified: response.headers.get("x-modified-at") };
|
687
682
|
}
|
@@ -821,17 +816,12 @@ var _ContentClient = class _ContentClient extends ApiClient3 {
|
|
821
816
|
headers: opts.autogenerateDataTypes ? { "x-uniform-autogenerate-data-types": "true" } : {}
|
822
817
|
});
|
823
818
|
}
|
824
|
-
async upsertEntry(body
|
819
|
+
async upsertEntry(body) {
|
825
820
|
const fetchUri = this.createUrl(__privateGet(_ContentClient, _entriesUrl));
|
826
|
-
const headers = {};
|
827
|
-
if (options == null ? void 0 : options.ifUnmodifiedSince) {
|
828
|
-
headers["x-if-unmodified-since"] = options.ifUnmodifiedSince;
|
829
|
-
}
|
830
821
|
const { response } = await this.apiClientWithResponse(fetchUri, {
|
831
822
|
method: "PUT",
|
832
823
|
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
833
|
-
expectNoContent: true
|
834
|
-
headers
|
824
|
+
expectNoContent: true
|
835
825
|
});
|
836
826
|
return { modified: response.headers.get("x-modified-at") };
|
837
827
|
}
|
package/dist/index.js
CHANGED
@@ -837,17 +837,12 @@ var CanvasClient = class extends import_api2.ApiClient {
|
|
837
837
|
return this.apiClient(edgeUrl, this.edgeApiRequestInit);
|
838
838
|
}
|
839
839
|
/** Updates or creates a Canvas component definition */
|
840
|
-
async updateComposition(body
|
840
|
+
async updateComposition(body) {
|
841
841
|
const fetchUri = this.createUrl(CANVAS_URL);
|
842
|
-
const headers = {};
|
843
|
-
if (options == null ? void 0 : options.ifUnmodifiedSince) {
|
844
|
-
headers["x-if-unmodified-since"] = options.ifUnmodifiedSince;
|
845
|
-
}
|
846
842
|
const { response } = await this.apiClientWithResponse(fetchUri, {
|
847
843
|
method: "PUT",
|
848
844
|
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
849
|
-
expectNoContent: true
|
850
|
-
headers
|
845
|
+
expectNoContent: true
|
851
846
|
});
|
852
847
|
return { modified: response.headers.get("x-modified-at") };
|
853
848
|
}
|
@@ -987,17 +982,12 @@ var _ContentClient = class _ContentClient extends import_api4.ApiClient {
|
|
987
982
|
headers: opts.autogenerateDataTypes ? { "x-uniform-autogenerate-data-types": "true" } : {}
|
988
983
|
});
|
989
984
|
}
|
990
|
-
async upsertEntry(body
|
985
|
+
async upsertEntry(body) {
|
991
986
|
const fetchUri = this.createUrl(__privateGet(_ContentClient, _entriesUrl));
|
992
|
-
const headers = {};
|
993
|
-
if (options == null ? void 0 : options.ifUnmodifiedSince) {
|
994
|
-
headers["x-if-unmodified-since"] = options.ifUnmodifiedSince;
|
995
|
-
}
|
996
987
|
const { response } = await this.apiClientWithResponse(fetchUri, {
|
997
988
|
method: "PUT",
|
998
989
|
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
999
|
-
expectNoContent: true
|
1000
|
-
headers
|
990
|
+
expectNoContent: true
|
1001
991
|
});
|
1002
992
|
return { modified: response.headers.get("x-modified-at") };
|
1003
993
|
}
|
package/dist/index.mjs
CHANGED
@@ -671,17 +671,12 @@ var CanvasClient = class extends ApiClient {
|
|
671
671
|
return this.apiClient(edgeUrl, this.edgeApiRequestInit);
|
672
672
|
}
|
673
673
|
/** Updates or creates a Canvas component definition */
|
674
|
-
async updateComposition(body
|
674
|
+
async updateComposition(body) {
|
675
675
|
const fetchUri = this.createUrl(CANVAS_URL);
|
676
|
-
const headers = {};
|
677
|
-
if (options == null ? void 0 : options.ifUnmodifiedSince) {
|
678
|
-
headers["x-if-unmodified-since"] = options.ifUnmodifiedSince;
|
679
|
-
}
|
680
676
|
const { response } = await this.apiClientWithResponse(fetchUri, {
|
681
677
|
method: "PUT",
|
682
678
|
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
683
|
-
expectNoContent: true
|
684
|
-
headers
|
679
|
+
expectNoContent: true
|
685
680
|
});
|
686
681
|
return { modified: response.headers.get("x-modified-at") };
|
687
682
|
}
|
@@ -821,17 +816,12 @@ var _ContentClient = class _ContentClient extends ApiClient3 {
|
|
821
816
|
headers: opts.autogenerateDataTypes ? { "x-uniform-autogenerate-data-types": "true" } : {}
|
822
817
|
});
|
823
818
|
}
|
824
|
-
async upsertEntry(body
|
819
|
+
async upsertEntry(body) {
|
825
820
|
const fetchUri = this.createUrl(__privateGet(_ContentClient, _entriesUrl));
|
826
|
-
const headers = {};
|
827
|
-
if (options == null ? void 0 : options.ifUnmodifiedSince) {
|
828
|
-
headers["x-if-unmodified-since"] = options.ifUnmodifiedSince;
|
829
|
-
}
|
830
821
|
const { response } = await this.apiClientWithResponse(fetchUri, {
|
831
822
|
method: "PUT",
|
832
823
|
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
833
|
-
expectNoContent: true
|
834
|
-
headers
|
824
|
+
expectNoContent: true
|
835
825
|
});
|
836
826
|
return { modified: response.headers.get("x-modified-at") };
|
837
827
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/canvas",
|
3
|
-
"version": "20.29.2-alpha.
|
3
|
+
"version": "20.29.2-alpha.8+15e0719a77",
|
4
4
|
"description": "Common functionality and types for Uniform Canvas",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -37,12 +37,13 @@
|
|
37
37
|
"lexical": "0.25.0",
|
38
38
|
"p-limit": "3.1.0",
|
39
39
|
"p-retry": "5.1.2",
|
40
|
-
"p-throttle": "5.0.0"
|
40
|
+
"p-throttle": "5.0.0",
|
41
|
+
"svix": "1.71.0"
|
41
42
|
},
|
42
43
|
"dependencies": {
|
43
|
-
"@uniformdev/assets": "20.29.2-alpha.
|
44
|
-
"@uniformdev/context": "20.29.2-alpha.
|
45
|
-
"@uniformdev/richtext": "20.29.2-alpha.
|
44
|
+
"@uniformdev/assets": "20.29.2-alpha.8+15e0719a77",
|
45
|
+
"@uniformdev/context": "20.29.2-alpha.8+15e0719a77",
|
46
|
+
"@uniformdev/richtext": "20.29.2-alpha.8+15e0719a77",
|
46
47
|
"immer": "10.1.1"
|
47
48
|
},
|
48
49
|
"files": [
|
@@ -51,5 +52,5 @@
|
|
51
52
|
"publishConfig": {
|
52
53
|
"access": "public"
|
53
54
|
},
|
54
|
-
"gitHead": "
|
55
|
+
"gitHead": "15e0719a772469a53e0a81dbf571e528d4a45974"
|
55
56
|
}
|