@flowio/api-internal-prop-types 8.8.1 → 8.8.2
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 +18 -35
- package/lib/api-internal.js +1 -1
- package/package.json +2 -2
- package/src/api-internal.d.ts +18 -35
- package/src/api-internal.js +32 -47
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-internal-prop-types",
|
|
3
|
-
"version": "8.8.
|
|
3
|
+
"version": "8.8.2",
|
|
4
4
|
"description": "PropType validators that work with internal Flow API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"prop-types": "^15.7.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "fddc3e0a9ca7753c118861b1e5a9b16d4621b473"
|
|
34
34
|
}
|
package/src/api-internal.d.ts
CHANGED
|
@@ -2515,7 +2515,7 @@ declare namespace io.flow.RESERVED_WORD_return.v0.models {
|
|
|
2515
2515
|
readonly 'key'?: string;
|
|
2516
2516
|
readonly 'origin'?: io.flow.fulfillment.v0.models.ShippingAddress;
|
|
2517
2517
|
readonly 'center_key'?: string;
|
|
2518
|
-
readonly 'source'
|
|
2518
|
+
readonly 'source'?: io.flow.RESERVED_WORD_return.v0.unions.ReturnSource;
|
|
2519
2519
|
readonly 'tracking_status'?: io.flow.RESERVED_WORD_return.v0.enums.ReturnTrackingStatus;
|
|
2520
2520
|
readonly 'tracking_status_timestamp'?: string;
|
|
2521
2521
|
readonly 'carrier_tracking_number'?: string;
|
|
@@ -2531,6 +2531,7 @@ declare namespace io.flow.RESERVED_WORD_return.v0.models {
|
|
|
2531
2531
|
readonly 'quantity': number;
|
|
2532
2532
|
readonly 'reason'?: io.flow.RESERVED_WORD_return.v0.models.ReturnReason;
|
|
2533
2533
|
readonly 'notes'?: string;
|
|
2534
|
+
readonly 'attributes'?: Record<string, string>;
|
|
2534
2535
|
}
|
|
2535
2536
|
|
|
2536
2537
|
interface ReturnOrderReference {
|
|
@@ -4514,6 +4515,11 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4514
4515
|
readonly 'currency': string;
|
|
4515
4516
|
}
|
|
4516
4517
|
|
|
4518
|
+
interface Applepay {
|
|
4519
|
+
readonly 'type': 'applepay';
|
|
4520
|
+
readonly 'applePayToken': string;
|
|
4521
|
+
}
|
|
4522
|
+
|
|
4517
4523
|
interface Authentication {
|
|
4518
4524
|
readonly 'threeds2.fingerprintToken'?: string;
|
|
4519
4525
|
readonly 'threeds2.challengeToken'?: string;
|
|
@@ -4718,7 +4724,7 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4718
4724
|
readonly 'browserInfo'?: io.flow.adyen.v0.unions.BrowserInfo;
|
|
4719
4725
|
readonly 'origin'?: string;
|
|
4720
4726
|
readonly 'channel'?: io.flow.adyen.v0.enums.Channel;
|
|
4721
|
-
readonly '
|
|
4727
|
+
readonly 'returnUrl'?: string;
|
|
4722
4728
|
}
|
|
4723
4729
|
|
|
4724
4730
|
interface PaymentResponse {
|
|
@@ -4803,7 +4809,7 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4803
4809
|
|
|
4804
4810
|
declare namespace io.flow.adyen.v0.unions {
|
|
4805
4811
|
type BrowserInfo = (io.flow.adyen.v0.models.BrowserInfo3Ds1 | io.flow.adyen.v0.models.BrowserInfo3Ds2);
|
|
4806
|
-
type PaymentMethodData = (io.flow.adyen.v0.models.Scheme);
|
|
4812
|
+
type PaymentMethodData = (io.flow.adyen.v0.models.Scheme | io.flow.adyen.v0.models.Applepay);
|
|
4807
4813
|
}
|
|
4808
4814
|
|
|
4809
4815
|
declare namespace io.flow.order.management.v0.enums {
|
|
@@ -6458,20 +6464,9 @@ declare namespace io.flow.payment.internal.v0.models {
|
|
|
6458
6464
|
readonly 'password': string;
|
|
6459
6465
|
}
|
|
6460
6466
|
|
|
6461
|
-
interface
|
|
6462
|
-
readonly 'discriminator': '
|
|
6463
|
-
readonly '
|
|
6464
|
-
readonly 'header': io.flow.payment.internal.v0.models.ApplePaymentTokenHeader;
|
|
6465
|
-
readonly 'signature': string;
|
|
6466
|
-
readonly 'version': string;
|
|
6467
|
-
}
|
|
6468
|
-
|
|
6469
|
-
interface ApplePaymentTokenHeader {
|
|
6470
|
-
readonly 'applicationData'?: string;
|
|
6471
|
-
readonly 'ephemeralPublicKey'?: string;
|
|
6472
|
-
readonly 'wrappedKey'?: string;
|
|
6473
|
-
readonly 'publicKeyHash': string;
|
|
6474
|
-
readonly 'transactionId': string;
|
|
6467
|
+
interface ApplePayAuthorizationPayload {
|
|
6468
|
+
readonly 'discriminator': 'apple_pay_authorization_payload';
|
|
6469
|
+
readonly 'apple_pay_token': string;
|
|
6475
6470
|
}
|
|
6476
6471
|
|
|
6477
6472
|
interface AuthenticationForm {
|
|
@@ -7051,7 +7046,7 @@ declare namespace io.flow.payment.internal.v0.models {
|
|
|
7051
7046
|
}
|
|
7052
7047
|
|
|
7053
7048
|
declare namespace io.flow.payment.internal.v0.unions {
|
|
7054
|
-
type AuthorizationPayload = (io.flow.payment.internal.v0.models.
|
|
7049
|
+
type AuthorizationPayload = (io.flow.payment.internal.v0.models.ApplePayAuthorizationPayload | io.flow.payment.internal.v0.models.PaypalAuthorizationPayload);
|
|
7055
7050
|
type InlineAuthorizationParameters = (io.flow.payment.internal.v0.models.KlarnaAuthorizationParameters);
|
|
7056
7051
|
type InternalAuthorizationDetails = (io.flow.payment.internal.v0.models.InternalPaypalAuthorizationDetails | io.flow.payment.internal.v0.models.InternalBitpayAuthorizationDetails | io.flow.payment.internal.v0.models.InternalStripeAuthorizationDetails | io.flow.payment.internal.v0.models.InternalAdyenAuthorizationDetails | io.flow.payment.internal.v0.models.InternalAfterpayAuthorizationDetails | io.flow.payment.internal.v0.models.InternalFiservAuthorizationDetails);
|
|
7057
7052
|
type InternalRefundForm = (io.flow.payment.internal.v0.models.AdyenRefundForm);
|
|
@@ -15717,20 +15712,9 @@ declare namespace io.flow.internal.v0.models {
|
|
|
15717
15712
|
readonly 'processor_description': io.flow.internal.v0.unions.ContentItem;
|
|
15718
15713
|
}
|
|
15719
15714
|
|
|
15720
|
-
interface
|
|
15721
|
-
readonly 'discriminator': '
|
|
15722
|
-
readonly '
|
|
15723
|
-
readonly 'header': io.flow.internal.v0.models.ApplePaymentTokenHeader;
|
|
15724
|
-
readonly 'signature': string;
|
|
15725
|
-
readonly 'version': string;
|
|
15726
|
-
}
|
|
15727
|
-
|
|
15728
|
-
interface ApplePaymentTokenHeader {
|
|
15729
|
-
readonly 'applicationData'?: string;
|
|
15730
|
-
readonly 'ephemeralPublicKey'?: string;
|
|
15731
|
-
readonly 'wrappedKey'?: string;
|
|
15732
|
-
readonly 'publicKeyHash': string;
|
|
15733
|
-
readonly 'transactionId': string;
|
|
15715
|
+
interface ApplePayAuthorizationPayload {
|
|
15716
|
+
readonly 'discriminator': 'apple_pay_authorization_payload';
|
|
15717
|
+
readonly 'apple_pay_token': string;
|
|
15734
15718
|
}
|
|
15735
15719
|
|
|
15736
15720
|
interface AttributeLabel {
|
|
@@ -22766,7 +22750,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
22766
22750
|
}
|
|
22767
22751
|
|
|
22768
22752
|
declare namespace io.flow.internal.v0.unions {
|
|
22769
|
-
type AuthorizationPayload = (io.flow.internal.v0.models.
|
|
22753
|
+
type AuthorizationPayload = (io.flow.internal.v0.models.ApplePayAuthorizationPayload | io.flow.internal.v0.models.PaypalAuthorizationPayload);
|
|
22770
22754
|
type AuthorizedOrderCharge = (io.flow.internal.v0.models.AuthorizedShippingCharge);
|
|
22771
22755
|
type CarrierCredentials = (io.flow.internal.v0.models.SfExpress | io.flow.internal.v0.models.DhlEcommerce | io.flow.internal.v0.models.Landmark | io.flow.internal.v0.models.Dhl | io.flow.internal.v0.models.FedexCrossborder | io.flow.internal.v0.models.Ups | io.flow.internal.v0.models.Fedex);
|
|
22772
22756
|
type CheckoutAnalyticsDeliveryOption = (io.flow.internal.v0.models.CheckoutAnalyticsPhysicalDeliveryOption | io.flow.internal.v0.models.CheckoutAnalyticsDigitalDeliveryOption);
|
|
@@ -23104,8 +23088,7 @@ export const allItemsExport: PropTypes.Requireable<io.flow.internal.v0.models.Al
|
|
|
23104
23088
|
export const allocationItemReference: PropTypes.Requireable<io.flow.internal.v0.models.AllocationItemReference>;
|
|
23105
23089
|
export const allowedLabels: PropTypes.Requireable<io.flow.internal.v0.models.AllowedLabels>;
|
|
23106
23090
|
export const apmContent: PropTypes.Requireable<io.flow.internal.v0.models.ApmContent>;
|
|
23107
|
-
export const
|
|
23108
|
-
export const applePaymentTokenHeader: PropTypes.Requireable<io.flow.internal.v0.models.ApplePaymentTokenHeader>;
|
|
23091
|
+
export const applePayAuthorizationPayload: PropTypes.Requireable<io.flow.internal.v0.models.ApplePayAuthorizationPayload>;
|
|
23109
23092
|
export const attributeLabel: PropTypes.Requireable<io.flow.internal.v0.models.AttributeLabel>;
|
|
23110
23093
|
export const authenticationForm: PropTypes.Requireable<io.flow.internal.v0.models.AuthenticationForm>;
|
|
23111
23094
|
export const authorizationMetadata: PropTypes.Requireable<io.flow.internal.v0.models.AuthorizationMetadata>;
|
package/src/api-internal.js
CHANGED
|
@@ -3196,6 +3196,16 @@ T['io.flow.payment.internal.v0.models.paypal_authorization_payload'] = PropTypes
|
|
|
3196
3196
|
payer_id: PropTypes.string.isRequired,
|
|
3197
3197
|
});
|
|
3198
3198
|
|
|
3199
|
+
T['io.flow.payment.internal.v0.models.apple_pay_authorization_payload'] = PropTypes.exact({
|
|
3200
|
+
discriminator: PropTypes.oneOf(['apple_pay_authorization_payload']).isRequired,
|
|
3201
|
+
apple_pay_token: PropTypes.string.isRequired,
|
|
3202
|
+
});
|
|
3203
|
+
|
|
3204
|
+
T['io.flow.payment.internal.v0.unions.authorization_payload'] = PropTypes.oneOfType([
|
|
3205
|
+
T['io.flow.payment.internal.v0.models.apple_pay_authorization_payload'],
|
|
3206
|
+
T['io.flow.payment.internal.v0.models.paypal_authorization_payload'],
|
|
3207
|
+
]);
|
|
3208
|
+
|
|
3199
3209
|
T['io.flow.payment.internal.v0.models.stripe_authentication_form'] = PropTypes.exact({
|
|
3200
3210
|
public_key: PropTypes.string.isRequired,
|
|
3201
3211
|
secret_key: PropTypes.string.isRequired,
|
|
@@ -3369,27 +3379,6 @@ T['io.flow.payment.internal.v0.models.bitpay_authentication'] = PropTypes.exact(
|
|
|
3369
3379
|
secret_key_reference: PropTypes.string.isRequired,
|
|
3370
3380
|
});
|
|
3371
3381
|
|
|
3372
|
-
T['io.flow.payment.internal.v0.models.apple_payment_token_header'] = PropTypes.exact({
|
|
3373
|
-
applicationData: PropTypes.string,
|
|
3374
|
-
ephemeralPublicKey: PropTypes.string,
|
|
3375
|
-
wrappedKey: PropTypes.string,
|
|
3376
|
-
publicKeyHash: PropTypes.string.isRequired,
|
|
3377
|
-
transactionId: PropTypes.string.isRequired,
|
|
3378
|
-
});
|
|
3379
|
-
|
|
3380
|
-
T['io.flow.payment.internal.v0.models.apple_payment_token'] = PropTypes.exact({
|
|
3381
|
-
discriminator: PropTypes.oneOf(['apple_payment_token']).isRequired,
|
|
3382
|
-
data: PropTypes.string.isRequired,
|
|
3383
|
-
header: T['io.flow.payment.internal.v0.models.apple_payment_token_header'].isRequired,
|
|
3384
|
-
signature: PropTypes.string.isRequired,
|
|
3385
|
-
version: PropTypes.string.isRequired,
|
|
3386
|
-
});
|
|
3387
|
-
|
|
3388
|
-
T['io.flow.payment.internal.v0.unions.authorization_payload'] = PropTypes.oneOfType([
|
|
3389
|
-
T['io.flow.payment.internal.v0.models.apple_payment_token'],
|
|
3390
|
-
T['io.flow.payment.internal.v0.models.paypal_authorization_payload'],
|
|
3391
|
-
]);
|
|
3392
|
-
|
|
3393
3382
|
T['io.flow.payment.internal.v0.models.afterpay_authentication_form'] = PropTypes.exact({
|
|
3394
3383
|
username: PropTypes.string.isRequired,
|
|
3395
3384
|
password: PropTypes.string.isRequired,
|
|
@@ -4920,6 +4909,11 @@ T['io.flow.adyen.v0.models.payment_response_additional_data'] = PropTypes.exact(
|
|
|
4920
4909
|
threeDOfferedResponse: PropTypes.string,
|
|
4921
4910
|
});
|
|
4922
4911
|
|
|
4912
|
+
T['io.flow.adyen.v0.models.applepay'] = PropTypes.exact({
|
|
4913
|
+
type: PropTypes.oneOf(['applepay']).isRequired,
|
|
4914
|
+
applePayToken: PropTypes.string.isRequired,
|
|
4915
|
+
});
|
|
4916
|
+
|
|
4923
4917
|
T['io.flow.adyen.v0.models.scheme'] = PropTypes.exact({
|
|
4924
4918
|
type: PropTypes.oneOf(['scheme']).isRequired,
|
|
4925
4919
|
expiryMonth: PropTypes.string.isRequired,
|
|
@@ -4936,7 +4930,9 @@ T['io.flow.adyen.v0.models.threeds_additional_data'] = PropTypes.exact({
|
|
|
4936
4930
|
allow3DS2: PropTypes.bool,
|
|
4937
4931
|
});
|
|
4938
4932
|
|
|
4939
|
-
T['io.flow.adyen.v0.unions.payment_method_data'] = PropTypes.oneOfType(
|
|
4933
|
+
T['io.flow.adyen.v0.unions.payment_method_data'] = PropTypes.oneOfType(
|
|
4934
|
+
[T['io.flow.adyen.v0.models.scheme'], T['io.flow.adyen.v0.models.applepay']],
|
|
4935
|
+
);
|
|
4940
4936
|
|
|
4941
4937
|
T['io.flow.adyen.v0.enums.payment_method'] = PropTypes.oneOf([
|
|
4942
4938
|
'ach',
|
|
@@ -5168,7 +5164,7 @@ T['io.flow.adyen.v0.models.payment_request'] = PropTypes.exact({
|
|
|
5168
5164
|
browserInfo: T['io.flow.adyen.v0.unions.browser_info'],
|
|
5169
5165
|
origin: PropTypes.string,
|
|
5170
5166
|
channel: T['io.flow.adyen.v0.enums.channel'],
|
|
5171
|
-
|
|
5167
|
+
returnUrl: PropTypes.string,
|
|
5172
5168
|
});
|
|
5173
5169
|
|
|
5174
5170
|
T['io.flow.adyen.v0.models.modification_request'] = PropTypes.exact({
|
|
@@ -9154,6 +9150,16 @@ T['io.flow.internal.v0.models.paypal_authorization_payload'] = PropTypes.exact({
|
|
|
9154
9150
|
payer_id: PropTypes.string.isRequired,
|
|
9155
9151
|
});
|
|
9156
9152
|
|
|
9153
|
+
T['io.flow.internal.v0.models.apple_pay_authorization_payload'] = PropTypes.exact({
|
|
9154
|
+
discriminator: PropTypes.oneOf(['apple_pay_authorization_payload']).isRequired,
|
|
9155
|
+
apple_pay_token: PropTypes.string.isRequired,
|
|
9156
|
+
});
|
|
9157
|
+
|
|
9158
|
+
T['io.flow.internal.v0.unions.authorization_payload'] = PropTypes.oneOfType([
|
|
9159
|
+
T['io.flow.internal.v0.models.apple_pay_authorization_payload'],
|
|
9160
|
+
T['io.flow.internal.v0.models.paypal_authorization_payload'],
|
|
9161
|
+
]);
|
|
9162
|
+
|
|
9157
9163
|
T['io.flow.payment.v0.models.virtual_card_reference'] = PropTypes.exact({
|
|
9158
9164
|
id: PropTypes.string.isRequired,
|
|
9159
9165
|
});
|
|
@@ -10656,6 +10662,7 @@ T['io.flow.return.v0.models.return_line_item'] = PropTypes.exact({
|
|
|
10656
10662
|
quantity: PropTypes.number.isRequired,
|
|
10657
10663
|
reason: T['io.flow.return.v0.models.return_reason'],
|
|
10658
10664
|
notes: PropTypes.string,
|
|
10665
|
+
attributes: PropTypes.objectOf(PropTypes.string),
|
|
10659
10666
|
});
|
|
10660
10667
|
|
|
10661
10668
|
T['io.flow.experience.v0.enums.order_status'] = PropTypes.oneOf(['open', 'submitted']);
|
|
@@ -19554,7 +19561,7 @@ T['io.flow.return.v0.models.return_form'] = PropTypes.exact({
|
|
|
19554
19561
|
key: PropTypes.string,
|
|
19555
19562
|
origin: T['io.flow.fulfillment.v0.models.shipping_address'],
|
|
19556
19563
|
center_key: PropTypes.string,
|
|
19557
|
-
source: T['io.flow.return.v0.unions.return_source']
|
|
19564
|
+
source: T['io.flow.return.v0.unions.return_source'],
|
|
19558
19565
|
tracking_status: T['io.flow.return.v0.enums.return_tracking_status'],
|
|
19559
19566
|
tracking_status_timestamp: PropTypes.string,
|
|
19560
19567
|
carrier_tracking_number: PropTypes.string,
|
|
@@ -20158,27 +20165,6 @@ T['io.flow.internal.v0.models.authorization_parameters_form'] = PropTypes.exact(
|
|
|
20158
20165
|
ip: PropTypes.string,
|
|
20159
20166
|
});
|
|
20160
20167
|
|
|
20161
|
-
T['io.flow.internal.v0.models.apple_payment_token_header'] = PropTypes.exact({
|
|
20162
|
-
applicationData: PropTypes.string,
|
|
20163
|
-
ephemeralPublicKey: PropTypes.string,
|
|
20164
|
-
wrappedKey: PropTypes.string,
|
|
20165
|
-
publicKeyHash: PropTypes.string.isRequired,
|
|
20166
|
-
transactionId: PropTypes.string.isRequired,
|
|
20167
|
-
});
|
|
20168
|
-
|
|
20169
|
-
T['io.flow.internal.v0.models.apple_payment_token'] = PropTypes.exact({
|
|
20170
|
-
discriminator: PropTypes.oneOf(['apple_payment_token']).isRequired,
|
|
20171
|
-
data: PropTypes.string.isRequired,
|
|
20172
|
-
header: T['io.flow.internal.v0.models.apple_payment_token_header'].isRequired,
|
|
20173
|
-
signature: PropTypes.string.isRequired,
|
|
20174
|
-
version: PropTypes.string.isRequired,
|
|
20175
|
-
});
|
|
20176
|
-
|
|
20177
|
-
T['io.flow.internal.v0.unions.authorization_payload'] = PropTypes.oneOfType([
|
|
20178
|
-
T['io.flow.internal.v0.models.apple_payment_token'],
|
|
20179
|
-
T['io.flow.internal.v0.models.paypal_authorization_payload'],
|
|
20180
|
-
]);
|
|
20181
|
-
|
|
20182
20168
|
T['io.flow.internal.v0.models.content_label'] = PropTypes.exact({
|
|
20183
20169
|
discriminator: PropTypes.oneOf(['content_label']).isRequired,
|
|
20184
20170
|
key: PropTypes.string.isRequired,
|
|
@@ -26226,8 +26212,7 @@ export const allItemsExport = T['io.flow.internal.v0.models.all_items_export'];
|
|
|
26226
26212
|
export const allocationItemReference = T['io.flow.internal.v0.models.allocation_item_reference'];
|
|
26227
26213
|
export const allowedLabels = T['io.flow.internal.v0.models.allowed_labels'];
|
|
26228
26214
|
export const apmContent = T['io.flow.internal.v0.models.apm_content'];
|
|
26229
|
-
export const
|
|
26230
|
-
export const applePaymentTokenHeader = T['io.flow.internal.v0.models.apple_payment_token_header'];
|
|
26215
|
+
export const applePayAuthorizationPayload = T['io.flow.internal.v0.models.apple_pay_authorization_payload'];
|
|
26231
26216
|
export const attributeLabel = T['io.flow.internal.v0.models.attribute_label'];
|
|
26232
26217
|
export const authenticationForm = T['io.flow.internal.v0.models.authentication_form'];
|
|
26233
26218
|
export const authorizationMetadata = T['io.flow.internal.v0.models.authorization_metadata'];
|