@progalaxyelabs/ngx-stonescriptphp-client 1.18.3 → 1.19.0
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/index.d.ts
CHANGED
|
@@ -104,6 +104,13 @@ interface AuthResponseMap {
|
|
|
104
104
|
}
|
|
105
105
|
declare class MyEnvironmentModel {
|
|
106
106
|
production: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Enable debug logging across the app.
|
|
109
|
+
* Set to true in development environments to see [DEBUG] logs in the browser console.
|
|
110
|
+
* Always false in production.
|
|
111
|
+
* @default false
|
|
112
|
+
*/
|
|
113
|
+
debug?: boolean;
|
|
107
114
|
/**
|
|
108
115
|
* Platform code identifier (e.g., 'progalaxy', 'hr', 'admin').
|
|
109
116
|
* Used for multi-tenant authentication.
|
|
@@ -651,6 +658,43 @@ declare class DbService {
|
|
|
651
658
|
static ɵprov: i0.ɵɵInjectableDeclaration<DbService>;
|
|
652
659
|
}
|
|
653
660
|
|
|
661
|
+
/**
|
|
662
|
+
* LogService — debug logger for ProgalaxyELabs Angular platforms.
|
|
663
|
+
*
|
|
664
|
+
* Reads environment.debug from MyEnvironmentModel (set via provideNgxStoneScriptPhpClient).
|
|
665
|
+
* All output is silenced when debug = false (production default).
|
|
666
|
+
*
|
|
667
|
+
* Usage in components / services:
|
|
668
|
+
* ```typescript
|
|
669
|
+
* constructor(private log: LogService) {}
|
|
670
|
+
*
|
|
671
|
+
* this.log.debug('MyComponent', 'event fired', { data });
|
|
672
|
+
* ```
|
|
673
|
+
*
|
|
674
|
+
* Configure in app:
|
|
675
|
+
* ```typescript
|
|
676
|
+
* // environment.ts
|
|
677
|
+
* export const environment = { production: false, debug: true, ... };
|
|
678
|
+
*
|
|
679
|
+
* // app.config.ts
|
|
680
|
+
* provideNgxStoneScriptPhpClient(environment) // LogService picks up environment.debug automatically
|
|
681
|
+
* ```
|
|
682
|
+
*/
|
|
683
|
+
declare class LogService {
|
|
684
|
+
private _debug;
|
|
685
|
+
constructor(env: MyEnvironmentModel);
|
|
686
|
+
/** Log a debug message. No-op when environment.debug = false. */
|
|
687
|
+
debug(context: string, message: string, ...args: any[]): void;
|
|
688
|
+
/** Log a warning. Always visible regardless of debug flag. */
|
|
689
|
+
warn(context: string, message: string, ...args: any[]): void;
|
|
690
|
+
/** Log an error. Always visible regardless of debug flag. */
|
|
691
|
+
error(context: string, message: string, ...args: any[]): void;
|
|
692
|
+
/** Returns true if debug mode is on (useful for conditional expensive logging). */
|
|
693
|
+
get isDebug(): boolean;
|
|
694
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LogService, [{ optional: true; }]>;
|
|
695
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LogService>;
|
|
696
|
+
}
|
|
697
|
+
|
|
654
698
|
/**
|
|
655
699
|
* CSRF Token Service
|
|
656
700
|
*
|
|
@@ -1154,5 +1198,5 @@ declare class TenantRegisterDialogComponent {
|
|
|
1154
1198
|
static ɵcmp: i0.ɵɵComponentDeclaration<TenantRegisterDialogComponent, "lib-tenant-register-dialog", never, {}, {}, never, never, true, never>;
|
|
1155
1199
|
}
|
|
1156
1200
|
|
|
1157
|
-
export { AUTH_PLUGIN, ApiConnectionService, ApiResponse, AuthPageComponent, AuthService, CsrfService, DbService, FilesService, LoginDialogComponent, MyEnvironmentModel, ProgalaxyElabsAuth, ProviderRegistryService, RegisterComponent, SigninStatusService, StoneScriptPHPAuth, TenantLoginComponent, TenantLoginDialogComponent, TenantRegisterComponent, TenantRegisterDialogComponent, TokenService, VerifyStatus, provideNgxStoneScriptPhpClient };
|
|
1201
|
+
export { AUTH_PLUGIN, ApiConnectionService, ApiResponse, AuthPageComponent, AuthService, CsrfService, DbService, FilesService, LogService, LoginDialogComponent, MyEnvironmentModel, ProgalaxyElabsAuth, ProviderRegistryService, RegisterComponent, SigninStatusService, StoneScriptPHPAuth, TenantLoginComponent, TenantLoginDialogComponent, TenantRegisterComponent, TenantRegisterDialogComponent, TokenService, VerifyStatus, provideNgxStoneScriptPhpClient };
|
|
1158
1202
|
export type { AuthConfig, AuthMode, AuthPlugin, AuthProvider, AuthResponseMap, AuthResult, AuthServerConfig, BuiltInProvider, FileDeleteResponse, FileListResponse, FileMetadata, FileUploadResponse, FileUploadResult, OAuthProviderConfig, OnboardingNeededEvent, ProgalaxyElabsAuthConfig, StoneScriptPHPAuthConfig, TenantCreatedEvent, TenantMembership, TenantRegisterRequestEvent, TenantSelectedEvent, User };
|