@flowio/types 11.16.1 → 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/dist/api.d.ts CHANGED
@@ -135,7 +135,7 @@ declare namespace io.flow.shopify.external.v0.models {
135
135
  interface Product {
136
136
  readonly id: number;
137
137
  readonly handle: string;
138
- readonly variants?: io.flow.shopify.external.v0.models.ProductVariant[];
138
+ readonly variants: io.flow.shopify.external.v0.models.ProductVariant[];
139
139
  readonly images: io.flow.shopify.external.v0.models.ProductImage[];
140
140
  readonly title: string;
141
141
  readonly vendor?: string;
@@ -290,7 +290,7 @@ declare namespace io.flow.shopify.external.v0.models {
290
290
  readonly title: string;
291
291
  }
292
292
  interface ShopifyClientDetail {
293
- readonly accept_language?: boolean;
293
+ readonly accept_language: boolean;
294
294
  readonly browser_height?: number;
295
295
  readonly browser_ip?: string;
296
296
  readonly browser_width?: number;
@@ -305,7 +305,7 @@ declare namespace io.flow.shopify.external.v0.models {
305
305
  readonly tax_exempt: boolean;
306
306
  readonly verified_email: boolean;
307
307
  readonly state: io.flow.shopify.external.v0.enums.ShopifyCustomerState;
308
- readonly accepts_marketing?: boolean;
308
+ readonly accepts_marketing: boolean;
309
309
  readonly default_address?: any;
310
310
  readonly email?: string;
311
311
  readonly first_name?: string;
@@ -377,7 +377,7 @@ declare namespace io.flow.shopify.external.v0.models {
377
377
  readonly requires_shipping: boolean;
378
378
  readonly currency?: string;
379
379
  readonly items: io.flow.shopify.external.v0.models.ShopifyExternalCartItem[];
380
- readonly cart_level_discount_applications?: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
380
+ readonly cart_level_discount_applications: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
381
381
  }
382
382
  interface ShopifyExternalCartItem {
383
383
  readonly id: number;
@@ -391,7 +391,7 @@ declare namespace io.flow.shopify.external.v0.models {
391
391
  readonly original_line_price: number;
392
392
  readonly total_discount: number;
393
393
  readonly discounted_price: number;
394
- readonly discounts?: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
394
+ readonly discounts: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
395
395
  readonly taxable: boolean;
396
396
  readonly quantity: number;
397
397
  readonly sku?: string;
@@ -409,8 +409,8 @@ declare namespace io.flow.shopify.external.v0.models {
409
409
  readonly product_description?: string;
410
410
  readonly product_type: string;
411
411
  readonly variant_title?: string;
412
- readonly variant_options?: string[];
413
- readonly line_level_discount_allocations?: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
412
+ readonly variant_options: string[];
413
+ readonly line_level_discount_allocations: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
414
414
  }
415
415
  interface ShopifyFulfillment {
416
416
  readonly location_id: number;
@@ -630,11 +630,11 @@ declare namespace io.flow.shopify.external.v0.models {
630
630
  readonly updated_at?: string;
631
631
  readonly user_id?: number;
632
632
  readonly order_status_url?: string;
633
- readonly inventory_behaviour?: io.flow.shopify.external.v0.enums.InventoryBehaviour;
633
+ readonly inventory_behaviour: io.flow.shopify.external.v0.enums.InventoryBehaviour;
634
634
  readonly gateway?: string;
635
635
  readonly transactions?: io.flow.shopify.external.v0.models.ShopifyTransactionForm[];
636
636
  readonly send_receipt?: boolean;
637
- readonly metafields?: io.flow.shopify.external.v0.models.MetafieldForm[];
637
+ readonly metafields: io.flow.shopify.external.v0.models.MetafieldForm[];
638
638
  }
639
639
  interface ShopifyOrderCount {
640
640
  readonly count: number;
@@ -755,7 +755,7 @@ declare namespace io.flow.shopify.external.v0.models {
755
755
  }
756
756
  interface ShopifyWebhookOrder {
757
757
  readonly id?: number;
758
- readonly line_items?: io.flow.shopify.external.v0.models.ShopifyWebhookOrderLineItem[];
758
+ readonly line_items: io.flow.shopify.external.v0.models.ShopifyWebhookOrderLineItem[];
759
759
  }
760
760
  interface ShopifyWebhookOrderCancelled {
761
761
  readonly id: number;
@@ -950,6 +950,7 @@ declare namespace io.flow.v0.enums {
950
950
  type SortDirection = 'ascending' | 'descending';
951
951
  type Strategy = 'range' | 'from' | 'to';
952
952
  type SubcatalogItemStatus = 'excluded' | 'included' | 'restricted';
953
+ type SupportedActionType = 'redirect' | 'use_sdk_klarna_v1' | 'use_sdk_applepay_js' | 'use_sdk_googlepay' | 'use_sdk_paypal' | 'use_sdk_stripe_v3' | 'use_sdk_adyen_v3' | 'use_sdk_adyen_v4' | 'execute_script' | 'display_inline_window';
953
954
  type SurchargeResponsibleParty = 'organization' | 'customer';
954
955
  type SyncRecordFailureReason = 'inventory' | 'address' | 'promotion' | 'other';
955
956
  type SyncStreamType = 'submitted_order' | 'placed_order';
@@ -1075,13 +1076,13 @@ declare namespace io.flow.v0.models {
1075
1076
  readonly client_key: string;
1076
1077
  readonly action: any;
1077
1078
  }
1078
- interface ActionUseSdkApplepayCompleteValidation {
1079
- readonly type: 'use_sdk_applepay_complete_validation';
1079
+ interface ActionUseSdkApplepayJsCompleteValidation {
1080
+ readonly type: 'use_sdk_applepay_js_complete_validation';
1080
1081
  readonly expires_at?: string;
1081
1082
  readonly payment_session: any;
1082
1083
  }
1083
- interface ActionUseSdkApplepayCreateSession {
1084
- readonly type: 'use_sdk_applepay_create_session';
1084
+ interface ActionUseSdkApplepayJsCreateSession {
1085
+ readonly type: 'use_sdk_applepay_js_create_session';
1085
1086
  readonly expires_at?: string;
1086
1087
  readonly merchant_identifier: string;
1087
1088
  readonly payment_data_request: any;
@@ -1238,6 +1239,37 @@ declare namespace io.flow.v0.models {
1238
1239
  readonly included: io.flow.v0.unions.AllocationComponent[];
1239
1240
  readonly not_included: io.flow.v0.unions.AllocationComponent[];
1240
1241
  }
1242
+ interface AllocationLineSummary {
1243
+ readonly line_items: io.flow.v0.models.AllocationLineSummaryLineItem[];
1244
+ readonly shipping: io.flow.v0.models.AllocationLineSummaryShipping;
1245
+ readonly subtotal: io.flow.v0.models.MoneyWithBase;
1246
+ readonly discount: io.flow.v0.models.MoneyWithBase;
1247
+ readonly duties: io.flow.v0.models.MoneyWithBase;
1248
+ readonly tax: io.flow.v0.models.MoneyWithBase;
1249
+ readonly tax_subsidy: io.flow.v0.models.MoneyWithBase;
1250
+ readonly duties_subsidy: io.flow.v0.models.MoneyWithBase;
1251
+ readonly total: io.flow.v0.models.MoneyWithBase;
1252
+ }
1253
+ interface AllocationLineSummaryLineItem {
1254
+ readonly item_number: string;
1255
+ readonly line_number?: string;
1256
+ readonly subtotal: io.flow.v0.models.MoneyWithBase;
1257
+ readonly discount: io.flow.v0.models.MoneyWithBase;
1258
+ readonly duties: io.flow.v0.models.MoneyWithBase;
1259
+ readonly tax: io.flow.v0.models.MoneyWithBase;
1260
+ readonly tax_subsidy: io.flow.v0.models.MoneyWithBase;
1261
+ readonly duties_subsidy: io.flow.v0.models.MoneyWithBase;
1262
+ readonly total: io.flow.v0.models.MoneyWithBase;
1263
+ }
1264
+ interface AllocationLineSummaryShipping {
1265
+ readonly subtotal: io.flow.v0.models.MoneyWithBase;
1266
+ readonly discount: io.flow.v0.models.MoneyWithBase;
1267
+ readonly duties: io.flow.v0.models.MoneyWithBase;
1268
+ readonly tax: io.flow.v0.models.MoneyWithBase;
1269
+ readonly tax_subsidy: io.flow.v0.models.MoneyWithBase;
1270
+ readonly duties_subsidy: io.flow.v0.models.MoneyWithBase;
1271
+ readonly total: io.flow.v0.models.MoneyWithBase;
1272
+ }
1241
1273
  interface AllocationOrderDetail {
1242
1274
  readonly discriminator: 'allocation_order_detail';
1243
1275
  readonly key: io.flow.v0.enums.OrderPriceDetailKey;
@@ -1942,6 +1974,7 @@ declare namespace io.flow.v0.models {
1942
1974
  readonly price_book_key: string;
1943
1975
  readonly price_book_item_key: string;
1944
1976
  readonly catalog: io.flow.v0.models.CatalogItemSummary;
1977
+ readonly price?: io.flow.v0.models.Price;
1945
1978
  readonly amount: number;
1946
1979
  readonly starts_at: string;
1947
1980
  readonly ends_at?: string;
@@ -4632,6 +4665,9 @@ declare namespace io.flow.v0.models {
4632
4665
  interface OrderBuilderAttributesForm {
4633
4666
  readonly attributes: Record<string, string>;
4634
4667
  }
4668
+ interface OrderBuilderCustomerForm {
4669
+ readonly customer: io.flow.v0.models.OrderCustomerForm;
4670
+ }
4635
4671
  interface OrderBuilderCustomerInvoiceAddressForm {
4636
4672
  readonly address: io.flow.v0.models.BillingAddress;
4637
4673
  }
@@ -4644,6 +4680,9 @@ declare namespace io.flow.v0.models {
4644
4680
  interface OrderBuilderDestinationForm {
4645
4681
  readonly destination: io.flow.v0.models.OrderAddress;
4646
4682
  }
4683
+ interface OrderBuilderSelectionsForm {
4684
+ readonly selections: string[];
4685
+ }
4647
4686
  interface OrderCustomer {
4648
4687
  readonly name: io.flow.v0.models.Name;
4649
4688
  readonly number?: string;
@@ -5543,6 +5582,7 @@ declare namespace io.flow.v0.models {
5543
5582
  readonly brands: io.flow.v0.models.PaymentMethodBrand[];
5544
5583
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
5545
5584
  readonly images: io.flow.v0.models.PaymentMethodImages;
5585
+ readonly possible_actions: io.flow.v0.enums.SupportedActionType[];
5546
5586
  }
5547
5587
  interface PaymentPaypal {
5548
5588
  readonly discriminator: 'payment_paypal';
@@ -5611,6 +5651,7 @@ declare namespace io.flow.v0.models {
5611
5651
  readonly attributes?: Record<string, string>;
5612
5652
  readonly reference?: string;
5613
5653
  readonly authorizations: io.flow.v0.models.PaymentAuthorization[];
5654
+ readonly supported_actions: io.flow.v0.enums.SupportedActionType[];
5614
5655
  }
5615
5656
  interface PaymentRequestForm {
5616
5657
  readonly amount: number;
@@ -5623,6 +5664,7 @@ declare namespace io.flow.v0.models {
5623
5664
  readonly attributes?: Record<string, string>;
5624
5665
  readonly reference?: string;
5625
5666
  readonly payment_method_data?: io.flow.v0.unions.PaymentMethodData;
5667
+ readonly supported_actions?: io.flow.v0.enums.SupportedActionType[];
5626
5668
  }
5627
5669
  interface PaymentReversal {
5628
5670
  readonly id: string;
@@ -7940,7 +7982,7 @@ declare namespace io.flow.v0.models {
7940
7982
  }
7941
7983
  }
7942
7984
  declare namespace io.flow.v0.unions {
7943
- type Action = io.flow.v0.models.ActionRedirect | io.flow.v0.models.ActionUseSdkKlarnaV1 | io.flow.v0.models.ActionUseSdkApplepayCreateSession | io.flow.v0.models.ActionUseSdkApplepayCompleteValidation | io.flow.v0.models.ActionUseSdkGooglepay | io.flow.v0.models.ActionUseSdkPaypal | io.flow.v0.models.ActionUseSdkStripeV3 | io.flow.v0.models.ActionUseSdkAdyenV3 | io.flow.v0.models.ActionUseSdkAdyenV4 | io.flow.v0.models.ActionExecuteScript | io.flow.v0.models.ActionDisplayInlineWindow | io.flow.v0.models.ActionCapture | io.flow.v0.models.ActionAddPaymentMethod | io.flow.v0.models.ActionWait;
7985
+ type Action = io.flow.v0.models.ActionRedirect | io.flow.v0.models.ActionUseSdkKlarnaV1 | io.flow.v0.models.ActionUseSdkApplepayJsCreateSession | io.flow.v0.models.ActionUseSdkApplepayJsCompleteValidation | io.flow.v0.models.ActionUseSdkGooglepay | io.flow.v0.models.ActionUseSdkPaypal | io.flow.v0.models.ActionUseSdkStripeV3 | io.flow.v0.models.ActionUseSdkAdyenV3 | io.flow.v0.models.ActionUseSdkAdyenV4 | io.flow.v0.models.ActionExecuteScript | io.flow.v0.models.ActionDisplayInlineWindow | io.flow.v0.models.ActionCapture | io.flow.v0.models.ActionAddPaymentMethod | io.flow.v0.models.ActionWait;
7944
7986
  type AdyenNativeData = io.flow.v0.models.AdyenIdentifyShopperData | io.flow.v0.models.AdyenChallengeShopperData;
7945
7987
  type AllocationComponent = io.flow.v0.models.AllocationDetailComponent | io.flow.v0.models.AllocationLevyComponent;
7946
7988
  type AllocationDetail = io.flow.v0.models.AllocationLineDetail | io.flow.v0.models.AllocationOrderDetail;
@@ -8042,8 +8084,8 @@ export declare type ActionExecuteScript = io.flow.v0.models.ActionExecuteScript;
8042
8084
  export declare type ActionRedirect = io.flow.v0.models.ActionRedirect;
8043
8085
  export declare type ActionUseSdkAdyenV3 = io.flow.v0.models.ActionUseSdkAdyenV3;
8044
8086
  export declare type ActionUseSdkAdyenV4 = io.flow.v0.models.ActionUseSdkAdyenV4;
8045
- export declare type ActionUseSdkApplepayCompleteValidation = io.flow.v0.models.ActionUseSdkApplepayCompleteValidation;
8046
- export declare type ActionUseSdkApplepayCreateSession = io.flow.v0.models.ActionUseSdkApplepayCreateSession;
8087
+ export declare type ActionUseSdkApplepayJsCompleteValidation = io.flow.v0.models.ActionUseSdkApplepayJsCompleteValidation;
8088
+ export declare type ActionUseSdkApplepayJsCreateSession = io.flow.v0.models.ActionUseSdkApplepayJsCreateSession;
8047
8089
  export declare type ActionUseSdkGooglepay = io.flow.v0.models.ActionUseSdkGooglepay;
8048
8090
  export declare type ActionUseSdkKlarnaV1 = io.flow.v0.models.ActionUseSdkKlarnaV1;
8049
8091
  export declare type ActionUseSdkPaypal = io.flow.v0.models.ActionUseSdkPaypal;
@@ -8076,6 +8118,9 @@ export declare type AllocationDetail = io.flow.v0.unions.AllocationDetail;
8076
8118
  export declare type AllocationDetailComponent = io.flow.v0.models.AllocationDetailComponent;
8077
8119
  export declare type AllocationLevyComponent = io.flow.v0.models.AllocationLevyComponent;
8078
8120
  export declare type AllocationLineDetail = io.flow.v0.models.AllocationLineDetail;
8121
+ export declare type AllocationLineSummary = io.flow.v0.models.AllocationLineSummary;
8122
+ export declare type AllocationLineSummaryLineItem = io.flow.v0.models.AllocationLineSummaryLineItem;
8123
+ export declare type AllocationLineSummaryShipping = io.flow.v0.models.AllocationLineSummaryShipping;
8079
8124
  export declare type AllocationOrderDetail = io.flow.v0.models.AllocationOrderDetail;
8080
8125
  export declare type AllocationOrderSummary = io.flow.v0.models.AllocationOrderSummary;
8081
8126
  export declare type AllocationUpsertedV2 = io.flow.v0.models.AllocationUpsertedV2;
@@ -8748,10 +8793,12 @@ export declare type Order = io.flow.v0.models.Order;
8748
8793
  export declare type OrderAddress = io.flow.v0.models.OrderAddress;
8749
8794
  export declare type OrderBuilder = io.flow.v0.models.OrderBuilder;
8750
8795
  export declare type OrderBuilderAttributesForm = io.flow.v0.models.OrderBuilderAttributesForm;
8796
+ export declare type OrderBuilderCustomerForm = io.flow.v0.models.OrderBuilderCustomerForm;
8751
8797
  export declare type OrderBuilderCustomerInvoiceAddressForm = io.flow.v0.models.OrderBuilderCustomerInvoiceAddressForm;
8752
8798
  export declare type OrderBuilderDeliveredDutyForm = io.flow.v0.models.OrderBuilderDeliveredDutyForm;
8753
8799
  export declare type OrderBuilderDestinationCountryForm = io.flow.v0.models.OrderBuilderDestinationCountryForm;
8754
8800
  export declare type OrderBuilderDestinationForm = io.flow.v0.models.OrderBuilderDestinationForm;
8801
+ export declare type OrderBuilderSelectionsForm = io.flow.v0.models.OrderBuilderSelectionsForm;
8755
8802
  export declare type OrderChangeSource = io.flow.v0.enums.OrderChangeSource;
8756
8803
  export declare type OrderCustomer = io.flow.v0.models.OrderCustomer;
8757
8804
  export declare type OrderCustomerForm = io.flow.v0.models.OrderCustomerForm;
@@ -9282,6 +9329,7 @@ export declare type SubcatalogUpserted = io.flow.v0.models.SubcatalogUpserted;
9282
9329
  export declare type SubcatalogVersion = io.flow.v0.models.SubcatalogVersion;
9283
9330
  export declare type Suggestion = io.flow.v0.models.Suggestion;
9284
9331
  export declare type SummaryShippingLabelForm = io.flow.v0.models.SummaryShippingLabelForm;
9332
+ export declare type SupportedActionType = io.flow.v0.enums.SupportedActionType;
9285
9333
  export declare type SurchargeResponsibleParty = io.flow.v0.enums.SurchargeResponsibleParty;
9286
9334
  export declare type SurchargeResponsiblePartyDisplay = io.flow.v0.models.SurchargeResponsiblePartyDisplay;
9287
9335
  export declare type SurchargeSetting = io.flow.v0.models.SurchargeSetting;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.16.1",
3
+ "version": "11.17.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",
@@ -25,5 +25,5 @@
25
25
  "maintainers": [
26
26
  "Christian Muñoz <christian.munoz@flow.io>"
27
27
  ],
28
- "gitHead": "fbd4b0964f2c1283e416a565a6ca2966a727ef63"
28
+ "gitHead": "ffc51f038177ced4e8328e7d99c0365df96ead7d"
29
29
  }