@flowio/types 11.19.5 → 11.19.7

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
@@ -1696,7 +1696,7 @@ declare namespace io.flow.v0.enums {
1696
1696
  type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
1697
1697
  type FlowBehavior = 'view_consumer_data';
1698
1698
  type FlowEntity = 'flow-usa' | 'flow-irl' | 'flow-can';
1699
- type FlowRole = 'organization_admin' | 'organization_merchant' | 'organization_customer_service' | 'organization_fulfillment' | 'organization_marketing' | 'organization_finance' | 'flow_operations';
1699
+ type FlowRole = 'organization_admin' | 'organization_merchant' | 'organization_customer_service' | 'organization_fulfillment' | 'organization_marketing' | 'organization_finance' | 'flow_operations' | 'channel_admin';
1700
1700
  type FraudEmailRuleDecision = 'approved' | 'declined';
1701
1701
  type FraudLiability = 'flow' | 'organization';
1702
1702
  type FraudStatus = 'pending' | 'approved' | 'declined' | 'review';
@@ -1731,7 +1731,7 @@ declare namespace io.flow.v0.enums {
1731
1731
  type OrderChangeSource = 'consumer' | 'retailer' | 'fulfillment' | 'flow' | 'carrier';
1732
1732
  type OrderErrorCode = 'generic_error' | 'order_item_not_available' | 'order_identifier_error' | 'authorization_invalid' | 'domestic_shipping_unavailable' | 'shipping_unavailable' | 'value_threshold_exceeded' | 'invalid_currency' | 'invalid_country' | 'invalid_region' | 'invalid_language' | 'item_out_of_stock' | 'gift_card_not_accepted' | 'total_changed';
1733
1733
  type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
1734
- type OrderPaymentType = 'card' | 'online' | 'credit' | 'installment_plan' | 'cash_on_delivery';
1734
+ type OrderPaymentType = 'card' | 'online' | 'credit' | 'replacement_order' | 'installment_plan' | 'cash_on_delivery';
1735
1735
  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' | 'shipping_discount' | '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' | 'emergency_situation_surcharge' | 'peak_surcharge';
1736
1736
  type OrderPriceDetailKey = 'adjustment' | 'subtotal' | 'vat' | 'duty' | 'shipping' | 'insurance' | 'discount' | 'surcharges';
1737
1737
  type OrderRefundSummaryIncludes = 'duties' | 'vat' | 'shipping';
@@ -1741,6 +1741,7 @@ declare namespace io.flow.v0.enums {
1741
1741
  type OrderType = 'standard' | 'replacement';
1742
1742
  type OrganizationPaymentMethodTag = 'deny';
1743
1743
  type OrganizationStatus = 'active' | 'inactive' | 'deactivated';
1744
+ type PaymentActionType = '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';
1744
1745
  type PaymentErrorCode = 'duplicate' | 'invalid_amount' | 'invalid_currency' | 'invalid_method' | 'invalid_order' | 'invalid_customer' | 'invalid_destination' | 'unknown';
1745
1746
  type PaymentFailureCode = 'action_expired' | 'action_cancelled' | 'action_failed' | 'authorization_declined' | 'not_supported' | 'fraudulent' | 'error';
1746
1747
  type PaymentMethodCapability = 'credit' | 'debit';
@@ -1783,7 +1784,6 @@ declare namespace io.flow.v0.enums {
1783
1784
  type SortDirection = 'ascending' | 'descending';
1784
1785
  type Strategy = 'range' | 'from' | 'to';
1785
1786
  type SubcatalogItemStatus = 'excluded' | 'included' | 'restricted';
1786
- 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';
1787
1787
  type SurchargeResponsibleParty = 'organization' | 'customer';
1788
1788
  type SyncRecordFailureReason = 'inventory' | 'address' | 'promotion' | 'other';
1789
1789
  type SyncStreamType = 'submitted_order' | 'placed_order';
@@ -2881,6 +2881,23 @@ declare namespace io.flow.v0.models {
2881
2881
  readonly type: io.flow.v0.enums.ChangeType;
2882
2882
  readonly center: io.flow.v0.models.Center;
2883
2883
  }
2884
+ interface Channel {
2885
+ readonly id: string;
2886
+ readonly key: string;
2887
+ readonly name: string;
2888
+ }
2889
+ interface ChannelForm {
2890
+ readonly name: string;
2891
+ }
2892
+ interface ChannelOrganization {
2893
+ readonly id: string;
2894
+ readonly organization: io.flow.v0.models.OrganizationReference;
2895
+ readonly key: string;
2896
+ readonly channel: io.flow.v0.models.ChannelReference;
2897
+ }
2898
+ interface ChannelReference {
2899
+ readonly key: string;
2900
+ }
2884
2901
  interface CheckoutAttribute {
2885
2902
  readonly id: string;
2886
2903
  readonly experience: io.flow.v0.models.ExperienceReference;
@@ -4118,6 +4135,10 @@ declare namespace io.flow.v0.models {
4118
4135
  readonly code: 'external_api_timeout';
4119
4136
  readonly messages: string[];
4120
4137
  }
4138
+ interface FeeWeight {
4139
+ readonly weight: number;
4140
+ readonly unit: io.flow.v0.enums.UnitOfMeasurement;
4141
+ }
4121
4142
  interface FieldValidationMax {
4122
4143
  readonly discriminator: 'max';
4123
4144
  readonly length: number;
@@ -6458,7 +6479,7 @@ declare namespace io.flow.v0.models {
6458
6479
  readonly brands: io.flow.v0.models.PaymentMethodBrand[];
6459
6480
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
6460
6481
  readonly images: io.flow.v0.models.PaymentMethodImages;
6461
- readonly possible_actions: io.flow.v0.enums.SupportedActionType[];
6482
+ readonly possible_actions: io.flow.v0.enums.PaymentActionType[];
6462
6483
  }
6463
6484
  interface PaymentPaypal {
6464
6485
  readonly discriminator: 'payment_paypal';
@@ -6526,7 +6547,7 @@ declare namespace io.flow.v0.models {
6526
6547
  readonly attributes?: Record<string, string>;
6527
6548
  readonly reference?: string;
6528
6549
  readonly payment_information: io.flow.v0.models.PaymentInformation;
6529
- readonly supported_actions: io.flow.v0.enums.SupportedActionType[];
6550
+ readonly supported_actions: io.flow.v0.enums.PaymentActionType[];
6530
6551
  }
6531
6552
  interface PaymentRequestForm {
6532
6553
  readonly amount: number;
@@ -6538,7 +6559,7 @@ declare namespace io.flow.v0.models {
6538
6559
  readonly attributes?: Record<string, string>;
6539
6560
  readonly reference?: string;
6540
6561
  readonly payment_method_data?: io.flow.v0.unions.PaymentMethodData;
6541
- readonly supported_actions?: io.flow.v0.enums.SupportedActionType[];
6562
+ readonly supported_actions?: io.flow.v0.enums.PaymentActionType[];
6542
6563
  }
6543
6564
  interface PaymentRequestUpserted {
6544
6565
  readonly discriminator: 'payment_request_upserted';
@@ -6599,6 +6620,14 @@ declare namespace io.flow.v0.models {
6599
6620
  readonly attributes?: Record<string, string>;
6600
6621
  readonly ip?: string;
6601
6622
  }
6623
+ interface PeakSurchargeByWeightServiceFee {
6624
+ readonly discriminator: 'peak_surcharge_by_weight_service_fee';
6625
+ readonly amount: io.flow.v0.models.Money;
6626
+ readonly weight: io.flow.v0.models.FeeWeight;
6627
+ readonly regions?: string[];
6628
+ readonly starts_at?: string;
6629
+ readonly ends_at?: string;
6630
+ }
6602
6631
  interface PeakSurchargeRatecardFee {
6603
6632
  readonly discriminator: 'peak_surcharge_ratecard_fee';
6604
6633
  readonly amount: io.flow.v0.models.Money;
@@ -8960,7 +8989,7 @@ declare namespace io.flow.v0.unions {
8960
8989
  type ReservationError = io.flow.v0.models.NoInventoryReservationError | io.flow.v0.models.ExternalApiTimeoutReservationError | io.flow.v0.models.GenericReservationError;
8961
8990
  type ReturnSource = io.flow.v0.models.ReturnSourceFlow | io.flow.v0.models.ReturnSourceExternalVendor;
8962
8991
  type SdkAdyenV3AuthenticationToken = io.flow.v0.models.AdyenV3FingerprintToken | io.flow.v0.models.AdyenV3ChallengeToken;
8963
- type ServiceFee = io.flow.v0.models.FuelSurchargeServiceFee | io.flow.v0.models.RemoteAreaServiceFee | io.flow.v0.models.EmergencySituationSurchargeServiceFee | io.flow.v0.models.PeakSurchargeServiceFee;
8992
+ type ServiceFee = io.flow.v0.models.FuelSurchargeServiceFee | io.flow.v0.models.RemoteAreaServiceFee | io.flow.v0.models.EmergencySituationSurchargeServiceFee | io.flow.v0.models.PeakSurchargeServiceFee | io.flow.v0.models.PeakSurchargeByWeightServiceFee;
8964
8993
  type Session = io.flow.v0.models.OrganizationSession;
8965
8994
  type SessionAuthorization = io.flow.v0.models.OrganizationSessionAuthorization;
8966
8995
  type ShippingLabelForm = io.flow.v0.models.DetailedShippingLabelForm | io.flow.v0.models.SummaryShippingLabelForm;
@@ -9171,6 +9200,10 @@ export declare type CenterSummary = io.flow.v0.models.CenterSummary;
9171
9200
  export declare type CenterUpserted = io.flow.v0.models.CenterUpserted;
9172
9201
  export declare type CenterVersion = io.flow.v0.models.CenterVersion;
9173
9202
  export declare type ChangeType = io.flow.v0.enums.ChangeType;
9203
+ export declare type Channel = io.flow.v0.models.Channel;
9204
+ export declare type ChannelForm = io.flow.v0.models.ChannelForm;
9205
+ export declare type ChannelOrganization = io.flow.v0.models.ChannelOrganization;
9206
+ export declare type ChannelReference = io.flow.v0.models.ChannelReference;
9174
9207
  export declare type CheckoutAttribute = io.flow.v0.models.CheckoutAttribute;
9175
9208
  export declare type CheckoutAttributeForm = io.flow.v0.models.CheckoutAttributeForm;
9176
9209
  export declare type CheckoutItemContent = io.flow.v0.models.CheckoutItemContent;
@@ -9435,6 +9468,7 @@ export declare type ExportStatus = io.flow.v0.enums.ExportStatus;
9435
9468
  export declare type ExportType = io.flow.v0.unions.ExportType;
9436
9469
  export declare type ExportVersion = io.flow.v0.models.ExportVersion;
9437
9470
  export declare type ExternalApiTimeoutReservationError = io.flow.v0.models.ExternalApiTimeoutReservationError;
9471
+ export declare type FeeWeight = io.flow.v0.models.FeeWeight;
9438
9472
  export declare type FieldValidationMax = io.flow.v0.models.FieldValidationMax;
9439
9473
  export declare type FieldValidationMin = io.flow.v0.models.FieldValidationMin;
9440
9474
  export declare type FieldValidationPattern = io.flow.v0.models.FieldValidationPattern;
@@ -9833,6 +9867,7 @@ export declare type PasswordChangeForm = io.flow.v0.models.PasswordChangeForm;
9833
9867
  export declare type PasswordResetForm = io.flow.v0.models.PasswordResetForm;
9834
9868
  export declare type PasswordResetRequestForm = io.flow.v0.models.PasswordResetRequestForm;
9835
9869
  export declare type Payment = io.flow.v0.unions.Payment;
9870
+ export declare type PaymentActionType = io.flow.v0.enums.PaymentActionType;
9836
9871
  export declare type PaymentAddress = io.flow.v0.models.PaymentAddress;
9837
9872
  export declare type PaymentAuthorization = io.flow.v0.models.PaymentAuthorization;
9838
9873
  export declare type PaymentAuthorizationStatus = io.flow.v0.models.PaymentAuthorizationStatus;
@@ -9915,6 +9950,7 @@ export declare type PaymentUpserted = io.flow.v0.models.PaymentUpserted;
9915
9950
  export declare type PaymentVersion = io.flow.v0.models.PaymentVersion;
9916
9951
  export declare type PaypalAuthorizationDetails = io.flow.v0.models.PaypalAuthorizationDetails;
9917
9952
  export declare type PaypalAuthorizationForm = io.flow.v0.models.PaypalAuthorizationForm;
9953
+ export declare type PeakSurchargeByWeightServiceFee = io.flow.v0.models.PeakSurchargeByWeightServiceFee;
9918
9954
  export declare type PeakSurchargeRatecardFee = io.flow.v0.models.PeakSurchargeRatecardFee;
9919
9955
  export declare type PeakSurchargeServiceFee = io.flow.v0.models.PeakSurchargeServiceFee;
9920
9956
  export declare type PercentMargin = io.flow.v0.models.PercentMargin;
@@ -10247,7 +10283,6 @@ export declare type SubcatalogUpserted = io.flow.v0.models.SubcatalogUpserted;
10247
10283
  export declare type SubcatalogVersion = io.flow.v0.models.SubcatalogVersion;
10248
10284
  export declare type Suggestion = io.flow.v0.models.Suggestion;
10249
10285
  export declare type SummaryShippingLabelForm = io.flow.v0.models.SummaryShippingLabelForm;
10250
- export declare type SupportedActionType = io.flow.v0.enums.SupportedActionType;
10251
10286
  export declare type SurchargeResponsibleParty = io.flow.v0.enums.SurchargeResponsibleParty;
10252
10287
  export declare type SurchargeResponsiblePartyDisplay = io.flow.v0.models.SurchargeResponsiblePartyDisplay;
10253
10288
  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.19.5",
3
+ "version": "11.19.7",
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": "4917a4529871e5b4930634acfe6fc5b61d2316e1"
28
+ "gitHead": "77992e6032cf55b50342b996ef147902789597cf"
29
29
  }