@flowio/api-internal-prop-types 9.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-internal-prop-types",
3
- "version": "9.13.0",
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": "462c26f90ea96f2f4a3a44d1d71ebeb3238f1239"
33
+ "gitHead": "a4321688f5d9b572fdb67816ecbbfb830b2a5ea0"
34
34
  }
@@ -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;
@@ -14848,6 +14861,8 @@ declare namespace io.flow.checkout.backend.v0.enums {
14848
14861
  declare namespace io.flow.checkout.backend.v0.models {
14849
14862
  interface CheckoutAddress {
14850
14863
  readonly 'name'?: string;
14864
+ readonly 'first_name'?: string;
14865
+ readonly 'last_name'?: string;
14851
14866
  readonly 'country'?: string;
14852
14867
  readonly 'streets'?: string[];
14853
14868
  readonly 'city'?: string;
@@ -15228,6 +15243,13 @@ declare namespace io.flow.checkout.backend.v0.models {
15228
15243
  readonly 'address_prediction_metadata'?: io.flow.checkout.backend.v0.models.CheckoutAddressPredictionMetadata;
15229
15244
  }
15230
15245
 
15246
+ interface CheckoutPriceEstimated {
15247
+ readonly 'discriminator': 'estimated';
15248
+ readonly 'amount': number;
15249
+ readonly 'currency': string;
15250
+ readonly 'label': string;
15251
+ }
15252
+
15231
15253
  interface CheckoutPriceFree {
15232
15254
  readonly 'discriminator': 'free';
15233
15255
  readonly 'placeholder'?: string;
@@ -15266,6 +15288,10 @@ declare namespace io.flow.checkout.backend.v0.models {
15266
15288
  readonly 'deliveries': io.flow.checkout.backend.v0.models.CheckoutOrderDeliveries;
15267
15289
  }
15268
15290
 
15291
+ interface CheckoutUrlParameters {
15292
+ readonly 'confirmation_url'?: string;
15293
+ }
15294
+
15269
15295
  interface InternalAvailableDelivery {
15270
15296
  readonly 'id': string;
15271
15297
  readonly 'items': io.flow.fulfillment.v0.models.DeliveryItem[];
@@ -15296,7 +15322,7 @@ declare namespace io.flow.checkout.backend.v0.unions {
15296
15322
  type CheckoutOrderPromotion = (io.flow.checkout.backend.v0.models.CheckoutOrderPromotionDiscount | io.flow.checkout.backend.v0.models.CheckoutOrderPromotionFreeShipping);
15297
15323
  type CheckoutPaymentActionRequirement = (io.flow.checkout.backend.v0.models.CheckoutRedirectAuthorizationRequirement | io.flow.checkout.backend.v0.models.CheckoutInlineAuthorizationRequirement | io.flow.checkout.backend.v0.models.CheckoutDirectAuthorizationRequirement);
15298
15324
  type CheckoutPaymentDetailsForm = (io.flow.checkout.backend.v0.models.CheckoutPaypalAuthorizationPayload | io.flow.checkout.backend.v0.models.CheckoutGooglePayAuthorizationPayload | io.flow.checkout.backend.v0.models.CheckoutCreditPaymentPayload);
15299
- 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);
15300
15326
  }
15301
15327
 
15302
15328
  declare namespace io.flow.organization.v0.enums {
@@ -17387,6 +17413,8 @@ declare namespace io.flow.internal.v0.models {
17387
17413
 
17388
17414
  interface CheckoutAddress {
17389
17415
  readonly 'name'?: string;
17416
+ readonly 'first_name'?: string;
17417
+ readonly 'last_name'?: string;
17390
17418
  readonly 'country'?: string;
17391
17419
  readonly 'streets'?: string[];
17392
17420
  readonly 'city'?: string;
@@ -18484,6 +18512,13 @@ declare namespace io.flow.internal.v0.models {
18484
18512
  readonly 'address_prediction_metadata'?: io.flow.internal.v0.models.CheckoutAddressPredictionMetadata;
18485
18513
  }
18486
18514
 
18515
+ interface CheckoutPriceEstimated {
18516
+ readonly 'discriminator': 'estimated';
18517
+ readonly 'amount': number;
18518
+ readonly 'currency': string;
18519
+ readonly 'label': string;
18520
+ }
18521
+
18487
18522
  interface CheckoutPriceFree {
18488
18523
  readonly 'discriminator': 'free';
18489
18524
  readonly 'placeholder'?: string;
@@ -19106,6 +19141,10 @@ declare namespace io.flow.internal.v0.models {
19106
19141
  readonly 'type': io.flow.internal.v0.enums.CheckoutUrlType;
19107
19142
  }
19108
19143
 
19144
+ interface CheckoutUrlParameters {
19145
+ readonly 'confirmation_url'?: string;
19146
+ }
19147
+
19109
19148
  interface Cipher {
19110
19149
  readonly 'id': string;
19111
19150
  readonly 'attributes': Record<string, string>;
@@ -24908,7 +24947,7 @@ declare namespace io.flow.internal.v0.unions {
24908
24947
  type CheckoutOrderPromotion = (io.flow.internal.v0.models.CheckoutOrderPromotionDiscount | io.flow.internal.v0.models.CheckoutOrderPromotionFreeShipping);
24909
24948
  type CheckoutPaymentActionRequirement = (io.flow.internal.v0.models.CheckoutRedirectAuthorizationRequirement | io.flow.internal.v0.models.CheckoutInlineAuthorizationRequirement | io.flow.internal.v0.models.CheckoutDirectAuthorizationRequirement);
24910
24949
  type CheckoutPaymentDetailsForm = (io.flow.internal.v0.models.CheckoutPaypalAuthorizationPayload | io.flow.internal.v0.models.CheckoutGooglePayAuthorizationPayload | io.flow.internal.v0.models.CheckoutCreditPaymentPayload);
24911
- 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);
24912
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);
24913
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);
24914
24953
  type CheckoutSequencedAddAuthorizationResponse = (io.flow.internal.v0.models.CheckoutSequencedAddAuthorizationResponseError | io.flow.internal.v0.models.CheckoutSequencedAddAuthorizationResponseSuccess);
@@ -25540,6 +25579,7 @@ export const checkoutPaymentMethodIssuer: PropTypes.Requireable<io.flow.internal
25540
25579
  export const checkoutPaypalAuthorizationPayload: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutPaypalAuthorizationPayload>;
25541
25580
  export const checkoutPlatformData: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutPlatformData>;
25542
25581
  export const checkoutPredictionInputs: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutPredictionInputs>;
25582
+ export const checkoutPriceEstimated: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutPriceEstimated>;
25543
25583
  export const checkoutPriceFree: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutPriceFree>;
25544
25584
  export const checkoutPriceIncluded: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutPriceIncluded>;
25545
25585
  export const checkoutPriceNotYetKnown: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutPriceNotYetKnown>;
@@ -25657,6 +25697,7 @@ export const checkoutSubmitOrderBundle: PropTypes.Requireable<io.flow.internal.v
25657
25697
  export const checkoutSubmitOrderForm: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutSubmitOrderForm>;
25658
25698
  export const checkoutSubmittedOrder: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutSubmittedOrder>;
25659
25699
  export const checkoutUrl: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutUrl>;
25700
+ export const checkoutUrlParameters: PropTypes.Requireable<io.flow.internal.v0.models.CheckoutUrlParameters>;
25660
25701
  export const cipher: PropTypes.Requireable<io.flow.internal.v0.models.Cipher>;
25661
25702
  export const cipherForm: PropTypes.Requireable<io.flow.internal.v0.models.CipherForm>;
25662
25703
  export const cipherReference: PropTypes.Requireable<io.flow.internal.v0.models.CipherReference>;
@@ -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,
@@ -15376,6 +15383,8 @@ T['io.flow.checkout.backend.v0.models.checkout_initiate_inline_payment_form'] =
15376
15383
 
15377
15384
  T['io.flow.checkout.backend.v0.models.checkout_address'] = PropTypes.exact({
15378
15385
  name: PropTypes.string,
15386
+ first_name: PropTypes.string,
15387
+ last_name: PropTypes.string,
15379
15388
  country: PropTypes.string,
15380
15389
  streets: PropTypes.arrayOf(PropTypes.string),
15381
15390
  city: PropTypes.string,
@@ -15901,6 +15910,8 @@ T['io.flow.payment.v0.unions.payment_source_form'] = PropTypes.oneOfType([T['io.
15901
15910
 
15902
15911
  T['io.flow.internal.v0.models.checkout_address'] = PropTypes.exact({
15903
15912
  name: PropTypes.string,
15913
+ first_name: PropTypes.string,
15914
+ last_name: PropTypes.string,
15904
15915
  country: PropTypes.string,
15905
15916
  streets: PropTypes.arrayOf(PropTypes.string),
15906
15917
  city: PropTypes.string,
@@ -15964,6 +15975,13 @@ T['io.flow.field.validation.v0.models.field_validation_required'] = PropTypes.ex
15964
15975
  placeholder: PropTypes.string,
15965
15976
  });
15966
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
+
15967
15985
  T['io.flow.internal.v0.models.checkout_price_included'] = PropTypes.exact({
15968
15986
  discriminator: PropTypes.oneOf(['included']).isRequired,
15969
15987
  placeholder: PropTypes.string,
@@ -16059,6 +16077,7 @@ T['io.flow.internal.v0.unions.checkout_price'] = PropTypes.oneOfType([
16059
16077
  T['io.flow.internal.v0.models.checkout_price_not_yet_known'],
16060
16078
  T['io.flow.internal.v0.models.checkout_price_included'],
16061
16079
  T['io.flow.internal.v0.models.checkout_price_standard'],
16080
+ T['io.flow.internal.v0.models.checkout_price_estimated'],
16062
16081
  ]);
16063
16082
 
16064
16083
  T['io.flow.internal.v0.models.checkout_order_summary_shipping_surcharges'] = PropTypes.exact({
@@ -16538,6 +16557,7 @@ T['io.flow.checkout.backend.v0.unions.checkout_price'] = PropTypes.oneOfType([
16538
16557
  T['io.flow.checkout.backend.v0.models.checkout_price_not_yet_known'],
16539
16558
  T['io.flow.checkout.backend.v0.models.checkout_price_included'],
16540
16559
  T['io.flow.checkout.backend.v0.models.checkout_price_standard'],
16560
+ T['io.flow.checkout.backend.v0.models.checkout_price_estimated'],
16541
16561
  ]);
16542
16562
 
16543
16563
  T['io.flow.checkout.backend.v0.models.checkout_order_summary_shipping_surcharges'] = PropTypes.exact({
@@ -18332,6 +18352,8 @@ T['io.flow.payment.v0.models.card_metadata'] = PropTypes.exact({
18332
18352
  merchant_of_record: T['io.flow.common.v0.enums.order_merchant_of_record'],
18333
18353
  });
18334
18354
 
18355
+ T['io.flow.experience.v0.enums.order_type'] = PropTypes.oneOf(['standard', 'replacement']);
18356
+
18335
18357
  T['io.flow.experience.v0.models.address_configuration'] = PropTypes.exact({
18336
18358
  country: PropTypes.string.isRequired,
18337
18359
  field_validation: T['io.flow.experience.v0.models.address_field_validation'].isRequired,
@@ -21378,6 +21400,10 @@ T['io.flow.label.v0.models.summary_shipping_label_form'] = PropTypes.exact({
21378
21400
  center_key: PropTypes.string,
21379
21401
  });
21380
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
+
21381
21407
  T['io.flow.label.v0.models.shipping_label_package'] = PropTypes.exact({
21382
21408
  dimensions: T['io.flow.common.v0.models.dimension'].isRequired,
21383
21409
  items: PropTypes.arrayOf(T['io.flow.common.v0.models.line_item_form']).isRequired,
@@ -22219,6 +22245,7 @@ T['io.flow.internal.v0.unions.checkout_form'] = PropTypes.oneOfType([
22219
22245
  ]);
22220
22246
 
22221
22247
  T['io.flow.experience.v0.models.order_put_form'] = PropTypes.exact({
22248
+ order_type: T['io.flow.experience.v0.enums.order_type'],
22222
22249
  items: PropTypes.arrayOf(T['io.flow.common.v0.models.line_item_form']).isRequired,
22223
22250
  customer: T['io.flow.common.v0.models.order_customer_form'],
22224
22251
  delivered_duty: T['io.flow.common.v0.enums.delivered_duty'],
@@ -25377,6 +25404,7 @@ T['io.flow.experience.v0.models.order'] = PropTypes.exact({
25377
25404
  discriminator: PropTypes.oneOf(['order']).isRequired,
25378
25405
  id: PropTypes.string.isRequired,
25379
25406
  number: PropTypes.string.isRequired,
25407
+ order_type: T['io.flow.experience.v0.enums.order_type'],
25380
25408
  merchant_of_record: T['io.flow.common.v0.enums.order_merchant_of_record'],
25381
25409
  experience: T['io.flow.experience.v0.unions.expandable_experience'],
25382
25410
  customer: T['io.flow.common.v0.models.order_customer'].isRequired,
@@ -25503,6 +25531,12 @@ T['io.flow.experience.v0.models.order_version'] = PropTypes.exact({
25503
25531
  order: T['io.flow.experience.v0.models.order'].isRequired,
25504
25532
  });
25505
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
+
25506
25540
  T['io.flow.experience.v0.unions.expandable_order'] = PropTypes.oneOfType([
25507
25541
  T['io.flow.experience.v0.models.order'],
25508
25542
  T['io.flow.experience.v0.models.order_reference'],
@@ -26655,6 +26689,10 @@ T['io.flow.internal.v0.models.checkout_stream_error'] = PropTypes.exact({
26655
26689
  message: PropTypes.string.isRequired,
26656
26690
  });
26657
26691
 
26692
+ T['io.flow.internal.v0.models.checkout_url_parameters'] = PropTypes.exact({
26693
+ confirmation_url: PropTypes.string,
26694
+ });
26695
+
26658
26696
  T['io.flow.internal.v0.models.cipher'] = PropTypes.exact({
26659
26697
  id: PropTypes.string.isRequired,
26660
26698
  attributes: PropTypes.objectOf(PropTypes.string).isRequired,
@@ -28651,6 +28689,10 @@ T['io.flow.checkout.backend.v0.enums.pregen_data_key_field'] = PropTypes.oneOf([
28651
28689
  'delivery_option_id',
28652
28690
  ]);
28653
28691
 
28692
+ T['io.flow.checkout.backend.v0.models.checkout_url_parameters'] = PropTypes.exact({
28693
+ confirmation_url: PropTypes.string,
28694
+ });
28695
+
28654
28696
  T['io.flow.organization.v0.models.organization_default_configurations_form'] = PropTypes.exact({
28655
28697
  id: PropTypes.string.isRequired,
28656
28698
  });
@@ -29143,6 +29185,7 @@ export const checkoutPaypalAuthorizationPayload = T['io.flow.internal.v0.models.
29143
29185
  export const checkoutPlatformData = T['io.flow.internal.v0.models.checkout_platform_data'];
29144
29186
  export const checkoutPredictionInputs = T['io.flow.internal.v0.models.checkout_prediction_inputs'];
29145
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'];
29146
29189
  export const checkoutPriceFree = T['io.flow.internal.v0.models.checkout_price_free'];
29147
29190
  export const checkoutPriceIncluded = T['io.flow.internal.v0.models.checkout_price_included'];
29148
29191
  export const checkoutPriceNotYetKnown = T['io.flow.internal.v0.models.checkout_price_not_yet_known'];
@@ -29325,6 +29368,7 @@ export const checkoutSubmitOrderForm = T['io.flow.internal.v0.models.checkout_su
29325
29368
  export const checkoutSubmitOrderForms = T['io.flow.internal.v0.unions.checkout_submit_order_forms'];
29326
29369
  export const checkoutSubmittedOrder = T['io.flow.internal.v0.models.checkout_submitted_order'];
29327
29370
  export const checkoutUrl = T['io.flow.internal.v0.models.checkout_url'];
29371
+ export const checkoutUrlParameters = T['io.flow.internal.v0.models.checkout_url_parameters'];
29328
29372
  export const checkoutUrlType = T['io.flow.internal.v0.enums.checkout_url_type'];
29329
29373
  export const cipher = T['io.flow.internal.v0.models.cipher'];
29330
29374
  export const cipherForm = T['io.flow.internal.v0.models.cipher_form'];