@mdfriday/foundry 26.3.13 → 26.3.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.
@@ -24,6 +24,7 @@ export declare class IdentityAppService {
24
24
  tokenExpired: boolean;
25
25
  hasToken: boolean;
26
26
  hasLicense: boolean;
27
+ license: string | undefined;
27
28
  licenseValid: boolean;
28
29
  isTrial: boolean;
29
30
  licensePlan: import("@internal/domain/identity/value-object/license").LicensePlan | undefined;
@@ -32,6 +33,7 @@ export declare class IdentityAppService {
32
33
  } | {
33
34
  isAuthenticated: boolean;
34
35
  email: undefined;
36
+ license: string;
35
37
  serverUrl: string;
36
38
  tokenExpired: boolean;
37
39
  hasToken: boolean;
@@ -33,6 +33,7 @@ export declare class User {
33
33
  tokenExpired: boolean;
34
34
  hasToken: boolean;
35
35
  hasLicense: boolean;
36
+ license: string | undefined;
36
37
  licenseValid: boolean;
37
38
  isTrial: boolean;
38
39
  licensePlan: import("../value-object/license").LicensePlan | undefined;
@@ -10,7 +10,7 @@ export interface LicenseFeatures {
10
10
  customSubDomain: boolean;
11
11
  validityDays: number;
12
12
  }
13
- export type LicensePlan = 'trial' | 'basic' | 'pro' | 'enterprise' | 'lifetime';
13
+ export type LicensePlan = 'free' | 'starter' | 'enjoy' | 'creator' | 'pro' | 'enterprise';
14
14
  export declare class License {
15
15
  private readonly key;
16
16
  private readonly plan;
@@ -4,6 +4,7 @@ export interface ObsidianAuthStatus {
4
4
  email?: string;
5
5
  serverUrl: string;
6
6
  token?: string;
7
+ license?: string;
7
8
  }
8
9
  export interface ObsidianServerConfig {
9
10
  apiUrl: string;
@@ -23,4 +24,4 @@ export declare class ObsidianAuthService {
23
24
  updateConfig(workspacePath: string, config: ObsidianServerConfig): Promise<ObsidianAuthResult<ObsidianServerConfig>>;
24
25
  private getIdentityService;
25
26
  }
26
- export declare function createObsidianAuthService(httpClient: HttpClient): Promise<ObsidianAuthService>;
27
+ export declare function createObsidianAuthService(httpClient: HttpClient): ObsidianAuthService;
@@ -4,6 +4,7 @@ export interface ObsidianLicenseInfo {
4
4
  plan: string;
5
5
  isExpired: boolean;
6
6
  expires: string;
7
+ expiresAt: number;
7
8
  daysRemaining: number;
8
9
  isTrial: boolean;
9
10
  features: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdfriday/foundry",
3
- "version": "26.3.13",
3
+ "version": "26.3.15",
4
4
  "description": "The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,6 +19,12 @@
19
19
  "test": "jest",
20
20
  "test:watch": "jest --watch",
21
21
  "test:coverage": "jest --coverage",
22
+ "test:integration": "jest tests/obsidian.integration.test.ts",
23
+ "test:integration:verbose": "jest tests/obsidian.integration.test.ts --verbose",
24
+ "test:integration:project": "jest tests/obsidian-project-build.integration.test.ts",
25
+ "test:integration:project:verbose": "jest tests/obsidian-project-build.integration.test.ts --verbose",
26
+ "test:integration:domain": "jest tests/obsidian-domain.integration.test.ts",
27
+ "test:integration:domain:verbose": "jest tests/obsidian-domain.integration.test.ts --verbose",
22
28
  "lint": "eslint . --ext .ts",
23
29
  "lint:fix": "eslint . --ext .ts --fix",
24
30
  "clean": "rimraf dist",