@flowio/api-prop-types 10.16.66 → 10.16.68

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-prop-types",
3
- "version": "10.16.66",
3
+ "version": "10.16.68",
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": "7fddfd86678e7921d92493bec5b3bec759769d5f"
32
+ "gitHead": "4ae49474a1813e8aac634c65824b9b915a4b31d5"
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
  }
@@ -1992,6 +1992,10 @@ declare namespace io.flow.ben.test.internal.v0.models {
1992
1992
  readonly 'num_events': number;
1993
1993
  }
1994
1994
 
1995
+ interface SvitlanaTest {
1996
+ readonly 'name': string;
1997
+ }
1998
+
1995
1999
  interface Test {
1996
2000
  readonly 'id': string;
1997
2001
  readonly 'name': string;
@@ -2139,7 +2143,7 @@ declare namespace io.flow.v0.enums {
2139
2143
  type ExperienceStatus = 'draft' | 'active' | 'archiving' | 'archived';
2140
2144
  type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
2141
2145
  type ExporterOfRecord = 'flow' | 'organization';
2142
- type FeeDeductionType = 'duty_guarantee' | 'mor' | 'fraud' | 'fx' | 'processing' | 'rate_lock' | 'transfer';
2146
+ type FeeDeductionType = 'duty_guarantee' | 'mor' | 'fraud' | 'fx' | 'processing' | 'rate_lock' | 'transfer' | 'negative_balance_guarantee';
2143
2147
  type FlowBehavior = 'view_consumer_data';
2144
2148
  type FlowEntity = 'flow-usa' | 'flow-irl' | 'flow-can';
2145
2149
  type FlowRole = 'organization_admin' | 'organization_merchant' | 'organization_customer_service' | 'organization_fulfillment' | 'organization_marketing' | 'organization_finance' | 'flow_operations' | 'channel_admin' | 'channel_organization_admin';
@@ -2164,7 +2168,7 @@ declare namespace io.flow.v0.enums {
2164
2168
  type InvitationErrorCode = 'expired' | 'invalid_email';
2165
2169
  type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
2166
2170
  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';
2171
+ 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
2172
  type LabelTriggerMethod = 'autogenerated' | 'on_demand';
2169
2173
  type LaneDirection = 'outbound' | 'return';
2170
2174
  type LanePreselectPreference = 'lowest_cost' | 'default_tier';
@@ -2188,8 +2192,8 @@ declare namespace io.flow.v0.enums {
2188
2192
  type OrderErrorCode = 'generic_error' | 'order_item_not_available' | 'order_identifier_error' | 'authorization_invalid' | 'domestic_shipping_unavailable' | 'shipping_unavailable' | 'value_threshold_exceeded' | 'invalid_currency' | 'invalid_country' | 'invalid_region' | 'invalid_language' | 'item_out_of_stock' | 'gift_card_not_accepted' | 'total_changed';
2189
2193
  type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
2190
2194
  type OrderPaymentType = 'card' | 'online' | 'credit' | 'external' | 'subsidized' | 'installment_plan' | 'cash_on_delivery';
2191
- type OrderPriceDetailComponentKey = 'adjustment' | 'vat_deminimis' | 'duty_deminimis' | 'duties_item_price' | 'duties_freight' | 'duties_insurance' | 'vat_item_price' | 'vat_freight' | 'vat_insurance' | 'vat_duties_item_price' | 'vat_duties_freight' | 'vat_duties_insurance' | 'item_price' | 'item_discount' | 'rounding' | 'insurance' | 'shipping' | 'shipping_discount' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'remote_area_surcharge' | 'fuel_surcharge' | 'emergency_situation_surcharge' | 'peak_surcharge' | 'duties_taxes_paid_surcharge';
2192
- type OrderPriceDetailKey = 'adjustment' | 'subtotal' | 'vat' | 'duty' | 'shipping' | 'insurance' | 'discount' | 'surcharges';
2195
+ type OrderPriceDetailComponentKey = 'adjustment' | 'vat_deminimis' | 'duty_deminimis' | 'duties_item_price' | 'duties_freight' | 'duties_insurance' | 'vat_item_price' | 'vat_freight' | 'vat_insurance' | 'vat_duties_item_price' | 'vat_duties_freight' | 'vat_duties_insurance' | 'item_price' | 'item_discount' | 'rounding' | 'insurance' | 'shipping' | 'shipping_discount' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'remote_area_surcharge' | 'fuel_surcharge' | 'emergency_situation_surcharge' | 'peak_surcharge' | 'duties_taxes_paid_surcharge' | 'tip';
2196
+ type OrderPriceDetailKey = 'adjustment' | 'subtotal' | 'vat' | 'duty' | 'shipping' | 'insurance' | 'discount' | 'surcharges' | 'tip';
2193
2197
  type OrderQuoteAddressType = 'shipping';
2194
2198
  type OrderQuoteErrorCode = 'contact_email_invalid' | 'contact_email_required' | 'contact_phone_invalid' | 'contact_phone_required' | 'country_not_supported' | 'currency_invalid' | 'first_name_invalid' | 'first_name_required' | 'geo_required_when_no_session' | 'language_invalid' | 'last_name_invalid' | 'last_name_required' | 'line_item_number_invalid' | 'line_item_number_not_available' | 'line_not_found' | 'line_quantity_invalid' | 'line_value_threshold_exceeded' | 'name_missing_first_or_last' | 'name_required' | 'order_quote_requires_at_least_one_line' | 'session_not_found' | 'session_organization_mismatch';
2195
2199
  type OrderQuoteLineErrorCode = 'line_item_number_invalid' | 'line_item_number_not_available' | 'line_quantity_invalid' | 'line_value_threshold_exceeded';
@@ -6992,6 +6996,7 @@ declare namespace io.flow.v0.models {
6992
6996
  readonly 'number': string;
6993
6997
  readonly 'name': string;
6994
6998
  readonly 'quantity': number;
6999
+ readonly 'image'?: io.flow.v0.models.OrderSummaryImage;
6995
7000
  readonly 'center'?: string;
6996
7001
  readonly 'price'?: io.flow.v0.models.Money;
6997
7002
  readonly 'discount'?: io.flow.v0.models.LocalizedLineItemDiscount;
@@ -9894,6 +9899,8 @@ declare namespace io.flow.v0.models {
9894
9899
  readonly 'delivered_duty'?: io.flow.v0.enums.DeliveredDuty;
9895
9900
  readonly 'line_items'?: io.flow.v0.models.LineItemForm[];
9896
9901
  readonly 'center_id'?: string;
9902
+ readonly 'taxes_owed'?: io.flow.v0.models.Money;
9903
+ readonly 'duties_owed'?: io.flow.v0.models.Money;
9897
9904
  }
9898
9905
 
9899
9906
  interface RatecardEstimateSummaryForm {
@@ -11038,9 +11045,9 @@ declare namespace io.flow.v0.models {
11038
11045
  readonly 'key': string;
11039
11046
  readonly 'attributes': Record<string, string>;
11040
11047
  readonly 'carrier_tracking_number': string;
11041
- readonly 'destination': io.flow.v0.models.ShippingAddress;
11048
+ readonly 'destination'?: io.flow.v0.models.ShippingAddress;
11042
11049
  readonly 'flow_tracking_number': string;
11043
- readonly 'origin': io.flow.v0.models.ShippingAddress;
11050
+ readonly 'origin'?: io.flow.v0.models.ShippingAddress;
11044
11051
  readonly 'package'?: io.flow.v0.models.ShippingLabelPackage;
11045
11052
  readonly 'service': io.flow.v0.unions.ServiceDescription;
11046
11053
  readonly 'window'?: io.flow.v0.models.DatetimeRange;
@@ -12174,8 +12181,14 @@ declare namespace io.flow.v0.models {
12174
12181
  interface TransactionMetadataCarrierCharge {
12175
12182
  readonly 'discriminator': 'carrier_charge';
12176
12183
  readonly 'reason': io.flow.v0.enums.CarrierChargeReason;
12184
+ readonly 'label_created_at': string;
12177
12185
  readonly 'carrier_id': string;
12178
12186
  readonly 'carrier_tracking_number': string;
12187
+ readonly 'outbound'?: io.flow.v0.models.TransactionMetadataCarrierChargeOutbound;
12188
+ }
12189
+
12190
+ interface TransactionMetadataCarrierChargeOutbound {
12191
+ readonly 'transaction_id': string;
12179
12192
  }
12180
12193
 
12181
12194
  interface TransactionMetadataChannel {
@@ -14217,6 +14230,7 @@ export const tradeAgreementDuty: PropTypes.Requireable<io.flow.v0.models.TradeAg
14217
14230
  export const transaction: PropTypes.Requireable<io.flow.v0.models.Transaction>;
14218
14231
  export const transactionDetailsCard: PropTypes.Requireable<io.flow.v0.models.TransactionDetailsCard>;
14219
14232
  export const transactionMetadataCarrierCharge: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataCarrierCharge>;
14233
+ export const transactionMetadataCarrierChargeOutbound: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataCarrierChargeOutbound>;
14220
14234
  export const transactionMetadataChannel: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataChannel>;
14221
14235
  export const transactionMetadataChannelCardMetadata: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataChannelCardMetadata>;
14222
14236
  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
 
@@ -6954,6 +6960,7 @@ T['io.flow.v0.enums.fee_deduction_type'] = PropTypes.oneOf([
6954
6960
  'processing',
6955
6961
  'rate_lock',
6956
6962
  'transfer',
6963
+ 'negative_balance_guarantee',
6957
6964
  ]);
6958
6965
 
6959
6966
  T['io.flow.v0.models.transaction_metadata_manual'] = PropTypes.exact({
@@ -6966,8 +6973,10 @@ T['io.flow.v0.models.transaction_metadata_manual'] = PropTypes.exact({
6966
6973
  T['io.flow.v0.models.transaction_metadata_carrier_charge'] = PropTypes.exact({
6967
6974
  discriminator: PropTypes.oneOf(['carrier_charge']).isRequired,
6968
6975
  reason: T['io.flow.v0.enums.carrier_charge_reason'].isRequired,
6976
+ label_created_at: PropTypes.string.isRequired,
6969
6977
  carrier_id: PropTypes.string.isRequired,
6970
6978
  carrier_tracking_number: PropTypes.string.isRequired,
6979
+ outbound: T['io.flow.v0.models.transaction_metadata_carrier_charge_outbound'],
6971
6980
  });
6972
6981
 
6973
6982
  T['io.flow.v0.models.transaction_metadata_trueup'] = PropTypes.exact({
@@ -9292,6 +9301,7 @@ T['io.flow.v0.enums.order_price_detail_key'] = PropTypes.oneOf([
9292
9301
  'insurance',
9293
9302
  'discount',
9294
9303
  'surcharges',
9304
+ 'tip',
9295
9305
  ]);
9296
9306
 
9297
9307
  T['io.flow.v0.models.money'] = PropTypes.exact({
@@ -10465,6 +10475,7 @@ T['io.flow.v0.enums.order_price_detail_component_key'] = PropTypes.oneOf([
10465
10475
  'emergency_situation_surcharge',
10466
10476
  'peak_surcharge',
10467
10477
  'duties_taxes_paid_surcharge',
10478
+ 'tip',
10468
10479
  ]);
10469
10480
 
10470
10481
  T['io.flow.v0.models.order_price_detail_component'] = PropTypes.exact({
@@ -10725,6 +10736,7 @@ T['io.flow.v0.models.localized_line_item'] = PropTypes.exact({
10725
10736
  number: PropTypes.string.isRequired,
10726
10737
  name: PropTypes.string.isRequired,
10727
10738
  quantity: PropTypes.number.isRequired,
10739
+ image: T['io.flow.v0.models.order_summary_image'],
10728
10740
  center: PropTypes.string,
10729
10741
  price: T['io.flow.v0.models.money'],
10730
10742
  discount: T['io.flow.v0.models.localized_line_item_discount'],
@@ -12865,6 +12877,8 @@ T['io.flow.v0.models.ratecard_estimate_form'] = PropTypes.exact({
12865
12877
  delivered_duty: T['io.flow.v0.enums.delivered_duty'],
12866
12878
  line_items: PropTypes.arrayOf(T['io.flow.v0.models.line_item_form']),
12867
12879
  center_id: PropTypes.string,
12880
+ taxes_owed: T['io.flow.v0.models.money'],
12881
+ duties_owed: T['io.flow.v0.models.money'],
12868
12882
  });
12869
12883
 
12870
12884
  T['io.flow.v0.models.order_replacement_form'] = PropTypes.exact({
@@ -12963,9 +12977,9 @@ T['io.flow.v0.models.shipping_notification'] = PropTypes.exact({
12963
12977
  key: PropTypes.string.isRequired,
12964
12978
  attributes: PropTypes.objectOf(PropTypes.string).isRequired,
12965
12979
  carrier_tracking_number: PropTypes.string.isRequired,
12966
- destination: T['io.flow.v0.models.shipping_address'].isRequired,
12980
+ destination: T['io.flow.v0.models.shipping_address'],
12967
12981
  flow_tracking_number: PropTypes.string.isRequired,
12968
- origin: T['io.flow.v0.models.shipping_address'].isRequired,
12982
+ origin: T['io.flow.v0.models.shipping_address'],
12969
12983
  'package': T['io.flow.v0.models.shipping_label_package'],
12970
12984
  service: T['io.flow.v0.unions.service_description'].isRequired,
12971
12985
  window: T['io.flow.v0.models.datetime_range'],
@@ -14644,6 +14658,10 @@ T['io.flow.shopify.external.v0.models.shopify_webhook_shop_redact'] = PropTypes.
14644
14658
  shop_domain: PropTypes.string.isRequired,
14645
14659
  });
14646
14660
 
14661
+ T['io.flow.ben.test.internal.v0.models.svitlana_test'] = PropTypes.exact({
14662
+ name: PropTypes.string.isRequired,
14663
+ });
14664
+
14647
14665
  T['io.flow.ben.test.internal.v0.models.test_form'] = PropTypes.exact({
14648
14666
  name: PropTypes.string.isRequired,
14649
14667
  });
@@ -16345,6 +16363,7 @@ export const transactionDetails = T['io.flow.v0.unions.transaction_details'];
16345
16363
  export const transactionDetailsCard = T['io.flow.v0.models.transaction_details_card'];
16346
16364
  export const transactionMetadata = T['io.flow.v0.unions.transaction_metadata'];
16347
16365
  export const transactionMetadataCarrierCharge = T['io.flow.v0.models.transaction_metadata_carrier_charge'];
16366
+ export const transactionMetadataCarrierChargeOutbound = T['io.flow.v0.models.transaction_metadata_carrier_charge_outbound'];
16348
16367
  export const transactionMetadataChannel = T['io.flow.v0.models.transaction_metadata_channel'];
16349
16368
  export const transactionMetadataChannelCardMetadata = T['io.flow.v0.models.transaction_metadata_channel_card_metadata'];
16350
16369
  export const transactionMetadataChannelCardMetadataIssuerSummary = T['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary'];