UNPKG

3.72 kBSource Map (JSON)View Raw
1{"version":3,"sources":["../../src/redux/types.ts"],"names":["ProgramStatus"],"mappings":";;;;IAAYA,a;;;WAAAA,a;AAAAA,EAAAA,a;AAAAA,EAAAA,a;GAAAA,a,6BAAAA,a","sourcesContent":["export enum ProgramStatus {\n BOOTSTRAP_FINISHED = `BOOTSTRAP_FINISHED`,\n BOOTSTRAP_QUERY_RUNNING_FINISHED = `BOOTSTRAP_QUERY_RUNNING_FINISHED`,\n}\n\nexport interface IReduxState {\n status: ProgramStatus\n nodes?: {\n id: string\n internal: {\n type: string\n }\n }[]\n nodesByType?: Map<any, any> // TODO\n jobsV2: any // TODO\n lastAction: ActionsUnion\n componentDataDependencies: any // TODO\n components: any // TODO\n staticQueryComponents: any // TODO\n webpackCompilationHash: any // TODO\n pageDataStats: any // TODO\n jobs: {\n active: Array<any> // TODO\n }\n schema: any\n schemaCustomization: any\n config: {\n developMiddleware: any\n proxy: any\n }\n}\n\nexport interface ICachedReduxState {\n nodes: IReduxState[\"nodes\"]\n status: IReduxState[\"status\"]\n componentDataDependencies: IReduxState[\"componentDataDependencies\"]\n components: IReduxState[\"components\"]\n jobsV2: IReduxState[\"jobsV2\"]\n staticQueryComponents: IReduxState[\"staticQueryComponents\"]\n webpackCompilationHash: IReduxState[\"webpackCompilationHash\"]\n pageDataStats: IReduxState[\"pageDataStats\"]\n}\n\nexport type ActionsUnion =\n | ICreatePageDependencyAction\n | IDeleteComponentDependenciesAction\n | IReplaceComponentQueryAction\n | IReplaceStaticQueryAction\n | IQueryExtractedAction\n | IQueryExtractionGraphQLErrorAction\n | IQueryExtractedBabelSuccessAction\n | IQueryExtractionBabelErrorAction\n | ISetProgramStatusAction\n | IPageQueryRunAction\n\nexport interface ICreatePageDependencyAction {\n type: `CREATE_COMPONENT_DEPENDENCY`\n plugin: string\n payload: {\n path: string\n nodeId: string\n connection: string\n }\n}\n\nexport interface IDeleteComponentDependenciesAction {\n type: \"DELETE_COMPONENTS_DEPENDENCIES\"\n payload: {\n paths: string[]\n }\n}\n\nexport interface IReplaceComponentQueryAction {\n type: \"REPLACE_COMPONENT_QUERY\"\n payload: {\n query: string\n componentPath: string\n }\n}\n\nexport interface IReplaceStaticQueryAction {\n type: `REPLACE_STATIC_QUERY`\n plugin: Plugin | null | undefined\n payload: {\n name: string\n componentPath: string\n id: string\n query: string\n hash: string\n }\n}\n\nexport interface IQueryExtractedAction {\n type: `QUERY_EXTRACTED`\n plugin: Plugin\n traceId: string | undefined\n payload: { componentPath: string; query: string }\n}\n\nexport interface IQueryExtractionGraphQLErrorAction {\n type: `QUERY_EXTRACTION_GRAPHQL_ERROR`\n plugin: Plugin\n traceId: string | undefined\n payload: { componentPath: string; error: string }\n}\n\nexport interface IQueryExtractedBabelSuccessAction {\n type: `QUERY_EXTRACTION_BABEL_SUCCESS`\n plugin: Plugin\n traceId: string | undefined\n payload: { componentPath: string }\n}\n\nexport interface IQueryExtractionBabelErrorAction {\n type: `QUERY_EXTRACTION_BABEL_ERROR`\n plugin: Plugin\n traceId: string | undefined\n payload: {\n componentPath: string\n error: Error\n }\n}\n\nexport interface ISetProgramStatusAction {\n type: `SET_PROGRAM_STATUS`\n plugin: Plugin\n traceId: string | undefined\n payload: ProgramStatus\n}\n\nexport interface IPageQueryRunAction {\n type: `PAGE_QUERY_RUN`\n plugin: Plugin\n traceId: string | undefined\n payload: { path: string; componentPath: string; isPage: boolean }\n}\n\nexport interface IRemoveStaleJobAction {\n type: `REMOVE_STALE_JOB_V2`\n plugin: Plugin\n traceId?: string\n payload: { contentDigest: string }\n}\n"],"file":"types.js"}
\No newline at end of file