Skip to content

Commit

Permalink
Add admin.settings.order-routing-rule.render extension target
Browse files Browse the repository at this point in the history
  • Loading branch information
sirgalleto committed Oct 26, 2023
1 parent fcf5135 commit 63f166a
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion packages/ui-extensions/src/surfaces/admin/extension-targets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,20 @@ type ProductConfigurationComponents = AnyComponentBuilder<
>
>;

type OrderRoutingComponents = AnyComponentBuilder<
Pick<
Components,
'LocationList'
>
>;

/**
* See the [list of available components](/docs/api/admin-extensions/components).
*/
type AllComponents = AnyComponentBuilder<
Omit<
Components,
'CustomerSegmentTemplate' | 'InternalCustomerSegmentTemplate'
'CustomerSegmentTemplate' | 'InternalCustomerSegmentTemplate' | 'LocationList'
>
>;

Expand Down Expand Up @@ -207,6 +214,17 @@ export interface ExtensionTargets {
ProductVariantDetailsConfigurationApi<'admin.product-variant-details.configuration.render'>,
ProductConfigurationComponents
>;

/**
* Renders Order Routing Rules Configuration on order routing settings.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.settings.order-routing-rule.render': RenderExtension<
ActionExtensionApi<'admin.settings.order-routing-rule.render'>,
AllComponents | OrderRoutingComponents
>;

}

export type ExtensionTarget = keyof ExtensionTargets;
Expand Down

0 comments on commit 63f166a

Please sign in to comment.