@mdfriday/foundry 26.3.10 → 26.3.11

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.
@@ -55,6 +55,8 @@ export declare class User {
55
55
  expiresAt: number;
56
56
  features: import("../value-object/license").LicenseFeatures;
57
57
  activatedAt: number;
58
+ activated: boolean;
59
+ firstTime: boolean;
58
60
  } | null;
59
61
  syncConfig: import("../value-object/sync-config").SyncConfigData | null;
60
62
  };
@@ -38,6 +38,7 @@ export interface LicenseActivationResponse {
38
38
  db_name: string;
39
39
  email: string;
40
40
  db_password: string;
41
+ status: string;
41
42
  };
42
43
  }
43
44
  export interface DomainInfo {
@@ -17,14 +17,18 @@ export declare class License {
17
17
  private readonly expiresAt;
18
18
  private readonly features;
19
19
  private readonly activatedAt;
20
+ private readonly activated;
21
+ private readonly firstTime;
20
22
  private constructor();
21
- static create(key: string, plan: LicensePlan, expiresAt: number, features: LicenseFeatures, activatedAt?: number): License;
23
+ static create(key: string, plan: LicensePlan, expiresAt: number, features: LicenseFeatures, activatedAt?: number, activated?: boolean, firstTime?: boolean): License;
22
24
  static fromJSON(data: {
23
25
  key: string;
24
26
  plan: LicensePlan;
25
27
  expiresAt: number;
26
28
  features: LicenseFeatures;
27
29
  activatedAt: number;
30
+ activated?: boolean;
31
+ firstTime?: boolean;
28
32
  }): License;
29
33
  static isValidFormat(key: string): boolean;
30
34
  isExpired(): boolean;
@@ -41,6 +45,8 @@ export declare class License {
41
45
  getFormattedExpiresAt(): string;
42
46
  getFeatures(): LicenseFeatures;
43
47
  getActivatedAt(): number;
48
+ isActivated(): boolean;
49
+ isFirstTime(): boolean;
44
50
  isTrial(): boolean;
45
51
  equals(other: License): boolean;
46
52
  toJSON(): {
@@ -49,6 +55,8 @@ export declare class License {
49
55
  expiresAt: number;
50
56
  features: LicenseFeatures;
51
57
  activatedAt: number;
58
+ activated: boolean;
59
+ firstTime: boolean;
52
60
  };
53
61
  toStorageFormat(): {
54
62
  key: string;
@@ -57,6 +65,8 @@ export declare class License {
57
65
  expiresAt: number;
58
66
  features: LicenseFeatures;
59
67
  activatedAt: number;
68
+ activated: boolean;
69
+ firstTime: boolean;
60
70
  isValid: boolean;
61
71
  daysRemaining: number;
62
72
  };
@@ -4,6 +4,7 @@ export interface SyncConfigData {
4
4
  email: string;
5
5
  dbPassword: string;
6
6
  userDir: string;
7
+ status?: string;
7
8
  }
8
9
  export declare class SyncConfig {
9
10
  private readonly dbEndpoint;
@@ -11,6 +12,7 @@ export declare class SyncConfig {
11
12
  private readonly email;
12
13
  private readonly dbPassword;
13
14
  private readonly userDir;
15
+ private readonly status;
14
16
  private constructor();
15
17
  static create(data: SyncConfigData): SyncConfig;
16
18
  static fromJSON(data: SyncConfigData): SyncConfig;
@@ -19,6 +21,8 @@ export declare class SyncConfig {
19
21
  getEmail(): string;
20
22
  getDbPassword(): string;
21
23
  getUserDir(): string;
24
+ getStatus(): string;
25
+ isActive(): boolean;
22
26
  getCouchDbUri(): string;
23
27
  toJSON(): SyncConfigData;
24
28
  toObsidianLiveSyncFormat(): {
@@ -24,6 +24,7 @@ export interface ObsidianLicenseInfo {
24
24
  };
25
25
  sync?: {
26
26
  enabled: boolean;
27
+ status: string;
27
28
  dbEndpoint: string;
28
29
  dbName: string;
29
30
  email: string;
@@ -40,6 +41,10 @@ export interface ObsidianLicenseInfo {
40
41
  liveSync: boolean;
41
42
  };
42
43
  };
44
+ activation?: {
45
+ activated: boolean;
46
+ firstTime: boolean;
47
+ };
43
48
  }
44
49
  export interface ObsidianLicenseUsage {
45
50
  licenseKey: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdfriday/foundry",
3
- "version": "26.3.10",
3
+ "version": "26.3.11",
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",