@finos/legend-application-marketplace
Version:
Legend Marketplace application core
49 lines • 2.11 kB
TypeScript
/**
* Copyright (c) 2025-present, Goldman Sachs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { TerminalProductOrder } from '@finos/legend-server-marketplace';
export declare enum WorkflowStage {
ORDER_PLACED = "Order Placed",
MANAGER_APPROVAL = "Manager Approval",
BUSINESS_ANALYST_APPROVAL = "Business Analyst Approval",
PENDING_FULFILLMENT = "Pending Fulfillment",
CANCELLED = "Cancelled"
}
export declare enum WorkflowStatus {
COMPLETED = "COMPLETED"
}
export declare enum OrderType {
CANCELLATION = "CANCELLATION"
}
export declare enum WorkflowCurrentStage {
DIRECT_MANAGER = "DIRECT MANAGER",
BUSINESS_ANALYST = "Business Analyst",
RPM = "RPM"
}
export declare enum RejectedActionStatus {
REJECTED = "rejected",
CANCELLED = "cancelled",
AUTO_CANCELLED = "auto cancelled",
DENIED = "denied"
}
export declare const STAGE_MAP: Record<WorkflowCurrentStage, WorkflowStage>;
export declare const getWorkflowSteps: (order: TerminalProductOrder) => WorkflowStage[];
export declare const getProcessInstanceId: (order: TerminalProductOrder) => string | null;
export declare const canCancelOrder: (order: TerminalProductOrder) => boolean;
export declare const isStageCompleted: (order: TerminalProductOrder, stageName: string) => boolean;
export declare const isStageRejected: (order: TerminalProductOrder, stageName: string) => boolean;
export declare const formatOrderDate: (dateString?: string) => string | undefined;
export declare const formatTimestamp: (timestamp: string) => string;
//# sourceMappingURL=OrderHelpers.d.ts.map