diff --git a/packages/ui-extensions/docs/surfaces/point-of-sale/reference/targets/pos.purchase-complete.observe.doc.ts b/packages/ui-extensions/docs/surfaces/point-of-sale/reference/targets/pos.purchase-complete.observe.doc.ts new file mode 100644 index 000000000..01b7f132d --- /dev/null +++ b/packages/ui-extensions/docs/surfaces/point-of-sale/reference/targets/pos.purchase-complete.observe.doc.ts @@ -0,0 +1,14 @@ +import type {ReferenceEntityTemplateSchema} from '@shopify/generate-docs'; +import {generateCodeBlock} from '../helpers/generateCodeBlock'; +import {ExtensionTargetType} from '../types/ExtensionTargetType'; + +const data: ReferenceEntityTemplateSchema = { + name: ExtensionTargetType.PosCustomerDetailsActionMenuItemRender, + description: 'An event extension target that observes completed checkouts', + category: 'Targets', + isVisualComponent: false, + related: [], + type: 'Target', +}; + +export default data; diff --git a/packages/ui-extensions/docs/surfaces/point-of-sale/staticPages/pages/versions.doc.ts b/packages/ui-extensions/docs/surfaces/point-of-sale/staticPages/pages/versions.doc.ts index f6c767d8e..d7801c7df 100644 --- a/packages/ui-extensions/docs/surfaces/point-of-sale/staticPages/pages/versions.doc.ts +++ b/packages/ui-extensions/docs/surfaces/point-of-sale/staticPages/pages/versions.doc.ts @@ -58,6 +58,7 @@ Refer to the [migration guide](/docs/api/pos-ui-extensions/migrating) for more i - Added [PrintApi](/docs/api/pos-ui-extensions/apis/print-api) and a [PrintPreview](/docs/api/pos-ui-extensions/components/printpreview) component. - Added \`currency\` prop to the [SessionApi](/docs/api/pos-ui-extensions/apis/session-api). +- Added the 'pos.purchase-complete.observe' target. - [Cart API](/docs/api/pos-ui-extensions/apis/cart-api) updates: - \`addLineItem\` and \`addCustomSale\` now return a UUID for the created item. `,