@flowio/api-prop-types 10.16.62 → 10.16.63
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/lib/api.d.ts +7 -0
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +7 -0
- package/src/api.js +39 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-prop-types",
|
|
3
|
-
"version": "10.16.
|
|
3
|
+
"version": "10.16.63",
|
|
4
4
|
"description": "PropType validators that work with Flow API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"prop-types": "^15.7.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "1855db886db2701e6ba2ae9ede907ce6abbcaa38"
|
|
33
33
|
}
|
package/src/api.d.ts
CHANGED
|
@@ -2227,6 +2227,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2227
2227
|
type PriceDetailKey = 'item_price' | 'margins' | 'vat' | 'duty' | 'rounding' | 'adjustment';
|
|
2228
2228
|
type PriceFacetBoundary = 'min' | 'max';
|
|
2229
2229
|
type PricingLevySetting = 'included' | 'displayed' | 'ignored';
|
|
2230
|
+
type ProductRestrictionRule = 'Adult Products' | 'Alcohol' | 'Anti Money Laundering' | 'Collagen' | 'Consumer Safety' | 'Cosmetics' | 'DG - Batteries' | 'DG - Hazmat' | 'Drugs' | 'Dual Use' | 'Fine Art' | 'Fish & Wildlife - CITES' | 'Fish & Wildlife - Plant' | 'Fish & Wildlife - USFWS' | 'Food' | 'Gambling' | 'Health' | 'Human hair' | 'Insufficient Details' | 'Intangible' | 'Jewelry' | 'Jewelry & Watches Over 5000' | 'Knives' | 'Liquids' | 'Oversized' | 'Supplements' | 'Weapon' | 'Wood' | 'unknown';
|
|
2230
2231
|
type PromotionTriggerType = 'automatic' | 'order_subtotal';
|
|
2231
2232
|
type ProvinceType = 'area' | 'city' | 'county' | 'department' | 'dependency' | 'district' | 'do_si' | 'emirate' | 'entity' | 'island' | 'municipality' | 'oblast' | 'outlying_area' | 'parish' | 'prefecture' | 'province' | 'state' | 'territory' | 'other';
|
|
2232
2233
|
type QuoteErrorCode = 'generic_error' | 'items_not_available' | 'shipping_unavailable';
|
|
@@ -2240,6 +2241,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2240
2241
|
type ReturnTrackingStatus = 'awaiting_customs_clearance' | 'cancel_requested' | 'canceled' | 'collection_attempt_failed' | 'customs_clearance_completed' | 'delivered_to_retailer' | 'in_transit_to_local_hub' | 'in_transit_to_retailer' | 'parcel_added_to_pallet' | 'parcel_delayed' | 'parcel_extracted_from_pallet' | 'parcel_lost' | 'parcel_processed_by_retailer' | 'parcel_under_investigation' | 'processed_by_local_hub' | 'received_at_local_hub' | 'received_by_the_carrier' | 'return_registered_online';
|
|
2241
2242
|
type ReversalErrorCode = 'amount_exceeds_balance' | 'authorization_declined' | 'authorization_expired' | 'invalid_authorization' | 'invalid_key' | 'invalid_amount' | 'invalid_currency' | 'no_remaining_balance' | 'partial_reversal_not_supported' | 'unknown';
|
|
2242
2243
|
type ReversalStatus = 'pending' | 'processed' | 'failed';
|
|
2244
|
+
type ReviewStatus = 'high_risk_in_review' | 'low_risk_in_review' | 'reviewed';
|
|
2243
2245
|
type Role = 'admin' | 'member';
|
|
2244
2246
|
type RoundingMethod = 'up' | 'down' | 'nearest';
|
|
2245
2247
|
type RoundingType = 'pattern' | 'multiple';
|
|
@@ -9637,6 +9639,9 @@ declare namespace io.flow.v0.models {
|
|
|
9637
9639
|
readonly 'product_id': string;
|
|
9638
9640
|
readonly 'item_numbers': string[];
|
|
9639
9641
|
readonly 'prohibited_regions': string[];
|
|
9642
|
+
readonly 'review_status': io.flow.v0.enums.ReviewStatus;
|
|
9643
|
+
readonly 'rules': io.flow.v0.enums.ProductRestrictionRule[];
|
|
9644
|
+
readonly 'updated_by_user_id': string;
|
|
9640
9645
|
}
|
|
9641
9646
|
|
|
9642
9647
|
interface ProductRestrictionResultDeleted {
|
|
@@ -12749,6 +12754,7 @@ export const priceDetailComponentKey: PropTypes.Requireable<io.flow.v0.enums.Pri
|
|
|
12749
12754
|
export const priceDetailKey: PropTypes.Requireable<io.flow.v0.enums.PriceDetailKey>;
|
|
12750
12755
|
export const priceFacetBoundary: PropTypes.Requireable<io.flow.v0.enums.PriceFacetBoundary>;
|
|
12751
12756
|
export const pricingLevySetting: PropTypes.Requireable<io.flow.v0.enums.PricingLevySetting>;
|
|
12757
|
+
export const productRestrictionRule: PropTypes.Requireable<io.flow.v0.enums.ProductRestrictionRule>;
|
|
12752
12758
|
export const promotionTriggerType: PropTypes.Requireable<io.flow.v0.enums.PromotionTriggerType>;
|
|
12753
12759
|
export const provinceType: PropTypes.Requireable<io.flow.v0.enums.ProvinceType>;
|
|
12754
12760
|
export const quoteErrorCode: PropTypes.Requireable<io.flow.v0.enums.QuoteErrorCode>;
|
|
@@ -12762,6 +12768,7 @@ export const returnStatus: PropTypes.Requireable<io.flow.v0.enums.ReturnStatus>;
|
|
|
12762
12768
|
export const returnTrackingStatus: PropTypes.Requireable<io.flow.v0.enums.ReturnTrackingStatus>;
|
|
12763
12769
|
export const reversalErrorCode: PropTypes.Requireable<io.flow.v0.enums.ReversalErrorCode>;
|
|
12764
12770
|
export const reversalStatus: PropTypes.Requireable<io.flow.v0.enums.ReversalStatus>;
|
|
12771
|
+
export const reviewStatus: PropTypes.Requireable<io.flow.v0.enums.ReviewStatus>;
|
|
12765
12772
|
export const role: PropTypes.Requireable<io.flow.v0.enums.Role>;
|
|
12766
12773
|
export const roundingMethod: PropTypes.Requireable<io.flow.v0.enums.RoundingMethod>;
|
|
12767
12774
|
export const roundingType: PropTypes.Requireable<io.flow.v0.enums.RoundingType>;
|
package/src/api.js
CHANGED
|
@@ -3696,11 +3696,48 @@ T['io.flow.v0.models.query_filter_structured'] = PropTypes.exact({
|
|
|
3696
3696
|
values: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
3697
3697
|
});
|
|
3698
3698
|
|
|
3699
|
+
T['io.flow.v0.enums.product_restriction_rule'] = PropTypes.oneOf([
|
|
3700
|
+
'Adult Products',
|
|
3701
|
+
'Alcohol',
|
|
3702
|
+
'Anti Money Laundering',
|
|
3703
|
+
'Collagen',
|
|
3704
|
+
'Consumer Safety',
|
|
3705
|
+
'Cosmetics',
|
|
3706
|
+
'DG - Batteries',
|
|
3707
|
+
'DG - Hazmat',
|
|
3708
|
+
'Drugs',
|
|
3709
|
+
'Dual Use',
|
|
3710
|
+
'Fine Art',
|
|
3711
|
+
'Fish & Wildlife - CITES',
|
|
3712
|
+
'Fish & Wildlife - Plant',
|
|
3713
|
+
'Fish & Wildlife - USFWS',
|
|
3714
|
+
'Food',
|
|
3715
|
+
'Gambling',
|
|
3716
|
+
'Health',
|
|
3717
|
+
'Human hair',
|
|
3718
|
+
'Insufficient Details',
|
|
3719
|
+
'Intangible',
|
|
3720
|
+
'Jewelry',
|
|
3721
|
+
'Jewelry & Watches Over 5000',
|
|
3722
|
+
'Knives',
|
|
3723
|
+
'Liquids',
|
|
3724
|
+
'Oversized',
|
|
3725
|
+
'Supplements',
|
|
3726
|
+
'Weapon',
|
|
3727
|
+
'Wood',
|
|
3728
|
+
'unknown',
|
|
3729
|
+
]);
|
|
3730
|
+
|
|
3731
|
+
T['io.flow.v0.enums.review_status'] = PropTypes.oneOf(['high_risk_in_review', 'low_risk_in_review', 'reviewed']);
|
|
3732
|
+
|
|
3699
3733
|
T['io.flow.v0.models.product_restriction_result'] = PropTypes.exact({
|
|
3700
3734
|
id: PropTypes.string.isRequired,
|
|
3701
3735
|
product_id: PropTypes.string.isRequired,
|
|
3702
3736
|
item_numbers: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
3703
3737
|
prohibited_regions: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
3738
|
+
review_status: T['io.flow.v0.enums.review_status'].isRequired,
|
|
3739
|
+
rules: PropTypes.arrayOf(T['io.flow.v0.enums.product_restriction_rule']).isRequired,
|
|
3740
|
+
updated_by_user_id: PropTypes.string.isRequired,
|
|
3704
3741
|
});
|
|
3705
3742
|
|
|
3706
3743
|
T['io.flow.v0.models.product_restriction_result_upserted'] = PropTypes.exact({
|
|
@@ -15868,6 +15905,7 @@ export const processingEstimate = T['io.flow.v0.models.processing_estimate'];
|
|
|
15868
15905
|
export const productRestrictionResult = T['io.flow.v0.models.product_restriction_result'];
|
|
15869
15906
|
export const productRestrictionResultDeleted = T['io.flow.v0.models.product_restriction_result_deleted'];
|
|
15870
15907
|
export const productRestrictionResultUpserted = T['io.flow.v0.models.product_restriction_result_upserted'];
|
|
15908
|
+
export const productRestrictionRule = T['io.flow.v0.enums.product_restriction_rule'];
|
|
15871
15909
|
export const promotion = T['io.flow.v0.unions.promotion'];
|
|
15872
15910
|
export const promotionTrigger = T['io.flow.v0.models.promotion_trigger'];
|
|
15873
15911
|
export const promotionTriggerForm = T['io.flow.v0.models.promotion_trigger_form'];
|
|
@@ -16006,6 +16044,7 @@ export const reversalPutForm = T['io.flow.v0.models.reversal_put_form'];
|
|
|
16006
16044
|
export const reversalStatus = T['io.flow.v0.enums.reversal_status'];
|
|
16007
16045
|
export const reversalUpserted = T['io.flow.v0.models.reversal_upserted'];
|
|
16008
16046
|
export const reversalVersion = T['io.flow.v0.models.reversal_version'];
|
|
16047
|
+
export const reviewStatus = T['io.flow.v0.enums.review_status'];
|
|
16009
16048
|
export const role = T['io.flow.v0.enums.role'];
|
|
16010
16049
|
export const romanization = T['io.flow.v0.models.romanization'];
|
|
16011
16050
|
export const romanizationForm = T['io.flow.v0.models.romanization_form'];
|