@flowio/types 0.0.9 → 0.0.10

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.
@@ -2509,6 +2509,123 @@ declare namespace io.flow.external.paypal.v1.models {
2509
2509
  }
2510
2510
  }
2511
2511
  declare namespace io.flow.external.paypal.v1.unions { }
2512
+ declare namespace io.flow.bundle.internal.v0.enums {
2513
+ type CheckoutErrorCode = 'generic_error' | 'organization_invalid' | 'session_invalid' | 'session_organization_invalid';
2514
+ }
2515
+ declare namespace io.flow.bundle.internal.v0.models {
2516
+ interface Checkout {
2517
+ readonly id: string;
2518
+ readonly organization: io.flow.common.v0.models.OrganizationSummary;
2519
+ readonly builder: io.flow.experience.v0.models.OrderBuilder;
2520
+ readonly content: io.flow.bundle.internal.v0.models.CheckoutContent;
2521
+ readonly destinations: io.flow.reference.v0.models.Country[];
2522
+ readonly optins: io.flow.optin.internal.v0.models.OptinPrompt[];
2523
+ readonly addresses: unknown[];
2524
+ readonly features: io.flow.feature.v0.models.FeatureValueResult;
2525
+ readonly configuration: io.flow.checkout.configuration.v0.models.CheckoutConfiguration;
2526
+ readonly cart?: io.flow.shopify.v0.models.ShopifyCart;
2527
+ readonly customer?: io.flow.customer.v0.models.Customer;
2528
+ readonly address_book?: io.flow.customer.v0.models.CustomerAddressBook;
2529
+ readonly gift_card_program?: io.flow.experience.internal.v0.models.GiftCardProgram;
2530
+ readonly loyalty_program?: io.flow.experience.internal.v0.models.LoyaltyProgram;
2531
+ readonly payment: io.flow.bundle.internal.v0.models.CheckoutPayment;
2532
+ }
2533
+ interface CheckoutBundle {
2534
+ readonly cart?: io.flow.shopify.v0.models.ShopifyCart;
2535
+ readonly order: io.flow.experience.v0.models.Order;
2536
+ readonly order_errors?: io.flow.experience.v0.models.OrderError[];
2537
+ readonly checkout?: io.flow.content.internal.v0.models.CheckoutContentSummary;
2538
+ readonly optins: io.flow.optin.internal.v0.models.OptinPrompt[];
2539
+ readonly destinations: io.flow.reference.v0.models.Country[];
2540
+ readonly features: io.flow.feature.v0.models.FeatureValueResult;
2541
+ readonly provinces: io.flow.reference.v0.models.Province[];
2542
+ readonly checkout_items: io.flow.experience.v0.models.CheckoutItemContent[];
2543
+ readonly metadata?: io.flow.bundle.internal.v0.models.CheckoutBundleMetadata;
2544
+ readonly configuration?: io.flow.checkout.configuration.v0.models.CheckoutConfiguration;
2545
+ readonly address_configurations?: unknown[];
2546
+ readonly customer?: io.flow.customer.v0.models.Customer;
2547
+ readonly address_book?: io.flow.customer.v0.models.CustomerAddressBook;
2548
+ readonly payment_sources?: unknown[];
2549
+ }
2550
+ interface CheckoutBundleMetadata {
2551
+ readonly organization: io.flow.common.v0.models.OrganizationSummary;
2552
+ }
2553
+ interface CheckoutContent {
2554
+ readonly global?: io.flow.content.internal.v0.models.CheckoutContentSummary;
2555
+ readonly items: io.flow.experience.v0.models.CheckoutItemContent[];
2556
+ }
2557
+ interface CheckoutError {
2558
+ readonly code: io.flow.bundle.internal.v0.enums.CheckoutErrorCode;
2559
+ readonly messages: string[];
2560
+ readonly organization?: io.flow.common.v0.models.OrganizationReference;
2561
+ }
2562
+ interface CheckoutFinalizeOrderForm {
2563
+ readonly expected_order_summary: io.flow.bundle.internal.v0.models.ExpectedOrderSummary;
2564
+ readonly order_put_form: io.flow.experience.v0.models.OrderPutForm;
2565
+ }
2566
+ interface CheckoutOrderForm {
2567
+ readonly organization: string;
2568
+ readonly order: io.flow.experience.v0.models.OrderPutForm;
2569
+ readonly feature_keys?: string[];
2570
+ }
2571
+ interface CheckoutOrderNumberForm {
2572
+ readonly organization: string;
2573
+ readonly order_number: string;
2574
+ readonly feature_keys?: string[];
2575
+ }
2576
+ interface CheckoutPayment {
2577
+ readonly sources: unknown[];
2578
+ readonly public_key: io.flow.payment.v0.models.PublicKey;
2579
+ readonly method_types: io.flow.reference.v0.enums.PaymentMethodType[];
2580
+ readonly method_rules: io.flow.experience.v0.models.PaymentMethodRule[];
2581
+ }
2582
+ interface CheckoutReferenceForm {
2583
+ readonly order_number: string;
2584
+ readonly order_form: io.flow.experience.v0.models.OrderPutForm;
2585
+ readonly order_geo: io.flow.experience.v0.models.OrderGeo;
2586
+ readonly session_id: string;
2587
+ }
2588
+ interface CheckoutSourceOrderForm {
2589
+ readonly source_order_number: string;
2590
+ readonly feature_q?: string;
2591
+ }
2592
+ interface CheckoutSubmission {
2593
+ readonly builder: io.flow.experience.v0.models.OrderBuilder;
2594
+ readonly action?: io.flow.payment.v0.unions.AuthorizationResultAction;
2595
+ }
2596
+ interface CheckoutSubmissionForm {
2597
+ readonly authorization_form?: io.flow.payment.v0.unions.AuthorizationForm;
2598
+ readonly installment_program_id?: string;
2599
+ readonly expected_order_summary?: io.flow.bundle.internal.v0.models.ExpectedOrderSummary;
2600
+ readonly feature_keys?: string[];
2601
+ }
2602
+ interface CheckoutSubmitOrderBundle {
2603
+ readonly order?: io.flow.experience.v0.models.Order;
2604
+ readonly redirect?: io.flow.payment.v0.unions.AuthorizationResultAction;
2605
+ readonly errors?: io.flow.experience.v0.models.OrderError[];
2606
+ }
2607
+ interface CheckoutSubmitOrderForm {
2608
+ readonly authorization_form: io.flow.payment.v0.unions.AuthorizationForm;
2609
+ readonly installment_program_id?: string;
2610
+ readonly expected_order_summary?: io.flow.bundle.internal.v0.models.ExpectedOrderSummary;
2611
+ }
2612
+ interface ExpectedOrderSummary {
2613
+ readonly total?: io.flow.common.v0.models.Money;
2614
+ }
2615
+ }
2616
+ declare namespace io.flow.bundle.internal.v0.unions {
2617
+ type CheckoutForm = {
2618
+ discriminator: 'order';
2619
+ } & io.flow.bundle.internal.v0.models.CheckoutOrderForm | {
2620
+ discriminator: 'order_number';
2621
+ } & io.flow.bundle.internal.v0.models.CheckoutOrderNumberForm;
2622
+ type CheckoutSubmitOrderBundles = {
2623
+ discriminator: 'checkout_submit_order_bundle';
2624
+ } & io.flow.bundle.internal.v0.models.CheckoutSubmitOrderBundle;
2625
+ type CheckoutSubmitOrderForms = {
2626
+ discriminator: 'checkout_submit_order_form';
2627
+ } & io.flow.bundle.internal.v0.models.CheckoutSubmitOrderForm;
2628
+ }
2512
2629
  declare namespace io.flow.price.internal.v0.enums {
2513
2630
  type DeminimisAdjustmentType = 'none' | 'duty' | 'vat' | 'vat_and_duty';
2514
2631
  type SimpleRoundingStrategy = 'no_rounding' | 'currency_precision';
@@ -3437,7 +3554,6 @@ declare namespace io.flow.search.v0.unions {
3437
3554
  } & io.flow.search.v0.models.HarmonizationDocument;
3438
3555
  }
3439
3556
  declare namespace io.flow.harmonization.internal.v0.enums {
3440
- type DutyType = 'General';
3441
3557
  type ItemClassificationAction = 'ACCEPT' | 'MANUAL' | 'REJECT';
3442
3558
  type ItemClassificationStatus = 'Unclassified' | 'Suggested' | 'Classified';
3443
3559
  }
@@ -3447,16 +3563,6 @@ declare namespace io.flow.harmonization.internal.v0.models {
3447
3563
  readonly organization_id: string;
3448
3564
  readonly item_number: string;
3449
3565
  }
3450
- interface ClassificationFeatureSetDefault {
3451
- readonly organization_id: string;
3452
- readonly default: io.flow.harmonization.internal.v0.unions.ClassificationFeatureSet;
3453
- }
3454
- interface ClassificationFeaturesCategoryApparel {
3455
- readonly item_identity?: string;
3456
- readonly construction?: string;
3457
- readonly material?: string;
3458
- readonly gender?: string;
3459
- }
3460
3566
  interface ClassificationItem {
3461
3567
  readonly id: string;
3462
3568
  readonly organization_id: string;
@@ -3546,11 +3652,6 @@ declare namespace io.flow.harmonization.internal.v0.models {
3546
3652
  readonly items: number;
3547
3653
  readonly codes: io.flow.harmonization.internal.v0.models.HarmonizationStatisticsBreakout;
3548
3654
  }
3549
- interface Hs10PhraseHintForm {
3550
- readonly code: string;
3551
- readonly destination: string;
3552
- readonly phrase: string;
3553
- }
3554
3655
  interface ItemHarmonization {
3555
3656
  readonly organization_id: string;
3556
3657
  readonly item_number: string;
@@ -3562,9 +3663,6 @@ declare namespace io.flow.harmonization.internal.v0.models {
3562
3663
  [key: string]: io.flow.harmonization.internal.v0.models.TariffCodeDuty;
3563
3664
  };
3564
3665
  }
3565
- interface PhraseReference {
3566
- readonly id: string;
3567
- }
3568
3666
  interface ProductClassificationForm {
3569
3667
  readonly organization_id: string;
3570
3668
  readonly product_id: string;
@@ -3576,32 +3674,6 @@ declare namespace io.flow.harmonization.internal.v0.models {
3576
3674
  readonly classified_product: io.flow.harmonization.internal.v0.models.ClassifiedProduct;
3577
3675
  readonly next_product?: io.flow.harmonization.internal.v0.models.ClassificationProductId;
3578
3676
  }
3579
- interface ProductDetailHintForm {
3580
- readonly name?: string;
3581
- readonly description?: string;
3582
- readonly categories?: string;
3583
- readonly materials?: string;
3584
- readonly brand?: string;
3585
- readonly department?: string;
3586
- }
3587
- interface ProductPhrase {
3588
- readonly id: string;
3589
- readonly product: io.flow.harmonization.internal.v0.models.ProductReference;
3590
- readonly phrase: io.flow.harmonization.internal.v0.models.PhraseReference;
3591
- }
3592
- interface ProductPhraseForm {
3593
- readonly product_id: string;
3594
- readonly phrase_id: string;
3595
- }
3596
- interface ProductReference {
3597
- readonly id: string;
3598
- }
3599
- interface SearchItemHs10Code {
3600
- readonly item: io.flow.common.v0.models.CatalogItemSummary;
3601
- readonly destination: string;
3602
- readonly code?: string;
3603
- readonly origin?: string;
3604
- }
3605
3677
  interface SearchItemHs6Code {
3606
3678
  readonly item: io.flow.common.v0.models.CatalogItemSummary;
3607
3679
  readonly code?: string;
@@ -3642,9 +3714,6 @@ declare namespace io.flow.harmonization.internal.v0.models {
3642
3714
  }
3643
3715
  }
3644
3716
  declare namespace io.flow.harmonization.internal.v0.unions {
3645
- type ClassificationFeatureSet = {
3646
- discriminator: 'classification_features_category_apparel';
3647
- } & io.flow.harmonization.internal.v0.models.ClassificationFeaturesCategoryApparel;
3648
3717
  type TaskData = {
3649
3718
  discriminator: 'task_process_queued_event';
3650
3719
  } & io.flow.harmonization.internal.v0.models.TaskProcessQueuedEvent | {
@@ -4024,6 +4093,7 @@ declare namespace io.flow.shopify.v0.models {
4024
4093
  }
4025
4094
  interface ShopifyCartConversionFlowOrder {
4026
4095
  readonly order: io.flow.experience.v0.models.Order;
4096
+ readonly errors?: io.flow.experience.v0.models.OrderError[];
4027
4097
  }
4028
4098
  interface ShopifyCartConversionShopifyCart {
4029
4099
  readonly cart: io.flow.shopify.external.v0.models.ShopifyCart;
@@ -5577,6 +5647,24 @@ declare namespace io.flow.experience.internal.v0.unions {
5577
5647
  discriminator: 'discount_request_offer_fixed_amount_form';
5578
5648
  } & io.flow.experience.internal.v0.models.DiscountRequestOfferFixedAmountForm;
5579
5649
  }
5650
+ declare namespace io.flow.fulfillment.internal.v0.enums { }
5651
+ declare namespace io.flow.fulfillment.internal.v0.models {
5652
+ interface CenterQueryBuilder {
5653
+ readonly placeholder: string;
5654
+ }
5655
+ interface FulfillmentExperienceReference {
5656
+ readonly id: string;
5657
+ readonly key: string;
5658
+ }
5659
+ interface PregeneratedQuote {
5660
+ readonly id: string;
5661
+ readonly experience: io.flow.fulfillment.internal.v0.models.FulfillmentExperienceReference;
5662
+ readonly destination_country: string;
5663
+ readonly item: io.flow.common.v0.models.ItemReference;
5664
+ readonly quote: io.flow.fulfillment.v0.models.Quote;
5665
+ }
5666
+ }
5667
+ declare namespace io.flow.fulfillment.internal.v0.unions { }
5580
5668
  declare namespace io.flow.duty.internal.v0.enums {
5581
5669
  type DutyCompoundExpressionType = 'sum' | 'max' | 'min';
5582
5670
  type DutyRateUnitOfMeasure = 'kg' | 'sq m' | 'item' | 'pair';
@@ -7928,6 +8016,7 @@ declare namespace io.flow.experiment.internal.v0.models {
7928
8016
  readonly variants: io.flow.experiment.internal.v0.unions.Variant[];
7929
8017
  }
7930
8018
  interface ExperimentResults {
8019
+ readonly id: string;
7931
8020
  readonly experiment_variant_key: string;
7932
8021
  readonly visitor_count: number;
7933
8022
  readonly visitors_with_transactions_count: number;
@@ -8273,20 +8362,20 @@ declare namespace io.flow.content.internal.v0.models {
8273
8362
  readonly checked_by_default: boolean;
8274
8363
  readonly required: boolean;
8275
8364
  }
8276
- interface Checkout {
8277
- readonly customer_service: io.flow.content.internal.v0.models.LabeledContent;
8278
- readonly checkout: io.flow.content.internal.v0.models.CheckoutContent;
8279
- readonly payments: io.flow.content.internal.v0.models.CheckoutPaymentContent;
8280
- readonly marketing: io.flow.content.internal.v0.models.CheckoutMarketingContent;
8281
- readonly footer: io.flow.content.internal.v0.unions.ContentItem[];
8282
- }
8283
- interface CheckoutContent {
8365
+ interface CheckoutContentDetails {
8284
8366
  readonly contact_us: io.flow.content.internal.v0.unions.ContentItem;
8285
8367
  readonly logo: io.flow.content.internal.v0.models.Logo;
8286
8368
  readonly privacy_policy?: io.flow.content.internal.v0.unions.ContentItem;
8287
8369
  readonly terms?: io.flow.content.internal.v0.unions.ContentItem;
8288
8370
  readonly order_summary_message?: io.flow.content.internal.v0.models.Label;
8289
8371
  }
8372
+ interface CheckoutContentSummary {
8373
+ readonly customer_service: io.flow.content.internal.v0.models.LabeledContent;
8374
+ readonly checkout: io.flow.content.internal.v0.models.CheckoutContentDetails;
8375
+ readonly payments: io.flow.content.internal.v0.models.CheckoutPaymentContent;
8376
+ readonly marketing: io.flow.content.internal.v0.models.CheckoutMarketingContent;
8377
+ readonly footer: io.flow.content.internal.v0.unions.ContentItem[];
8378
+ }
8290
8379
  interface CheckoutMarketingContent {
8291
8380
  readonly optins: io.flow.content.internal.v0.models.Checkbox[];
8292
8381
  }
@@ -9381,7 +9470,7 @@ declare namespace io.flow.internal.v0.enums {
9381
9470
  type DutyCompoundExpressionType = 'sum' | 'max' | 'min';
9382
9471
  type DutyRateUnitOfMeasure = 'kg' | 'sq m' | 'item' | 'pair';
9383
9472
  type DutySimpleExpressionType = 'free' | 'percent' | 'per_uom' | 'flat';
9384
- 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' | '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' | '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' | 'label_invoice_upserted' | 'label_invoice_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';
9473
+ 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' | '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' | 'label_invoice_upserted' | 'label_invoice_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';
9385
9474
  type ExclusionRuleState = 'current' | 'deleting' | 'updating';
9386
9475
  type ExperienceImportType = 'experience_with_settings';
9387
9476
  type ExperienceOrderAction = 'submit';
@@ -9444,6 +9533,7 @@ declare namespace io.flow.internal.v0.enums {
9444
9533
  type SimpleRoundingStrategy = 'no_rounding' | 'currency_precision';
9445
9534
  type Status = 'draft' | 'ended' | 'live';
9446
9535
  type SubscriptionFrequency = 'yearly' | 'monthly';
9536
+ type SuggestionAction = 'accept' | 'review';
9447
9537
  type TaxCalculationErrorCode = 'generic_error' | 'outside_of_jurisdiction';
9448
9538
  type TimeseriesType = 'daily' | 'weekly' | 'monthly' | 'yearly';
9449
9539
  type TrackingIntegrationType = 'api' | 'bulk' | 'aftership';
@@ -10153,7 +10243,7 @@ declare namespace io.flow.internal.v0.models {
10153
10243
  readonly cart?: io.flow.shopify.v0.models.ShopifyCart;
10154
10244
  readonly order: io.flow.experience.v0.models.Order;
10155
10245
  readonly order_errors?: io.flow.experience.v0.models.OrderError[];
10156
- readonly checkout?: unknown;
10246
+ readonly checkout?: io.flow.content.internal.v0.models.CheckoutContentSummary;
10157
10247
  readonly optins: io.flow.optin.internal.v0.models.OptinPrompt[];
10158
10248
  readonly destinations: io.flow.reference.v0.models.Country[];
10159
10249
  readonly features: io.flow.feature.v0.models.FeatureValueResult;
@@ -10190,7 +10280,7 @@ declare namespace io.flow.internal.v0.models {
10190
10280
  readonly checkout_configuration: io.flow.checkout.configuration.v0.models.CheckoutConfiguration;
10191
10281
  }
10192
10282
  interface CheckoutContent {
10193
- readonly global?: unknown;
10283
+ readonly global?: io.flow.content.internal.v0.models.CheckoutContentSummary;
10194
10284
  readonly items: io.flow.experience.v0.models.CheckoutItemContent[];
10195
10285
  }
10196
10286
  interface CheckoutContentDetails {
@@ -10230,6 +10320,7 @@ declare namespace io.flow.internal.v0.models {
10230
10320
  readonly feature_keys?: string[];
10231
10321
  }
10232
10322
  interface CheckoutPayment {
10323
+ readonly authorizations: io.flow.payment.v0.unions.Authorization[];
10233
10324
  readonly sources: unknown[];
10234
10325
  readonly public_key: io.flow.payment.v0.models.PublicKey;
10235
10326
  readonly method_types: io.flow.reference.v0.enums.PaymentMethodType[];
@@ -10269,7 +10360,7 @@ declare namespace io.flow.internal.v0.models {
10269
10360
  readonly errors?: io.flow.experience.v0.models.OrderError[];
10270
10361
  }
10271
10362
  interface CheckoutSubmitOrderForm {
10272
- readonly authorization_form: io.flow.payment.v0.unions.AuthorizationForm;
10363
+ readonly authorization_form?: io.flow.payment.v0.unions.AuthorizationForm;
10273
10364
  readonly installment_program_id?: string;
10274
10365
  readonly expected_order_summary?: io.flow.internal.v0.models.ExpectedOrderSummary;
10275
10366
  }
@@ -10446,6 +10537,7 @@ declare namespace io.flow.internal.v0.models {
10446
10537
  interface CustomsDescriptionSugestion {
10447
10538
  readonly value: number;
10448
10539
  readonly customs_description: string;
10540
+ readonly action?: io.flow.internal.v0.enums.SuggestionAction;
10449
10541
  }
10450
10542
  interface CustomsDescriptionSugestionCreated {
10451
10543
  readonly event_id: string;
@@ -10758,6 +10850,7 @@ declare namespace io.flow.internal.v0.models {
10758
10850
  readonly variants: io.flow.internal.v0.unions.Variant[];
10759
10851
  }
10760
10852
  interface ExperimentResults {
10853
+ readonly id: string;
10761
10854
  readonly experiment_variant_key: string;
10762
10855
  readonly visitor_count: number;
10763
10856
  readonly visitors_with_transactions_count: number;
@@ -10766,6 +10859,18 @@ declare namespace io.flow.internal.v0.models {
10766
10859
  readonly upper_bound: number;
10767
10860
  readonly probability_of_being_best?: number;
10768
10861
  }
10862
+ interface ExperimentResultsDeleted {
10863
+ readonly event_id: string;
10864
+ readonly timestamp: string;
10865
+ readonly organization_id: string;
10866
+ readonly experiment_results: io.flow.experiment.internal.v0.models.ExperimentResults;
10867
+ }
10868
+ interface ExperimentResultsUpserted {
10869
+ readonly event_id: string;
10870
+ readonly timestamp: string;
10871
+ readonly organization_id: string;
10872
+ readonly experiment_results: io.flow.experiment.internal.v0.models.ExperimentResults;
10873
+ }
10769
10874
  interface ExperimentResultsWithTimestamp {
10770
10875
  readonly timestamp: string;
10771
10876
  readonly results: io.flow.internal.v0.models.ExperimentResults[];
@@ -11063,6 +11168,10 @@ declare namespace io.flow.internal.v0.models {
11063
11168
  readonly reason: io.flow.order.management.v0.enums.CancelReason;
11064
11169
  readonly cancelled_lines: io.flow.order.management.v0.models.FulfillmentLineCancelForm[];
11065
11170
  }
11171
+ interface FulfillmentExperienceReference {
11172
+ readonly id: string;
11173
+ readonly key: string;
11174
+ }
11066
11175
  interface FulfillmentShipmentTracking {
11067
11176
  readonly fulfillment_key: string;
11068
11177
  readonly flow_tracking_number: string;
@@ -12505,6 +12614,25 @@ declare namespace io.flow.internal.v0.models {
12505
12614
  readonly timestamp: string;
12506
12615
  readonly phrase_id: string;
12507
12616
  }
12617
+ interface PregeneratedQuote {
12618
+ readonly id: string;
12619
+ readonly experience: io.flow.internal.v0.models.FulfillmentExperienceReference;
12620
+ readonly destination_country: string;
12621
+ readonly item: io.flow.common.v0.models.ItemReference;
12622
+ readonly quote: io.flow.fulfillment.v0.models.Quote;
12623
+ }
12624
+ interface PregeneratedQuoteDeleted {
12625
+ readonly event_id: string;
12626
+ readonly timestamp: string;
12627
+ readonly organization: string;
12628
+ readonly pregenerated_quote: io.flow.fulfillment.internal.v0.models.PregeneratedQuote;
12629
+ }
12630
+ interface PregeneratedQuoteUpserted {
12631
+ readonly event_id: string;
12632
+ readonly timestamp: string;
12633
+ readonly organization: string;
12634
+ readonly pregenerated_quote: io.flow.fulfillment.internal.v0.models.PregeneratedQuote;
12635
+ }
12508
12636
  interface ProcessingTransaction {
12509
12637
  readonly id: string;
12510
12638
  readonly type: io.flow.billing.v0.enums.BillingTransactionType;
@@ -13479,6 +13607,10 @@ declare namespace io.flow.internal.v0.unions {
13479
13607
  } & io.flow.internal.v0.models.ExperimentUpserted | {
13480
13608
  discriminator: 'experiment_deleted';
13481
13609
  } & io.flow.internal.v0.models.ExperimentDeleted | {
13610
+ discriminator: 'experiment_results_upserted';
13611
+ } & io.flow.internal.v0.models.ExperimentResultsUpserted | {
13612
+ discriminator: 'experiment_results_deleted';
13613
+ } & io.flow.internal.v0.models.ExperimentResultsDeleted | {
13482
13614
  discriminator: 'export_completed';
13483
13615
  } & io.flow.internal.v0.models.ExportCompleted | {
13484
13616
  discriminator: 'export_failed';
@@ -13501,6 +13633,10 @@ declare namespace io.flow.internal.v0.unions {
13501
13633
  } & io.flow.internal.v0.models.FtpFileDeleted | {
13502
13634
  discriminator: 'ftp_file_to_process_uploaded';
13503
13635
  } & io.flow.internal.v0.models.FtpFileToProcessUploaded | {
13636
+ discriminator: 'pregenerated_quote_upserted';
13637
+ } & io.flow.internal.v0.models.PregeneratedQuoteUpserted | {
13638
+ discriminator: 'pregenerated_quote_deleted';
13639
+ } & io.flow.internal.v0.models.PregeneratedQuoteDeleted | {
13504
13640
  discriminator: 'blacklisted_item_created';
13505
13641
  } & io.flow.internal.v0.models.BlacklistedItemCreated | {
13506
13642
  discriminator: 'blacklisted_item_updated';
@@ -14093,6 +14229,8 @@ export declare type ExperimentDeleted = io.flow.internal.v0.models.ExperimentDel
14093
14229
  export declare type ExperimentEngineResults = io.flow.internal.v0.models.ExperimentEngineResults;
14094
14230
  export declare type ExperimentForm = io.flow.internal.v0.models.ExperimentForm;
14095
14231
  export declare type ExperimentResults = io.flow.internal.v0.models.ExperimentResults;
14232
+ export declare type ExperimentResultsDeleted = io.flow.internal.v0.models.ExperimentResultsDeleted;
14233
+ export declare type ExperimentResultsUpserted = io.flow.internal.v0.models.ExperimentResultsUpserted;
14096
14234
  export declare type ExperimentResultsWithTimestamp = io.flow.internal.v0.models.ExperimentResultsWithTimestamp;
14097
14235
  export declare type ExperimentUpserted = io.flow.internal.v0.models.ExperimentUpserted;
14098
14236
  export declare type ExperimentVersion = io.flow.internal.v0.models.ExperimentVersion;
@@ -14159,6 +14297,7 @@ export declare type FtpSettingVersion = io.flow.internal.v0.models.FtpSettingVer
14159
14297
  export declare type FtpSettingsPaths = io.flow.internal.v0.models.FtpSettingsPaths;
14160
14298
  export declare type FulfillmentActionForm = io.flow.internal.v0.models.FulfillmentActionForm;
14161
14299
  export declare type FulfillmentCancel = io.flow.internal.v0.models.FulfillmentCancel;
14300
+ export declare type FulfillmentExperienceReference = io.flow.internal.v0.models.FulfillmentExperienceReference;
14162
14301
  export declare type FulfillmentShipmentTracking = io.flow.internal.v0.models.FulfillmentShipmentTracking;
14163
14302
  export declare type GiftCard = io.flow.internal.v0.models.GiftCard;
14164
14303
  export declare type GiftCardAuthorizationError = io.flow.internal.v0.models.GiftCardAuthorizationError;
@@ -14438,6 +14577,9 @@ export declare type PercentageInstallmentStep = io.flow.internal.v0.models.Perce
14438
14577
  export declare type PercentageInstallmentStepForm = io.flow.internal.v0.models.PercentageInstallmentStepForm;
14439
14578
  export declare type PhraseClassified = io.flow.internal.v0.models.PhraseClassified;
14440
14579
  export declare type PhrasePropagated = io.flow.internal.v0.models.PhrasePropagated;
14580
+ export declare type PregeneratedQuote = io.flow.internal.v0.models.PregeneratedQuote;
14581
+ export declare type PregeneratedQuoteDeleted = io.flow.internal.v0.models.PregeneratedQuoteDeleted;
14582
+ export declare type PregeneratedQuoteUpserted = io.flow.internal.v0.models.PregeneratedQuoteUpserted;
14441
14583
  export declare type PriceSelector = io.flow.internal.v0.enums.PriceSelector;
14442
14584
  export declare type ProcessingTransaction = io.flow.internal.v0.models.ProcessingTransaction;
14443
14585
  export declare type ProcessingTransactionType = io.flow.internal.v0.enums.ProcessingTransactionType;
@@ -14562,6 +14704,7 @@ export declare type SubmittedOrderUpserted = io.flow.internal.v0.models.Submitte
14562
14704
  export declare type Subscription = io.flow.internal.v0.models.Subscription;
14563
14705
  export declare type SubscriptionFrequency = io.flow.internal.v0.enums.SubscriptionFrequency;
14564
14706
  export declare type SubscriptionTransaction = io.flow.internal.v0.models.SubscriptionTransaction;
14707
+ export declare type SuggestionAction = io.flow.internal.v0.enums.SuggestionAction;
14565
14708
  export declare type SvbVirtualCardClearing = io.flow.internal.v0.models.SvbVirtualCardClearing;
14566
14709
  export declare type SvbVirtualCardClearingDeleted = io.flow.internal.v0.models.SvbVirtualCardClearingDeleted;
14567
14710
  export declare type SvbVirtualCardClearingUpserted = io.flow.internal.v0.models.SvbVirtualCardClearingUpserted;
package/dist/api.d.ts CHANGED
@@ -2205,9 +2205,6 @@ declare namespace io.flow.v0.models {
2205
2205
  readonly weight?: io.flow.v0.models.OptionWeightEstimates;
2206
2206
  readonly send_to?: io.flow.v0.models.ShippingAddress;
2207
2207
  readonly surcharge?: io.flow.v0.models.PriceWithBaseAndDetails;
2208
- readonly merchant_of_record_override?: io.flow.v0.enums.OrderMerchantOfRecord;
2209
- readonly prices?: io.flow.v0.models.OrderPriceDetail[];
2210
- readonly total?: io.flow.v0.models.LocalizedTotal;
2211
2208
  }
2212
2209
  interface DeliveryOptionCostComponent {
2213
2210
  readonly key: io.flow.v0.enums.DeliveryOptionCostDetailComponentKey;
@@ -2352,6 +2349,8 @@ declare namespace io.flow.v0.models {
2352
2349
  interface DigitalDelivery {
2353
2350
  readonly id: string;
2354
2351
  readonly items: io.flow.v0.models.DeliveryItem[];
2352
+ readonly prices?: io.flow.v0.models.OrderPriceDetail[];
2353
+ readonly total?: io.flow.v0.models.LocalizedTotal;
2355
2354
  }
2356
2355
  interface Dimension {
2357
2356
  readonly depth?: io.flow.v0.models.Measurement;
@@ -4702,6 +4701,8 @@ declare namespace io.flow.v0.models {
4702
4701
  readonly items: io.flow.v0.models.DeliveryItem[];
4703
4702
  readonly options: io.flow.v0.models.DeliveryOption[];
4704
4703
  readonly special_services?: io.flow.v0.enums.PhysicalDeliverySpecialSerivce[];
4704
+ readonly prices?: io.flow.v0.models.OrderPriceDetail[];
4705
+ readonly total?: io.flow.v0.models.LocalizedTotal;
4705
4706
  }
4706
4707
  interface PostPaymentRedirectUrls {
4707
4708
  readonly success: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
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": "e59c9b74bb6881744a73b755cad43bda1a6fb24b"
30
31
  }
@@ -3159,6 +3159,149 @@ namespace io.flow.external.paypal.v1.models {
3159
3159
 
3160
3160
  namespace io.flow.external.paypal.v1.unions {}
3161
3161
 
3162
+ namespace io.flow.bundle.internal.v0.enums {
3163
+ export type CheckoutErrorCode =
3164
+ | 'generic_error'
3165
+ | 'organization_invalid'
3166
+ | 'session_invalid'
3167
+ | 'session_organization_invalid';
3168
+ }
3169
+
3170
+ namespace io.flow.bundle.internal.v0.models {
3171
+ export interface Checkout {
3172
+ readonly id: string;
3173
+ readonly organization: io.flow.common.v0.models.OrganizationSummary;
3174
+ readonly builder: io.flow.experience.v0.models.OrderBuilder;
3175
+ readonly content: io.flow.bundle.internal.v0.models.CheckoutContent;
3176
+ readonly destinations: io.flow.reference.v0.models.Country[];
3177
+ readonly optins: io.flow.optin.internal.v0.models.OptinPrompt[];
3178
+ readonly addresses: unknown[];
3179
+ readonly features: io.flow.feature.v0.models.FeatureValueResult;
3180
+ readonly configuration: io.flow.checkout.configuration.v0.models.CheckoutConfiguration;
3181
+ readonly cart?: io.flow.shopify.v0.models.ShopifyCart;
3182
+ readonly customer?: io.flow.customer.v0.models.Customer;
3183
+ readonly address_book?: io.flow.customer.v0.models.CustomerAddressBook;
3184
+ readonly gift_card_program?: io.flow.experience.internal.v0.models.GiftCardProgram;
3185
+ readonly loyalty_program?: io.flow.experience.internal.v0.models.LoyaltyProgram;
3186
+ readonly payment: io.flow.bundle.internal.v0.models.CheckoutPayment;
3187
+ }
3188
+
3189
+ export interface CheckoutBundle {
3190
+ readonly cart?: io.flow.shopify.v0.models.ShopifyCart;
3191
+ readonly order: io.flow.experience.v0.models.Order;
3192
+ readonly order_errors?: io.flow.experience.v0.models.OrderError[];
3193
+ readonly checkout?: io.flow.content.internal.v0.models.CheckoutContentSummary;
3194
+ readonly optins: io.flow.optin.internal.v0.models.OptinPrompt[];
3195
+ readonly destinations: io.flow.reference.v0.models.Country[];
3196
+ readonly features: io.flow.feature.v0.models.FeatureValueResult;
3197
+ readonly provinces: io.flow.reference.v0.models.Province[];
3198
+ readonly checkout_items: io.flow.experience.v0.models.CheckoutItemContent[];
3199
+ readonly metadata?: io.flow.bundle.internal.v0.models.CheckoutBundleMetadata;
3200
+ readonly configuration?: io.flow.checkout.configuration.v0.models.CheckoutConfiguration;
3201
+ readonly address_configurations?: unknown[];
3202
+ readonly customer?: io.flow.customer.v0.models.Customer;
3203
+ readonly address_book?: io.flow.customer.v0.models.CustomerAddressBook;
3204
+ readonly payment_sources?: unknown[];
3205
+ }
3206
+
3207
+ export interface CheckoutBundleMetadata {
3208
+ readonly organization: io.flow.common.v0.models.OrganizationSummary;
3209
+ }
3210
+
3211
+ export interface CheckoutContent {
3212
+ readonly global?: io.flow.content.internal.v0.models.CheckoutContentSummary;
3213
+ readonly items: io.flow.experience.v0.models.CheckoutItemContent[];
3214
+ }
3215
+
3216
+ export interface CheckoutError {
3217
+ readonly code: io.flow.bundle.internal.v0.enums.CheckoutErrorCode;
3218
+ readonly messages: string[];
3219
+ readonly organization?: io.flow.common.v0.models.OrganizationReference;
3220
+ }
3221
+
3222
+ export interface CheckoutFinalizeOrderForm {
3223
+ readonly expected_order_summary: io.flow.bundle.internal.v0.models.ExpectedOrderSummary;
3224
+ readonly order_put_form: io.flow.experience.v0.models.OrderPutForm;
3225
+ }
3226
+
3227
+ export interface CheckoutOrderForm {
3228
+ readonly organization: string;
3229
+ readonly order: io.flow.experience.v0.models.OrderPutForm;
3230
+ readonly feature_keys?: string[];
3231
+ }
3232
+
3233
+ export interface CheckoutOrderNumberForm {
3234
+ readonly organization: string;
3235
+ readonly order_number: string;
3236
+ readonly feature_keys?: string[];
3237
+ }
3238
+
3239
+ export interface CheckoutPayment {
3240
+ readonly sources: unknown[];
3241
+ readonly public_key: io.flow.payment.v0.models.PublicKey;
3242
+ readonly method_types: io.flow.reference.v0.enums.PaymentMethodType[];
3243
+ readonly method_rules: io.flow.experience.v0.models.PaymentMethodRule[];
3244
+ }
3245
+
3246
+ export interface CheckoutReferenceForm {
3247
+ readonly order_number: string;
3248
+ readonly order_form: io.flow.experience.v0.models.OrderPutForm;
3249
+ readonly order_geo: io.flow.experience.v0.models.OrderGeo;
3250
+ readonly session_id: string;
3251
+ }
3252
+
3253
+ export interface CheckoutSourceOrderForm {
3254
+ readonly source_order_number: string;
3255
+ readonly feature_q?: string;
3256
+ }
3257
+
3258
+ export interface CheckoutSubmission {
3259
+ readonly builder: io.flow.experience.v0.models.OrderBuilder;
3260
+ readonly action?: io.flow.payment.v0.unions.AuthorizationResultAction;
3261
+ }
3262
+
3263
+ export interface CheckoutSubmissionForm {
3264
+ readonly authorization_form?: io.flow.payment.v0.unions.AuthorizationForm;
3265
+ readonly installment_program_id?: string;
3266
+ readonly expected_order_summary?: io.flow.bundle.internal.v0.models.ExpectedOrderSummary;
3267
+ readonly feature_keys?: string[];
3268
+ }
3269
+
3270
+ export interface CheckoutSubmitOrderBundle {
3271
+ readonly order?: io.flow.experience.v0.models.Order;
3272
+ readonly redirect?: io.flow.payment.v0.unions.AuthorizationResultAction;
3273
+ readonly errors?: io.flow.experience.v0.models.OrderError[];
3274
+ }
3275
+
3276
+ export interface CheckoutSubmitOrderForm {
3277
+ readonly authorization_form: io.flow.payment.v0.unions.AuthorizationForm;
3278
+ readonly installment_program_id?: string;
3279
+ readonly expected_order_summary?: io.flow.bundle.internal.v0.models.ExpectedOrderSummary;
3280
+ }
3281
+
3282
+ export interface ExpectedOrderSummary {
3283
+ readonly total?: io.flow.common.v0.models.Money;
3284
+ }
3285
+ }
3286
+
3287
+ namespace io.flow.bundle.internal.v0.unions {
3288
+ export type CheckoutForm =
3289
+ | {
3290
+ discriminator: 'order';
3291
+ } & io.flow.bundle.internal.v0.models.CheckoutOrderForm
3292
+ | {
3293
+ discriminator: 'order_number';
3294
+ } & io.flow.bundle.internal.v0.models.CheckoutOrderNumberForm;
3295
+
3296
+ export type CheckoutSubmitOrderBundles = {
3297
+ discriminator: 'checkout_submit_order_bundle';
3298
+ } & io.flow.bundle.internal.v0.models.CheckoutSubmitOrderBundle;
3299
+
3300
+ export type CheckoutSubmitOrderForms = {
3301
+ discriminator: 'checkout_submit_order_form';
3302
+ } & io.flow.bundle.internal.v0.models.CheckoutSubmitOrderForm;
3303
+ }
3304
+
3162
3305
  namespace io.flow.price.internal.v0.enums {
3163
3306
  export type DeminimisAdjustmentType =
3164
3307
  | 'none'
@@ -4318,7 +4461,6 @@ namespace io.flow.search.v0.unions {
4318
4461
  }
4319
4462
 
4320
4463
  namespace io.flow.harmonization.internal.v0.enums {
4321
- export type DutyType = 'General';
4322
4464
  export type ItemClassificationAction = 'ACCEPT' | 'MANUAL' | 'REJECT';
4323
4465
  export type ItemClassificationStatus =
4324
4466
  | 'Unclassified'
@@ -4333,18 +4475,6 @@ namespace io.flow.harmonization.internal.v0.models {
4333
4475
  readonly item_number: string;
4334
4476
  }
4335
4477
 
4336
- export interface ClassificationFeatureSetDefault {
4337
- readonly organization_id: string;
4338
- readonly default: io.flow.harmonization.internal.v0.unions.ClassificationFeatureSet;
4339
- }
4340
-
4341
- export interface ClassificationFeaturesCategoryApparel {
4342
- readonly item_identity?: string;
4343
- readonly construction?: string;
4344
- readonly material?: string;
4345
- readonly gender?: string;
4346
- }
4347
-
4348
4478
  export interface ClassificationItem {
4349
4479
  readonly id: string;
4350
4480
  readonly organization_id: string;
@@ -4448,12 +4578,6 @@ namespace io.flow.harmonization.internal.v0.models {
4448
4578
  readonly codes: io.flow.harmonization.internal.v0.models.HarmonizationStatisticsBreakout;
4449
4579
  }
4450
4580
 
4451
- export interface Hs10PhraseHintForm {
4452
- readonly code: string;
4453
- readonly destination: string;
4454
- readonly phrase: string;
4455
- }
4456
-
4457
4581
  export interface ItemHarmonization {
4458
4582
  readonly organization_id: string;
4459
4583
  readonly item_number: string;
@@ -4466,10 +4590,6 @@ namespace io.flow.harmonization.internal.v0.models {
4466
4590
  };
4467
4591
  }
4468
4592
 
4469
- export interface PhraseReference {
4470
- readonly id: string;
4471
- }
4472
-
4473
4593
  export interface ProductClassificationForm {
4474
4594
  readonly organization_id: string;
4475
4595
  readonly product_id: string;
@@ -4483,37 +4603,6 @@ namespace io.flow.harmonization.internal.v0.models {
4483
4603
  readonly next_product?: io.flow.harmonization.internal.v0.models.ClassificationProductId;
4484
4604
  }
4485
4605
 
4486
- export interface ProductDetailHintForm {
4487
- readonly name?: string;
4488
- readonly description?: string;
4489
- readonly categories?: string;
4490
- readonly materials?: string;
4491
- readonly brand?: string;
4492
- readonly department?: string;
4493
- }
4494
-
4495
- export interface ProductPhrase {
4496
- readonly id: string;
4497
- readonly product: io.flow.harmonization.internal.v0.models.ProductReference;
4498
- readonly phrase: io.flow.harmonization.internal.v0.models.PhraseReference;
4499
- }
4500
-
4501
- export interface ProductPhraseForm {
4502
- readonly product_id: string;
4503
- readonly phrase_id: string;
4504
- }
4505
-
4506
- export interface ProductReference {
4507
- readonly id: string;
4508
- }
4509
-
4510
- export interface SearchItemHs10Code {
4511
- readonly item: io.flow.common.v0.models.CatalogItemSummary;
4512
- readonly destination: string;
4513
- readonly code?: string;
4514
- readonly origin?: string;
4515
- }
4516
-
4517
4606
  export interface SearchItemHs6Code {
4518
4607
  readonly item: io.flow.common.v0.models.CatalogItemSummary;
4519
4608
  readonly code?: string;
@@ -4562,10 +4651,6 @@ namespace io.flow.harmonization.internal.v0.models {
4562
4651
  }
4563
4652
 
4564
4653
  namespace io.flow.harmonization.internal.v0.unions {
4565
- export type ClassificationFeatureSet = {
4566
- discriminator: 'classification_features_category_apparel';
4567
- } & io.flow.harmonization.internal.v0.models.ClassificationFeaturesCategoryApparel;
4568
-
4569
4654
  export type TaskData =
4570
4655
  | {
4571
4656
  discriminator: 'task_process_queued_event';
@@ -5018,6 +5103,7 @@ namespace io.flow.shopify.v0.models {
5018
5103
 
5019
5104
  export interface ShopifyCartConversionFlowOrder {
5020
5105
  readonly order: io.flow.experience.v0.models.Order;
5106
+ readonly errors?: io.flow.experience.v0.models.OrderError[];
5021
5107
  }
5022
5108
 
5023
5109
  export interface ShopifyCartConversionShopifyCart {
@@ -6948,6 +7034,29 @@ namespace io.flow.experience.internal.v0.unions {
6948
7034
  } & io.flow.experience.internal.v0.models.DiscountRequestOfferFixedAmountForm;
6949
7035
  }
6950
7036
 
7037
+ namespace io.flow.fulfillment.internal.v0.enums {}
7038
+
7039
+ namespace io.flow.fulfillment.internal.v0.models {
7040
+ export interface CenterQueryBuilder {
7041
+ readonly placeholder: string;
7042
+ }
7043
+
7044
+ export interface FulfillmentExperienceReference {
7045
+ readonly id: string;
7046
+ readonly key: string;
7047
+ }
7048
+
7049
+ export interface PregeneratedQuote {
7050
+ readonly id: string;
7051
+ readonly experience: io.flow.fulfillment.internal.v0.models.FulfillmentExperienceReference;
7052
+ readonly destination_country: string;
7053
+ readonly item: io.flow.common.v0.models.ItemReference;
7054
+ readonly quote: io.flow.fulfillment.v0.models.Quote;
7055
+ }
7056
+ }
7057
+
7058
+ namespace io.flow.fulfillment.internal.v0.unions {}
7059
+
6951
7060
  namespace io.flow.duty.internal.v0.enums {
6952
7061
  export type DutyCompoundExpressionType = 'sum' | 'max' | 'min';
6953
7062
  export type DutyRateUnitOfMeasure = 'kg' | 'sq m' | 'item' | 'pair';
@@ -9931,6 +10040,7 @@ namespace io.flow.experiment.internal.v0.models {
9931
10040
  }
9932
10041
 
9933
10042
  export interface ExperimentResults {
10043
+ readonly id: string;
9934
10044
  readonly experiment_variant_key: string;
9935
10045
  readonly visitor_count: number;
9936
10046
  readonly visitors_with_transactions_count: number;
@@ -10319,15 +10429,7 @@ namespace io.flow.content.internal.v0.models {
10319
10429
  readonly required: boolean;
10320
10430
  }
10321
10431
 
10322
- export interface Checkout {
10323
- readonly customer_service: io.flow.content.internal.v0.models.LabeledContent;
10324
- readonly checkout: io.flow.content.internal.v0.models.CheckoutContent;
10325
- readonly payments: io.flow.content.internal.v0.models.CheckoutPaymentContent;
10326
- readonly marketing: io.flow.content.internal.v0.models.CheckoutMarketingContent;
10327
- readonly footer: io.flow.content.internal.v0.unions.ContentItem[];
10328
- }
10329
-
10330
- export interface CheckoutContent {
10432
+ export interface CheckoutContentDetails {
10331
10433
  readonly contact_us: io.flow.content.internal.v0.unions.ContentItem;
10332
10434
  readonly logo: io.flow.content.internal.v0.models.Logo;
10333
10435
  readonly privacy_policy?: io.flow.content.internal.v0.unions.ContentItem;
@@ -10335,6 +10437,14 @@ namespace io.flow.content.internal.v0.models {
10335
10437
  readonly order_summary_message?: io.flow.content.internal.v0.models.Label;
10336
10438
  }
10337
10439
 
10440
+ export interface CheckoutContentSummary {
10441
+ readonly customer_service: io.flow.content.internal.v0.models.LabeledContent;
10442
+ readonly checkout: io.flow.content.internal.v0.models.CheckoutContentDetails;
10443
+ readonly payments: io.flow.content.internal.v0.models.CheckoutPaymentContent;
10444
+ readonly marketing: io.flow.content.internal.v0.models.CheckoutMarketingContent;
10445
+ readonly footer: io.flow.content.internal.v0.unions.ContentItem[];
10446
+ }
10447
+
10338
10448
  export interface CheckoutMarketingContent {
10339
10449
  readonly optins: io.flow.content.internal.v0.models.Checkbox[];
10340
10450
  }
@@ -11918,6 +12028,8 @@ namespace io.flow.internal.v0.enums {
11918
12028
  | 'submitted_order_upserted'
11919
12029
  | 'experiment_upserted'
11920
12030
  | 'experiment_deleted'
12031
+ | 'experiment_results_upserted'
12032
+ | 'experiment_results_deleted'
11921
12033
  | 'export_completed'
11922
12034
  | 'export_failed'
11923
12035
  | 'fraud_review_upserted'
@@ -11929,6 +12041,8 @@ namespace io.flow.internal.v0.enums {
11929
12041
  | 'ftp_file_upserted'
11930
12042
  | 'ftp_file_deleted'
11931
12043
  | 'ftp_file_to_process_uploaded'
12044
+ | 'pregenerated_quote_upserted'
12045
+ | 'pregenerated_quote_deleted'
11932
12046
  | 'blacklisted_item_created'
11933
12047
  | 'blacklisted_item_updated'
11934
12048
  | 'blacklisted_item_deleted'
@@ -12166,6 +12280,7 @@ namespace io.flow.internal.v0.enums {
12166
12280
  export type SimpleRoundingStrategy = 'no_rounding' | 'currency_precision';
12167
12281
  export type Status = 'draft' | 'ended' | 'live';
12168
12282
  export type SubscriptionFrequency = 'yearly' | 'monthly';
12283
+ export type SuggestionAction = 'accept' | 'review';
12169
12284
  export type TaxCalculationErrorCode =
12170
12285
  | 'generic_error'
12171
12286
  | 'outside_of_jurisdiction';
@@ -12990,7 +13105,7 @@ namespace io.flow.internal.v0.models {
12990
13105
  readonly cart?: io.flow.shopify.v0.models.ShopifyCart;
12991
13106
  readonly order: io.flow.experience.v0.models.Order;
12992
13107
  readonly order_errors?: io.flow.experience.v0.models.OrderError[];
12993
- readonly checkout?: unknown;
13108
+ readonly checkout?: io.flow.content.internal.v0.models.CheckoutContentSummary;
12994
13109
  readonly optins: io.flow.optin.internal.v0.models.OptinPrompt[];
12995
13110
  readonly destinations: io.flow.reference.v0.models.Country[];
12996
13111
  readonly features: io.flow.feature.v0.models.FeatureValueResult;
@@ -13033,7 +13148,7 @@ namespace io.flow.internal.v0.models {
13033
13148
  }
13034
13149
 
13035
13150
  export interface CheckoutContent {
13036
- readonly global?: unknown;
13151
+ readonly global?: io.flow.content.internal.v0.models.CheckoutContentSummary;
13037
13152
  readonly items: io.flow.experience.v0.models.CheckoutItemContent[];
13038
13153
  }
13039
13154
 
@@ -13081,6 +13196,7 @@ namespace io.flow.internal.v0.models {
13081
13196
  }
13082
13197
 
13083
13198
  export interface CheckoutPayment {
13199
+ readonly authorizations: io.flow.payment.v0.unions.Authorization[];
13084
13200
  readonly sources: unknown[];
13085
13201
  readonly public_key: io.flow.payment.v0.models.PublicKey;
13086
13202
  readonly method_types: io.flow.reference.v0.enums.PaymentMethodType[];
@@ -13128,7 +13244,7 @@ namespace io.flow.internal.v0.models {
13128
13244
  }
13129
13245
 
13130
13246
  export interface CheckoutSubmitOrderForm {
13131
- readonly authorization_form: io.flow.payment.v0.unions.AuthorizationForm;
13247
+ readonly authorization_form?: io.flow.payment.v0.unions.AuthorizationForm;
13132
13248
  readonly installment_program_id?: string;
13133
13249
  readonly expected_order_summary?: io.flow.internal.v0.models.ExpectedOrderSummary;
13134
13250
  }
@@ -13333,6 +13449,7 @@ namespace io.flow.internal.v0.models {
13333
13449
  export interface CustomsDescriptionSugestion {
13334
13450
  readonly value: number;
13335
13451
  readonly customs_description: string;
13452
+ readonly action?: io.flow.internal.v0.enums.SuggestionAction;
13336
13453
  }
13337
13454
 
13338
13455
  export interface CustomsDescriptionSugestionCreated {
@@ -13698,6 +13815,7 @@ namespace io.flow.internal.v0.models {
13698
13815
  }
13699
13816
 
13700
13817
  export interface ExperimentResults {
13818
+ readonly id: string;
13701
13819
  readonly experiment_variant_key: string;
13702
13820
  readonly visitor_count: number;
13703
13821
  readonly visitors_with_transactions_count: number;
@@ -13707,6 +13825,20 @@ namespace io.flow.internal.v0.models {
13707
13825
  readonly probability_of_being_best?: number;
13708
13826
  }
13709
13827
 
13828
+ export interface ExperimentResultsDeleted {
13829
+ readonly event_id: string;
13830
+ readonly timestamp: string;
13831
+ readonly organization_id: string;
13832
+ readonly experiment_results: io.flow.experiment.internal.v0.models.ExperimentResults;
13833
+ }
13834
+
13835
+ export interface ExperimentResultsUpserted {
13836
+ readonly event_id: string;
13837
+ readonly timestamp: string;
13838
+ readonly organization_id: string;
13839
+ readonly experiment_results: io.flow.experiment.internal.v0.models.ExperimentResults;
13840
+ }
13841
+
13710
13842
  export interface ExperimentResultsWithTimestamp {
13711
13843
  readonly timestamp: string;
13712
13844
  readonly results: io.flow.internal.v0.models.ExperimentResults[];
@@ -14056,6 +14188,11 @@ namespace io.flow.internal.v0.models {
14056
14188
  readonly cancelled_lines: io.flow.order.management.v0.models.FulfillmentLineCancelForm[];
14057
14189
  }
14058
14190
 
14191
+ export interface FulfillmentExperienceReference {
14192
+ readonly id: string;
14193
+ readonly key: string;
14194
+ }
14195
+
14059
14196
  export interface FulfillmentShipmentTracking {
14060
14197
  readonly fulfillment_key: string;
14061
14198
  readonly flow_tracking_number: string;
@@ -15732,6 +15869,28 @@ namespace io.flow.internal.v0.models {
15732
15869
  readonly phrase_id: string;
15733
15870
  }
15734
15871
 
15872
+ export interface PregeneratedQuote {
15873
+ readonly id: string;
15874
+ readonly experience: io.flow.internal.v0.models.FulfillmentExperienceReference;
15875
+ readonly destination_country: string;
15876
+ readonly item: io.flow.common.v0.models.ItemReference;
15877
+ readonly quote: io.flow.fulfillment.v0.models.Quote;
15878
+ }
15879
+
15880
+ export interface PregeneratedQuoteDeleted {
15881
+ readonly event_id: string;
15882
+ readonly timestamp: string;
15883
+ readonly organization: string;
15884
+ readonly pregenerated_quote: io.flow.fulfillment.internal.v0.models.PregeneratedQuote;
15885
+ }
15886
+
15887
+ export interface PregeneratedQuoteUpserted {
15888
+ readonly event_id: string;
15889
+ readonly timestamp: string;
15890
+ readonly organization: string;
15891
+ readonly pregenerated_quote: io.flow.fulfillment.internal.v0.models.PregeneratedQuote;
15892
+ }
15893
+
15735
15894
  export interface ProcessingTransaction {
15736
15895
  readonly id: string;
15737
15896
  readonly type: io.flow.billing.v0.enums.BillingTransactionType;
@@ -16917,6 +17076,12 @@ namespace io.flow.internal.v0.unions {
16917
17076
  | {
16918
17077
  discriminator: 'experiment_deleted';
16919
17078
  } & io.flow.internal.v0.models.ExperimentDeleted
17079
+ | {
17080
+ discriminator: 'experiment_results_upserted';
17081
+ } & io.flow.internal.v0.models.ExperimentResultsUpserted
17082
+ | {
17083
+ discriminator: 'experiment_results_deleted';
17084
+ } & io.flow.internal.v0.models.ExperimentResultsDeleted
16920
17085
  | {
16921
17086
  discriminator: 'export_completed';
16922
17087
  } & io.flow.internal.v0.models.ExportCompleted
@@ -16950,6 +17115,12 @@ namespace io.flow.internal.v0.unions {
16950
17115
  | {
16951
17116
  discriminator: 'ftp_file_to_process_uploaded';
16952
17117
  } & io.flow.internal.v0.models.FtpFileToProcessUploaded
17118
+ | {
17119
+ discriminator: 'pregenerated_quote_upserted';
17120
+ } & io.flow.internal.v0.models.PregeneratedQuoteUpserted
17121
+ | {
17122
+ discriminator: 'pregenerated_quote_deleted';
17123
+ } & io.flow.internal.v0.models.PregeneratedQuoteDeleted
16953
17124
  | {
16954
17125
  discriminator: 'blacklisted_item_created';
16955
17126
  } & io.flow.internal.v0.models.BlacklistedItemCreated
@@ -17718,6 +17889,8 @@ export type ExperimentDeleted = io.flow.internal.v0.models.ExperimentDeleted;
17718
17889
  export type ExperimentEngineResults = io.flow.internal.v0.models.ExperimentEngineResults;
17719
17890
  export type ExperimentForm = io.flow.internal.v0.models.ExperimentForm;
17720
17891
  export type ExperimentResults = io.flow.internal.v0.models.ExperimentResults;
17892
+ export type ExperimentResultsDeleted = io.flow.internal.v0.models.ExperimentResultsDeleted;
17893
+ export type ExperimentResultsUpserted = io.flow.internal.v0.models.ExperimentResultsUpserted;
17721
17894
  export type ExperimentResultsWithTimestamp = io.flow.internal.v0.models.ExperimentResultsWithTimestamp;
17722
17895
  export type ExperimentUpserted = io.flow.internal.v0.models.ExperimentUpserted;
17723
17896
  export type ExperimentVersion = io.flow.internal.v0.models.ExperimentVersion;
@@ -17784,6 +17957,7 @@ export type FtpSettingVersion = io.flow.internal.v0.models.FtpSettingVersion;
17784
17957
  export type FtpSettingsPaths = io.flow.internal.v0.models.FtpSettingsPaths;
17785
17958
  export type FulfillmentActionForm = io.flow.internal.v0.models.FulfillmentActionForm;
17786
17959
  export type FulfillmentCancel = io.flow.internal.v0.models.FulfillmentCancel;
17960
+ export type FulfillmentExperienceReference = io.flow.internal.v0.models.FulfillmentExperienceReference;
17787
17961
  export type FulfillmentShipmentTracking = io.flow.internal.v0.models.FulfillmentShipmentTracking;
17788
17962
  export type GiftCard = io.flow.internal.v0.models.GiftCard;
17789
17963
  export type GiftCardAuthorizationError = io.flow.internal.v0.models.GiftCardAuthorizationError;
@@ -18063,6 +18237,9 @@ export type PercentageInstallmentStep = io.flow.internal.v0.models.PercentageIns
18063
18237
  export type PercentageInstallmentStepForm = io.flow.internal.v0.models.PercentageInstallmentStepForm;
18064
18238
  export type PhraseClassified = io.flow.internal.v0.models.PhraseClassified;
18065
18239
  export type PhrasePropagated = io.flow.internal.v0.models.PhrasePropagated;
18240
+ export type PregeneratedQuote = io.flow.internal.v0.models.PregeneratedQuote;
18241
+ export type PregeneratedQuoteDeleted = io.flow.internal.v0.models.PregeneratedQuoteDeleted;
18242
+ export type PregeneratedQuoteUpserted = io.flow.internal.v0.models.PregeneratedQuoteUpserted;
18066
18243
  export type PriceSelector = io.flow.internal.v0.enums.PriceSelector;
18067
18244
  export type ProcessingTransaction = io.flow.internal.v0.models.ProcessingTransaction;
18068
18245
  export type ProcessingTransactionType = io.flow.internal.v0.enums.ProcessingTransactionType;
@@ -18187,6 +18364,7 @@ export type SubmittedOrderUpserted = io.flow.internal.v0.models.SubmittedOrderUp
18187
18364
  export type Subscription = io.flow.internal.v0.models.Subscription;
18188
18365
  export type SubscriptionFrequency = io.flow.internal.v0.enums.SubscriptionFrequency;
18189
18366
  export type SubscriptionTransaction = io.flow.internal.v0.models.SubscriptionTransaction;
18367
+ export type SuggestionAction = io.flow.internal.v0.enums.SuggestionAction;
18190
18368
  export type SvbVirtualCardClearing = io.flow.internal.v0.models.SvbVirtualCardClearing;
18191
18369
  export type SvbVirtualCardClearingDeleted = io.flow.internal.v0.models.SvbVirtualCardClearingDeleted;
18192
18370
  export type SvbVirtualCardClearingUpserted = io.flow.internal.v0.models.SvbVirtualCardClearingUpserted;
package/src/api.ts CHANGED
@@ -3092,9 +3092,6 @@ namespace io.flow.v0.models {
3092
3092
  readonly weight?: io.flow.v0.models.OptionWeightEstimates;
3093
3093
  readonly send_to?: io.flow.v0.models.ShippingAddress;
3094
3094
  readonly surcharge?: io.flow.v0.models.PriceWithBaseAndDetails;
3095
- readonly merchant_of_record_override?: io.flow.v0.enums.OrderMerchantOfRecord;
3096
- readonly prices?: io.flow.v0.models.OrderPriceDetail[];
3097
- readonly total?: io.flow.v0.models.LocalizedTotal;
3098
3095
  }
3099
3096
 
3100
3097
  export interface DeliveryOptionCostComponent {
@@ -3258,6 +3255,8 @@ namespace io.flow.v0.models {
3258
3255
  export interface DigitalDelivery {
3259
3256
  readonly id: string;
3260
3257
  readonly items: io.flow.v0.models.DeliveryItem[];
3258
+ readonly prices?: io.flow.v0.models.OrderPriceDetail[];
3259
+ readonly total?: io.flow.v0.models.LocalizedTotal;
3261
3260
  }
3262
3261
 
3263
3262
  export interface Dimension {
@@ -5994,6 +5993,8 @@ namespace io.flow.v0.models {
5994
5993
  readonly items: io.flow.v0.models.DeliveryItem[];
5995
5994
  readonly options: io.flow.v0.models.DeliveryOption[];
5996
5995
  readonly special_services?: io.flow.v0.enums.PhysicalDeliverySpecialSerivce[];
5996
+ readonly prices?: io.flow.v0.models.OrderPriceDetail[];
5997
+ readonly total?: io.flow.v0.models.LocalizedTotal;
5997
5998
  }
5998
5999
 
5999
6000
  export interface PostPaymentRedirectUrls {