@progalaxyelabs/ngx-stonescriptphp-client 1.8.2 → 1.10.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
@@ -47,9 +47,11 @@ declare class SigninStatusService {
47
47
  }
48
48
 
49
49
  declare class ApiResponse<DataType> {
50
- private status;
51
- private data;
52
- private message;
50
+ readonly status: string;
51
+ readonly data: DataType | null;
52
+ readonly message: string;
53
+ get success(): boolean;
54
+ get errors(): string[];
53
55
  constructor(status: string, data?: any, message?: string);
54
56
  onOk(callback: (data: DataType) => void): ApiResponse<DataType>;
55
57
  onNotOk(callback: (message: string, data: DataType) => void): ApiResponse<DataType>;
@@ -163,6 +165,12 @@ declare class MyEnvironmentModel {
163
165
  messagingSenderId: string;
164
166
  measurementId: string;
165
167
  };
168
+ /**
169
+ * Platform's own API base URL (e.g., '//api.medstoreapp.in')
170
+ * Used to route registration through the platform API proxy instead of auth directly
171
+ * @example '//api.medstoreapp.in'
172
+ */
173
+ apiUrl?: string;
166
174
  apiServer: {
167
175
  host: string;
168
176
  };
@@ -363,6 +371,12 @@ declare class AuthService {
363
371
  * Check if multi-server mode is enabled
364
372
  */
365
373
  isMultiServerMode(): boolean;
374
+ /**
375
+ * Get the platform's own API base URL
376
+ * Used for routes that go through the platform API proxy (e.g. register-tenant)
377
+ * @throws Error if no API URL is configured
378
+ */
379
+ private getPlatformApiUrl;
366
380
  /**
367
381
  * Hash UUID to numeric ID for backward compatibility
368
382
  * Converts UUID string to a consistent numeric ID for legacy code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progalaxyelabs/ngx-stonescriptphp-client",
3
- "version": "1.8.2",
3
+ "version": "1.10.0",
4
4
  "description": "Angular client library for StoneScriptPHP backend framework",
5
5
  "keywords": [
6
6
  "angular",