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 001c38a commit f1bfe0a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 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,19 @@ 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 +213,16 @@ 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 f1bfe0a

Please sign in to comment.