@flowio/types 5.0.0 → 7.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/dist/api-internal.d.ts +647 -514
- package/dist/api.d.ts +79 -38
- package/package.json +2 -2
- package/src/api-internal.ts +863 -731
- package/src/api.ts +88 -47
package/dist/api.d.ts
CHANGED
|
@@ -845,6 +845,7 @@ declare namespace io.flow.v0.enums {
|
|
|
845
845
|
type ConsumerInvoiceCustomerType = 'business_eu_verified' | 'business_non_verified' | 'individual';
|
|
846
846
|
type ConsumerInvoiceDocumentType = 'pdf';
|
|
847
847
|
type ConsumerInvoiceStatus = 'pending' | 'available' | 'invalid';
|
|
848
|
+
type CountryPickerSource = 'experience' | 'destination';
|
|
848
849
|
type CreditPaymentErrorCode = 'generic_error' | 'invalid_order_number' | 'invalid_currency' | 'invalid_description' | 'duplicate' | 'amount_must_be_positive' | 'amount_exceeds_balance' | 'insufficient_amount';
|
|
849
850
|
type CurrencyLabelFormatter = 'strip_trailing_zeros';
|
|
850
851
|
type CurrencySymbolFormat = 'narrow' | 'primary';
|
|
@@ -862,7 +863,7 @@ declare namespace io.flow.v0.enums {
|
|
|
862
863
|
type EcommercePlatformType = 'commercetools' | 'custom' | 'magento' | 'shopify' | 'sfcc' | 'solidus' | 'workarea';
|
|
863
864
|
type EconomicTitleLocation = 'high_seas' | 'origination' | 'destination';
|
|
864
865
|
type Environment = 'sandbox' | 'production';
|
|
865
|
-
type EventType = 'attribute_upserted' | 'attribute_deleted' | 'attribute_upserted_v2' | 'attribute_deleted_v2' | 'catalog_upserted' | 'catalog_deleted' | 'subcatalog_upserted' | 'subcatalog_deleted' | 'catalog_item_upserted' | 'catalog_item_deleted' | 'catalog_item_upserted_v2' | 'catalog_item_deleted_v2' | 'subcatalog_item_upserted' | 'subcatalog_item_deleted' | 'b2b_invoice_upserted' | 'b2b_invoice_deleted' | 'b2b_credit_memo_upserted' | 'b2b_credit_memo_deleted' | 'consumer_invoice_upserted' | 'consumer_invoice_deleted' | 'credit_memo_upserted' | 'credit_memo_deleted' | 'crossdock_shipment_upserted' | 'rate_deleted' | 'rate_upserted' | 'rate_deleted_v3' | 'rate_upserted_v3' | 'customer_upserted' | 'customer_deleted' | 'customer_address_book_contact_upserted' | 'customer_address_book_contact_deleted' | 'email_notification_upserted' | 'email_notification_deleted' | 'available_promotions_upserted' | 'available_promotions_deleted' | 'available_promotions_upserted_v2' | 'available_promotions_deleted_v2' | 'allocation_deleted_v2' | 'allocation_upserted_v2' | 'currency_format_deleted' | 'currency_format_upserted' | 'experience_deleted' | 'experience_upserted' | 'experience_deleted_v2' | 'experience_upserted_v2' | 'experience_price_book_mapping_deleted' | 'experience_price_book_mapping_upserted' | 'experience_logistics_settings_upserted' | 'experience_logistics_settings_deleted' | 'item_margin_deleted' | 'item_margin_upserted' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'label_format_deleted' | 'label_format_upserted' | 'order_deleted' | 'order_upserted' | 'order_deleted_v2' | 'order_upserted_v2' | 'order_identifier_deleted' | 'order_identifier_upserted' | 'order_identifier_deleted_v2' | 'order_identifier_upserted_v2' | 'order_identifier_upserted_v3' | 'pricing_deleted' | 'pricing_upserted' | 'order_service_change_request' | 'fraud_status_changed' | 'center_upserted' | 'center_deleted' | 'shipping_configuration_upserted' | 'shipping_configuration_deleted' | 'tier_upserted_v2' | 'tier_deleted_v2' | 'shipping_lane_upserted' | 'shipping_lane_deleted' | 'shipping_configuration_item_availability_upserted' | 'shipping_configuration_item_availability_deleted' | 'shipping_configuration_item_shipping_pricing_upserted' | 'shipping_configuration_item_shipping_pricing_deleted' | 'hs6_code_upserted' | 'hs6_code_deleted' | 'hs10_code_upserted' | 'hs10_code_deleted' | 'item_origin_upserted' | 'item_origin_deleted' | 'harmonized_landed_cost_upserted' | 'fully_harmonized_item_upserted' | 'rule_upserted' | 'rule_deleted' | 'serial_upserted' | 'serial_deleted' | 'snapshot_upserted' | 'snapshot_deleted' | 'label_upserted' | 'notification_upserted' | 'notification_deleted' | 'manifested_label_upserted' | 'manifested_label_deleted' | 'local_item_upserted' | 'local_item_deleted' | 'checkout_optin_responses_upserted' | 'checkout_optin_responses_deleted' | 'browse_optin_responses_upserted' | 'browse_optin_responses_deleted' | 'order_placed' | 'order_placed_v2' | 'ready_to_fulfill' | 'membership_upserted_v2' | 'membership_deleted_v2' | 'organization_upserted' | 'organization_deleted' | 'organization_upserted_v2' | 'organization_deleted_v2' | 'organization_short_id_upserted' | 'organization_short_id_deleted' | 'organization_default_configurations_upserted' | 'organization_default_configurations_deleted' | 'ecommerce_platform_upserted' | 'ecommerce_platform_deleted' | 'authorization_deleted_v2' | 'authorization_status_changed' | 'card_authorization_upserted_v2' | 'card_authorization_deleted_v2' | 'online_authorization_upserted_v2' | 'online_authorization_deleted_v2' | 'capture_upserted_v2' | 'capture_deleted' | 'card_upserted_v2' | 'card_deleted' | 'payment_upserted' | 'payment_deleted' | 'refund_upserted_v2' | 'refund_deleted_v2' | 'refund_capture_upserted_v2' | 'reversal_upserted' | 'reversal_deleted' | 'capture_identifier_upserted' | 'capture_identifier_deleted' | 'refund_identifier_upserted' | 'refund_identifier_deleted' | 'virtual_card_capture_upserted' | 'virtual_card_capture_deleted' | 'virtual_card_refund_upserted' | 'virtual_card_refund_deleted' | 'price_book_upserted' | 'price_book_deleted' | 'price_book_item_upserted' | 'price_book_item_deleted' | 'organization_rates_published' | '
|
|
866
|
+
type EventType = 'attribute_upserted' | 'attribute_deleted' | 'attribute_upserted_v2' | 'attribute_deleted_v2' | 'catalog_upserted' | 'catalog_deleted' | 'subcatalog_upserted' | 'subcatalog_deleted' | 'catalog_item_upserted' | 'catalog_item_deleted' | 'catalog_item_upserted_v2' | 'catalog_item_deleted_v2' | 'subcatalog_item_upserted' | 'subcatalog_item_deleted' | 'b2b_invoice_upserted' | 'b2b_invoice_deleted' | 'b2b_credit_memo_upserted' | 'b2b_credit_memo_deleted' | 'consumer_invoice_upserted' | 'consumer_invoice_deleted' | 'credit_memo_upserted' | 'credit_memo_deleted' | 'crossdock_shipment_upserted' | 'rate_deleted' | 'rate_upserted' | 'rate_deleted_v3' | 'rate_upserted_v3' | 'customer_upserted' | 'customer_deleted' | 'customer_address_book_contact_upserted' | 'customer_address_book_contact_deleted' | 'email_notification_upserted' | 'email_notification_deleted' | 'available_promotions_upserted' | 'available_promotions_deleted' | 'available_promotions_upserted_v2' | 'available_promotions_deleted_v2' | 'allocation_deleted_v2' | 'allocation_upserted_v2' | 'currency_format_deleted' | 'currency_format_upserted' | 'experience_deleted' | 'experience_upserted' | 'experience_deleted_v2' | 'experience_upserted_v2' | 'experience_price_book_mapping_deleted' | 'experience_price_book_mapping_upserted' | 'experience_logistics_settings_upserted' | 'experience_logistics_settings_deleted' | 'item_margin_deleted' | 'item_margin_upserted' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'label_format_deleted' | 'label_format_upserted' | 'order_deleted' | 'order_upserted' | 'order_deleted_v2' | 'order_upserted_v2' | 'order_identifier_deleted' | 'order_identifier_upserted' | 'order_identifier_deleted_v2' | 'order_identifier_upserted_v2' | 'order_identifier_upserted_v3' | 'pricing_deleted' | 'pricing_upserted' | 'order_service_change_request' | 'fraud_status_changed' | 'center_upserted' | 'center_deleted' | 'shipping_configuration_upserted' | 'shipping_configuration_deleted' | 'tier_upserted_v2' | 'tier_deleted_v2' | 'shipping_lane_upserted' | 'shipping_lane_deleted' | 'shipping_configuration_item_availability_upserted' | 'shipping_configuration_item_availability_deleted' | 'shipping_configuration_item_shipping_pricing_upserted' | 'shipping_configuration_item_shipping_pricing_deleted' | 'hs6_code_upserted' | 'hs6_code_deleted' | 'hs10_code_upserted' | 'hs10_code_deleted' | 'item_origin_upserted' | 'item_origin_deleted' | 'harmonized_landed_cost_upserted' | 'fully_harmonized_item_upserted' | 'rule_upserted' | 'rule_deleted' | 'serial_upserted' | 'serial_deleted' | 'snapshot_upserted' | 'snapshot_deleted' | 'label_upserted' | 'notification_upserted' | 'notification_deleted' | 'manifested_label_upserted' | 'manifested_label_deleted' | 'local_item_upserted' | 'local_item_deleted' | 'checkout_optin_responses_upserted' | 'checkout_optin_responses_deleted' | 'browse_optin_responses_upserted' | 'browse_optin_responses_deleted' | 'order_placed' | 'order_placed_v2' | 'ready_to_fulfill' | 'membership_upserted_v2' | 'membership_deleted_v2' | 'organization_upserted' | 'organization_deleted' | 'organization_upserted_v2' | 'organization_deleted_v2' | 'organization_short_id_upserted' | 'organization_short_id_deleted' | 'organization_default_configurations_upserted' | 'organization_default_configurations_deleted' | 'ecommerce_platform_upserted' | 'ecommerce_platform_deleted' | 'authorization_deleted_v2' | 'authorization_status_changed' | 'card_authorization_upserted_v2' | 'card_authorization_deleted_v2' | 'online_authorization_upserted_v2' | 'online_authorization_deleted_v2' | 'capture_upserted_v2' | 'capture_deleted' | 'card_upserted_v2' | 'card_deleted' | 'payment_upserted' | 'payment_deleted' | 'refund_upserted_v2' | 'refund_deleted_v2' | 'refund_capture_upserted_v2' | 'reversal_upserted' | 'reversal_deleted' | 'capture_identifier_upserted' | 'capture_identifier_deleted' | 'refund_identifier_upserted' | 'refund_identifier_deleted' | 'virtual_card_capture_upserted' | 'virtual_card_capture_deleted' | 'virtual_card_refund_upserted' | 'virtual_card_refund_deleted' | 'price_book_upserted' | 'price_book_deleted' | 'price_book_item_upserted' | 'price_book_item_deleted' | 'organization_rates_published' | 'ratecard_lane_upserted' | 'ratecard_lane_deleted' | 'ratecard_upserted' | 'ratecard_deleted' | 'return_upserted' | 'return_deleted' | 'shopify_localization_setting_upserted' | 'shopify_localization_setting_deleted' | 'targeting_item_upserted' | 'targeting_item_upserted_v2' | 'targeting_item_deleted' | 'targeting_item_deleted_v3' | 'tracking_label_event_upserted';
|
|
866
867
|
type ExceptionType = 'open' | 'closed';
|
|
867
868
|
type ExclusionRuleState = 'current' | 'deleting' | 'updating';
|
|
868
869
|
type ExperienceCloneStatus = 'pending' | 'updating' | 'completed' | 'failed';
|
|
@@ -887,7 +888,6 @@ declare namespace io.flow.v0.enums {
|
|
|
887
888
|
type IncludedLevyKey = 'duty' | 'vat' | 'vat_and_duty' | 'none';
|
|
888
889
|
type Incoterm = 'EXW' | 'FCA' | 'CPT' | 'CIP' | 'DAT' | 'DAP' | 'DDP' | 'FAS' | 'FOB' | 'CFR' | 'CIF' | 'DAF' | 'DES' | 'DEQ' | 'DDU';
|
|
889
890
|
type InputSpecificationType = 'text' | 'number';
|
|
890
|
-
type InstallmentPlanPaymentErrorCode = 'invalid_authorization' | 'invalid_authorization_amount' | 'invalid_installment_plan';
|
|
891
891
|
type InventoryStatus = 'has_inventory' | 'no_inventory';
|
|
892
892
|
type InvitationErrorCode = 'expired' | 'invalid_email';
|
|
893
893
|
type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
|
|
@@ -910,6 +910,7 @@ declare namespace io.flow.v0.enums {
|
|
|
910
910
|
type OrderPriceDetailComponentKey = 'adjustment' | 'vat_deminimis' | 'duty_deminimis' | 'duties_item_price' | 'duties_freight' | 'duties_insurance' | 'vat_item_price' | 'vat_freight' | 'vat_insurance' | 'vat_duties_item_price' | 'vat_duties_freight' | 'vat_duties_insurance' | 'item_price' | 'item_discount' | 'rounding' | 'insurance' | 'shipping' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'remote_area_surcharge' | 'fuel_surcharge';
|
|
911
911
|
type OrderPriceDetailKey = 'adjustment' | 'subtotal' | 'vat' | 'duty' | 'shipping' | 'insurance' | 'discount' | 'surcharges';
|
|
912
912
|
type OrderStatus = 'open' | 'submitted';
|
|
913
|
+
type OrderStorage = 'do_not_persist' | 'persist';
|
|
913
914
|
type OrganizationPaymentMethodTag = 'deny';
|
|
914
915
|
type PaymentErrorCode = 'duplicate' | 'invalid_amount' | 'invalid_currency' | 'invalid_method' | 'invalid_order' | 'invalid_customer' | 'invalid_destination' | 'unknown';
|
|
915
916
|
type PaymentMethodRuleContentKey = 'description';
|
|
@@ -921,6 +922,7 @@ declare namespace io.flow.v0.enums {
|
|
|
921
922
|
type PriceBookStatus = 'draft' | 'published' | 'archived';
|
|
922
923
|
type PriceDetailComponentKey = 'base_price' | 'discount' | 'currency_margin' | 'percent_item_margin' | 'fixed_item_margin' | 'duties_item_price' | 'duties_added_margin' | 'duties_rounding' | 'duties_deminimis' | 'vat_item_price' | 'vat_added_margin' | 'vat_rounding' | 'vat_duties_item_price' | 'vat_duties_added_margin' | 'vat_duties_rounding' | 'vat_deminimis' | 'item_price_percent_sales_margin' | 'margins_percent_sales_margin' | 'rounding_percent_sales_margin' | 'vat_percent_sales_margin' | 'vat_duty_percent_sales_margin' | 'duty_percent_sales_margin';
|
|
923
924
|
type PriceDetailKey = 'item_price' | 'margins' | 'vat' | 'duty' | 'rounding' | 'adjustment';
|
|
925
|
+
type PriceFacetBoundary = 'min' | 'max';
|
|
924
926
|
type PricingLevySetting = 'included' | 'displayed' | 'ignored';
|
|
925
927
|
type PromotionTriggerType = 'automatic' | 'order_subtotal';
|
|
926
928
|
type ProvinceType = 'city' | 'dependency' | 'district' | 'emirate' | 'entity' | 'municipality' | 'outlying_area' | 'parish' | 'province' | 'state' | 'territory' | 'other';
|
|
@@ -1494,6 +1496,7 @@ declare namespace io.flow.v0.models {
|
|
|
1494
1496
|
interface CaptureIdentifier {
|
|
1495
1497
|
readonly id: string;
|
|
1496
1498
|
readonly capture: io.flow.v0.models.CaptureReference;
|
|
1499
|
+
readonly name: string;
|
|
1497
1500
|
readonly identifier: string;
|
|
1498
1501
|
readonly primary: boolean;
|
|
1499
1502
|
}
|
|
@@ -2002,6 +2005,7 @@ declare namespace io.flow.v0.models {
|
|
|
2002
2005
|
readonly item_number: string;
|
|
2003
2006
|
readonly quantity: number;
|
|
2004
2007
|
readonly unit_price: number;
|
|
2008
|
+
readonly unit_discount?: number;
|
|
2005
2009
|
readonly unit_tax?: io.flow.v0.models.ConsumerInvoiceLevyForm;
|
|
2006
2010
|
readonly unit_duty?: io.flow.v0.models.ConsumerInvoiceLevyForm;
|
|
2007
2011
|
}
|
|
@@ -2013,6 +2017,7 @@ declare namespace io.flow.v0.models {
|
|
|
2013
2017
|
}
|
|
2014
2018
|
interface ConsumerInvoiceLineShippingForm {
|
|
2015
2019
|
readonly price: number;
|
|
2020
|
+
readonly discount?: number;
|
|
2016
2021
|
readonly tax?: io.flow.v0.models.ConsumerInvoiceLevyForm;
|
|
2017
2022
|
readonly duty?: io.flow.v0.models.ConsumerInvoiceLevyForm;
|
|
2018
2023
|
}
|
|
@@ -2064,6 +2069,13 @@ declare namespace io.flow.v0.models {
|
|
|
2064
2069
|
readonly currency: string;
|
|
2065
2070
|
readonly language: string;
|
|
2066
2071
|
}
|
|
2072
|
+
interface CountryPicker {
|
|
2073
|
+
readonly id: string;
|
|
2074
|
+
readonly source: io.flow.v0.enums.CountryPickerSource;
|
|
2075
|
+
}
|
|
2076
|
+
interface CountryPickerForm {
|
|
2077
|
+
readonly source: io.flow.v0.enums.CountryPickerSource;
|
|
2078
|
+
}
|
|
2067
2079
|
interface CountryShippingPricing {
|
|
2068
2080
|
readonly pricing: io.flow.v0.models.ItemShippingPricing;
|
|
2069
2081
|
readonly countries: string[];
|
|
@@ -2530,6 +2542,10 @@ declare namespace io.flow.v0.models {
|
|
|
2530
2542
|
readonly organization: string;
|
|
2531
2543
|
readonly ecommerce_platform: io.flow.v0.models.EcommercePlatform;
|
|
2532
2544
|
}
|
|
2545
|
+
interface EcommercePlatformForm {
|
|
2546
|
+
readonly type: io.flow.v0.enums.EcommercePlatformType;
|
|
2547
|
+
readonly version?: string;
|
|
2548
|
+
}
|
|
2533
2549
|
interface EcommercePlatformUpserted {
|
|
2534
2550
|
readonly event_id: string;
|
|
2535
2551
|
readonly timestamp: string;
|
|
@@ -2544,7 +2560,7 @@ declare namespace io.flow.v0.models {
|
|
|
2544
2560
|
}
|
|
2545
2561
|
interface EmailNotificationDataRefund {
|
|
2546
2562
|
readonly order: io.flow.v0.models.OrderSummary;
|
|
2547
|
-
readonly
|
|
2563
|
+
readonly return: io.flow.v0.models.OrderSummary;
|
|
2548
2564
|
readonly payment: io.flow.v0.models.EmailPaymentSummary;
|
|
2549
2565
|
}
|
|
2550
2566
|
interface EmailNotificationDeleted {
|
|
@@ -2767,6 +2783,31 @@ declare namespace io.flow.v0.models {
|
|
|
2767
2783
|
readonly organization: string;
|
|
2768
2784
|
readonly experience_price_book_mapping: io.flow.v0.models.ExperiencePriceBookMapping;
|
|
2769
2785
|
}
|
|
2786
|
+
interface ExperiencePriceConversion {
|
|
2787
|
+
readonly request: io.flow.v0.models.ExperiencePriceConversionRequest;
|
|
2788
|
+
readonly price: io.flow.v0.models.PriceWithBase;
|
|
2789
|
+
}
|
|
2790
|
+
interface ExperiencePriceConversionRequest {
|
|
2791
|
+
readonly value: number;
|
|
2792
|
+
readonly base: string;
|
|
2793
|
+
readonly local: string;
|
|
2794
|
+
}
|
|
2795
|
+
interface ExperiencePriceConversionResponse {
|
|
2796
|
+
readonly prices: io.flow.v0.models.ExperiencePriceConversion[];
|
|
2797
|
+
}
|
|
2798
|
+
interface ExperiencePriceFacetConversion {
|
|
2799
|
+
readonly request: io.flow.v0.models.ExperiencePriceFacetConversionRequest;
|
|
2800
|
+
readonly price: io.flow.v0.models.PriceWithBase;
|
|
2801
|
+
}
|
|
2802
|
+
interface ExperiencePriceFacetConversionRequest {
|
|
2803
|
+
readonly boundary: io.flow.v0.enums.PriceFacetBoundary;
|
|
2804
|
+
readonly value: number;
|
|
2805
|
+
readonly base: string;
|
|
2806
|
+
readonly local: string;
|
|
2807
|
+
}
|
|
2808
|
+
interface ExperiencePriceFacetConversionResponse {
|
|
2809
|
+
readonly facets: io.flow.v0.models.ExperiencePriceFacetConversion[];
|
|
2810
|
+
}
|
|
2770
2811
|
interface ExperienceReference {
|
|
2771
2812
|
readonly key: string;
|
|
2772
2813
|
}
|
|
@@ -3210,6 +3251,7 @@ declare namespace io.flow.v0.models {
|
|
|
3210
3251
|
}
|
|
3211
3252
|
interface IdentifierForm {
|
|
3212
3253
|
readonly primary?: boolean;
|
|
3254
|
+
readonly name: string;
|
|
3213
3255
|
}
|
|
3214
3256
|
interface Image {
|
|
3215
3257
|
readonly url: string;
|
|
@@ -3306,20 +3348,6 @@ declare namespace io.flow.v0.models {
|
|
|
3306
3348
|
interface InputSpecificationLimitations {
|
|
3307
3349
|
readonly limitations?: io.flow.v0.unions.InputSpecificationLimitation[];
|
|
3308
3350
|
}
|
|
3309
|
-
interface InstallmentPlanPaymentError {
|
|
3310
|
-
readonly code: io.flow.v0.enums.InstallmentPlanPaymentErrorCode;
|
|
3311
|
-
readonly messages: string[];
|
|
3312
|
-
readonly codes: io.flow.v0.enums.InstallmentPlanPaymentErrorCode[];
|
|
3313
|
-
}
|
|
3314
|
-
interface InstallmentPlanPaymentForm {
|
|
3315
|
-
readonly installment_program_id: string;
|
|
3316
|
-
readonly authorization_key: string;
|
|
3317
|
-
}
|
|
3318
|
-
interface InstallmentProgramSummary {
|
|
3319
|
-
readonly id: string;
|
|
3320
|
-
readonly name: string;
|
|
3321
|
-
readonly initial: io.flow.v0.models.Price;
|
|
3322
|
-
}
|
|
3323
3351
|
interface InventoryBackorder {
|
|
3324
3352
|
readonly quantity: number;
|
|
3325
3353
|
}
|
|
@@ -4002,7 +4030,6 @@ declare namespace io.flow.v0.models {
|
|
|
4002
4030
|
readonly ip?: string;
|
|
4003
4031
|
readonly options?: io.flow.v0.enums.AuthorizationOption[];
|
|
4004
4032
|
readonly redirect_urls?: io.flow.v0.models.PostPaymentRedirectUrls;
|
|
4005
|
-
readonly installment_program_id?: string;
|
|
4006
4033
|
readonly browser_info?: io.flow.v0.models.BrowserInfo;
|
|
4007
4034
|
}
|
|
4008
4035
|
interface MerchantOfRecordEntity {
|
|
@@ -4277,6 +4304,7 @@ declare namespace io.flow.v0.models {
|
|
|
4277
4304
|
[key: string]: string;
|
|
4278
4305
|
};
|
|
4279
4306
|
readonly authorization_keys?: string[];
|
|
4307
|
+
readonly options?: io.flow.v0.models.OrderOptions;
|
|
4280
4308
|
}
|
|
4281
4309
|
interface OrderFraudStatus {
|
|
4282
4310
|
readonly order: io.flow.v0.models.OrderReference;
|
|
@@ -4291,6 +4319,7 @@ declare namespace io.flow.v0.models {
|
|
|
4291
4319
|
interface OrderIdentifier {
|
|
4292
4320
|
readonly id: string;
|
|
4293
4321
|
readonly order: io.flow.v0.models.OrderReference;
|
|
4322
|
+
readonly name: string;
|
|
4294
4323
|
readonly identifier: string;
|
|
4295
4324
|
readonly primary: boolean;
|
|
4296
4325
|
readonly number?: string;
|
|
@@ -4308,12 +4337,14 @@ declare namespace io.flow.v0.models {
|
|
|
4308
4337
|
}
|
|
4309
4338
|
interface OrderIdentifierForm {
|
|
4310
4339
|
readonly order: string;
|
|
4340
|
+
readonly name?: string;
|
|
4311
4341
|
readonly identifier?: string;
|
|
4312
4342
|
readonly number?: string;
|
|
4313
4343
|
readonly primary?: boolean;
|
|
4314
4344
|
}
|
|
4315
4345
|
interface OrderIdentifierPutForm {
|
|
4316
4346
|
readonly order: string;
|
|
4347
|
+
readonly name?: string;
|
|
4317
4348
|
readonly primary?: boolean;
|
|
4318
4349
|
}
|
|
4319
4350
|
interface OrderIdentifierUpserted {
|
|
@@ -4369,6 +4400,9 @@ declare namespace io.flow.v0.models {
|
|
|
4369
4400
|
interface OrderNumberReference {
|
|
4370
4401
|
readonly number: string;
|
|
4371
4402
|
}
|
|
4403
|
+
interface OrderOptions {
|
|
4404
|
+
readonly storage: io.flow.v0.enums.OrderStorage;
|
|
4405
|
+
}
|
|
4372
4406
|
interface OrderPayment {
|
|
4373
4407
|
readonly id: string;
|
|
4374
4408
|
readonly type: io.flow.v0.enums.OrderPaymentType;
|
|
@@ -4411,6 +4445,7 @@ declare namespace io.flow.v0.models {
|
|
|
4411
4445
|
readonly name?: string;
|
|
4412
4446
|
readonly rate?: number;
|
|
4413
4447
|
readonly accuracy?: io.flow.v0.enums.PriceAccuracy;
|
|
4448
|
+
readonly rate_label?: string;
|
|
4414
4449
|
}
|
|
4415
4450
|
interface OrderPriceDetailComponent {
|
|
4416
4451
|
readonly key: io.flow.v0.enums.OrderPriceDetailComponentKey;
|
|
@@ -4436,6 +4471,7 @@ declare namespace io.flow.v0.models {
|
|
|
4436
4471
|
[key: string]: string;
|
|
4437
4472
|
};
|
|
4438
4473
|
readonly authorization_keys?: string[];
|
|
4474
|
+
readonly options?: io.flow.v0.models.OrderOptions;
|
|
4439
4475
|
}
|
|
4440
4476
|
interface OrderReference {
|
|
4441
4477
|
readonly id: string;
|
|
@@ -4473,6 +4509,7 @@ declare namespace io.flow.v0.models {
|
|
|
4473
4509
|
}
|
|
4474
4510
|
interface OrderSubmissionIdentifierForm {
|
|
4475
4511
|
readonly identifier: string;
|
|
4512
|
+
readonly name?: string;
|
|
4476
4513
|
readonly primary?: boolean;
|
|
4477
4514
|
}
|
|
4478
4515
|
interface OrderSummary {
|
|
@@ -4487,6 +4524,9 @@ declare namespace io.flow.v0.models {
|
|
|
4487
4524
|
readonly adjustment?: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
4488
4525
|
readonly total: io.flow.v0.models.OrderSummaryPriceDetail;
|
|
4489
4526
|
readonly lines: io.flow.v0.models.OrderSummaryLineItem[];
|
|
4527
|
+
readonly identifiers?: {
|
|
4528
|
+
[key: string]: string;
|
|
4529
|
+
};
|
|
4490
4530
|
}
|
|
4491
4531
|
interface OrderSummaryImage {
|
|
4492
4532
|
readonly url: string;
|
|
@@ -4507,6 +4547,7 @@ declare namespace io.flow.v0.models {
|
|
|
4507
4547
|
}
|
|
4508
4548
|
interface OrderSummaryLevy {
|
|
4509
4549
|
readonly rate: number;
|
|
4550
|
+
readonly rate_label?: string;
|
|
4510
4551
|
readonly value: io.flow.v0.models.Price;
|
|
4511
4552
|
}
|
|
4512
4553
|
interface OrderSummaryLineItem {
|
|
@@ -4524,6 +4565,7 @@ declare namespace io.flow.v0.models {
|
|
|
4524
4565
|
readonly price: io.flow.v0.models.Price;
|
|
4525
4566
|
readonly name?: string;
|
|
4526
4567
|
readonly rate?: number;
|
|
4568
|
+
readonly rate_label?: string;
|
|
4527
4569
|
}
|
|
4528
4570
|
interface OrderUpserted {
|
|
4529
4571
|
readonly event_id: string;
|
|
@@ -4586,15 +4628,6 @@ declare namespace io.flow.v0.models {
|
|
|
4586
4628
|
interface OrganizationConfigurationReference {
|
|
4587
4629
|
readonly id: string;
|
|
4588
4630
|
}
|
|
4589
|
-
interface OrganizationCountriesData {
|
|
4590
|
-
readonly available: string[];
|
|
4591
|
-
}
|
|
4592
|
-
interface OrganizationCountriesPublished {
|
|
4593
|
-
readonly event_id: string;
|
|
4594
|
-
readonly timestamp: string;
|
|
4595
|
-
readonly organization: string;
|
|
4596
|
-
readonly data: io.flow.v0.models.OrganizationCountriesData;
|
|
4597
|
-
}
|
|
4598
4631
|
interface OrganizationCurrencySetting {
|
|
4599
4632
|
readonly id: string;
|
|
4600
4633
|
readonly base: string;
|
|
@@ -4855,7 +4888,9 @@ declare namespace io.flow.v0.models {
|
|
|
4855
4888
|
readonly display_position: number;
|
|
4856
4889
|
readonly content?: io.flow.v0.models.PaymentMethodRuleContent[];
|
|
4857
4890
|
readonly issuers?: io.flow.v0.models.PaymentMethodIssuer[];
|
|
4858
|
-
readonly programs
|
|
4891
|
+
readonly programs?: {
|
|
4892
|
+
[key: string]: string;
|
|
4893
|
+
}[];
|
|
4859
4894
|
readonly q?: io.flow.v0.models.Query;
|
|
4860
4895
|
}
|
|
4861
4896
|
interface PaymentMethodRuleContent {
|
|
@@ -5293,13 +5328,13 @@ declare namespace io.flow.v0.models {
|
|
|
5293
5328
|
}
|
|
5294
5329
|
interface Ratecard {
|
|
5295
5330
|
readonly id: string;
|
|
5331
|
+
readonly number: string;
|
|
5296
5332
|
readonly direction: io.flow.v0.enums.Direction;
|
|
5297
5333
|
readonly effective_at: string;
|
|
5298
5334
|
readonly origination_zones: io.flow.v0.models.Zone[];
|
|
5299
5335
|
readonly service: io.flow.v0.models.RatecardServiceSummary;
|
|
5300
|
-
readonly number?: string;
|
|
5301
5336
|
readonly published_at?: string;
|
|
5302
|
-
readonly ratecard_owner
|
|
5337
|
+
readonly ratecard_owner: io.flow.v0.enums.RatecardOwner;
|
|
5303
5338
|
}
|
|
5304
5339
|
interface RatecardCarrierSummary {
|
|
5305
5340
|
readonly id: string;
|
|
@@ -5561,6 +5596,7 @@ declare namespace io.flow.v0.models {
|
|
|
5561
5596
|
interface RefundIdentifier {
|
|
5562
5597
|
readonly id: string;
|
|
5563
5598
|
readonly refund: io.flow.v0.models.RefundReference;
|
|
5599
|
+
readonly name: string;
|
|
5564
5600
|
readonly identifier: string;
|
|
5565
5601
|
readonly primary: boolean;
|
|
5566
5602
|
}
|
|
@@ -7460,8 +7496,6 @@ declare namespace io.flow.v0.unions {
|
|
|
7460
7496
|
} & io.flow.v0.models.PriceBookItemDeleted | {
|
|
7461
7497
|
discriminator: 'organization_rates_published';
|
|
7462
7498
|
} & io.flow.v0.models.OrganizationRatesPublished | {
|
|
7463
|
-
discriminator: 'organization_countries_published';
|
|
7464
|
-
} & io.flow.v0.models.OrganizationCountriesPublished | {
|
|
7465
7499
|
discriminator: 'ratecard_lane_upserted';
|
|
7466
7500
|
} & io.flow.v0.models.RatecardLaneUpserted | {
|
|
7467
7501
|
discriminator: 'ratecard_lane_deleted';
|
|
@@ -7982,6 +8016,9 @@ export declare type Contact = io.flow.v0.models.Contact;
|
|
|
7982
8016
|
export declare type Country = io.flow.v0.models.Country;
|
|
7983
8017
|
export declare type CountryAvailability = io.flow.v0.models.CountryAvailability;
|
|
7984
8018
|
export declare type CountryDefaults = io.flow.v0.models.CountryDefaults;
|
|
8019
|
+
export declare type CountryPicker = io.flow.v0.models.CountryPicker;
|
|
8020
|
+
export declare type CountryPickerForm = io.flow.v0.models.CountryPickerForm;
|
|
8021
|
+
export declare type CountryPickerSource = io.flow.v0.enums.CountryPickerSource;
|
|
7985
8022
|
export declare type CountryShippingPricing = io.flow.v0.models.CountryShippingPricing;
|
|
7986
8023
|
export declare type CreditMemo = io.flow.v0.models.CreditMemo;
|
|
7987
8024
|
export declare type CreditMemoDeleted = io.flow.v0.models.CreditMemoDeleted;
|
|
@@ -8076,6 +8113,7 @@ export declare type Duration = io.flow.v0.models.Duration;
|
|
|
8076
8113
|
export declare type Duty = io.flow.v0.models.Duty;
|
|
8077
8114
|
export declare type EcommercePlatform = io.flow.v0.models.EcommercePlatform;
|
|
8078
8115
|
export declare type EcommercePlatformDeleted = io.flow.v0.models.EcommercePlatformDeleted;
|
|
8116
|
+
export declare type EcommercePlatformForm = io.flow.v0.models.EcommercePlatformForm;
|
|
8079
8117
|
export declare type EcommercePlatformType = io.flow.v0.enums.EcommercePlatformType;
|
|
8080
8118
|
export declare type EcommercePlatformUpserted = io.flow.v0.models.EcommercePlatformUpserted;
|
|
8081
8119
|
export declare type EconomicTitleLocation = io.flow.v0.enums.EconomicTitleLocation;
|
|
@@ -8137,6 +8175,12 @@ export declare type ExperiencePriceBookMappingDeleted = io.flow.v0.models.Experi
|
|
|
8137
8175
|
export declare type ExperiencePriceBookMappingForm = io.flow.v0.models.ExperiencePriceBookMappingForm;
|
|
8138
8176
|
export declare type ExperiencePriceBookMappingPutForm = io.flow.v0.models.ExperiencePriceBookMappingPutForm;
|
|
8139
8177
|
export declare type ExperiencePriceBookMappingUpserted = io.flow.v0.models.ExperiencePriceBookMappingUpserted;
|
|
8178
|
+
export declare type ExperiencePriceConversion = io.flow.v0.models.ExperiencePriceConversion;
|
|
8179
|
+
export declare type ExperiencePriceConversionRequest = io.flow.v0.models.ExperiencePriceConversionRequest;
|
|
8180
|
+
export declare type ExperiencePriceConversionResponse = io.flow.v0.models.ExperiencePriceConversionResponse;
|
|
8181
|
+
export declare type ExperiencePriceFacetConversion = io.flow.v0.models.ExperiencePriceFacetConversion;
|
|
8182
|
+
export declare type ExperiencePriceFacetConversionRequest = io.flow.v0.models.ExperiencePriceFacetConversionRequest;
|
|
8183
|
+
export declare type ExperiencePriceFacetConversionResponse = io.flow.v0.models.ExperiencePriceFacetConversionResponse;
|
|
8140
8184
|
export declare type ExperienceReference = io.flow.v0.models.ExperienceReference;
|
|
8141
8185
|
export declare type ExperienceSettings = io.flow.v0.models.ExperienceSettings;
|
|
8142
8186
|
export declare type ExperienceStatus = io.flow.v0.enums.ExperienceStatus;
|
|
@@ -8262,10 +8306,6 @@ export declare type InputSpecificationLimitation = io.flow.v0.unions.InputSpecif
|
|
|
8262
8306
|
export declare type InputSpecificationLimitationMax = io.flow.v0.models.InputSpecificationLimitationMax;
|
|
8263
8307
|
export declare type InputSpecificationLimitations = io.flow.v0.models.InputSpecificationLimitations;
|
|
8264
8308
|
export declare type InputSpecificationType = io.flow.v0.enums.InputSpecificationType;
|
|
8265
|
-
export declare type InstallmentPlanPaymentError = io.flow.v0.models.InstallmentPlanPaymentError;
|
|
8266
|
-
export declare type InstallmentPlanPaymentErrorCode = io.flow.v0.enums.InstallmentPlanPaymentErrorCode;
|
|
8267
|
-
export declare type InstallmentPlanPaymentForm = io.flow.v0.models.InstallmentPlanPaymentForm;
|
|
8268
|
-
export declare type InstallmentProgramSummary = io.flow.v0.models.InstallmentProgramSummary;
|
|
8269
8309
|
export declare type InventoryBackorder = io.flow.v0.models.InventoryBackorder;
|
|
8270
8310
|
export declare type InventoryCenterReference = io.flow.v0.models.InventoryCenterReference;
|
|
8271
8311
|
export declare type InventoryCheckResponse = io.flow.v0.models.InventoryCheckResponse;
|
|
@@ -8445,6 +8485,7 @@ export declare type OrderNumberGeneratorHexadecimal = io.flow.v0.models.OrderNum
|
|
|
8445
8485
|
export declare type OrderNumberGeneratorPrefixSuffix = io.flow.v0.models.OrderNumberGeneratorPrefixSuffix;
|
|
8446
8486
|
export declare type OrderNumberGeneratorUuid = io.flow.v0.models.OrderNumberGeneratorUuid;
|
|
8447
8487
|
export declare type OrderNumberReference = io.flow.v0.models.OrderNumberReference;
|
|
8488
|
+
export declare type OrderOptions = io.flow.v0.models.OrderOptions;
|
|
8448
8489
|
export declare type OrderPayment = io.flow.v0.models.OrderPayment;
|
|
8449
8490
|
export declare type OrderPaymentType = io.flow.v0.enums.OrderPaymentType;
|
|
8450
8491
|
export declare type OrderPlaced = io.flow.v0.models.OrderPlaced;
|
|
@@ -8466,6 +8507,7 @@ export declare type OrderServiceChangeForm = io.flow.v0.models.OrderServiceChang
|
|
|
8466
8507
|
export declare type OrderServiceChangeRequest = io.flow.v0.models.OrderServiceChangeRequest;
|
|
8467
8508
|
export declare type OrderServiceChangeRequestData = io.flow.v0.models.OrderServiceChangeRequestData;
|
|
8468
8509
|
export declare type OrderStatus = io.flow.v0.enums.OrderStatus;
|
|
8510
|
+
export declare type OrderStorage = io.flow.v0.enums.OrderStorage;
|
|
8469
8511
|
export declare type OrderSubmissionForm = io.flow.v0.models.OrderSubmissionForm;
|
|
8470
8512
|
export declare type OrderSubmissionIdentifierForm = io.flow.v0.models.OrderSubmissionIdentifierForm;
|
|
8471
8513
|
export declare type OrderSummary = io.flow.v0.models.OrderSummary;
|
|
@@ -8481,8 +8523,6 @@ export declare type Organization = io.flow.v0.models.Organization;
|
|
|
8481
8523
|
export declare type OrganizationAuthorization = io.flow.v0.models.OrganizationAuthorization;
|
|
8482
8524
|
export declare type OrganizationAuthorizationForm = io.flow.v0.models.OrganizationAuthorizationForm;
|
|
8483
8525
|
export declare type OrganizationConfigurationReference = io.flow.v0.models.OrganizationConfigurationReference;
|
|
8484
|
-
export declare type OrganizationCountriesData = io.flow.v0.models.OrganizationCountriesData;
|
|
8485
|
-
export declare type OrganizationCountriesPublished = io.flow.v0.models.OrganizationCountriesPublished;
|
|
8486
8526
|
export declare type OrganizationCurrencySetting = io.flow.v0.models.OrganizationCurrencySetting;
|
|
8487
8527
|
export declare type OrganizationCurrencySettingForm = io.flow.v0.models.OrganizationCurrencySettingForm;
|
|
8488
8528
|
export declare type OrganizationCurrencySettingVersion = io.flow.v0.models.OrganizationCurrencySettingVersion;
|
|
@@ -8584,6 +8624,7 @@ export declare type PriceDetailComponentKey = io.flow.v0.enums.PriceDetailCompon
|
|
|
8584
8624
|
export declare type PriceDetailKey = io.flow.v0.enums.PriceDetailKey;
|
|
8585
8625
|
export declare type PriceDetails = io.flow.v0.models.PriceDetails;
|
|
8586
8626
|
export declare type PriceEquation = io.flow.v0.models.PriceEquation;
|
|
8627
|
+
export declare type PriceFacetBoundary = io.flow.v0.enums.PriceFacetBoundary;
|
|
8587
8628
|
export declare type PriceForm = io.flow.v0.models.PriceForm;
|
|
8588
8629
|
export declare type PriceSource = io.flow.v0.unions.PriceSource;
|
|
8589
8630
|
export declare type PriceSourceCatalog = io.flow.v0.models.PriceSourceCatalog;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.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",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"prettier": "^1.18.2",
|
|
28
28
|
"typescript": "^3.6.3"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "dae9f844c34ce21efaa053d516550f36b97d11ac"
|
|
31
31
|
}
|