@flowio/api-internal-prop-types 1.0.0 → 1.1.0
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/.eslintcache +1 -0
- package/.eslintignore +1 -0
- package/.eslintrc +19 -0
- package/lib/index.d.ts +578 -0
- package/lib/io/flow/feature/v0/enums/featureScope.js +13 -0
- package/lib/io/flow/feature/v0/enums/featureStatus.js +13 -0
- package/lib/io/flow/feature/v0/enums/featureType.js +13 -0
- package/lib/io/flow/feature/v0/models/booleanFeatureRule.js +18 -0
- package/lib/io/flow/feature/v0/models/booleanFeatureRuleForm.js +16 -0
- package/lib/io/flow/feature/v0/models/booleanFeatureValue.js +20 -0
- package/lib/io/flow/feature/v0/models/feature.js +39 -0
- package/lib/io/flow/feature/v0/models/featureContextForm.js +20 -0
- package/lib/io/flow/feature/v0/models/featureForm.js +31 -0
- package/lib/io/flow/feature/v0/models/featureGeoForm.js +19 -0
- package/lib/io/flow/feature/v0/models/featureReference.js +16 -0
- package/lib/io/flow/feature/v0/models/featureReleaseForm.js +15 -0
- package/lib/io/flow/feature/v0/models/featureStatusForm.js +19 -0
- package/lib/io/flow/feature/v0/models/featureValueForm.js +20 -0
- package/lib/io/flow/feature/v0/models/featureValueResult.js +19 -0
- package/lib/io/flow/feature/v0/models/stringFeatureRule.js +18 -0
- package/lib/io/flow/feature/v0/models/stringFeatureRuleForm.js +16 -0
- package/lib/io/flow/feature/v0/models/stringFeatureValue.js +20 -0
- package/lib/io/flow/feature/v0/unions/featureRule.js +21 -0
- package/lib/io/flow/feature/v0/unions/featureRuleForm.js +21 -0
- package/lib/io/flow/feature/v0/unions/featureValue.js +21 -0
- package/lib/io/flow/invoice/v0/enums/paymentTerm.js +13 -0
- package/lib/io/flow/invoice/v0/models/invoice.js +33 -0
- package/lib/io/flow/invoice/v0/models/invoiceLine.js +21 -0
- package/lib/io/flow/shopify/v0/enums/shopifyGrant.js +13 -0
- package/lib/io/flow/shopify/v0/models/geoForm.js +19 -0
- package/lib/io/flow/shopify/v0/models/shopifyCart.js +31 -0
- package/lib/io/flow/shopify/v0/models/shopifyCartAddMultipleForm.js +19 -0
- package/lib/io/flow/shopify/v0/models/shopifyCartAddSingleForm.js +17 -0
- package/lib/io/flow/shopify/v0/models/shopifyCartChangeForm.js +18 -0
- package/lib/io/flow/shopify/v0/models/shopifyCartItem.js +39 -0
- package/lib/io/flow/shopify/v0/models/shopifyCustomerMetafieldValue.js +15 -0
- package/lib/io/flow/shopify/v0/models/shopifyLocalCartItemMetadata.js +20 -0
- package/lib/io/flow/shopify/v0/models/shopifyLocalCartMetadata.js +32 -0
- package/lib/io/flow/shopify/v0/models/shopifyLocalPriceMetadata.js +19 -0
- package/lib/io/flow/shopify/v0/models/shopifyLocalizedVariant.js +31 -0
- package/lib/io/flow/shopify/v0/models/shopifyLocalizedVariantPrices.js +22 -0
- package/lib/io/flow/shopify/v0/models/shopifyOrderAttributesForm.js +15 -0
- package/lib/io/flow/shopify/v0/models/shopifyOrderDeliveryMetafield.js +26 -0
- package/lib/io/flow/shopify/v0/models/shopifyOrderMetafieldValue.js +50 -0
- package/lib/io/flow/shopify/v0/models/shopifyPrice.js +29 -0
- package/lib/io/flow/shopify/v0/models/shopifyPrivateApp.js +17 -0
- package/lib/io/flow/shopify/v0/models/shopifyPrivateAppForm.js +16 -0
- package/lib/io/flow/shopify/v0/models/shopifyVariantPriceMetafield.js +20 -0
- package/lib/io/flow/shopify/v0/unions/shopifyCartAddForm.js +21 -0
- package/lib/io/flow/stripe/v0/enums/threeDSecureSupport.js +13 -0
- package/lib/io/flow/stripe/v0/models/sourceCard.js +5 -1
- package/lib/io/flow/stripe/v0/models/threeDSecure.js +2 -1
- package/package.json +9 -1
- package/src/index.d.ts +578 -0
- package/src/io/flow/feature/v0/enums/featureScope.js +3 -0
- package/src/io/flow/feature/v0/enums/featureStatus.js +3 -0
- package/src/io/flow/feature/v0/enums/featureType.js +3 -0
- package/src/io/flow/feature/v0/models/booleanFeatureRule.js +8 -0
- package/src/io/flow/feature/v0/models/booleanFeatureRuleForm.js +6 -0
- package/src/io/flow/feature/v0/models/booleanFeatureValue.js +7 -0
- package/src/io/flow/feature/v0/models/feature.js +17 -0
- package/src/io/flow/feature/v0/models/featureContextForm.js +7 -0
- package/src/io/flow/feature/v0/models/featureForm.js +12 -0
- package/src/io/flow/feature/v0/models/featureGeoForm.js +9 -0
- package/src/io/flow/feature/v0/models/featureReference.js +6 -0
- package/src/io/flow/feature/v0/models/featureReleaseForm.js +5 -0
- package/src/io/flow/feature/v0/models/featureStatusForm.js +6 -0
- package/src/io/flow/feature/v0/models/featureValueForm.js +7 -0
- package/src/io/flow/feature/v0/models/featureValueResult.js +6 -0
- package/src/io/flow/feature/v0/models/stringFeatureRule.js +8 -0
- package/src/io/flow/feature/v0/models/stringFeatureRuleForm.js +6 -0
- package/src/io/flow/feature/v0/models/stringFeatureValue.js +7 -0
- package/src/io/flow/feature/v0/unions/featureRule.js +5 -0
- package/src/io/flow/feature/v0/unions/featureRuleForm.js +8 -0
- package/src/io/flow/feature/v0/unions/featureValue.js +5 -0
- package/src/io/flow/invoice/v0/enums/paymentTerm.js +3 -0
- package/src/io/flow/invoice/v0/models/invoice.js +14 -0
- package/src/io/flow/invoice/v0/models/invoiceLine.js +8 -0
- package/src/io/flow/shopify/v0/enums/shopifyGrant.js +9 -0
- package/src/io/flow/shopify/v0/models/geoForm.js +9 -0
- package/src/io/flow/shopify/v0/models/shopifyCart.js +15 -0
- package/src/io/flow/shopify/v0/models/shopifyCartAddMultipleForm.js +6 -0
- package/src/io/flow/shopify/v0/models/shopifyCartAddSingleForm.js +7 -0
- package/src/io/flow/shopify/v0/models/shopifyCartChangeForm.js +8 -0
- package/src/io/flow/shopify/v0/models/shopifyCartItem.js +26 -0
- package/src/io/flow/shopify/v0/models/shopifyCustomerMetafieldValue.js +5 -0
- package/src/io/flow/shopify/v0/models/shopifyLocalCartItemMetadata.js +7 -0
- package/src/io/flow/shopify/v0/models/shopifyLocalCartMetadata.js +13 -0
- package/src/io/flow/shopify/v0/models/shopifyLocalPriceMetadata.js +6 -0
- package/src/io/flow/shopify/v0/models/shopifyLocalizedVariant.js +12 -0
- package/src/io/flow/shopify/v0/models/shopifyLocalizedVariantPrices.js +9 -0
- package/src/io/flow/shopify/v0/models/shopifyOrderAttributesForm.js +5 -0
- package/src/io/flow/shopify/v0/models/shopifyOrderDeliveryMetafield.js +10 -0
- package/src/io/flow/shopify/v0/models/shopifyOrderMetafieldValue.js +19 -0
- package/src/io/flow/shopify/v0/models/shopifyPrice.js +13 -0
- package/src/io/flow/shopify/v0/models/shopifyPrivateApp.js +7 -0
- package/src/io/flow/shopify/v0/models/shopifyPrivateAppForm.js +6 -0
- package/src/io/flow/shopify/v0/models/shopifyVariantPriceMetafield.js +10 -0
- package/src/io/flow/shopify/v0/unions/shopifyCartAddForm.js +8 -0
- package/src/io/flow/stripe/v0/enums/threeDSecureSupport.js +8 -0
- package/src/io/flow/stripe/v0/models/sourceCard.js +2 -1
- package/src/io/flow/stripe/v0/models/threeDSecure.js +1 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import featureStatus from '../enums/featureStatus';
|
|
3
|
+
import featureType from '../enums/featureType';
|
|
4
|
+
import featureRuleForm from '../unions/featureRuleForm';
|
|
5
|
+
|
|
6
|
+
export default PropTypes.shape({
|
|
7
|
+
name: PropTypes.string.isRequired,
|
|
8
|
+
description: PropTypes.string,
|
|
9
|
+
status: featureStatus,
|
|
10
|
+
type: featureType.isRequired,
|
|
11
|
+
rules: PropTypes.arrayOf(featureRuleForm).isRequired,
|
|
12
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import booleanFeatureRuleForm from '../models/booleanFeatureRuleForm';
|
|
3
|
+
import stringFeatureRuleForm from '../models/stringFeatureRuleForm';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.oneOfType([
|
|
6
|
+
booleanFeatureRuleForm,
|
|
7
|
+
stringFeatureRuleForm,
|
|
8
|
+
]);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import paymentTerm from '../enums/paymentTerm';
|
|
3
|
+
import invoiceLine from './invoiceLine';
|
|
4
|
+
import price from '../../../common/v0/models/price';
|
|
5
|
+
|
|
6
|
+
export default PropTypes.shape({
|
|
7
|
+
id: PropTypes.string.isRequired,
|
|
8
|
+
number: PropTypes.string.isRequired,
|
|
9
|
+
date: PropTypes.string.isRequired,
|
|
10
|
+
terms: paymentTerm.isRequired,
|
|
11
|
+
due_date: PropTypes.string.isRequired,
|
|
12
|
+
lines: PropTypes.arrayOf(invoiceLine).isRequired,
|
|
13
|
+
total: price.isRequired,
|
|
14
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
|
|
3
|
+
export default PropTypes.shape({
|
|
4
|
+
country: PropTypes.string.isRequired,
|
|
5
|
+
currency: PropTypes.string.isRequired,
|
|
6
|
+
language: PropTypes.string.isRequired,
|
|
7
|
+
locale: PropTypes.string.isRequired,
|
|
8
|
+
experience: PropTypes.string.isRequired,
|
|
9
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import shopifyCartItem from './shopifyCartItem';
|
|
3
|
+
import shopifyLocalCartMetadata from './shopifyLocalCartMetadata';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
id: PropTypes.string.isRequired,
|
|
7
|
+
items: PropTypes.arrayOf(shopifyCartItem).isRequired,
|
|
8
|
+
item_count: PropTypes.number.isRequired,
|
|
9
|
+
total_price: PropTypes.number.isRequired,
|
|
10
|
+
local: shopifyLocalCartMetadata.isRequired,
|
|
11
|
+
attributes: PropTypes.object,
|
|
12
|
+
note: PropTypes.string,
|
|
13
|
+
requires_shipping: PropTypes.bool.isRequired,
|
|
14
|
+
total_weight: PropTypes.number,
|
|
15
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import shopifyLocalCartItemMetadata from './shopifyLocalCartItemMetadata';
|
|
3
|
+
|
|
4
|
+
export default PropTypes.shape({
|
|
5
|
+
id: PropTypes.string.isRequired,
|
|
6
|
+
handle: PropTypes.string.isRequired,
|
|
7
|
+
line_price: PropTypes.number.isRequired,
|
|
8
|
+
price: PropTypes.number.isRequired,
|
|
9
|
+
product_id: PropTypes.number.isRequired,
|
|
10
|
+
product_title: PropTypes.string.isRequired,
|
|
11
|
+
quantity: PropTypes.number.isRequired,
|
|
12
|
+
title: PropTypes.string.isRequired,
|
|
13
|
+
url: PropTypes.string.isRequired,
|
|
14
|
+
variant_id: PropTypes.number.isRequired,
|
|
15
|
+
local: shopifyLocalCartItemMetadata.isRequired,
|
|
16
|
+
gift_card: PropTypes.bool.isRequired,
|
|
17
|
+
image: PropTypes.string,
|
|
18
|
+
product_description: PropTypes.string,
|
|
19
|
+
product_type: PropTypes.string,
|
|
20
|
+
properties: PropTypes.objectOf(PropTypes.string),
|
|
21
|
+
requires_shipping: PropTypes.bool.isRequired,
|
|
22
|
+
sku: PropTypes.string,
|
|
23
|
+
variant_title: PropTypes.string,
|
|
24
|
+
variant_options: PropTypes.arrayOf(PropTypes.string),
|
|
25
|
+
vendor: PropTypes.string,
|
|
26
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import priceWithBase from '../../../common/v0/models/priceWithBase';
|
|
3
|
+
import promotions from '../../../experience/v0/models/promotions';
|
|
4
|
+
import orderRulesSummary from '../../../experience/v0/models/orderRulesSummary';
|
|
5
|
+
|
|
6
|
+
export default PropTypes.shape({
|
|
7
|
+
total_price: priceWithBase.isRequired,
|
|
8
|
+
promotions: promotions.isRequired,
|
|
9
|
+
rules: orderRulesSummary,
|
|
10
|
+
subtotal: priceWithBase.isRequired,
|
|
11
|
+
vat: priceWithBase,
|
|
12
|
+
duty: priceWithBase,
|
|
13
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import experienceReference from '../../../experience/v0/models/experienceReference';
|
|
3
|
+
import shopifyLocalizedVariantPrices from './shopifyLocalizedVariantPrices';
|
|
4
|
+
import subcatalogItemStatus from '../../../catalog/v0/enums/subcatalogItemStatus';
|
|
5
|
+
|
|
6
|
+
export default PropTypes.shape({
|
|
7
|
+
id: PropTypes.number.isRequired,
|
|
8
|
+
handle: PropTypes.string.isRequired,
|
|
9
|
+
experience: experienceReference.isRequired,
|
|
10
|
+
prices: shopifyLocalizedVariantPrices.isRequired,
|
|
11
|
+
status: subcatalogItemStatus.isRequired,
|
|
12
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import serviceSummary from '../../../fulfillment/v0/models/serviceSummary';
|
|
3
|
+
import deliveryWindow from '../../../fulfillment/v0/models/deliveryWindow';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
item_number: PropTypes.string.isRequired,
|
|
7
|
+
quantity: PropTypes.number.isRequired,
|
|
8
|
+
service: serviceSummary.isRequired,
|
|
9
|
+
window: deliveryWindow.isRequired,
|
|
10
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import orderMerchantOfRecord from '../../../common/v0/enums/orderMerchantOfRecord';
|
|
3
|
+
import merchantOfRecordEntity from '../../../common/v0/models/merchantOfRecordEntity';
|
|
4
|
+
import localizedLineItem from '../../../experience/v0/models/localizedLineItem';
|
|
5
|
+
import orderPriceDetail from '../../../experience/v0/models/orderPriceDetail';
|
|
6
|
+
import localizedTotal from '../../../catalog/v0/models/localizedTotal';
|
|
7
|
+
import incoterm from '../../../common/v0/enums/incoterm';
|
|
8
|
+
import taxRegistration from '../../../harmonization/v0/models/taxRegistration';
|
|
9
|
+
|
|
10
|
+
export default PropTypes.shape({
|
|
11
|
+
merchant_of_record: orderMerchantOfRecord.isRequired,
|
|
12
|
+
merchant_of_record_entity: merchantOfRecordEntity,
|
|
13
|
+
items: PropTypes.arrayOf(localizedLineItem).isRequired,
|
|
14
|
+
prices: PropTypes.arrayOf(orderPriceDetail).isRequired,
|
|
15
|
+
total: localizedTotal.isRequired,
|
|
16
|
+
flow_order_id: PropTypes.string,
|
|
17
|
+
incoterm: incoterm,
|
|
18
|
+
tax_registration: taxRegistration,
|
|
19
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import includedLevies from '../../../common/v0/models/includedLevies';
|
|
3
|
+
import shopifyLocalPriceMetadata from './shopifyLocalPriceMetadata';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
name: PropTypes.string.isRequired,
|
|
7
|
+
amount: PropTypes.number.isRequired,
|
|
8
|
+
cents: PropTypes.number.isRequired,
|
|
9
|
+
currency: PropTypes.string.isRequired,
|
|
10
|
+
label: PropTypes.string.isRequired,
|
|
11
|
+
includes: includedLevies,
|
|
12
|
+
local: shopifyLocalPriceMetadata,
|
|
13
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import shopifyCartAddSingleForm from '../models/shopifyCartAddSingleForm';
|
|
3
|
+
import shopifyCartAddMultipleForm from '../models/shopifyCartAddMultipleForm';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.oneOfType([
|
|
6
|
+
shopifyCartAddSingleForm,
|
|
7
|
+
shopifyCartAddMultipleForm,
|
|
8
|
+
]);
|
|
@@ -2,6 +2,7 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import cardBrand from '../enums/cardBrand';
|
|
3
3
|
import checkOutcome from '../enums/checkOutcome';
|
|
4
4
|
import cardFundingType from '../enums/cardFundingType';
|
|
5
|
+
import threeDSecureSupport from '../enums/threeDSecureSupport';
|
|
5
6
|
|
|
6
7
|
export default PropTypes.shape({
|
|
7
8
|
exp_month: PropTypes.number.isRequired,
|
|
@@ -13,7 +14,7 @@ export default PropTypes.shape({
|
|
|
13
14
|
fingerprint: PropTypes.string,
|
|
14
15
|
funding: cardFundingType,
|
|
15
16
|
last4: PropTypes.string,
|
|
16
|
-
three_d_secure:
|
|
17
|
+
three_d_secure: threeDSecureSupport,
|
|
17
18
|
address_line1_check: checkOutcome,
|
|
18
19
|
address_zip_check: checkOutcome,
|
|
19
20
|
tokenization_method: PropTypes.string,
|