@flowio/api-internal-prop-types 9.15.2 → 9.16.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-internal-prop-types",
3
- "version": "9.15.2",
3
+ "version": "9.16.1",
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": "de096f16a03eb9ee19da8f28f9c85a721d809abd"
33
+ "gitHead": "fbd4b0964f2c1283e416a565a6ca2966a727ef63"
34
34
  }
@@ -366,6 +366,40 @@ declare namespace io.flow.experience.v0.models {
366
366
  readonly 'not_included': io.flow.experience.v0.unions.AllocationComponent[];
367
367
  }
368
368
 
369
+ interface AllocationLineSummary {
370
+ readonly 'line_items': io.flow.experience.v0.models.AllocationLineSummaryLineItem[];
371
+ readonly 'shipping': io.flow.experience.v0.models.AllocationLineSummaryShipping;
372
+ readonly 'subtotal': io.flow.common.v0.models.MoneyWithBase;
373
+ readonly 'discount': io.flow.common.v0.models.MoneyWithBase;
374
+ readonly 'duties': io.flow.common.v0.models.MoneyWithBase;
375
+ readonly 'tax': io.flow.common.v0.models.MoneyWithBase;
376
+ readonly 'tax_subsidy': io.flow.common.v0.models.MoneyWithBase;
377
+ readonly 'duties_subsidy': io.flow.common.v0.models.MoneyWithBase;
378
+ readonly 'total': io.flow.common.v0.models.MoneyWithBase;
379
+ }
380
+
381
+ interface AllocationLineSummaryLineItem {
382
+ readonly 'item_number': string;
383
+ readonly 'line_number': string;
384
+ readonly 'subtotal': io.flow.common.v0.models.MoneyWithBase;
385
+ readonly 'discount': io.flow.common.v0.models.MoneyWithBase;
386
+ readonly 'duties': io.flow.common.v0.models.MoneyWithBase;
387
+ readonly 'tax': io.flow.common.v0.models.MoneyWithBase;
388
+ readonly 'tax_subsidy': io.flow.common.v0.models.MoneyWithBase;
389
+ readonly 'duties_subsidy': io.flow.common.v0.models.MoneyWithBase;
390
+ readonly 'total': io.flow.common.v0.models.MoneyWithBase;
391
+ }
392
+
393
+ interface AllocationLineSummaryShipping {
394
+ readonly 'subtotal': io.flow.common.v0.models.MoneyWithBase;
395
+ readonly 'discount': io.flow.common.v0.models.MoneyWithBase;
396
+ readonly 'duties': io.flow.common.v0.models.MoneyWithBase;
397
+ readonly 'tax': io.flow.common.v0.models.MoneyWithBase;
398
+ readonly 'tax_subsidy': io.flow.common.v0.models.MoneyWithBase;
399
+ readonly 'duties_subsidy': io.flow.common.v0.models.MoneyWithBase;
400
+ readonly 'total': io.flow.common.v0.models.MoneyWithBase;
401
+ }
402
+
369
403
  interface AllocationOrderDetail {
370
404
  readonly 'discriminator': 'allocation_order_detail';
371
405
  readonly 'key': io.flow.order.price.v0.enums.OrderPriceDetailKey;
@@ -1458,6 +1492,32 @@ declare namespace io.flow.shopify.xborder.v0.models {
1458
1492
  readonly 'tax_lines': io.flow.shopify.xborder.v0.models.ShopifyOrderTaxLine[];
1459
1493
  }
1460
1494
 
1495
+ interface ShopifyOrderEdit {
1496
+ readonly 'id': number;
1497
+ readonly 'created_at': string;
1498
+ readonly 'notify_customer': boolean;
1499
+ readonly 'order_id': number;
1500
+ readonly 'staff_note': string;
1501
+ readonly 'user_id'?: number;
1502
+ readonly 'line_items': io.flow.shopify.xborder.v0.models.ShopifyOrderEditLineItems;
1503
+ readonly 'discounts': any/*object*/;
1504
+ readonly 'shipping_lines': any/*object*/;
1505
+ }
1506
+
1507
+ interface ShopifyOrderEditLineItems {
1508
+ readonly 'additions': io.flow.shopify.xborder.v0.models.ShopifyOrderEditLineItemsChange[];
1509
+ readonly 'removals': io.flow.shopify.xborder.v0.models.ShopifyOrderEditLineItemsChange[];
1510
+ }
1511
+
1512
+ interface ShopifyOrderEditLineItemsChange {
1513
+ readonly 'id': number;
1514
+ readonly 'delta': number;
1515
+ }
1516
+
1517
+ interface ShopifyOrderEditWrapper {
1518
+ readonly 'order_edit': io.flow.shopify.xborder.v0.models.ShopifyOrderEdit;
1519
+ }
1520
+
1461
1521
  interface ShopifyOrderFulfillment {
1462
1522
  readonly 'created_at'?: string;
1463
1523
  readonly 'id'?: number;
@@ -9512,14 +9572,14 @@ declare namespace io.flow.label.internal.v0.models {
9512
9572
  readonly 'carrier': io.flow.fulfillment.v0.models.CarrierReference;
9513
9573
  readonly 'credentials': io.flow.tracking.internal.v0.unions.CarrierCredentials;
9514
9574
  readonly 'q'?: string;
9515
- readonly 'position'?: number;
9575
+ readonly 'position': number;
9516
9576
  }
9517
9577
 
9518
9578
  interface CarrierAccountForm {
9519
9579
  readonly 'carrier_id': string;
9520
9580
  readonly 'credentials': io.flow.tracking.internal.v0.unions.CarrierCredentials;
9521
9581
  readonly 'q'?: string;
9522
- readonly 'position'?: number;
9582
+ readonly 'position': number;
9523
9583
  }
9524
9584
 
9525
9585
  interface CarrierInvoice {
@@ -12261,7 +12321,7 @@ declare namespace io.flow.checkout.protocol.v0.enums {
12261
12321
  type CheckoutInfoOrderSummaryKeyField = 'shipping_country' | 'shipping_province' | 'shipping_postal' | 'delivery_option_id';
12262
12322
  type CheckoutInfoPaymentDetailsKeyField = 'value' | 'currency' | 'payment_method_id';
12263
12323
  type CheckoutInfoPaymentsFormDataKeyField = 'value' | 'currency' | 'shipping_country';
12264
- type CheckoutInfoTranslationsKeyField = 'locale';
12324
+ type CheckoutInfoTranslationsKeyField = 'language';
12265
12325
  type CheckoutInitiatePaymentErrorCode = 'payment_failed' | 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance' | 'address_street1_required';
12266
12326
  type CheckoutPaymentAuthorizationParametersErrorCode = 'order_balance_not_available';
12267
12327
  type CheckoutSetAddressCityErrorCode = 'address_city_invalid' | 'address_city_required';
@@ -16204,7 +16264,7 @@ declare namespace io.flow.internal.v0.enums {
16204
16264
  type CheckoutInfoOrderSummaryKeyField = 'shipping_country' | 'shipping_province' | 'shipping_postal' | 'delivery_option_id';
16205
16265
  type CheckoutInfoPaymentDetailsKeyField = 'value' | 'currency' | 'payment_method_id';
16206
16266
  type CheckoutInfoPaymentsFormDataKeyField = 'value' | 'currency' | 'shipping_country';
16207
- type CheckoutInfoTranslationsKeyField = 'locale';
16267
+ type CheckoutInfoTranslationsKeyField = 'language';
16208
16268
  type CheckoutInitiatePaymentErrorCode = 'payment_failed' | 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance' | 'address_street1_required';
16209
16269
  type CheckoutLineErrorCode = 'line_quantity_invalid' | 'line_item_number_invalid' | 'line_item_number_not_available' | 'line_value_threshold_exceeded';
16210
16270
  type CheckoutPaymentAuthorizationParametersErrorCode = 'order_balance_not_available';
@@ -1453,7 +1453,7 @@ T['io.flow.checkout.protocol.v0.models.checkout_initiate_payment_error'] = PropT
1453
1453
  message: PropTypes.string.isRequired,
1454
1454
  });
1455
1455
 
1456
- T['io.flow.checkout.protocol.v0.enums.checkout_info_translations_key_field'] = PropTypes.oneOf(['locale']);
1456
+ T['io.flow.checkout.protocol.v0.enums.checkout_info_translations_key_field'] = PropTypes.oneOf(['language']);
1457
1457
 
1458
1458
  T['io.flow.checkout.protocol.v0.models.checkout_info_translations_key'] = PropTypes.exact({
1459
1459
  field: T['io.flow.checkout.protocol.v0.enums.checkout_info_translations_key_field'].isRequired,
@@ -7974,6 +7974,38 @@ T['io.flow.shopify.xborder.v0.models.shopify_webhook_request_wrapper'] = PropTyp
7974
7974
  });
7975
7975
 
7976
7976
  T['io.flow.shopify.xborder.v0.enums.shopify_order_restock_type'] = PropTypes.oneOf(['no_restock', 'cancel', 'return']);
7977
+
7978
+ T['io.flow.shopify.xborder.v0.models.shopify_order_edit_line_items_change'] = PropTypes.exact({
7979
+ id: PropTypes.number.isRequired,
7980
+ delta: PropTypes.number.isRequired,
7981
+ });
7982
+
7983
+ T['io.flow.shopify.xborder.v0.models.shopify_order_edit_line_items'] = PropTypes.exact({
7984
+ additions: PropTypes.arrayOf(
7985
+ T['io.flow.shopify.xborder.v0.models.shopify_order_edit_line_items_change'],
7986
+ ).isRequired,
7987
+
7988
+ removals: PropTypes.arrayOf(
7989
+ T['io.flow.shopify.xborder.v0.models.shopify_order_edit_line_items_change'],
7990
+ ).isRequired,
7991
+ });
7992
+
7993
+ T['io.flow.shopify.xborder.v0.models.shopify_order_edit'] = PropTypes.exact({
7994
+ id: PropTypes.number.isRequired,
7995
+ created_at: PropTypes.string.isRequired,
7996
+ notify_customer: PropTypes.bool.isRequired,
7997
+ order_id: PropTypes.number.isRequired,
7998
+ staff_note: PropTypes.string.isRequired,
7999
+ user_id: PropTypes.number,
8000
+ line_items: T['io.flow.shopify.xborder.v0.models.shopify_order_edit_line_items'].isRequired,
8001
+ discounts: PropTypes.object.isRequired,
8002
+ shipping_lines: PropTypes.object.isRequired,
8003
+ });
8004
+
8005
+ T['io.flow.shopify.xborder.v0.models.shopify_order_edit_wrapper'] = PropTypes.exact({
8006
+ order_edit: T['io.flow.shopify.xborder.v0.models.shopify_order_edit'].isRequired,
8007
+ });
8008
+
7977
8009
  T['io.flow.shopify.xborder.v0.enums.shopify_order_value_type'] = PropTypes.oneOf(['string', 'integer']);
7978
8010
 
7979
8011
  T['io.flow.shopify.xborder.v0.models.shopify_order_metafield_form'] = PropTypes.exact({
@@ -16528,7 +16560,7 @@ T['io.flow.internal.v0.unions.checkout_initiate_payment_form'] = PropTypes.oneOf
16528
16560
  T['io.flow.internal.v0.models.checkout_initiate_direct_payment_form'],
16529
16561
  ]);
16530
16562
 
16531
- T['io.flow.internal.v0.enums.checkout_info_translations_key_field'] = PropTypes.oneOf(['locale']);
16563
+ T['io.flow.internal.v0.enums.checkout_info_translations_key_field'] = PropTypes.oneOf(['language']);
16532
16564
 
16533
16565
  T['io.flow.internal.v0.models.checkout_info_translations_key'] = PropTypes.exact({
16534
16566
  field: T['io.flow.internal.v0.enums.checkout_info_translations_key_field'].isRequired,
@@ -20272,6 +20304,40 @@ T['io.flow.common.v0.models.money_with_base'] = PropTypes.exact({
20272
20304
  base: T['io.flow.common.v0.models.money'].isRequired,
20273
20305
  });
20274
20306
 
20307
+ T['io.flow.experience.v0.models.allocation_line_summary_shipping'] = PropTypes.exact({
20308
+ subtotal: T['io.flow.common.v0.models.money_with_base'].isRequired,
20309
+ discount: T['io.flow.common.v0.models.money_with_base'].isRequired,
20310
+ duties: T['io.flow.common.v0.models.money_with_base'].isRequired,
20311
+ tax: T['io.flow.common.v0.models.money_with_base'].isRequired,
20312
+ tax_subsidy: T['io.flow.common.v0.models.money_with_base'].isRequired,
20313
+ duties_subsidy: T['io.flow.common.v0.models.money_with_base'].isRequired,
20314
+ total: T['io.flow.common.v0.models.money_with_base'].isRequired,
20315
+ });
20316
+
20317
+ T['io.flow.experience.v0.models.allocation_line_summary_line_item'] = PropTypes.exact({
20318
+ item_number: PropTypes.string.isRequired,
20319
+ line_number: PropTypes.string.isRequired,
20320
+ subtotal: T['io.flow.common.v0.models.money_with_base'].isRequired,
20321
+ discount: T['io.flow.common.v0.models.money_with_base'].isRequired,
20322
+ duties: T['io.flow.common.v0.models.money_with_base'].isRequired,
20323
+ tax: T['io.flow.common.v0.models.money_with_base'].isRequired,
20324
+ tax_subsidy: T['io.flow.common.v0.models.money_with_base'].isRequired,
20325
+ duties_subsidy: T['io.flow.common.v0.models.money_with_base'].isRequired,
20326
+ total: T['io.flow.common.v0.models.money_with_base'].isRequired,
20327
+ });
20328
+
20329
+ T['io.flow.experience.v0.models.allocation_line_summary'] = PropTypes.exact({
20330
+ line_items: PropTypes.arrayOf(T['io.flow.experience.v0.models.allocation_line_summary_line_item']).isRequired,
20331
+ shipping: T['io.flow.experience.v0.models.allocation_line_summary_shipping'].isRequired,
20332
+ subtotal: T['io.flow.common.v0.models.money_with_base'].isRequired,
20333
+ discount: T['io.flow.common.v0.models.money_with_base'].isRequired,
20334
+ duties: T['io.flow.common.v0.models.money_with_base'].isRequired,
20335
+ tax: T['io.flow.common.v0.models.money_with_base'].isRequired,
20336
+ tax_subsidy: T['io.flow.common.v0.models.money_with_base'].isRequired,
20337
+ duties_subsidy: T['io.flow.common.v0.models.money_with_base'].isRequired,
20338
+ total: T['io.flow.common.v0.models.money_with_base'].isRequired,
20339
+ });
20340
+
20275
20341
  T['io.flow.tax.internal.v0.models.liability_remittance_plan'] = PropTypes.exact({
20276
20342
  id: PropTypes.string.isRequired,
20277
20343
  organization: PropTypes.string.isRequired,
@@ -20895,7 +20961,7 @@ T['io.flow.label.internal.v0.models.carrier_account_form'] = PropTypes.exact({
20895
20961
  carrier_id: PropTypes.string.isRequired,
20896
20962
  credentials: T['io.flow.tracking.internal.v0.unions.carrier_credentials'].isRequired,
20897
20963
  q: PropTypes.string,
20898
- position: PropTypes.number,
20964
+ position: PropTypes.number.isRequired,
20899
20965
  });
20900
20966
 
20901
20967
  T['io.flow.tracking.internal.v0.models.tracking_request'] = PropTypes.exact({
@@ -20944,7 +21010,7 @@ T['io.flow.label.internal.v0.models.carrier_account'] = PropTypes.exact({
20944
21010
  carrier: T['io.flow.fulfillment.v0.models.carrier_reference'].isRequired,
20945
21011
  credentials: T['io.flow.tracking.internal.v0.unions.carrier_credentials'].isRequired,
20946
21012
  q: PropTypes.string,
20947
- position: PropTypes.number,
21013
+ position: PropTypes.number.isRequired,
20948
21014
  });
20949
21015
 
20950
21016
  T['io.flow.internal.v0.models.carrier_account_upserted'] = PropTypes.exact({