@paroicms/public-server-lib 1.0.1 → 1.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paroicms/public-server-lib",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Common utilitaries for paroicms plugins (backend side).",
5
5
  "author": "Paroi Team",
6
6
  "repository": {
@@ -17,15 +17,16 @@
17
17
  "build:ci": "npm run typeonly && tsc --declarationMap false",
18
18
  "tsc": "tsc",
19
19
  "typeonly": "typeonly --bundle dist/types.to.json --source-dir typeonly",
20
+ "typecheck": "tsc --noEmit -p tsconfig.typecheck.json",
20
21
  "test:watch": "vitest",
21
22
  "test": "vitest run",
22
23
  "clear": "rimraf dist/*",
23
24
  "dev": "tsc --watch --preserveWatchOutput"
24
25
  },
25
26
  "dependencies": {
26
- "@paroicms/internal-anywhere-lib": "1.39.7",
27
- "@paroicms/public-anywhere-lib": "1.0.0",
28
- "@paroicms/script-lib": "1.0.0",
27
+ "@paroicms/internal-anywhere-lib": "1.39.8",
28
+ "@paroicms/public-anywhere-lib": "1.0.1",
29
+ "@paroicms/script-lib": "1.0.1",
29
30
  "@typeonly/validator": "~1.1.2",
30
31
  "arktype": "~2.2.1"
31
32
  },
@@ -9,6 +9,7 @@ import type {
9
9
  ReadFieldValue,
10
10
  ReadFieldValues,
11
11
  ResizeRule,
12
+ RoutingCluster,
12
13
  ScFieldType,
13
14
  ScSiteSchema,
14
15
  ThemeConf,
@@ -377,6 +378,7 @@ export interface SubDomainSitePackConfiguration extends SitePackConfigurationBas
377
378
  export interface RunningSiteConnector {
378
379
  loadSiteSchemaAndIds(): Promise<RiSiteSchemaAndIds>;
379
380
  getSiteInfo(): Promise<SiteInfo>;
381
+ loadRoutingClusterFromNode(input: { nodeId: string; typeName: string }): Promise<RoutingCluster>;
380
382
  createAccount(account: RiNewAccount, options?: { asContactEmail?: boolean }): Promise<string>;
381
383
  updateSiteFields(language: string, values: UpdateFieldValues): Promise<void>;
382
384
  removeSite: () => Promise<void>;