@flowio/types 9.4.0 → 9.4.2

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
@@ -966,9 +966,8 @@ declare namespace io.flow.v0.enums {
966
966
  type ExperiencePaymentMethodTag = 'display';
967
967
  type ExperienceStatus = 'draft' | 'active' | 'archiving' | 'archived';
968
968
  type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
969
- type FlowAddonRole = 'consumer_data_viewer' | 'membership_manager';
970
969
  type FlowBehavior = 'view_consumer_data';
971
- type FlowUserRole = 'organization_admin' | 'organization_merchant' | 'organization_operations' | 'organization_fulfillment' | 'organization_marketing' | 'organization_finance' | 'flow_operations';
970
+ type FlowRole = 'organization_admin' | 'organization_merchant' | 'organization_customer_service' | 'organization_fulfillment' | 'organization_marketing' | 'organization_finance' | 'flow_operations';
972
971
  type FraudEmailRuleDecision = 'approved' | 'declined';
973
972
  type FraudLiability = 'flow' | 'organization';
974
973
  type FraudStatus = 'pending' | 'approved' | 'declined' | 'review';
@@ -1628,7 +1627,7 @@ declare namespace io.flow.v0.models {
1628
1627
  interface BehaviorAudit {
1629
1628
  readonly 'behavior': io.flow.v0.enums.FlowBehavior;
1630
1629
  readonly 'authentication_techniques': io.flow.v0.enums.AuthenticationTechnique[];
1631
- readonly 'roles': io.flow.v0.unions.FlowRole[];
1630
+ readonly 'roles': io.flow.v0.enums.FlowRole[];
1632
1631
  }
1633
1632
 
1634
1633
  interface BillingAddress {
@@ -2705,6 +2704,11 @@ declare namespace io.flow.v0.models {
2705
2704
  readonly 'to': string;
2706
2705
  }
2707
2706
 
2707
+ interface DatetimeWithTimezone {
2708
+ readonly 'datetime': string;
2709
+ readonly 'timezone': string;
2710
+ }
2711
+
2708
2712
  interface DdpRatecardFee {
2709
2713
  readonly 'discriminator': 'ddp_ratecard_fee';
2710
2714
  readonly 'amount': number;
@@ -2968,8 +2972,8 @@ declare namespace io.flow.v0.models {
2968
2972
  interface DiscountRuleSettings {
2969
2973
  readonly 'id': string;
2970
2974
  readonly 'name': string;
2971
- readonly 'from': string;
2972
- readonly 'to'?: string;
2975
+ readonly 'from_with_tz': io.flow.v0.models.DatetimeWithTimezone;
2976
+ readonly 'to_with_tz'?: io.flow.v0.models.DatetimeWithTimezone;
2973
2977
  readonly 'status': io.flow.v0.enums.DiscountRuleStatus;
2974
2978
  readonly 'experience_keys': string[];
2975
2979
  readonly 'rule': io.flow.v0.models.DiscountRule;
@@ -2977,8 +2981,8 @@ declare namespace io.flow.v0.models {
2977
2981
 
2978
2982
  interface DiscountRuleSettingsForm {
2979
2983
  readonly 'name': string;
2980
- readonly 'from': string;
2981
- readonly 'to'?: string;
2984
+ readonly 'from_with_tz': io.flow.v0.models.DatetimeWithTimezone;
2985
+ readonly 'to_with_tz'?: io.flow.v0.models.DatetimeWithTimezone;
2982
2986
  readonly 'experience_keys': string[];
2983
2987
  readonly 'rule': io.flow.v0.models.DiscountRule;
2984
2988
  }
@@ -4147,7 +4151,7 @@ declare namespace io.flow.v0.models {
4147
4151
  readonly 'email': string;
4148
4152
  readonly 'name': io.flow.v0.models.Name;
4149
4153
  readonly 'role'?: io.flow.v0.enums.Role;
4150
- readonly 'roles'?: io.flow.v0.unions.FlowRole[];
4154
+ readonly 'roles'?: io.flow.v0.enums.FlowRole[];
4151
4155
  readonly 'expiration': string;
4152
4156
  }
4153
4157
 
@@ -4161,7 +4165,7 @@ declare namespace io.flow.v0.models {
4161
4165
  readonly 'email': string;
4162
4166
  readonly 'name'?: io.flow.v0.models.Name;
4163
4167
  readonly 'role'?: io.flow.v0.enums.Role;
4164
- readonly 'roles'?: io.flow.v0.unions.FlowRole[];
4168
+ readonly 'roles'?: io.flow.v0.enums.FlowRole[];
4165
4169
  }
4166
4170
 
4167
4171
  interface InvitationVersion {
@@ -4751,7 +4755,7 @@ declare namespace io.flow.v0.models {
4751
4755
  readonly 'organization': io.flow.v0.unions.ExpandableOrganization;
4752
4756
  readonly 'user': io.flow.v0.unions.ExpandableUser;
4753
4757
  readonly 'role'?: io.flow.v0.enums.Role;
4754
- readonly 'roles': io.flow.v0.unions.FlowRole[];
4758
+ readonly 'roles': io.flow.v0.enums.FlowRole[];
4755
4759
  }
4756
4760
 
4757
4761
  interface MembershipDeletedV2 {
@@ -4765,12 +4769,12 @@ declare namespace io.flow.v0.models {
4765
4769
  readonly 'organization': string;
4766
4770
  readonly 'user': string;
4767
4771
  readonly 'role'?: io.flow.v0.enums.Role;
4768
- readonly 'roles'?: io.flow.v0.unions.FlowRole[];
4772
+ readonly 'roles'?: io.flow.v0.enums.FlowRole[];
4769
4773
  }
4770
4774
 
4771
4775
  interface MembershipPutForm {
4772
4776
  readonly 'role'?: io.flow.v0.enums.Role;
4773
- readonly 'roles'?: io.flow.v0.unions.FlowRole[];
4777
+ readonly 'roles'?: io.flow.v0.enums.FlowRole[];
4774
4778
  }
4775
4779
 
4776
4780
  interface MembershipUpsertedV2 {
@@ -5939,7 +5943,7 @@ declare namespace io.flow.v0.models {
5939
5943
  interface PermissionCheck {
5940
5944
  readonly 'authentication_technique': io.flow.v0.enums.AuthenticationTechnique;
5941
5945
  readonly 'user'?: io.flow.v0.unions.ExpandableUser;
5942
- readonly 'roles': io.flow.v0.unions.FlowRole[];
5946
+ readonly 'roles': io.flow.v0.enums.FlowRole[];
5943
5947
  readonly 'behaviors': io.flow.v0.enums.FlowBehavior[];
5944
5948
  readonly 'routes': io.flow.v0.models.PermittedRoute[];
5945
5949
  }
@@ -5947,7 +5951,7 @@ declare namespace io.flow.v0.models {
5947
5951
  interface PermissionError {
5948
5952
  readonly 'code': io.flow.v0.enums.GenericErrorCode;
5949
5953
  readonly 'messages': string[];
5950
- readonly 'granting_roles'?: io.flow.v0.unions.FlowRole[];
5954
+ readonly 'granting_roles'?: io.flow.v0.enums.FlowRole[];
5951
5955
  readonly 'admin_users'?: io.flow.v0.models.User[];
5952
5956
  }
5953
5957
 
@@ -7004,7 +7008,7 @@ declare namespace io.flow.v0.models {
7004
7008
  readonly 'method': io.flow.v0.enums.PermittedHttpMethod;
7005
7009
  readonly 'path': string;
7006
7010
  readonly 'authentication_techniques': io.flow.v0.enums.AuthenticationTechnique[];
7007
- readonly 'roles': io.flow.v0.unions.FlowRole[];
7011
+ readonly 'roles': io.flow.v0.enums.FlowRole[];
7008
7012
  }
7009
7013
 
7010
7014
  interface RuleDeleted {
@@ -7814,6 +7818,7 @@ declare namespace io.flow.v0.models {
7814
7818
  readonly 'discriminator': 'summary_shipping_label_form';
7815
7819
  readonly 'order_number': string;
7816
7820
  readonly 'items': io.flow.v0.models.LineItemForm[];
7821
+ readonly 'center_key'?: string;
7817
7822
  }
7818
7823
 
7819
7824
  interface SurchargeResponsiblePartyDisplay {
@@ -8439,15 +8444,6 @@ declare namespace io.flow.v0.unions {
8439
8444
  type ExportDelivery = (io.flow.v0.models.ExportDeliveryEmail);
8440
8445
  type ExportType = (io.flow.v0.models.AccountTransactionsExportType | io.flow.v0.models.AccountOrdersExportType | io.flow.v0.models.AnalyticsExportType | io.flow.v0.models.CatalogItemExportType | io.flow.v0.models.ExperienceExportType | io.flow.v0.models.HarmonizationOverviewExportType | io.flow.v0.models.HarmonizationHs6ExportType | io.flow.v0.models.HarmonizationHs10ExportType | io.flow.v0.models.UnharmonizedItemExportType | io.flow.v0.models.OrderExportType | io.flow.v0.models.PriceBookItemExportType | io.flow.v0.models.SolidusProductExportType | io.flow.v0.models.SolidusVariantExportType | io.flow.v0.models.LocalizedItemPricesExportType | io.flow.v0.models.MarketingFeedsExportType);
8441
8446
  type FieldValidationRule = (io.flow.v0.models.FieldValidationRequired | io.flow.v0.models.FieldValidationMin | io.flow.v0.models.FieldValidationMax | io.flow.v0.models.FieldValidationPattern);
8442
-
8443
- type FlowRole = ({
8444
- discriminator: 'flow_user_role',
8445
- value: io.flow.v0.enums.FlowUserRole
8446
- } | {
8447
- discriminator: 'flow_addon_role',
8448
- value: io.flow.v0.enums.FlowAddonRole
8449
- });
8450
-
8451
8447
  type GatewayAuthenticationData = (io.flow.v0.models.StripeAuthenticationData);
8452
8448
  type GatewayAuthenticationDataForm = (io.flow.v0.models.StripeAuthenticationDataForm);
8453
8449
  type InputSpecificationLimitation = (io.flow.v0.models.InputSpecificationLimitationMax);
@@ -8758,6 +8754,7 @@ export type CustomerUpserted = io.flow.v0.models.CustomerUpserted;
8758
8754
  export type Cvv = io.flow.v0.models.Cvv;
8759
8755
  export type CvvCode = io.flow.v0.enums.CvvCode;
8760
8756
  export type DatetimeRange = io.flow.v0.models.DatetimeRange;
8757
+ export type DatetimeWithTimezone = io.flow.v0.models.DatetimeWithTimezone;
8761
8758
  export type DayOfWeek = io.flow.v0.enums.DayOfWeek;
8762
8759
  export type DdpRatecardFee = io.flow.v0.models.DdpRatecardFee;
8763
8760
  export type DeliveredDuty = io.flow.v0.enums.DeliveredDuty;
@@ -8918,12 +8915,10 @@ export type FieldValidationRequired = io.flow.v0.models.FieldValidationRequired;
8918
8915
  export type FieldValidationRule = io.flow.v0.unions.FieldValidationRule;
8919
8916
  export type FlatRate = io.flow.v0.models.FlatRate;
8920
8917
  export type FlatRateForm = io.flow.v0.models.FlatRateForm;
8921
- export type FlowAddonRole = io.flow.v0.enums.FlowAddonRole;
8922
8918
  export type FlowBehavior = io.flow.v0.enums.FlowBehavior;
8923
8919
  export type FlowCenterReference = io.flow.v0.models.FlowCenterReference;
8924
8920
  export type FlowItemIndexMetadata = io.flow.v0.models.FlowItemIndexMetadata;
8925
- export type FlowRole = io.flow.v0.unions.FlowRole;
8926
- export type FlowUserRole = io.flow.v0.enums.FlowUserRole;
8921
+ export type FlowRole = io.flow.v0.enums.FlowRole;
8927
8922
  export type FraudEmailRule = io.flow.v0.models.FraudEmailRule;
8928
8923
  export type FraudEmailRuleDecision = io.flow.v0.enums.FraudEmailRuleDecision;
8929
8924
  export type FraudEmailRuleForm = io.flow.v0.models.FraudEmailRuleForm;