@flowio/api-prop-types 10.16.66 → 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 +12 -2
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +12 -2
- package/src/api.js +16 -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';
|
|
@@ -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([
|
|
@@ -4409,10 +4414,6 @@ T['io.flow.v0.enums.order_quote_line_error_code'] = PropTypes.oneOf([
|
|
|
4409
4414
|
'line_value_threshold_exceeded',
|
|
4410
4415
|
]);
|
|
4411
4416
|
|
|
4412
|
-
T['io.flow.v0.models.order_summary_image'] = PropTypes.exact({
|
|
4413
|
-
url: PropTypes.string.isRequired,
|
|
4414
|
-
});
|
|
4415
|
-
|
|
4416
4417
|
T['io.flow.v0.models.order_quote_price_standard'] = PropTypes.exact({
|
|
4417
4418
|
discriminator: PropTypes.oneOf(['price']).isRequired,
|
|
4418
4419
|
amount: PropTypes.number.isRequired,
|
|
@@ -4895,6 +4896,10 @@ T['io.flow.v0.models.location_error'] = PropTypes.exact({
|
|
|
4895
4896
|
messages: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
4896
4897
|
});
|
|
4897
4898
|
|
|
4899
|
+
T['io.flow.v0.models.order_summary_image'] = PropTypes.exact({
|
|
4900
|
+
url: PropTypes.string.isRequired,
|
|
4901
|
+
});
|
|
4902
|
+
|
|
4898
4903
|
T['io.flow.v0.models.session_experiment_variant'] = PropTypes.exact({
|
|
4899
4904
|
key: PropTypes.string.isRequired,
|
|
4900
4905
|
name: PropTypes.string.isRequired,
|
|
@@ -5060,6 +5065,7 @@ T['io.flow.v0.enums.label_request_method'] = PropTypes.oneOf([
|
|
|
5060
5065
|
'bridge_api_sync',
|
|
5061
5066
|
'partner_api_sync',
|
|
5062
5067
|
'notification_requiring_crossdock',
|
|
5068
|
+
'flow_simulation_sync',
|
|
5063
5069
|
'autogenerated',
|
|
5064
5070
|
]);
|
|
5065
5071
|
|
|
@@ -6966,8 +6972,10 @@ T['io.flow.v0.models.transaction_metadata_manual'] = PropTypes.exact({
|
|
|
6966
6972
|
T['io.flow.v0.models.transaction_metadata_carrier_charge'] = PropTypes.exact({
|
|
6967
6973
|
discriminator: PropTypes.oneOf(['carrier_charge']).isRequired,
|
|
6968
6974
|
reason: T['io.flow.v0.enums.carrier_charge_reason'].isRequired,
|
|
6975
|
+
label_created_at: PropTypes.string.isRequired,
|
|
6969
6976
|
carrier_id: PropTypes.string.isRequired,
|
|
6970
6977
|
carrier_tracking_number: PropTypes.string.isRequired,
|
|
6978
|
+
outbound: T['io.flow.v0.models.transaction_metadata_carrier_charge_outbound'],
|
|
6971
6979
|
});
|
|
6972
6980
|
|
|
6973
6981
|
T['io.flow.v0.models.transaction_metadata_trueup'] = PropTypes.exact({
|
|
@@ -10725,6 +10733,7 @@ T['io.flow.v0.models.localized_line_item'] = PropTypes.exact({
|
|
|
10725
10733
|
number: PropTypes.string.isRequired,
|
|
10726
10734
|
name: PropTypes.string.isRequired,
|
|
10727
10735
|
quantity: PropTypes.number.isRequired,
|
|
10736
|
+
image: T['io.flow.v0.models.order_summary_image'],
|
|
10728
10737
|
center: PropTypes.string,
|
|
10729
10738
|
price: T['io.flow.v0.models.money'],
|
|
10730
10739
|
discount: T['io.flow.v0.models.localized_line_item_discount'],
|
|
@@ -12865,6 +12874,8 @@ T['io.flow.v0.models.ratecard_estimate_form'] = PropTypes.exact({
|
|
|
12865
12874
|
delivered_duty: T['io.flow.v0.enums.delivered_duty'],
|
|
12866
12875
|
line_items: PropTypes.arrayOf(T['io.flow.v0.models.line_item_form']),
|
|
12867
12876
|
center_id: PropTypes.string,
|
|
12877
|
+
taxes_owed: T['io.flow.v0.models.money'],
|
|
12878
|
+
duties_owed: T['io.flow.v0.models.money'],
|
|
12868
12879
|
});
|
|
12869
12880
|
|
|
12870
12881
|
T['io.flow.v0.models.order_replacement_form'] = PropTypes.exact({
|
|
@@ -16345,6 +16356,7 @@ export const transactionDetails = T['io.flow.v0.unions.transaction_details'];
|
|
|
16345
16356
|
export const transactionDetailsCard = T['io.flow.v0.models.transaction_details_card'];
|
|
16346
16357
|
export const transactionMetadata = T['io.flow.v0.unions.transaction_metadata'];
|
|
16347
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'];
|
|
16348
16360
|
export const transactionMetadataChannel = T['io.flow.v0.models.transaction_metadata_channel'];
|
|
16349
16361
|
export const transactionMetadataChannelCardMetadata = T['io.flow.v0.models.transaction_metadata_channel_card_metadata'];
|
|
16350
16362
|
export const transactionMetadataChannelCardMetadataIssuerSummary = T['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary'];
|