@flowio/api-prop-types 10.16.83 → 10.16.85
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 +22 -2
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +22 -2
- package/src/api.js +23 -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.85",
|
|
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": "0dd960b5d48f8ac9f314c8593a3597630199ba40"
|
|
33
33
|
}
|
package/src/api.d.ts
CHANGED
|
@@ -2575,7 +2575,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2575
2575
|
type PaymentType = 'card' | 'klarna' | 'googlepay' | 'paypal' | 'applepay' | 'ideal' | 'sofort' | 'afterpay' | 'bancontact' | 'twint' | 'przelewy24' | 'mobilepay' | 'grabpay' | 'vipps' | 'kcp_creditcard';
|
|
2576
2576
|
type PayoutAttachmentType = 'transactions';
|
|
2577
2577
|
type PayoutStatusFailureCode = 'invalid_account_number' | 'account_closed' | 'could_not_process';
|
|
2578
|
-
type PendingPayoutTransactionReasonCode = 'waiting_for_full_refund' | 'waiting_for_fulfillment' | 'waiting_for_in_transit' | 'waiting_for_next_payout_date' | 'waiting_for_tracking_info' | 'waiting_for_positive_account_balance';
|
|
2578
|
+
type PendingPayoutTransactionReasonCode = 'waiting_for_full_refund' | 'waiting_for_fulfillment' | 'waiting_for_in_transit' | 'waiting_for_next_payout_date' | 'waiting_for_tracking_info' | 'waiting_for_positive_account_balance' | 'unfulfilled_amount_greater_than_negative_balance' | 'account_payment_hold';
|
|
2579
2579
|
type PermittedHttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
2580
2580
|
type PhysicalDeliverySpecialSerivce = 'cold_storage' | 'hazardous' | 'perishable';
|
|
2581
2581
|
type PostalType = 'eircode' | 'pin' | 'postal' | 'zip';
|
|
@@ -2586,7 +2586,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2586
2586
|
type PriceDetailKey = 'item_price' | 'margins' | 'vat' | 'duty' | 'rounding' | 'adjustment';
|
|
2587
2587
|
type PriceFacetBoundary = 'min' | 'max';
|
|
2588
2588
|
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';
|
|
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' | 'Tattoo Ink And PMU' | 'Weapon' | 'Wood';
|
|
2590
2590
|
type PromotionTriggerType = 'automatic' | 'order_subtotal';
|
|
2591
2591
|
type ProvinceType = 'area' | 'city' | 'county' | 'department' | 'dependency' | 'district' | 'do_si' | 'emirate' | 'entity' | 'island' | 'municipality' | 'oblast' | 'outlying_area' | 'parish' | 'prefecture' | 'province' | 'state' | 'territory' | 'other';
|
|
2592
2592
|
type QuoteErrorCode = 'generic_error' | 'items_not_available' | 'shipping_unavailable';
|
|
@@ -3556,6 +3556,8 @@ declare namespace io.flow.v0.models {
|
|
|
3556
3556
|
readonly 'package'?: io.flow.v0.models.ShippingLabelPackage;
|
|
3557
3557
|
readonly 'origin'?: io.flow.v0.models.ShippingAddress;
|
|
3558
3558
|
readonly 'direction'?: io.flow.v0.enums.Direction;
|
|
3559
|
+
readonly 'reference_id'?: string;
|
|
3560
|
+
readonly 'hub_code'?: string;
|
|
3559
3561
|
}
|
|
3560
3562
|
|
|
3561
3563
|
interface BrowseOptinResponses {
|
|
@@ -5172,6 +5174,12 @@ declare namespace io.flow.v0.models {
|
|
|
5172
5174
|
readonly 'minimum'?: number;
|
|
5173
5175
|
}
|
|
5174
5176
|
|
|
5177
|
+
interface DestinationContactDetail {
|
|
5178
|
+
readonly 'title': string;
|
|
5179
|
+
readonly 'country': string;
|
|
5180
|
+
readonly 'import_identifier': string;
|
|
5181
|
+
}
|
|
5182
|
+
|
|
5175
5183
|
interface DetailedShippingLabelForm {
|
|
5176
5184
|
readonly 'discriminator': 'detailed_shipping_label_form';
|
|
5177
5185
|
readonly 'destination': io.flow.v0.models.ShippingAddress;
|
|
@@ -5184,6 +5192,7 @@ declare namespace io.flow.v0.models {
|
|
|
5184
5192
|
readonly 'service'?: string;
|
|
5185
5193
|
readonly 'shipment_recipient'?: io.flow.v0.enums.ShipmentRecipient;
|
|
5186
5194
|
readonly 'package_dimensions_source'?: io.flow.v0.enums.PackageDimensionsSource;
|
|
5195
|
+
readonly 'reference_id'?: string;
|
|
5187
5196
|
}
|
|
5188
5197
|
|
|
5189
5198
|
interface DetailedShippingNotificationForm {
|
|
@@ -6859,6 +6868,7 @@ declare namespace io.flow.v0.models {
|
|
|
6859
6868
|
readonly 'local'?: io.flow.v0.models.Local;
|
|
6860
6869
|
readonly 'created_at'?: string;
|
|
6861
6870
|
readonly 'updated_at'?: string;
|
|
6871
|
+
readonly 'deleted_at'?: string;
|
|
6862
6872
|
}
|
|
6863
6873
|
|
|
6864
6874
|
interface ItemAttributesPatchForm {
|
|
@@ -6884,6 +6894,7 @@ declare namespace io.flow.v0.models {
|
|
|
6884
6894
|
readonly 'attributes'?: Record<string, string>;
|
|
6885
6895
|
readonly 'dimensions'?: io.flow.v0.models.Dimensions;
|
|
6886
6896
|
readonly 'images'?: io.flow.v0.models.ImageForm[];
|
|
6897
|
+
readonly 'deleted_at'?: string;
|
|
6887
6898
|
}
|
|
6888
6899
|
|
|
6889
6900
|
interface ItemFormOverlay {
|
|
@@ -6897,6 +6908,7 @@ declare namespace io.flow.v0.models {
|
|
|
6897
6908
|
readonly 'attributes'?: Record<string, string>;
|
|
6898
6909
|
readonly 'dimensions'?: io.flow.v0.models.Dimensions;
|
|
6899
6910
|
readonly 'images'?: io.flow.v0.models.ImageForm[];
|
|
6911
|
+
readonly 'deleted_at'?: string;
|
|
6900
6912
|
}
|
|
6901
6913
|
|
|
6902
6914
|
interface ItemFormOverlayForm {
|
|
@@ -6909,6 +6921,7 @@ declare namespace io.flow.v0.models {
|
|
|
6909
6921
|
readonly 'attributes'?: Record<string, string>;
|
|
6910
6922
|
readonly 'dimensions'?: io.flow.v0.models.Dimensions;
|
|
6911
6923
|
readonly 'images'?: io.flow.v0.models.ImageForm[];
|
|
6924
|
+
readonly 'deleted_at'?: string;
|
|
6912
6925
|
}
|
|
6913
6926
|
|
|
6914
6927
|
interface ItemInserted {
|
|
@@ -7231,6 +7244,10 @@ declare namespace io.flow.v0.models {
|
|
|
7231
7244
|
readonly 'in_transit': io.flow.v0.models.LabelTrackingSummaryUpdate;
|
|
7232
7245
|
readonly 'delivered'?: io.flow.v0.models.LabelTrackingSummaryUpdate;
|
|
7233
7246
|
readonly 'rejected'?: io.flow.v0.models.LabelTrackingSummaryUpdate;
|
|
7247
|
+
readonly 'returned'?: io.flow.v0.models.LabelTrackingSummaryUpdate;
|
|
7248
|
+
readonly 'crossed_border'?: io.flow.v0.models.LabelTrackingSummaryUpdate;
|
|
7249
|
+
readonly 'destroyed'?: io.flow.v0.models.LabelTrackingSummaryUpdate;
|
|
7250
|
+
readonly 'return_reversal'?: io.flow.v0.models.LabelTrackingSummaryUpdate;
|
|
7234
7251
|
}
|
|
7235
7252
|
|
|
7236
7253
|
interface LabelTrackingSummaryUpdate {
|
|
@@ -7966,6 +7983,7 @@ declare namespace io.flow.v0.models {
|
|
|
7966
7983
|
readonly 'tax_registration'?: io.flow.v0.models.TaxRegistration;
|
|
7967
7984
|
readonly 'geo'?: io.flow.v0.models.OrderGeo;
|
|
7968
7985
|
readonly 'device_details'?: io.flow.v0.unions.DeviceDetails;
|
|
7986
|
+
readonly 'destination_contact_details'?: io.flow.v0.models.DestinationContactDetail[];
|
|
7969
7987
|
}
|
|
7970
7988
|
|
|
7971
7989
|
interface OrderAddress {
|
|
@@ -12074,6 +12092,7 @@ declare namespace io.flow.v0.models {
|
|
|
12074
12092
|
readonly 'items': io.flow.v0.models.LineItemForm[];
|
|
12075
12093
|
readonly 'center_key'?: string;
|
|
12076
12094
|
readonly 'direction'?: io.flow.v0.enums.Direction;
|
|
12095
|
+
readonly 'reference_id'?: string;
|
|
12077
12096
|
}
|
|
12078
12097
|
|
|
12079
12098
|
interface SummaryShippingNotificationForm {
|
|
@@ -13744,6 +13763,7 @@ export const deliveryWindowComponentsV2: PropTypes.Requireable<io.flow.v0.models
|
|
|
13744
13763
|
export const deliveryWindowSummary: PropTypes.Requireable<io.flow.v0.models.DeliveryWindowSummary>;
|
|
13745
13764
|
export const deminimisPerItem: PropTypes.Requireable<io.flow.v0.models.DeminimisPerItem>;
|
|
13746
13765
|
export const deminimisSimple: PropTypes.Requireable<io.flow.v0.models.DeminimisSimple>;
|
|
13766
|
+
export const destinationContactDetail: PropTypes.Requireable<io.flow.v0.models.DestinationContactDetail>;
|
|
13747
13767
|
export const detailedShippingLabelForm: PropTypes.Requireable<io.flow.v0.models.DetailedShippingLabelForm>;
|
|
13748
13768
|
export const detailedShippingNotificationForm: PropTypes.Requireable<io.flow.v0.models.DetailedShippingNotificationForm>;
|
|
13749
13769
|
export const detailedTaxRegistration: PropTypes.Requireable<io.flow.v0.models.DetailedTaxRegistration>;
|
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
|
]);
|
|
@@ -5164,6 +5165,12 @@ T['io.flow.v0.models.order_rule_reference'] = PropTypes.exact({
|
|
|
5164
5165
|
key: PropTypes.string.isRequired,
|
|
5165
5166
|
});
|
|
5166
5167
|
|
|
5168
|
+
T['io.flow.v0.models.destination_contact_detail'] = PropTypes.exact({
|
|
5169
|
+
title: PropTypes.string.isRequired,
|
|
5170
|
+
country: PropTypes.string.isRequired,
|
|
5171
|
+
import_identifier: PropTypes.string.isRequired,
|
|
5172
|
+
});
|
|
5173
|
+
|
|
5167
5174
|
T['io.flow.v0.models.order_geo'] = PropTypes.exact({
|
|
5168
5175
|
ip: PropTypes.string,
|
|
5169
5176
|
country: PropTypes.string.isRequired,
|
|
@@ -5512,6 +5519,10 @@ T['io.flow.v0.models.label_tracking_summary'] = PropTypes.exact({
|
|
|
5512
5519
|
in_transit: T['io.flow.v0.models.label_tracking_summary_update'].isRequired,
|
|
5513
5520
|
delivered: T['io.flow.v0.models.label_tracking_summary_update'],
|
|
5514
5521
|
rejected: T['io.flow.v0.models.label_tracking_summary_update'],
|
|
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'],
|
|
5515
5526
|
});
|
|
5516
5527
|
|
|
5517
5528
|
T['io.flow.v0.models.label_surcharge_detail_per_weight_unit'] = PropTypes.exact({
|
|
@@ -7525,6 +7536,8 @@ T['io.flow.v0.enums.pending_payout_transaction_reason_code'] = PropTypes.oneOf([
|
|
|
7525
7536
|
'waiting_for_next_payout_date',
|
|
7526
7537
|
'waiting_for_tracking_info',
|
|
7527
7538
|
'waiting_for_positive_account_balance',
|
|
7539
|
+
'unfulfilled_amount_greater_than_negative_balance',
|
|
7540
|
+
'account_payment_hold',
|
|
7528
7541
|
]);
|
|
7529
7542
|
|
|
7530
7543
|
T['io.flow.v0.models.pending_payout_transaction_timeout'] = PropTypes.exact({
|
|
@@ -11838,6 +11851,7 @@ T['io.flow.v0.models.item_form_overlay_form'] = PropTypes.exact({
|
|
|
11838
11851
|
attributes: PropTypes.objectOf(PropTypes.string),
|
|
11839
11852
|
dimensions: T['io.flow.v0.models.dimensions'],
|
|
11840
11853
|
images: PropTypes.arrayOf(T['io.flow.v0.models.image_form']),
|
|
11854
|
+
deleted_at: PropTypes.string,
|
|
11841
11855
|
});
|
|
11842
11856
|
|
|
11843
11857
|
T['io.flow.v0.models.item_form_overlay'] = PropTypes.exact({
|
|
@@ -11851,6 +11865,7 @@ T['io.flow.v0.models.item_form_overlay'] = PropTypes.exact({
|
|
|
11851
11865
|
attributes: PropTypes.objectOf(PropTypes.string),
|
|
11852
11866
|
dimensions: T['io.flow.v0.models.dimensions'],
|
|
11853
11867
|
images: PropTypes.arrayOf(T['io.flow.v0.models.image_form']),
|
|
11868
|
+
deleted_at: PropTypes.string,
|
|
11854
11869
|
});
|
|
11855
11870
|
|
|
11856
11871
|
T['io.flow.v0.models.item_form'] = PropTypes.exact({
|
|
@@ -11864,6 +11879,7 @@ T['io.flow.v0.models.item_form'] = PropTypes.exact({
|
|
|
11864
11879
|
attributes: PropTypes.objectOf(PropTypes.string),
|
|
11865
11880
|
dimensions: T['io.flow.v0.models.dimensions'],
|
|
11866
11881
|
images: PropTypes.arrayOf(T['io.flow.v0.models.image_form']),
|
|
11882
|
+
deleted_at: PropTypes.string,
|
|
11867
11883
|
});
|
|
11868
11884
|
|
|
11869
11885
|
T['io.flow.v0.models.packaging'] = PropTypes.exact({
|
|
@@ -11886,6 +11902,7 @@ T['io.flow.v0.models.item'] = PropTypes.exact({
|
|
|
11886
11902
|
local: T['io.flow.v0.models.local'],
|
|
11887
11903
|
created_at: PropTypes.string,
|
|
11888
11904
|
updated_at: PropTypes.string,
|
|
11905
|
+
deleted_at: PropTypes.string,
|
|
11889
11906
|
});
|
|
11890
11907
|
|
|
11891
11908
|
T['io.flow.v0.models.subcatalog_item'] = PropTypes.exact({
|
|
@@ -13123,6 +13140,7 @@ T['io.flow.v0.models.order'] = PropTypes.exact({
|
|
|
13123
13140
|
tax_registration: T['io.flow.v0.models.tax_registration'],
|
|
13124
13141
|
geo: T['io.flow.v0.models.order_geo'],
|
|
13125
13142
|
device_details: T['io.flow.v0.unions.device_details'],
|
|
13143
|
+
destination_contact_details: PropTypes.arrayOf(T['io.flow.v0.models.destination_contact_detail']),
|
|
13126
13144
|
});
|
|
13127
13145
|
|
|
13128
13146
|
T['io.flow.v0.models.shopify_cart_conversion_flow_order'] = PropTypes.exact({
|
|
@@ -13579,6 +13597,7 @@ T['io.flow.v0.models.summary_shipping_label_form'] = PropTypes.exact({
|
|
|
13579
13597
|
items: PropTypes.arrayOf(T['io.flow.v0.models.line_item_form']).isRequired,
|
|
13580
13598
|
center_key: PropTypes.string,
|
|
13581
13599
|
direction: T['io.flow.v0.enums.direction'],
|
|
13600
|
+
reference_id: PropTypes.string,
|
|
13582
13601
|
});
|
|
13583
13602
|
|
|
13584
13603
|
T['io.flow.v0.models.ratecard_estimate_v4'] = PropTypes.exact({
|
|
@@ -14151,6 +14170,7 @@ T['io.flow.v0.models.detailed_shipping_label_form'] = PropTypes.exact({
|
|
|
14151
14170
|
service: PropTypes.string,
|
|
14152
14171
|
shipment_recipient: T['io.flow.v0.enums.shipment_recipient'],
|
|
14153
14172
|
package_dimensions_source: T['io.flow.v0.enums.package_dimensions_source'],
|
|
14173
|
+
reference_id: PropTypes.string,
|
|
14154
14174
|
});
|
|
14155
14175
|
|
|
14156
14176
|
T['io.flow.v0.models.bridge_shipping_label_form'] = PropTypes.exact({
|
|
@@ -14160,6 +14180,8 @@ T['io.flow.v0.models.bridge_shipping_label_form'] = PropTypes.exact({
|
|
|
14160
14180
|
'package': T['io.flow.v0.models.shipping_label_package'],
|
|
14161
14181
|
origin: T['io.flow.v0.models.shipping_address'],
|
|
14162
14182
|
direction: T['io.flow.v0.enums.direction'],
|
|
14183
|
+
reference_id: PropTypes.string,
|
|
14184
|
+
hub_code: PropTypes.string,
|
|
14163
14185
|
});
|
|
14164
14186
|
|
|
14165
14187
|
T['io.flow.v0.unions.shipping_label_form'] = PropTypes.oneOfType([
|
|
@@ -15852,6 +15874,7 @@ export const deliveryWindowSummary = T['io.flow.v0.models.delivery_window_summar
|
|
|
15852
15874
|
export const deminimis = T['io.flow.v0.unions.deminimis'];
|
|
15853
15875
|
export const deminimisPerItem = T['io.flow.v0.models.deminimis_per_item'];
|
|
15854
15876
|
export const deminimisSimple = T['io.flow.v0.models.deminimis_simple'];
|
|
15877
|
+
export const destinationContactDetail = T['io.flow.v0.models.destination_contact_detail'];
|
|
15855
15878
|
export const detailedShippingLabelForm = T['io.flow.v0.models.detailed_shipping_label_form'];
|
|
15856
15879
|
export const detailedShippingNotificationForm = T['io.flow.v0.models.detailed_shipping_notification_form'];
|
|
15857
15880
|
export const detailedTaxRegistration = T['io.flow.v0.models.detailed_tax_registration'];
|