@posiwise/common-services 0.2.25 → 0.2.27
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/package.json
CHANGED
|
@@ -74,6 +74,7 @@ declare abstract class BaseHttpService {
|
|
|
74
74
|
private readonly toast;
|
|
75
75
|
abstract getConfig(): void;
|
|
76
76
|
constructor(http: HttpClient, injector: Injector);
|
|
77
|
+
private buildUrl;
|
|
77
78
|
get<T>(url: any): Observable<any>;
|
|
78
79
|
getWithParams<T>(url: any, params: any): Observable<any>;
|
|
79
80
|
post<T>(url: any, params?: {}): Observable<any>;
|
|
@@ -448,9 +449,6 @@ declare class SecureTokenStorageService {
|
|
|
448
449
|
* Get cookie value
|
|
449
450
|
*/
|
|
450
451
|
private getCookieValue;
|
|
451
|
-
/**
|
|
452
|
-
* Delete cookie
|
|
453
|
-
*/
|
|
454
452
|
private deleteCookie;
|
|
455
453
|
/**
|
|
456
454
|
* Initialize tokens from storage on service startup
|
|
@@ -815,6 +813,7 @@ declare class AhoyService {
|
|
|
815
813
|
private readonly ahoy;
|
|
816
814
|
private readonly toast;
|
|
817
815
|
constructor(http: HttpClient, injector: Injector);
|
|
816
|
+
private buildUrl;
|
|
818
817
|
getAhoyEvents(params: RequestParams, service: any, paging: Paging): Observable<AhoyEventResponse>;
|
|
819
818
|
getAhoyMessages(params: RequestParams, service: any, paging: Paging): Observable<AhoyMessageResponse>;
|
|
820
819
|
getAhoyVisits(params: RequestParams, service: any, paging: Paging): Observable<AhoyVisitResponse>;
|
|
@@ -1173,6 +1172,32 @@ declare class NotificationService {
|
|
|
1173
1172
|
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
|
|
1174
1173
|
}
|
|
1175
1174
|
|
|
1175
|
+
interface BrainPushMessage {
|
|
1176
|
+
id: string;
|
|
1177
|
+
text: string;
|
|
1178
|
+
}
|
|
1179
|
+
declare class BrainSocketService {
|
|
1180
|
+
private readonly appConfigService;
|
|
1181
|
+
private readonly store;
|
|
1182
|
+
constructor(appConfigService: AppConfigService, store: Store<AppState>);
|
|
1183
|
+
/**
|
|
1184
|
+
* Hot stream of assistant messages pushed by the server. Subscribe when the
|
|
1185
|
+
* chat panel mounts; unsubscribe (via `takeUntil`) when it tears down.
|
|
1186
|
+
*/
|
|
1187
|
+
messages$(): Observable<BrainPushMessage>;
|
|
1188
|
+
private buildSocketUrl$;
|
|
1189
|
+
/** Absolute `ws(s)://…/brain-api/v1/ws` base, dev (same-origin) or prod (links). */
|
|
1190
|
+
private wsBase$;
|
|
1191
|
+
/**
|
|
1192
|
+
* Same credential resolution as `MCPOrchestratorService.pickApiCredentials`
|
|
1193
|
+
* — token/userId from the active user, clientId from the active subscription.
|
|
1194
|
+
*/
|
|
1195
|
+
private pickApiCredentials;
|
|
1196
|
+
private encodeBundle;
|
|
1197
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrainSocketService, never>;
|
|
1198
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BrainSocketService>;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1176
1201
|
declare class UserEffects {
|
|
1177
1202
|
private readonly userService;
|
|
1178
1203
|
private readonly actions$;
|
|
@@ -1334,5 +1359,5 @@ declare class BrainApiService {
|
|
|
1334
1359
|
static ɵprov: i0.ɵɵInjectableDeclaration<BrainApiService>;
|
|
1335
1360
|
}
|
|
1336
1361
|
|
|
1337
|
-
export { AbTestService, AhoyService, AuthService, BaseHttpService, BrainApiHttpService, BrainApiService, CommonService, CommonServicesModule, CustomPreloadingStrategy, CustomToastService, DashboardService, DataService, FeatureFlagService, FormHelperService, GeoService, GoogleAnalyticsService, GroupService, HopscotchService, IntegrationsApiHttpService, LinkService, LocalStorage, LogoCacheService, MCPOrchestratorService, MailBoxService, MainApiHttpService, McpJsonRpcService, NgbDateCustomParserFormatter, NotificationService, NumberPickerService, PermissionService, PrimeNgHelper, ProductService, ProfileService, QualificationService, ScriptLoaderService, SecureTokenStorageService, SentryErrorHandler, SeoService, SubscriptionService, TagService, TipsService, UserEffects, UserService, ValidationService, WebsocketService, WindowService };
|
|
1338
|
-
export type { MCPActionPlan, MCPConfirmRequest, MCPExecuteRequest, MCPExecuteResponse, MCPFieldDiff, MCPInterpretRequest, MCPInterpretResponse, MCPResultStatus, MCPRiskLevel, McpJsonRpcError, McpJsonRpcRequest, McpJsonRpcResponse, McpToolDefinition, McpToolsListResult };
|
|
1362
|
+
export { AbTestService, AhoyService, AuthService, BaseHttpService, BrainApiHttpService, BrainApiService, BrainSocketService, CommonService, CommonServicesModule, CustomPreloadingStrategy, CustomToastService, DashboardService, DataService, FeatureFlagService, FormHelperService, GeoService, GoogleAnalyticsService, GroupService, HopscotchService, IntegrationsApiHttpService, LinkService, LocalStorage, LogoCacheService, MCPOrchestratorService, MailBoxService, MainApiHttpService, McpJsonRpcService, NgbDateCustomParserFormatter, NotificationService, NumberPickerService, PermissionService, PrimeNgHelper, ProductService, ProfileService, QualificationService, ScriptLoaderService, SecureTokenStorageService, SentryErrorHandler, SeoService, SubscriptionService, TagService, TipsService, UserEffects, UserService, ValidationService, WebsocketService, WindowService };
|
|
1363
|
+
export type { BrainPushMessage, MCPActionPlan, MCPConfirmRequest, MCPExecuteRequest, MCPExecuteResponse, MCPFieldDiff, MCPInterpretRequest, MCPInterpretResponse, MCPResultStatus, MCPRiskLevel, McpJsonRpcError, McpJsonRpcRequest, McpJsonRpcResponse, McpToolDefinition, McpToolsListResult };
|