diff --git a/packages/ui-extensions/src/surfaces/admin/api.ts b/packages/ui-extensions/src/surfaces/admin/api.ts index 838c4a8b81..b591f640e7 100644 --- a/packages/ui-extensions/src/surfaces/admin/api.ts +++ b/packages/ui-extensions/src/surfaces/admin/api.ts @@ -8,3 +8,4 @@ export type {ProductDetailsConfigurationApi} from './api/product-configuration/p export type {ProductVariantDetailsConfigurationApi} from './api/product-configuration/product-variant-details-configuration'; export type {OrderRoutingRuleApi} from './api/order-routing-rule/order-routing-rule'; export type {ValidationSettingsApi} from './api/checkout-rules/validation-settings'; +export type {InStorePickUpApi} from './api/in-store-pickup/in-store-pickup'; diff --git a/packages/ui-extensions/src/surfaces/admin/api/in-store-pickup/data.ts b/packages/ui-extensions/src/surfaces/admin/api/in-store-pickup/data.ts new file mode 100644 index 0000000000..1341569a9c --- /dev/null +++ b/packages/ui-extensions/src/surfaces/admin/api/in-store-pickup/data.ts @@ -0,0 +1,5 @@ +import type {Metafield} from '../shared'; + +export interface Data { + metafields: Metafield[]; +} diff --git a/packages/ui-extensions/src/surfaces/admin/api/in-store-pickup/in-store-pickup.ts b/packages/ui-extensions/src/surfaces/admin/api/in-store-pickup/in-store-pickup.ts new file mode 100644 index 0000000000..17eea00734 --- /dev/null +++ b/packages/ui-extensions/src/surfaces/admin/api/in-store-pickup/in-store-pickup.ts @@ -0,0 +1,11 @@ +import type {StandardApi} from '../standard/standard'; +import type {ExtensionTarget as AnyExtensionTarget} from '../../extension-targets'; + +import {ApplyMetafieldsChange} from '../shared'; +import {Data} from './data'; + +export interface InStorePickUpApi + extends StandardApi { + applyMetafieldsChange: ApplyMetafieldsChange; + data: Data; +} diff --git a/packages/ui-extensions/src/surfaces/admin/extension-targets.ts b/packages/ui-extensions/src/surfaces/admin/extension-targets.ts index 51349af57a..ca1f49f38c 100644 --- a/packages/ui-extensions/src/surfaces/admin/extension-targets.ts +++ b/packages/ui-extensions/src/surfaces/admin/extension-targets.ts @@ -9,6 +9,7 @@ import type { ProductDetailsConfigurationApi, ProductVariantDetailsConfigurationApi, OrderRoutingRuleApi, + InStorePickUpApi, ValidationSettingsApi, } from './api'; import {AnyComponentBuilder} from '../../shared'; @@ -378,6 +379,20 @@ export interface ExtensionTargets { AllComponents >; + /** + * Renders In Store Pickup Configuration on in store pick up settings (general and per location). + * + * See the [list of available components](/docs/api/admin-extensions/components). + */ + 'admin.settings.in-store-pickup.render': RenderExtension< + InStorePickUpApi<'admin.settings.internal-order-routing-rule.render'>, + AllComponents + >; + 'admin.settings.in-store-pickup-location.render': RenderExtension< + InStorePickUpApi<'admin.settings.in-store-pickup-location.render'>, + AllComponents + >; + /** * Renders Validation Settings within a given validation's add and edit views. *