@flowio/types 9.4.1 → 9.4.3

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 {
@@ -2973,9 +2972,7 @@ declare namespace io.flow.v0.models {
2973
2972
  interface DiscountRuleSettings {
2974
2973
  readonly 'id': string;
2975
2974
  readonly 'name': string;
2976
- readonly 'from': string;
2977
- readonly 'from_with_tz'?: io.flow.v0.models.DatetimeWithTimezone;
2978
- readonly 'to'?: string;
2975
+ readonly 'from_with_tz': io.flow.v0.models.DatetimeWithTimezone;
2979
2976
  readonly 'to_with_tz'?: io.flow.v0.models.DatetimeWithTimezone;
2980
2977
  readonly 'status': io.flow.v0.enums.DiscountRuleStatus;
2981
2978
  readonly 'experience_keys': string[];
@@ -2984,9 +2981,7 @@ declare namespace io.flow.v0.models {
2984
2981
 
2985
2982
  interface DiscountRuleSettingsForm {
2986
2983
  readonly 'name': string;
2987
- readonly 'from': string;
2988
- readonly 'from_with_tz'?: io.flow.v0.models.DatetimeWithTimezone;
2989
- readonly 'to'?: string;
2984
+ readonly 'from_with_tz': io.flow.v0.models.DatetimeWithTimezone;
2990
2985
  readonly 'to_with_tz'?: io.flow.v0.models.DatetimeWithTimezone;
2991
2986
  readonly 'experience_keys': string[];
2992
2987
  readonly 'rule': io.flow.v0.models.DiscountRule;
@@ -4156,7 +4151,7 @@ declare namespace io.flow.v0.models {
4156
4151
  readonly 'email': string;
4157
4152
  readonly 'name': io.flow.v0.models.Name;
4158
4153
  readonly 'role'?: io.flow.v0.enums.Role;
4159
- readonly 'roles'?: io.flow.v0.unions.FlowRole[];
4154
+ readonly 'roles'?: io.flow.v0.enums.FlowRole[];
4160
4155
  readonly 'expiration': string;
4161
4156
  }
4162
4157
 
@@ -4170,7 +4165,7 @@ declare namespace io.flow.v0.models {
4170
4165
  readonly 'email': string;
4171
4166
  readonly 'name'?: io.flow.v0.models.Name;
4172
4167
  readonly 'role'?: io.flow.v0.enums.Role;
4173
- readonly 'roles'?: io.flow.v0.unions.FlowRole[];
4168
+ readonly 'roles'?: io.flow.v0.enums.FlowRole[];
4174
4169
  }
4175
4170
 
4176
4171
  interface InvitationVersion {
@@ -4760,7 +4755,7 @@ declare namespace io.flow.v0.models {
4760
4755
  readonly 'organization': io.flow.v0.unions.ExpandableOrganization;
4761
4756
  readonly 'user': io.flow.v0.unions.ExpandableUser;
4762
4757
  readonly 'role'?: io.flow.v0.enums.Role;
4763
- readonly 'roles': io.flow.v0.unions.FlowRole[];
4758
+ readonly 'roles': io.flow.v0.enums.FlowRole[];
4764
4759
  }
4765
4760
 
4766
4761
  interface MembershipDeletedV2 {
@@ -4774,12 +4769,12 @@ declare namespace io.flow.v0.models {
4774
4769
  readonly 'organization': string;
4775
4770
  readonly 'user': string;
4776
4771
  readonly 'role'?: io.flow.v0.enums.Role;
4777
- readonly 'roles'?: io.flow.v0.unions.FlowRole[];
4772
+ readonly 'roles'?: io.flow.v0.enums.FlowRole[];
4778
4773
  }
4779
4774
 
4780
4775
  interface MembershipPutForm {
4781
4776
  readonly 'role'?: io.flow.v0.enums.Role;
4782
- readonly 'roles'?: io.flow.v0.unions.FlowRole[];
4777
+ readonly 'roles'?: io.flow.v0.enums.FlowRole[];
4783
4778
  }
4784
4779
 
4785
4780
  interface MembershipUpsertedV2 {
@@ -5948,7 +5943,7 @@ declare namespace io.flow.v0.models {
5948
5943
  interface PermissionCheck {
5949
5944
  readonly 'authentication_technique': io.flow.v0.enums.AuthenticationTechnique;
5950
5945
  readonly 'user'?: io.flow.v0.unions.ExpandableUser;
5951
- readonly 'roles': io.flow.v0.unions.FlowRole[];
5946
+ readonly 'roles': io.flow.v0.enums.FlowRole[];
5952
5947
  readonly 'behaviors': io.flow.v0.enums.FlowBehavior[];
5953
5948
  readonly 'routes': io.flow.v0.models.PermittedRoute[];
5954
5949
  }
@@ -5956,7 +5951,7 @@ declare namespace io.flow.v0.models {
5956
5951
  interface PermissionError {
5957
5952
  readonly 'code': io.flow.v0.enums.GenericErrorCode;
5958
5953
  readonly 'messages': string[];
5959
- readonly 'granting_roles'?: io.flow.v0.unions.FlowRole[];
5954
+ readonly 'granting_roles'?: io.flow.v0.enums.FlowRole[];
5960
5955
  readonly 'admin_users'?: io.flow.v0.models.User[];
5961
5956
  }
5962
5957
 
@@ -7013,7 +7008,7 @@ declare namespace io.flow.v0.models {
7013
7008
  readonly 'method': io.flow.v0.enums.PermittedHttpMethod;
7014
7009
  readonly 'path': string;
7015
7010
  readonly 'authentication_techniques': io.flow.v0.enums.AuthenticationTechnique[];
7016
- readonly 'roles': io.flow.v0.unions.FlowRole[];
7011
+ readonly 'roles': io.flow.v0.enums.FlowRole[];
7017
7012
  }
7018
7013
 
7019
7014
  interface RuleDeleted {
@@ -7823,6 +7818,7 @@ declare namespace io.flow.v0.models {
7823
7818
  readonly 'discriminator': 'summary_shipping_label_form';
7824
7819
  readonly 'order_number': string;
7825
7820
  readonly 'items': io.flow.v0.models.LineItemForm[];
7821
+ readonly 'center_key'?: string;
7826
7822
  }
7827
7823
 
7828
7824
  interface SurchargeResponsiblePartyDisplay {
@@ -8448,15 +8444,6 @@ declare namespace io.flow.v0.unions {
8448
8444
  type ExportDelivery = (io.flow.v0.models.ExportDeliveryEmail);
8449
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);
8450
8446
  type FieldValidationRule = (io.flow.v0.models.FieldValidationRequired | io.flow.v0.models.FieldValidationMin | io.flow.v0.models.FieldValidationMax | io.flow.v0.models.FieldValidationPattern);
8451
-
8452
- type FlowRole = ({
8453
- discriminator: 'flow_user_role',
8454
- value: io.flow.v0.enums.FlowUserRole
8455
- } | {
8456
- discriminator: 'flow_addon_role',
8457
- value: io.flow.v0.enums.FlowAddonRole
8458
- });
8459
-
8460
8447
  type GatewayAuthenticationData = (io.flow.v0.models.StripeAuthenticationData);
8461
8448
  type GatewayAuthenticationDataForm = (io.flow.v0.models.StripeAuthenticationDataForm);
8462
8449
  type InputSpecificationLimitation = (io.flow.v0.models.InputSpecificationLimitationMax);
@@ -8928,12 +8915,10 @@ export type FieldValidationRequired = io.flow.v0.models.FieldValidationRequired;
8928
8915
  export type FieldValidationRule = io.flow.v0.unions.FieldValidationRule;
8929
8916
  export type FlatRate = io.flow.v0.models.FlatRate;
8930
8917
  export type FlatRateForm = io.flow.v0.models.FlatRateForm;
8931
- export type FlowAddonRole = io.flow.v0.enums.FlowAddonRole;
8932
8918
  export type FlowBehavior = io.flow.v0.enums.FlowBehavior;
8933
8919
  export type FlowCenterReference = io.flow.v0.models.FlowCenterReference;
8934
8920
  export type FlowItemIndexMetadata = io.flow.v0.models.FlowItemIndexMetadata;
8935
- export type FlowRole = io.flow.v0.unions.FlowRole;
8936
- export type FlowUserRole = io.flow.v0.enums.FlowUserRole;
8921
+ export type FlowRole = io.flow.v0.enums.FlowRole;
8937
8922
  export type FraudEmailRule = io.flow.v0.models.FraudEmailRule;
8938
8923
  export type FraudEmailRuleDecision = io.flow.v0.enums.FraudEmailRuleDecision;
8939
8924
  export type FraudEmailRuleForm = io.flow.v0.models.FraudEmailRuleForm;