@flowio/types 11.16.0 → 11.17.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/src/api.ts CHANGED
@@ -242,7 +242,7 @@ declare namespace io.flow.shopify.external.v0.models {
242
242
  interface Product {
243
243
  readonly id: number;
244
244
  readonly handle: string;
245
- readonly variants?: io.flow.shopify.external.v0.models.ProductVariant[];
245
+ readonly variants: io.flow.shopify.external.v0.models.ProductVariant[];
246
246
  readonly images: io.flow.shopify.external.v0.models.ProductImage[];
247
247
  readonly title: string;
248
248
  readonly vendor?: string;
@@ -427,7 +427,7 @@ declare namespace io.flow.shopify.external.v0.models {
427
427
  }
428
428
 
429
429
  interface ShopifyClientDetail {
430
- readonly accept_language?: boolean;
430
+ readonly accept_language: boolean;
431
431
  readonly browser_height?: number;
432
432
  readonly browser_ip?: string;
433
433
  readonly browser_width?: number;
@@ -443,7 +443,7 @@ declare namespace io.flow.shopify.external.v0.models {
443
443
  readonly tax_exempt: boolean;
444
444
  readonly verified_email: boolean;
445
445
  readonly state: io.flow.shopify.external.v0.enums.ShopifyCustomerState;
446
- readonly accepts_marketing?: boolean;
446
+ readonly accepts_marketing: boolean;
447
447
  readonly default_address?: any /*object*/;
448
448
  readonly email?: string;
449
449
  readonly first_name?: string;
@@ -522,7 +522,7 @@ declare namespace io.flow.shopify.external.v0.models {
522
522
  readonly requires_shipping: boolean;
523
523
  readonly currency?: string;
524
524
  readonly items: io.flow.shopify.external.v0.models.ShopifyExternalCartItem[];
525
- readonly cart_level_discount_applications?: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
525
+ readonly cart_level_discount_applications: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
526
526
  }
527
527
 
528
528
  interface ShopifyExternalCartItem {
@@ -537,7 +537,7 @@ declare namespace io.flow.shopify.external.v0.models {
537
537
  readonly original_line_price: number;
538
538
  readonly total_discount: number;
539
539
  readonly discounted_price: number;
540
- readonly discounts?: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
540
+ readonly discounts: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
541
541
  readonly taxable: boolean;
542
542
  readonly quantity: number;
543
543
  readonly sku?: string;
@@ -555,8 +555,8 @@ declare namespace io.flow.shopify.external.v0.models {
555
555
  readonly product_description?: string;
556
556
  readonly product_type: string;
557
557
  readonly variant_title?: string;
558
- readonly variant_options?: string[];
559
- readonly line_level_discount_allocations?: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
558
+ readonly variant_options: string[];
559
+ readonly line_level_discount_allocations: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
560
560
  }
561
561
 
562
562
  interface ShopifyFulfillment {
@@ -797,11 +797,11 @@ declare namespace io.flow.shopify.external.v0.models {
797
797
  readonly updated_at?: string;
798
798
  readonly user_id?: number;
799
799
  readonly order_status_url?: string;
800
- readonly inventory_behaviour?: io.flow.shopify.external.v0.enums.InventoryBehaviour;
800
+ readonly inventory_behaviour: io.flow.shopify.external.v0.enums.InventoryBehaviour;
801
801
  readonly gateway?: string;
802
802
  readonly transactions?: io.flow.shopify.external.v0.models.ShopifyTransactionForm[];
803
803
  readonly send_receipt?: boolean;
804
- readonly metafields?: io.flow.shopify.external.v0.models.MetafieldForm[];
804
+ readonly metafields: io.flow.shopify.external.v0.models.MetafieldForm[];
805
805
  }
806
806
 
807
807
  interface ShopifyOrderCount {
@@ -939,7 +939,7 @@ declare namespace io.flow.shopify.external.v0.models {
939
939
 
940
940
  interface ShopifyWebhookOrder {
941
941
  readonly id?: number;
942
- readonly line_items?: io.flow.shopify.external.v0.models.ShopifyWebhookOrderLineItem[];
942
+ readonly line_items: io.flow.shopify.external.v0.models.ShopifyWebhookOrderLineItem[];
943
943
  }
944
944
 
945
945
  interface ShopifyWebhookOrderCancelled {
@@ -1671,6 +1671,17 @@ declare namespace io.flow.v0.enums {
1671
1671
  type SortDirection = 'ascending' | 'descending';
1672
1672
  type Strategy = 'range' | 'from' | 'to';
1673
1673
  type SubcatalogItemStatus = 'excluded' | 'included' | 'restricted';
1674
+ type SupportedActionType =
1675
+ | 'redirect'
1676
+ | 'use_sdk_klarna_v1'
1677
+ | 'use_sdk_applepay_js'
1678
+ | 'use_sdk_googlepay'
1679
+ | 'use_sdk_paypal'
1680
+ | 'use_sdk_stripe_v3'
1681
+ | 'use_sdk_adyen_v3'
1682
+ | 'use_sdk_adyen_v4'
1683
+ | 'execute_script'
1684
+ | 'display_inline_window';
1674
1685
  type SurchargeResponsibleParty = 'organization' | 'customer';
1675
1686
  type SyncRecordFailureReason =
1676
1687
  | 'inventory'
@@ -1840,14 +1851,14 @@ declare namespace io.flow.v0.models {
1840
1851
  readonly action: any /*object*/;
1841
1852
  }
1842
1853
 
1843
- interface ActionUseSdkApplepayCompleteValidation {
1844
- readonly type: 'use_sdk_applepay_complete_validation';
1854
+ interface ActionUseSdkApplepayJsCompleteValidation {
1855
+ readonly type: 'use_sdk_applepay_js_complete_validation';
1845
1856
  readonly expires_at?: string;
1846
1857
  readonly payment_session: any /*object*/;
1847
1858
  }
1848
1859
 
1849
- interface ActionUseSdkApplepayCreateSession {
1850
- readonly type: 'use_sdk_applepay_create_session';
1860
+ interface ActionUseSdkApplepayJsCreateSession {
1861
+ readonly type: 'use_sdk_applepay_js_create_session';
1851
1862
  readonly expires_at?: string;
1852
1863
  readonly merchant_identifier: string;
1853
1864
  readonly payment_data_request: any /*object*/;
@@ -2031,6 +2042,40 @@ declare namespace io.flow.v0.models {
2031
2042
  readonly not_included: io.flow.v0.unions.AllocationComponent[];
2032
2043
  }
2033
2044
 
2045
+ interface AllocationLineSummary {
2046
+ readonly line_items: io.flow.v0.models.AllocationLineSummaryLineItem[];
2047
+ readonly shipping: io.flow.v0.models.AllocationLineSummaryShipping;
2048
+ readonly subtotal: io.flow.v0.models.MoneyWithBase;
2049
+ readonly discount: io.flow.v0.models.MoneyWithBase;
2050
+ readonly duties: io.flow.v0.models.MoneyWithBase;
2051
+ readonly tax: io.flow.v0.models.MoneyWithBase;
2052
+ readonly tax_subsidy: io.flow.v0.models.MoneyWithBase;
2053
+ readonly duties_subsidy: io.flow.v0.models.MoneyWithBase;
2054
+ readonly total: io.flow.v0.models.MoneyWithBase;
2055
+ }
2056
+
2057
+ interface AllocationLineSummaryLineItem {
2058
+ readonly item_number: string;
2059
+ readonly line_number?: string;
2060
+ readonly subtotal: io.flow.v0.models.MoneyWithBase;
2061
+ readonly discount: io.flow.v0.models.MoneyWithBase;
2062
+ readonly duties: io.flow.v0.models.MoneyWithBase;
2063
+ readonly tax: io.flow.v0.models.MoneyWithBase;
2064
+ readonly tax_subsidy: io.flow.v0.models.MoneyWithBase;
2065
+ readonly duties_subsidy: io.flow.v0.models.MoneyWithBase;
2066
+ readonly total: io.flow.v0.models.MoneyWithBase;
2067
+ }
2068
+
2069
+ interface AllocationLineSummaryShipping {
2070
+ readonly subtotal: io.flow.v0.models.MoneyWithBase;
2071
+ readonly discount: io.flow.v0.models.MoneyWithBase;
2072
+ readonly duties: io.flow.v0.models.MoneyWithBase;
2073
+ readonly tax: io.flow.v0.models.MoneyWithBase;
2074
+ readonly tax_subsidy: io.flow.v0.models.MoneyWithBase;
2075
+ readonly duties_subsidy: io.flow.v0.models.MoneyWithBase;
2076
+ readonly total: io.flow.v0.models.MoneyWithBase;
2077
+ }
2078
+
2034
2079
  interface AllocationOrderDetail {
2035
2080
  readonly discriminator: 'allocation_order_detail';
2036
2081
  readonly key: io.flow.v0.enums.OrderPriceDetailKey;
@@ -2839,6 +2884,7 @@ declare namespace io.flow.v0.models {
2839
2884
  readonly price_book_key: string;
2840
2885
  readonly price_book_item_key: string;
2841
2886
  readonly catalog: io.flow.v0.models.CatalogItemSummary;
2887
+ readonly price?: io.flow.v0.models.Price;
2842
2888
  readonly amount: number;
2843
2889
  readonly starts_at: string;
2844
2890
  readonly ends_at?: string;
@@ -5976,6 +6022,10 @@ declare namespace io.flow.v0.models {
5976
6022
  readonly attributes: Record<string, string>;
5977
6023
  }
5978
6024
 
6025
+ interface OrderBuilderCustomerForm {
6026
+ readonly customer: io.flow.v0.models.OrderCustomerForm;
6027
+ }
6028
+
5979
6029
  interface OrderBuilderCustomerInvoiceAddressForm {
5980
6030
  readonly address: io.flow.v0.models.BillingAddress;
5981
6031
  }
@@ -5992,6 +6042,10 @@ declare namespace io.flow.v0.models {
5992
6042
  readonly destination: io.flow.v0.models.OrderAddress;
5993
6043
  }
5994
6044
 
6045
+ interface OrderBuilderSelectionsForm {
6046
+ readonly selections: string[];
6047
+ }
6048
+
5995
6049
  interface OrderCustomer {
5996
6050
  readonly name: io.flow.v0.models.Name;
5997
6051
  readonly number?: string;
@@ -7037,6 +7091,7 @@ declare namespace io.flow.v0.models {
7037
7091
  readonly brands: io.flow.v0.models.PaymentMethodBrand[];
7038
7092
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
7039
7093
  readonly images: io.flow.v0.models.PaymentMethodImages;
7094
+ readonly possible_actions: io.flow.v0.enums.SupportedActionType[];
7040
7095
  }
7041
7096
 
7042
7097
  interface PaymentPaypal {
@@ -7116,6 +7171,7 @@ declare namespace io.flow.v0.models {
7116
7171
  readonly attributes?: Record<string, string>;
7117
7172
  readonly reference?: string;
7118
7173
  readonly authorizations: io.flow.v0.models.PaymentAuthorization[];
7174
+ readonly supported_actions: io.flow.v0.enums.SupportedActionType[];
7119
7175
  }
7120
7176
 
7121
7177
  interface PaymentRequestForm {
@@ -7129,6 +7185,7 @@ declare namespace io.flow.v0.models {
7129
7185
  readonly attributes?: Record<string, string>;
7130
7186
  readonly reference?: string;
7131
7187
  readonly payment_method_data?: io.flow.v0.unions.PaymentMethodData;
7188
+ readonly supported_actions?: io.flow.v0.enums.SupportedActionType[];
7132
7189
  }
7133
7190
 
7134
7191
  interface PaymentReversal {
@@ -9823,8 +9880,8 @@ declare namespace io.flow.v0.unions {
9823
9880
  type Action =
9824
9881
  | io.flow.v0.models.ActionRedirect
9825
9882
  | io.flow.v0.models.ActionUseSdkKlarnaV1
9826
- | io.flow.v0.models.ActionUseSdkApplepayCreateSession
9827
- | io.flow.v0.models.ActionUseSdkApplepayCompleteValidation
9883
+ | io.flow.v0.models.ActionUseSdkApplepayJsCreateSession
9884
+ | io.flow.v0.models.ActionUseSdkApplepayJsCompleteValidation
9828
9885
  | io.flow.v0.models.ActionUseSdkGooglepay
9829
9886
  | io.flow.v0.models.ActionUseSdkPaypal
9830
9887
  | io.flow.v0.models.ActionUseSdkStripeV3
@@ -10290,8 +10347,8 @@ export type ActionExecuteScript = io.flow.v0.models.ActionExecuteScript;
10290
10347
  export type ActionRedirect = io.flow.v0.models.ActionRedirect;
10291
10348
  export type ActionUseSdkAdyenV3 = io.flow.v0.models.ActionUseSdkAdyenV3;
10292
10349
  export type ActionUseSdkAdyenV4 = io.flow.v0.models.ActionUseSdkAdyenV4;
10293
- export type ActionUseSdkApplepayCompleteValidation = io.flow.v0.models.ActionUseSdkApplepayCompleteValidation;
10294
- export type ActionUseSdkApplepayCreateSession = io.flow.v0.models.ActionUseSdkApplepayCreateSession;
10350
+ export type ActionUseSdkApplepayJsCompleteValidation = io.flow.v0.models.ActionUseSdkApplepayJsCompleteValidation;
10351
+ export type ActionUseSdkApplepayJsCreateSession = io.flow.v0.models.ActionUseSdkApplepayJsCreateSession;
10295
10352
  export type ActionUseSdkGooglepay = io.flow.v0.models.ActionUseSdkGooglepay;
10296
10353
  export type ActionUseSdkKlarnaV1 = io.flow.v0.models.ActionUseSdkKlarnaV1;
10297
10354
  export type ActionUseSdkPaypal = io.flow.v0.models.ActionUseSdkPaypal;
@@ -10324,6 +10381,9 @@ export type AllocationDetail = io.flow.v0.unions.AllocationDetail;
10324
10381
  export type AllocationDetailComponent = io.flow.v0.models.AllocationDetailComponent;
10325
10382
  export type AllocationLevyComponent = io.flow.v0.models.AllocationLevyComponent;
10326
10383
  export type AllocationLineDetail = io.flow.v0.models.AllocationLineDetail;
10384
+ export type AllocationLineSummary = io.flow.v0.models.AllocationLineSummary;
10385
+ export type AllocationLineSummaryLineItem = io.flow.v0.models.AllocationLineSummaryLineItem;
10386
+ export type AllocationLineSummaryShipping = io.flow.v0.models.AllocationLineSummaryShipping;
10327
10387
  export type AllocationOrderDetail = io.flow.v0.models.AllocationOrderDetail;
10328
10388
  export type AllocationOrderSummary = io.flow.v0.models.AllocationOrderSummary;
10329
10389
  export type AllocationUpsertedV2 = io.flow.v0.models.AllocationUpsertedV2;
@@ -10996,10 +11056,12 @@ export type Order = io.flow.v0.models.Order;
10996
11056
  export type OrderAddress = io.flow.v0.models.OrderAddress;
10997
11057
  export type OrderBuilder = io.flow.v0.models.OrderBuilder;
10998
11058
  export type OrderBuilderAttributesForm = io.flow.v0.models.OrderBuilderAttributesForm;
11059
+ export type OrderBuilderCustomerForm = io.flow.v0.models.OrderBuilderCustomerForm;
10999
11060
  export type OrderBuilderCustomerInvoiceAddressForm = io.flow.v0.models.OrderBuilderCustomerInvoiceAddressForm;
11000
11061
  export type OrderBuilderDeliveredDutyForm = io.flow.v0.models.OrderBuilderDeliveredDutyForm;
11001
11062
  export type OrderBuilderDestinationCountryForm = io.flow.v0.models.OrderBuilderDestinationCountryForm;
11002
11063
  export type OrderBuilderDestinationForm = io.flow.v0.models.OrderBuilderDestinationForm;
11064
+ export type OrderBuilderSelectionsForm = io.flow.v0.models.OrderBuilderSelectionsForm;
11003
11065
  export type OrderChangeSource = io.flow.v0.enums.OrderChangeSource;
11004
11066
  export type OrderCustomer = io.flow.v0.models.OrderCustomer;
11005
11067
  export type OrderCustomerForm = io.flow.v0.models.OrderCustomerForm;
@@ -11530,6 +11592,7 @@ export type SubcatalogUpserted = io.flow.v0.models.SubcatalogUpserted;
11530
11592
  export type SubcatalogVersion = io.flow.v0.models.SubcatalogVersion;
11531
11593
  export type Suggestion = io.flow.v0.models.Suggestion;
11532
11594
  export type SummaryShippingLabelForm = io.flow.v0.models.SummaryShippingLabelForm;
11595
+ export type SupportedActionType = io.flow.v0.enums.SupportedActionType;
11533
11596
  export type SurchargeResponsibleParty = io.flow.v0.enums.SurchargeResponsibleParty;
11534
11597
  export type SurchargeResponsiblePartyDisplay = io.flow.v0.models.SurchargeResponsiblePartyDisplay;
11535
11598
  export type SurchargeSetting = io.flow.v0.models.SurchargeSetting;