@flowio/types 0.0.14 → 2.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Flow Commerce
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1976,6 +1976,7 @@ declare namespace io.flow.shopify.external.v0.models {
1976
1976
  readonly taxable: boolean;
1977
1977
  readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
1978
1978
  readonly total_discount?: string;
1979
+ readonly id?: number;
1979
1980
  }
1980
1981
  interface ShopifyLineLevelDiscountAllocation {
1981
1982
  readonly amount: number;
@@ -3572,6 +3573,7 @@ declare namespace io.flow.search.v0.unions {
3572
3573
  declare namespace io.flow.harmonization.internal.v0.enums {
3573
3574
  type ItemClassificationAction = 'ACCEPT' | 'MANUAL' | 'REJECT';
3574
3575
  type ItemClassificationStatus = 'Unclassified' | 'Suggested' | 'Classified';
3576
+ type ItemType = 'standard' | 'multi_product';
3575
3577
  }
3576
3578
  declare namespace io.flow.harmonization.internal.v0.models {
3577
3579
  interface BlacklistedItem {
@@ -3679,6 +3681,44 @@ declare namespace io.flow.harmonization.internal.v0.models {
3679
3681
  [key: string]: io.flow.harmonization.internal.v0.models.TariffCodeDuty;
3680
3682
  };
3681
3683
  }
3684
+ interface ItemHarmonizationSummary {
3685
+ readonly organization_id: string;
3686
+ readonly item_id: string;
3687
+ readonly item_number: string;
3688
+ readonly customs_description?: string;
3689
+ readonly origin: string;
3690
+ readonly hs6?: string;
3691
+ readonly tariff_code?: string;
3692
+ readonly duty: io.flow.price.v0.models.Duty;
3693
+ readonly price_composition_rate: number;
3694
+ readonly duty_composition_rate: number;
3695
+ }
3696
+ interface MultiProductItem {
3697
+ readonly item_id: string;
3698
+ readonly item_number: string;
3699
+ readonly product_id?: string;
3700
+ readonly organization_id: string;
3701
+ readonly sub_items: io.flow.harmonization.internal.v0.models.MultiProductSubItem[];
3702
+ }
3703
+ interface MultiProductItemForm {
3704
+ readonly sub_item_forms: io.flow.harmonization.internal.v0.models.MultiProductSubItemForm[];
3705
+ }
3706
+ interface MultiProductSubItem {
3707
+ readonly id: string;
3708
+ readonly origin: string;
3709
+ readonly composition_proportion: number;
3710
+ readonly description: string;
3711
+ readonly hs6_code?: string;
3712
+ readonly phrase_id?: string;
3713
+ readonly customs_description?: string;
3714
+ readonly classification_status: io.flow.harmonization.internal.v0.enums.ItemClassificationStatus;
3715
+ }
3716
+ interface MultiProductSubItemForm {
3717
+ readonly composition_proportion: number;
3718
+ readonly origin: string;
3719
+ readonly description: string;
3720
+ readonly customs_description: string;
3721
+ }
3682
3722
  interface ProductClassificationForm {
3683
3723
  readonly organization_id: string;
3684
3724
  readonly product_id: string;
@@ -3717,6 +3757,11 @@ declare namespace io.flow.harmonization.internal.v0.models {
3717
3757
  readonly destination: string;
3718
3758
  readonly code: string;
3719
3759
  }
3760
+ interface UnclassifiedProductsForm {
3761
+ readonly organization_id: string;
3762
+ readonly product_id: string;
3763
+ readonly ignore?: boolean;
3764
+ }
3720
3765
  interface UnphrasedProductsExport {
3721
3766
  readonly message: string;
3722
3767
  }
@@ -8930,6 +8975,7 @@ declare namespace io.flow.adyen.v0.models {
8930
8975
  readonly selectedBrand?: string;
8931
8976
  readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
8932
8977
  readonly threeDS2RequestData?: io.flow.adyen.v0.models.Threeds2RequestData;
8978
+ readonly recurringProcessingModel?: io.flow.adyen.v0.enums.RecurringProcessingModel;
8933
8979
  }
8934
8980
  interface AuthorizeRequest3D {
8935
8981
  readonly merchantAccount: string;
@@ -9874,7 +9920,7 @@ declare namespace io.flow.internal.v0.enums {
9874
9920
  type DutyCompoundExpressionType = 'sum' | 'max' | 'min';
9875
9921
  type DutyRateUnitOfMeasure = 'kg' | 'sq m' | 'item' | 'pair';
9876
9922
  type DutySimpleExpressionType = 'free' | 'percent' | 'per_uom' | 'flat';
9877
- type EventType = 'adyen_authorization_deleted' | 'adyen_authorization_upserted' | 'adyen_cancel_deleted' | 'adyen_cancel_upserted' | 'adyen_capture_deleted' | 'adyen_capture_upserted' | 'adyen_refund_deleted' | 'adyen_refund_upserted' | 'billing_statement_upserted' | 'billing_statement_deleted' | 'tax_remittance_transaction_upserted' | 'tax_remittance_transaction_deleted' | 'account_transactions_export_request' | 'account_orders_export_request' | 'carrier_account_upserted' | 'catalog_import_request' | 'catalog_item_region_availabilities_published' | 'checkout_configuration_upserted' | 'checkout_configuration_deleted' | 'product_classification_upserted' | 'product_classification_deleted' | 'localized_content_upserted' | 'localization_upserted' | 'rate_deleted' | 'rate_upserted' | 'spot_rate_deleted' | 'spot_rate_upserted' | 'organization_currency_settings_upserted' | 'organization_currency_settings_deleted' | 'rate_deleted_v2' | 'rate_upserted_v2' | 'customs_description_import' | 'customs_description_tariffs_import' | 'item_dimension_estimate_upserted' | 'item_dimension_estimate_deleted' | 'duty_rate_request' | 'duty_rate_bulk_request' | 'duty_raw_upserted' | 'duty_raw_bulk_upserted' | 'duty_rate_upserted' | 'duty_rate_response' | 'duty_rate_bulk_response' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'order_attribute_deleted' | 'order_attribute_upserted' | 'experience_export_request' | 'experience_import_request' | 'submitted_order_upserted' | 'experiment_upserted' | 'experiment_deleted' | 'experiment_results_upserted' | 'experiment_results_deleted' | 'export_completed' | 'export_failed' | 'fraud_review_upserted' | 'fraud_review_deleted' | 'fraud_pending_review_upserted' | 'fraud_pending_review_deleted' | 'fraud_review_decision_upserted' | 'fraud_review_decision_deleted' | 'ftp_file_upserted' | 'ftp_file_deleted' | 'ftp_file_to_process_uploaded' | 'pregenerated_quote_upserted' | 'pregenerated_quote_deleted' | 'pregenerated_request_event' | 'blacklisted_item_created' | 'blacklisted_item_updated' | 'blacklisted_item_deleted' | 'all_items_export' | 'harmonized_items_hs6_export' | 'unharmonized_items_export' | 'dutied_items_export' | 'landed_cost_export' | 'harmonization_phrase_suggestion_request_import' | 'harmonization_codes_import' | 'customs_description_sugestion_created' | 'harmonize_fully_with_rate' | 'item_harmonized' | 'harmonize_fully_request' | 'import_completed' | 'import_failed' | 'next_installment_upserted' | 'next_installment_deleted' | 'installment_upserted' | 'installment_deleted' | 'installment_program_upserted' | 'installment_program_deleted' | 'installment_plan_upserted' | 'installment_plan_deleted' | 'installment_plan_authorization_upserted' | 'installment_plan_authorization_deleted' | 'issuer_upserted' | 'issuer_deleted' | 'localized_item_upserted_v2' | 'localized_item_deleted' | 'localized_item_deleted_v2' | 'localized_item_snapshot' | 'localized_item_prices_export_request' | 'optin_prompt_upserted' | 'optin_prompt_deleted' | 'order_fulfillment_deleted' | 'order_fulfillment_upserted' | 'order_placed' | 'ready_to_fulfill' | 'fulfillment_cancel' | 'order_shipped' | 'items_shipped' | 'internal_authorization_upserted' | 'internal_authorization_deleted' | 'afterpay_authorization_upserted' | 'afterpay_authorization_deleted' | 'afterpay_capture_upserted' | 'afterpay_capture_deleted' | 'afterpay_refund_upserted' | 'afterpay_refund_deleted' | 'adyen_merchant_account_upserted' | 'adyen_merchant_account_deleted' | 'paypal_payment_deleted' | 'paypal_payment_upserted' | 'paypal_execution_deleted' | 'paypal_execution_upserted' | 'paypal_refund_deleted' | 'paypal_refund_upserted' | 'order_rates_published_v3' | 'ratecard_lanes_import_request' | 'shopify_shop_upserted' | 'shopify_shop_deleted' | 'shopify_experience_short_id_upserted' | 'shopify_experience_short_id_deleted' | 'stripe_authorization_deleted' | 'stripe_authorization_upserted' | 'stripe_reversal_deleted' | 'stripe_reversal_upserted' | 'stripe_capture_deleted' | 'stripe_capture_upserted' | 'stripe_refund_deleted' | 'stripe_refund_upserted' | 'svb_virtual_card_clearing_upserted' | 'svb_virtual_card_clearing_deleted' | 'tracking_request_upserted' | 'tracking_response_upserted' | 'user_upserted' | 'user_deleted';
9923
+ type EventType = 'adyen_authorization_deleted' | 'adyen_authorization_upserted' | 'adyen_cancel_deleted' | 'adyen_cancel_upserted' | 'adyen_capture_deleted' | 'adyen_capture_upserted' | 'adyen_refund_deleted' | 'adyen_refund_upserted' | 'billing_statement_upserted' | 'billing_statement_deleted' | 'tax_remittance_transaction_upserted' | 'tax_remittance_transaction_deleted' | 'account_transactions_export_request' | 'account_orders_export_request' | 'carrier_account_upserted' | 'catalog_import_request' | 'catalog_item_region_availabilities_published' | 'checkout_configuration_upserted' | 'checkout_configuration_deleted' | 'product_classification_upserted' | 'product_classification_deleted' | 'localized_content_upserted' | 'localization_upserted' | 'rate_deleted' | 'rate_upserted' | 'spot_rate_deleted' | 'spot_rate_upserted' | 'organization_currency_settings_upserted' | 'organization_currency_settings_deleted' | 'rate_deleted_v2' | 'rate_upserted_v2' | 'customs_description_import' | 'customs_description_tariffs_import' | 'item_dimension_estimate_upserted' | 'item_dimension_estimate_deleted' | 'duty_rate_request' | 'duty_rate_bulk_request' | 'duty_raw_upserted' | 'duty_raw_bulk_upserted' | 'duty_rate_upserted' | 'duty_rate_response' | 'duty_rate_bulk_response' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'order_attribute_deleted' | 'order_attribute_upserted' | 'experience_export_request' | 'experience_import_request' | 'submitted_order_upserted' | 'experiment_upserted' | 'experiment_deleted' | 'experiment_results_upserted' | 'experiment_results_deleted' | 'export_completed' | 'export_failed' | 'fraud_review_upserted' | 'fraud_review_deleted' | 'fraud_pending_review_upserted' | 'fraud_pending_review_deleted' | 'fraud_review_decision_upserted' | 'fraud_review_decision_deleted' | 'ftp_file_upserted' | 'ftp_file_deleted' | 'ftp_file_to_process_uploaded' | 'pregenerated_quote_upserted' | 'pregenerated_quote_deleted' | 'pregenerated_request_event' | 'blacklisted_item_created' | 'blacklisted_item_updated' | 'blacklisted_item_deleted' | 'all_items_export' | 'harmonized_items_hs6_export' | 'unharmonized_items_export' | 'dutied_items_export' | 'landed_cost_export' | 'harmonization_phrase_suggestion_request_import' | 'harmonization_codes_import' | 'customs_description_sugestion_created' | 'harmonize_fully_with_rate' | 'item_harmonized' | 'harmonize_fully_request' | 'import_completed' | 'import_failed' | 'next_installment_upserted' | 'next_installment_deleted' | 'installment_upserted' | 'installment_deleted' | 'installment_program_upserted' | 'installment_program_deleted' | 'installment_plan_upserted' | 'installment_plan_deleted' | 'installment_plan_authorization_upserted' | 'installment_plan_authorization_deleted' | 'issuer_upserted' | 'issuer_deleted' | 'localized_item_upserted_v2' | 'localized_item_deleted' | 'localized_item_deleted_v2' | 'localized_item_snapshot' | 'localized_item_prices_export_request' | 'optin_prompt_upserted' | 'optin_prompt_deleted' | 'order_fulfillment_deleted' | 'order_fulfillment_upserted' | 'order_placed' | 'ready_to_fulfill' | 'fulfillment_cancel' | 'order_shipped' | 'items_shipped' | 'internal_authorization_upserted' | 'internal_authorization_deleted' | 'afterpay_authorization_upserted' | 'afterpay_authorization_deleted' | 'afterpay_capture_upserted' | 'afterpay_capture_deleted' | 'afterpay_refund_upserted' | 'afterpay_refund_deleted' | 'adyen_merchant_account_upserted' | 'adyen_merchant_account_deleted' | 'paypal_payment_deleted' | 'paypal_payment_upserted' | 'paypal_execution_deleted' | 'paypal_execution_upserted' | 'paypal_refund_deleted' | 'paypal_refund_upserted' | 'order_rates_published_v3' | 'ratecard_lanes_import_request' | 'shopify_shop_upserted' | 'shopify_shop_deleted' | 'shopify_experience_short_id_upserted' | 'shopify_experience_short_id_deleted' | 'stripe_authorization_deleted' | 'stripe_authorization_upserted' | 'stripe_reversal_deleted' | 'stripe_reversal_upserted' | 'stripe_capture_deleted' | 'stripe_capture_upserted' | 'stripe_refund_deleted' | 'stripe_refund_upserted' | 'svb_virtual_card_clearing_upserted' | 'svb_virtual_card_clearing_deleted' | 'tracking_request_upserted' | 'tracking_response_upserted' | 'user_upserted_v2' | 'user_deleted_v2';
9878
9924
  type ExperienceImportType = 'experience_with_settings';
9879
9925
  type ExperienceOrderAction = 'submit' | 'refund_gift_cards';
9880
9926
  type ExperienceOrderActionTrigger = 'zero_balance' | 'unsubmitted_order';
@@ -9884,6 +9930,7 @@ declare namespace io.flow.internal.v0.enums {
9884
9930
  type FlowApp = 'console';
9885
9931
  type FlowFieldName = 'item-number' | 'sku-attribute' | 'product_id-attribute';
9886
9932
  type Format = 'text' | 'phone' | 'email';
9933
+ type FraudReviewResponsibleParty = 'flow' | 'organization';
9887
9934
  type FtpIntent = 'orders_from_flow' | 'pricebooks_from_flow' | 'pricebooks_to_flow' | 'catalog_to_flow' | 'inventory_to_flow';
9888
9935
  type FtpProtocol = 'sftp' | 'ftp';
9889
9936
  type HttpMethod = 'get' | 'post';
@@ -9939,7 +9986,7 @@ declare namespace io.flow.internal.v0.enums {
9939
9986
  type SimpleRoundingStrategy = 'no_rounding' | 'currency_precision';
9940
9987
  type Status = 'draft' | 'ended' | 'live';
9941
9988
  type SubscriptionFrequency = 'yearly' | 'monthly';
9942
- type SuggestionAction = 'accept' | 'review';
9989
+ type SuggestionAction = 'accept' | 'validate' | 'review';
9943
9990
  type TaxCalculationErrorCode = 'generic_error' | 'outside_of_jurisdiction';
9944
9991
  type TimeseriesType = 'daily' | 'weekly' | 'monthly' | 'yearly';
9945
9992
  type TrackingIntegrationType = 'api' | 'bulk' | 'aftership';
@@ -10980,6 +11027,7 @@ declare namespace io.flow.internal.v0.models {
10980
11027
  readonly description?: string;
10981
11028
  }
10982
11029
  interface CountryPickerCountry {
11030
+ readonly iso_3166_2: string;
10983
11031
  readonly iso_3166_3: string;
10984
11032
  readonly name: string;
10985
11033
  }
@@ -11481,6 +11529,7 @@ declare namespace io.flow.internal.v0.models {
11481
11529
  readonly order: io.flow.experience.v0.models.OrderReference;
11482
11530
  readonly recommended_status: io.flow.fraud.v0.enums.FraudStatus;
11483
11531
  readonly apply_at?: string;
11532
+ readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
11484
11533
  }
11485
11534
  interface FraudPendingReviewDeleted {
11486
11535
  readonly event_id: string;
@@ -11500,6 +11549,7 @@ declare namespace io.flow.internal.v0.models {
11500
11549
  readonly organization_id: string;
11501
11550
  readonly order: io.flow.experience.v0.models.OrderReference;
11502
11551
  readonly status: io.flow.fraud.v0.enums.FraudStatus;
11552
+ readonly responsible_party: io.flow.internal.v0.enums.FraudReviewResponsibleParty;
11503
11553
  readonly description?: string;
11504
11554
  readonly risk_evaluation?: io.flow.internal.v0.enums.RiskEvaluation;
11505
11555
  readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
@@ -11514,6 +11564,7 @@ declare namespace io.flow.internal.v0.models {
11514
11564
  readonly order: io.flow.experience.v0.models.OrderReference;
11515
11565
  readonly status: io.flow.fraud.v0.enums.FraudStatus;
11516
11566
  readonly created_at: string;
11567
+ readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
11517
11568
  }
11518
11569
  interface FraudReviewDecisionDeleted {
11519
11570
  readonly event_id: string;
@@ -12359,7 +12410,10 @@ declare namespace io.flow.internal.v0.models {
12359
12410
  readonly apibuilder?: string;
12360
12411
  }
12361
12412
  interface MarketingGatewayFeedSourceGoogle {
12362
- readonly account_id: string;
12413
+ readonly account_id: number;
12414
+ readonly country: string;
12415
+ readonly currency: string;
12416
+ readonly language: string;
12363
12417
  }
12364
12418
  interface MarketingGatewayFilterSummary {
12365
12419
  readonly id: string;
@@ -13410,6 +13464,13 @@ declare namespace io.flow.internal.v0.models {
13410
13464
  readonly item_number: string;
13411
13465
  readonly quantity: number;
13412
13466
  }
13467
+ interface SessionRollout {
13468
+ readonly id: string;
13469
+ readonly percent: number;
13470
+ }
13471
+ interface SessionRolloutForm {
13472
+ readonly percent: number;
13473
+ }
13413
13474
  interface SfExpress {
13414
13475
  readonly checkword: string;
13415
13476
  readonly customer_code: string;
@@ -14010,10 +14071,10 @@ declare namespace io.flow.internal.v0.models {
14010
14071
  interface UnphrasedProductsExport {
14011
14072
  readonly message: string;
14012
14073
  }
14013
- interface UserDeleted {
14074
+ interface UserDeletedV2 {
14014
14075
  readonly event_id: string;
14015
14076
  readonly timestamp: string;
14016
- readonly id: string;
14077
+ readonly user: io.flow.common.v0.models.User;
14017
14078
  }
14018
14079
  interface UserOneTimeToken {
14019
14080
  readonly user: io.flow.common.v0.models.UserReference;
@@ -14022,13 +14083,10 @@ declare namespace io.flow.internal.v0.models {
14022
14083
  interface UserStatusForm {
14023
14084
  readonly status: io.flow.common.v0.enums.UserStatus;
14024
14085
  }
14025
- interface UserUpserted {
14086
+ interface UserUpsertedV2 {
14026
14087
  readonly event_id: string;
14027
14088
  readonly timestamp: string;
14028
- readonly id: string;
14029
- readonly email?: string;
14030
- readonly name: io.flow.common.v0.models.Name;
14031
- readonly status: string;
14089
+ readonly user: io.flow.common.v0.models.User;
14032
14090
  }
14033
14091
  interface ValidationCharacterLength {
14034
14092
  readonly min?: number;
@@ -14394,10 +14452,10 @@ declare namespace io.flow.internal.v0.unions {
14394
14452
  } & io.flow.internal.v0.models.TrackingRequestUpserted | {
14395
14453
  discriminator: 'tracking_response_upserted';
14396
14454
  } & io.flow.internal.v0.models.TrackingResponseUpserted | {
14397
- discriminator: 'user_upserted';
14398
- } & io.flow.internal.v0.models.UserUpserted | {
14399
- discriminator: 'user_deleted';
14400
- } & io.flow.internal.v0.models.UserDeleted;
14455
+ discriminator: 'user_upserted_v2';
14456
+ } & io.flow.internal.v0.models.UserUpsertedV2 | {
14457
+ discriminator: 'user_deleted_v2';
14458
+ } & io.flow.internal.v0.models.UserDeletedV2;
14401
14459
  type ExportSchedule = {
14402
14460
  discriminator: 'export_schedule_daily';
14403
14461
  } & io.flow.internal.v0.models.ExportScheduleDaily | {
@@ -14922,6 +14980,7 @@ export declare type FraudReviewDecisionDeleted = io.flow.internal.v0.models.Frau
14922
14980
  export declare type FraudReviewDecisionForm = io.flow.internal.v0.models.FraudReviewDecisionForm;
14923
14981
  export declare type FraudReviewDecisionUpserted = io.flow.internal.v0.models.FraudReviewDecisionUpserted;
14924
14982
  export declare type FraudReviewDeleted = io.flow.internal.v0.models.FraudReviewDeleted;
14983
+ export declare type FraudReviewResponsibleParty = io.flow.internal.v0.enums.FraudReviewResponsibleParty;
14925
14984
  export declare type FraudReviewUpserted = io.flow.internal.v0.models.FraudReviewUpserted;
14926
14985
  export declare type FraudReviewVersion = io.flow.internal.v0.models.FraudReviewVersion;
14927
14986
  export declare type FraudSummary = io.flow.internal.v0.models.FraudSummary;
@@ -15297,6 +15356,8 @@ export declare type SerialReservation = io.flow.internal.v0.models.SerialReserva
15297
15356
  export declare type SerialReservationError = io.flow.internal.v0.enums.SerialReservationError;
15298
15357
  export declare type SerialReservationForm = io.flow.internal.v0.models.SerialReservationForm;
15299
15358
  export declare type SerialReservationItem = io.flow.internal.v0.models.SerialReservationItem;
15359
+ export declare type SessionRollout = io.flow.internal.v0.models.SessionRollout;
15360
+ export declare type SessionRolloutForm = io.flow.internal.v0.models.SessionRolloutForm;
15300
15361
  export declare type SfExpress = io.flow.internal.v0.models.SfExpress;
15301
15362
  export declare type ShippedItemValue = io.flow.internal.v0.models.ShippedItemValue;
15302
15363
  export declare type Shop = io.flow.internal.v0.models.Shop;
@@ -15421,10 +15482,10 @@ export declare type Tribe = io.flow.internal.v0.models.Tribe;
15421
15482
  export declare type UnclassifiedProductsForm = io.flow.internal.v0.models.UnclassifiedProductsForm;
15422
15483
  export declare type UnharmonizedItemsExport = io.flow.internal.v0.models.UnharmonizedItemsExport;
15423
15484
  export declare type UnphrasedProductsExport = io.flow.internal.v0.models.UnphrasedProductsExport;
15424
- export declare type UserDeleted = io.flow.internal.v0.models.UserDeleted;
15485
+ export declare type UserDeletedV2 = io.flow.internal.v0.models.UserDeletedV2;
15425
15486
  export declare type UserOneTimeToken = io.flow.internal.v0.models.UserOneTimeToken;
15426
15487
  export declare type UserStatusForm = io.flow.internal.v0.models.UserStatusForm;
15427
- export declare type UserUpserted = io.flow.internal.v0.models.UserUpserted;
15488
+ export declare type UserUpsertedV2 = io.flow.internal.v0.models.UserUpsertedV2;
15428
15489
  export declare type ValidationCharacterLength = io.flow.internal.v0.models.ValidationCharacterLength;
15429
15490
  export declare type ValidationRule = io.flow.internal.v0.unions.ValidationRule;
15430
15491
  export declare type Variant = io.flow.internal.v0.unions.Variant;
package/dist/api.d.ts CHANGED
@@ -580,6 +580,7 @@ declare namespace io.flow.shopify.external.v0.models {
580
580
  readonly taxable: boolean;
581
581
  readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
582
582
  readonly total_discount?: string;
583
+ readonly id?: number;
583
584
  }
584
585
  interface ShopifyLineLevelDiscountAllocation {
585
586
  readonly amount: number;
@@ -890,9 +891,11 @@ declare namespace io.flow.v0.enums {
890
891
  type InvitationErrorCode = 'expired' | 'invalid_email';
891
892
  type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
892
893
  type LaneDirection = 'outbound' | 'return';
894
+ type LanePreselectPreference = 'lowest_cost' | 'default_tier';
893
895
  type LaneStrategy = 'oldest' | 'fastest' | 'lowest_cost' | 'highest_priority';
894
896
  type LevyComponent = 'goods' | 'duty' | 'insurance' | 'freight' | 'vat';
895
897
  type LevyStrategy = 'minimum' | 'average' | 'maximum';
898
+ type LocationErrorCode = 'address_required' | 'ip_invalid' | 'ip_required' | 'timezone_unavailable';
896
899
  type MarginType = 'fixed' | 'percent';
897
900
  type MeasurementSystem = 'imperial' | 'metric';
898
901
  type MerchantGiftCardErrorCode = 'invalid' | 'expired' | 'empty' | 'insufficient_funds' | 'unsupported_currency';
@@ -1025,7 +1028,21 @@ declare namespace io.flow.v0.models {
1025
1028
  interface AddressConfiguration {
1026
1029
  readonly country: string;
1027
1030
  readonly field_validation: io.flow.v0.models.AddressFieldValidation;
1028
- readonly provinces: io.flow.v0.models.Province[];
1031
+ readonly provinces: io.flow.v0.models.AddressConfigurationProvince[];
1032
+ }
1033
+ interface AddressConfigurationProvince {
1034
+ readonly value: string;
1035
+ readonly name: string;
1036
+ readonly translations?: io.flow.v0.models.AddressConfigurationProvinceTranslation[];
1037
+ }
1038
+ interface AddressConfigurationProvinceTranslation {
1039
+ readonly locale: io.flow.v0.models.AddressConfigurationProvinceTranslationLocale;
1040
+ readonly name: string;
1041
+ }
1042
+ interface AddressConfigurationProvinceTranslationLocale {
1043
+ readonly id: string;
1044
+ readonly name: string;
1045
+ readonly language: string;
1029
1046
  }
1030
1047
  interface AddressFieldValidation {
1031
1048
  readonly first_name: io.flow.v0.unions.FieldValidationRule[];
@@ -1436,6 +1453,8 @@ declare namespace io.flow.v0.models {
1436
1453
  readonly screen_height?: number;
1437
1454
  readonly screen_width?: number;
1438
1455
  readonly time_zone_offset?: number;
1456
+ readonly user_agent?: string;
1457
+ readonly accept?: string;
1439
1458
  }
1440
1459
  interface Capture {
1441
1460
  readonly id: string;
@@ -3842,6 +3861,10 @@ declare namespace io.flow.v0.models {
3842
3861
  readonly locale: io.flow.v0.models.Locale;
3843
3862
  readonly name: string;
3844
3863
  }
3864
+ interface LocationError {
3865
+ readonly code: io.flow.v0.enums.LocationErrorCode;
3866
+ readonly messages: string[];
3867
+ }
3845
3868
  interface LogisticsSettings {
3846
3869
  readonly shipping_configuration: io.flow.v0.models.ShippingConfigurationReference;
3847
3870
  }
@@ -6006,6 +6029,14 @@ declare namespace io.flow.v0.models {
6006
6029
  readonly query: io.flow.v0.models.Query;
6007
6030
  readonly strategy: io.flow.v0.enums.LaneStrategy;
6008
6031
  readonly direction?: io.flow.v0.enums.LaneDirection;
6032
+ readonly preference?: io.flow.v0.enums.LanePreselectPreference;
6033
+ }
6034
+ interface ShippingLaneDefaultTier {
6035
+ readonly id: string;
6036
+ readonly tier: io.flow.v0.models.TierReference;
6037
+ }
6038
+ interface ShippingLaneDefaultTierForm {
6039
+ readonly tier_id: string;
6009
6040
  }
6010
6041
  interface ShippingLaneDeleted {
6011
6042
  readonly event_id: string;
@@ -6017,6 +6048,7 @@ declare namespace io.flow.v0.models {
6017
6048
  readonly to: string;
6018
6049
  readonly strategy?: io.flow.v0.enums.LaneStrategy;
6019
6050
  readonly direction?: io.flow.v0.enums.LaneDirection;
6051
+ readonly preference?: io.flow.v0.enums.LanePreselectPreference;
6020
6052
  }
6021
6053
  interface ShippingLaneSummary {
6022
6054
  readonly shipping_lane_id: string;
@@ -6337,6 +6369,7 @@ declare namespace io.flow.v0.models {
6337
6369
  interface StripeAuthorizationResultActionDetails {
6338
6370
  readonly client_secret?: string;
6339
6371
  readonly payment_method_id?: string;
6372
+ readonly publishable_key?: string;
6340
6373
  }
6341
6374
  interface Subcatalog {
6342
6375
  readonly id: string;
@@ -7665,6 +7698,9 @@ export declare type AccountTransactionsExportType = io.flow.v0.models.AccountTra
7665
7698
  export declare type AchAuthorizationForm = io.flow.v0.models.AchAuthorizationForm;
7666
7699
  export declare type Address = io.flow.v0.models.Address;
7667
7700
  export declare type AddressConfiguration = io.flow.v0.models.AddressConfiguration;
7701
+ export declare type AddressConfigurationProvince = io.flow.v0.models.AddressConfigurationProvince;
7702
+ export declare type AddressConfigurationProvinceTranslation = io.flow.v0.models.AddressConfigurationProvinceTranslation;
7703
+ export declare type AddressConfigurationProvinceTranslationLocale = io.flow.v0.models.AddressConfigurationProvinceTranslationLocale;
7668
7704
  export declare type AddressFieldValidation = io.flow.v0.models.AddressFieldValidation;
7669
7705
  export declare type AddressSuggestion = io.flow.v0.models.AddressSuggestion;
7670
7706
  export declare type AddressVerification = io.flow.v0.models.AddressVerification;
@@ -8204,6 +8240,7 @@ export declare type LabelUpserted = io.flow.v0.models.LabelUpserted;
8204
8240
  export declare type LandedCostItem = io.flow.v0.models.LandedCostItem;
8205
8241
  export declare type LaneDirection = io.flow.v0.enums.LaneDirection;
8206
8242
  export declare type LaneLandedCost = io.flow.v0.models.LaneLandedCost;
8243
+ export declare type LanePreselectPreference = io.flow.v0.enums.LanePreselectPreference;
8207
8244
  export declare type LaneStrategy = io.flow.v0.enums.LaneStrategy;
8208
8245
  export declare type Language = io.flow.v0.models.Language;
8209
8246
  export declare type LevyComponent = io.flow.v0.enums.LevyComponent;
@@ -8231,6 +8268,8 @@ export declare type LocalizedLineItemDiscount = io.flow.v0.models.LocalizedLineI
8231
8268
  export declare type LocalizedPrice = io.flow.v0.unions.LocalizedPrice;
8232
8269
  export declare type LocalizedTotal = io.flow.v0.models.LocalizedTotal;
8233
8270
  export declare type LocalizedTranslation = io.flow.v0.models.LocalizedTranslation;
8271
+ export declare type LocationError = io.flow.v0.models.LocationError;
8272
+ export declare type LocationErrorCode = io.flow.v0.enums.LocationErrorCode;
8234
8273
  export declare type LogisticsSettings = io.flow.v0.models.LogisticsSettings;
8235
8274
  export declare type Manifest = io.flow.v0.models.Manifest;
8236
8275
  export declare type ManifestForm = io.flow.v0.models.ManifestForm;
@@ -8649,6 +8688,8 @@ export declare type ShippingLabelPackage = io.flow.v0.models.ShippingLabelPackag
8649
8688
  export declare type ShippingLabelSummary = io.flow.v0.models.ShippingLabelSummary;
8650
8689
  export declare type ShippingLabelVersion = io.flow.v0.models.ShippingLabelVersion;
8651
8690
  export declare type ShippingLane = io.flow.v0.models.ShippingLane;
8691
+ export declare type ShippingLaneDefaultTier = io.flow.v0.models.ShippingLaneDefaultTier;
8692
+ export declare type ShippingLaneDefaultTierForm = io.flow.v0.models.ShippingLaneDefaultTierForm;
8652
8693
  export declare type ShippingLaneDeleted = io.flow.v0.models.ShippingLaneDeleted;
8653
8694
  export declare type ShippingLaneForm = io.flow.v0.models.ShippingLaneForm;
8654
8695
  export declare type ShippingLaneSummary = io.flow.v0.models.ShippingLaneSummary;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "0.0.14",
3
+ "version": "2.0.0",
4
4
  "description": "TypeScript type definitions for custom types found in Flow API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,5 +26,6 @@
26
26
  "devDependencies": {
27
27
  "prettier": "^1.18.2",
28
28
  "typescript": "^3.2.2"
29
- }
29
+ },
30
+ "gitHead": "01dc3b32b4cc3fead046853b473a6f58d42e6dd5"
30
31
  }
@@ -2499,6 +2499,7 @@ declare namespace io.flow.shopify.external.v0.models {
2499
2499
  readonly taxable: boolean;
2500
2500
  readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
2501
2501
  readonly total_discount?: string;
2502
+ readonly id?: number;
2502
2503
  }
2503
2504
 
2504
2505
  interface ShopifyLineLevelDiscountAllocation {
@@ -4448,6 +4449,7 @@ declare namespace io.flow.search.v0.unions {
4448
4449
  declare namespace io.flow.harmonization.internal.v0.enums {
4449
4450
  type ItemClassificationAction = 'ACCEPT' | 'MANUAL' | 'REJECT';
4450
4451
  type ItemClassificationStatus = 'Unclassified' | 'Suggested' | 'Classified';
4452
+ type ItemType = 'standard' | 'multi_product';
4451
4453
  }
4452
4454
 
4453
4455
  declare namespace io.flow.harmonization.internal.v0.models {
@@ -4572,6 +4574,49 @@ declare namespace io.flow.harmonization.internal.v0.models {
4572
4574
  };
4573
4575
  }
4574
4576
 
4577
+ interface ItemHarmonizationSummary {
4578
+ readonly organization_id: string;
4579
+ readonly item_id: string;
4580
+ readonly item_number: string;
4581
+ readonly customs_description?: string;
4582
+ readonly origin: string;
4583
+ readonly hs6?: string;
4584
+ readonly tariff_code?: string;
4585
+ readonly duty: io.flow.price.v0.models.Duty;
4586
+ readonly price_composition_rate: number;
4587
+ readonly duty_composition_rate: number;
4588
+ }
4589
+
4590
+ interface MultiProductItem {
4591
+ readonly item_id: string;
4592
+ readonly item_number: string;
4593
+ readonly product_id?: string;
4594
+ readonly organization_id: string;
4595
+ readonly sub_items: io.flow.harmonization.internal.v0.models.MultiProductSubItem[];
4596
+ }
4597
+
4598
+ interface MultiProductItemForm {
4599
+ readonly sub_item_forms: io.flow.harmonization.internal.v0.models.MultiProductSubItemForm[];
4600
+ }
4601
+
4602
+ interface MultiProductSubItem {
4603
+ readonly id: string;
4604
+ readonly origin: string;
4605
+ readonly composition_proportion: number;
4606
+ readonly description: string;
4607
+ readonly hs6_code?: string;
4608
+ readonly phrase_id?: string;
4609
+ readonly customs_description?: string;
4610
+ readonly classification_status: io.flow.harmonization.internal.v0.enums.ItemClassificationStatus;
4611
+ }
4612
+
4613
+ interface MultiProductSubItemForm {
4614
+ readonly composition_proportion: number;
4615
+ readonly origin: string;
4616
+ readonly description: string;
4617
+ readonly customs_description: string;
4618
+ }
4619
+
4575
4620
  interface ProductClassificationForm {
4576
4621
  readonly organization_id: string;
4577
4622
  readonly product_id: string;
@@ -4618,6 +4663,12 @@ declare namespace io.flow.harmonization.internal.v0.models {
4618
4663
  readonly code: string;
4619
4664
  }
4620
4665
 
4666
+ interface UnclassifiedProductsForm {
4667
+ readonly organization_id: string;
4668
+ readonly product_id: string;
4669
+ readonly ignore?: boolean;
4670
+ }
4671
+
4621
4672
  interface UnphrasedProductsExport {
4622
4673
  readonly message: string;
4623
4674
  }
@@ -11108,6 +11159,7 @@ declare namespace io.flow.adyen.v0.models {
11108
11159
  readonly selectedBrand?: string;
11109
11160
  readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
11110
11161
  readonly threeDS2RequestData?: io.flow.adyen.v0.models.Threeds2RequestData;
11162
+ readonly recurringProcessingModel?: io.flow.adyen.v0.enums.RecurringProcessingModel;
11111
11163
  }
11112
11164
 
11113
11165
  interface AuthorizeRequest3D {
@@ -12496,8 +12548,8 @@ declare namespace io.flow.internal.v0.enums {
12496
12548
  | 'svb_virtual_card_clearing_deleted'
12497
12549
  | 'tracking_request_upserted'
12498
12550
  | 'tracking_response_upserted'
12499
- | 'user_upserted'
12500
- | 'user_deleted';
12551
+ | 'user_upserted_v2'
12552
+ | 'user_deleted_v2';
12501
12553
  type ExperienceImportType = 'experience_with_settings';
12502
12554
  type ExperienceOrderAction = 'submit' | 'refund_gift_cards';
12503
12555
  type ExperienceOrderActionTrigger = 'zero_balance' | 'unsubmitted_order';
@@ -12507,6 +12559,7 @@ declare namespace io.flow.internal.v0.enums {
12507
12559
  type FlowApp = 'console';
12508
12560
  type FlowFieldName = 'item-number' | 'sku-attribute' | 'product_id-attribute';
12509
12561
  type Format = 'text' | 'phone' | 'email';
12562
+ type FraudReviewResponsibleParty = 'flow' | 'organization';
12510
12563
  type FtpIntent =
12511
12564
  | 'orders_from_flow'
12512
12565
  | 'pricebooks_from_flow'
@@ -12643,7 +12696,7 @@ declare namespace io.flow.internal.v0.enums {
12643
12696
  type SimpleRoundingStrategy = 'no_rounding' | 'currency_precision';
12644
12697
  type Status = 'draft' | 'ended' | 'live';
12645
12698
  type SubscriptionFrequency = 'yearly' | 'monthly';
12646
- type SuggestionAction = 'accept' | 'review';
12699
+ type SuggestionAction = 'accept' | 'validate' | 'review';
12647
12700
  type TaxCalculationErrorCode = 'generic_error' | 'outside_of_jurisdiction';
12648
12701
  type TimeseriesType = 'daily' | 'weekly' | 'monthly' | 'yearly';
12649
12702
  type TrackingIntegrationType = 'api' | 'bulk' | 'aftership';
@@ -13853,6 +13906,7 @@ declare namespace io.flow.internal.v0.models {
13853
13906
  }
13854
13907
 
13855
13908
  interface CountryPickerCountry {
13909
+ readonly iso_3166_2: string;
13856
13910
  readonly iso_3166_3: string;
13857
13911
  readonly name: string;
13858
13912
  }
@@ -14442,6 +14496,7 @@ declare namespace io.flow.internal.v0.models {
14442
14496
  readonly order: io.flow.experience.v0.models.OrderReference;
14443
14497
  readonly recommended_status: io.flow.fraud.v0.enums.FraudStatus;
14444
14498
  readonly apply_at?: string;
14499
+ readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
14445
14500
  }
14446
14501
 
14447
14502
  interface FraudPendingReviewDeleted {
@@ -14464,6 +14519,7 @@ declare namespace io.flow.internal.v0.models {
14464
14519
  readonly organization_id: string;
14465
14520
  readonly order: io.flow.experience.v0.models.OrderReference;
14466
14521
  readonly status: io.flow.fraud.v0.enums.FraudStatus;
14522
+ readonly responsible_party: io.flow.internal.v0.enums.FraudReviewResponsibleParty;
14467
14523
  readonly description?: string;
14468
14524
  readonly risk_evaluation?: io.flow.internal.v0.enums.RiskEvaluation;
14469
14525
  readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
@@ -14479,6 +14535,7 @@ declare namespace io.flow.internal.v0.models {
14479
14535
  readonly order: io.flow.experience.v0.models.OrderReference;
14480
14536
  readonly status: io.flow.fraud.v0.enums.FraudStatus;
14481
14537
  readonly created_at: string;
14538
+ readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
14482
14539
  }
14483
14540
 
14484
14541
  interface FraudReviewDecisionDeleted {
@@ -15470,7 +15527,10 @@ declare namespace io.flow.internal.v0.models {
15470
15527
  }
15471
15528
 
15472
15529
  interface MarketingGatewayFeedSourceGoogle {
15473
- readonly account_id: string;
15530
+ readonly account_id: number;
15531
+ readonly country: string;
15532
+ readonly currency: string;
15533
+ readonly language: string;
15474
15534
  }
15475
15535
 
15476
15536
  interface MarketingGatewayFilterSummary {
@@ -16686,6 +16746,15 @@ declare namespace io.flow.internal.v0.models {
16686
16746
  readonly quantity: number;
16687
16747
  }
16688
16748
 
16749
+ interface SessionRollout {
16750
+ readonly id: string;
16751
+ readonly percent: number;
16752
+ }
16753
+
16754
+ interface SessionRolloutForm {
16755
+ readonly percent: number;
16756
+ }
16757
+
16689
16758
  interface SfExpress {
16690
16759
  readonly checkword: string;
16691
16760
  readonly customer_code: string;
@@ -17390,10 +17459,10 @@ declare namespace io.flow.internal.v0.models {
17390
17459
  readonly message: string;
17391
17460
  }
17392
17461
 
17393
- interface UserDeleted {
17462
+ interface UserDeletedV2 {
17394
17463
  readonly event_id: string;
17395
17464
  readonly timestamp: string;
17396
- readonly id: string;
17465
+ readonly user: io.flow.common.v0.models.User;
17397
17466
  }
17398
17467
 
17399
17468
  interface UserOneTimeToken {
@@ -17405,13 +17474,10 @@ declare namespace io.flow.internal.v0.models {
17405
17474
  readonly status: io.flow.common.v0.enums.UserStatus;
17406
17475
  }
17407
17476
 
17408
- interface UserUpserted {
17477
+ interface UserUpsertedV2 {
17409
17478
  readonly event_id: string;
17410
17479
  readonly timestamp: string;
17411
- readonly id: string;
17412
- readonly email?: string;
17413
- readonly name: io.flow.common.v0.models.Name;
17414
- readonly status: string;
17480
+ readonly user: io.flow.common.v0.models.User;
17415
17481
  }
17416
17482
 
17417
17483
  interface ValidationCharacterLength {
@@ -17950,11 +18016,11 @@ declare namespace io.flow.internal.v0.unions {
17950
18016
  discriminator: 'tracking_response_upserted';
17951
18017
  } & io.flow.internal.v0.models.TrackingResponseUpserted
17952
18018
  | {
17953
- discriminator: 'user_upserted';
17954
- } & io.flow.internal.v0.models.UserUpserted
18019
+ discriminator: 'user_upserted_v2';
18020
+ } & io.flow.internal.v0.models.UserUpsertedV2
17955
18021
  | {
17956
- discriminator: 'user_deleted';
17957
- } & io.flow.internal.v0.models.UserDeleted;
18022
+ discriminator: 'user_deleted_v2';
18023
+ } & io.flow.internal.v0.models.UserDeletedV2;
17958
18024
 
17959
18025
  type ExportSchedule =
17960
18026
  | {
@@ -18593,6 +18659,7 @@ export type FraudReviewDecisionDeleted = io.flow.internal.v0.models.FraudReviewD
18593
18659
  export type FraudReviewDecisionForm = io.flow.internal.v0.models.FraudReviewDecisionForm;
18594
18660
  export type FraudReviewDecisionUpserted = io.flow.internal.v0.models.FraudReviewDecisionUpserted;
18595
18661
  export type FraudReviewDeleted = io.flow.internal.v0.models.FraudReviewDeleted;
18662
+ export type FraudReviewResponsibleParty = io.flow.internal.v0.enums.FraudReviewResponsibleParty;
18596
18663
  export type FraudReviewUpserted = io.flow.internal.v0.models.FraudReviewUpserted;
18597
18664
  export type FraudReviewVersion = io.flow.internal.v0.models.FraudReviewVersion;
18598
18665
  export type FraudSummary = io.flow.internal.v0.models.FraudSummary;
@@ -18968,6 +19035,8 @@ export type SerialReservation = io.flow.internal.v0.models.SerialReservation;
18968
19035
  export type SerialReservationError = io.flow.internal.v0.enums.SerialReservationError;
18969
19036
  export type SerialReservationForm = io.flow.internal.v0.models.SerialReservationForm;
18970
19037
  export type SerialReservationItem = io.flow.internal.v0.models.SerialReservationItem;
19038
+ export type SessionRollout = io.flow.internal.v0.models.SessionRollout;
19039
+ export type SessionRolloutForm = io.flow.internal.v0.models.SessionRolloutForm;
18971
19040
  export type SfExpress = io.flow.internal.v0.models.SfExpress;
18972
19041
  export type ShippedItemValue = io.flow.internal.v0.models.ShippedItemValue;
18973
19042
  export type Shop = io.flow.internal.v0.models.Shop;
@@ -19092,10 +19161,10 @@ export type Tribe = io.flow.internal.v0.models.Tribe;
19092
19161
  export type UnclassifiedProductsForm = io.flow.internal.v0.models.UnclassifiedProductsForm;
19093
19162
  export type UnharmonizedItemsExport = io.flow.internal.v0.models.UnharmonizedItemsExport;
19094
19163
  export type UnphrasedProductsExport = io.flow.internal.v0.models.UnphrasedProductsExport;
19095
- export type UserDeleted = io.flow.internal.v0.models.UserDeleted;
19164
+ export type UserDeletedV2 = io.flow.internal.v0.models.UserDeletedV2;
19096
19165
  export type UserOneTimeToken = io.flow.internal.v0.models.UserOneTimeToken;
19097
19166
  export type UserStatusForm = io.flow.internal.v0.models.UserStatusForm;
19098
- export type UserUpserted = io.flow.internal.v0.models.UserUpserted;
19167
+ export type UserUpsertedV2 = io.flow.internal.v0.models.UserUpsertedV2;
19099
19168
  export type ValidationCharacterLength = io.flow.internal.v0.models.ValidationCharacterLength;
19100
19169
  export type ValidationRule = io.flow.internal.v0.unions.ValidationRule;
19101
19170
  export type Variant = io.flow.internal.v0.unions.Variant;
package/src/api.ts CHANGED
@@ -743,6 +743,7 @@ declare namespace io.flow.shopify.external.v0.models {
743
743
  readonly taxable: boolean;
744
744
  readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
745
745
  readonly total_discount?: string;
746
+ readonly id?: number;
746
747
  }
747
748
 
748
749
  interface ShopifyLineLevelDiscountAllocation {
@@ -1389,9 +1390,15 @@ declare namespace io.flow.v0.enums {
1389
1390
  type InvitationErrorCode = 'expired' | 'invalid_email';
1390
1391
  type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
1391
1392
  type LaneDirection = 'outbound' | 'return';
1393
+ type LanePreselectPreference = 'lowest_cost' | 'default_tier';
1392
1394
  type LaneStrategy = 'oldest' | 'fastest' | 'lowest_cost' | 'highest_priority';
1393
1395
  type LevyComponent = 'goods' | 'duty' | 'insurance' | 'freight' | 'vat';
1394
1396
  type LevyStrategy = 'minimum' | 'average' | 'maximum';
1397
+ type LocationErrorCode =
1398
+ | 'address_required'
1399
+ | 'ip_invalid'
1400
+ | 'ip_required'
1401
+ | 'timezone_unavailable';
1395
1402
  type MarginType = 'fixed' | 'percent';
1396
1403
  type MeasurementSystem = 'imperial' | 'metric';
1397
1404
  type MerchantGiftCardErrorCode =
@@ -1685,7 +1692,24 @@ declare namespace io.flow.v0.models {
1685
1692
  interface AddressConfiguration {
1686
1693
  readonly country: string;
1687
1694
  readonly field_validation: io.flow.v0.models.AddressFieldValidation;
1688
- readonly provinces: io.flow.v0.models.Province[];
1695
+ readonly provinces: io.flow.v0.models.AddressConfigurationProvince[];
1696
+ }
1697
+
1698
+ interface AddressConfigurationProvince {
1699
+ readonly value: string;
1700
+ readonly name: string;
1701
+ readonly translations?: io.flow.v0.models.AddressConfigurationProvinceTranslation[];
1702
+ }
1703
+
1704
+ interface AddressConfigurationProvinceTranslation {
1705
+ readonly locale: io.flow.v0.models.AddressConfigurationProvinceTranslationLocale;
1706
+ readonly name: string;
1707
+ }
1708
+
1709
+ interface AddressConfigurationProvinceTranslationLocale {
1710
+ readonly id: string;
1711
+ readonly name: string;
1712
+ readonly language: string;
1689
1713
  }
1690
1714
 
1691
1715
  interface AddressFieldValidation {
@@ -2163,6 +2187,8 @@ declare namespace io.flow.v0.models {
2163
2187
  readonly screen_height?: number;
2164
2188
  readonly screen_width?: number;
2165
2189
  readonly time_zone_offset?: number;
2190
+ readonly user_agent?: string;
2191
+ readonly accept?: string;
2166
2192
  }
2167
2193
 
2168
2194
  interface Capture {
@@ -4962,6 +4988,11 @@ declare namespace io.flow.v0.models {
4962
4988
  readonly name: string;
4963
4989
  }
4964
4990
 
4991
+ interface LocationError {
4992
+ readonly code: io.flow.v0.enums.LocationErrorCode;
4993
+ readonly messages: string[];
4994
+ }
4995
+
4965
4996
  interface LogisticsSettings {
4966
4997
  readonly shipping_configuration: io.flow.v0.models.ShippingConfigurationReference;
4967
4998
  }
@@ -7475,6 +7506,16 @@ declare namespace io.flow.v0.models {
7475
7506
  readonly query: io.flow.v0.models.Query;
7476
7507
  readonly strategy: io.flow.v0.enums.LaneStrategy;
7477
7508
  readonly direction?: io.flow.v0.enums.LaneDirection;
7509
+ readonly preference?: io.flow.v0.enums.LanePreselectPreference;
7510
+ }
7511
+
7512
+ interface ShippingLaneDefaultTier {
7513
+ readonly id: string;
7514
+ readonly tier: io.flow.v0.models.TierReference;
7515
+ }
7516
+
7517
+ interface ShippingLaneDefaultTierForm {
7518
+ readonly tier_id: string;
7478
7519
  }
7479
7520
 
7480
7521
  interface ShippingLaneDeleted {
@@ -7488,6 +7529,7 @@ declare namespace io.flow.v0.models {
7488
7529
  readonly to: string;
7489
7530
  readonly strategy?: io.flow.v0.enums.LaneStrategy;
7490
7531
  readonly direction?: io.flow.v0.enums.LaneDirection;
7532
+ readonly preference?: io.flow.v0.enums.LanePreselectPreference;
7491
7533
  }
7492
7534
 
7493
7535
  interface ShippingLaneSummary {
@@ -7858,6 +7900,7 @@ declare namespace io.flow.v0.models {
7858
7900
  interface StripeAuthorizationResultActionDetails {
7859
7901
  readonly client_secret?: string;
7860
7902
  readonly payment_method_id?: string;
7903
+ readonly publishable_key?: string;
7861
7904
  }
7862
7905
 
7863
7906
  interface Subcatalog {
@@ -9660,6 +9703,9 @@ export type AccountTransactionsExportType = io.flow.v0.models.AccountTransaction
9660
9703
  export type AchAuthorizationForm = io.flow.v0.models.AchAuthorizationForm;
9661
9704
  export type Address = io.flow.v0.models.Address;
9662
9705
  export type AddressConfiguration = io.flow.v0.models.AddressConfiguration;
9706
+ export type AddressConfigurationProvince = io.flow.v0.models.AddressConfigurationProvince;
9707
+ export type AddressConfigurationProvinceTranslation = io.flow.v0.models.AddressConfigurationProvinceTranslation;
9708
+ export type AddressConfigurationProvinceTranslationLocale = io.flow.v0.models.AddressConfigurationProvinceTranslationLocale;
9663
9709
  export type AddressFieldValidation = io.flow.v0.models.AddressFieldValidation;
9664
9710
  export type AddressSuggestion = io.flow.v0.models.AddressSuggestion;
9665
9711
  export type AddressVerification = io.flow.v0.models.AddressVerification;
@@ -10199,6 +10245,7 @@ export type LabelUpserted = io.flow.v0.models.LabelUpserted;
10199
10245
  export type LandedCostItem = io.flow.v0.models.LandedCostItem;
10200
10246
  export type LaneDirection = io.flow.v0.enums.LaneDirection;
10201
10247
  export type LaneLandedCost = io.flow.v0.models.LaneLandedCost;
10248
+ export type LanePreselectPreference = io.flow.v0.enums.LanePreselectPreference;
10202
10249
  export type LaneStrategy = io.flow.v0.enums.LaneStrategy;
10203
10250
  export type Language = io.flow.v0.models.Language;
10204
10251
  export type LevyComponent = io.flow.v0.enums.LevyComponent;
@@ -10226,6 +10273,8 @@ export type LocalizedLineItemDiscount = io.flow.v0.models.LocalizedLineItemDisco
10226
10273
  export type LocalizedPrice = io.flow.v0.unions.LocalizedPrice;
10227
10274
  export type LocalizedTotal = io.flow.v0.models.LocalizedTotal;
10228
10275
  export type LocalizedTranslation = io.flow.v0.models.LocalizedTranslation;
10276
+ export type LocationError = io.flow.v0.models.LocationError;
10277
+ export type LocationErrorCode = io.flow.v0.enums.LocationErrorCode;
10229
10278
  export type LogisticsSettings = io.flow.v0.models.LogisticsSettings;
10230
10279
  export type Manifest = io.flow.v0.models.Manifest;
10231
10280
  export type ManifestForm = io.flow.v0.models.ManifestForm;
@@ -10644,6 +10693,8 @@ export type ShippingLabelPackage = io.flow.v0.models.ShippingLabelPackage;
10644
10693
  export type ShippingLabelSummary = io.flow.v0.models.ShippingLabelSummary;
10645
10694
  export type ShippingLabelVersion = io.flow.v0.models.ShippingLabelVersion;
10646
10695
  export type ShippingLane = io.flow.v0.models.ShippingLane;
10696
+ export type ShippingLaneDefaultTier = io.flow.v0.models.ShippingLaneDefaultTier;
10697
+ export type ShippingLaneDefaultTierForm = io.flow.v0.models.ShippingLaneDefaultTierForm;
10647
10698
  export type ShippingLaneDeleted = io.flow.v0.models.ShippingLaneDeleted;
10648
10699
  export type ShippingLaneForm = io.flow.v0.models.ShippingLaneForm;
10649
10700
  export type ShippingLaneSummary = io.flow.v0.models.ShippingLaneSummary;