@griddo/cx 11.9.7 → 11.9.8-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -193
- package/build/commands/end-render.js +31 -0
- package/build/commands/end-render.js.map +7 -0
- package/build/commands/prepare-assets-directory.js +9 -0
- package/build/commands/prepare-assets-directory.js.map +7 -0
- package/build/commands/prepare-domains-render.js +38 -0
- package/build/commands/prepare-domains-render.js.map +7 -0
- package/build/commands/reset-render.js +31 -0
- package/build/commands/reset-render.js.map +7 -0
- package/build/commands/start-embeddings.js +31 -0
- package/build/commands/start-embeddings.js.map +7 -0
- package/build/commands/start-render.js +66 -0
- package/build/commands/start-render.js.map +7 -0
- package/build/commands/upload-search-content.js +31 -0
- package/build/commands/upload-search-content.js.map +7 -0
- package/build/core/GriddoLog.d.ts +16 -0
- package/build/core/db.d.ts +4 -0
- package/build/core/dist-rollback.d.ts +2 -0
- package/build/{errors/index.d.ts → core/errors.d.ts} +5 -4
- package/build/core/fs.d.ts +69 -0
- package/build/core/logger.d.ts +18 -0
- package/build/index.d.ts +10 -29
- package/build/index.js +406 -73
- package/build/services/auth.d.ts +2 -5
- package/build/services/manage-store.d.ts +48 -0
- package/build/services/render.d.ts +70 -0
- package/build/shared/envs.d.ts +19 -0
- package/build/{errors/errors-data.d.ts → shared/errors.d.ts} +5 -3
- package/build/shared/npm-modules/brush.d.ts +18 -0
- package/build/shared/npm-modules/find-up-simple.d.ts +34 -0
- package/build/shared/npm-modules/pkg-dir.d.ts +7 -0
- package/build/{types → shared/types}/api.d.ts +18 -18
- package/build/{types → shared/types}/global.d.ts +15 -16
- package/build/{types → shared/types}/navigation.d.ts +5 -5
- package/build/{types → shared/types}/pages.d.ts +9 -9
- package/build/shared/types/render.d.ts +54 -0
- package/build/{types → shared/types}/sites.d.ts +18 -19
- package/cli.mjs +239 -0
- package/exporter/build-esbuild.noop +42 -0
- package/exporter/build.sh +17 -28
- package/exporter/commands/README.md +151 -0
- package/exporter/commands/end-render.ts +65 -86
- package/exporter/commands/prepare-assets-directory.ts +34 -0
- package/exporter/commands/prepare-domains-render.ts +143 -35
- package/exporter/commands/reset-render.ts +12 -7
- package/exporter/commands/single-domain-upload-search-content.noop +206 -0
- package/exporter/commands/start-embeddings.ts +29 -0
- package/exporter/commands/start-render.ts +26 -64
- package/exporter/commands/upload-search-content.ts +201 -26
- package/exporter/core/GriddoLog.ts +45 -0
- package/exporter/core/check-env-health.ts +200 -0
- package/exporter/core/db-class.ts +54 -0
- package/exporter/core/db.ts +33 -0
- package/exporter/core/dist-rollback.ts +40 -0
- package/exporter/core/errors.ts +82 -0
- package/exporter/core/fs.ts +385 -0
- package/exporter/{utils → core}/images.ts +1 -6
- package/exporter/{utils → core}/instance.ts +9 -13
- package/exporter/core/life-cycle.ts +73 -0
- package/exporter/core/logger.ts +141 -0
- package/exporter/core/objects.ts +37 -0
- package/exporter/core/print-logos.ts +21 -0
- package/exporter/index.ts +14 -56
- package/exporter/services/api.ts +306 -0
- package/exporter/services/auth.ts +8 -10
- package/exporter/services/domains.ts +23 -8
- package/exporter/services/manage-sites.ts +116 -0
- package/exporter/services/manage-store.ts +235 -0
- package/exporter/services/navigation.ts +12 -18
- package/exporter/{utils → services}/pages.ts +27 -92
- package/exporter/services/reference-fields.ts +14 -32
- package/exporter/services/render-artifacts.ts +44 -0
- package/exporter/services/render.ts +229 -0
- package/exporter/services/robots.ts +33 -61
- package/exporter/services/sitemaps.ts +129 -0
- package/exporter/services/sites.ts +40 -28
- package/exporter/services/store.ts +386 -319
- package/exporter/shared/context.ts +49 -0
- package/exporter/{constants → shared}/endpoints.ts +12 -11
- package/exporter/shared/envs.ts +62 -0
- package/exporter/{errors/errors-data.ts → shared/errors.ts} +24 -14
- package/exporter/shared/npm-modules/README.md +36 -0
- package/exporter/shared/npm-modules/brush.ts +34 -0
- package/exporter/shared/npm-modules/find-up-simple.ts +100 -0
- package/exporter/shared/npm-modules/pkg-dir.ts +17 -0
- package/exporter/shared/npm-modules/xml-parser.ts +57 -0
- package/exporter/{types → shared/types}/api.ts +40 -41
- package/exporter/{types → shared/types}/global.ts +17 -21
- package/exporter/{types → shared/types}/navigation.ts +3 -3
- package/exporter/{types → shared/types}/pages.ts +10 -11
- package/exporter/shared/types/render.ts +63 -0
- package/exporter/{types → shared/types}/sites.ts +18 -19
- package/exporter/ssg-adapters/gatsby/actions/clean.ts +26 -0
- package/exporter/ssg-adapters/gatsby/actions/close.ts +17 -0
- package/exporter/ssg-adapters/gatsby/actions/data.ts +22 -0
- package/exporter/ssg-adapters/gatsby/actions/healthCheck.ts +10 -0
- package/exporter/ssg-adapters/gatsby/actions/init.ts +12 -0
- package/exporter/ssg-adapters/gatsby/actions/logs.ts +10 -0
- package/exporter/ssg-adapters/gatsby/actions/meta.ts +13 -0
- package/exporter/ssg-adapters/gatsby/actions/prepare.ts +9 -0
- package/exporter/ssg-adapters/gatsby/actions/relocation.ts +15 -0
- package/exporter/ssg-adapters/gatsby/actions/restore.ts +21 -0
- package/exporter/ssg-adapters/gatsby/actions/ssg.ts +12 -0
- package/exporter/ssg-adapters/gatsby/actions/sync.ts +65 -0
- package/exporter/ssg-adapters/gatsby/index.ts +114 -0
- package/exporter/ssg-adapters/gatsby/shared/artifacts.ts +16 -0
- package/exporter/ssg-adapters/gatsby/shared/diff-assets.ts +128 -0
- package/exporter/ssg-adapters/gatsby/shared/extract-assets.ts +75 -0
- package/exporter/ssg-adapters/gatsby/shared/gatsby-build.ts +58 -0
- package/exporter/ssg-adapters/gatsby/shared/sync-render.ts +300 -0
- package/exporter/ssg-adapters/gatsby/shared/types.ts +35 -0
- package/exporter/ssg-adapters/gatsby/shared/utils.ts +33 -0
- package/gatsby-browser.tsx +41 -58
- package/gatsby-config.ts +10 -17
- package/gatsby-node.ts +20 -80
- package/gatsby-ssr.tsx +2 -1
- package/package.json +41 -92
- package/plugins/gatsby-plugin-svgr-loader/gatsby-node.js +55 -0
- package/plugins/gatsby-plugin-svgr-loader/package.json +8 -0
- package/react/DynamicScript/index.tsx +33 -0
- package/{exporter/react/Favicon → react/GriddoFavicon}/index.tsx +3 -9
- package/{exporter/react → react}/GriddoIntegrations/index.tsx +17 -23
- package/{exporter/react → react}/GriddoIntegrations/utils.ts +24 -12
- package/react/GriddoOpenGraph/index.tsx +39 -0
- package/src/components/Head.tsx +30 -73
- package/src/components/template.tsx +8 -30
- package/src/gatsby-node-utils.ts +76 -2
- package/src/html.tsx +2 -11
- package/src/types.ts +5 -5
- package/tsconfig.commands.json +36 -0
- package/tsconfig.exporter.json +20 -0
- package/tsconfig.json +5 -3
- package/build/adapters/gatsby/index.d.ts +0 -4
- package/build/adapters/gatsby/utils.d.ts +0 -22
- package/build/artifacts/index.d.ts +0 -6
- package/build/commands/end-render.d.ts +0 -2
- package/build/commands/move-assets.d.ts +0 -1
- package/build/commands/prepare-domains-render.d.ts +0 -1
- package/build/commands/reset-render.d.ts +0 -2
- package/build/commands/start-render.d.ts +0 -2
- package/build/commands/upload-search-content.d.ts +0 -2
- package/build/constants/envs.d.ts +0 -37
- package/build/constants/index.d.ts +0 -57
- package/build/end-render.js +0 -74
- package/build/end-render.js.map +0 -7
- package/build/index.js.map +0 -7
- package/build/prepare-domains-render.js +0 -73
- package/build/prepare-domains-render.js.map +0 -7
- package/build/react/Favicon/index.d.ts +0 -5
- package/build/react/Favicon/utils.d.ts +0 -9
- package/build/react/GriddoIntegrations/index.d.ts +0 -20
- package/build/react/GriddoIntegrations/utils.d.ts +0 -26
- package/build/react/index.d.ts +0 -3
- package/build/react/index.js +0 -3
- package/build/registers/api.d.ts +0 -9
- package/build/registers/gatsby.d.ts +0 -9
- package/build/registers/index.d.ts +0 -3
- package/build/reset-render.js +0 -74
- package/build/reset-render.js.map +0 -7
- package/build/services/domains.d.ts +0 -6
- package/build/services/navigation.d.ts +0 -50
- package/build/services/reference-fields.d.ts +0 -20
- package/build/services/register.d.ts +0 -36
- package/build/services/robots.d.ts +0 -19
- package/build/services/settings.d.ts +0 -4
- package/build/services/sites.d.ts +0 -29
- package/build/services/store.d.ts +0 -6
- package/build/start-render.js +0 -100
- package/build/start-render.js.map +0 -7
- package/build/types/templates.d.ts +0 -8
- package/build/upload-search-content.js +0 -74
- package/build/upload-search-content.js.map +0 -7
- package/build/utils/alerts.d.ts +0 -3
- package/build/utils/api.d.ts +0 -23
- package/build/utils/cache.d.ts +0 -35
- package/build/utils/core-utils.d.ts +0 -107
- package/build/utils/create-build-data.d.ts +0 -8
- package/build/utils/domains.d.ts +0 -13
- package/build/utils/folders.d.ts +0 -53
- package/build/utils/health-checks.d.ts +0 -7
- package/build/utils/images.d.ts +0 -16
- package/build/utils/loggin.d.ts +0 -51
- package/build/utils/pages.d.ts +0 -34
- package/build/utils/render.d.ts +0 -13
- package/build/utils/searches.d.ts +0 -15
- package/build/utils/sites.d.ts +0 -31
- package/build/utils/store.d.ts +0 -81
- package/cx.config.d.ts +0 -5
- package/cx.config.js +0 -36
- package/exporter/adapters/gatsby/index.ts +0 -162
- package/exporter/adapters/gatsby/utils.ts +0 -161
- package/exporter/artifacts/README.md +0 -34
- package/exporter/artifacts/index.ts +0 -33
- package/exporter/commands/move-assets.ts +0 -11
- package/exporter/constants/envs.ts +0 -94
- package/exporter/constants/index.ts +0 -129
- package/exporter/errors/index.ts +0 -40
- package/exporter/react/index.tsx +0 -11
- package/exporter/registers/api.ts +0 -14
- package/exporter/registers/gatsby.ts +0 -14
- package/exporter/registers/index.ts +0 -4
- package/exporter/services/register.ts +0 -113
- package/exporter/services/settings.ts +0 -17
- package/exporter/utils/alerts.ts +0 -29
- package/exporter/utils/api.ts +0 -243
- package/exporter/utils/cache.ts +0 -142
- package/exporter/utils/core-utils.ts +0 -458
- package/exporter/utils/create-build-data.ts +0 -17
- package/exporter/utils/domains.ts +0 -39
- package/exporter/utils/folders.ts +0 -320
- package/exporter/utils/health-checks.ts +0 -64
- package/exporter/utils/loggin.ts +0 -184
- package/exporter/utils/render.ts +0 -71
- package/exporter/utils/searches.ts +0 -156
- package/exporter/utils/sites.ts +0 -312
- package/exporter/utils/store.ts +0 -314
- package/src/README.md +0 -7
- package/start-render.js +0 -7
- /package/build/{utils → core}/instance.d.ts +0 -0
- /package/build/{constants → shared}/endpoints.d.ts +0 -0
- /package/exporter/{types → shared/types}/templates.ts +0 -0
- /package/{exporter/react/Favicon → react/GriddoFavicon}/utils.ts +0 -0
package/build/services/auth.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import type { AuthHeaders } from "../types/api";
|
|
2
|
-
/**
|
|
3
|
-
* Service for authentication in the Griddo Private API
|
|
4
|
-
*/
|
|
1
|
+
import type { AuthHeaders } from "../shared/types/api";
|
|
5
2
|
declare class AuthService {
|
|
6
3
|
headers: AuthHeaders | undefined;
|
|
7
|
-
login(): Promise<AuthHeaders
|
|
4
|
+
login(): Promise<AuthHeaders>;
|
|
8
5
|
}
|
|
9
6
|
declare const authService: AuthService;
|
|
10
7
|
export { authService as AuthService };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { BuildMetaData } from "../shared/types/api";
|
|
2
|
+
import type { RenderInfo } from "../shared/types/global";
|
|
3
|
+
import type { GriddoPageObject } from "../shared/types/pages";
|
|
4
|
+
import type { Site } from "../shared/types/sites";
|
|
5
|
+
/**
|
|
6
|
+
* Get the build metadata from the Store.
|
|
7
|
+
*/
|
|
8
|
+
declare function getBuildMetadata(domain: string): Promise<BuildMetaData>;
|
|
9
|
+
/**
|
|
10
|
+
* Write render info into a file.
|
|
11
|
+
* @param renderInfo - Data that will be saved related to the render process.
|
|
12
|
+
*/
|
|
13
|
+
declare function saveRenderInfoInStore(renderInfo: RenderInfo, domain: string): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Return an array of paths only from `.json` files (no dirs) in the `basePath` dir based in the file name.
|
|
16
|
+
* @param basePath - Absolute path of the dir from which files will be read.
|
|
17
|
+
* @returns A number[] of pages ids in `basePath` dir.
|
|
18
|
+
*/
|
|
19
|
+
declare function getPageInStoreDir(basePath: string): Promise<string[]>;
|
|
20
|
+
/**
|
|
21
|
+
* Save the pages into the file system.
|
|
22
|
+
* @param pages - An array of Griddo page objects to be saved.
|
|
23
|
+
*/
|
|
24
|
+
declare function saveSitePagesInStore(siteDirName: string, pages: GriddoPageObject[]): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Removes JSON files from the specified site directory based on the provided arrays of page numbers.
|
|
27
|
+
* For each number in the arrays, a corresponding file with the format `<number>.json` is removed if it exists.
|
|
28
|
+
*
|
|
29
|
+
* WARNING: This function may end up handling large arrays, so don't be tempted
|
|
30
|
+
* to refactor it to use something cool like the spread operator and make a
|
|
31
|
+
* single array, etc..
|
|
32
|
+
*
|
|
33
|
+
* @param siteDirName - The name of the site directory containing the pages.
|
|
34
|
+
* @param pageIdsArray - A two-dimensional array where each inner array contains numbers representing page files to be removed.
|
|
35
|
+
*/
|
|
36
|
+
declare function removeSitePagesFromStore(siteDirName: string, pageIdsArray: number[][]): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Removes sites that exist in the store that should no longer be there because
|
|
39
|
+
* the domain has been changed. This is necessary because those sites will not
|
|
40
|
+
* be marked as `sitesToUnpublish` so they must be removed manually.
|
|
41
|
+
*/
|
|
42
|
+
declare function removeOrphanSites(sitesToPublish: Site[], domain: string): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Get pages that are not active anymore but are in the store.
|
|
45
|
+
*/
|
|
46
|
+
declare function getZombiePagesInStore(siteDir: string, activePages: number[]): Promise<number[]>;
|
|
47
|
+
declare function writeUniqueFileSync(filePath: string, content: string): Promise<void>;
|
|
48
|
+
export { getBuildMetadata, getPageInStoreDir, getZombiePagesInStore, removeOrphanSites, removeSitePagesFromStore, saveRenderInfoInStore, saveSitePagesInStore, writeUniqueFileSync, };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { RenderModeTuple } from "../shared/types/render";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a sentinel file with the current date and time.
|
|
4
|
+
* This file is used to track later if node_modules/@griddo/cx was cleaned by a
|
|
5
|
+
* npm install coming from a deploy.
|
|
6
|
+
*/
|
|
7
|
+
declare function markRenderAsStarted(options: {
|
|
8
|
+
domain: string;
|
|
9
|
+
basePath: string;
|
|
10
|
+
}): Promise<void>;
|
|
11
|
+
declare function markRenderAsCompleted(domain: string): Promise<void>;
|
|
12
|
+
declare function assertRenderIsValid(domain: string): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Determines the appropriate render mode for a given domain based on its current state,
|
|
15
|
+
* previous render errors, deployment status, and whether rendering is required.
|
|
16
|
+
*
|
|
17
|
+
* @param options - An object containing:
|
|
18
|
+
* - `domain`: The domain name to resolve the render mode for.
|
|
19
|
+
* - `shouldBeRendered`: A boolean indicating if the domain should be rendered.
|
|
20
|
+
* @returns An object with:
|
|
21
|
+
* - `renderMode`: The resolved render mode (`FROM_SCRATCH`, `INCREMENTAL`, or `IDLE`).
|
|
22
|
+
* - `reason`: A string describing the reason for the chosen render mode.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* The function checks for missing exports, previous render errors, new deployments,
|
|
26
|
+
* and whether rendering is necessary to decide the render mode.
|
|
27
|
+
*
|
|
28
|
+
* @todo
|
|
29
|
+
* Improve ifs and reason concatenations...
|
|
30
|
+
*/
|
|
31
|
+
declare function resolveDomainRenderMode(options: {
|
|
32
|
+
domain: string;
|
|
33
|
+
shouldBeRendered: boolean;
|
|
34
|
+
}): Promise<{
|
|
35
|
+
renderMode: "FROM_SCRATCH";
|
|
36
|
+
reason: string;
|
|
37
|
+
} | {
|
|
38
|
+
renderMode: "IDLE";
|
|
39
|
+
reason: string;
|
|
40
|
+
} | {
|
|
41
|
+
renderMode: "INCREMENTAL";
|
|
42
|
+
reason: string;
|
|
43
|
+
}>;
|
|
44
|
+
declare function updateCommitFile(options: {
|
|
45
|
+
basePath: string;
|
|
46
|
+
}): Promise<void>;
|
|
47
|
+
declare function getRenderModeFromDB(domain: string): Promise<RenderModeTuple>;
|
|
48
|
+
declare function getRenderPathsHydratedWithDomainFromDB(options?: {
|
|
49
|
+
domain?: string;
|
|
50
|
+
dbFilePath?: string;
|
|
51
|
+
}): Promise<{
|
|
52
|
+
__root: string;
|
|
53
|
+
__cache: string;
|
|
54
|
+
__components: string;
|
|
55
|
+
__cx: string;
|
|
56
|
+
__sites: string;
|
|
57
|
+
__exports: string;
|
|
58
|
+
__exports_backup: string;
|
|
59
|
+
__ssg: string;
|
|
60
|
+
__exports_dist: string;
|
|
61
|
+
}>;
|
|
62
|
+
declare function getRenderMetadataFromDB(): Promise<{
|
|
63
|
+
griddoVersion: string;
|
|
64
|
+
buildReportFileName: string;
|
|
65
|
+
}>;
|
|
66
|
+
/**
|
|
67
|
+
* Save a file with the end of build process to use as `end-render` signal.
|
|
68
|
+
*/
|
|
69
|
+
declare function generateBuildReport(domain: string): Promise<void>;
|
|
70
|
+
export { assertRenderIsValid, generateBuildReport, getRenderMetadataFromDB, getRenderModeFromDB, getRenderPathsHydratedWithDomainFromDB, markRenderAsCompleted, markRenderAsStarted, resolveDomainRenderMode, updateCommitFile, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const GRIDDO_API_URL: string | undefined;
|
|
2
|
+
declare const GRIDDO_PUBLIC_API_URL: string | undefined;
|
|
3
|
+
declare const GRIDDO_BOT_USER: string | undefined;
|
|
4
|
+
declare const GRIDDO_BOT_PASSWORD: string | undefined;
|
|
5
|
+
declare const GRIDDO_API_CONCURRENCY_COUNT: number;
|
|
6
|
+
declare const GRIDDO_SKIP_BUILD_CHECKS: boolean;
|
|
7
|
+
declare const GRIDDO_RENDER_BY_DOMAINS: boolean;
|
|
8
|
+
declare const GRIDDO_BUILD_LOGS: boolean;
|
|
9
|
+
declare const GRIDDO_BUILD_LOGS_TO_FILE: boolean;
|
|
10
|
+
declare const GRIDDO_BUILD_LOGS_BUFFER_SIZE: number;
|
|
11
|
+
declare const GRIDDO_SSG_VERBOSE_LOGS: boolean;
|
|
12
|
+
declare const GRIDDO_SEARCH_FEATURE: boolean;
|
|
13
|
+
declare const GRIDDO_ASSET_PREFIX: string | undefined;
|
|
14
|
+
declare const GRIDDO_REACT_APP_INSTANCE: string | undefined;
|
|
15
|
+
declare const GRIDDO_AI_EMBEDDINGS: boolean;
|
|
16
|
+
declare const GRIDDO_VERBOSE_LOGS: boolean;
|
|
17
|
+
declare const GRIDDO_USE_DIST_BACKUP: boolean;
|
|
18
|
+
declare const GRIDDO_SSG_BUNDLE_ANALYZER: boolean;
|
|
19
|
+
export { GRIDDO_AI_EMBEDDINGS, GRIDDO_API_CONCURRENCY_COUNT, GRIDDO_API_URL, GRIDDO_ASSET_PREFIX, GRIDDO_BOT_PASSWORD, GRIDDO_BOT_USER, GRIDDO_BUILD_LOGS, GRIDDO_BUILD_LOGS_BUFFER_SIZE, GRIDDO_BUILD_LOGS_TO_FILE, GRIDDO_PUBLIC_API_URL, GRIDDO_REACT_APP_INSTANCE, GRIDDO_RENDER_BY_DOMAINS, GRIDDO_SEARCH_FEATURE, GRIDDO_SKIP_BUILD_CHECKS, GRIDDO_SSG_BUNDLE_ANALYZER, GRIDDO_SSG_VERBOSE_LOGS, GRIDDO_USE_DIST_BACKUP, GRIDDO_VERBOSE_LOGS, };
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* file by completing the `error` (ErrosType) and `message` (string) properties
|
|
7
7
|
* obligatorily.
|
|
8
8
|
*/
|
|
9
|
-
import type { ErrorData } from ".";
|
|
10
9
|
import type { SpawnSyncReturns } from "node:child_process";
|
|
11
|
-
type
|
|
10
|
+
import type { ErrorData } from "../core/errors";
|
|
11
|
+
type ErrorsType = "ArtifactError" | "BundlesInconsistencyError" | "CheckHealthError" | "ErrorInSSGBuildProcess" | "LifecycleExecutionError" | "LoginError" | "NoDomainsFoundError" | "NoJSConfigFileFound" | "ReadFromStoreError" | "ReferenceFieldSourcesNotFoundError" | "RenderUUIDError" | "UploadSearchError" | "WriteToStoreError";
|
|
12
12
|
declare const ArtifactError: ErrorData;
|
|
13
13
|
declare const ErrorInSSGBuildProcess: (command: SpawnSyncReturns<string>) => ErrorData;
|
|
14
14
|
declare const LifecycleExecutionError: (attempts: number, name: string) => ErrorData;
|
|
@@ -19,4 +19,6 @@ declare const ReadFromStoreError: ErrorData;
|
|
|
19
19
|
declare const ReferenceFieldSourcesNotFoundError: ErrorData;
|
|
20
20
|
declare const RenderUUIDError: ErrorData;
|
|
21
21
|
declare const WriteToStoreError: ErrorData;
|
|
22
|
-
|
|
22
|
+
declare const UploadSearchError: ErrorData;
|
|
23
|
+
declare const CheckHealthError: ErrorData;
|
|
24
|
+
export { ArtifactError, CheckHealthError, ErrorInSSGBuildProcess, LifecycleExecutionError, LoginError, NoDomainsFoundError, NoJSConfigFileFound, ReadFromStoreError, ReferenceFieldSourcesNotFoundError, RenderUUIDError, UploadSearchError, WriteToStoreError, type ErrorsType, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const CODES: {
|
|
2
|
+
readonly black: "\u001B[30m";
|
|
3
|
+
readonly red: "\u001B[31m";
|
|
4
|
+
readonly green: "\u001B[32m";
|
|
5
|
+
readonly yellow: "\u001B[33m";
|
|
6
|
+
readonly blue: "\u001B[34m";
|
|
7
|
+
readonly magenta: "\u001B[35m";
|
|
8
|
+
readonly cyan: "\u001B[36m";
|
|
9
|
+
readonly white: "\u001B[37m";
|
|
10
|
+
readonly gray: "\u001B[90m";
|
|
11
|
+
readonly bold: "\u001B[1m";
|
|
12
|
+
readonly dim: "\u001B[2m";
|
|
13
|
+
};
|
|
14
|
+
type ColorFunction = (text: string | number) => string;
|
|
15
|
+
type ColorName = keyof typeof CODES;
|
|
16
|
+
type Brush = Record<ColorName, ColorFunction>;
|
|
17
|
+
declare const brush: Brush;
|
|
18
|
+
export { brush };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Opciones para controlar el comportamiento de la búsqueda.
|
|
3
|
+
*/
|
|
4
|
+
export type Options = {
|
|
5
|
+
/**
|
|
6
|
+
El directorio desde donde empezar a buscar.
|
|
7
|
+
@default process.cwd()
|
|
8
|
+
*/
|
|
9
|
+
readonly cwd?: URL | string;
|
|
10
|
+
/**
|
|
11
|
+
El tipo de ruta a buscar.
|
|
12
|
+
@default 'file'
|
|
13
|
+
*/
|
|
14
|
+
readonly type?: "file" | "directory";
|
|
15
|
+
/**
|
|
16
|
+
Un directorio en el que la búsqueda se detiene si no se encuentran coincidencias.
|
|
17
|
+
@default El directorio raíz del sistema
|
|
18
|
+
*/
|
|
19
|
+
readonly stopAt?: URL | string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Encuentra un archivo o directorio de forma asíncrona subiendo por los directorios padre.
|
|
23
|
+
* @param name - El nombre del archivo o directorio a buscar.
|
|
24
|
+
* @param options - Opciones de búsqueda.
|
|
25
|
+
* @returns La ruta encontrada o `undefined` si no se pudo encontrar.
|
|
26
|
+
*/
|
|
27
|
+
export declare function findUp(name: string, options?: Options): Promise<string | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Encuentra un archivo o directorio de forma síncrona subiendo por los directorios padre.
|
|
30
|
+
* @param name - El nombre del archivo o directorio a buscar.
|
|
31
|
+
* @param options - Opciones de búsqueda.
|
|
32
|
+
* @returns La ruta encontrada o `undefined` si no se pudo encontrar.
|
|
33
|
+
*/
|
|
34
|
+
export declare function findUpSync(name: string, options?: Options): string | undefined;
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
+
import type { Core, Fields } from "@griddo/core";
|
|
1
2
|
import type { Domains, Robots, Settings } from "./global";
|
|
2
3
|
import type { APIPageObject } from "./pages";
|
|
3
4
|
import type { Site } from "./sites";
|
|
4
|
-
import type { Core, Fields } from "@griddo/core";
|
|
5
5
|
/** EndSiteRender Body */
|
|
6
6
|
export type EndSiteRenderBody = {
|
|
7
7
|
/** Site hashes to publish. */
|
|
8
|
-
publishHashes:
|
|
8
|
+
publishHashes: string[];
|
|
9
9
|
/** Current site hash. */
|
|
10
10
|
siteHash: string | null;
|
|
11
11
|
/** Site hashes to unpublish. */
|
|
12
|
-
unpublishHashes:
|
|
12
|
+
unpublishHashes: string[];
|
|
13
13
|
/** Page ids that publish */
|
|
14
|
-
publishPagesIds:
|
|
14
|
+
publishPagesIds: number[];
|
|
15
15
|
};
|
|
16
16
|
/** ReferenceField Body */
|
|
17
17
|
export interface ReferenceFieldBody {
|
|
18
18
|
mode?: "auto" | "manual" | "navigation";
|
|
19
19
|
order?: string;
|
|
20
|
-
sources?:
|
|
20
|
+
sources?: Fields.Source<unknown>[];
|
|
21
21
|
quantity?: number;
|
|
22
|
-
filter?:
|
|
22
|
+
filter?: unknown[];
|
|
23
23
|
fullRelations?: boolean;
|
|
24
24
|
allLanguages?: boolean;
|
|
25
|
-
fixed?:
|
|
25
|
+
fixed?: number[];
|
|
26
26
|
referenceId?: number;
|
|
27
27
|
}
|
|
28
|
+
/** Describes the props of the body object for the get page */
|
|
28
29
|
/** Describes an item in a sitemap. */
|
|
29
|
-
interface SitemapItem {
|
|
30
|
+
export interface SitemapItem {
|
|
30
31
|
/** The URL of the page. */
|
|
31
32
|
loc: string;
|
|
32
33
|
/** The date the page was last modified. */
|
|
@@ -44,7 +45,7 @@ interface URL {
|
|
|
44
45
|
home: string;
|
|
45
46
|
}
|
|
46
47
|
/** Describes the items returned by a sitemap response. */
|
|
47
|
-
export type SitemapItems = Record<string,
|
|
48
|
+
export type SitemapItems = Record<string, SitemapItem[]>;
|
|
48
49
|
/** Describes the response object returned by a Griddo ReferenceField. */
|
|
49
50
|
export type ReferenceFieldResponse = Fields.QueriedData<unknown>;
|
|
50
51
|
/** Describes the response object returned by socials from Griddo. */
|
|
@@ -70,7 +71,7 @@ export interface LanguagesResponse {
|
|
|
70
71
|
/** Total of languages */
|
|
71
72
|
totalItems: number;
|
|
72
73
|
/** Array of languages objects */
|
|
73
|
-
items:
|
|
74
|
+
items: Core.SiteLanguage[];
|
|
74
75
|
}
|
|
75
76
|
/** Describes common props for api responses. */
|
|
76
77
|
export interface APIRequest {
|
|
@@ -84,11 +85,10 @@ export interface APIRequest {
|
|
|
84
85
|
attempt?: number;
|
|
85
86
|
/**
|
|
86
87
|
* Headers for the post api fetch
|
|
87
|
-
* @shame any
|
|
88
|
-
* @todo type this correctly from axios types
|
|
89
88
|
*/
|
|
90
|
-
headers?:
|
|
89
|
+
headers?: Record<string, unknown>;
|
|
91
90
|
useApiCacheDir?: boolean;
|
|
91
|
+
logToFile?: boolean;
|
|
92
92
|
}
|
|
93
93
|
/** Type with the POST request properties. */
|
|
94
94
|
export interface PostAPI extends Omit<APIRequest, "headers"> {
|
|
@@ -103,11 +103,11 @@ export type PutAPI = APIRequest;
|
|
|
103
103
|
/** Response type for the start render API call */
|
|
104
104
|
export interface StartPageRenderResponse {
|
|
105
105
|
/** Site hashes to publish */
|
|
106
|
-
publishIds:
|
|
106
|
+
publishIds: number[];
|
|
107
107
|
/** Current site hash */
|
|
108
108
|
siteHash: string | null;
|
|
109
109
|
/** Site hashes to unpublish */
|
|
110
|
-
unpublishHashes:
|
|
110
|
+
unpublishHashes: string[];
|
|
111
111
|
}
|
|
112
112
|
/** Response type for the end render API call */
|
|
113
113
|
export interface EndPageInfoResponse {
|
|
@@ -119,7 +119,7 @@ export interface EndPageInfoResponse {
|
|
|
119
119
|
/** Response type for the embedding answer in the ai search feature */
|
|
120
120
|
export type PostEmbeddingsResponse = string;
|
|
121
121
|
/** Describes a response type for GET all sites */
|
|
122
|
-
export type AllSitesReponse =
|
|
122
|
+
export type AllSitesReponse = Site[];
|
|
123
123
|
/** Describes a response type for GET one page */
|
|
124
124
|
export type PageResponse = APIPageObject;
|
|
125
125
|
/** All types for the API response used in the api functions get, put, post */
|
|
@@ -129,8 +129,8 @@ export interface ShowApiErrorOptions {
|
|
|
129
129
|
}
|
|
130
130
|
export interface BuildMetaData {
|
|
131
131
|
buildProcessData: Record<string, EndSiteRenderBody>;
|
|
132
|
-
createdPages:
|
|
133
|
-
sitesToPublish:
|
|
132
|
+
createdPages: number[];
|
|
133
|
+
sitesToPublish: Site[];
|
|
134
134
|
}
|
|
135
135
|
export interface Auth {
|
|
136
136
|
Authorization: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Core, Fields } from "@griddo/core";
|
|
1
2
|
import type { EndSiteRenderBody } from "./api";
|
|
2
3
|
import type { Site } from "./sites";
|
|
3
|
-
import type { Core, Fields } from "@griddo/core";
|
|
4
4
|
interface Settings {
|
|
5
5
|
apiVersion?: string;
|
|
6
6
|
avoidCanonicalsOnSitemaps?: boolean;
|
|
@@ -49,36 +49,35 @@ type Domain = {
|
|
|
49
49
|
slug: string;
|
|
50
50
|
url: string;
|
|
51
51
|
};
|
|
52
|
-
type Domains =
|
|
52
|
+
type Domains = Domain[];
|
|
53
53
|
/** Describes the type of build process data object. */
|
|
54
54
|
type BuildProcessData = Record<string, EndSiteRenderBody>;
|
|
55
55
|
type Robot = {
|
|
56
56
|
path: string;
|
|
57
57
|
content: string;
|
|
58
58
|
};
|
|
59
|
-
type Robots =
|
|
59
|
+
type Robots = Robot[];
|
|
60
60
|
interface RenderInfo {
|
|
61
61
|
buildProcessData: BuildProcessData;
|
|
62
|
-
createdPages:
|
|
63
|
-
sitesToPublish:
|
|
62
|
+
createdPages: number[];
|
|
63
|
+
sitesToPublish: Site[];
|
|
64
64
|
}
|
|
65
|
-
type
|
|
66
|
-
type LifeCyclesNames = "Init" | "Prepare" | "Restore" | "Data" | "SSG" | "Relocation" | "Meta" | "
|
|
67
|
-
type PlaceholderPath = "__exports" | "__cache" | "__cx" | "__ssg" | "__components" | "__root" | "__exports_dist" | "
|
|
65
|
+
type LifeCycleAction = (...args: unknown[]) => void | Promise<void>;
|
|
66
|
+
type LifeCyclesNames = "Init" | "Prepare" | "Restore" | "Data" | "SSG" | "Relocation" | "Meta" | "Sync" | "Clean" | "Close" | "HealthCheck" | "Close";
|
|
67
|
+
type PlaceholderPath = "__exports" | "__cache" | "__cx" | "__ssg" | "__components" | "__root" | "__exports_dist" | "__sites";
|
|
68
68
|
interface CXConfig {
|
|
69
|
-
proDomain: string;
|
|
70
69
|
griddoVersion: string;
|
|
71
70
|
buildReportFileName: string;
|
|
72
|
-
paths: (domain?: string) => Record<PlaceholderPath, string>;
|
|
73
71
|
}
|
|
74
72
|
interface AIEmbeddingsResponse {
|
|
75
73
|
code: number;
|
|
76
74
|
message: string;
|
|
77
75
|
}
|
|
78
|
-
interface
|
|
79
|
-
disposables:
|
|
80
|
-
cacheables:
|
|
81
|
-
initials:
|
|
82
|
-
archivables:
|
|
76
|
+
interface RenderArtifacts {
|
|
77
|
+
disposables: string[];
|
|
78
|
+
cacheables: string[];
|
|
79
|
+
initials: string[];
|
|
80
|
+
archivables: string[];
|
|
81
|
+
restaurable: string[];
|
|
83
82
|
}
|
|
84
|
-
export type { AIEmbeddingsResponse,
|
|
83
|
+
export type { AIEmbeddingsResponse, RenderArtifacts, BuildProcessData, CXConfig, Domain, Domains, FetchDataProps, LifeCyclesNames, Petition, PlaceholderPath, PostSearchInfoProps, RenderInfo, Robot, Robots, Settings, LifeCycleAction, };
|
|
@@ -4,9 +4,9 @@ export type Header = {
|
|
|
4
4
|
id: number;
|
|
5
5
|
isDefault: boolean;
|
|
6
6
|
language: number;
|
|
7
|
-
navigationLanguages:
|
|
7
|
+
navigationLanguages: {
|
|
8
8
|
navigationId: number;
|
|
9
|
-
}
|
|
9
|
+
}[];
|
|
10
10
|
setAsDefault: boolean;
|
|
11
11
|
theme: null | string;
|
|
12
12
|
title: string;
|
|
@@ -18,11 +18,11 @@ export type Footer = {
|
|
|
18
18
|
id: number;
|
|
19
19
|
isDefault: boolean;
|
|
20
20
|
language: number;
|
|
21
|
-
navigationLanguages:
|
|
21
|
+
navigationLanguages: {
|
|
22
22
|
navigationId: number;
|
|
23
|
-
}
|
|
23
|
+
}[];
|
|
24
24
|
setAsDefault: boolean;
|
|
25
25
|
theme: null | string;
|
|
26
26
|
title: string;
|
|
27
|
-
type: "
|
|
27
|
+
type: "footer";
|
|
28
28
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { Core, Fields } from "@griddo/core";
|
|
1
2
|
import type { SocialsResponse } from "./api";
|
|
2
3
|
import type { Settings } from "./global";
|
|
3
4
|
import type { Site } from "./sites";
|
|
4
|
-
import type { Core, Fields } from "@griddo/core";
|
|
5
5
|
export type APIPageObject = Core.Page & {
|
|
6
6
|
id: number;
|
|
7
7
|
} & {
|
|
@@ -29,7 +29,7 @@ export type GriddoSinglePage = Core.Page & {
|
|
|
29
29
|
};
|
|
30
30
|
export type GriddoListPage = Core.Page & {
|
|
31
31
|
page: APIPageObject;
|
|
32
|
-
pages:
|
|
32
|
+
pages: Fields.QueriedDataItem[][];
|
|
33
33
|
isRoot?: boolean;
|
|
34
34
|
defaultLang?: Core.SiteLanguage;
|
|
35
35
|
template: {
|
|
@@ -39,7 +39,7 @@ export type GriddoListPage = Core.Page & {
|
|
|
39
39
|
activeSectionSlug: string;
|
|
40
40
|
activeSectionBase: string;
|
|
41
41
|
};
|
|
42
|
-
totalQueriedItems:
|
|
42
|
+
totalQueriedItems: Fields.QueriedDataItem[];
|
|
43
43
|
};
|
|
44
44
|
export type GriddoMultiPage = Core.Page & {
|
|
45
45
|
header: number | null;
|
|
@@ -54,7 +54,7 @@ export interface AdditionalInfo {
|
|
|
54
54
|
griddoVersion: string;
|
|
55
55
|
instance?: string;
|
|
56
56
|
publicBaseUrl: string;
|
|
57
|
-
siteLangs:
|
|
57
|
+
siteLangs: Core.SiteLanguage[];
|
|
58
58
|
siteMetadata: Site["siteMetadata"];
|
|
59
59
|
siteSlug: string;
|
|
60
60
|
socials: SocialsResponse;
|
|
@@ -71,13 +71,13 @@ export interface PageAdditionalInfo extends AdditionalInfo {
|
|
|
71
71
|
export type MultiPageElement = {
|
|
72
72
|
component: string;
|
|
73
73
|
title: string | Required<Fields.Heading>;
|
|
74
|
-
elements:
|
|
75
|
-
componentModules:
|
|
74
|
+
elements: Record<string, unknown>[];
|
|
75
|
+
componentModules: Record<string, unknown>[];
|
|
76
76
|
sectionSlug: string;
|
|
77
77
|
metaTitle: string;
|
|
78
78
|
metaDescription: string;
|
|
79
79
|
};
|
|
80
|
-
export type MultiPageElements =
|
|
80
|
+
export type MultiPageElements = MultiPageElement[];
|
|
81
81
|
/**
|
|
82
82
|
* Gatsby page object format.
|
|
83
83
|
*/
|
|
@@ -119,7 +119,7 @@ export type GriddoPageObject = {
|
|
|
119
119
|
siteMetadata: Site["siteMetadata"];
|
|
120
120
|
theme: string;
|
|
121
121
|
title: string;
|
|
122
|
-
siteLangs:
|
|
122
|
+
siteLangs: Core.SiteLanguage[];
|
|
123
123
|
siteOptions: AdditionalInfo["siteOptions"];
|
|
124
124
|
siteScript: string;
|
|
125
125
|
socials: SocialsResponse;
|
|
@@ -130,7 +130,7 @@ export interface Dimensions {
|
|
|
130
130
|
values: Record<string, string> | null;
|
|
131
131
|
contentSelect?: "group" | "individual" | null;
|
|
132
132
|
groupSelect?: string;
|
|
133
|
-
dimensionsSelect?:
|
|
133
|
+
dimensionsSelect?: string[];
|
|
134
134
|
}
|
|
135
135
|
export interface GatsbyPageTemplateProps extends Omit<GriddoPageObject, "context"> {
|
|
136
136
|
pageContext: GriddoPageObject["context"] & {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { RenderInfo } from "./global";
|
|
2
|
+
declare const RENDER_MODE: {
|
|
3
|
+
readonly FROM_SCRATCH: "FROM_SCRATCH";
|
|
4
|
+
readonly INCREMENTAL: "INCREMENTAL";
|
|
5
|
+
readonly IDLE: "IDLE";
|
|
6
|
+
readonly ERROR: "ERROR";
|
|
7
|
+
readonly COMPLETED: "COMPLETED";
|
|
8
|
+
};
|
|
9
|
+
type RenderMode = (typeof RENDER_MODE)[keyof typeof RENDER_MODE];
|
|
10
|
+
export interface RenderModeTuple {
|
|
11
|
+
renderMode: RenderMode;
|
|
12
|
+
reason?: string;
|
|
13
|
+
}
|
|
14
|
+
type DomainLike = string;
|
|
15
|
+
type RenderDB = {
|
|
16
|
+
griddoVersion: string;
|
|
17
|
+
buildReportFileName: string;
|
|
18
|
+
sortedDomains: DomainLike[];
|
|
19
|
+
needsRollbackOnError: boolean;
|
|
20
|
+
currentRenderingDomain: string | null;
|
|
21
|
+
paths: {
|
|
22
|
+
root: string;
|
|
23
|
+
cx: string;
|
|
24
|
+
ssg: string;
|
|
25
|
+
cxCache: string;
|
|
26
|
+
components: string;
|
|
27
|
+
exportsDir: string;
|
|
28
|
+
exportsDirBackup: string;
|
|
29
|
+
};
|
|
30
|
+
domains: {
|
|
31
|
+
[key: DomainLike]: {
|
|
32
|
+
renderMode?: RenderMode;
|
|
33
|
+
shouldBeRendered?: boolean;
|
|
34
|
+
isRendering?: boolean;
|
|
35
|
+
renderInfo?: RenderInfo;
|
|
36
|
+
renderModeReason?: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
interface Report {
|
|
41
|
+
authControl: {
|
|
42
|
+
Authorization: string;
|
|
43
|
+
"Cache-Control": string;
|
|
44
|
+
lang?: string | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
sites: {
|
|
47
|
+
siteId: number;
|
|
48
|
+
publishHashes: string[];
|
|
49
|
+
siteHash: string | null;
|
|
50
|
+
unpublishHashes: string[];
|
|
51
|
+
publishPagesIds: number[];
|
|
52
|
+
}[];
|
|
53
|
+
}
|
|
54
|
+
export { RENDER_MODE, type RenderDB, type RenderMode, type Report };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Core } from "@griddo/core";
|
|
1
2
|
import type { SocialsResponse } from "./api";
|
|
2
3
|
import type { Footer, Header } from "./navigation";
|
|
3
|
-
import type { Core } from "@griddo/core";
|
|
4
4
|
/**
|
|
5
5
|
* Describes a Griddo site object from API.
|
|
6
6
|
* This takes some type props from Core.Site.
|
|
@@ -8,12 +8,12 @@ import type { Core } from "@griddo/core";
|
|
|
8
8
|
export interface Site extends Required<Pick<Core.Site, "bigAvatar" | "favicon" | "home" | "id" | "isPublished" | "timezone" | "thumbnail" | "theme" | "socials" | "slug" | "smallAvatar" | "modified" | "name" | "siteMetadata">> {
|
|
9
9
|
author: string;
|
|
10
10
|
deleted: number;
|
|
11
|
-
domains:
|
|
12
|
-
footers:
|
|
11
|
+
domains: Record<string, string>[];
|
|
12
|
+
footers: Footer[];
|
|
13
13
|
hash: string | null;
|
|
14
|
-
headers:
|
|
15
|
-
languages:
|
|
16
|
-
languageSites:
|
|
14
|
+
headers: Header[];
|
|
15
|
+
languages: Core.SiteLanguage[];
|
|
16
|
+
languageSites: number[];
|
|
17
17
|
navigationModules: {
|
|
18
18
|
header?: string;
|
|
19
19
|
footer?: string;
|
|
@@ -24,9 +24,8 @@ export interface Site extends Required<Pick<Core.Site, "bigAvatar" | "favicon" |
|
|
|
24
24
|
* `select/site/33/pages` -> [{id,label}, {id,label}, {id,label}] // array of published, pending, unpublished... page objects
|
|
25
25
|
* `select/site/33/pages?liveStatus=active` -> // array of publishedpage objects
|
|
26
26
|
*/
|
|
27
|
-
pages:
|
|
28
|
-
onlinePages:
|
|
29
|
-
changedPages: Array<number>;
|
|
27
|
+
pages: number[];
|
|
28
|
+
onlinePages: number[];
|
|
30
29
|
published: string;
|
|
31
30
|
rendering: boolean;
|
|
32
31
|
renderingHours: number;
|
|
@@ -35,22 +34,22 @@ export interface Site extends Required<Pick<Core.Site, "bigAvatar" | "favicon" |
|
|
|
35
34
|
smallAvatar: string;
|
|
36
35
|
updated: boolean;
|
|
37
36
|
pagesStatus: {
|
|
38
|
-
active:
|
|
39
|
-
uploadPending:
|
|
40
|
-
offlinePending:
|
|
41
|
-
offline:
|
|
42
|
-
deleted:
|
|
37
|
+
active: number[];
|
|
38
|
+
uploadPending: number[];
|
|
39
|
+
offlinePending: number[];
|
|
40
|
+
offline: number[];
|
|
41
|
+
deleted: number[];
|
|
43
42
|
};
|
|
44
43
|
}
|
|
45
44
|
export interface SiteData {
|
|
46
45
|
siteInfo: Site;
|
|
47
|
-
validPagesIds:
|
|
46
|
+
validPagesIds: number[];
|
|
48
47
|
siteHash: string | null;
|
|
49
|
-
unpublishHashes:
|
|
50
|
-
siteLangs:
|
|
48
|
+
unpublishHashes: string[];
|
|
49
|
+
siteLangs: Core.SiteLanguage[];
|
|
51
50
|
defaultLang: Core.SiteLanguage | undefined;
|
|
52
|
-
headers:
|
|
53
|
-
footers:
|
|
51
|
+
headers: Header[];
|
|
52
|
+
footers: Footer[];
|
|
54
53
|
socials: SocialsResponse;
|
|
55
54
|
}
|
|
56
55
|
export type SiteHash = string | null;
|