@flowio/api-prop-types 10.16.69 → 10.16.71
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 +32 -1
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +32 -1
- package/src/api.js +33 -1
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.71",
|
|
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": "5fe142f9c051bfc6d8266e2debef0a86210b1e43"
|
|
33
33
|
}
|
package/src/api.d.ts
CHANGED
|
@@ -2282,7 +2282,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2282
2282
|
type TrackingStatus = 'label_created' | 'pending' | 'info_received' | 'picked_up' | 'in_transit' | 'out_for_delivery' | 'attempt_fail' | 'delivered' | 'exception' | 'returned' | 'expired';
|
|
2283
2283
|
type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
|
|
2284
2284
|
type TradeAgreementStatus = 'supported' | 'not_supported';
|
|
2285
|
-
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'trueup' | 'carrier_charge' | '
|
|
2285
|
+
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'trueup' | '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';
|
|
2286
2286
|
type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl';
|
|
2287
2287
|
type TrueupSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
|
|
2288
2288
|
type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
|
|
@@ -2335,6 +2335,10 @@ declare namespace io.flow.v0.models {
|
|
|
2335
2335
|
readonly 'status': io.flow.v0.enums.AbandonedOrderSettingStatus;
|
|
2336
2336
|
}
|
|
2337
2337
|
|
|
2338
|
+
interface AccountIdReference {
|
|
2339
|
+
readonly 'id': string;
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2338
2342
|
interface AccountOrdersExportType {
|
|
2339
2343
|
readonly 'discriminator': 'account_orders_export_type';
|
|
2340
2344
|
readonly 'statement_id'?: string;
|
|
@@ -3940,6 +3944,7 @@ declare namespace io.flow.v0.models {
|
|
|
3940
3944
|
interface ChannelTransaction {
|
|
3941
3945
|
readonly 'statement'?: io.flow.v0.models.BillingChannelStatementReference;
|
|
3942
3946
|
readonly 'id': string;
|
|
3947
|
+
readonly 'account': io.flow.v0.models.AccountIdReference;
|
|
3943
3948
|
readonly 'metadata'?: io.flow.v0.unions.TransactionMetadata;
|
|
3944
3949
|
readonly 'order'?: io.flow.v0.models.BillingChannelOrderSummary;
|
|
3945
3950
|
readonly 'payment_request'?: io.flow.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -5642,6 +5647,26 @@ declare namespace io.flow.v0.models {
|
|
|
5642
5647
|
readonly 'status': io.flow.v0.enums.SubcatalogItemStatus;
|
|
5643
5648
|
}
|
|
5644
5649
|
|
|
5650
|
+
interface FlowTransaction {
|
|
5651
|
+
readonly 'statement'?: io.flow.v0.models.BillingChannelStatementReference;
|
|
5652
|
+
readonly 'id': string;
|
|
5653
|
+
readonly 'account': io.flow.v0.models.AccountIdReference;
|
|
5654
|
+
readonly 'metadata'?: io.flow.v0.unions.TransactionMetadata;
|
|
5655
|
+
readonly 'order'?: io.flow.v0.models.BillingChannelOrderSummary;
|
|
5656
|
+
readonly 'payment_request'?: io.flow.v0.models.BillingChannelPaymentRequestReference;
|
|
5657
|
+
readonly 'currency': string;
|
|
5658
|
+
readonly 'source': io.flow.v0.enums.TransactionSource;
|
|
5659
|
+
readonly 'parent'?: io.flow.v0.models.ParentTransactionSummary;
|
|
5660
|
+
readonly 'gross': number;
|
|
5661
|
+
readonly 'fees': io.flow.v0.models.FeeDeduction[];
|
|
5662
|
+
readonly 'withholdings': io.flow.v0.models.WithholdingDeduction[];
|
|
5663
|
+
readonly 'discounts': io.flow.v0.models.BillingDiscount[];
|
|
5664
|
+
readonly 'net': number;
|
|
5665
|
+
readonly 'identifiers': Record<string, string>;
|
|
5666
|
+
readonly 'created_at': string;
|
|
5667
|
+
readonly 'updated_at': string;
|
|
5668
|
+
}
|
|
5669
|
+
|
|
5645
5670
|
interface FraudEmailRule {
|
|
5646
5671
|
readonly 'id'?: string;
|
|
5647
5672
|
readonly 'email': string;
|
|
@@ -7274,6 +7299,7 @@ declare namespace io.flow.v0.models {
|
|
|
7274
7299
|
readonly 'discriminator': 'merchant_rejected';
|
|
7275
7300
|
readonly 'reason': io.flow.v0.enums.MerchantRejectedReason;
|
|
7276
7301
|
readonly 'description'?: string;
|
|
7302
|
+
readonly 'deactivate_at'?: string;
|
|
7277
7303
|
}
|
|
7278
7304
|
|
|
7279
7305
|
interface Money {
|
|
@@ -9284,6 +9310,7 @@ declare namespace io.flow.v0.models {
|
|
|
9284
9310
|
|
|
9285
9311
|
interface PayoutTransaction {
|
|
9286
9312
|
readonly 'id': string;
|
|
9313
|
+
readonly 'account': io.flow.v0.models.AccountIdReference;
|
|
9287
9314
|
readonly 'metadata'?: io.flow.v0.unions.TransactionMetadata;
|
|
9288
9315
|
readonly 'order'?: io.flow.v0.models.BillingChannelOrderSummary;
|
|
9289
9316
|
readonly 'payment_request'?: io.flow.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -12156,6 +12183,7 @@ declare namespace io.flow.v0.models {
|
|
|
12156
12183
|
interface Transaction {
|
|
12157
12184
|
readonly 'statement'?: io.flow.v0.models.BillingChannelStatementReference;
|
|
12158
12185
|
readonly 'id': string;
|
|
12186
|
+
readonly 'account': io.flow.v0.models.AccountIdReference;
|
|
12159
12187
|
readonly 'metadata'?: io.flow.v0.unions.TransactionMetadata;
|
|
12160
12188
|
readonly 'order'?: io.flow.v0.models.BillingChannelOrderSummary;
|
|
12161
12189
|
readonly 'payment_request'?: io.flow.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -12185,6 +12213,7 @@ declare namespace io.flow.v0.models {
|
|
|
12185
12213
|
readonly 'label_created_at': string;
|
|
12186
12214
|
readonly 'carrier_id': string;
|
|
12187
12215
|
readonly 'carrier_tracking_number': string;
|
|
12216
|
+
readonly 'revenue_share_percentage': number;
|
|
12188
12217
|
readonly 'outbound'?: io.flow.v0.models.TransactionMetadataCarrierChargeOutbound;
|
|
12189
12218
|
}
|
|
12190
12219
|
|
|
@@ -12866,6 +12895,7 @@ export const abandonedOrderPromotion: PropTypes.Requireable<io.flow.v0.models.Ab
|
|
|
12866
12895
|
export const abandonedOrderPromotionDiscountDetails: PropTypes.Requireable<io.flow.v0.models.AbandonedOrderPromotionDiscountDetails>;
|
|
12867
12896
|
export const abandonedOrderPromotionForm: PropTypes.Requireable<io.flow.v0.models.AbandonedOrderPromotionForm>;
|
|
12868
12897
|
export const abandonedOrderSettings: PropTypes.Requireable<io.flow.v0.models.AbandonedOrderSettings>;
|
|
12898
|
+
export const accountIdReference: PropTypes.Requireable<io.flow.v0.models.AccountIdReference>;
|
|
12869
12899
|
export const accountOrdersExportType: PropTypes.Requireable<io.flow.v0.models.AccountOrdersExportType>;
|
|
12870
12900
|
export const accountReference: PropTypes.Requireable<io.flow.v0.models.AccountReference>;
|
|
12871
12901
|
export const accountTransactionsExportType: PropTypes.Requireable<io.flow.v0.models.AccountTransactionsExportType>;
|
|
@@ -13329,6 +13359,7 @@ export const flatRate: PropTypes.Requireable<io.flow.v0.models.FlatRate>;
|
|
|
13329
13359
|
export const flatRateForm: PropTypes.Requireable<io.flow.v0.models.FlatRateForm>;
|
|
13330
13360
|
export const flowCenterReference: PropTypes.Requireable<io.flow.v0.models.FlowCenterReference>;
|
|
13331
13361
|
export const flowItemIndexMetadata: PropTypes.Requireable<io.flow.v0.models.FlowItemIndexMetadata>;
|
|
13362
|
+
export const flowTransaction: PropTypes.Requireable<io.flow.v0.models.FlowTransaction>;
|
|
13332
13363
|
export const fraudEmailRule: PropTypes.Requireable<io.flow.v0.models.FraudEmailRule>;
|
|
13333
13364
|
export const fraudEmailRuleForm: PropTypes.Requireable<io.flow.v0.models.FraudEmailRuleForm>;
|
|
13334
13365
|
export const fraudFlowOrderReference: PropTypes.Requireable<io.flow.v0.models.FraudFlowOrderReference>;
|
package/src/api.js
CHANGED
|
@@ -4810,6 +4810,7 @@ T['io.flow.v0.models.merchant_rejected'] = PropTypes.exact({
|
|
|
4810
4810
|
discriminator: PropTypes.oneOf(['merchant_rejected']).isRequired,
|
|
4811
4811
|
reason: T['io.flow.v0.enums.merchant_rejected_reason'].isRequired,
|
|
4812
4812
|
description: PropTypes.string,
|
|
4813
|
+
deactivate_at: PropTypes.string,
|
|
4813
4814
|
});
|
|
4814
4815
|
|
|
4815
4816
|
T['io.flow.v0.unions.onboarding_state'] = PropTypes.oneOfType([
|
|
@@ -6977,6 +6978,7 @@ T['io.flow.v0.models.transaction_metadata_carrier_charge'] = PropTypes.exact({
|
|
|
6977
6978
|
label_created_at: PropTypes.string.isRequired,
|
|
6978
6979
|
carrier_id: PropTypes.string.isRequired,
|
|
6979
6980
|
carrier_tracking_number: PropTypes.string.isRequired,
|
|
6981
|
+
revenue_share_percentage: PropTypes.number.isRequired,
|
|
6980
6982
|
outbound: T['io.flow.v0.models.transaction_metadata_carrier_charge_outbound'],
|
|
6981
6983
|
});
|
|
6982
6984
|
|
|
@@ -7019,9 +7021,10 @@ T['io.flow.v0.enums.transaction_source'] = PropTypes.oneOf([
|
|
|
7019
7021
|
'reversal',
|
|
7020
7022
|
'shipping_label',
|
|
7021
7023
|
'shipping_label_service',
|
|
7024
|
+
'shipping_label_revenue_share',
|
|
7022
7025
|
'trueup',
|
|
7023
7026
|
'carrier_charge',
|
|
7024
|
-
'
|
|
7027
|
+
'carrier_charge_revenue_share',
|
|
7025
7028
|
'platform_fee',
|
|
7026
7029
|
'tax',
|
|
7027
7030
|
'duty',
|
|
@@ -7045,6 +7048,10 @@ T['io.flow.v0.models.billing_channel_payment_request_reference'] = PropTypes.exa
|
|
|
7045
7048
|
reference: PropTypes.string,
|
|
7046
7049
|
});
|
|
7047
7050
|
|
|
7051
|
+
T['io.flow.v0.models.account_id_reference'] = PropTypes.exact({
|
|
7052
|
+
id: PropTypes.string.isRequired,
|
|
7053
|
+
});
|
|
7054
|
+
|
|
7048
7055
|
T['io.flow.v0.models.billing_channel_statement_reference'] = PropTypes.exact({
|
|
7049
7056
|
id: PropTypes.string.isRequired,
|
|
7050
7057
|
});
|
|
@@ -8129,6 +8136,7 @@ T['io.flow.v0.models.billing_channel_order_summary'] = PropTypes.exact({
|
|
|
8129
8136
|
|
|
8130
8137
|
T['io.flow.v0.models.payout_transaction'] = PropTypes.exact({
|
|
8131
8138
|
id: PropTypes.string.isRequired,
|
|
8139
|
+
account: T['io.flow.v0.models.account_id_reference'].isRequired,
|
|
8132
8140
|
metadata: T['io.flow.v0.unions.transaction_metadata'],
|
|
8133
8141
|
order: T['io.flow.v0.models.billing_channel_order_summary'],
|
|
8134
8142
|
payment_request: T['io.flow.v0.models.billing_channel_payment_request_reference'],
|
|
@@ -8148,6 +8156,7 @@ T['io.flow.v0.models.payout_transaction'] = PropTypes.exact({
|
|
|
8148
8156
|
T['io.flow.v0.models.transaction'] = PropTypes.exact({
|
|
8149
8157
|
statement: T['io.flow.v0.models.billing_channel_statement_reference'],
|
|
8150
8158
|
id: PropTypes.string.isRequired,
|
|
8159
|
+
account: T['io.flow.v0.models.account_id_reference'].isRequired,
|
|
8151
8160
|
metadata: T['io.flow.v0.unions.transaction_metadata'],
|
|
8152
8161
|
order: T['io.flow.v0.models.billing_channel_order_summary'],
|
|
8153
8162
|
payment_request: T['io.flow.v0.models.billing_channel_payment_request_reference'],
|
|
@@ -8180,9 +8189,30 @@ T['io.flow.v0.models.organization_transaction_upserted'] = PropTypes.exact({
|
|
|
8180
8189
|
transaction: T['io.flow.v0.models.transaction'].isRequired,
|
|
8181
8190
|
});
|
|
8182
8191
|
|
|
8192
|
+
T['io.flow.v0.models.flow_transaction'] = PropTypes.exact({
|
|
8193
|
+
statement: T['io.flow.v0.models.billing_channel_statement_reference'],
|
|
8194
|
+
id: PropTypes.string.isRequired,
|
|
8195
|
+
account: T['io.flow.v0.models.account_id_reference'].isRequired,
|
|
8196
|
+
metadata: T['io.flow.v0.unions.transaction_metadata'],
|
|
8197
|
+
order: T['io.flow.v0.models.billing_channel_order_summary'],
|
|
8198
|
+
payment_request: T['io.flow.v0.models.billing_channel_payment_request_reference'],
|
|
8199
|
+
currency: PropTypes.string.isRequired,
|
|
8200
|
+
source: T['io.flow.v0.enums.transaction_source'].isRequired,
|
|
8201
|
+
parent: T['io.flow.v0.models.parent_transaction_summary'],
|
|
8202
|
+
gross: PropTypes.number.isRequired,
|
|
8203
|
+
fees: PropTypes.arrayOf(T['io.flow.v0.models.fee_deduction']).isRequired,
|
|
8204
|
+
withholdings: PropTypes.arrayOf(T['io.flow.v0.models.withholding_deduction']).isRequired,
|
|
8205
|
+
discounts: PropTypes.arrayOf(T['io.flow.v0.models.billing_discount']).isRequired,
|
|
8206
|
+
net: PropTypes.number.isRequired,
|
|
8207
|
+
identifiers: PropTypes.objectOf(PropTypes.string).isRequired,
|
|
8208
|
+
created_at: PropTypes.string.isRequired,
|
|
8209
|
+
updated_at: PropTypes.string.isRequired,
|
|
8210
|
+
});
|
|
8211
|
+
|
|
8183
8212
|
T['io.flow.v0.models.channel_transaction'] = PropTypes.exact({
|
|
8184
8213
|
statement: T['io.flow.v0.models.billing_channel_statement_reference'],
|
|
8185
8214
|
id: PropTypes.string.isRequired,
|
|
8215
|
+
account: T['io.flow.v0.models.account_id_reference'].isRequired,
|
|
8186
8216
|
metadata: T['io.flow.v0.unions.transaction_metadata'],
|
|
8187
8217
|
order: T['io.flow.v0.models.billing_channel_order_summary'],
|
|
8188
8218
|
payment_request: T['io.flow.v0.models.billing_channel_payment_request_reference'],
|
|
@@ -14687,6 +14717,7 @@ export const abandonedOrderPromotionForm = T['io.flow.v0.models.abandoned_order_
|
|
|
14687
14717
|
export const abandonedOrderPromotionStatus = T['io.flow.v0.enums.abandoned_order_promotion_status'];
|
|
14688
14718
|
export const abandonedOrderSettingStatus = T['io.flow.v0.enums.abandoned_order_setting_status'];
|
|
14689
14719
|
export const abandonedOrderSettings = T['io.flow.v0.models.abandoned_order_settings'];
|
|
14720
|
+
export const accountIdReference = T['io.flow.v0.models.account_id_reference'];
|
|
14690
14721
|
export const accountOrdersExportType = T['io.flow.v0.models.account_orders_export_type'];
|
|
14691
14722
|
export const accountReference = T['io.flow.v0.models.account_reference'];
|
|
14692
14723
|
export const accountTransactionsExportType = T['io.flow.v0.models.account_transactions_export_type'];
|
|
@@ -15256,6 +15287,7 @@ export const flowCenterReference = T['io.flow.v0.models.flow_center_reference'];
|
|
|
15256
15287
|
export const flowEntity = T['io.flow.v0.enums.flow_entity'];
|
|
15257
15288
|
export const flowItemIndexMetadata = T['io.flow.v0.models.flow_item_index_metadata'];
|
|
15258
15289
|
export const flowRole = T['io.flow.v0.enums.flow_role'];
|
|
15290
|
+
export const flowTransaction = T['io.flow.v0.models.flow_transaction'];
|
|
15259
15291
|
export const fraudEmailRule = T['io.flow.v0.models.fraud_email_rule'];
|
|
15260
15292
|
export const fraudEmailRuleDecision = T['io.flow.v0.enums.fraud_email_rule_decision'];
|
|
15261
15293
|
export const fraudEmailRuleForm = T['io.flow.v0.models.fraud_email_rule_form'];
|