@flowio/api-internal-prop-types 8.6.0 → 8.7.1
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-internal.d.ts +20 -15
- package/lib/api-internal.js +1 -1
- package/lib/index.js +15 -2
- package/package.json +3 -3
- package/src/api-internal.d.ts +20 -15
- package/src/api-internal.js +48 -36
package/lib/index.js
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var ApiInternalPropTypes = _interopRequireWildcard(require("./api-internal"));
|
|
9
|
+
|
|
10
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
11
|
+
|
|
12
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
|
|
14
|
+
var _default = ApiInternalPropTypes;
|
|
15
|
+
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-internal-prop-types",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.7.1",
|
|
4
4
|
"description": "PropType validators that work with internal Flow API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"src"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "babel ./src --out-dir ./lib --copy-files",
|
|
27
|
+
"build": "babel ./src --out-dir ./lib --root-mode upward --copy-files",
|
|
28
28
|
"generate": "apibuilder update"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"prop-types": "^15.7.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "401cf70e5b89c865bc59790f1993d022ab51689e"
|
|
34
34
|
}
|
package/src/api-internal.d.ts
CHANGED
|
@@ -2475,6 +2475,7 @@ declare namespace io.flow.RESERVED_WORD_export.v0.unions {
|
|
|
2475
2475
|
}
|
|
2476
2476
|
|
|
2477
2477
|
declare namespace io.flow.RESERVED_WORD_return.v0.enums {
|
|
2478
|
+
type ReturnSource = 'flow' | 'rebound';
|
|
2478
2479
|
type ReturnStatus = 'open' | 'refunded';
|
|
2479
2480
|
type ReturnTrackingStatus = 'return_registered_online' | 'received_by_the_carrier' | 'in_transit_to_our_local_hub' | 'received_at_our_local_hub' | 'processed_by_hub' | 'parcel_has_been_added_to_pallet' | 'parcel_has_been_extracted_from_pallet' | 'in_transit_to_the_retailer' | 'delivered_to_the_retailer' | 'parcel_lost' | 'canceled' | 'parcel_processed_by_retailer' | 'parcel_delayed' | 'collection_attempt_failed' | 'parcel_under_investigation' | 'awaiting_customs_clearance' | 'customs_clearance_completed' | 'cancel_requested';
|
|
2480
2481
|
}
|
|
@@ -2496,6 +2497,9 @@ declare namespace io.flow.RESERVED_WORD_return.v0.models {
|
|
|
2496
2497
|
readonly 'key'?: string;
|
|
2497
2498
|
readonly 'origin'?: io.flow.fulfillment.v0.models.ShippingAddress;
|
|
2498
2499
|
readonly 'center_key'?: string;
|
|
2500
|
+
readonly 'source': io.flow.RESERVED_WORD_return.v0.enums.ReturnSource;
|
|
2501
|
+
readonly 'tracking_status'?: io.flow.RESERVED_WORD_return.v0.enums.ReturnTrackingStatus;
|
|
2502
|
+
readonly 'tracking_status_timestamp'?: string;
|
|
2499
2503
|
}
|
|
2500
2504
|
|
|
2501
2505
|
interface ReturnItemReference {
|
|
@@ -2713,7 +2717,7 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
2713
2717
|
type DeclineCode = 'approve_with_id' | 'call_issuer' | 'card_not_supported' | 'card_velocity_exceeded' | 'currency_not_supported' | 'do_not_honor' | 'do_not_try_again' | 'duplicate_transaction' | 'expired_card' | 'fraudulent' | 'generic_decline' | 'incorrect_number' | 'incorrect_cvc' | 'incorrect_pin' | 'incorrect_zip' | 'insufficient_funds' | 'invalid_account' | 'invalid_amount' | 'invalid_cvc' | 'invalid_expiry_year' | 'invalid_number' | 'invalid_pin' | 'issuer_not_available' | 'lost_card' | 'new_account_information_available' | 'no_action_taken' | 'not_permitted' | 'pickup_card' | 'pin_try_exceeded' | 'processing_error' | 'reenter_transaction' | 'restricted_card' | 'revocation_of_all_authorizations' | 'revocation_of_authorization' | 'security_violation' | 'service_not_allowed' | 'stolen_card' | 'stop_payment_order' | 'testmode_decline' | 'transaction_not_allowed' | 'try_again_later' | 'withdrawal_count_limit_exceeded';
|
|
2714
2718
|
type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
|
|
2715
2719
|
type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.refund.updated' | 'charge.succeeded' | 'charge.updated' | 'payment_intent.amount_capturable_updated' | 'payment_intent.payment_failed' | 'payment_intent.succeeded' | 'source.canceled' | 'source.chargeable' | 'source.failed';
|
|
2716
|
-
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_over_time';
|
|
2720
|
+
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
|
|
2717
2721
|
type KlarnaProduct = 'payment';
|
|
2718
2722
|
type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
|
|
2719
2723
|
type NextActionType = 'redirect_to_url' | 'use_stripe_sdk';
|
|
@@ -3274,20 +3278,20 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3274
3278
|
readonly 'shipping_last_name'?: string;
|
|
3275
3279
|
readonly 'locale'?: string;
|
|
3276
3280
|
readonly 'pay_later_name'?: string;
|
|
3277
|
-
readonly '
|
|
3278
|
-
readonly '
|
|
3281
|
+
readonly 'pay_later_asset_urls_standard'?: string;
|
|
3282
|
+
readonly 'pay_later_asset_urls_descriptive'?: string;
|
|
3279
3283
|
readonly 'pay_now_name'?: string;
|
|
3280
|
-
readonly '
|
|
3281
|
-
readonly '
|
|
3284
|
+
readonly 'pay_now_asset_urls_standard'?: string;
|
|
3285
|
+
readonly 'pay_now_asset_urls_descriptive'?: string;
|
|
3282
3286
|
readonly 'pay_over_time_name'?: string;
|
|
3283
|
-
readonly '
|
|
3284
|
-
readonly '
|
|
3287
|
+
readonly 'pay_over_time_asset_urls_standard'?: string;
|
|
3288
|
+
readonly 'pay_over_time_asset_urls_descriptive'?: string;
|
|
3285
3289
|
readonly 'direct_bank_transfer_name'?: string;
|
|
3286
|
-
readonly '
|
|
3287
|
-
readonly '
|
|
3290
|
+
readonly 'direct_bank_transfer_asset_urls_standard'?: string;
|
|
3291
|
+
readonly 'direct_bank_transfer_asset_urls_descriptive'?: string;
|
|
3288
3292
|
readonly 'direct_debit_name'?: string;
|
|
3289
|
-
readonly '
|
|
3290
|
-
readonly '
|
|
3293
|
+
readonly 'direct_debit_asset_urls_standard'?: string;
|
|
3294
|
+
readonly 'direct_debit_asset_urls_descriptive'?: string;
|
|
3291
3295
|
}
|
|
3292
3296
|
|
|
3293
3297
|
interface SourceKlarnaRequest {
|
|
@@ -6751,8 +6755,8 @@ declare namespace io.flow.payment.internal.v0.models {
|
|
|
6751
6755
|
interface KlarnaPaymentMethodCategory {
|
|
6752
6756
|
readonly 'id': string;
|
|
6753
6757
|
readonly 'name'?: string;
|
|
6754
|
-
readonly '
|
|
6755
|
-
readonly '
|
|
6758
|
+
readonly 'standard_asset_urls'?: string;
|
|
6759
|
+
readonly 'descriptive_asset_urls'?: string;
|
|
6756
6760
|
}
|
|
6757
6761
|
|
|
6758
6762
|
interface OnlineAuthorizationCompleted {
|
|
@@ -8614,6 +8618,7 @@ declare namespace io.flow.crypto.v0.models {
|
|
|
8614
8618
|
readonly 'recipient': string;
|
|
8615
8619
|
readonly 'refunded': boolean;
|
|
8616
8620
|
readonly 'status': io.flow.crypto.v0.enums.PaymentStatus;
|
|
8621
|
+
readonly 'time_window': number;
|
|
8617
8622
|
}
|
|
8618
8623
|
|
|
8619
8624
|
interface PaymentRequest {
|
|
@@ -19347,8 +19352,8 @@ declare namespace io.flow.internal.v0.models {
|
|
|
19347
19352
|
interface KlarnaPaymentMethodCategory {
|
|
19348
19353
|
readonly 'id': string;
|
|
19349
19354
|
readonly 'name'?: string;
|
|
19350
|
-
readonly '
|
|
19351
|
-
readonly '
|
|
19355
|
+
readonly 'standard_asset_urls'?: string;
|
|
19356
|
+
readonly 'descriptive_asset_urls'?: string;
|
|
19352
19357
|
}
|
|
19353
19358
|
|
|
19354
19359
|
interface LabProjectSettings {
|
package/src/api-internal.js
CHANGED
|
@@ -2519,6 +2519,7 @@ T['io.flow.crypto.v0.models.payment'] = PropTypes.exact({
|
|
|
2519
2519
|
recipient: PropTypes.string.isRequired,
|
|
2520
2520
|
refunded: PropTypes.bool.isRequired,
|
|
2521
2521
|
status: T['io.flow.crypto.v0.enums.payment_status'].isRequired,
|
|
2522
|
+
time_window: PropTypes.number.isRequired,
|
|
2522
2523
|
});
|
|
2523
2524
|
|
|
2524
2525
|
T['io.flow.crypto.v0.models.webhook_payment'] = PropTypes.exact({
|
|
@@ -3068,8 +3069,8 @@ T['io.flow.payment.internal.v0.models.passphrase'] = PropTypes.exact({
|
|
|
3068
3069
|
T['io.flow.payment.internal.v0.models.klarna_payment_method_category'] = PropTypes.exact({
|
|
3069
3070
|
id: PropTypes.string.isRequired,
|
|
3070
3071
|
name: PropTypes.string,
|
|
3071
|
-
|
|
3072
|
-
|
|
3072
|
+
standard_asset_urls: PropTypes.string,
|
|
3073
|
+
descriptive_asset_urls: PropTypes.string,
|
|
3073
3074
|
});
|
|
3074
3075
|
|
|
3075
3076
|
T['io.flow.payment.internal.v0.models.klarna_authorization_parameters'] = PropTypes.exact({
|
|
@@ -6526,20 +6527,20 @@ T['io.flow.stripe.v0.models.source_klarna'] = PropTypes.exact({
|
|
|
6526
6527
|
shipping_last_name: PropTypes.string,
|
|
6527
6528
|
locale: PropTypes.string,
|
|
6528
6529
|
pay_later_name: PropTypes.string,
|
|
6529
|
-
|
|
6530
|
-
|
|
6530
|
+
pay_later_asset_urls_standard: PropTypes.string,
|
|
6531
|
+
pay_later_asset_urls_descriptive: PropTypes.string,
|
|
6531
6532
|
pay_now_name: PropTypes.string,
|
|
6532
|
-
|
|
6533
|
-
|
|
6533
|
+
pay_now_asset_urls_standard: PropTypes.string,
|
|
6534
|
+
pay_now_asset_urls_descriptive: PropTypes.string,
|
|
6534
6535
|
pay_over_time_name: PropTypes.string,
|
|
6535
|
-
|
|
6536
|
-
|
|
6536
|
+
pay_over_time_asset_urls_standard: PropTypes.string,
|
|
6537
|
+
pay_over_time_asset_urls_descriptive: PropTypes.string,
|
|
6537
6538
|
direct_bank_transfer_name: PropTypes.string,
|
|
6538
|
-
|
|
6539
|
-
|
|
6539
|
+
direct_bank_transfer_asset_urls_standard: PropTypes.string,
|
|
6540
|
+
direct_bank_transfer_asset_urls_descriptive: PropTypes.string,
|
|
6540
6541
|
direct_debit_name: PropTypes.string,
|
|
6541
|
-
|
|
6542
|
-
|
|
6542
|
+
direct_debit_asset_urls_standard: PropTypes.string,
|
|
6543
|
+
direct_debit_asset_urls_descriptive: PropTypes.string,
|
|
6543
6544
|
});
|
|
6544
6545
|
|
|
6545
6546
|
T['io.flow.stripe.v0.enums.source_flow'] = PropTypes.oneOf(['redirect', 'receiver', 'code_verification', 'none']);
|
|
@@ -6904,6 +6905,29 @@ T['io.flow.fulfillment.v0.models.center_reference'] = PropTypes.exact({
|
|
|
6904
6905
|
center_key: PropTypes.string.isRequired,
|
|
6905
6906
|
});
|
|
6906
6907
|
|
|
6908
|
+
T['io.flow.return.v0.enums.return_tracking_status'] = PropTypes.oneOf([
|
|
6909
|
+
'return_registered_online',
|
|
6910
|
+
'received_by_the_carrier',
|
|
6911
|
+
'in_transit_to_our_local_hub',
|
|
6912
|
+
'received_at_our_local_hub',
|
|
6913
|
+
'processed_by_hub',
|
|
6914
|
+
'parcel_has_been_added_to_pallet',
|
|
6915
|
+
'parcel_has_been_extracted_from_pallet',
|
|
6916
|
+
'in_transit_to_the_retailer',
|
|
6917
|
+
'delivered_to_the_retailer',
|
|
6918
|
+
'parcel_lost',
|
|
6919
|
+
'canceled',
|
|
6920
|
+
'parcel_processed_by_retailer',
|
|
6921
|
+
'parcel_delayed',
|
|
6922
|
+
'collection_attempt_failed',
|
|
6923
|
+
'parcel_under_investigation',
|
|
6924
|
+
'awaiting_customs_clearance',
|
|
6925
|
+
'customs_clearance_completed',
|
|
6926
|
+
'cancel_requested',
|
|
6927
|
+
]);
|
|
6928
|
+
|
|
6929
|
+
T['io.flow.return.v0.enums.return_source'] = PropTypes.oneOf(['flow', 'rebound']);
|
|
6930
|
+
|
|
6907
6931
|
T['io.flow.label.v0.models.label_order_summary'] = PropTypes.exact({
|
|
6908
6932
|
id: PropTypes.string.isRequired,
|
|
6909
6933
|
number: PropTypes.string.isRequired,
|
|
@@ -10890,8 +10914,8 @@ T['io.flow.internal.v0.models.lab_project_settings_form'] = PropTypes.exact({
|
|
|
10890
10914
|
T['io.flow.internal.v0.models.klarna_payment_method_category'] = PropTypes.exact({
|
|
10891
10915
|
id: PropTypes.string.isRequired,
|
|
10892
10916
|
name: PropTypes.string,
|
|
10893
|
-
|
|
10894
|
-
|
|
10917
|
+
standard_asset_urls: PropTypes.string,
|
|
10918
|
+
descriptive_asset_urls: PropTypes.string,
|
|
10895
10919
|
});
|
|
10896
10920
|
|
|
10897
10921
|
T['io.flow.internal.v0.models.klarna_authorization_parameters'] = PropTypes.exact({
|
|
@@ -19155,6 +19179,9 @@ T['io.flow.return.v0.models.return_form'] = PropTypes.exact({
|
|
|
19155
19179
|
key: PropTypes.string,
|
|
19156
19180
|
origin: T['io.flow.fulfillment.v0.models.shipping_address'],
|
|
19157
19181
|
center_key: PropTypes.string,
|
|
19182
|
+
source: T['io.flow.return.v0.enums.return_source'].isRequired,
|
|
19183
|
+
tracking_status: T['io.flow.return.v0.enums.return_tracking_status'],
|
|
19184
|
+
tracking_status_timestamp: PropTypes.string,
|
|
19158
19185
|
});
|
|
19159
19186
|
|
|
19160
19187
|
T['io.flow.fulfillment.v0.models.center_summary'] = PropTypes.exact({
|
|
@@ -24418,27 +24445,6 @@ T['io.flow.export.v0.models.landed_cost_item'] = PropTypes.exact({
|
|
|
24418
24445
|
|
|
24419
24446
|
T['io.flow.return.v0.enums.return_status'] = PropTypes.oneOf(['open', 'refunded']);
|
|
24420
24447
|
|
|
24421
|
-
T['io.flow.return.v0.enums.return_tracking_status'] = PropTypes.oneOf([
|
|
24422
|
-
'return_registered_online',
|
|
24423
|
-
'received_by_the_carrier',
|
|
24424
|
-
'in_transit_to_our_local_hub',
|
|
24425
|
-
'received_at_our_local_hub',
|
|
24426
|
-
'processed_by_hub',
|
|
24427
|
-
'parcel_has_been_added_to_pallet',
|
|
24428
|
-
'parcel_has_been_extracted_from_pallet',
|
|
24429
|
-
'in_transit_to_the_retailer',
|
|
24430
|
-
'delivered_to_the_retailer',
|
|
24431
|
-
'parcel_lost',
|
|
24432
|
-
'canceled',
|
|
24433
|
-
'parcel_processed_by_retailer',
|
|
24434
|
-
'parcel_delayed',
|
|
24435
|
-
'collection_attempt_failed',
|
|
24436
|
-
'parcel_under_investigation',
|
|
24437
|
-
'awaiting_customs_clearance',
|
|
24438
|
-
'customs_clearance_completed',
|
|
24439
|
-
'cancel_requested',
|
|
24440
|
-
]);
|
|
24441
|
-
|
|
24442
24448
|
T['io.flow.return.v0.models.return_item_reference'] = PropTypes.exact({
|
|
24443
24449
|
number: PropTypes.string.isRequired,
|
|
24444
24450
|
});
|
|
@@ -24505,7 +24511,13 @@ T['io.flow.stripe.v0.enums.event_type'] = PropTypes.oneOf([
|
|
|
24505
24511
|
'source.failed',
|
|
24506
24512
|
]);
|
|
24507
24513
|
|
|
24508
|
-
T['io.flow.stripe.v0.enums.klarna_payment_method_category_type'] = PropTypes.oneOf([
|
|
24514
|
+
T['io.flow.stripe.v0.enums.klarna_payment_method_category_type'] = PropTypes.oneOf([
|
|
24515
|
+
'direct_bank_transfer',
|
|
24516
|
+
'direct_debit',
|
|
24517
|
+
'pay_later',
|
|
24518
|
+
'pay_now',
|
|
24519
|
+
'pay_over_time',
|
|
24520
|
+
]);
|
|
24509
24521
|
|
|
24510
24522
|
T['io.flow.stripe.v0.models.card_request'] = PropTypes.exact({
|
|
24511
24523
|
object: PropTypes.string.isRequired,
|