@kiwicom/orbit-tracking
Version:
Tracking for orbit design system
185 lines (182 loc) • 4.82 kB
TypeScript
declare type AccessLevel = "NO_ACCESS" | "MINIMAL_ACCESS" | "GUEST" | "REPORTER" | "DEVELOPER" | "MAINTAINER" | "OWNER";
declare type Scope = "booking" | "smart-faq" | "search" | "frontend" | "account" | "mmb" | "core" | "balkan";
interface User {
id?: string;
name: string;
avatarUrl: string;
bot: boolean;
state: "active" | "blocked" | "deactivated";
webUrl: string;
webPath: string;
publicEmail: string;
status: null | {
message: string;
availability: "NOT_SET" | "BUSY";
};
}
interface ProjectMember {
id: string;
accessLevel: {
stringValue: AccessLevel;
};
user: User;
}
interface ProjectNode {
id: string;
name: string;
description: string;
sshUrlToRepo: string;
httpUrlToRepo: string;
repository: {
tree: {
lastCommit: {
title: string;
sha: string;
webUrl: string;
};
};
};
projectMembers: {
nodes: ProjectMember[];
};
}
interface ProjectsQuery {
data: {
projects: {
nodes: ProjectNode[];
};
};
}
interface Blob {
path: string;
}
interface ProjectPathsQuery {
data: {
project: {
repository: {
tree: {
blobs: {
nodes: Blob[];
};
};
};
};
};
}
interface ProjectMutations {
data: {
createBranch: {
branch: {
name: string;
};
errors: string[];
};
mergeRequestCreate: {
mergeRequest: {
webUrl: string;
title: string;
};
errors: string[];
};
commitCreate: {
commit: {
author: string;
id: string;
};
description: string;
fullTitle: string;
message: string;
sha: string;
webUrl: string;
errors: string[];
};
};
}
interface Instance {
importInfo: {
imported: string;
local: string;
moduleName: string;
importType: string;
};
props: Record<string, string | number>;
propsSpread: boolean;
location: {
file: string;
start: {
line: number;
column: number;
};
};
}
interface Component {
instances: Instance[];
}
declare type ComponentInstance = Record<string, Component>;
interface PropValue {
name: string;
used: number;
}
interface Prop {
name: string;
used: number;
values: PropValue;
}
interface OutputComponentInfo {
name: string;
instances: number;
sources: string[];
props: Prop[];
category: string;
isDeprecated: boolean;
icon: boolean;
}
interface Source {
url: string;
props: Array<{
name: string | null;
value: string | number | null;
}>;
}
interface OutputInstance {
instances: number;
sources: Source[];
category: string;
icon: boolean;
props: Prop;
isDeprecated: boolean;
}
declare type TrackedDataType = Record<string, OutputInstance>;
type interfaces_Scope = Scope;
type interfaces_User = User;
type interfaces_ProjectMember = ProjectMember;
type interfaces_ProjectNode = ProjectNode;
type interfaces_ProjectsQuery = ProjectsQuery;
type interfaces_ProjectPathsQuery = ProjectPathsQuery;
type interfaces_ProjectMutations = ProjectMutations;
type interfaces_Instance = Instance;
type interfaces_Component = Component;
type interfaces_ComponentInstance = ComponentInstance;
type interfaces_PropValue = PropValue;
type interfaces_Prop = Prop;
type interfaces_OutputComponentInfo = OutputComponentInfo;
type interfaces_TrackedDataType = TrackedDataType;
declare namespace interfaces {
export {
interfaces_Scope as Scope,
interfaces_User as User,
interfaces_ProjectMember as ProjectMember,
interfaces_ProjectNode as ProjectNode,
interfaces_ProjectsQuery as ProjectsQuery,
interfaces_ProjectPathsQuery as ProjectPathsQuery,
interfaces_ProjectMutations as ProjectMutations,
interfaces_Instance as Instance,
interfaces_Component as Component,
interfaces_ComponentInstance as ComponentInstance,
interfaces_PropValue as PropValue,
interfaces_Prop as Prop,
interfaces_OutputComponentInfo as OutputComponentInfo,
interfaces_TrackedDataType as TrackedDataType,
};
}
export { Component as C, Instance as I, OutputComponentInfo as O, ProjectNode as P, Scope as S, TrackedDataType as T, User as U, ProjectMember as a, ProjectsQuery as b, ProjectPathsQuery as c, ProjectMutations as d, ComponentInstance as e, PropValue as f, Prop as g, interfaces as i };