import { Subscription } from "~/ports/Subscription"; import { WhiteLabel } from "~/ports/WhiteLabel"; import { SupportLinks as CloudSupportLinks } from "~/ports/CloudSupportLinks"; import { SupportLinks as ShopifySupportLinks } from "~/ports/ShopifySupportLinks"; import { Authorize } from "~/ports/GraphQl/types/Authorize"; import { ProjectId } from "~/types/ProjectId"; import { TaxCategoryId } from "./TaxCategoryId"; import { ChannelCode } from "./ChannelCode"; import { Slug } from "./Slug"; import { ActiveItem } from "~/ports/ActiveItem"; import { Ecwid, Shop } from "~/types/Modules/Shop"; import { Locale } from "~/types/Locale"; export interface Base { origin: string; development: boolean; previewUrl: string; mediaUrl: string; userApi: Authorize; activeItem: ActiveItem; projectId: ProjectId; locale: Locale; } export interface Cloud extends Base { __type: "cloud"; protectedPagePassword: string; customerPreviewUrl: string; settingsUrl: string; customersSlug: Slug; categoriesSlug: Slug; productsSlug: Slug; domainUrl: string; taxesInfoUrl: string; user: { isPro: boolean; }; supportLinks: CloudSupportLinks; whiteLabel: WhiteLabel; cloneLinkApi: Authorize; cloneLink: string; projectApi: Authorize; appointmentsApi: Authorize; translationApi: Authorize; notificationApi: Authorize; airtableApi: Authorize; shopChannel: ChannelCode; taxesMainCategoryId: TaxCategoryId; customersEditorUrl: string; modules: { shop: Shop; users: { disabled: boolean; }; }; isAvailablePreviewBadge: boolean; } export interface Shopify extends Base { __type: "shopify"; subscription: Subscription; api: Authorize; appointmentsApi: Authorize; translationApi: Authorize; siteUrl: string; builderVersion: string; supportLinks: ShopifySupportLinks; } export declare type Context = Cloud | Shopify; export interface EcwidCloud extends Omit { modules: { shop: Ecwid; users: { disabled: boolean; }; }; }