@flowio/api-prop-types 10.16.65 → 10.16.67
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 +13 -3
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +13 -3
- package/src/api.js +17 -4
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.67",
|
|
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": "71ee41ffd96a582387a4d438378c1ae949b08c92"
|
|
33
33
|
}
|
package/src/api.d.ts
CHANGED
|
@@ -1093,7 +1093,7 @@ declare namespace io.flow.shopify.external.v0.enums {
|
|
|
1093
1093
|
type ShopifyProcessingMethodType = 'checkout' | 'direct' | 'manual' | 'offsite' | 'express';
|
|
1094
1094
|
type ShopifyTransactionErrorCode = 'incorrect_number' | 'invalid_number' | 'invalid_expiry_date' | 'invalid_cvc' | 'expired_card' | 'incorrect_cvc' | 'incorrect_zip' | 'incorrect_address' | 'card_declined' | 'processing_error' | 'call_issuer' | 'pick_up_card';
|
|
1095
1095
|
type ShopifyTransactionStatus = 'pending' | 'failure' | 'success' | 'error';
|
|
1096
|
-
type Topic = 'carts/create' | 'carts/update' | 'checkouts/create' | 'checkouts/delete' | 'checkouts/update' | 'collections/create' | 'collections/delete' | 'collections/update' | 'customer_groups/create' | 'customer_groups/delete' | 'customer_groups/update' | 'customers/create' | 'customers/delete' | 'customers/disable' | 'customers/enable' | 'customers/update' | 'customers/redact' | 'disputes/create' | 'disputes/update' | 'fulfillment_events/create' | 'fulfillment_events/delete' | 'fulfillments/create' | 'fulfillments/update' | 'inventory_items/create' | 'inventory_items/update' | 'inventory_items/delete' | 'inventory_levels/connect' | 'inventory_levels/update' | 'inventory_levels/disconnect' | 'locations/create' | 'locations/update' | 'locations/delete' | 'order_transactions/create' | 'orders/cancelled' | 'orders/create' | 'orders/delete' | 'orders/fulfilled' | 'orders/paid' | 'orders/partially_fulfilled' | 'orders/updated' | 'products/create' | 'products/delete' | 'products/update' | 'refunds/create' | 'shop/update' | 'shop/redact' | 'themes/create' | 'themes/delete' | 'themes/publish' | 'themes/update';
|
|
1096
|
+
type Topic = 'carts/create' | 'carts/update' | 'checkouts/create' | 'checkouts/delete' | 'checkouts/update' | 'collections/create' | 'collections/delete' | 'collections/update' | 'customer_groups/create' | 'customer_groups/delete' | 'customer_groups/update' | 'customers/create' | 'customers/delete' | 'customers/disable' | 'customers/enable' | 'customers/update' | 'customers/redact' | 'disputes/create' | 'disputes/update' | 'fulfillment_events/create' | 'fulfillment_events/delete' | 'fulfillments/create' | 'fulfillments/update' | 'inventory_items/create' | 'inventory_items/update' | 'inventory_items/delete' | 'inventory_levels/connect' | 'inventory_levels/update' | 'inventory_levels/disconnect' | 'locations/create' | 'locations/update' | 'locations/delete' | 'order_transactions/create' | 'orders/cancelled' | 'orders/create' | 'orders/delete' | 'orders/fulfilled' | 'orders/paid' | 'orders/partially_fulfilled' | 'orders/updated' | 'orders/edited' | 'products/create' | 'products/delete' | 'products/update' | 'refunds/create' | 'shop/update' | 'shop/redact' | 'themes/create' | 'themes/delete' | 'themes/publish' | 'themes/update';
|
|
1097
1097
|
type ValueType = 'string' | 'integer';
|
|
1098
1098
|
type WeightUnit = 'g' | 'kg' | 'oz' | 'lb';
|
|
1099
1099
|
}
|
|
@@ -2164,7 +2164,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2164
2164
|
type InvitationErrorCode = 'expired' | 'invalid_email';
|
|
2165
2165
|
type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
|
|
2166
2166
|
type ItemIdentifier = 'item_number' | 'sku';
|
|
2167
|
-
type LabelRequestMethod = 'flow_web_sync' | 'channel_web_async' | 'direct_api_sync' | 'direct_api_async' | 'bridge_api_sync' | 'partner_api_sync' | 'notification_requiring_crossdock' | 'autogenerated';
|
|
2167
|
+
type LabelRequestMethod = 'flow_web_sync' | 'channel_web_async' | 'direct_api_sync' | 'direct_api_async' | 'bridge_api_sync' | 'partner_api_sync' | 'notification_requiring_crossdock' | 'flow_simulation_sync' | 'autogenerated';
|
|
2168
2168
|
type LabelTriggerMethod = 'autogenerated' | 'on_demand';
|
|
2169
2169
|
type LaneDirection = 'outbound' | 'return';
|
|
2170
2170
|
type LanePreselectPreference = 'lowest_cost' | 'default_tier';
|
|
@@ -2181,7 +2181,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2181
2181
|
type MerchantRejectedReason = 'merchant_ubo_is_pep' | 'merchant_catalog_is_unsupportable' | 'merchant_failed_kyb_review';
|
|
2182
2182
|
type Method = 'post';
|
|
2183
2183
|
type OnboardingApplicationStatus = 'to_do' | 'in_progress' | 'on_hold' | 'rejected' | 'accepted';
|
|
2184
|
-
type OnboardingBlockedReason = 'street_address_is_blank_3pl' | 'street_address_is_po_box_3pl' | 'business_street_address_is_blank' | 'business_street_address_is_po_box';
|
|
2184
|
+
type OnboardingBlockedReason = 'street_address_is_blank_3pl' | 'street_address_is_po_box_3pl' | 'business_street_address_is_blank' | 'business_street_address_is_po_box' | 'exception_merchant';
|
|
2185
2185
|
type OnboardingTradeSector = 'accessories' | 'animals_and_pet_supplies' | 'apparel' | 'apparel_and_accessories' | 'arts_and_entertainment' | 'baby_and_toddler' | 'business_and_industrial' | 'cameras_and_optics' | 'electronics' | 'food_beverages_and_tobacco' | 'furniture' | 'gift_cards' | 'hardware' | 'health_and_beauty' | 'home_and_garden' | 'jewelry' | 'luggage_and_bags' | 'mature' | 'media' | 'office_supplies' | 'paper_and_art' | 'religious_and_ceremonial' | 'software' | 'sporting_goods' | 'sports_and_fitness' | 'toys_and_games' | 'toys_hobbies_gifts' | 'vehicles_and_parts' | 'other';
|
|
2186
2186
|
type OptinResponseType = 'not_shown' | 'opted_in' | 'opted_out';
|
|
2187
2187
|
type OrderChangeSource = 'consumer' | 'retailer' | 'fulfillment' | 'flow' | 'carrier';
|
|
@@ -6992,6 +6992,7 @@ declare namespace io.flow.v0.models {
|
|
|
6992
6992
|
readonly 'number': string;
|
|
6993
6993
|
readonly 'name': string;
|
|
6994
6994
|
readonly 'quantity': number;
|
|
6995
|
+
readonly 'image'?: io.flow.v0.models.OrderSummaryImage;
|
|
6995
6996
|
readonly 'center'?: string;
|
|
6996
6997
|
readonly 'price'?: io.flow.v0.models.Money;
|
|
6997
6998
|
readonly 'discount'?: io.flow.v0.models.LocalizedLineItemDiscount;
|
|
@@ -9894,6 +9895,8 @@ declare namespace io.flow.v0.models {
|
|
|
9894
9895
|
readonly 'delivered_duty'?: io.flow.v0.enums.DeliveredDuty;
|
|
9895
9896
|
readonly 'line_items'?: io.flow.v0.models.LineItemForm[];
|
|
9896
9897
|
readonly 'center_id'?: string;
|
|
9898
|
+
readonly 'taxes_owed'?: io.flow.v0.models.Money;
|
|
9899
|
+
readonly 'duties_owed'?: io.flow.v0.models.Money;
|
|
9897
9900
|
}
|
|
9898
9901
|
|
|
9899
9902
|
interface RatecardEstimateSummaryForm {
|
|
@@ -12174,8 +12177,14 @@ declare namespace io.flow.v0.models {
|
|
|
12174
12177
|
interface TransactionMetadataCarrierCharge {
|
|
12175
12178
|
readonly 'discriminator': 'carrier_charge';
|
|
12176
12179
|
readonly 'reason': io.flow.v0.enums.CarrierChargeReason;
|
|
12180
|
+
readonly 'label_created_at': string;
|
|
12177
12181
|
readonly 'carrier_id': string;
|
|
12178
12182
|
readonly 'carrier_tracking_number': string;
|
|
12183
|
+
readonly 'outbound'?: io.flow.v0.models.TransactionMetadataCarrierChargeOutbound;
|
|
12184
|
+
}
|
|
12185
|
+
|
|
12186
|
+
interface TransactionMetadataCarrierChargeOutbound {
|
|
12187
|
+
readonly 'transaction_id': string;
|
|
12179
12188
|
}
|
|
12180
12189
|
|
|
12181
12190
|
interface TransactionMetadataChannel {
|
|
@@ -14217,6 +14226,7 @@ export const tradeAgreementDuty: PropTypes.Requireable<io.flow.v0.models.TradeAg
|
|
|
14217
14226
|
export const transaction: PropTypes.Requireable<io.flow.v0.models.Transaction>;
|
|
14218
14227
|
export const transactionDetailsCard: PropTypes.Requireable<io.flow.v0.models.TransactionDetailsCard>;
|
|
14219
14228
|
export const transactionMetadataCarrierCharge: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataCarrierCharge>;
|
|
14229
|
+
export const transactionMetadataCarrierChargeOutbound: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataCarrierChargeOutbound>;
|
|
14220
14230
|
export const transactionMetadataChannel: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataChannel>;
|
|
14221
14231
|
export const transactionMetadataChannelCardMetadata: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataChannelCardMetadata>;
|
|
14222
14232
|
export const transactionMetadataChannelCardMetadataIssuerSummary: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary>;
|
package/src/api.js
CHANGED
|
@@ -67,6 +67,7 @@ T['io.flow.shopify.external.v0.enums.topic'] = PropTypes.oneOf([
|
|
|
67
67
|
'orders/paid',
|
|
68
68
|
'orders/partially_fulfilled',
|
|
69
69
|
'orders/updated',
|
|
70
|
+
'orders/edited',
|
|
70
71
|
'products/create',
|
|
71
72
|
'products/delete',
|
|
72
73
|
'products/update',
|
|
@@ -2952,6 +2953,10 @@ T['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary']
|
|
|
2952
2953
|
country: PropTypes.string.isRequired,
|
|
2953
2954
|
});
|
|
2954
2955
|
|
|
2956
|
+
T['io.flow.v0.models.transaction_metadata_carrier_charge_outbound'] = PropTypes.exact({
|
|
2957
|
+
transaction_id: PropTypes.string.isRequired,
|
|
2958
|
+
});
|
|
2959
|
+
|
|
2955
2960
|
T['io.flow.v0.enums.carrier_charge_reason'] = PropTypes.oneOf(['return_to_origin', 'rejection', 'other']);
|
|
2956
2961
|
|
|
2957
2962
|
T['io.flow.v0.enums.tracking_status'] = PropTypes.oneOf([
|
|
@@ -3447,6 +3452,7 @@ T['io.flow.v0.enums.onboarding_blocked_reason'] = PropTypes.oneOf([
|
|
|
3447
3452
|
'street_address_is_po_box_3pl',
|
|
3448
3453
|
'business_street_address_is_blank',
|
|
3449
3454
|
'business_street_address_is_po_box',
|
|
3455
|
+
'exception_merchant',
|
|
3450
3456
|
]);
|
|
3451
3457
|
|
|
3452
3458
|
T['io.flow.v0.models.session_experiment_variant_form'] = PropTypes.exact({
|
|
@@ -4408,10 +4414,6 @@ T['io.flow.v0.enums.order_quote_line_error_code'] = PropTypes.oneOf([
|
|
|
4408
4414
|
'line_value_threshold_exceeded',
|
|
4409
4415
|
]);
|
|
4410
4416
|
|
|
4411
|
-
T['io.flow.v0.models.order_summary_image'] = PropTypes.exact({
|
|
4412
|
-
url: PropTypes.string.isRequired,
|
|
4413
|
-
});
|
|
4414
|
-
|
|
4415
4417
|
T['io.flow.v0.models.order_quote_price_standard'] = PropTypes.exact({
|
|
4416
4418
|
discriminator: PropTypes.oneOf(['price']).isRequired,
|
|
4417
4419
|
amount: PropTypes.number.isRequired,
|
|
@@ -4894,6 +4896,10 @@ T['io.flow.v0.models.location_error'] = PropTypes.exact({
|
|
|
4894
4896
|
messages: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
4895
4897
|
});
|
|
4896
4898
|
|
|
4899
|
+
T['io.flow.v0.models.order_summary_image'] = PropTypes.exact({
|
|
4900
|
+
url: PropTypes.string.isRequired,
|
|
4901
|
+
});
|
|
4902
|
+
|
|
4897
4903
|
T['io.flow.v0.models.session_experiment_variant'] = PropTypes.exact({
|
|
4898
4904
|
key: PropTypes.string.isRequired,
|
|
4899
4905
|
name: PropTypes.string.isRequired,
|
|
@@ -5059,6 +5065,7 @@ T['io.flow.v0.enums.label_request_method'] = PropTypes.oneOf([
|
|
|
5059
5065
|
'bridge_api_sync',
|
|
5060
5066
|
'partner_api_sync',
|
|
5061
5067
|
'notification_requiring_crossdock',
|
|
5068
|
+
'flow_simulation_sync',
|
|
5062
5069
|
'autogenerated',
|
|
5063
5070
|
]);
|
|
5064
5071
|
|
|
@@ -6965,8 +6972,10 @@ T['io.flow.v0.models.transaction_metadata_manual'] = PropTypes.exact({
|
|
|
6965
6972
|
T['io.flow.v0.models.transaction_metadata_carrier_charge'] = PropTypes.exact({
|
|
6966
6973
|
discriminator: PropTypes.oneOf(['carrier_charge']).isRequired,
|
|
6967
6974
|
reason: T['io.flow.v0.enums.carrier_charge_reason'].isRequired,
|
|
6975
|
+
label_created_at: PropTypes.string.isRequired,
|
|
6968
6976
|
carrier_id: PropTypes.string.isRequired,
|
|
6969
6977
|
carrier_tracking_number: PropTypes.string.isRequired,
|
|
6978
|
+
outbound: T['io.flow.v0.models.transaction_metadata_carrier_charge_outbound'],
|
|
6970
6979
|
});
|
|
6971
6980
|
|
|
6972
6981
|
T['io.flow.v0.models.transaction_metadata_trueup'] = PropTypes.exact({
|
|
@@ -10724,6 +10733,7 @@ T['io.flow.v0.models.localized_line_item'] = PropTypes.exact({
|
|
|
10724
10733
|
number: PropTypes.string.isRequired,
|
|
10725
10734
|
name: PropTypes.string.isRequired,
|
|
10726
10735
|
quantity: PropTypes.number.isRequired,
|
|
10736
|
+
image: T['io.flow.v0.models.order_summary_image'],
|
|
10727
10737
|
center: PropTypes.string,
|
|
10728
10738
|
price: T['io.flow.v0.models.money'],
|
|
10729
10739
|
discount: T['io.flow.v0.models.localized_line_item_discount'],
|
|
@@ -12864,6 +12874,8 @@ T['io.flow.v0.models.ratecard_estimate_form'] = PropTypes.exact({
|
|
|
12864
12874
|
delivered_duty: T['io.flow.v0.enums.delivered_duty'],
|
|
12865
12875
|
line_items: PropTypes.arrayOf(T['io.flow.v0.models.line_item_form']),
|
|
12866
12876
|
center_id: PropTypes.string,
|
|
12877
|
+
taxes_owed: T['io.flow.v0.models.money'],
|
|
12878
|
+
duties_owed: T['io.flow.v0.models.money'],
|
|
12867
12879
|
});
|
|
12868
12880
|
|
|
12869
12881
|
T['io.flow.v0.models.order_replacement_form'] = PropTypes.exact({
|
|
@@ -16344,6 +16356,7 @@ export const transactionDetails = T['io.flow.v0.unions.transaction_details'];
|
|
|
16344
16356
|
export const transactionDetailsCard = T['io.flow.v0.models.transaction_details_card'];
|
|
16345
16357
|
export const transactionMetadata = T['io.flow.v0.unions.transaction_metadata'];
|
|
16346
16358
|
export const transactionMetadataCarrierCharge = T['io.flow.v0.models.transaction_metadata_carrier_charge'];
|
|
16359
|
+
export const transactionMetadataCarrierChargeOutbound = T['io.flow.v0.models.transaction_metadata_carrier_charge_outbound'];
|
|
16347
16360
|
export const transactionMetadataChannel = T['io.flow.v0.models.transaction_metadata_channel'];
|
|
16348
16361
|
export const transactionMetadataChannelCardMetadata = T['io.flow.v0.models.transaction_metadata_channel_card_metadata'];
|
|
16349
16362
|
export const transactionMetadataChannelCardMetadataIssuerSummary = T['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary'];
|