@flowio/api-prop-types 10.16.104 → 10.16.106
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 +34 -3
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +34 -3
- package/src/api.js +47 -6
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.106",
|
|
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": "e6ab4a371f4a5b27785d522dc32505277757198d"
|
|
33
33
|
}
|
package/src/api.d.ts
CHANGED
|
@@ -2487,6 +2487,7 @@ declare namespace io.flow.channel.internal.v0.enums {
|
|
|
2487
2487
|
type ChannelOrderAcceptanceNextActionFrom = 'cx_team' | 'core_team' | 'core_team_investigate' | 'mex_team' | 'payments_team' | 'tc_team' | 'logistics_team';
|
|
2488
2488
|
type ChannelOrderAcceptanceRejectionReason = 'unsupported_origin_country' | 'unsupported_destination_country' | 'domestic_order' | 'order_contains_gift_card' | 'order_contains_restricted_goods' | 'missing_order_information' | 'missing_classification_information' | 'unsupported_payment_information' | 'unsupported_shop_currency' | 'unsupported_free_order' | 'extracting_distribution_info_failed' | 'shipping_estimation_failed' | 'payment_authorization_failed' | 'unsupported_subsidized_order' | 'unsupported_virtual_goods' | 'non_matching_currencies' | 'unsupported_order_edit' | 'order_missing';
|
|
2489
2489
|
type ChannelOrderAcceptanceStatus = 'accepted' | 'rejected' | 'review' | 'edit_review' | 'edit_accepted';
|
|
2490
|
+
type ChannelService = 'payment' | 'duty_tax_calculator' | 'sellability';
|
|
2490
2491
|
type OrderPaymentSourceType = 'globale' | 'third_party';
|
|
2491
2492
|
}
|
|
2492
2493
|
|
|
@@ -2561,6 +2562,35 @@ declare namespace io.flow.channel.internal.v0.models {
|
|
|
2561
2562
|
readonly 'rejection_reason'?: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason;
|
|
2562
2563
|
}
|
|
2563
2564
|
|
|
2565
|
+
interface ChannelOrganizationDomain {
|
|
2566
|
+
readonly 'internal': string;
|
|
2567
|
+
readonly 'public': string;
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
interface ChannelOrganizationInstallation {
|
|
2571
|
+
readonly 'organization': io.flow.channel.v0.models.ChannelOrganization;
|
|
2572
|
+
readonly 'tokens': io.flow.channel.internal.v0.models.ChannelOrganizationToken[];
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
interface ChannelOrganizationInstallationPostForm {
|
|
2576
|
+
readonly 'form': io.flow.channel.v0.models.ChannelOrganizationForm;
|
|
2577
|
+
readonly 'metadata': io.flow.channel.internal.v0.models.ChannelOrganizationMetadata;
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2580
|
+
interface ChannelOrganizationMetadata {
|
|
2581
|
+
readonly 'domain': io.flow.channel.internal.v0.models.ChannelOrganizationDomain;
|
|
2582
|
+
readonly 'token': string;
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
interface ChannelOrganizationToken {
|
|
2586
|
+
readonly 'token': io.flow.channel.internal.v0.models.ChannelOrganizationTokenBody;
|
|
2587
|
+
readonly 'service': io.flow.channel.internal.v0.enums.ChannelService;
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
interface ChannelOrganizationTokenBody {
|
|
2591
|
+
readonly 'cleartext': string;
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2564
2594
|
interface FlowChannelOrganization {
|
|
2565
2595
|
readonly 'placeholder'?: string;
|
|
2566
2596
|
}
|
|
@@ -3443,9 +3473,9 @@ declare namespace io.flow.v0.enums {
|
|
|
3443
3473
|
type ExperienceStatus = 'draft' | 'active' | 'archiving' | 'archived';
|
|
3444
3474
|
type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
|
|
3445
3475
|
type ExporterOfRecord = 'flow' | 'organization';
|
|
3446
|
-
type FeeDeductionType = 'duty_guarantee' | 'mor' | 'fraud' | 'fx' | 'processing' | 'rate_lock' | 'transfer' | 'negative_balance_guarantee' | 'sp';
|
|
3476
|
+
type FeeDeductionType = 'duty_guarantee' | 'mor' | 'fraud' | 'tax' | 'duty' | 'tax_and_duty' | 'product' | 'tax_and_duty_fx_diff' | 'fx' | 'processing' | 'rate_lock' | 'transfer' | 'negative_balance_guarantee' | 'sp';
|
|
3447
3477
|
type FlowBehavior = 'view_consumer_data';
|
|
3448
|
-
type FlowEntity = 'flow-usa' | 'flow-irl' | 'flow-can' | 'ge-usa';
|
|
3478
|
+
type FlowEntity = 'flow-usa' | 'flow-irl' | 'flow-can' | 'ge-usa' | 'ge-can' | 'ge-gbr' | 'ge-irl';
|
|
3449
3479
|
type FlowRole = 'organization_admin' | 'organization_merchant' | 'organization_customer_service' | 'organization_fulfillment' | 'organization_marketing' | 'organization_finance' | 'organization_classification' | 'flow_operations' | 'channel_admin' | 'channel_organization_admin';
|
|
3450
3480
|
type FraudEmailRuleDecision = 'approved' | 'declined';
|
|
3451
3481
|
type FraudLiability = 'flow' | 'organization';
|
|
@@ -3590,7 +3620,7 @@ declare namespace io.flow.v0.enums {
|
|
|
3590
3620
|
type TrackingStatus = 'label_created' | 'pending' | 'info_received' | 'picked_up' | 'in_transit' | 'out_for_delivery' | 'attempt_fail' | 'delivered' | 'exception' | 'returned' | 'expired' | 'unknown' | 'unmapped';
|
|
3591
3621
|
type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
|
|
3592
3622
|
type TradeAgreementStatus = 'supported' | 'not_supported';
|
|
3593
|
-
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'trueup' | 'trueup_base' | 'trueup_surcharge' | 'carrier_charge' | 'carrier_charge_revenue_share' | 'platform_fee' | 'tax' | 'duty' | 'withholding' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'channel_billed' | 'order_service' | 'virtual_card_capture' | 'virtual_card_refund' | 'failed_payout' | 'tax_refund' | 'duty_refund' | 'non_l4l_tax_duty_fx' | 'merchant_payout' | 'merchant_refund' | 'ge_revenue_share';
|
|
3623
|
+
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'trueup' | 'trueup_base' | 'trueup_surcharge' | 'carrier_charge' | 'carrier_charge_revenue_share' | 'platform_fee' | 'tax' | 'duty' | 'withholding' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'channel_billed' | 'order_service' | 'virtual_card_capture' | 'virtual_card_refund' | 'failed_payout' | 'tax_refund' | 'duty_refund' | 'non_l4l_tax_duty_fx' | 'merchant_payout' | 'merchant_refund' | 'ge_revenue_share' | 'merchant_fee';
|
|
3594
3624
|
type TransferStatus = 'succeeded' | 'canceled';
|
|
3595
3625
|
type TransferType = 'payout_to_merchant' | 'disputed_amount_to_merchant' | 'duties_and_taxes_adjustment_to_merchant' | 'disputed_amount_from_merchant' | 'duties_and_taxes_adjustment_from_merchant' | 'refund_from_merchant';
|
|
3596
3626
|
type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl' | 'ups';
|
|
@@ -5940,6 +5970,7 @@ declare namespace io.flow.v0.models {
|
|
|
5940
5970
|
readonly 'delivered_duty': io.flow.v0.enums.DeliveredDuty;
|
|
5941
5971
|
readonly 'price': io.flow.v0.models.PriceWithBaseAndDetails;
|
|
5942
5972
|
readonly 'service': io.flow.v0.models.ServiceSummary;
|
|
5973
|
+
readonly 'actual_service'?: io.flow.v0.models.ServiceSummary;
|
|
5943
5974
|
readonly 'tier': io.flow.v0.models.TierSummary;
|
|
5944
5975
|
readonly 'window': io.flow.v0.models.DeliveryWindow;
|
|
5945
5976
|
readonly 'rule_outcome'?: io.flow.v0.unions.TierRuleOutcome;
|
package/src/api.js
CHANGED
|
@@ -358,6 +358,29 @@ T['io.flow.common.v0.models.order_customer'] = PropTypes.exact({
|
|
|
358
358
|
invoice: T['io.flow.common.v0.models.customer_invoice'],
|
|
359
359
|
});
|
|
360
360
|
|
|
361
|
+
T['io.flow.error.v0.enums.generic_error_code'] = PropTypes.oneOf(['generic_error', 'client_error', 'server_error']);
|
|
362
|
+
|
|
363
|
+
T['io.flow.error.v0.models.generic_error'] = PropTypes.exact({
|
|
364
|
+
code: T['io.flow.error.v0.enums.generic_error_code'].isRequired,
|
|
365
|
+
messages: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
T['io.flow.channel.internal.v0.models.channel_organization_domain'] = PropTypes.exact({
|
|
369
|
+
internal: PropTypes.string.isRequired,
|
|
370
|
+
'public': PropTypes.string.isRequired,
|
|
371
|
+
});
|
|
372
|
+
|
|
373
|
+
T['io.flow.channel.internal.v0.models.channel_organization_metadata'] = PropTypes.exact({
|
|
374
|
+
domain: T['io.flow.channel.internal.v0.models.channel_organization_domain'].isRequired,
|
|
375
|
+
token: PropTypes.string.isRequired,
|
|
376
|
+
});
|
|
377
|
+
|
|
378
|
+
T['io.flow.channel.internal.v0.enums.channel_service'] = PropTypes.oneOf(['payment', 'duty_tax_calculator', 'sellability']);
|
|
379
|
+
|
|
380
|
+
T['io.flow.channel.internal.v0.models.channel_organization_token_body'] = PropTypes.exact({
|
|
381
|
+
cleartext: PropTypes.string.isRequired,
|
|
382
|
+
});
|
|
383
|
+
|
|
361
384
|
T['io.flow.common.v0.models.organization_defaults'] = PropTypes.exact({
|
|
362
385
|
country: PropTypes.string.isRequired,
|
|
363
386
|
base_currency: PropTypes.string.isRequired,
|
|
@@ -381,6 +404,11 @@ T['io.flow.channel.v0.models.channel_organization_form'] = PropTypes.exact({
|
|
|
381
404
|
attributes: PropTypes.objectOf(PropTypes.string),
|
|
382
405
|
});
|
|
383
406
|
|
|
407
|
+
T['io.flow.channel.internal.v0.models.channel_organization_installation_post_form'] = PropTypes.exact({
|
|
408
|
+
form: T['io.flow.channel.v0.models.channel_organization_form'].isRequired,
|
|
409
|
+
metadata: T['io.flow.channel.internal.v0.models.channel_organization_metadata'].isRequired,
|
|
410
|
+
});
|
|
411
|
+
|
|
384
412
|
T['io.flow.common.v0.models.organization_reference'] = PropTypes.exact({
|
|
385
413
|
discriminator: PropTypes.oneOf(['organization_reference']).isRequired,
|
|
386
414
|
id: PropTypes.string.isRequired,
|
|
@@ -400,11 +428,9 @@ T['io.flow.common.v0.models.merchant_of_record_entity'] = PropTypes.exact({
|
|
|
400
428
|
email: PropTypes.string,
|
|
401
429
|
});
|
|
402
430
|
|
|
403
|
-
T['io.flow.
|
|
404
|
-
|
|
405
|
-
T['io.flow.
|
|
406
|
-
code: T['io.flow.error.v0.enums.generic_error_code'].isRequired,
|
|
407
|
-
messages: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
431
|
+
T['io.flow.channel.internal.v0.models.channel_organization_token'] = PropTypes.exact({
|
|
432
|
+
token: T['io.flow.channel.internal.v0.models.channel_organization_token_body'].isRequired,
|
|
433
|
+
service: T['io.flow.channel.internal.v0.enums.channel_service'].isRequired,
|
|
408
434
|
});
|
|
409
435
|
|
|
410
436
|
T['io.flow.channel.internal.v0.enums.channel_order_acceptance_failure_reason_code'] = PropTypes.oneOf(['channel_order_mor_invalid', 'channel_order_does_not_exist']);
|
|
@@ -505,6 +531,11 @@ T['io.flow.channel.v0.models.channel_organization'] = PropTypes.exact({
|
|
|
505
531
|
attributes: PropTypes.objectOf(PropTypes.string),
|
|
506
532
|
});
|
|
507
533
|
|
|
534
|
+
T['io.flow.channel.internal.v0.models.channel_organization_installation'] = PropTypes.exact({
|
|
535
|
+
organization: T['io.flow.channel.v0.models.channel_organization'].isRequired,
|
|
536
|
+
tokens: PropTypes.arrayOf(T['io.flow.channel.internal.v0.models.channel_organization_token']).isRequired,
|
|
537
|
+
});
|
|
538
|
+
|
|
508
539
|
T['io.flow.channel.internal.v0.models.channel_membership'] = PropTypes.exact({
|
|
509
540
|
id: PropTypes.string.isRequired,
|
|
510
541
|
channel: T['io.flow.common.v0.models.channel_reference'].isRequired,
|
|
@@ -4986,7 +5017,10 @@ T['io.flow.v0.models.physical_delivery_preferred_service'] = PropTypes.exact({
|
|
|
4986
5017
|
selection_stratey: T['io.flow.v0.enums.preferred_service_selection_strategy'].isRequired,
|
|
4987
5018
|
});
|
|
4988
5019
|
|
|
4989
|
-
T['io.flow.v0.enums.flow_entity'] = PropTypes.oneOf(
|
|
5020
|
+
T['io.flow.v0.enums.flow_entity'] = PropTypes.oneOf(
|
|
5021
|
+
['flow-usa', 'flow-irl', 'flow-can', 'ge-usa', 'ge-can', 'ge-gbr', 'ge-irl'],
|
|
5022
|
+
);
|
|
5023
|
+
|
|
4990
5024
|
T['io.flow.v0.enums.goods_supply'] = PropTypes.oneOf(['export', 'intra_community', 'local']);
|
|
4991
5025
|
T['io.flow.v0.enums.physical_delivery_special_serivce'] = PropTypes.oneOf(['cold_storage', 'hazardous', 'perishable']);
|
|
4992
5026
|
T['io.flow.v0.enums.fulfillment_routing'] = PropTypes.oneOf(['fulfilled_from_center', 'fulfillment_service']);
|
|
@@ -7839,6 +7873,11 @@ T['io.flow.v0.enums.fee_deduction_type'] = PropTypes.oneOf([
|
|
|
7839
7873
|
'duty_guarantee',
|
|
7840
7874
|
'mor',
|
|
7841
7875
|
'fraud',
|
|
7876
|
+
'tax',
|
|
7877
|
+
'duty',
|
|
7878
|
+
'tax_and_duty',
|
|
7879
|
+
'product',
|
|
7880
|
+
'tax_and_duty_fx_diff',
|
|
7842
7881
|
'fx',
|
|
7843
7882
|
'processing',
|
|
7844
7883
|
'rate_lock',
|
|
@@ -7962,6 +8001,7 @@ T['io.flow.v0.enums.transaction_source'] = PropTypes.oneOf([
|
|
|
7962
8001
|
'merchant_payout',
|
|
7963
8002
|
'merchant_refund',
|
|
7964
8003
|
'ge_revenue_share',
|
|
8004
|
+
'merchant_fee',
|
|
7965
8005
|
]);
|
|
7966
8006
|
|
|
7967
8007
|
T['io.flow.v0.models.parent_transaction_summary'] = PropTypes.exact({
|
|
@@ -13332,6 +13372,7 @@ T['io.flow.v0.models.delivery_option'] = PropTypes.exact({
|
|
|
13332
13372
|
delivered_duty: T['io.flow.v0.enums.delivered_duty'].isRequired,
|
|
13333
13373
|
price: T['io.flow.v0.models.price_with_base_and_details'].isRequired,
|
|
13334
13374
|
service: T['io.flow.v0.models.service_summary'].isRequired,
|
|
13375
|
+
actual_service: T['io.flow.v0.models.service_summary'],
|
|
13335
13376
|
tier: T['io.flow.v0.models.tier_summary'].isRequired,
|
|
13336
13377
|
window: T['io.flow.v0.models.delivery_window'].isRequired,
|
|
13337
13378
|
rule_outcome: T['io.flow.v0.unions.tier_rule_outcome'],
|