@shopify/ui-extensions 2023.7.3 → 2023.10.1
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/build/cjs/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.js +17 -0
- package/build/cjs/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.js +12 -0
- package/build/cjs/surfaces/admin.js +4 -2
- package/build/cjs/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.js +9 -0
- package/build/cjs/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.js +9 -0
- package/build/cjs/surfaces/checkout/components/LoginWithShop/LoginWithShop.js +9 -0
- package/build/cjs/surfaces/checkout/components/PaymentIcon/PaymentIcon.js +11 -0
- package/build/cjs/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.js +9 -0
- package/build/cjs/surfaces/checkout.js +10 -0
- package/build/cjs/surfaces/customer-account.js +10 -0
- package/build/esm/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.mjs +13 -0
- package/build/esm/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.mjs +8 -0
- package/build/esm/surfaces/admin.mjs +2 -1
- package/build/esm/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.mjs +5 -0
- package/build/esm/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.mjs +5 -0
- package/build/esm/surfaces/checkout/components/LoginWithShop/LoginWithShop.mjs +5 -0
- package/build/esm/surfaces/checkout/components/PaymentIcon/PaymentIcon.mjs +7 -0
- package/build/esm/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.mjs +5 -0
- package/build/esm/surfaces/checkout.mjs +5 -0
- package/build/esm/surfaces/customer-account.mjs +5 -0
- package/build/esnext/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.esnext +13 -0
- package/build/esnext/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.esnext +8 -0
- package/build/esnext/surfaces/admin.esnext +2 -1
- package/build/esnext/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/LoginWithShop/LoginWithShop.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/PaymentIcon/PaymentIcon.esnext +7 -0
- package/build/esnext/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.esnext +5 -0
- package/build/esnext/surfaces/checkout.esnext +5 -0
- package/build/esnext/surfaces/customer-account.esnext +5 -0
- package/build/ts/shared.d.ts +1 -1
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/action/action.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/block/block.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/{customer-segmentation-template/customer-segmentation-template.d.ts → customer-segment-template/customer-segment-template.d.ts} +3 -3
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/standard.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api.d.ts +1 -1
- package/build/ts/surfaces/admin/api.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.d.ts +7 -1
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Button/Button.d.ts +10 -0
- package/build/ts/surfaces/admin/components/Button/Button.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.d.ts +44 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Divider/Divider.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/EmailField/EmailField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Form/Form.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.d.ts +30 -0
- package/build/ts/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/NumberField/NumberField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Pressable/Pressable.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts +5 -0
- package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/TextArea/TextArea.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/TextField/TextField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/URLField/URLField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components.d.ts +4 -2
- package/build/ts/surfaces/admin/components.d.ts.map +1 -1
- package/build/ts/surfaces/admin/extension-targets.d.ts +52 -18
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +6 -6
- package/build/ts/surfaces/checkout/api/docs.d.ts +70 -0
- package/build/ts/surfaces/checkout/api/docs.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts +2 -0
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/redeemable/redeemable.d.ts +5 -1
- package/build/ts/surfaces/checkout/api/redeemable/redeemable.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +120 -20
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api.d.ts +1 -1
- package/build/ts/surfaces/checkout/api.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts +5 -0
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.d.ts +15 -0
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.d.ts +16 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +2 -4
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/LoginWithShop/LoginWithShop.d.ts +15 -0
- package/build/ts/surfaces/checkout/components/LoginWithShop/LoginWithShop.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.d.ts +32 -0
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.d.ts +79 -0
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts +3 -1
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts +5 -1
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Text/Text.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Text/Text.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts +4 -2
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/shared.d.ts +11 -13
- package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components.d.ts +10 -0
- package/build/ts/surfaces/checkout/components.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets.d.ts +70 -33
- package/build/ts/surfaces/checkout/targets.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +15 -4
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/shared.ts +1 -1
- package/src/surfaces/admin/api/action/action.doc.ts +0 -1
- package/src/surfaces/admin/api/block/block.doc.ts +0 -1
- package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.ts +20 -0
- package/src/surfaces/admin/api/{customer-segmentation-template/customer-segmentation-template.ts → customer-segment-template/customer-segment-template.ts} +3 -5
- package/src/surfaces/admin/api/extension-targets/extension-targets.doc.ts +0 -1
- package/src/surfaces/admin/api/standard/standard.doc.ts +0 -1
- package/src/surfaces/admin/api.ts +1 -1
- package/src/surfaces/admin/components/AdminAction/AdminAction.doc.ts +0 -1
- package/src/surfaces/admin/components/AdminAction/AdminAction.ts +5 -0
- package/src/surfaces/admin/components/AdminBlock/AdminBlock.doc.ts +0 -1
- package/src/surfaces/admin/components/BlockStack/BlockStack.doc.ts +0 -1
- package/src/surfaces/admin/components/Box/Box.doc.ts +0 -1
- package/src/surfaces/admin/components/Button/Button.doc.ts +0 -1
- package/src/surfaces/admin/components/Button/Button.ts +12 -0
- package/src/surfaces/admin/components/Checkbox/Checkbox.doc.ts +0 -1
- package/src/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.ts +42 -0
- package/src/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.ts +45 -0
- package/src/surfaces/admin/components/CustomerSegmentTemplate/examples/CustomerSegmentTemplate.example.ts +17 -0
- package/src/surfaces/admin/components/CustomerSegmentTemplate/examples/CustomerSegmentTemplate.example.tsx +15 -0
- package/src/surfaces/admin/components/Divider/Divider.doc.ts +0 -1
- package/src/surfaces/admin/components/EmailField/EmailField.doc.ts +0 -1
- package/src/surfaces/admin/components/Form/Form.doc.ts +1 -2
- package/src/surfaces/admin/components/Heading/Heading.doc.ts +0 -1
- package/src/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.ts +0 -1
- package/src/surfaces/admin/components/Icon/Icon.doc.ts +0 -1
- package/src/surfaces/admin/components/Image/Image.doc.ts +0 -1
- package/src/surfaces/admin/components/InlineStack/InlineStack.doc.ts +0 -1
- package/src/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.ts +68 -0
- package/src/surfaces/admin/components/InternalCustomerSegmentTemplate/examples/InternalCustomerSegmentTemplate.example.ts +45 -0
- package/src/surfaces/admin/components/Link/Link.doc.ts +0 -1
- package/src/surfaces/admin/components/NumberField/NumberField.doc.ts +0 -1
- package/src/surfaces/admin/components/PasswordField/PasswordField.doc.ts +0 -1
- package/src/surfaces/admin/components/Pressable/Pressable.doc.ts +0 -1
- package/src/surfaces/admin/components/Select/Select.doc.ts +0 -1
- package/src/surfaces/admin/components/Text/Text.doc.ts +0 -1
- package/src/surfaces/admin/components/TextArea/TextArea.doc.ts +0 -1
- package/src/surfaces/admin/components/TextField/TextField.doc.ts +0 -1
- package/src/surfaces/admin/components/URLField/URLField.doc.ts +0 -1
- package/src/surfaces/admin/components.ts +8 -2
- package/src/surfaces/admin/extension-targets.ts +67 -20
- package/src/surfaces/checkout/api/checkout/checkout.ts +6 -6
- package/src/surfaces/checkout/api/docs.ts +99 -0
- package/src/surfaces/checkout/api/payment/payment-option-item.ts +5 -0
- package/src/surfaces/checkout/api/redeemable/redeemable.ts +6 -1
- package/src/surfaces/checkout/api/standard/standard.ts +136 -19
- package/src/surfaces/checkout/api.ts +1 -0
- package/src/surfaces/checkout/components/ChoiceList/ChoiceList.doc.ts +1 -1
- package/src/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.ts +48 -0
- package/src/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.ts +17 -0
- package/src/surfaces/checkout/components/ConsentCheckbox/examples/basic-consent-checkbox.example.ts +11 -0
- package/src/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.ts +48 -0
- package/src/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.ts +19 -0
- package/src/surfaces/checkout/components/ConsentPhoneField/examples/basic-consent-phone-field.example.ts +10 -0
- package/src/surfaces/checkout/components/Icon/Icon.ts +2 -3
- package/src/surfaces/checkout/components/LoginWithShop/LoginWithShop.ts +16 -0
- package/src/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.ts +55 -0
- package/src/surfaces/checkout/components/PaymentIcon/PaymentIcon.ts +481 -0
- package/src/surfaces/checkout/components/PaymentIcon/examples/basic-paymenticon.example.ts +7 -0
- package/src/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.ts +50 -0
- package/src/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.ts +86 -0
- package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-productthumbnail.example.ts +11 -0
- package/src/surfaces/checkout/components/Text/Text.ts +7 -1
- package/src/surfaces/checkout/components/TextBlock/TextBlock.ts +7 -1
- package/src/surfaces/checkout/components/shared.ts +13 -23
- package/src/surfaces/checkout/components.ts +21 -0
- package/src/surfaces/checkout/targets.ts +96 -35
- package/src/surfaces/customer-account/api/order-status/order-status.ts +18 -4
- package/src/surfaces/customer-account/api.ts +1 -0
- package/build/cjs/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.js +0 -12
- package/build/esm/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.mjs +0 -8
- package/build/esnext/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.esnext +0 -8
- package/build/ts/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts +0 -27
- package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts.map +0 -1
- package/src/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.ts +0 -68
- package/src/surfaces/admin/components/CustomerSegmentationTemplate/examples/CustomerSegmentationTemplate.example.ts +0 -37
|
@@ -66,6 +66,16 @@ interface ButtonAnchorProps extends CommonProps {
|
|
|
66
66
|
* If set, it will navigate to the location specified by `to` after executing the `onClick` callback.
|
|
67
67
|
*/
|
|
68
68
|
to?: AnchorProps['href'];
|
|
69
|
+
/**
|
|
70
|
+
* Tells browsers to download the linked resource instead of navigating to it.
|
|
71
|
+
* Optionally accepts filename value to rename file.
|
|
72
|
+
*/
|
|
73
|
+
download?: boolean | string;
|
|
74
|
+
/**
|
|
75
|
+
* Specifies where to display the linked URL
|
|
76
|
+
* @default '_self'
|
|
77
|
+
*/
|
|
78
|
+
target?: '_blank' | '_self';
|
|
69
79
|
/**
|
|
70
80
|
* Callback when a link is pressed. If `href` is set,
|
|
71
81
|
* it will execute the callback and then navigate to the location specified by `href`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../src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IACH,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAEjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,MAAM;;;;CAAyD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Button/Button.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Button.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Button/Button.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA+CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Checkbox/Checkbox.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Checkbox.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Checkbox/Checkbox.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAqCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reserved namespace and key for the customer standard metafield used in the template's query.
|
|
3
|
+
* More info - https://shopify.dev/docs/apps/custom-data/metafields/definitions/standard
|
|
4
|
+
*/
|
|
5
|
+
type CustomerStandardMetafieldDependency = 'facts.birth_date';
|
|
6
|
+
export interface CustomerSegmentTemplateProps {
|
|
7
|
+
/**
|
|
8
|
+
* The localized title of the template.
|
|
9
|
+
*/
|
|
10
|
+
title: string;
|
|
11
|
+
/**
|
|
12
|
+
* The localized description of the template. An array can be used for multiple paragraphs.
|
|
13
|
+
*/
|
|
14
|
+
description: string | string[];
|
|
15
|
+
/**
|
|
16
|
+
* The code snippet to render in the template with syntax highlighting. The `query` is not validated in the template.
|
|
17
|
+
*/
|
|
18
|
+
query: string;
|
|
19
|
+
/**
|
|
20
|
+
* The code snippet to insert in the segment editor. If missing, `query` will be used. The `queryToInsert` is not validated in the template.
|
|
21
|
+
*/
|
|
22
|
+
queryToInsert?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The list of customer standard metafields or custom metafields used in the template's query.
|
|
25
|
+
*/
|
|
26
|
+
dependencies?: {
|
|
27
|
+
standardMetafields?: CustomerStandardMetafieldDependency[];
|
|
28
|
+
customMetafields?: string[];
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* ISO 8601-encoded date and time string. A "New" badge will be rendered for templates introduced in the last month.
|
|
32
|
+
*/
|
|
33
|
+
createdOn?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Customer segmentation templates are used to give merchants a starting point to create segments.
|
|
37
|
+
*/
|
|
38
|
+
export declare const CustomerSegmentTemplate: "CustomerSegmentTemplate" & {
|
|
39
|
+
readonly type?: "CustomerSegmentTemplate" | undefined;
|
|
40
|
+
readonly props?: CustomerSegmentTemplateProps | undefined;
|
|
41
|
+
readonly children?: true | undefined;
|
|
42
|
+
};
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=CustomerSegmentTemplate.d.ts.map
|
package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomerSegmentTemplate.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,KAAK,mCAAmC,GAAG,kBAAkB,CAAC;AAE9D,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,mCAAmC,EAAE,CAAC;QAC3D,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC7B,CAAC;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;CAGR,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomerSegmentTemplate.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAqCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Divider/Divider.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Divider.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Divider/Divider.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAqCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/EmailField/EmailField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"EmailField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/EmailField/EmailField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA8CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Form/Form.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Form.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Form/Form.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAoDX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Heading/Heading.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Heading.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Heading/Heading.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAgDX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadingGroup.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"HeadingGroup.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAoCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Icon/Icon.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Icon.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Icon/Icon.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAoEX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Image/Image.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Image.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Image/Image.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA0CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineStack.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/InlineStack/InlineStack.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"InlineStack.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/InlineStack/InlineStack.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA0CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type CustomerSegmentTemplateIcon = 'categoriesMajor' | 'firstVisitMajor' | 'heartMajor' | 'marketingMajor' | 'checkoutMajor' | 'ordersMajor' | 'locationMajor' | 'emailNewsletterMajor' | 'firstOrderMajor' | 'billingStatementDollarMajor' | 'diamondAlertMajor' | 'abandonedCartMajor' | 'calendarMajor' | 'productsMajor' | 'globeMajor' | 'flagMajor' | 'uploadMajor' | 'buyButtonMajor' | 'followUpEmailMajor' | 'confettiMajor' | 'viewMajor';
|
|
2
|
+
export type CustomerSegmentTemplateCategory = 'firstTimeBuyers' | 'highValueCustomers' | 'reEngageCustomers' | 'abandonedCheckout' | 'purchaseBehaviour' | 'location';
|
|
3
|
+
/**
|
|
4
|
+
* Reserved namespace and key for the customer standard metafield used in the template's query.
|
|
5
|
+
* More info - https://shopify.dev/docs/apps/custom-data/metafields/definitions/standard
|
|
6
|
+
*/
|
|
7
|
+
type CustomerStandardMetafieldDependency = 'facts.birth_date';
|
|
8
|
+
export interface InternalCustomerSegmentTemplateProps {
|
|
9
|
+
title: string;
|
|
10
|
+
description: string | string[];
|
|
11
|
+
icon: CustomerSegmentTemplateIcon;
|
|
12
|
+
query: string;
|
|
13
|
+
queryToInsert?: string;
|
|
14
|
+
dependencies?: {
|
|
15
|
+
standardMetafields?: CustomerStandardMetafieldDependency[];
|
|
16
|
+
customMetafields?: string[];
|
|
17
|
+
};
|
|
18
|
+
createdOn?: string;
|
|
19
|
+
category: CustomerSegmentTemplateCategory;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Customer segment templates are used to give merchants a starting point to create segments.
|
|
23
|
+
*/
|
|
24
|
+
export declare const InternalCustomerSegmentTemplate: "InternalCustomerSegmentTemplate" & {
|
|
25
|
+
readonly type?: "InternalCustomerSegmentTemplate" | undefined;
|
|
26
|
+
readonly props?: InternalCustomerSegmentTemplateProps | undefined;
|
|
27
|
+
readonly children?: true | undefined;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=InternalCustomerSegmentTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InternalCustomerSegmentTemplate.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,2BAA2B,GACnC,iBAAiB,GACjB,iBAAiB,GACjB,YAAY,GACZ,gBAAgB,GAChB,eAAe,GACf,aAAa,GACb,eAAe,GACf,sBAAsB,GACtB,iBAAiB,GACjB,6BAA6B,GAC7B,mBAAmB,GACnB,oBAAoB,GACpB,eAAe,GACf,eAAe,GACf,YAAY,GACZ,WAAW,GACX,aAAa,GACb,gBAAgB,GAChB,oBAAoB,GACpB,eAAe,GACf,WAAW,CAAC;AAEhB,MAAM,MAAM,+BAA+B,GACvC,iBAAiB,GACjB,oBAAoB,GACpB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,UAAU,CAAC;AAEf;;;GAGG;AACH,KAAK,mCAAmC,GAAG,kBAAkB,CAAC;AAE9D,MAAM,WAAW,oCAAoC;IAEnD,KAAK,EAAE,MAAM,CAAC;IAEd,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE/B,IAAI,EAAE,2BAA2B,CAAC;IAElC,KAAK,EAAE,MAAM,CAAC;IAEd,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,mCAAmC,EAAE,CAAC;QAC3D,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC7B,CAAC;IAEF,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,EAAE,+BAA+B,CAAC;CAC3C;AAED;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;CAGR,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Link/Link.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Link.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Link/Link.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAwGX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/NumberField/NumberField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"NumberField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/NumberField/NumberField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA2CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/PasswordField/PasswordField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"PasswordField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/PasswordField/PasswordField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAgDX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Pressable/Pressable.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Pressable.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Pressable/Pressable.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA2CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -12,6 +12,11 @@ export interface ResourceItemProps {
|
|
|
12
12
|
export declare const ResourceItem: "ResourceItem" & {
|
|
13
13
|
readonly type?: "ResourceItem" | undefined;
|
|
14
14
|
readonly props?: ResourceItemProps | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Resource items represent specific objects within a collection, such as products or orders. They provide contextual information on the resource type and link to the object’s detail page.
|
|
17
|
+
*
|
|
18
|
+
* A `ResourceItem` should be rendered within a `ResourceList`.
|
|
19
|
+
*/
|
|
15
20
|
readonly children?: true | undefined;
|
|
16
21
|
};
|
|
17
22
|
//# sourceMappingURL=ResourceItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceItem.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/ResourceItem/ResourceItem.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IAEX,kDAAkD;IAClD,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;
|
|
1
|
+
{"version":3,"file":"ResourceItem.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/ResourceItem/ResourceItem.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IAEX,kDAAkD;IAClD,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;IALzB;;;;OAIG;;CAIc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Select/Select.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Select.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Select/Select.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAqCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Text/Text.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Text.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Text/Text.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA2CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/TextArea/TextArea.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"TextArea.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/TextArea/TextArea.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA2CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/TextField/TextField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"TextField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/TextField/TextField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAqDX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"URLField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/URLField/URLField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"URLField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/URLField/URLField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAyCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -10,8 +10,8 @@ export { Button } from './components/Button/Button';
|
|
|
10
10
|
export type { ButtonProps } from './components/Button/Button';
|
|
11
11
|
export { Checkbox } from './components/Checkbox/Checkbox';
|
|
12
12
|
export type { CheckboxProps } from './components/Checkbox/Checkbox';
|
|
13
|
-
export {
|
|
14
|
-
export type {
|
|
13
|
+
export { CustomerSegmentTemplate } from './components/CustomerSegmentTemplate/CustomerSegmentTemplate';
|
|
14
|
+
export type { CustomerSegmentTemplateProps } from './components/CustomerSegmentTemplate/CustomerSegmentTemplate';
|
|
15
15
|
export { Divider } from './components/Divider/Divider';
|
|
16
16
|
export type { DividerProps } from './components/Divider/Divider';
|
|
17
17
|
export { EmailField } from './components/EmailField/EmailField';
|
|
@@ -26,6 +26,8 @@ export { Icon } from './components/Icon/Icon';
|
|
|
26
26
|
export type { IconProps } from './components/Icon/Icon';
|
|
27
27
|
export { InlineStack } from './components/InlineStack/InlineStack';
|
|
28
28
|
export type { InlineStackProps } from './components/InlineStack/InlineStack';
|
|
29
|
+
export { InternalCustomerSegmentTemplate } from './components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate';
|
|
30
|
+
export type { InternalCustomerSegmentTemplateProps, CustomerSegmentTemplateIcon, CustomerSegmentTemplateCategory, } from './components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate';
|
|
29
31
|
export { Image } from './components/Image/Image';
|
|
30
32
|
export type { ImageProps } from './components/Image/Image';
|
|
31
33
|
export { Link } from './components/Link/Link';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,sCAAsC,CAAC;AACjE,YAAY,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAC,UAAU,EAAC,MAAM,oCAAoC,CAAC;AAC9D,YAAY,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,UAAU,EAAC,MAAM,oCAAoC,CAAC;AAC9D,YAAY,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,GAAG,EAAC,MAAM,sBAAsB,CAAC;AACzC,YAAY,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AAClD,YAAY,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAC,QAAQ,EAAC,MAAM,gCAAgC,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AAC9E,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AAClD,YAAY,EACV,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,WAAW,EACX,WAAW,GACZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAC,IAAI,EAAC,MAAM,wBAAwB,CAAC;AAC5C,YAAY,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAC,QAAQ,EAAC,MAAM,gCAAgC,CAAC;AACxD,YAAY,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAC,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAC3D,YAAY,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAC,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAC3D,YAAY,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAC,QAAQ,EAAC,MAAM,gCAAgC,CAAC;AACxD,YAAY,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC"}
|
|
@@ -1,66 +1,100 @@
|
|
|
1
1
|
import type { RenderExtension } from '../../extension';
|
|
2
|
-
import type {
|
|
3
|
-
import type { StandardApi,
|
|
2
|
+
import type { Components } from './shared';
|
|
3
|
+
import type { StandardApi, CustomerSegmentTemplateApi, ActionExtensionApi, BlockExtensionApi, ProductDetailsConfigurationApi, ProductVariantDetailsConfigurationApi } from './api';
|
|
4
4
|
import { AnyComponentBuilder } from '../../shared';
|
|
5
|
-
type
|
|
5
|
+
type CustomerSegmentTemplateComponent = AnyComponentBuilder<Pick<Components, 'CustomerSegmentTemplate' | 'InternalCustomerSegmentTemplate'>>;
|
|
6
6
|
type ProductConfigurationComponents = AnyComponentBuilder<Pick<Components, 'Box' | 'InlineStack' | 'BlockStack' | 'Divider' | 'HeadingGroup' | 'Heading' | 'Text' | 'Link' | 'Image' | 'Icon' | 'ResourceList' | 'ResourceItem' | 'Thumbnail'>>;
|
|
7
|
+
/**
|
|
8
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
9
|
+
*/
|
|
10
|
+
type AllComponents = AnyComponentBuilder<Omit<Components, 'CustomerSegmentTemplate' | 'InternalCustomerSegmentTemplate'>>;
|
|
7
11
|
export interface ExtensionTargets {
|
|
8
12
|
/**
|
|
9
13
|
* @private
|
|
10
14
|
*/
|
|
11
|
-
Playground: RenderExtension<StandardApi<'Playground'>,
|
|
15
|
+
Playground: RenderExtension<StandardApi<'Playground'>, AllComponents>;
|
|
12
16
|
/**
|
|
13
|
-
*
|
|
17
|
+
* Renders a [`CustomerSegmentTemplate`](/docs/api/admin-extensions/components/customersegmenttemplate) in the [customer segment editor](https://help.shopify.com/en/manual/customers/customer-segmentation/customer-segments).
|
|
14
18
|
*/
|
|
15
|
-
'admin.customers.segmentation-templates.render': RenderExtension<
|
|
19
|
+
'admin.customers.segmentation-templates.render': RenderExtension<CustomerSegmentTemplateApi<'admin.customers.segmentation-templates.render'>, CustomerSegmentTemplateComponent>;
|
|
16
20
|
/**
|
|
17
21
|
* Renders an Admin Block in the product details page.
|
|
22
|
+
*
|
|
23
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
18
24
|
*/
|
|
19
|
-
'admin.product-details.block.render': RenderExtension<BlockExtensionApi<'admin.product-details.block.render'>,
|
|
25
|
+
'admin.product-details.block.render': RenderExtension<BlockExtensionApi<'admin.product-details.block.render'>, AllComponents>;
|
|
20
26
|
/**
|
|
21
27
|
* Renders an Admin Block in the order details page.
|
|
28
|
+
*
|
|
29
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
22
30
|
*/
|
|
23
|
-
'admin.order-details.block.render': RenderExtension<BlockExtensionApi<'admin.order-details.block.render'>,
|
|
31
|
+
'admin.order-details.block.render': RenderExtension<BlockExtensionApi<'admin.order-details.block.render'>, AllComponents>;
|
|
24
32
|
/**
|
|
25
33
|
* Renders an Admin Block in the customer details page.
|
|
34
|
+
*
|
|
35
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
26
36
|
*/
|
|
27
|
-
'admin.customer-details.block.render': RenderExtension<BlockExtensionApi<'admin.customer-details.block.render'>,
|
|
37
|
+
'admin.customer-details.block.render': RenderExtension<BlockExtensionApi<'admin.customer-details.block.render'>, AllComponents>;
|
|
28
38
|
/**
|
|
29
39
|
* Renders an Admin Action in the product details page. Open this extension from the "More Actions" menu.
|
|
40
|
+
*
|
|
41
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
30
42
|
*/
|
|
31
|
-
'admin.product-details.action.render': RenderExtension<ActionExtensionApi<'admin.product-details.action.render'>,
|
|
43
|
+
'admin.product-details.action.render': RenderExtension<ActionExtensionApi<'admin.product-details.action.render'>, AllComponents>;
|
|
32
44
|
/**
|
|
33
45
|
* Renders an Admin Action in the order details page. Open this extension from the "More Actions" menu.
|
|
46
|
+
*
|
|
47
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
34
48
|
*/
|
|
35
|
-
'admin.order-details.action.render': RenderExtension<ActionExtensionApi<'admin.order-details.action.render'>,
|
|
49
|
+
'admin.order-details.action.render': RenderExtension<ActionExtensionApi<'admin.order-details.action.render'>, AllComponents>;
|
|
36
50
|
/**
|
|
37
51
|
* Renders an Admin Action in the customer details page. Open this extension from the "More Actions" menu.
|
|
52
|
+
*
|
|
53
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
54
|
+
*/
|
|
55
|
+
'admin.customer-details.action.render': RenderExtension<ActionExtensionApi<'admin.customer-details.action.render'>, AllComponents>;
|
|
56
|
+
/**
|
|
57
|
+
* Renders an Admin Action in the customer segment details page. Open this extension from the "Use segment" button.
|
|
58
|
+
*
|
|
59
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
38
60
|
*/
|
|
39
|
-
'admin.customer-details.action.render': RenderExtension<ActionExtensionApi<'admin.customer-details.action.render'>,
|
|
61
|
+
'admin.customer-segment-details.action.render': RenderExtension<ActionExtensionApi<'admin.customer-segment-details.action.render'>, AllComponents>;
|
|
40
62
|
/**
|
|
41
63
|
* Renders an Admin Action in the product index page. Open this extension from the "More Actions" menu.
|
|
64
|
+
*
|
|
65
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
42
66
|
*/
|
|
43
|
-
'admin.product-index.action.render': RenderExtension<ActionExtensionApi<'admin.product-index.action.render'>,
|
|
67
|
+
'admin.product-index.action.render': RenderExtension<ActionExtensionApi<'admin.product-index.action.render'>, AllComponents>;
|
|
44
68
|
/**
|
|
45
69
|
* Renders an Admin Action in the order index page. Open this extension from the "More Actions" menu.
|
|
70
|
+
*
|
|
71
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
46
72
|
*/
|
|
47
|
-
'admin.order-index.action.render': RenderExtension<ActionExtensionApi<'admin.order-index.action.render'>,
|
|
73
|
+
'admin.order-index.action.render': RenderExtension<ActionExtensionApi<'admin.order-index.action.render'>, AllComponents>;
|
|
48
74
|
/**
|
|
49
75
|
* Renders an Admin Action in the customer index page. Open this extension from the "More Actions" menu.
|
|
76
|
+
*
|
|
77
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
50
78
|
*/
|
|
51
|
-
'admin.customer-index.action.render': RenderExtension<ActionExtensionApi<'admin.customer-index.action.render'>,
|
|
79
|
+
'admin.customer-index.action.render': RenderExtension<ActionExtensionApi<'admin.customer-index.action.render'>, AllComponents>;
|
|
52
80
|
/**
|
|
53
81
|
* Renders an Admin Action in the product index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
|
|
82
|
+
*
|
|
83
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
54
84
|
*/
|
|
55
|
-
'admin.product-index.selection-action.render': RenderExtension<ActionExtensionApi<'admin.product-index.selection-action.render'>,
|
|
85
|
+
'admin.product-index.selection-action.render': RenderExtension<ActionExtensionApi<'admin.product-index.selection-action.render'>, AllComponents>;
|
|
56
86
|
/**
|
|
57
87
|
* Renders an Admin Action in the order index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
|
|
88
|
+
*
|
|
89
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
58
90
|
*/
|
|
59
|
-
'admin.order-index.selection-action.render': RenderExtension<ActionExtensionApi<'admin.order-index.selection-action.render'>,
|
|
91
|
+
'admin.order-index.selection-action.render': RenderExtension<ActionExtensionApi<'admin.order-index.selection-action.render'>, AllComponents>;
|
|
60
92
|
/**
|
|
61
93
|
* Renders an Admin Action in the customer index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
|
|
94
|
+
*
|
|
95
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
62
96
|
*/
|
|
63
|
-
'admin.customer-index.selection-action.render': RenderExtension<ActionExtensionApi<'admin.customer-index.selection-action.render'>,
|
|
97
|
+
'admin.customer-index.selection-action.render': RenderExtension<ActionExtensionApi<'admin.customer-index.selection-action.render'>, AllComponents>;
|
|
64
98
|
/**
|
|
65
99
|
* Renders Product Configuration on product details and product variant details
|
|
66
100
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension-targets.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/extension-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"extension-targets.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/extension-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EACV,WAAW,EACX,0BAA0B,EAC1B,kBAAkB,EAClB,iBAAiB,EACjB,8BAA8B,EAC9B,qCAAqC,EACtC,MAAM,OAAO,CAAC;AACf,OAAO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GG;AACH,MAAM,MAAM,qBAAqB,CAAC,EAAE,SAAS,MAAM,gBAAgB,IACjE,UAAU,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG;KACjC,EAAE,IAAI,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,EAAE,CAAC,SAAS,eAAe,CAC1E,GAAG,EACH,GAAG,CACJ,GACG,EAAE,GACF,KAAK;CACV,CAAC,MAAM,gBAAgB,CAAC,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;KAC5B,EAAE,IAAI,qBAAqB,GAAG,gBAAgB,CAAC,EAAE,CAAC;CACpD,CAAC;AAEF,KAAK,+BAA+B,CAAC,CAAC,IAAI,CAAC,SAAS,eAAe,CACjE,MAAM,GAAG,EACT,GAAG,CACJ,GACG,GAAG,GACH,KAAK,CAAC;AAEV,KAAK,6CAA6C,CAAC,CAAC,IAClD,CAAC,SAAS,eAAe,CAAC,GAAG,EAAE,MAAM,UAAU,CAAC,GAAG,UAAU,GAAG,KAAK,CAAC;AAExE;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,CAAC,EAAE,SAAS,MAAM,gBAAgB,IACjE,+BAA+B,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,mCAAmC,CAC7C,EAAE,SAAS,MAAM,gBAAgB,IAC/B,6CAA6C,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -405,7 +405,7 @@ export interface CheckoutApi {
|
|
|
405
405
|
/**
|
|
406
406
|
* Performs an update on an attribute attached to the cart and checkout. If
|
|
407
407
|
* successful, this mutation results in an update to the value retrieved
|
|
408
|
-
* through the [`attributes`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi
|
|
408
|
+
* through the [`attributes`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/attributes#standardapi-propertydetail-attributes) property.
|
|
409
409
|
*
|
|
410
410
|
* > Note: This method will return an error if the buyer is using an accelerated checkout method, such as Apple Pay, Google Pay, or Meta Pay.
|
|
411
411
|
*/
|
|
@@ -414,7 +414,7 @@ export interface CheckoutApi {
|
|
|
414
414
|
* Performs an update on the merchandise line items. It resolves when the new
|
|
415
415
|
* line items have been negotiated and results in an update to the value
|
|
416
416
|
* retrieved through the
|
|
417
|
-
* [`lines`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi
|
|
417
|
+
* [`lines`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/cart-lines#standardapi-propertydetail-lines)
|
|
418
418
|
* property.
|
|
419
419
|
*
|
|
420
420
|
* > Note: This method will return an error if the buyer is using an accelerated checkout method, such as Apple Pay, Google Pay, or Meta Pay.
|
|
@@ -423,7 +423,7 @@ export interface CheckoutApi {
|
|
|
423
423
|
/**
|
|
424
424
|
* Performs an update on the discount codes.
|
|
425
425
|
* It resolves when the new discount codes have been negotiated and results in an update
|
|
426
|
-
* to the value retrieved through the [`discountCodes`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi
|
|
426
|
+
* to the value retrieved through the [`discountCodes`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/discounts#standardapi-propertydetail-discountcodes) property.
|
|
427
427
|
*
|
|
428
428
|
* > Caution:
|
|
429
429
|
* > See [security considerations](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access) if your extension retrieves discount codes through a network call.
|
|
@@ -434,7 +434,7 @@ export interface CheckoutApi {
|
|
|
434
434
|
/**
|
|
435
435
|
* Performs an update on the gift cards.
|
|
436
436
|
* It resolves when gift card change have been negotiated and results in an update
|
|
437
|
-
* to the value retrieved through the [`appliedGiftCards`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi
|
|
437
|
+
* to the value retrieved through the [`appliedGiftCards`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/gift-cards#standardapi-propertydetail-appliedgiftcards) property.
|
|
438
438
|
*
|
|
439
439
|
* > Caution:
|
|
440
440
|
* > See [security considerations](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access) if your extension retrieves gift card codes through a network call.
|
|
@@ -445,13 +445,13 @@ export interface CheckoutApi {
|
|
|
445
445
|
/**
|
|
446
446
|
* Performs an update on a piece of metadata attached to the checkout. If
|
|
447
447
|
* successful, this mutation results in an update to the value retrieved
|
|
448
|
-
* through the [`metafields`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi
|
|
448
|
+
* through the [`metafields`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/metafields#standardapi-propertydetail-metafields) property.
|
|
449
449
|
*/
|
|
450
450
|
applyMetafieldChange(change: MetafieldChange): Promise<MetafieldChangeResult>;
|
|
451
451
|
/**
|
|
452
452
|
* Performs an update on the note attached to the cart and checkout. If
|
|
453
453
|
* successful, this mutation results in an update to the value retrieved
|
|
454
|
-
* through the [`note`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi
|
|
454
|
+
* through the [`note`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/note#standardapi-propertydetail-note) property.
|
|
455
455
|
*
|
|
456
456
|
* > Note: This method will return an error if the buyer is using an accelerated checkout method, such as Apple Pay, Google Pay, or Meta Pay.
|
|
457
457
|
*/
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { StandardApi, CheckoutApi, CartLineItemApi, OrderStatusApi } from '../api';
|
|
2
|
+
/**
|
|
3
|
+
* These types are used to generate the documentation for the API and decipher which properties are available for which APIs.
|
|
4
|
+
* If you are adding a new property and you'd like it to be documented in the API section, then you'll need to specify the property in the appropriate interface below.
|
|
5
|
+
*
|
|
6
|
+
* Note: These are not exported as part of the package, they are only used for documentation purposes.
|
|
7
|
+
*/
|
|
8
|
+
export interface Docs_Standard_AddressApi extends Pick<StandardApi, 'shippingAddress' | 'billingAddress'> {
|
|
9
|
+
}
|
|
10
|
+
export interface Docs_Checkout_AddressApi extends Pick<CheckoutApi, 'applyShippingAddressChange'> {
|
|
11
|
+
}
|
|
12
|
+
export interface Docs_Standard_AttributesApi extends Pick<StandardApi, 'attributes'> {
|
|
13
|
+
}
|
|
14
|
+
export interface Docs_Checkout_AttributesApi extends Pick<CheckoutApi, 'applyAttributeChange'> {
|
|
15
|
+
}
|
|
16
|
+
export interface Docs_Standard_BuyerIdentityApi extends Pick<StandardApi, 'buyerIdentity'> {
|
|
17
|
+
}
|
|
18
|
+
export interface Docs_Standard_BuyerJourneyApi extends Pick<StandardApi, 'buyerJourney'> {
|
|
19
|
+
}
|
|
20
|
+
export interface Docs_Standard_CartLinesApi extends Pick<StandardApi, 'lines'> {
|
|
21
|
+
}
|
|
22
|
+
export interface Docs_Checkout_CartLinesApi extends Pick<CheckoutApi, 'applyCartLinesChange'> {
|
|
23
|
+
}
|
|
24
|
+
export interface Docs_CartLineItem_CartLinesApi extends Pick<CartLineItemApi, 'target'> {
|
|
25
|
+
}
|
|
26
|
+
export interface Docs_Standard_CostApi extends Pick<StandardApi, 'cost'> {
|
|
27
|
+
}
|
|
28
|
+
export interface Docs_Standard_LocalizationApi extends Pick<StandardApi, 'i18n' | 'localization'> {
|
|
29
|
+
}
|
|
30
|
+
export interface Docs_Standard_MetafieldsApi extends Pick<StandardApi, 'appMetafields' | 'metafields'> {
|
|
31
|
+
}
|
|
32
|
+
export interface Docs_Checkout_MetafieldsApi extends Pick<CheckoutApi, 'applyMetafieldChange'> {
|
|
33
|
+
}
|
|
34
|
+
export interface Docs_Standard_DeliveryApi extends Pick<StandardApi, 'deliveryGroups'> {
|
|
35
|
+
}
|
|
36
|
+
export interface Docs_Standard_CheckoutTokenApi extends Pick<StandardApi, 'checkoutToken'> {
|
|
37
|
+
}
|
|
38
|
+
export interface Docs_Standard_ExtensionMetaApi extends Pick<StandardApi, 'extension'> {
|
|
39
|
+
}
|
|
40
|
+
export interface Docs_Standard_CheckoutSettingsApi extends Pick<StandardApi, 'checkoutSettings'> {
|
|
41
|
+
}
|
|
42
|
+
export interface Docs_Standard_ShopApi extends Pick<StandardApi, 'shop'> {
|
|
43
|
+
}
|
|
44
|
+
export interface Docs_Standard_NoteApi extends Pick<StandardApi, 'note'> {
|
|
45
|
+
}
|
|
46
|
+
export interface Docs_Checkout_NoteApi extends Pick<CheckoutApi, 'applyNoteChange'> {
|
|
47
|
+
}
|
|
48
|
+
export interface Docs_OrderStatus_OrderApi extends Pick<OrderStatusApi, 'order'> {
|
|
49
|
+
}
|
|
50
|
+
export interface Docs_Standard_PaymentOptionsApi extends Pick<StandardApi, 'availablePaymentOptions' | 'selectedPaymentOptions'> {
|
|
51
|
+
}
|
|
52
|
+
export interface Docs_Standard_GiftCardsApi extends Pick<StandardApi, 'appliedGiftCards'> {
|
|
53
|
+
}
|
|
54
|
+
export interface Docs_Checkout_GiftCardsApi extends Pick<CheckoutApi, 'applyGiftCardChange'> {
|
|
55
|
+
}
|
|
56
|
+
export interface Docs_Standard_DiscountsApi extends Pick<StandardApi, 'discountAllocations' | 'discountCodes'> {
|
|
57
|
+
}
|
|
58
|
+
export interface Docs_Checkout_DiscountsApi extends Pick<CheckoutApi, 'applyDiscountCodeChange'> {
|
|
59
|
+
}
|
|
60
|
+
export interface Docs_Standard_SessionTokenApi extends Pick<StandardApi, 'sessionToken'> {
|
|
61
|
+
}
|
|
62
|
+
export interface Docs_Standard_SettingsApi extends Pick<StandardApi, 'settings'> {
|
|
63
|
+
}
|
|
64
|
+
export interface Docs_Standard_StorageApi extends Pick<StandardApi, 'storage'> {
|
|
65
|
+
}
|
|
66
|
+
export interface Docs_Standard_QueryApi extends Pick<StandardApi, 'query'> {
|
|
67
|
+
}
|
|
68
|
+
export interface Docs_Standard_AnalyticsApi extends Pick<StandardApi, 'analytics'> {
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=docs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/checkout/api/docs.ts"],"names":[],"m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Q,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC;CAAG"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { StatefulRemoteSubscribable } from '@remote-ui/async-subscription';
|
|
1
2
|
export type PaymentMethodAttributesResult = PaymentMethodAttributesResultSuccess | PaymentMethodAttributesResultError;
|
|
2
3
|
export interface PaymentMethodAttributesResultSuccess {
|
|
3
4
|
/**
|
|
@@ -40,5 +41,6 @@ export interface PaymentOptionItemApi {
|
|
|
40
41
|
* Sets the attributes of the related payment method.
|
|
41
42
|
*/
|
|
42
43
|
applyPaymentMethodAttributesChange(change: PaymentMethodAttributesChange): Promise<PaymentMethodAttributesResult>;
|
|
44
|
+
paymentMethodAttributes?: StatefulRemoteSubscribable<PaymentMethodAttribute[] | undefined>;
|
|
43
45
|
}
|
|
44
46
|
//# sourceMappingURL=payment-option-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-option-item.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/api/payment/payment-option-item.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,6BAA6B,GACrC,oCAAoC,GACpC,kCAAkC,CAAC;AAEvC,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAClC;AAED,MAAM,MAAM,6BAA6B,GAAG,mCAAmC,CAAC;AAEhF,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,IAAI,EAAE,+BAA+B,CAAC;IAEtC;;OAEG;IACH,UAAU,EAAE,sBAAsB,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,kCAAkC,CAChC,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,6BAA6B,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"payment-option-item.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/api/payment/payment-option-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,0BAA0B,EAAC,MAAM,+BAA+B,CAAC;AAEzE,MAAM,MAAM,6BAA6B,GACrC,oCAAoC,GACpC,kCAAkC,CAAC;AAEvC,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAClC;AAED,MAAM,MAAM,6BAA6B,GAAG,mCAAmC,CAAC;AAEhF,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,IAAI,EAAE,+BAA+B,CAAC;IAEtC;;OAEG;IACH,UAAU,EAAE,sBAAsB,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,kCAAkC,CAChC,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC1C,uBAAuB,CAAC,EAAE,0BAA0B,CAClD,sBAAsB,EAAE,GAAG,SAAS,CACrC,CAAC;CACH"}
|
|
@@ -31,9 +31,13 @@ export interface RedeemableAddChange {
|
|
|
31
31
|
*/
|
|
32
32
|
type: 'redeemableAddChange';
|
|
33
33
|
/**
|
|
34
|
-
* The redeemable attributes
|
|
34
|
+
* The redeemable attributes.
|
|
35
35
|
*/
|
|
36
36
|
attributes: RedeemableAttribute[];
|
|
37
|
+
/**
|
|
38
|
+
* The identifier used to represent the redeemable (e.g. the gift card code).
|
|
39
|
+
*/
|
|
40
|
+
identifier: string;
|
|
37
41
|
}
|
|
38
42
|
export interface RedeemableApi {
|
|
39
43
|
/**
|