import type { ClipActionType } from '../../../../infrastructure/activity/models/clipActionType'; import type { ClipAction, ClipCollectionAction, StoryAction, StoryCategoryAction } from '../../../../shared/actions'; export type InAppClipAction = { type: ClipActionType.inApp; storeType: 'none'; url: string; text: string; appStoreId: null; playStoreBundleId: null; openInNewTab: boolean; sheetId: null; sheetTitle: null; sheetSize: null; }; export type SheetClipAction = { type: ClipActionType.sheet; storeType: 'none'; url: string; text: string; appStoreId: null; playStoreBundleId: null; openInNewTab: boolean; sheetId: string; sheetTitle: string; sheetSize: number; }; export type StoreClipAction = { type: ClipActionType.store; storeType: 'both' | string; url: string; text: string; appStoreId: string | null; playStoreBundleId: string | null; openInNewTab: boolean; sheetId: null; sheetTitle: null; sheetSize: null; }; export type WebClipAction = { type: ClipActionType.web; storeType: 'none'; url: string; text: string; appStoreId: null; playStoreBundleId: null; openInNewTab: boolean; sheetId: null; sheetTitle: null; sheetSize: null; }; export type EmptyClipAction = { type: 'none'; storeType: 'none'; url: null; text: null; appStoreId: null; playStoreBundleId: null; openInNewTab: undefined; sheetId: null; sheetTitle: null; sheetSize: null; }; export type IClipAction = ClipCollectionAction | ClipAction | StoryCategoryAction | StoryAction | InAppClipAction | SheetClipAction | StoreClipAction | WebClipAction | EmptyClipAction | null;