@owlmeans/server-wl 0.1.18-rc.14 → 0.1.18-rc.15

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 CHANGED
@@ -1,10 +1,10 @@
1
1
  # @owlmeans/server-wl
2
2
 
3
- Server-side whitelabeling — provides entity-specific branding and configuration via backend modules.
3
+ Server-side whitelabeling — provides entity-specific branding and configuration via backend entrypoints.
4
4
 
5
5
  ## Overview
6
6
 
7
- - Exports `modules` array: pre-built server modules that serve WL (whitelabel) configuration to clients
7
+ - Exports `entrypoints` array: pre-built server entrypoints that serve WL (whitelabel) configuration to clients
8
8
  - Provides `provide` action — the handler for the WL configuration endpoint
9
9
  - Integrates with `@owlmeans/wled` for whitelabel data definitions
10
10
  - Apps add WL DNS service from `@owlmeans/server-wl-dns` for domain-based entity resolution
@@ -17,30 +17,30 @@ bun add @owlmeans/server-wl
17
17
 
18
18
  ## Usage
19
19
 
20
- Register WL modules in a backend service:
20
+ Register WL entrypoints in a backend service:
21
21
 
22
22
  ```typescript
23
- import { modules as wlModules } from '@owlmeans/server-wl'
24
- import { main, modules } from '@owlmeans/server-app'
23
+ import { entrypoints as wlEntrypoints } from '@owlmeans/server-wl'
24
+ import { main, entrypoints } from '@owlmeans/server-app'
25
25
 
26
- await main(context, [...modules, ...wlModules, ...appModules])
26
+ await main(context, [...entrypoints, ...wlEntrypoints, ...appEntrypoints])
27
27
  ```
28
28
 
29
29
  With DNS-based entity resolution (from viable):
30
30
 
31
31
  ```typescript
32
32
  import { appendWlDnsService } from '@owlmeans/server-wl-dns'
33
- import { wlDnsModules } from '@owlmeans/server-wl-dns'
33
+ import { wlDnsEntrypoints } from '@owlmeans/server-wl-dns'
34
34
 
35
35
  appendWlDnsService(context)
36
- await main(context, [...modules, ...wlDnsModules, ...appModules])
36
+ await main(context, [...entrypoints, ...wlDnsEntrypoints, ...appEntrypoints])
37
37
  ```
38
38
 
39
39
  ## API
40
40
 
41
- ### `modules`
41
+ ### `entrypoints`
42
42
 
43
- Array of `ServerModule` instances providing the WL configuration API endpoint.
43
+ Array of `ServerEntrypoint` instances providing the WL configuration API endpoint.
44
44
 
45
45
  ### `WlConfig` / `WlRecord` (types)
46
46
 
@@ -49,7 +49,7 @@ Whitelabel configuration types defining branding, theme, and entity-specific set
49
49
  ## Related Packages
50
50
 
51
51
  - [`@owlmeans/client-wl`](../client-wl) — client-side WL service that fetches from this server
52
- - [`@owlmeans/server-app`](../server-app) — server bootstrap that includes these modules
52
+ - [`@owlmeans/server-app`](../server-app) — server bootstrap that includes these entrypoints
53
53
 
54
54
  <!-- owlmeans:agent-guidance:start -->
55
55
  ## Agent guidance
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/server-wl",
4
- "version": "0.1.18-rc.14",
5
- "generatedAt": "2026-09-01T12:04:42.748Z",
4
+ "version": "0.1.18-rc.15",
5
+ "generatedAt": "2026-09-01T16:28:56.994Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/server-wl
9
9
 
10
10
  **Layer:** Server
11
- **Install:** `"@owlmeans/server-wl": "^0.1.18-rc.14"` in `dependencies`
11
+ **Install:** `"@owlmeans/server-wl": "^0.1.18-rc.15"` in `dependencies`
12
12
 
13
13
  ## Key Exports
14
14
 
@@ -0,0 +1,3 @@
1
+ import type { ServerEntrypoint } from '@owlmeans/server-entrypoint';
2
+ export declare const entrypoints: ServerEntrypoint<unknown>[];
3
+ //# sourceMappingURL=entrypoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAMnE,eAAO,MAAM,WAAW,EAAoB,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { elevate } from '@owlmeans/server-entrypoint';
2
+ import { WL_PROVIDE, entrypoints as wlEntrypoints } from '@owlmeans/wled';
3
+ import * as actions from './actions/index.js';
4
+ elevate(wlEntrypoints, WL_PROVIDE, actions.provide);
5
+ export const entrypoints = wlEntrypoints;
6
+ //# sourceMappingURL=entrypoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAErD,OAAO,EAAE,UAAU,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACzE,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAE7C,OAAO,CAAC,aAAa,EAAE,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAG,aAA4C,CAAA"}
package/build/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export type * from './types.js';
2
- export * from './modules.js';
2
+ export * from './entrypoints.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,mBAAmB,YAAY,CAAA;AAC/B,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,mBAAmB,YAAY,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
package/build/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from './modules.js';
1
+ export * from './entrypoints.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,kBAAkB,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@owlmeans/server-wl",
3
3
  "type": "module",
4
- "version": "0.1.18-rc.14",
4
+ "version": "0.1.18-rc.15",
5
5
  "license": "MIT",
6
6
  "scripts": {
7
7
  "build": "tsc -b",
@@ -21,11 +21,11 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@owlmeans/context": "^0.1.18-rc.6",
25
- "@owlmeans/server-api": "^0.1.18-rc.13",
26
- "@owlmeans/server-context": "^0.1.18-rc.8",
27
- "@owlmeans/server-entrypoint": "^0.1.18-rc.8",
28
- "@owlmeans/wled": "^0.1.18-rc.8"
24
+ "@owlmeans/context": "^0.1.18-rc.7",
25
+ "@owlmeans/server-api": "^0.1.18-rc.15",
26
+ "@owlmeans/server-context": "^0.1.18-rc.10",
27
+ "@owlmeans/server-entrypoint": "^0.1.18-rc.9",
28
+ "@owlmeans/wled": "^0.1.18-rc.9"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@owlmeans/dep-config": "workspace:*",
@@ -0,0 +1,9 @@
1
+
2
+ import { elevate } from '@owlmeans/server-entrypoint'
3
+ import type { ServerEntrypoint } from '@owlmeans/server-entrypoint'
4
+ import { WL_PROVIDE, entrypoints as wlEntrypoints } from '@owlmeans/wled'
5
+ import * as actions from './actions/index.js'
6
+
7
+ elevate(wlEntrypoints, WL_PROVIDE, actions.provide)
8
+
9
+ export const entrypoints = wlEntrypoints as ServerEntrypoint<unknown>[]
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
1
 
2
2
  export type * from './types.js'
3
- export * from './modules.js'
3
+ export * from './entrypoints.js'
@@ -1,3 +0,0 @@
1
- import type { ServerEntrypoint } from '@owlmeans/server-entrypoint';
2
- export declare const modules: ServerEntrypoint<unknown>[];
3
- //# sourceMappingURL=modules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAMnE,eAAO,MAAM,OAAO,EAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAA"}
package/build/modules.js DELETED
@@ -1,6 +0,0 @@
1
- import { elevate } from '@owlmeans/server-entrypoint';
2
- import { WL_PROVIDE, modules as wlModules } from '@owlmeans/wled';
3
- import * as actions from './actions/index.js';
4
- elevate(wlModules, WL_PROVIDE, actions.provide);
5
- export const modules = wlModules;
6
- //# sourceMappingURL=modules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.js","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAErD,OAAO,EAAE,UAAU,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAE7C,OAAO,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;AAE/C,MAAM,CAAC,MAAM,OAAO,GAAG,SAAwC,CAAA"}
package/src/modules.ts DELETED
@@ -1,9 +0,0 @@
1
-
2
- import { elevate } from '@owlmeans/server-entrypoint'
3
- import type { ServerEntrypoint } from '@owlmeans/server-entrypoint'
4
- import { WL_PROVIDE, modules as wlModules } from '@owlmeans/wled'
5
- import * as actions from './actions/index.js'
6
-
7
- elevate(wlModules, WL_PROVIDE, actions.provide)
8
-
9
- export const modules = wlModules as ServerEntrypoint<unknown>[]