@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/dist/api.d.ts CHANGED
@@ -865,9 +865,8 @@ declare namespace io.flow.v0.enums {
865
865
  type ExperiencePaymentMethodTag = 'display';
866
866
  type ExperienceStatus = 'draft' | 'active' | 'archiving' | 'archived';
867
867
  type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
868
- type FlowAddonRole = 'consumer_data_viewer' | 'membership_manager';
869
868
  type FlowBehavior = 'view_consumer_data';
870
- type FlowUserRole = 'organization_admin' | 'organization_merchant' | 'organization_operations' | 'organization_fulfillment' | 'organization_marketing' | 'organization_finance' | 'flow_operations';
869
+ type FlowRole = 'organization_admin' | 'organization_merchant' | 'organization_customer_service' | 'organization_fulfillment' | 'organization_marketing' | 'organization_finance' | 'flow_operations';
871
870
  type FraudEmailRuleDecision = 'approved' | 'declined';
872
871
  type FraudLiability = 'flow' | 'organization';
873
872
  type FraudStatus = 'pending' | 'approved' | 'declined' | 'review';
@@ -1455,7 +1454,7 @@ declare namespace io.flow.v0.models {
1455
1454
  interface BehaviorAudit {
1456
1455
  readonly 'behavior': io.flow.v0.enums.FlowBehavior;
1457
1456
  readonly 'authentication_techniques': io.flow.v0.enums.AuthenticationTechnique[];
1458
- readonly 'roles': io.flow.v0.unions.FlowRole[];
1457
+ readonly 'roles': io.flow.v0.enums.FlowRole[];
1459
1458
  }
1460
1459
  interface BillingAddress {
1461
1460
  readonly 'name'?: io.flow.v0.models.Name;
@@ -2384,6 +2383,10 @@ declare namespace io.flow.v0.models {
2384
2383
  readonly 'from': string;
2385
2384
  readonly 'to': string;
2386
2385
  }
2386
+ interface DatetimeWithTimezone {
2387
+ readonly 'datetime': string;
2388
+ readonly 'timezone': string;
2389
+ }
2387
2390
  interface DdpRatecardFee {
2388
2391
  readonly 'discriminator': 'ddp_ratecard_fee';
2389
2392
  readonly 'amount': number;
@@ -2612,16 +2615,16 @@ declare namespace io.flow.v0.models {
2612
2615
  interface DiscountRuleSettings {
2613
2616
  readonly 'id': string;
2614
2617
  readonly 'name': string;
2615
- readonly 'from': string;
2616
- readonly 'to'?: string;
2618
+ readonly 'from_with_tz': io.flow.v0.models.DatetimeWithTimezone;
2619
+ readonly 'to_with_tz'?: io.flow.v0.models.DatetimeWithTimezone;
2617
2620
  readonly 'status': io.flow.v0.enums.DiscountRuleStatus;
2618
2621
  readonly 'experience_keys': string[];
2619
2622
  readonly 'rule': io.flow.v0.models.DiscountRule;
2620
2623
  }
2621
2624
  interface DiscountRuleSettingsForm {
2622
2625
  readonly 'name': string;
2623
- readonly 'from': string;
2624
- readonly 'to'?: string;
2626
+ readonly 'from_with_tz': io.flow.v0.models.DatetimeWithTimezone;
2627
+ readonly 'to_with_tz'?: io.flow.v0.models.DatetimeWithTimezone;
2625
2628
  readonly 'experience_keys': string[];
2626
2629
  readonly 'rule': io.flow.v0.models.DiscountRule;
2627
2630
  }
@@ -3610,7 +3613,7 @@ declare namespace io.flow.v0.models {
3610
3613
  readonly 'email': string;
3611
3614
  readonly 'name': io.flow.v0.models.Name;
3612
3615
  readonly 'role'?: io.flow.v0.enums.Role;
3613
- readonly 'roles'?: io.flow.v0.unions.FlowRole[];
3616
+ readonly 'roles'?: io.flow.v0.enums.FlowRole[];
3614
3617
  readonly 'expiration': string;
3615
3618
  }
3616
3619
  interface InvitationError {
@@ -3622,7 +3625,7 @@ declare namespace io.flow.v0.models {
3622
3625
  readonly 'email': string;
3623
3626
  readonly 'name'?: io.flow.v0.models.Name;
3624
3627
  readonly 'role'?: io.flow.v0.enums.Role;
3625
- readonly 'roles'?: io.flow.v0.unions.FlowRole[];
3628
+ readonly 'roles'?: io.flow.v0.enums.FlowRole[];
3626
3629
  }
3627
3630
  interface InvitationVersion {
3628
3631
  readonly 'id': string;
@@ -4139,7 +4142,7 @@ declare namespace io.flow.v0.models {
4139
4142
  readonly 'organization': io.flow.v0.unions.ExpandableOrganization;
4140
4143
  readonly 'user': io.flow.v0.unions.ExpandableUser;
4141
4144
  readonly 'role'?: io.flow.v0.enums.Role;
4142
- readonly 'roles': io.flow.v0.unions.FlowRole[];
4145
+ readonly 'roles': io.flow.v0.enums.FlowRole[];
4143
4146
  }
4144
4147
  interface MembershipDeletedV2 {
4145
4148
  readonly 'discriminator': 'membership_deleted_v2';
@@ -4151,11 +4154,11 @@ declare namespace io.flow.v0.models {
4151
4154
  readonly 'organization': string;
4152
4155
  readonly 'user': string;
4153
4156
  readonly 'role'?: io.flow.v0.enums.Role;
4154
- readonly 'roles'?: io.flow.v0.unions.FlowRole[];
4157
+ readonly 'roles'?: io.flow.v0.enums.FlowRole[];
4155
4158
  }
4156
4159
  interface MembershipPutForm {
4157
4160
  readonly 'role'?: io.flow.v0.enums.Role;
4158
- readonly 'roles'?: io.flow.v0.unions.FlowRole[];
4161
+ readonly 'roles'?: io.flow.v0.enums.FlowRole[];
4159
4162
  }
4160
4163
  interface MembershipUpsertedV2 {
4161
4164
  readonly 'discriminator': 'membership_upserted_v2';
@@ -5168,14 +5171,14 @@ declare namespace io.flow.v0.models {
5168
5171
  interface PermissionCheck {
5169
5172
  readonly 'authentication_technique': io.flow.v0.enums.AuthenticationTechnique;
5170
5173
  readonly 'user'?: io.flow.v0.unions.ExpandableUser;
5171
- readonly 'roles': io.flow.v0.unions.FlowRole[];
5174
+ readonly 'roles': io.flow.v0.enums.FlowRole[];
5172
5175
  readonly 'behaviors': io.flow.v0.enums.FlowBehavior[];
5173
5176
  readonly 'routes': io.flow.v0.models.PermittedRoute[];
5174
5177
  }
5175
5178
  interface PermissionError {
5176
5179
  readonly 'code': io.flow.v0.enums.GenericErrorCode;
5177
5180
  readonly 'messages': string[];
5178
- readonly 'granting_roles'?: io.flow.v0.unions.FlowRole[];
5181
+ readonly 'granting_roles'?: io.flow.v0.enums.FlowRole[];
5179
5182
  readonly 'admin_users'?: io.flow.v0.models.User[];
5180
5183
  }
5181
5184
  interface PermittedRoute {
@@ -6090,7 +6093,7 @@ declare namespace io.flow.v0.models {
6090
6093
  readonly 'method': io.flow.v0.enums.PermittedHttpMethod;
6091
6094
  readonly 'path': string;
6092
6095
  readonly 'authentication_techniques': io.flow.v0.enums.AuthenticationTechnique[];
6093
- readonly 'roles': io.flow.v0.unions.FlowRole[];
6096
+ readonly 'roles': io.flow.v0.enums.FlowRole[];
6094
6097
  }
6095
6098
  interface RuleDeleted {
6096
6099
  readonly 'discriminator': 'rule_deleted';
@@ -6786,6 +6789,7 @@ declare namespace io.flow.v0.models {
6786
6789
  readonly 'discriminator': 'summary_shipping_label_form';
6787
6790
  readonly 'order_number': string;
6788
6791
  readonly 'items': io.flow.v0.models.LineItemForm[];
6792
+ readonly 'center_key'?: string;
6789
6793
  }
6790
6794
  interface SurchargeResponsiblePartyDisplay {
6791
6795
  readonly 'name': string;
@@ -7329,13 +7333,6 @@ declare namespace io.flow.v0.unions {
7329
7333
  type ExportDelivery = (io.flow.v0.models.ExportDeliveryEmail);
7330
7334
  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);
7331
7335
  type FieldValidationRule = (io.flow.v0.models.FieldValidationRequired | io.flow.v0.models.FieldValidationMin | io.flow.v0.models.FieldValidationMax | io.flow.v0.models.FieldValidationPattern);
7332
- type FlowRole = ({
7333
- discriminator: 'flow_user_role';
7334
- value: io.flow.v0.enums.FlowUserRole;
7335
- } | {
7336
- discriminator: 'flow_addon_role';
7337
- value: io.flow.v0.enums.FlowAddonRole;
7338
- });
7339
7336
  type GatewayAuthenticationData = (io.flow.v0.models.StripeAuthenticationData);
7340
7337
  type GatewayAuthenticationDataForm = (io.flow.v0.models.StripeAuthenticationDataForm);
7341
7338
  type InputSpecificationLimitation = (io.flow.v0.models.InputSpecificationLimitationMax);
@@ -7643,6 +7640,7 @@ export declare type CustomerUpserted = io.flow.v0.models.CustomerUpserted;
7643
7640
  export declare type Cvv = io.flow.v0.models.Cvv;
7644
7641
  export declare type CvvCode = io.flow.v0.enums.CvvCode;
7645
7642
  export declare type DatetimeRange = io.flow.v0.models.DatetimeRange;
7643
+ export declare type DatetimeWithTimezone = io.flow.v0.models.DatetimeWithTimezone;
7646
7644
  export declare type DayOfWeek = io.flow.v0.enums.DayOfWeek;
7647
7645
  export declare type DdpRatecardFee = io.flow.v0.models.DdpRatecardFee;
7648
7646
  export declare type DeliveredDuty = io.flow.v0.enums.DeliveredDuty;
@@ -7803,12 +7801,10 @@ export declare type FieldValidationRequired = io.flow.v0.models.FieldValidationR
7803
7801
  export declare type FieldValidationRule = io.flow.v0.unions.FieldValidationRule;
7804
7802
  export declare type FlatRate = io.flow.v0.models.FlatRate;
7805
7803
  export declare type FlatRateForm = io.flow.v0.models.FlatRateForm;
7806
- export declare type FlowAddonRole = io.flow.v0.enums.FlowAddonRole;
7807
7804
  export declare type FlowBehavior = io.flow.v0.enums.FlowBehavior;
7808
7805
  export declare type FlowCenterReference = io.flow.v0.models.FlowCenterReference;
7809
7806
  export declare type FlowItemIndexMetadata = io.flow.v0.models.FlowItemIndexMetadata;
7810
- export declare type FlowRole = io.flow.v0.unions.FlowRole;
7811
- export declare type FlowUserRole = io.flow.v0.enums.FlowUserRole;
7807
+ export declare type FlowRole = io.flow.v0.enums.FlowRole;
7812
7808
  export declare type FraudEmailRule = io.flow.v0.models.FraudEmailRule;
7813
7809
  export declare type FraudEmailRuleDecision = io.flow.v0.enums.FraudEmailRuleDecision;
7814
7810
  export declare type FraudEmailRuleForm = io.flow.v0.models.FraudEmailRuleForm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "9.4.0",
3
+ "version": "9.4.2",
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",
@@ -27,5 +27,5 @@
27
27
  "prettier": "^1.18.2",
28
28
  "typescript": "3.8.3"
29
29
  },
30
- "gitHead": "7e716ce0d6c579913949447eb631cd50def2793c"
30
+ "gitHead": "6c148f9bba055bbc10adc965be86eb9af79c25b0"
31
31
  }