@flowio/api-internal-prop-types 9.14.0 → 9.15.0
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 +30 -2
- package/lib/api-internal.js +1 -1
- package/package.json +2 -2
- package/src/api-internal.d.ts +30 -2
- package/src/api-internal.js +31 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-internal-prop-types",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.15.0",
|
|
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": "a4321688f5d9b572fdb67816ecbbfb830b2a5ea0"
|
|
34
34
|
}
|
package/src/api-internal.d.ts
CHANGED
|
@@ -277,6 +277,7 @@ declare namespace io.flow.experience.v0.enums {
|
|
|
277
277
|
type OrderRefundSummaryPartialCharged = 'per_item' | 'for_order' | 'by_value_percentage' | 'by_quantity_percentage';
|
|
278
278
|
type OrderStatus = 'open' | 'submitted';
|
|
279
279
|
type OrderStorage = 'do_not_persist' | 'persist';
|
|
280
|
+
type OrderType = 'standard' | 'replacement';
|
|
280
281
|
type OrganizationPaymentMethodTag = 'deny';
|
|
281
282
|
type PaymentMethodRuleContentKey = 'description';
|
|
282
283
|
type PriceFacetBoundary = 'min' | 'max';
|
|
@@ -815,6 +816,7 @@ declare namespace io.flow.experience.v0.models {
|
|
|
815
816
|
readonly 'discriminator': 'order';
|
|
816
817
|
readonly 'id': string;
|
|
817
818
|
readonly 'number': string;
|
|
819
|
+
readonly 'order_type'?: io.flow.experience.v0.enums.OrderType;
|
|
818
820
|
readonly 'merchant_of_record'?: io.flow.common.v0.enums.OrderMerchantOfRecord;
|
|
819
821
|
readonly 'experience'?: io.flow.experience.v0.unions.ExpandableExperience;
|
|
820
822
|
readonly 'customer': io.flow.common.v0.models.OrderCustomer;
|
|
@@ -1015,6 +1017,7 @@ declare namespace io.flow.experience.v0.models {
|
|
|
1015
1017
|
}
|
|
1016
1018
|
|
|
1017
1019
|
interface OrderPutForm {
|
|
1020
|
+
readonly 'order_type'?: io.flow.experience.v0.enums.OrderType;
|
|
1018
1021
|
readonly 'items': io.flow.common.v0.models.LineItemForm[];
|
|
1019
1022
|
readonly 'customer'?: io.flow.common.v0.models.OrderCustomerForm;
|
|
1020
1023
|
readonly 'delivered_duty'?: io.flow.common.v0.enums.DeliveredDuty;
|
|
@@ -1069,6 +1072,16 @@ declare namespace io.flow.experience.v0.models {
|
|
|
1069
1072
|
readonly 'charged': io.flow.experience.v0.enums.OrderRefundSummaryPartialCharged;
|
|
1070
1073
|
}
|
|
1071
1074
|
|
|
1075
|
+
interface OrderReplacement {
|
|
1076
|
+
readonly 'id': string;
|
|
1077
|
+
readonly 'parent_order': io.flow.experience.v0.models.Order;
|
|
1078
|
+
readonly 'replacement_order': io.flow.experience.v0.models.Order;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
interface OrderReplacementForm {
|
|
1082
|
+
readonly 'items'?: io.flow.common.v0.models.LineItemForm[];
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1072
1085
|
interface OrderRuleReference {
|
|
1073
1086
|
readonly 'id': string;
|
|
1074
1087
|
readonly 'key': string;
|
|
@@ -15230,6 +15243,13 @@ declare namespace io.flow.checkout.backend.v0.models {
|
|
|
15230
15243
|
readonly 'address_prediction_metadata'?: io.flow.checkout.backend.v0.models.CheckoutAddressPredictionMetadata;
|
|
15231
15244
|
}
|
|
15232
15245
|
|
|
15246
|
+
interface CheckoutPriceEstimated {
|
|
15247
|
+
readonly 'discriminator': 'estimated';
|
|
15248
|
+
readonly 'amount': number;
|
|
15249
|
+
readonly 'currency': string;
|
|
15250
|
+
readonly 'label': string;
|
|
15251
|
+
}
|
|
15252
|
+
|
|
15233
15253
|
interface CheckoutPriceFree {
|
|
15234
15254
|
readonly 'discriminator': 'free';
|
|
15235
15255
|
readonly 'placeholder'?: string;
|
|
@@ -15302,7 +15322,7 @@ declare namespace io.flow.checkout.backend.v0.unions {
|
|
|
15302
15322
|
type CheckoutOrderPromotion = (io.flow.checkout.backend.v0.models.CheckoutOrderPromotionDiscount | io.flow.checkout.backend.v0.models.CheckoutOrderPromotionFreeShipping);
|
|
15303
15323
|
type CheckoutPaymentActionRequirement = (io.flow.checkout.backend.v0.models.CheckoutRedirectAuthorizationRequirement | io.flow.checkout.backend.v0.models.CheckoutInlineAuthorizationRequirement | io.flow.checkout.backend.v0.models.CheckoutDirectAuthorizationRequirement);
|
|
15304
15324
|
type CheckoutPaymentDetailsForm = (io.flow.checkout.backend.v0.models.CheckoutPaypalAuthorizationPayload | io.flow.checkout.backend.v0.models.CheckoutGooglePayAuthorizationPayload | io.flow.checkout.backend.v0.models.CheckoutCreditPaymentPayload);
|
|
15305
|
-
type CheckoutPrice = (io.flow.checkout.backend.v0.models.CheckoutPriceFree | io.flow.checkout.backend.v0.models.CheckoutPriceNotYetKnown | io.flow.checkout.backend.v0.models.CheckoutPriceIncluded | io.flow.checkout.backend.v0.models.CheckoutPriceStandard);
|
|
15325
|
+
type CheckoutPrice = (io.flow.checkout.backend.v0.models.CheckoutPriceFree | io.flow.checkout.backend.v0.models.CheckoutPriceNotYetKnown | io.flow.checkout.backend.v0.models.CheckoutPriceIncluded | io.flow.checkout.backend.v0.models.CheckoutPriceStandard | io.flow.checkout.backend.v0.models.CheckoutPriceEstimated);
|
|
15306
15326
|
}
|
|
15307
15327
|
|
|
15308
15328
|
declare namespace io.flow.organization.v0.enums {
|
|
@@ -18492,6 +18512,13 @@ declare namespace io.flow.internal.v0.models {
|
|
|
18492
18512
|
readonly 'address_prediction_metadata'?: io.flow.internal.v0.models.CheckoutAddressPredictionMetadata;
|
|
18493
18513
|
}
|
|
18494
18514
|
|
|
18515
|
+
interface CheckoutPriceEstimated {
|
|
18516
|
+
readonly 'discriminator': 'estimated';
|
|
18517
|
+
readonly 'amount': number;
|
|
18518
|
+
readonly 'currency': string;
|
|
18519
|
+
readonly 'label': string;
|
|
18520
|
+
}
|
|
18521
|
+
|
|
18495
18522
|
interface CheckoutPriceFree {
|
|
18496
18523
|
readonly 'discriminator': 'free';
|
|
18497
18524
|
readonly 'placeholder'?: string;
|
|
@@ -24920,7 +24947,7 @@ declare namespace io.flow.internal.v0.unions {
|
|
|
24920
24947
|
type CheckoutOrderPromotion = (io.flow.internal.v0.models.CheckoutOrderPromotionDiscount | io.flow.internal.v0.models.CheckoutOrderPromotionFreeShipping);
|
|
24921
24948
|
type CheckoutPaymentActionRequirement = (io.flow.internal.v0.models.CheckoutRedirectAuthorizationRequirement | io.flow.internal.v0.models.CheckoutInlineAuthorizationRequirement | io.flow.internal.v0.models.CheckoutDirectAuthorizationRequirement);
|
|
24922
24949
|
type CheckoutPaymentDetailsForm = (io.flow.internal.v0.models.CheckoutPaypalAuthorizationPayload | io.flow.internal.v0.models.CheckoutGooglePayAuthorizationPayload | io.flow.internal.v0.models.CheckoutCreditPaymentPayload);
|
|
24923
|
-
type CheckoutPrice = (io.flow.internal.v0.models.CheckoutPriceFree | io.flow.internal.v0.models.CheckoutPriceNotYetKnown | io.flow.internal.v0.models.CheckoutPriceIncluded | io.flow.internal.v0.models.CheckoutPriceStandard);
|
|
24950
|
+
type CheckoutPrice = (io.flow.internal.v0.models.CheckoutPriceFree | io.flow.internal.v0.models.CheckoutPriceNotYetKnown | io.flow.internal.v0.models.CheckoutPriceIncluded | io.flow.internal.v0.models.CheckoutPriceStandard | io.flow.internal.v0.models.CheckoutPriceEstimated);
|
|
24924
24951
|
type CheckoutRequestForm = (io.flow.internal.v0.models.CheckoutCreateAuthorizationDetailsRequestForm | io.flow.internal.v0.models.CheckoutCreateBySessionRequestForm | io.flow.internal.v0.models.CheckoutFeaturesRequestForm | io.flow.internal.v0.models.CheckoutGetRequestForm);
|
|
24925
24952
|
type CheckoutResponse = (io.flow.internal.v0.models.CheckoutCreateAuthorizationDetailsResponseError | io.flow.internal.v0.models.CheckoutCreateAuthorizationDetailsResponseSuccess | io.flow.internal.v0.models.CheckoutCreateBySessionResponseError | io.flow.internal.v0.models.CheckoutCreateBySessionResponseSuccess | io.flow.internal.v0.models.CheckoutFeaturesResponseError | io.flow.internal.v0.models.CheckoutFeaturesResponseSuccess | io.flow.internal.v0.models.CheckoutGetResponseError | io.flow.internal.v0.models.CheckoutGetResponseSuccess);
|
|
24926
24953
|
type CheckoutSequencedAddAuthorizationResponse = (io.flow.internal.v0.models.CheckoutSequencedAddAuthorizationResponseError | io.flow.internal.v0.models.CheckoutSequencedAddAuthorizationResponseSuccess);
|
|
@@ -25552,6 +25579,7 @@ export const checkoutPaymentMethodIssuer: PropTypes.Requireable<io.flow.internal
|
|
|
25552
25579
|
export const checkoutPaypalAuthorizationPayload: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutPaypalAuthorizationPayload>;
|
|
25553
25580
|
export const checkoutPlatformData: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutPlatformData>;
|
|
25554
25581
|
export const checkoutPredictionInputs: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutPredictionInputs>;
|
|
25582
|
+
export const checkoutPriceEstimated: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutPriceEstimated>;
|
|
25555
25583
|
export const checkoutPriceFree: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutPriceFree>;
|
|
25556
25584
|
export const checkoutPriceIncluded: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutPriceIncluded>;
|
|
25557
25585
|
export const checkoutPriceNotYetKnown: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutPriceNotYetKnown>;
|
package/src/api-internal.js
CHANGED
|
@@ -396,6 +396,13 @@ T['io.flow.checkout.backend.v0.models.checkout_payment_method_issuer'] = PropTyp
|
|
|
396
396
|
|
|
397
397
|
T['io.flow.checkout.backend.v0.enums.checkout_payment_group_type'] = PropTypes.oneOf(['credit', 'debit', 'all_cards']);
|
|
398
398
|
|
|
399
|
+
T['io.flow.checkout.backend.v0.models.checkout_price_estimated'] = PropTypes.exact({
|
|
400
|
+
discriminator: PropTypes.oneOf(['estimated']).isRequired,
|
|
401
|
+
amount: PropTypes.number.isRequired,
|
|
402
|
+
currency: PropTypes.string.isRequired,
|
|
403
|
+
label: PropTypes.string.isRequired,
|
|
404
|
+
});
|
|
405
|
+
|
|
399
406
|
T['io.flow.checkout.backend.v0.models.checkout_price_included'] = PropTypes.exact({
|
|
400
407
|
discriminator: PropTypes.oneOf(['included']).isRequired,
|
|
401
408
|
placeholder: PropTypes.string,
|
|
@@ -15968,6 +15975,13 @@ T['io.flow.field.validation.v0.models.field_validation_required'] = PropTypes.ex
|
|
|
15968
15975
|
placeholder: PropTypes.string,
|
|
15969
15976
|
});
|
|
15970
15977
|
|
|
15978
|
+
T['io.flow.internal.v0.models.checkout_price_estimated'] = PropTypes.exact({
|
|
15979
|
+
discriminator: PropTypes.oneOf(['estimated']).isRequired,
|
|
15980
|
+
amount: PropTypes.number.isRequired,
|
|
15981
|
+
currency: PropTypes.string.isRequired,
|
|
15982
|
+
label: PropTypes.string.isRequired,
|
|
15983
|
+
});
|
|
15984
|
+
|
|
15971
15985
|
T['io.flow.internal.v0.models.checkout_price_included'] = PropTypes.exact({
|
|
15972
15986
|
discriminator: PropTypes.oneOf(['included']).isRequired,
|
|
15973
15987
|
placeholder: PropTypes.string,
|
|
@@ -16063,6 +16077,7 @@ T['io.flow.internal.v0.unions.checkout_price'] = PropTypes.oneOfType([
|
|
|
16063
16077
|
T['io.flow.internal.v0.models.checkout_price_not_yet_known'],
|
|
16064
16078
|
T['io.flow.internal.v0.models.checkout_price_included'],
|
|
16065
16079
|
T['io.flow.internal.v0.models.checkout_price_standard'],
|
|
16080
|
+
T['io.flow.internal.v0.models.checkout_price_estimated'],
|
|
16066
16081
|
]);
|
|
16067
16082
|
|
|
16068
16083
|
T['io.flow.internal.v0.models.checkout_order_summary_shipping_surcharges'] = PropTypes.exact({
|
|
@@ -16542,6 +16557,7 @@ T['io.flow.checkout.backend.v0.unions.checkout_price'] = PropTypes.oneOfType([
|
|
|
16542
16557
|
T['io.flow.checkout.backend.v0.models.checkout_price_not_yet_known'],
|
|
16543
16558
|
T['io.flow.checkout.backend.v0.models.checkout_price_included'],
|
|
16544
16559
|
T['io.flow.checkout.backend.v0.models.checkout_price_standard'],
|
|
16560
|
+
T['io.flow.checkout.backend.v0.models.checkout_price_estimated'],
|
|
16545
16561
|
]);
|
|
16546
16562
|
|
|
16547
16563
|
T['io.flow.checkout.backend.v0.models.checkout_order_summary_shipping_surcharges'] = PropTypes.exact({
|
|
@@ -18336,6 +18352,8 @@ T['io.flow.payment.v0.models.card_metadata'] = PropTypes.exact({
|
|
|
18336
18352
|
merchant_of_record: T['io.flow.common.v0.enums.order_merchant_of_record'],
|
|
18337
18353
|
});
|
|
18338
18354
|
|
|
18355
|
+
T['io.flow.experience.v0.enums.order_type'] = PropTypes.oneOf(['standard', 'replacement']);
|
|
18356
|
+
|
|
18339
18357
|
T['io.flow.experience.v0.models.address_configuration'] = PropTypes.exact({
|
|
18340
18358
|
country: PropTypes.string.isRequired,
|
|
18341
18359
|
field_validation: T['io.flow.experience.v0.models.address_field_validation'].isRequired,
|
|
@@ -21382,6 +21400,10 @@ T['io.flow.label.v0.models.summary_shipping_label_form'] = PropTypes.exact({
|
|
|
21382
21400
|
center_key: PropTypes.string,
|
|
21383
21401
|
});
|
|
21384
21402
|
|
|
21403
|
+
T['io.flow.experience.v0.models.order_replacement_form'] = PropTypes.exact({
|
|
21404
|
+
items: PropTypes.arrayOf(T['io.flow.common.v0.models.line_item_form']),
|
|
21405
|
+
});
|
|
21406
|
+
|
|
21385
21407
|
T['io.flow.label.v0.models.shipping_label_package'] = PropTypes.exact({
|
|
21386
21408
|
dimensions: T['io.flow.common.v0.models.dimension'].isRequired,
|
|
21387
21409
|
items: PropTypes.arrayOf(T['io.flow.common.v0.models.line_item_form']).isRequired,
|
|
@@ -22223,6 +22245,7 @@ T['io.flow.internal.v0.unions.checkout_form'] = PropTypes.oneOfType([
|
|
|
22223
22245
|
]);
|
|
22224
22246
|
|
|
22225
22247
|
T['io.flow.experience.v0.models.order_put_form'] = PropTypes.exact({
|
|
22248
|
+
order_type: T['io.flow.experience.v0.enums.order_type'],
|
|
22226
22249
|
items: PropTypes.arrayOf(T['io.flow.common.v0.models.line_item_form']).isRequired,
|
|
22227
22250
|
customer: T['io.flow.common.v0.models.order_customer_form'],
|
|
22228
22251
|
delivered_duty: T['io.flow.common.v0.enums.delivered_duty'],
|
|
@@ -25381,6 +25404,7 @@ T['io.flow.experience.v0.models.order'] = PropTypes.exact({
|
|
|
25381
25404
|
discriminator: PropTypes.oneOf(['order']).isRequired,
|
|
25382
25405
|
id: PropTypes.string.isRequired,
|
|
25383
25406
|
number: PropTypes.string.isRequired,
|
|
25407
|
+
order_type: T['io.flow.experience.v0.enums.order_type'],
|
|
25384
25408
|
merchant_of_record: T['io.flow.common.v0.enums.order_merchant_of_record'],
|
|
25385
25409
|
experience: T['io.flow.experience.v0.unions.expandable_experience'],
|
|
25386
25410
|
customer: T['io.flow.common.v0.models.order_customer'].isRequired,
|
|
@@ -25507,6 +25531,12 @@ T['io.flow.experience.v0.models.order_version'] = PropTypes.exact({
|
|
|
25507
25531
|
order: T['io.flow.experience.v0.models.order'].isRequired,
|
|
25508
25532
|
});
|
|
25509
25533
|
|
|
25534
|
+
T['io.flow.experience.v0.models.order_replacement'] = PropTypes.exact({
|
|
25535
|
+
id: PropTypes.string.isRequired,
|
|
25536
|
+
parent_order: T['io.flow.experience.v0.models.order'].isRequired,
|
|
25537
|
+
replacement_order: T['io.flow.experience.v0.models.order'].isRequired,
|
|
25538
|
+
});
|
|
25539
|
+
|
|
25510
25540
|
T['io.flow.experience.v0.unions.expandable_order'] = PropTypes.oneOfType([
|
|
25511
25541
|
T['io.flow.experience.v0.models.order'],
|
|
25512
25542
|
T['io.flow.experience.v0.models.order_reference'],
|
|
@@ -29155,6 +29185,7 @@ export const checkoutPaypalAuthorizationPayload = T['io.flow.internal.v0.models.
|
|
|
29155
29185
|
export const checkoutPlatformData = T['io.flow.internal.v0.models.checkout_platform_data'];
|
|
29156
29186
|
export const checkoutPredictionInputs = T['io.flow.internal.v0.models.checkout_prediction_inputs'];
|
|
29157
29187
|
export const checkoutPrice = T['io.flow.internal.v0.unions.checkout_price'];
|
|
29188
|
+
export const checkoutPriceEstimated = T['io.flow.internal.v0.models.checkout_price_estimated'];
|
|
29158
29189
|
export const checkoutPriceFree = T['io.flow.internal.v0.models.checkout_price_free'];
|
|
29159
29190
|
export const checkoutPriceIncluded = T['io.flow.internal.v0.models.checkout_price_included'];
|
|
29160
29191
|
export const checkoutPriceNotYetKnown = T['io.flow.internal.v0.models.checkout_price_not_yet_known'];
|