@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/dist/api-internal.d.ts +711 -64
- package/dist/api.d.ts +14 -27
- package/package.json +2 -2
- package/src/api-internal.ts +791 -46
- package/src/api.ts +14 -29
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
|
|
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.
|
|
1457
|
+
readonly 'roles': io.flow.v0.enums.FlowRole[];
|
|
1459
1458
|
}
|
|
1460
1459
|
interface BillingAddress {
|
|
1461
1460
|
readonly 'name'?: io.flow.v0.models.Name;
|
|
@@ -2616,9 +2615,7 @@ declare namespace io.flow.v0.models {
|
|
|
2616
2615
|
interface DiscountRuleSettings {
|
|
2617
2616
|
readonly 'id': string;
|
|
2618
2617
|
readonly 'name': string;
|
|
2619
|
-
readonly '
|
|
2620
|
-
readonly 'from_with_tz'?: io.flow.v0.models.DatetimeWithTimezone;
|
|
2621
|
-
readonly 'to'?: string;
|
|
2618
|
+
readonly 'from_with_tz': io.flow.v0.models.DatetimeWithTimezone;
|
|
2622
2619
|
readonly 'to_with_tz'?: io.flow.v0.models.DatetimeWithTimezone;
|
|
2623
2620
|
readonly 'status': io.flow.v0.enums.DiscountRuleStatus;
|
|
2624
2621
|
readonly 'experience_keys': string[];
|
|
@@ -2626,9 +2623,7 @@ declare namespace io.flow.v0.models {
|
|
|
2626
2623
|
}
|
|
2627
2624
|
interface DiscountRuleSettingsForm {
|
|
2628
2625
|
readonly 'name': string;
|
|
2629
|
-
readonly '
|
|
2630
|
-
readonly 'from_with_tz'?: io.flow.v0.models.DatetimeWithTimezone;
|
|
2631
|
-
readonly 'to'?: string;
|
|
2626
|
+
readonly 'from_with_tz': io.flow.v0.models.DatetimeWithTimezone;
|
|
2632
2627
|
readonly 'to_with_tz'?: io.flow.v0.models.DatetimeWithTimezone;
|
|
2633
2628
|
readonly 'experience_keys': string[];
|
|
2634
2629
|
readonly 'rule': io.flow.v0.models.DiscountRule;
|
|
@@ -3618,7 +3613,7 @@ declare namespace io.flow.v0.models {
|
|
|
3618
3613
|
readonly 'email': string;
|
|
3619
3614
|
readonly 'name': io.flow.v0.models.Name;
|
|
3620
3615
|
readonly 'role'?: io.flow.v0.enums.Role;
|
|
3621
|
-
readonly 'roles'?: io.flow.v0.
|
|
3616
|
+
readonly 'roles'?: io.flow.v0.enums.FlowRole[];
|
|
3622
3617
|
readonly 'expiration': string;
|
|
3623
3618
|
}
|
|
3624
3619
|
interface InvitationError {
|
|
@@ -3630,7 +3625,7 @@ declare namespace io.flow.v0.models {
|
|
|
3630
3625
|
readonly 'email': string;
|
|
3631
3626
|
readonly 'name'?: io.flow.v0.models.Name;
|
|
3632
3627
|
readonly 'role'?: io.flow.v0.enums.Role;
|
|
3633
|
-
readonly 'roles'?: io.flow.v0.
|
|
3628
|
+
readonly 'roles'?: io.flow.v0.enums.FlowRole[];
|
|
3634
3629
|
}
|
|
3635
3630
|
interface InvitationVersion {
|
|
3636
3631
|
readonly 'id': string;
|
|
@@ -4147,7 +4142,7 @@ declare namespace io.flow.v0.models {
|
|
|
4147
4142
|
readonly 'organization': io.flow.v0.unions.ExpandableOrganization;
|
|
4148
4143
|
readonly 'user': io.flow.v0.unions.ExpandableUser;
|
|
4149
4144
|
readonly 'role'?: io.flow.v0.enums.Role;
|
|
4150
|
-
readonly 'roles': io.flow.v0.
|
|
4145
|
+
readonly 'roles': io.flow.v0.enums.FlowRole[];
|
|
4151
4146
|
}
|
|
4152
4147
|
interface MembershipDeletedV2 {
|
|
4153
4148
|
readonly 'discriminator': 'membership_deleted_v2';
|
|
@@ -4159,11 +4154,11 @@ declare namespace io.flow.v0.models {
|
|
|
4159
4154
|
readonly 'organization': string;
|
|
4160
4155
|
readonly 'user': string;
|
|
4161
4156
|
readonly 'role'?: io.flow.v0.enums.Role;
|
|
4162
|
-
readonly 'roles'?: io.flow.v0.
|
|
4157
|
+
readonly 'roles'?: io.flow.v0.enums.FlowRole[];
|
|
4163
4158
|
}
|
|
4164
4159
|
interface MembershipPutForm {
|
|
4165
4160
|
readonly 'role'?: io.flow.v0.enums.Role;
|
|
4166
|
-
readonly 'roles'?: io.flow.v0.
|
|
4161
|
+
readonly 'roles'?: io.flow.v0.enums.FlowRole[];
|
|
4167
4162
|
}
|
|
4168
4163
|
interface MembershipUpsertedV2 {
|
|
4169
4164
|
readonly 'discriminator': 'membership_upserted_v2';
|
|
@@ -5176,14 +5171,14 @@ declare namespace io.flow.v0.models {
|
|
|
5176
5171
|
interface PermissionCheck {
|
|
5177
5172
|
readonly 'authentication_technique': io.flow.v0.enums.AuthenticationTechnique;
|
|
5178
5173
|
readonly 'user'?: io.flow.v0.unions.ExpandableUser;
|
|
5179
|
-
readonly 'roles': io.flow.v0.
|
|
5174
|
+
readonly 'roles': io.flow.v0.enums.FlowRole[];
|
|
5180
5175
|
readonly 'behaviors': io.flow.v0.enums.FlowBehavior[];
|
|
5181
5176
|
readonly 'routes': io.flow.v0.models.PermittedRoute[];
|
|
5182
5177
|
}
|
|
5183
5178
|
interface PermissionError {
|
|
5184
5179
|
readonly 'code': io.flow.v0.enums.GenericErrorCode;
|
|
5185
5180
|
readonly 'messages': string[];
|
|
5186
|
-
readonly 'granting_roles'?: io.flow.v0.
|
|
5181
|
+
readonly 'granting_roles'?: io.flow.v0.enums.FlowRole[];
|
|
5187
5182
|
readonly 'admin_users'?: io.flow.v0.models.User[];
|
|
5188
5183
|
}
|
|
5189
5184
|
interface PermittedRoute {
|
|
@@ -6098,7 +6093,7 @@ declare namespace io.flow.v0.models {
|
|
|
6098
6093
|
readonly 'method': io.flow.v0.enums.PermittedHttpMethod;
|
|
6099
6094
|
readonly 'path': string;
|
|
6100
6095
|
readonly 'authentication_techniques': io.flow.v0.enums.AuthenticationTechnique[];
|
|
6101
|
-
readonly 'roles': io.flow.v0.
|
|
6096
|
+
readonly 'roles': io.flow.v0.enums.FlowRole[];
|
|
6102
6097
|
}
|
|
6103
6098
|
interface RuleDeleted {
|
|
6104
6099
|
readonly 'discriminator': 'rule_deleted';
|
|
@@ -6794,6 +6789,7 @@ declare namespace io.flow.v0.models {
|
|
|
6794
6789
|
readonly 'discriminator': 'summary_shipping_label_form';
|
|
6795
6790
|
readonly 'order_number': string;
|
|
6796
6791
|
readonly 'items': io.flow.v0.models.LineItemForm[];
|
|
6792
|
+
readonly 'center_key'?: string;
|
|
6797
6793
|
}
|
|
6798
6794
|
interface SurchargeResponsiblePartyDisplay {
|
|
6799
6795
|
readonly 'name': string;
|
|
@@ -7337,13 +7333,6 @@ declare namespace io.flow.v0.unions {
|
|
|
7337
7333
|
type ExportDelivery = (io.flow.v0.models.ExportDeliveryEmail);
|
|
7338
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);
|
|
7339
7335
|
type FieldValidationRule = (io.flow.v0.models.FieldValidationRequired | io.flow.v0.models.FieldValidationMin | io.flow.v0.models.FieldValidationMax | io.flow.v0.models.FieldValidationPattern);
|
|
7340
|
-
type FlowRole = ({
|
|
7341
|
-
discriminator: 'flow_user_role';
|
|
7342
|
-
value: io.flow.v0.enums.FlowUserRole;
|
|
7343
|
-
} | {
|
|
7344
|
-
discriminator: 'flow_addon_role';
|
|
7345
|
-
value: io.flow.v0.enums.FlowAddonRole;
|
|
7346
|
-
});
|
|
7347
7336
|
type GatewayAuthenticationData = (io.flow.v0.models.StripeAuthenticationData);
|
|
7348
7337
|
type GatewayAuthenticationDataForm = (io.flow.v0.models.StripeAuthenticationDataForm);
|
|
7349
7338
|
type InputSpecificationLimitation = (io.flow.v0.models.InputSpecificationLimitationMax);
|
|
@@ -7812,12 +7801,10 @@ export declare type FieldValidationRequired = io.flow.v0.models.FieldValidationR
|
|
|
7812
7801
|
export declare type FieldValidationRule = io.flow.v0.unions.FieldValidationRule;
|
|
7813
7802
|
export declare type FlatRate = io.flow.v0.models.FlatRate;
|
|
7814
7803
|
export declare type FlatRateForm = io.flow.v0.models.FlatRateForm;
|
|
7815
|
-
export declare type FlowAddonRole = io.flow.v0.enums.FlowAddonRole;
|
|
7816
7804
|
export declare type FlowBehavior = io.flow.v0.enums.FlowBehavior;
|
|
7817
7805
|
export declare type FlowCenterReference = io.flow.v0.models.FlowCenterReference;
|
|
7818
7806
|
export declare type FlowItemIndexMetadata = io.flow.v0.models.FlowItemIndexMetadata;
|
|
7819
|
-
export declare type FlowRole = io.flow.v0.
|
|
7820
|
-
export declare type FlowUserRole = io.flow.v0.enums.FlowUserRole;
|
|
7807
|
+
export declare type FlowRole = io.flow.v0.enums.FlowRole;
|
|
7821
7808
|
export declare type FraudEmailRule = io.flow.v0.models.FraudEmailRule;
|
|
7822
7809
|
export declare type FraudEmailRuleDecision = io.flow.v0.enums.FraudEmailRuleDecision;
|
|
7823
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.
|
|
3
|
+
"version": "9.4.3",
|
|
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": "
|
|
30
|
+
"gitHead": "8653f3548d26b65f9196bae54baaadd6d80186af"
|
|
31
31
|
}
|