@flowio/api-prop-types 10.16.84 → 10.16.86
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 -1
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +12 -1
- package/src/api.js +18 -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.86",
|
|
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": "c096f29e80640d1f9e270b50c13e20e26b631283"
|
|
33
33
|
}
|
package/src/api.d.ts
CHANGED
|
@@ -2559,6 +2559,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2559
2559
|
type OrganizationPaymentMethodTag = 'deny';
|
|
2560
2560
|
type OrganizationStatus = 'active' | 'inactive' | 'deactivated' | 'provisioned';
|
|
2561
2561
|
type OrganizationType = 'standalone' | 'channel';
|
|
2562
|
+
type OriginLocationSource = 'public_hub_code' | 'merchant_hub_code_override' | 'shopify' | 'fallback_location';
|
|
2562
2563
|
type PackageDimensionsSource = 'provided' | 'item_dimensions_estimated' | 'dimensions_estimated' | 'default_item_dimensions_estimated';
|
|
2563
2564
|
type PaymentActionType = 'redirect' | 'redirect_get' | 'redirect_post' | 'select_payment_option' | 'use_sdk_klarna_v1' | 'use_sdk_applepay_js' | 'use_sdk_googlepay' | 'use_sdk_paypal' | 'use_sdk_stripe_v3' | 'use_sdk_adyen_v3' | 'use_sdk_adyen_v4' | 'execute_script' | 'display_inline_window';
|
|
2564
2565
|
type PaymentErrorCode = 'duplicate' | 'invalid_amount' | 'invalid_currency' | 'invalid_method' | 'invalid_order' | 'invalid_customer' | 'invalid_destination' | 'unknown';
|
|
@@ -2586,7 +2587,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2586
2587
|
type PriceDetailKey = 'item_price' | 'margins' | 'vat' | 'duty' | 'rounding' | 'adjustment';
|
|
2587
2588
|
type PriceFacetBoundary = 'min' | 'max';
|
|
2588
2589
|
type PricingLevySetting = 'included' | 'displayed' | 'ignored';
|
|
2589
|
-
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' | 'Restrict by Default' | 'Supplements' | 'Weapon' | 'Wood';
|
|
2590
|
+
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' | 'Restrict by Default' | 'Supplements' | 'Tattoo Ink And PMU' | 'Weapon' | 'Wood';
|
|
2590
2591
|
type PromotionTriggerType = 'automatic' | 'order_subtotal';
|
|
2591
2592
|
type ProvinceType = 'area' | 'city' | 'county' | 'department' | 'dependency' | 'district' | 'do_si' | 'emirate' | 'entity' | 'island' | 'municipality' | 'oblast' | 'outlying_area' | 'parish' | 'prefecture' | 'province' | 'state' | 'territory' | 'other';
|
|
2592
2593
|
type QuoteErrorCode = 'generic_error' | 'items_not_available' | 'shipping_unavailable';
|
|
@@ -3556,6 +3557,9 @@ declare namespace io.flow.v0.models {
|
|
|
3556
3557
|
readonly 'package'?: io.flow.v0.models.ShippingLabelPackage;
|
|
3557
3558
|
readonly 'origin'?: io.flow.v0.models.ShippingAddress;
|
|
3558
3559
|
readonly 'direction'?: io.flow.v0.enums.Direction;
|
|
3560
|
+
readonly 'reference_id'?: string;
|
|
3561
|
+
readonly 'origin_location_source'?: io.flow.v0.enums.OriginLocationSource;
|
|
3562
|
+
readonly 'hub_code'?: string;
|
|
3559
3563
|
}
|
|
3560
3564
|
|
|
3561
3565
|
interface BrowseOptinResponses {
|
|
@@ -5190,6 +5194,8 @@ declare namespace io.flow.v0.models {
|
|
|
5190
5194
|
readonly 'service'?: string;
|
|
5191
5195
|
readonly 'shipment_recipient'?: io.flow.v0.enums.ShipmentRecipient;
|
|
5192
5196
|
readonly 'package_dimensions_source'?: io.flow.v0.enums.PackageDimensionsSource;
|
|
5197
|
+
readonly 'origin_location_source'?: io.flow.v0.enums.OriginLocationSource;
|
|
5198
|
+
readonly 'reference_id'?: string;
|
|
5193
5199
|
}
|
|
5194
5200
|
|
|
5195
5201
|
interface DetailedShippingNotificationForm {
|
|
@@ -7242,6 +7248,9 @@ declare namespace io.flow.v0.models {
|
|
|
7242
7248
|
readonly 'delivered'?: io.flow.v0.models.LabelTrackingSummaryUpdate;
|
|
7243
7249
|
readonly 'rejected'?: io.flow.v0.models.LabelTrackingSummaryUpdate;
|
|
7244
7250
|
readonly 'returned'?: io.flow.v0.models.LabelTrackingSummaryUpdate;
|
|
7251
|
+
readonly 'crossed_border'?: io.flow.v0.models.LabelTrackingSummaryUpdate;
|
|
7252
|
+
readonly 'destroyed'?: io.flow.v0.models.LabelTrackingSummaryUpdate;
|
|
7253
|
+
readonly 'return_reversal'?: io.flow.v0.models.LabelTrackingSummaryUpdate;
|
|
7245
7254
|
}
|
|
7246
7255
|
|
|
7247
7256
|
interface LabelTrackingSummaryUpdate {
|
|
@@ -12086,6 +12095,7 @@ declare namespace io.flow.v0.models {
|
|
|
12086
12095
|
readonly 'items': io.flow.v0.models.LineItemForm[];
|
|
12087
12096
|
readonly 'center_key'?: string;
|
|
12088
12097
|
readonly 'direction'?: io.flow.v0.enums.Direction;
|
|
12098
|
+
readonly 'reference_id'?: string;
|
|
12089
12099
|
}
|
|
12090
12100
|
|
|
12091
12101
|
interface SummaryShippingNotificationForm {
|
|
@@ -13312,6 +13322,7 @@ export const orderType: PropTypes.Requireable<io.flow.v0.enums.OrderType>;
|
|
|
13312
13322
|
export const organizationPaymentMethodTag: PropTypes.Requireable<io.flow.v0.enums.OrganizationPaymentMethodTag>;
|
|
13313
13323
|
export const organizationStatus: PropTypes.Requireable<io.flow.v0.enums.OrganizationStatus>;
|
|
13314
13324
|
export const organizationType: PropTypes.Requireable<io.flow.v0.enums.OrganizationType>;
|
|
13325
|
+
export const originLocationSource: PropTypes.Requireable<io.flow.v0.enums.OriginLocationSource>;
|
|
13315
13326
|
export const packageDimensionsSource: PropTypes.Requireable<io.flow.v0.enums.PackageDimensionsSource>;
|
|
13316
13327
|
export const paymentActionType: PropTypes.Requireable<io.flow.v0.enums.PaymentActionType>;
|
|
13317
13328
|
export const paymentErrorCode: PropTypes.Requireable<io.flow.v0.enums.PaymentErrorCode>;
|
package/src/api.js
CHANGED
|
@@ -4302,6 +4302,7 @@ T['io.flow.v0.enums.product_restriction_rule'] = PropTypes.oneOf([
|
|
|
4302
4302
|
'Oversized',
|
|
4303
4303
|
'Restrict by Default',
|
|
4304
4304
|
'Supplements',
|
|
4305
|
+
'Tattoo Ink And PMU',
|
|
4305
4306
|
'Weapon',
|
|
4306
4307
|
'Wood',
|
|
4307
4308
|
]);
|
|
@@ -5519,6 +5520,9 @@ T['io.flow.v0.models.label_tracking_summary'] = PropTypes.exact({
|
|
|
5519
5520
|
delivered: T['io.flow.v0.models.label_tracking_summary_update'],
|
|
5520
5521
|
rejected: T['io.flow.v0.models.label_tracking_summary_update'],
|
|
5521
5522
|
returned: T['io.flow.v0.models.label_tracking_summary_update'],
|
|
5523
|
+
crossed_border: T['io.flow.v0.models.label_tracking_summary_update'],
|
|
5524
|
+
destroyed: T['io.flow.v0.models.label_tracking_summary_update'],
|
|
5525
|
+
return_reversal: T['io.flow.v0.models.label_tracking_summary_update'],
|
|
5522
5526
|
});
|
|
5523
5527
|
|
|
5524
5528
|
T['io.flow.v0.models.label_surcharge_detail_per_weight_unit'] = PropTypes.exact({
|
|
@@ -8535,6 +8539,13 @@ T['io.flow.v0.models.schedule'] = PropTypes.exact({
|
|
|
8535
8539
|
max_lead_time: PropTypes.number,
|
|
8536
8540
|
});
|
|
8537
8541
|
|
|
8542
|
+
T['io.flow.v0.enums.origin_location_source'] = PropTypes.oneOf([
|
|
8543
|
+
'public_hub_code',
|
|
8544
|
+
'merchant_hub_code_override',
|
|
8545
|
+
'shopify',
|
|
8546
|
+
'fallback_location',
|
|
8547
|
+
]);
|
|
8548
|
+
|
|
8538
8549
|
T['io.flow.v0.enums.direction'] = PropTypes.oneOf(['outbound', 'return']);
|
|
8539
8550
|
|
|
8540
8551
|
T['io.flow.v0.models.ratecard_form'] = PropTypes.exact({
|
|
@@ -13593,6 +13604,7 @@ T['io.flow.v0.models.summary_shipping_label_form'] = PropTypes.exact({
|
|
|
13593
13604
|
items: PropTypes.arrayOf(T['io.flow.v0.models.line_item_form']).isRequired,
|
|
13594
13605
|
center_key: PropTypes.string,
|
|
13595
13606
|
direction: T['io.flow.v0.enums.direction'],
|
|
13607
|
+
reference_id: PropTypes.string,
|
|
13596
13608
|
});
|
|
13597
13609
|
|
|
13598
13610
|
T['io.flow.v0.models.ratecard_estimate_v4'] = PropTypes.exact({
|
|
@@ -14165,6 +14177,8 @@ T['io.flow.v0.models.detailed_shipping_label_form'] = PropTypes.exact({
|
|
|
14165
14177
|
service: PropTypes.string,
|
|
14166
14178
|
shipment_recipient: T['io.flow.v0.enums.shipment_recipient'],
|
|
14167
14179
|
package_dimensions_source: T['io.flow.v0.enums.package_dimensions_source'],
|
|
14180
|
+
origin_location_source: T['io.flow.v0.enums.origin_location_source'],
|
|
14181
|
+
reference_id: PropTypes.string,
|
|
14168
14182
|
});
|
|
14169
14183
|
|
|
14170
14184
|
T['io.flow.v0.models.bridge_shipping_label_form'] = PropTypes.exact({
|
|
@@ -14174,6 +14188,9 @@ T['io.flow.v0.models.bridge_shipping_label_form'] = PropTypes.exact({
|
|
|
14174
14188
|
'package': T['io.flow.v0.models.shipping_label_package'],
|
|
14175
14189
|
origin: T['io.flow.v0.models.shipping_address'],
|
|
14176
14190
|
direction: T['io.flow.v0.enums.direction'],
|
|
14191
|
+
reference_id: PropTypes.string,
|
|
14192
|
+
origin_location_source: T['io.flow.v0.enums.origin_location_source'],
|
|
14193
|
+
hub_code: PropTypes.string,
|
|
14177
14194
|
});
|
|
14178
14195
|
|
|
14179
14196
|
T['io.flow.v0.unions.shipping_label_form'] = PropTypes.oneOfType([
|
|
@@ -16501,6 +16518,7 @@ export const organizationType = T['io.flow.v0.enums.organization_type'];
|
|
|
16501
16518
|
export const organizationUpserted = T['io.flow.v0.models.organization_upserted'];
|
|
16502
16519
|
export const organizationUpsertedV2 = T['io.flow.v0.models.organization_upserted_v2'];
|
|
16503
16520
|
export const organizationVersion = T['io.flow.v0.models.organization_version'];
|
|
16521
|
+
export const originLocationSource = T['io.flow.v0.enums.origin_location_source'];
|
|
16504
16522
|
export const originalPrices = T['io.flow.v0.models.original_prices'];
|
|
16505
16523
|
export const outboundCartonFee = T['io.flow.v0.models.outbound_carton_fee'];
|
|
16506
16524
|
export const oversizePieceSurchargeRatecardFee = T['io.flow.v0.models.oversize_piece_surcharge_ratecard_fee'];
|