mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 14:55:44 +00:00
refactor(FE): Update ProductFlagMapping types and related references
This commit is contained in:
+6
-6
@@ -47,19 +47,19 @@ export type ConstantsApiResponse = {
|
||||
stock_log: StockLogConfig;
|
||||
};
|
||||
|
||||
export type ProductFlagMappingOptionUI = {
|
||||
export type ProductFlagMappingItem = {
|
||||
flag: OptionType;
|
||||
sub_flags: OptionType[];
|
||||
allow_without_sub_flag: boolean;
|
||||
};
|
||||
|
||||
export type ProductFlagMappingUI = {
|
||||
export type ProductFlagMapping = {
|
||||
flags: OptionType[];
|
||||
options: ProductFlagMappingOptionUI[];
|
||||
options: ProductFlagMappingItem[];
|
||||
sub_flag_to_flag: Record<string, string>;
|
||||
};
|
||||
|
||||
export type ApprovalWorkflowUI = {
|
||||
export type TransformedApprovalWorkflow = {
|
||||
key: string;
|
||||
steps: OptionType[];
|
||||
};
|
||||
@@ -75,9 +75,9 @@ export type TransformedConstants = {
|
||||
PEMBELIAN: OptionType[];
|
||||
};
|
||||
};
|
||||
approval_workflows: ApprovalWorkflowUI[];
|
||||
approval_workflows: TransformedApprovalWorkflow[];
|
||||
flags: OptionType[];
|
||||
product_flag_mapping: ProductFlagMappingUI;
|
||||
product_flag_mapping: ProductFlagMapping;
|
||||
legacy_flag_aliases: OptionType[];
|
||||
stock_log: {
|
||||
log_types: OptionType[];
|
||||
|
||||
Reference in New Issue
Block a user