@posiwise/app-config-service 0.0.105 → 0.0.106

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.
@@ -1,366 +1,347 @@
1
- import { HttpClient } from "@angular/common/http";
2
- import { Router } from "@angular/router";
3
- import { BehaviorSubject } from "rxjs";
4
- import * as i0 from "@angular/core";
1
+ import * as rxjs from 'rxjs';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import { Router } from '@angular/router';
5
+ import * as i0 from '@angular/core';
6
+
5
7
  interface Company {
6
- logos?: {
7
- main?: {
8
- url?: string;
8
+ logos?: {
9
+ main?: {
10
+ url?: string;
11
+ };
9
12
  };
10
- };
11
- name?: string;
12
- number?: string;
13
- state?: string;
14
- street?: string;
15
- email?: string;
16
- city?: string;
17
- city_code?: string;
13
+ name?: string;
14
+ number?: string;
15
+ state?: string;
16
+ street?: string;
17
+ email?: string;
18
+ city?: string;
19
+ city_code?: string;
18
20
  }
19
21
  interface ColorCodes {
20
- titles?: string;
21
- first?: string;
22
- text?: string;
23
- dashboard_bg?: string;
22
+ titles?: string;
23
+ first?: string;
24
+ text?: string;
25
+ dashboard_bg?: string;
24
26
  }
25
27
  interface Links {
26
- integrations_api?: string;
27
- frontend_link?: string;
28
- socket_link?: string;
29
- main_api?: string;
30
- products_api?: string;
31
- brain_api?: string;
32
- cloudolive_api?: string;
33
- /**
34
- * Dedicated WebSocket host for the Brain chat push socket (ticket #45).
35
- * Browsers open the WS here; serves /brain-api/v1/ws on an internet-facing
36
- * ALB. Distinct from the api-gateway-routed `brain_api` URL, which strips
37
- * the WebSocket `Upgrade` header. Surfaced from main-api as
38
- * `links.mcp_socket_link`, sourced from `endpoints.brain_api.websocket_url`.
39
- * e.g. `https://brain-api-websocket.dev.posiwise.com/brain-api/v1/`.
40
- * Null when brain-api WebSocket endpoint is not configured for the environment.
41
- */
42
- mcp_socket_link?: string | null;
43
- /** Null when Kinesis WebSocket is not configured for the environment. */
44
- kinesis_socket_link?: string | null;
45
- /**
46
- * Dedicated WebSocket host for the Voice Chat surface on posiwise-voice-api
47
- * (ticket #58). Browsers open the WS here; serves /voice-api/v1/converse on
48
- * an internet-facing ALB. Distinct from the api-gateway-routed `voice_api`
49
- * URL (when defined), which strips the WebSocket `Upgrade` header. Surfaced
50
- * from main-api as `links.voice_socket_link`, sourced from
51
- * `endpoints.voice_api.websocket_url` in the voice-api Vault config.
52
- * e.g. `https://voice-api-websocket.dev.posiwise.com/voice-api/v1/`.
53
- * Null when voice-api WebSocket endpoint is not configured for the env —
54
- * the Voice Chat button stays hidden client-side until this is set.
55
- */
56
- voice_socket_link?: string | null;
57
- [key: string]: string | null | undefined;
28
+ integrations_api?: string;
29
+ frontend_link?: string;
30
+ socket_link?: string;
31
+ main_api?: string;
32
+ products_api?: string;
33
+ brain_api?: string;
34
+ cloudolive_api?: string;
35
+ /**
36
+ * Dedicated WebSocket host for the Brain chat push socket (ticket #45).
37
+ * Browsers open the WS here; serves /brain-api/v1/ws on an internet-facing
38
+ * ALB. Distinct from the api-gateway-routed `brain_api` URL, which strips
39
+ * the WebSocket `Upgrade` header. Surfaced from main-api as
40
+ * `links.mcp_socket_link`, sourced from `endpoints.brain_api.websocket_url`.
41
+ * e.g. `https://brain-api-websocket.dev.posiwise.com/brain-api/v1/`.
42
+ * Null when brain-api WebSocket endpoint is not configured for the environment.
43
+ */
44
+ mcp_socket_link?: string | null;
45
+ /** Null when Kinesis WebSocket is not configured for the environment. */
46
+ kinesis_socket_link?: string | null;
47
+ /**
48
+ * Dedicated WebSocket host for the Voice Chat surface on posiwise-voice-api
49
+ * (ticket #58). Browsers open the WS here; serves /voice-api/v1/converse on
50
+ * an internet-facing ALB. Distinct from the api-gateway-routed `voice_api`
51
+ * URL (when defined), which strips the WebSocket `Upgrade` header. Surfaced
52
+ * from main-api as `links.voice_socket_link`, sourced from
53
+ * `endpoints.voice_api.websocket_url` in the voice-api Vault config.
54
+ * e.g. `https://voice-api-websocket.dev.posiwise.com/voice-api/v1/`.
55
+ * Null when voice-api WebSocket endpoint is not configured for the env —
56
+ * the Voice Chat button stays hidden client-side until this is set.
57
+ */
58
+ voice_socket_link?: string | null;
59
+ [key: string]: string | null | undefined;
58
60
  }
59
61
  interface Integrations {
60
- google_api_key: string;
61
- google_analytics?: string;
62
- sentry_config?: SentryConfig;
62
+ google_api_key: string;
63
+ google_analytics?: string;
64
+ sentry_config?: SentryConfig;
63
65
  }
64
66
  interface SentryConfig {
65
- dsn: string;
66
- environment?: string;
67
- [key: string]: unknown;
67
+ dsn: string;
68
+ environment?: string;
69
+ [key: string]: unknown;
68
70
  }
69
71
  interface DecryptedData {
70
- integrations: Integrations;
71
- social_login_enabled?: boolean;
72
- oauth_login?: unknown;
73
- company?: Company;
74
- color_codes?: ColorCodes;
75
- links?: Links;
76
- url?: string;
77
- host_name?: string;
78
- /**
79
- * Per-domain post-login landing route (main-api#960). Empty/undefined → `/home`.
80
- * A `{slug}` token is substituted with the user's subscription slug at redirect
81
- * time, e.g. `{slug}/cloudolive/inputs` → `/acme/cloudolive/inputs`.
82
- */
83
- login_default_route?: string;
84
- }
85
- interface ApiResponse {
86
- type?: string;
87
- integrations: {
88
- google_api_key: string;
89
- };
90
- social_login_enabled: boolean;
91
- oauth_login: {
92
- clientId: string;
93
- clientSecret?: string;
94
- redirectUri: string;
95
- scopes?: string[];
96
- authorizationEndpoint: string;
97
- tokenEndpoint?: string;
98
- userInfoEndpoint?: string;
99
- responseType: string;
100
- grantType?: string;
101
- state?: string;
102
- } | null;
72
+ integrations: Integrations;
73
+ social_login_enabled?: boolean;
74
+ oauth_login?: unknown;
75
+ company?: Company;
76
+ color_codes?: ColorCodes;
77
+ links?: Links;
78
+ url?: string;
79
+ host_name?: string;
103
80
  }
104
- export declare class AppConfigService {
105
- private readonly api;
106
- private readonly router;
107
- private decryptedData;
108
- private googleApiKey;
109
- protected appConfigSubject$: BehaviorSubject<DecryptedData>;
110
- appConfig$: import("rxjs").Observable<DecryptedData>;
111
- constructor(api: HttpClient, router: Router);
112
- load(environment: any): Promise<unknown>;
113
- getGoogleApiKey(): string;
114
- static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigService, never>;
115
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
81
+
82
+ declare class AppConfigService {
83
+ private readonly api;
84
+ private readonly router;
85
+ private decryptedData;
86
+ private googleApiKey;
87
+ protected appConfigSubject$: BehaviorSubject<DecryptedData>;
88
+ appConfig$: rxjs.Observable<DecryptedData>;
89
+ constructor(api: HttpClient, router: Router);
90
+ load(environment: any): Promise<unknown>;
91
+ getGoogleApiKey(): string;
92
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigService, never>;
93
+ static ɵprov: i0.ɵɵInjectableDeclaration<AppConfigService>;
116
94
  }
117
- export declare class AppConfigServiceStub extends AppConfigService {
118
- commonConfigFields: {
119
- join_message: any;
120
- product_id: number;
121
- image: {
122
- url: string;
123
- };
124
- image2: {
125
- url: string;
126
- };
127
- image_bg: {
128
- url: string;
129
- };
130
- image_bg2: {
131
- url: string;
132
- };
133
- video_url: string;
134
- book_demo_url: any;
135
- source_id: any;
136
- pdf_source_id: any;
137
- pdf_image: {
138
- url: string;
139
- };
140
- pdf_download_text: string;
141
- cta_iframe: string;
142
- cs_cta_iframe: string;
143
- trial_cta_iframe: string;
144
- };
145
- config: {
146
- links: {
147
- frontend_link: string;
148
- socket_link: string;
149
- main_api: string;
150
- products_api: string;
151
- integrations_api: string;
152
- cloudolive_api: string;
153
- mcp_socket_link: string;
154
- };
155
- url: string;
156
- company: {
157
- number: string;
158
- name: string;
159
- keywords: string;
160
- street: string;
161
- city: string;
162
- city_code: string;
163
- state: string;
164
- phone_number: string;
165
- description: string;
166
- email: string;
167
- website: string;
168
- blog_product_key: string;
169
- logos: {
170
- header_squared_main: {
171
- url: any;
172
- version_200x200: {
173
- url: any;
174
- };
175
- version_100x100: {
176
- url: any;
177
- };
178
- version_50x50: {
179
- url: any;
180
- };
181
- };
182
- header_squared_dark: {
183
- url: any;
184
- version_200x200: {
185
- url: any;
186
- };
187
- version_100x100: {
188
- url: any;
189
- };
190
- version_50x50: {
191
- url: any;
192
- };
193
- };
194
- header_squared_contrast: {
195
- url: any;
196
- version_200x200: {
197
- url: any;
198
- };
199
- version_100x100: {
200
- url: any;
201
- };
202
- version_50x50: {
203
- url: any;
204
- };
205
- };
206
- main: {
207
- url: string;
208
- };
209
- main_dark: {
210
- url: string;
211
- version_100x100: {
212
- url: string;
213
- };
214
- };
215
- main_contrast: {
216
- url: string;
217
- };
218
- };
219
- };
220
- main_app_title: string;
221
- favicon_path: string;
222
- twitter_seo: {
223
- card: string;
224
- site: string;
225
- creator: string;
226
- };
227
- color_codes: {
228
- first: string;
229
- second: string;
230
- third: string;
231
- titles: string;
232
- text: string;
233
- tabs_bg: string;
234
- tabs_text: string;
235
- sidebar_bg: string;
236
- sidebar_text: string;
237
- };
238
- social: {
239
- linkedin_url: string;
240
- twitter_url: string;
241
- facebook_url: string;
242
- youtube_url: string;
243
- };
244
- can_register_through_main_page: boolean;
245
- is_product_domain: boolean;
246
- social_login_enabled: boolean;
247
- main_tos_id: number;
248
- crm: {
249
- subscription_id: number;
250
- source_id: number;
251
- product_id: number;
252
- };
253
- master_subscription: {
254
- subscription_id: number;
255
- product_id: number;
256
- };
257
- signup_config: {
258
- coming_soon: {
95
+
96
+ declare class AppConfigServiceStub extends AppConfigService {
97
+ commonConfigFields: {
259
98
  join_message: any;
260
99
  product_id: number;
261
100
  image: {
262
- url: string;
101
+ url: string;
263
102
  };
264
103
  image2: {
265
- url: string;
104
+ url: string;
266
105
  };
267
106
  image_bg: {
268
- url: string;
107
+ url: string;
269
108
  };
270
109
  image_bg2: {
271
- url: string;
110
+ url: string;
272
111
  };
273
112
  video_url: string;
274
113
  book_demo_url: any;
275
114
  source_id: any;
276
115
  pdf_source_id: any;
277
116
  pdf_image: {
278
- url: string;
117
+ url: string;
279
118
  };
280
119
  pdf_download_text: string;
281
120
  cta_iframe: string;
282
121
  cs_cta_iframe: string;
283
122
  trial_cta_iframe: string;
284
- };
285
- freemium: {
286
- join_message: any;
287
- product_id: number;
288
- image: {
289
- url: string;
123
+ };
124
+ config: {
125
+ links: {
126
+ frontend_link: string;
127
+ socket_link: string;
128
+ main_api: string;
129
+ products_api: string;
130
+ integrations_api: string;
131
+ cloudolive_api: string;
132
+ mcp_socket_link: string;
290
133
  };
291
- image2: {
292
- url: string;
134
+ url: string;
135
+ company: {
136
+ number: string;
137
+ name: string;
138
+ keywords: string;
139
+ street: string;
140
+ city: string;
141
+ city_code: string;
142
+ state: string;
143
+ phone_number: string;
144
+ description: string;
145
+ email: string;
146
+ website: string;
147
+ blog_product_key: string;
148
+ logos: {
149
+ header_squared_main: {
150
+ url: any;
151
+ version_200x200: {
152
+ url: any;
153
+ };
154
+ version_100x100: {
155
+ url: any;
156
+ };
157
+ version_50x50: {
158
+ url: any;
159
+ };
160
+ };
161
+ header_squared_dark: {
162
+ url: any;
163
+ version_200x200: {
164
+ url: any;
165
+ };
166
+ version_100x100: {
167
+ url: any;
168
+ };
169
+ version_50x50: {
170
+ url: any;
171
+ };
172
+ };
173
+ header_squared_contrast: {
174
+ url: any;
175
+ version_200x200: {
176
+ url: any;
177
+ };
178
+ version_100x100: {
179
+ url: any;
180
+ };
181
+ version_50x50: {
182
+ url: any;
183
+ };
184
+ };
185
+ main: {
186
+ url: string;
187
+ };
188
+ main_dark: {
189
+ url: string;
190
+ version_100x100: {
191
+ url: string;
192
+ };
193
+ };
194
+ main_contrast: {
195
+ url: string;
196
+ };
197
+ };
293
198
  };
294
- image_bg: {
295
- url: string;
199
+ main_app_title: string;
200
+ favicon_path: string;
201
+ twitter_seo: {
202
+ card: string;
203
+ site: string;
204
+ creator: string;
296
205
  };
297
- image_bg2: {
298
- url: string;
206
+ color_codes: {
207
+ first: string;
208
+ second: string;
209
+ third: string;
210
+ titles: string;
211
+ text: string;
212
+ tabs_bg: string;
213
+ tabs_text: string;
214
+ sidebar_bg: string;
215
+ sidebar_text: string;
299
216
  };
300
- video_url: string;
301
- book_demo_url: any;
302
- source_id: any;
303
- pdf_source_id: any;
304
- pdf_image: {
305
- url: string;
217
+ social: {
218
+ linkedin_url: string;
219
+ twitter_url: string;
220
+ facebook_url: string;
221
+ youtube_url: string;
306
222
  };
307
- pdf_download_text: string;
308
- cta_iframe: string;
309
- cs_cta_iframe: string;
310
- trial_cta_iframe: string;
311
- };
312
- trial: {
313
- join_message: any;
314
- product_id: number;
315
- image: {
316
- url: string;
223
+ can_register_through_main_page: boolean;
224
+ is_product_domain: boolean;
225
+ social_login_enabled: boolean;
226
+ main_tos_id: number;
227
+ crm: {
228
+ subscription_id: number;
229
+ source_id: number;
230
+ product_id: number;
317
231
  };
318
- image2: {
319
- url: string;
232
+ master_subscription: {
233
+ subscription_id: number;
234
+ product_id: number;
320
235
  };
321
- image_bg: {
322
- url: string;
236
+ signup_config: {
237
+ coming_soon: {
238
+ join_message: any;
239
+ product_id: number;
240
+ image: {
241
+ url: string;
242
+ };
243
+ image2: {
244
+ url: string;
245
+ };
246
+ image_bg: {
247
+ url: string;
248
+ };
249
+ image_bg2: {
250
+ url: string;
251
+ };
252
+ video_url: string;
253
+ book_demo_url: any;
254
+ source_id: any;
255
+ pdf_source_id: any;
256
+ pdf_image: {
257
+ url: string;
258
+ };
259
+ pdf_download_text: string;
260
+ cta_iframe: string;
261
+ cs_cta_iframe: string;
262
+ trial_cta_iframe: string;
263
+ };
264
+ freemium: {
265
+ join_message: any;
266
+ product_id: number;
267
+ image: {
268
+ url: string;
269
+ };
270
+ image2: {
271
+ url: string;
272
+ };
273
+ image_bg: {
274
+ url: string;
275
+ };
276
+ image_bg2: {
277
+ url: string;
278
+ };
279
+ video_url: string;
280
+ book_demo_url: any;
281
+ source_id: any;
282
+ pdf_source_id: any;
283
+ pdf_image: {
284
+ url: string;
285
+ };
286
+ pdf_download_text: string;
287
+ cta_iframe: string;
288
+ cs_cta_iframe: string;
289
+ trial_cta_iframe: string;
290
+ };
291
+ trial: {
292
+ join_message: any;
293
+ product_id: number;
294
+ image: {
295
+ url: string;
296
+ };
297
+ image2: {
298
+ url: string;
299
+ };
300
+ image_bg: {
301
+ url: string;
302
+ };
303
+ image_bg2: {
304
+ url: string;
305
+ };
306
+ video_url: string;
307
+ book_demo_url: any;
308
+ source_id: any;
309
+ pdf_source_id: any;
310
+ pdf_image: {
311
+ url: string;
312
+ };
313
+ pdf_download_text: string;
314
+ cta_iframe: string;
315
+ cs_cta_iframe: string;
316
+ trial_cta_iframe: string;
317
+ };
323
318
  };
324
- image_bg2: {
325
- url: string;
319
+ integrations: {
320
+ sentry_config: {
321
+ dsn: string;
322
+ };
323
+ drift_code: string;
324
+ fb_app_id: string;
325
+ captcha_key: string;
326
+ captcha_key_V2: string;
327
+ google_analytics: string;
328
+ google_api_key: string;
326
329
  };
327
- video_url: string;
328
- book_demo_url: any;
329
- source_id: any;
330
- pdf_source_id: any;
331
- pdf_image: {
332
- url: string;
330
+ oauth_login: {
331
+ google: {
332
+ client_id: string;
333
+ };
334
+ facebook: {
335
+ client_id: string;
336
+ };
337
+ linkedin: {
338
+ client_id: string;
339
+ };
333
340
  };
334
- pdf_download_text: string;
335
- cta_iframe: string;
336
- cs_cta_iframe: string;
337
- trial_cta_iframe: string;
338
- };
339
- };
340
- integrations: {
341
- sentry_config: {
342
- dsn: string;
343
- };
344
- drift_code: string;
345
- fb_app_id: string;
346
- captcha_key: string;
347
- captcha_key_V2: string;
348
- google_analytics: string;
349
- google_api_key: string;
350
341
  };
351
- oauth_login: {
352
- google: {
353
- client_id: string;
354
- };
355
- facebook: {
356
- client_id: string;
357
- };
358
- linkedin: {
359
- client_id: string;
360
- };
361
- };
362
- };
363
- load(): Promise<unknown>;
364
- static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigServiceStub, never>;
365
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
366
- }
342
+ load(): Promise<unknown>;
343
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigServiceStub, never>;
344
+ static ɵprov: i0.ɵɵInjectableDeclaration<AppConfigServiceStub>;
345
+ }
346
+
347
+ export { AppConfigService, AppConfigServiceStub };